:root {
  --bg-top: #06141d;
  --bg-bottom: #0c2930;
  --surface: #f8fff8;
  --surface-soft: #ecfff9;
  --card: rgba(248, 255, 248, 0.96);
  --card-border: rgba(0, 230, 209, 0.24);
  --text: #071817;
  --muted: #375c5a;
  --text-on-dark: #f8fff8;
  --muted-on-dark: #dffef5;
  --primary: #007f73;
  --primary-deep: #005a55;
  --accent: #ff4f86;
  --accent-deep: #a31243;
  --yellow: #fff05a;
  --outline: #00e6d1;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 24px 70px rgba(0, 16, 22, 0.24);
  --shadow-soft: 0 14px 36px rgba(0, 16, 22, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 230, 209, 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 79, 134, 0.24), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255, 240, 90, 0.2), transparent 20%),
    linear-gradient(135deg, rgba(0, 230, 209, 0.07) 0 25%, transparent 25% 50%, rgba(255, 79, 134, 0.07) 50% 75%, transparent 75%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  background-size: auto, auto, auto, 34px 34px, auto;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

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

.auth-shell,
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.auth-card,
.hero-card,
.card {
  backdrop-filter: blur(16px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
  min-height: calc(100vh - 72px);
  align-items: center;
}

.auth-copy {
  padding: 12px;
}

.auth-panel {
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffaf0, #eef7f3);
  border: 1px solid rgba(35, 107, 100, 0.18);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 800;
  background: #e8f3ef;
  color: var(--text);
  cursor: pointer;
}

.tab-button.active {
  background: linear-gradient(180deg, #00b8a9, var(--primary-deep));
  color: #ffffff;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .button.accent {
  margin-top: 4px;
}

.auth-link-button {
  width: fit-content;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: var(--primary-deep);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-message {
  min-height: 24px;
  margin: 16px 2px 0;
  font-weight: 700;
}

.legal-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 240, 90, 0.3), transparent 24%),
    radial-gradient(circle at 16% 100%, rgba(255, 79, 134, 0.22), transparent 28%),
    linear-gradient(135deg, #041117, #083d43 58%, #0d5b62);
  color: var(--text-on-dark);
  border-color: rgba(255, 250, 240, 0.22);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 217, 139, 0.34), transparent 60%);
  filter: drop-shadow(0 0 24px rgba(0, 230, 209, 0.28));
}

.eyebrow,
.section-tag,
.song-card-tag,
.session-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", cursive;
  line-height: 1;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: 2rem;
  margin-top: 6px;
}

.hero-copy,
.support-note p,
.empty-state,
.song-card-meta,
#activeSongSummary,
#trackMeta,
#buddyMoodDisplay,
#studentPhotoStatus,
.auth-message {
  color: var(--muted);
}

.hero-card .eyebrow,
.hero-card .hero-copy,
.hero-card .hero-badge span,
.hero-card .button.ghost {
  color: var(--muted-on-dark);
}

.hero-copy {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: 12px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.13);
  border: 1px solid rgba(255, 250, 240, 0.2);
  color: #fff4cf;
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-badge {
  min-width: 180px;
  align-self: center;
  text-align: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.16), rgba(239, 217, 139, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-badge span {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted-on-dark);
}

.hero-badge strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  color: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: clamp(20px, 2.5vw, 28px);
}

.profile-card,
.rehearsal-card {
  grid-column: span 4;
}

.studio-card,
.library-card {
  grid-column: span 8;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}

.buddy-preview,
.audio-panel,
.rights-card,
.session-panel,
.support-note,
.song-card,
.student-preview {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fffaf0, #eef7f3);
  border: 1px solid rgba(35, 107, 100, 0.16);
}

.studio-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.studio-flow div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: #fffdf7;
  border: 1px solid rgba(35, 107, 100, 0.14);
}

.studio-flow strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.95rem;
}

.studio-flow span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
}

.buddy-preview,
.student-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.buddy-stack {
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 116px;
  display: grid;
  place-items: center;
}

.buddy-character-slot {
  position: absolute;
  inset: 0 auto auto 0;
}

.buddy-avatar {
  --badge-bg: #236b64;
  --badge-glow: #efd98b;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(145deg, var(--badge-glow), var(--badge-bg) 58%, #102f2c);
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  border: 3px solid #fffaf0;
  box-shadow: 0 12px 24px rgba(23, 75, 70, 0.26), inset 0 -6px 14px rgba(0, 0, 0, 0.16);
}

.character-art {
  --skin: #b97854;
  --hair: #3d291f;
  --shirt: #236b64;
  --char-accent: #efd98b;
  position: relative;
  width: 92px;
  height: 104px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 14%, var(--char-accent) 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 207, 0.42));
  box-shadow: 0 18px 32px rgba(23, 75, 70, 0.18), inset 0 0 0 2px rgba(255, 250, 240, 0.92);
  overflow: hidden;
  animation: buddyFloat 3.8s ease-in-out infinite;
}

.character-art.small {
  width: 70px;
  height: 78px;
  border-radius: 24px;
}

.character-body {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -12%;
  height: 42%;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, var(--shirt), #102f2c);
}

.character-face {
  position: absolute;
  left: 50%;
  top: 26%;
  width: 54%;
  height: 46%;
  transform: translateX(-50%);
  border-radius: 46% 46% 42% 42%;
  background: var(--skin);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.08);
}

.character-hair {
  position: absolute;
  left: -8%;
  right: -8%;
  top: -18%;
  height: 38%;
  border-radius: 48% 48% 36% 36%;
  background: var(--hair);
}

.character-art[data-character="luna"] .character-hair,
.character-art[data-character="zuri"] .character-hair {
  height: 54%;
  border-radius: 50% 50% 44% 44%;
}

.character-art[data-character="theo"] .character-hair,
.character-art[data-character="kai"] .character-hair {
  clip-path: polygon(0 24%, 18% 0, 38% 22%, 56% 0, 74% 22%, 100% 2%, 100% 70%, 0 70%);
}

.character-eye {
  position: absolute;
  top: 48%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #102f2c;
}

.character-art.small .character-eye {
  width: 5px;
  height: 5px;
}

.character-eye.left {
  left: 28%;
}

.character-eye.right {
  right: 28%;
}

.character-smile {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 20px;
  height: 10px;
  transform: translateX(-50%);
  border-bottom: 3px solid #102f2c;
  border-radius: 0 0 999px 999px;
}

.character-symbol {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--char-accent);
  color: #172826;
  font-size: 0.95rem;
  font-weight: 900;
}

.character-art.small .character-symbol {
  width: 20px;
  height: 20px;
  font-size: 0.78rem;
}

.buddy-guide {
  display: grid;
  gap: 12px;
  margin: -4px 0 18px;
}

.buddy-bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff8b8;
  color: var(--text);
  border: 1px solid rgba(152, 59, 48, 0.18);
  font-weight: 800;
  line-height: 1.35;
}

.buddy-bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: #fff8b8;
  border-left: 1px solid rgba(152, 59, 48, 0.18);
  border-top: 1px solid rgba(152, 59, 48, 0.18);
  transform: rotate(45deg);
}

.buddy-role {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffdf7;
  border: 1px solid rgba(35, 107, 100, 0.16);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.character-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.character-option {
  border: 1px solid rgba(35, 107, 100, 0.18);
  border-radius: var(--radius-md);
  min-height: 136px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #eef7f3);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(23, 75, 70, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.character-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(23, 75, 70, 0.16);
}

.character-option.active {
  border-color: rgba(216, 111, 95, 0.7);
  box-shadow: inset 0 0 0 3px rgba(239, 217, 139, 0.8), 0 18px 32px rgba(23, 75, 70, 0.16);
}

.character-option strong {
  font-family: "Baloo 2", cursive;
  font-size: 1.15rem;
  line-height: 1;
}

.character-option span:last-child {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.student-preview img,
.cue-target img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fff4cf);
  border: 2px solid rgba(35, 107, 100, 0.22);
}

label {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(35, 107, 100, 0.24);
  background: #ffffff;
  color: var(--text);
  padding: 14px 16px;
}

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

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.emoji-option {
  --badge-bg: #236b64;
  --badge-glow: #efd98b;
  position: relative;
  border: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.86), transparent 16%),
    linear-gradient(145deg, var(--badge-glow), var(--badge-bg) 58%, #102f2c);
  border-radius: 18px;
  min-height: 88px;
  padding: 8px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(23, 75, 70, 0.16), inset 0 -8px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: grid;
  place-items: center;
  gap: 4px;
}

.emoji-option::before {
  content: "";
  position: absolute;
  inset: 8px auto auto 8px;
  width: 26px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(-18deg);
}

.emoji-option span {
  position: relative;
  display: block;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
}

.emoji-option small {
  position: relative;
  display: block;
  color: rgba(255, 250, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
}

.emoji-option.active {
  box-shadow: inset 0 0 0 4px #fffaf0, 0 0 0 3px rgba(216, 111, 95, 0.5), 0 18px 34px rgba(23, 75, 70, 0.2);
}

.record-controls,
.rehearsal-actions,
.song-card-actions {
  display: flex;
  gap: 12px;
}

.record-controls > *,
.rehearsal-actions > * {
  flex: 1;
}

.cue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.cue-grid label {
  min-width: 0;
  margin-top: 0;
}

.cue-lyrics-field {
  grid-column: 1 / -1;
}

.cue-lyrics-field textarea {
  min-height: 82px;
  border-radius: 16px;
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.section-builder {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(240px, 1.25fr);
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 230, 209, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff, var(--surface-soft));
  border: 1px solid rgba(0, 127, 115, 0.18);
}

.section-builder label {
  margin-top: 0;
}

.section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-content: start;
}

.section-row {
  display: grid;
  gap: 6px;
  margin-top: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 230, 209, 0.08);
  border: 1px solid rgba(0, 127, 115, 0.16);
}

.section-row span {
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-row input {
  margin-top: 0;
  padding: 11px 12px;
  border-radius: 14px;
}

.time-field {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(0, 127, 115, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 255, 248, 0.88)),
    #ffffff;
}

.time-field legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 10px;
  color: var(--primary-deep);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.time-pair {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-pair label {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.time-pair input {
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 850;
}

.full-width {
  width: 100%;
  margin-top: 14px;
}

.audio-panel,
.rights-card,
.session-panel,
.support-note {
  padding: 16px;
  margin-top: 16px;
}

.audio-panel {
  position: relative;
  overflow: hidden;
}

.audio-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #00e6d1, var(--yellow), var(--accent));
}

.audio-panel > * {
  position: relative;
}

.rights-card {
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 240, 90, 0.22), transparent 26%),
    linear-gradient(180deg, #fffdf7, #eef7f3);
  border-left: 6px solid var(--accent);
}

.rights-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.rights-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 107, 100, 0.16);
}

.rights-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--primary);
}

.timeline-editor {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fffdf7;
  border: 1px solid rgba(35, 107, 100, 0.18);
}

.timeline-editor-head,
.cue-interval-row,
.session-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timeline-editor-head span {
  color: var(--muted);
  font-weight: 800;
}

.cue-interval-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cue-interval-row {
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef7f3, #fffdf7);
  border: 1px solid rgba(35, 107, 100, 0.14);
  border-left: 6px solid #00e6d1;
}

.cue-interval-row div {
  display: grid;
  gap: 4px;
}

.cue-interval-row span,
.empty-cue-note {
  color: var(--muted);
  font-weight: 700;
}

.cue-lyrics-preview {
  color: var(--primary-deep);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #fff4cf;
  color: var(--accent-deep);
  font-weight: 900;
  cursor: pointer;
}

.session-preview {
  justify-content: flex-start;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #fffdf7;
  border: 1px solid rgba(35, 107, 100, 0.14);
}

.session-preview img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--yellow);
}

audio {
  width: 100%;
  margin-top: 12px;
}

.cue-stage {
  margin-top: 18px;
}

.cue-runway {
  position: relative;
  min-height: 180px;
  border-radius: 28px;
  background: linear-gradient(180deg, #184c47, #102f2c);
  overflow: hidden;
  padding: 18px;
}

.cue-track-line {
  position: absolute;
  left: 28px;
  right: 106px;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 217, 139, 0.34), rgba(255, 250, 240, 0.78));
}

.cue-slider {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translate(0, -50%);
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #b95245);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(152, 59, 48, 0.28);
}

.cue-slider.sliding {
  transition-property: transform;
  transition-timing-function: linear;
}

.cue-target {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.cue-target img {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.cue-target span {
  font-weight: 800;
}

.slider-status {
  margin-top: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

.save-status {
  min-height: 24px;
  margin: 12px 2px 0;
  color: var(--accent-deep);
  font-weight: 800;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button.primary {
  background: linear-gradient(180deg, #00a997, var(--primary-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 127, 115, 0.32);
}

.button.secondary {
  background: #e8f3ef;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(35, 107, 100, 0.16);
}

.button.accent {
  background: linear-gradient(180deg, #ff6fa0, var(--accent-deep));
  color: #fff;
  width: 100%;
  margin-top: 18px;
  box-shadow: 0 10px 24px rgba(163, 18, 67, 0.26);
}

.button.ghost {
  background: rgba(255, 250, 240, 0.4);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 2px rgba(35, 107, 100, 0.34);
}

.site-footer {
  margin: 22px auto 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(248, 255, 248, 0.9);
  border: 1px solid rgba(0, 230, 209, 0.2);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

.song-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.song-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.song-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 75, 70, 0.14);
}

.song-card-title {
  margin-top: 8px;
  font-size: 1.45rem;
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 240, 0.92);
  border: 1px dashed rgba(35, 107, 100, 0.28);
}

.cue-target.flash img,
.cue-target.flash span {
  animation: glow 0.55s ease-in-out 3 alternate;
}

@keyframes glow {
  from {
    transform: scale(1);
    filter: saturate(1);
  }

  to {
    transform: scale(1.06);
    filter: saturate(1.4);
  }
}

@keyframes buddyFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .auth-card,
  .profile-card,
  .rehearsal-card,
  .studio-card,
  .library-card {
    grid-column: span 12;
  }

  .auth-card,
  .hero-card,
  .session-panel,
  .record-controls,
  .rehearsal-actions,
  .song-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .studio-flow,
  .cue-grid,
  .section-builder {
    grid-template-columns: 1fr;
  }

  .cue-track-line {
    right: 92px;
  }

  .cue-target img {
    width: 78px;
    height: 78px;
  }
}
