:root {
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f8f7fc;
  background: #09090f;
  --panel: #12121c;
  --line: #282735;
  --muted: #aba7bb;
  --purple: #9670ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 46px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:hover:not(:disabled) {
  border-color: var(--purple);
}
a {
  color: #b69aff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e0e17;
  color: #fff;
  padding: 14px;
  min-height: 48px;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
h1 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.brand span {
  color: var(--purple);
}
.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px calc(100px + env(safe-area-inset-bottom));
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.shell::-webkit-scrollbar {
  display: none;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.topbar .row { flex-wrap: wrap; justify-content: flex-end; }
.platform-event .row.between { align-items: flex-start; }
.platform-event .row.between > div { min-width: 0; overflow-wrap: anywhere; }
.topbar button {
  padding: 8px 12px;
  font-size: 0.875rem;
}
.event-heading {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
}
.primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #10081d;
}
.full {
  width: 100%;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 16px;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  background: #292039;
  color: #c5adff;
  border-radius: 7px;
  padding: 4px 8px;
}
.pill {
  font-size: 0.875rem;
  background: #272139;
  color: #cbb5ff;
  padding: 4px 9px;
  border-radius: 9px;
}
.dj-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.dj-chip strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
}
.dj-chip a {
  display: block;
  margin-top: 5px;
  font-size: .875rem;
}
.dj-chip .eyebrow {
  color: var(--purple);
}
.live-dot {
  font-size: .65rem;
  color: #d1baff;
  margin-left: 6px;
  letter-spacing: .02em;
}
.music-title {
  text-align: center;
  margin: 30px 0 30px;
}
.music-title .eyebrow {
  color: #aaa6b9;
}
.music-title h1 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: .2em;
  margin: 0 0 12px;
}
.music-title span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--purple);
  border-radius: 3px;
  margin: auto;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 100px;
  padding: 0 16px;
}
.search-field span {
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
}
.search-field input {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 12px 0;
  min-width: 0;
}
.search-field:focus-within {
  border-color: var(--purple);
}
.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #282035;
  color: #cebaff;
  font-weight: 700;
  font-size: 1.2rem;
}
.tabs {
  display: flex;
  background: var(--panel);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin: 18px 0;
  gap: 4px;
}
.tabs button {
  flex: 1;
  background: none;
  border: 0;
  font-size: 0.875rem;
  padding: 10px;
}
.tabs button.active {
  background: #211b31;
  color: #cbb5ff;
  border: 1px solid #5b487b;
  border-radius: 100px;
}
.list-label { margin: 22px 0 10px; }
.song-note { text-align: center; margin-top: 20px; }
.song-list {
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background: var(--panel);
}
.song-list .song {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.song-list .song:last-child { border-bottom: 0; }
.song {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 12px;
  margin: 9px 0;
}
.song img,
.art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.art {
  display: grid;
  place-items: center;
  background: #242030;
  color: var(--muted);
  font-size: 1.4rem;
}
.song strong {
  display: block;
  line-height: 1.35;
  font-size: 1rem;
}
.song small {
  display: block;
}
.song button {
  padding: 10px;
  flex: none;
  font-size: 0.875rem;
}
.vote-controls {
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: none;
  min-width: 48px;
  font-weight: 700;
}
.vote-controls button {
  min-width: 44px;
  min-height: 36px;
  padding: 3px 8px;
  font-size: 1.15rem;
}
.vote-controls button.active {
  background: #35244d;
  color: #c5aaff;
  border-color: #9670ff;
}
.quota {
  color: #cbb5ff;
  font-size: 0.875rem;
  margin: 12px 2px 16px;
}
.song.search-result {
  width: 100%;
  text-align: left;
  color: inherit;
  font-weight: 400;
}
.spotify-link{display:inline-flex;align-items:center;gap:6px;margin-top:5px;font-size:12px;color:#c9c6d1}
.song .spotify-link img{width:52px;height:auto;max-height:16px;border-radius:0;object-fit:contain}
.lightbox{position:fixed;inset:0;z-index:200;background:#09090f;display:flex;flex-direction:column;padding:calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));gap:16px}
.lightbox .row{width:min(100%,900px);margin:0 auto}
.lightbox img{display:block;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;margin:auto}
.empty {
  padding: 35px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  margin: 18px 0;
}
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 640px;
  width: 100%;
  display: flex;
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #09090ff5;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(15px);
  z-index: 20;
}
.nav button {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 10px 4px;
}
.nav button.active {
  color: #b89bff;
  background: #9670ff0b;
}
.nav svg {
  width: 22px;
  height: 22px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.photo .caption {
  padding: 10px;
}
.photo button {
  font-size: 0.875rem;
  padding: 8px;
  min-height: 44px;
}
.photo .row {
  gap: 6px;
  flex-wrap: wrap;
}
.switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.switch input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: var(--purple);
  flex: none;
}
.field {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  margin-top: 7px;
  color: #fff;
}
.linkrow {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 8px;
  align-items: end;
}
.linkrow .field {
  min-width: 0;
}
.linkrow button {
  padding: 12px;
}
.qr {
  width: 220px;
  max-width: 100%;
  border-radius: 16px;
  display: block;
  margin: 20px auto;
}
.profile {
  text-align: center;
  padding: 34px 22px;
  max-width: 540px;
  margin: 20px auto;
}
.dj-portrait { width: 118px; height: 118px; margin: 0 auto 22px; }
.dj-photo, .dj-photo-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.dj-photo-fallback { display: grid; place-items: center; font-size: 2rem; }
.profile h2 { margin: 8px 0 16px; }
.dj-bio { max-width: 36ch; margin: 0 auto 24px; }
.dj-message {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  background: #181722;
}
.dj-message p:last-child { margin: 10px 0 0; }
.contactgrid { margin-top: 24px; }
.contactgrid:empty { display: none; }
.status-line { color: #cbb5ff; font-weight: 700; margin-top: 8px; }
#dj-message-form { margin: 20px 0 26px; }
#dj-message-form textarea { min-height: 90px; }
.profile .eyebrow { margin-bottom: 0; }
.profile .avatar {
  margin: 0;
}
.profile p {
  white-space: pre-wrap;
}
.contactgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contactgrid a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.error {
  color: #ffb5ba;
  background: #401b25;
  padding: 14px;
  border-radius: 12px;
}
.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.danger {
  color: #ffb3be;
}
.section {
  margin: 28px 0;
}
.backups {
  display: grid;
  gap: 10px;
}
.backup {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.backup button {
  font-size: 0.875rem;
}
.busy {
  color: var(--muted);
  padding: 22px;
  text-align: center;
}
#toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 100;
  background: #252031;
  color: #fff;
  border: 1px solid #564473;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 8px 40px #0006;
  display: none;
}
#toast.show {
  display: block;
}

/* The three event screens follow the supplied mobile reference. */
.event-screen {
  max-width: 430px;
  padding: 24px 16px calc(110px + env(safe-area-inset-bottom));
  background: #0d0e12;
}
.event-screen .event-heading { margin-bottom: 21px; }
.event-screen .event-name { margin: 0; color: #e7e4ee; font-size: 13px; font-weight: 600; line-height: 1.25; }
.event-screen .event-date { margin: 2px 0 0; color: #94919e; font-size: 12px; line-height: 1.25; }
.screen-title,
.event-screen .music-title h1 { margin: 0 0 15px; font-size: 29px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-align: left; }
.event-screen .music-title { margin: 0; text-align: left; }
.event-screen .footer { display: none; }
.upload-main { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-bottom: 15px; border: 0; border-radius: 9px; background: #c5a7f4; color: #16111d; font-size: 14px; }
.upload-main svg { width: 18px; height: 18px; }
.event-screen .gallery { gap: 5px; }
.event-screen .photo { border: 0; border-radius: 3px; background: transparent; }
.event-screen .photo img { aspect-ratio: 1; }
.event-screen:not(.organizer-screen) .photo .caption { padding: 4px 2px 7px; color: #aaa5b4; font-size: 11px; }
.gallery-heading { margin: 19px 0 9px; color: #e7e4ee; font-size: 15px; font-weight: 600; }
.album-info { margin-top: 18px; color: #aaa5b4; font-size: 12px; }
.album-info summary { cursor: pointer; }
.album-info p { line-height: 1.5; }
.event-screen .search-field { min-height: 48px; border: 0; border-radius: 10px; background: #202127; }
.event-screen .search-field input { min-height: 48px; font-size: 16px; }
.event-screen .list-label { margin: 24px 0 12px; color: #d7d5db; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.event-screen .song-list { border: 0; border-radius: 0; background: transparent; }
.event-screen .song,
.event-screen .song-list .song { gap: 12px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid #222329; border-radius: 0; background: transparent; }
.event-screen .song img,
.event-screen .art { width: 52px; height: 52px; border-radius: 5px; }
.event-screen .song strong { font-size: 13px; font-weight: 600; }
.event-screen .song small { font-size: 11px; }
.event-screen .vote-controls { display: flex; align-items: center; gap: 5px; border: 1px solid #393840; border-radius: 8px; padding: 0 6px 0 0; color: #d2b5f6; font-size: 13px; }
.event-screen .vote-controls button { min-width: 34px; min-height: 35px; padding: 0; border: 0; background: transparent; color: inherit; }
.event-screen .vote-controls button[data-value="-1"] { display: none; }
.event-screen .vote-controls button.active { color: #d2b5f6; }
.event-screen .spotify-link { font-size: 10px; }
.event-screen .nav { max-width: 430px; background: #0d0e12; border-top-color: #222329; }
.event-screen .nav button { position: relative; min-height: 60px; border-radius: 0; color: #aaa6b2; font-size: 11px; font-weight: 500; }
.event-screen .nav button.active { background: transparent; color: #d2b5f6; }
.event-screen .nav button.active::after { content: ""; position: absolute; bottom: 1px; width: 64px; height: 2px; border-radius: 2px; background: #c5a7f4; }
.event-screen .nav svg { width: 20px; height: 20px; }
.overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.overview-actions button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 8px; border-radius: 9px; background: #202127; font-size: 12px; }
.overview-actions svg { width: 16px; height: 16px; }
.event-screen .overview-tabs { margin: 18px 0 14px; border-radius: 9px; background: #1d1e23; }
.event-screen .overview-tabs button { min-height: 40px; border-radius: 7px; font-size: 13px; }
.event-screen .overview-tabs button.active { border: 0; background: #c5a7f4; color: #18121f; }
.overview-count { color: #aaa6b2; font-size: 12px; }
.overview-requests .song { padding: 9px 0; }
.overview-requests .song .pill { display: none; }
.overview-requests .song + .row { margin: -53px 0 15px auto; justify-content: flex-end; position: relative; width: max-content; }
.overview-requests .song + .row button { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.overview-requests .song + .row button:not([data-status="played"]) { display: none; }
.overview-hint { margin: 4px 0 12px; font-size: 12px; }
.owner-tools { margin: 20px 0; padding: 12px 14px; border: 1px solid #292930; border-radius: 10px; color: #c9c4d0; font-size: 12px; }
.owner-tools summary { cursor: pointer; font-weight: 600; }
.owner-tools > .stack { margin-top: 16px; }
.owner-tools h2 { margin: 0; font-size: 14px; }
.owner-tools .field { font-size: 12px; }
.owner-tools input { min-height: 42px; padding: 10px; font-size: 14px; }
.owner-tools button { min-height: 40px; font-size: 12px; }
.event-heading:has(.dj-logout) { position: relative; }
.dj-logout { position: absolute; top: 0; right: 0; min-height: 30px; padding: 4px 8px; border: 1px solid #303039; border-radius: 6px; background: #191a20; color: #aaa6b2; font-size: 11px; }
@media (max-width: 360px) {
  .event-screen { padding-inline: 12px; }
  .event-screen .song { gap: 8px; }
  .event-screen .song img,
  .event-screen .art { width: 44px; height: 44px; }
}
.auth {
  padding-top: 10vh;
}
.auth h1 {
  font-size: 2.1rem;
}
.auth-page {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  background: #0b0b10;
}
.auth-header { width: 100%; max-width: 1180px; margin: 0 auto; }
.auth-brand { color: #b492f6; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.auth-content { width: min(100%, 380px); margin: auto; padding: 34px 0; }
.auth-content h1 { margin: 0 0 6px; text-align: center; font-size: clamp(28px, 6vw, 34px); font-weight: 800; }
.auth-subtitle { margin: 0 0 30px; text-align: center; color: #a7a3b0; font-size: 13px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .field { color: #d6d3dd; font-size: 12px; font-weight: 500; }
.auth-form .field input { min-height: 46px; margin-top: 7px; padding: 11px 12px; border-color: #292832; border-radius: 7px; background: #17171f; font-size: 16px; }
.auth-form .field input::placeholder { color: #77737f; }
.password-wrap { position: relative; display: block; }
.auth-form .password-wrap input { padding-right: 52px; }
.password-wrap button { position: absolute; top: 8px; right: 2px; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; background: transparent; color: #9c97a8; }
.password-wrap svg { width: 19px; height: 19px; }
.auth-forgot { width: max-content; min-height: 28px; margin: -11px 0 0 auto; padding: 0; border: 0; background: none; color: #b492f6; font-size: 12px; font-weight: 500; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 7px; background: #9d78ef; font-size: 14px; font-weight: 700; }
.auth-switch { margin: 20px 0 0; text-align: center; color: #aaa5b2; font-size: 12px; }
.auth-switch button { min-height: 28px; padding: 0; border: 0; background: none; color: #b492f6; font-size: inherit; }
.auth-guest { margin-top: 26px; padding-top: 25px; border-top: 1px solid #24232c; text-align: center; }
.auth-guest h2 { margin: 0 0 5px; font-size: 15px; }
.auth-guest p { margin: 0; color: #aaa5b2; font-size: 12px; }
.auth-footer { width: 100%; margin: 0 auto; color: #716d7b; text-align: center; font-size: 11px; }
.license-onboarding { width: min(100%, 430px); margin: 0 auto; padding: calc(58px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom)); background: #0b0b10; }
.license-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 28px; }
.license-header .auth-brand { font-size: 20px; }
.license-header > button { position: absolute; left: -8px; top: -8px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 29px; font-weight: 400; }
.license-step-label { margin-top: 42px; color: #aaa5b2; text-align: center; font-size: 14px; }
.license-onboarding h1 { margin: 11px 0 0; text-align: center; font-size: clamp(30px, 8vw, 37px); line-height: 1.16; letter-spacing: -.035em; }
.license-subtitle { margin: 10px 0 0; color: #aaa5b2; text-align: center; font-size: 16px; }
.license-form { display: flex; flex: 1; flex-direction: column; gap: 15px; min-height: 0; margin-top: 45px; }
.license-onboarding:has(#create-party) .license-form { margin-top: 26px; }
.license-form .field { color: #f1eff5; font-size: 14px; font-weight: 600; }
.license-form .field input { width: 100%; min-height: 53px; margin-top: 8px; padding: 12px 16px; border: 1px solid #53515a; border-radius: 8px; background: #17171e; color: #f5f3f8; font-size: 17px; }
.license-form .field input::placeholder { color: #b6b2bc; }
.license-form .password-wrap input { padding-right: 56px; }
.license-hint { margin: -9px 0 0; color: #aaa5b2; font-size: 13px; }
.license-footer { margin-top: auto; padding-top: 18px; }
.license-footer .auth-submit { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 55px; margin: 0; background: #9d78ef; color: #fff; font-size: 16px; }
.license-footer .auth-switch { margin: 14px 0 0; color: #aaa5b2; font-size: 13px; }
.license-footer .auth-switch button { font-size: 13px; }
.license-form .terms-check { margin-top: 0; font-size: 11px; line-height: 1.35; }
.license-form .terms-check a { color: #c9a7ff; }
.license-form [role="alert"]:empty { display: none; }
@media (max-height: 720px) { .license-onboarding { padding-top: 24px; } .license-step-label { margin-top: 22px; } .license-form { margin-top: 25px; } .license-form .field input { min-height: 46px; } }
@media (max-width: 420px) {
  .auth-page { padding-inline: 24px; }
  .auth-content { padding-block: 28px; }
}
.footer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
}
.confirm {
  position: fixed;
  inset: 0;
  background: #000a;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.confirm .card {
  max-width: 430px;
}
.status-line {
  margin-top: 8px;
  color: #c1b0dc;
  font-size: 0.875rem;
}
svg {
  vertical-align: middle;
}
.eventcard {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px;
  margin: 12px 0;
  border-radius: 18px;
}
.eventcard strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
progress {
  width: 100%;
  accent-color: var(--purple);
}
@media (min-width: 900px) {
  .shell {
    max-width: 900px;
    padding: 36px 40px 120px;
  }
  .nav {
    max-width: 900px;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .admin-grid > .card {
    margin: 0;
  }
  .profile {
    max-width: 540px;
    margin: 20px auto;
  }
  .auth {
    max-width: 500px;
  }
  .event-heading h1 {
    font-size: 2.1rem;
  }
}
@media (max-width: 380px) {
  .shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .linkrow {
    grid-template-columns: 1fr auto;
  }
  .linkrow .field:nth-child(2) {
    grid-row: 2;
    grid-column: 1/3;
  }
  .card {
    padding: 16px;
  }
  .song {
    gap: 8px;
  }
  .song img,
  .art {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.photo-actions button{min-height:56px}
@media(max-width:600px){.photo-actions{flex-direction:column;align-items:stretch}.photo-actions button{width:100%}}

/* Keep the event view phone-sized on wider screens as in the reference. */
.shell.reference-screen { max-width: 430px; padding: 24px 16px calc(110px + env(safe-area-inset-bottom)); }
.shell.reference-screen + .nav { max-width: 430px; background: #0d0e12; border-top-color: #222329; }
.shell.event-screen + .nav button { position: relative; min-height: 60px; border-radius: 0; color: #aaa6b2; font-size: 11px; font-weight: 500; }
.shell.event-screen + .nav button.active { background: transparent; color: #d2b5f6; }
.shell.event-screen + .nav button.active::after { content: ""; position: absolute; bottom: 1px; width: 64px; height: 2px; border-radius: 2px; background: #c5a7f4; }
.shell.event-screen + .nav svg { width: 20px; height: 20px; }
.preview-back { display: block; width: max-content; margin: 0 0 14px; min-height: 36px; padding: 6px 10px; background: #202127; font-size: 12px; }
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.share-actions button,
.share-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: #f8f7fc; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3; }
.share-actions button[data-action="print-cards"],
.share-actions button[data-action="open-print"] { grid-column: span 1; }
.share-actions a { grid-column: 1 / -1; }
.share-card { min-width: 0; }
.text-action { display: block; width: 100%; margin: 6px 0 10px; border: 0; background: transparent; color: #c5a7f4; }
@media (max-width: 420px) {
  .share-actions { grid-template-columns: 1fr; }
  .share-actions a { grid-column: auto; }
  .linkrow { grid-template-columns: 1fr auto; }
  .linkrow .field:nth-child(2) { grid-row: 2; grid-column: 1 / 3; }
}
.music-screen .music-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 17px; }
.music-screen .music-title h1 { margin: 0; }
.music-heading-main { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.music-heading-main .music-stats { gap: 5px; }
.music-title .music-stats span { min-height: 30px; }
.music-stats { display: flex; gap: 6px; align-items: center; flex: none; }
.music-title .music-stats span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; height: 29px; margin: 0; padding: 0 7px; border: 1px solid #34343b; border-radius: 7px; background: #1c1d22; color: #cdb0f2; font-size: 11px; letter-spacing: 0; }
.music-stats svg { width: 13px; height: 13px; }
.music-stats b { font-weight: 600; white-space: nowrap; }
.music-screen .search-field { margin-bottom: 0; }
.music-screen .list-label { margin-top: 22px; }
.music-screen .manual-song { margin: 12px 0 4px; color: #a9a4b3; font-size: 12px; }
.music-screen .manual-song summary { cursor: pointer; }
.music-screen .tabs { margin-top: 20px; }
.music-screen .song-note { font-size: 12px; }
.dj-profile-link { display: block; width: max-content; min-height: 36px; margin: 0 auto 18px; padding: 5px 10px; border: 0; background: transparent; color: #c5a7f4; font-size: 12px; }
.song-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.song-title strong { min-width: 0; }
.song-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 5px; border: 1px solid #34343b; border-radius: 6px; background: #1c1d22; color: #cdb0f2; font-size: 10px; font-weight: 600; white-space: nowrap; }

/* DJ controls stay inside each request and keep the same phone-sized rhythm. */
.dj-live .screen-title { margin: 20px 0 16px; }
.dj-live #dj-message-form { gap: 10px; margin: 0 0 22px; padding: 14px; border-radius: 12px; }
.dj-live #dj-message-form .field { gap: 8px; font-size: 12px; }
.dj-live #dj-message-form textarea { min-height: 64px; padding: 10px 12px; font-size: 14px; }
.dj-live #dj-message-form .primary { min-height: 42px; padding: 9px 14px; font-size: 13px; }
.dj-request { border-bottom: 1px solid #292930; padding: 5px 0 12px; }
.dj-request:last-child { border-bottom: 0; }
.dj-live .dj-request .song { margin: 0; padding: 8px 0 6px; border: 0; background: transparent; }
.dj-live .dj-request .song img,
.dj-live .dj-request .art { width: 44px; height: 44px; }
.dj-live .dj-request .song strong { font-size: 14px; }
.dj-live .dj-request .song small { font-size: 12px; color: #aaa6b2; }
.dj-live .dj-request .song-actions { gap: 6px; margin: 2px 0 0 56px; }
.dj-live .dj-request .song-actions button { min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 11px; line-height: 1; }
.dj-live .dj-request .song-actions button[aria-pressed="true"] { border-color: #b99af1; color: #d2b5f6; }
@media (max-width: 360px) { .dj-live .dj-request .song-actions { margin-left: 52px; } }

/* Four supplied Festappen references: one compact screen per role. */
:root { --panel: #14171b; --line: #333841; --muted: #b8b6c9; --purple: #d3a4f5; background: #0b0d0f; }
.shell.reference-screen { max-width: 480px; padding: 24px 20px calc(94px + env(safe-area-inset-bottom)); background: #0b0d0f; }
.shell.reference-screen + .nav { max-width: 480px; background: #0b0d0ff5; }
.shell.dj-screen { max-width: 720px; }
.event-screen .event-heading { margin-bottom: 28px; }
.event-screen .event-name { font-size: 15px; color: #f5f5f7; }
.event-screen .event-date { margin-top: 4px; font-size: 14px; color: #b8b6c9; }
.screen-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.screen-heading span { color: #b8b6c9; font-size: 14px; white-space: nowrap; }
.event-screen .screen-title, .event-screen .music-title h1 { font-size: 32px; margin-bottom: 18px; }
.photo-main-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.photo-main-actions button { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 8px; font-size: 13px; }
.photo-main-actions svg { width: 18px; height: 18px; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 72px 10px 20px; text-align: center; }
.photo-empty svg { width: 58px; height: 58px; color: #9b95a6; margin-bottom: 14px; }
.photo-empty strong { font-size: 17px; }
.photo-empty .primary { width: 100%; margin-top: 24px; }
.event-screen .gallery { gap: 6px; }
.event-screen .photo { overflow: hidden; border-radius: 10px; }
.event-screen .photo img { display: block; aspect-ratio: 1; width: 100%; object-fit: cover; }
.owner-priority { margin: 12px 0 12px; color: #b8b6c9; font-size: 13px; }
.event-screen .search-field { border: 1px solid #333841; background: #14171b; }
.event-screen .song, .event-screen .song-list .song { min-height: 68px; gap: 12px; }
.event-screen .song .grow { min-width: 0; }
.event-screen .song strong { font-size: 14px; }
.event-screen .song small { font-size: 12px; color: #b8b6c9; }
.event-screen .song .spotify-link { display: none; }
.event-screen .song.search-result .spotify-link { display: inline-flex; }
.event-screen .vote-controls { min-width: 0; padding: 0; border: 0; }
.event-screen .vote-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 52px; min-height: 44px; padding: 5px 7px; border: 1px solid #333841; border-radius: 10px; background: #14171b; color: #d3a4f5; font-size: 13px; }
.event-screen .vote-controls svg { width: 18px; height: 18px; }
.event-screen .song .song-tag { margin-top: 4px; }
.request-score { display: inline-flex; align-items: center; gap: 3px; flex: none; color: #d3a4f5; font-size: 15px; }
.request-score svg { width: 20px; height: 20px; }
.song-more { min-width: 40px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #b8b6c9; font-size: 22px; }
.song-menu { display: flex; justify-content: flex-end; margin: -2px 0 8px; }
.song-menu button { min-height: 44px; font-size: 13px; }
.played-list { margin: 18px 0; border: 1px solid #333841; border-radius: 10px; padding: 0 14px; }
.played-list summary { padding: 14px 0; color: #b8b6c9; cursor: pointer; }
.played-list .song { opacity: .72; }
.guest-dj-mini { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 90px; padding: 0; border: 0; background: none; font-size: 11px; }
.guest-dj-mini img, .guest-dj-fallback { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f5f5f7; }
.music-title .guest-dj-mini span { height: auto; margin: 0; border-radius: 0; background: none; }
.music-title .guest-dj-mini .guest-dj-fallback { width: 44px; height: 44px; border-radius: 50%; background: #f5f5f7; }
.guest-dj-mini span:last-child { max-width: 98px; white-space: normal; line-height: 1.1; }
.guest-dj-mini span:last-child { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.guest-dj-mini span:last-child svg { width: 12px; height: 12px; flex: none; color: #d3a4f5; }
.guest-dj-mini { min-width: 68px; max-width: 82px; min-height: 86px; gap: 2px; color: #f1eef5; }
.guest-dj-mini .guest-dj-avatar { position: relative; display: block; width: 42px; height: 42px; margin: 0 auto 2px; background: none; }
.guest-dj-mini .guest-dj-avatar img, .guest-dj-mini .guest-dj-avatar .guest-dj-fallback { width: 42px; height: 42px; }
.guest-dj-live-dot { position: absolute; right: -2px; bottom: 1px; width: 9px; height: 9px; border: 2px solid #0b0d0f; border-radius: 50%; background: #d3a4f5; animation: dj-live-pulse 2.4s ease-in-out infinite; }
.guest-dj-mini .guest-dj-label { display: inline-flex; align-items: center; gap: 3px; color: #d3a4f5; font-size: 10px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.guest-dj-mini .guest-dj-label svg { width: 11px; height: 11px; }
.guest-dj-mini strong { max-width: 82px; overflow: hidden; color: #f1eef5; font-size: 11px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
@keyframes dj-live-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .guest-dj-live-dot { animation: none; } }
.dj-history { margin: 24px auto 0; max-width: 36ch; text-align: left; }
.dj-history h3 { margin: 0 0 8px; font-size: 14px; }
.dj-history .dj-bio { margin: 0; }
.dj-profile-links { display: grid; gap: 8px; }
.dj-profile-links h3 { margin: 8px 0 0; font-size: 14px; }
.dj-profile-link-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 8px; }
.dj-profile-link-row .field { min-width: 0; font-size: 12px; }
.dj-profile-link-row input { width: 100%; min-width: 0; }
@media (max-width: 350px) { .dj-profile-link-row { grid-template-columns: 1fr; } }

/* Adminoversigt: enkel festliste efter den godkendte mobilreference. */
.platform-shell { max-width: 680px; padding: 34px 24px 80px; background: #0b0d0f; }
.platform-shell .topbar { margin: 0 0 12px; }
.platform-shell .brand { color: #c58cf2; font-size: 19px; font-weight: 700; }
.platform-menu-trigger { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; background: none; }
.platform-menu-trigger span { display: block; height: 2px; border-radius: 2px; background: #f5f3f8; }
.platform-title { margin: 0 0 16px; font-size: clamp(36px, 9vw, 55px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.platform-create { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin: 0 0 18px; padding: 10px 16px; border: 0; border-radius: 10px; background: #c58cf2; color: #100c16; font-size: 18px; font-weight: 700; }
.platform-create span { font-size: 27px; line-height: 1; font-weight: 400; }
.platform-search { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border: 1px solid #363b43; border-radius: 10px; background: #15181c; }
.platform-search > span { color: #bcb9c9; font-size: 32px; line-height: 1; transform: translateY(-2px); }
.platform-search input { min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #f8f7fc; font-size: 16px; }
.platform-search input::placeholder { color: #aaa9b8; }
.platform-events { margin-top: 18px; border-top: 1px solid #30333a; }
.platform-event { border-bottom: 1px solid #30333a; }
.platform-event-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 84px; padding: 14px 4px; border: 0; border-radius: 0; background: none; text-align: left; }
.platform-event-head strong { display: block; overflow-wrap: anywhere; font-size: 18px; font-weight: 700; line-height: 1.25; }
.platform-event-head small { display: block; margin-top: 5px; color: #b2b0be; font-size: 15px; font-weight: 400; }
.platform-chevron { flex: none; font-size: 30px; font-weight: 300; line-height: 1; }
.platform-role-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 0 16px; }
.platform-role-links button { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 44px; padding: 7px 5px; border: 1px solid #505460; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
.platform-role-links button span { font-size: 16px; }
.platform-license-panel, .platform-menu { margin: 0 0 18px; padding: 18px; border: 1px solid #363b43; border-radius: 12px; background: #14171b; }
.platform-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.platform-panel-head h2 { margin: 0; font-size: 20px; }
.platform-panel-head button { min-height: 44px; width: 44px; padding: 0; background: none; font-size: 25px; }
.platform-license-panel p, .platform-menu p { color: #b8b6c9; font-size: 14px; }
.platform-license-panel .field { margin: 14px 0; }
.platform-license-panel .full { width: 100%; }
.platform-menu details { margin: 14px 0; }
.platform-menu summary { min-height: 44px; cursor: pointer; }
.platform-menu .row { gap: 8px; margin: 8px 0; }
.platform-menu .row span { min-width: 0; overflow-wrap: anywhere; }
.platform-menu .row small { display: block; }
.platform-menu > button { width: 100%; }
.platform-empty { padding: 28px 4px; color: #b8b6c9; }
.platform-shell .footer { display: none; }
@media (max-width: 350px) { .platform-shell { padding-inline: 18px; } .platform-role-links { gap: 5px; } .platform-role-links button { font-size: 11px; } }

/* Gæstens musikside og DJ-profil fra de nye mobilreferencer. */
.guest-dj-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 104px; margin: 0 0 18px; padding: 14px; border: 1px solid #2e3038; border-radius: 17px; background: #121419; text-align: left; }
.guest-dj-card-photo { position: relative; flex: none; width: 72px; height: 72px; }
.guest-dj-card-photo img, .guest-dj-card-photo .guest-dj-fallback { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #f5f5f7; }
.guest-live-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 23px; padding: 2px 9px; border: 1px solid #33343e; border-radius: 999px; background: #0b0d11; color: #f4f2f6; font-size: 11px; font-weight: 500; white-space: nowrap; }
.guest-live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #bd79f0; animation: dj-live-pulse 2.4s ease-in-out infinite; }
.guest-dj-card-photo .guest-live-pill { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); }
.guest-dj-card-copy { display: grid; gap: 4px; min-width: 0; }
.guest-dj-card-copy small { color: #d3a4f5; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.guest-dj-card-copy strong { overflow: hidden; color: #f7f5f8; font-size: 20px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.guest-dj-card-arrow { margin-left: auto; color: #c7a2ee; font-size: 32px; font-weight: 300; }
.music-screen:not(.organizer-screen) .search-field { display: flex; align-items: center; width: 100%; height: 50px; margin: 0 0 20px; padding: 0 12px; border: 1px solid #343840; border-radius: 14px; background: #15181b; }
.music-screen:not(.organizer-screen) .search-field input { min-width: 0; padding-inline: 10px; border: 0; background: transparent; }
.guest-request-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.guest-request-heading h1 { margin: 0; font-size: 18px; font-weight: 700; }
.guest-request-heading .music-stats { gap: 5px; }
.guest-request-heading .music-stats span { display: inline-flex; align-items: center; gap: 3px; width: auto; min-height: 27px; padding: 3px 5px; border: 1px solid #34343b; border-radius: 7px; background: #1c1d22; color: #d3a4f5; font-size: 11px; }
.guest-request-heading .music-stats svg { width: 12px; height: 12px; }
.guest-dj-page { max-width: 480px; margin: 0 auto; }
.guest-dj-back, .dj-editor-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 25px; font-weight: 300; }
.guest-dj-back span, .dj-editor-back span { font-size: 15px; font-weight: 400; }
.guest-dj-page > h1 { margin: 12px 0 20px; font-size: 32px; letter-spacing: -.03em; }
.guest-dj-profile { text-align: center; }
.guest-dj-profile .dj-portrait { position: relative; width: 128px; height: 128px; margin: 0 auto 28px; }
.guest-dj-profile .guest-live-pill { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); }
.guest-dj-profile h2 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.03em; }
.guest-dj-affiliation { margin: 0 0 18px; color: #f3f1f5; font-size: 15px; }
.guest-dj-bio { max-width: 32ch; margin: 0 auto 20px; color: #c9c5cf; line-height: 1.5; white-space: pre-wrap; }
.guest-dj-profile-message { padding: 12px; border-left: 2px solid #c68cf0; color: #e1d6eb; text-align: left; }
.guest-dj-links { display: grid; gap: 8px; margin: 22px 0; text-align: left; }
.guest-dj-links a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid #30343c; border-radius: 10px; background: #15181c; color: #f2f0f5; font-size: 14px; }
.guest-dj-links svg { width: 20px; height: 20px; color: #ccb5e8; }
.guest-dj-links a span:last-child { margin-left: auto; color: #ccb5e8; font-size: 19px; }
.guest-dj-booking { display: grid; place-items: center; min-height: 54px; margin: 20px 0 8px; border-radius: 10px; background: #bd7feb; color: #100d15; font-weight: 700; }
.guest-dj-profile > small { color: #b8b6c9; }
.dj-profile-editor { max-width: 480px; padding: 18px 20px 50px; background: #0b0d0f; }
.dj-profile-editor h1 { margin: 12px 0 18px; font-size: 32px; letter-spacing: -.03em; }
.dj-editor-photo { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 20px; }
.dj-editor-photo > div { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #1d1d26; }
.dj-editor-photo img, .dj-editor-photo > div > span { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; }
.dj-editor-photo button { display: inline-flex; align-items: center; gap: 8px; padding: 7px; border: 0; background: none; color: #b8b6c9; font-size: 14px; }
.dj-editor-photo svg { width: 20px; height: 20px; color: #d3a4f5; }
.dj-editor-form { display: grid; gap: 13px; }
.dj-editor-form .field { margin: 0; color: #b8b6c9; font-size: 13px; }
.dj-editor-form .field input, .dj-editor-form .field textarea { margin-top: 5px; border-color: #363b43; border-radius: 10px; background: #15181c; font-size: 16px; }
.dj-editor-form .field textarea { min-height: 72px; }
.dj-editor-form h2 { margin: 8px 0 0; font-size: 20px; }
.dj-editor-form > p { margin: -8px 0 0; color: #b8b6c9; font-size: 13px; }
.dj-editor-links { display: grid; }
.dj-editor-link { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 74px; border-bottom: 1px solid #30343c; color: #b8b6c9; font-size: 13px; }
.dj-editor-link svg { width: 23px; height: 23px; color: #e6e4ed; }
.dj-editor-link input[type=text] { display: block; width: 100%; min-height: 44px; margin-top: 3px; padding: 9px 12px; border: 1px solid #363b43; border-radius: 10px; background: #15181c; font-size: 15px; }
.dj-editor-form > .primary { min-height: 52px; margin-top: 6px; background: #bd7feb; color: #100d15; }
.dj-editor-preview { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border: 0; background: none; font-size: 14px; font-weight: 400; }
.dj-editor-preview svg { width: 18px; height: 18px; color: #d3a4f5; }
.dj-profile-editor .footer { display: none; }
@media (prefers-reduced-motion: reduce) { .guest-live-pill i { animation: none; } }

/* Første besøg på gæstens musikside. */
.music-intro-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .76); }
.music-intro { width: min(100%, 390px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 26px 24px 24px; border: 1px solid #555963; border-radius: 20px; background: #1a1c20; box-shadow: 0 18px 55px rgba(0,0,0,.5); color: #f7f5f8; }
.music-intro-icon { display: grid; place-items: center; margin: 0 auto 14px; color: #b98af1; }
.music-intro-icon svg { width: 40px; height: 40px; }
.music-intro h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.2; text-align: center; letter-spacing: -.025em; }
.music-intro p { margin: 0 0 20px; color: #efedf1; font-size: 15px; line-height: 1.5; }
.music-intro button { width: 100%; min-height: 52px; margin-top: 2px; border: 0; border-radius: 10px; background: #ba92ef; color: #100d16; font-size: 16px; font-weight: 700; }
.music-intro button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 350px) { .music-intro { padding: 22px 18px; } .music-intro h2 { font-size: 22px; } }
.guest-dj-message { margin: 10px 0; padding: 9px 12px; border-left: 2px solid #d3a4f5; color: #b8b6c9; font-size: 13px; }
.guest-quota { margin: 20px 0; color: #b8b6c9; font-size: 12px; }
.guest-quota summary { cursor: pointer; }
.guest-quota .music-stats { margin-top: 10px; }
.dj-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dj-title-row h1 { margin: 0; }
.dj-title-row p { margin: 5px 0 0; color: #b8b6c9; }
.dj-identity { display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 100px; text-align: center; font-size: 12px; }
.dj-title-row .dj-identity { min-height: 0; padding: 0; border: 0; background: none; }
.dj-identity img, .dj-identity > span { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #f5f5f7; }
.dj-message-trigger { display: flex; align-items: center; width: 100%; min-height: 58px; margin: 24px 0 10px; padding: 8px 2px; border: 0; border-bottom: 1px solid #333841; border-radius: 0; background: none; color: #b8b6c9; font-size: 15px; font-weight: 400; text-align: left; }
.dj-message-trigger svg { width: 25px; height: 25px; margin-right: 14px; }
.dj-message-trigger span:last-child { margin-left: auto; font-size: 28px; }
.dj-live .dj-request .song { min-height: 74px; }
.dj-live .dj-request .song img, .dj-live .dj-request .art { width: 52px; height: 52px; }
.dj-request { padding: 2px 0; }
.played-action { min-height: 42px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; font-size: 13px; }
.dj-live .dj-request .song-more { padding: 0 2px; min-width: 28px; }
.dj-live .dj-request .song-actions { display: none; }
.settings-list > button, .settings-group > button, .settings-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 14px; border: 1px solid #333841; border-radius: 10px; background: #14171b; text-align: left; font-size: 14px; font-weight: 500; }
.settings-list > button { margin: 12px 0 20px; }
.settings-list button span { color: #b8b6c9; }
.settings-group { overflow: hidden; border: 1px solid #333841; border-radius: 10px; }
.settings-group > button, .settings-switch { border: 0; border-bottom: 1px solid #333841; border-radius: 0; }
.settings-group > :last-child { border-bottom: 0; }
.settings-group svg { width: 19px; height: 19px; margin-right: 8px; }
.settings-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.settings-switch > span { width: 45px; height: 26px; border-radius: 20px; background: #4c4e56; position: relative; }
.settings-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform .2s; }
.settings-switch input:checked + span { background: #d3a4f5; }
.settings-switch input:checked + span::after { transform: translateX(19px); }
.settings-switch:focus-within { outline: 2px solid #d3a4f5; outline-offset: -2px; }
.settings-list > .settings-qr { margin: 24px 0 10px; justify-content: center; background: #d3a4f5; color: #151218; }
.settings-list > .settings-qr svg { width: 20px; height: 20px; flex: none; margin-right: 8px; }
.settings-list > .settings-guest { display: block; margin: 0 auto; width: max-content; border: 0; background: none; color: #d3a4f5; text-decoration: underline; }
.settings-list > .settings-end { display: block; margin: 22px auto; width: max-content; border: 0; background: none; color: #ff4d59; }
.qr-overlay { position: fixed; inset: 0; z-index: 100; background: #000b; display: flex; align-items: flex-end; justify-content: center; }
.qr-sheet { position: relative; width: min(100%, 480px); max-height: 94dvh; overflow-y: auto; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); border: 1px solid #333841; border-radius: 24px 24px 0 0; background: #14171b; text-align: center; }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 20px; border-radius: 8px; background: #646977; }
.sheet-close { position: absolute; top: 18px; right: 18px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 28px; }
.qr-sheet h2 { margin: 22px 0; font-size: 26px; }
.qr-sheet .qr { display: block; width: min(200px, 62vw); margin: 0 auto 22px; padding: 8px; border-radius: 10px; background: white; }
.qr-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 8px 12px; border: 1px solid #333841; border-radius: 10px; text-align: left; }
.qr-count input { width: 105px; min-height: 42px; }
.qr-sheet small { display: block; margin: 6px 0 18px; text-align: left; }
.qr-sheet > button.full { margin-top: 9px; }
@media (max-width: 360px) { .played-action { font-size: 11px; padding: 7px; } .dj-identity { max-width: 66px; } .dj-identity img, .dj-identity > span { width: 46px; height: 46px; } }
.setup-page, .setup-form { width: min(100%, 480px); margin: 0 auto; padding: 22px 20px 40px; }
.setup-shell { height: 100dvh; overflow-y: auto; background: #0b0d0f; }
.setup-page .auth-header, .auth-page:has(.setup-progress) .auth-header { display: flex; justify-content: space-between; align-items: center; }
.auth-page:has(.setup-progress) .auth-content { margin: 36px auto 0; }
.auth-page:has(.setup-progress) .auth-content h1, .auth-page:has(.setup-progress) .auth-subtitle { text-align: left; }
.auth-page:has(.setup-progress) .auth-guest, .auth-page:has(.setup-progress) .auth-footer { display: none; }
.auth-page:has(.setup-progress) .setup-progress { width: 100%; max-width: 380px; margin: 8px auto 0; }
.setup-form { padding-top: 14px; }
.setup-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #d8d5de; font-size: 13px; }
.setup-progress { display: flex; justify-content: flex-end; gap: 4px; margin: 0 0 36px; }
.setup-progress span { width: 24px; height: 3px; border-radius: 4px; background: #4a4c52; }
.setup-progress span.active { background: #d3a4f5; }
.setup-form h1, .setup-page h1 { font-size: 25px; margin-bottom: 10px; }
.setup-form .field { margin: 8px 0; font-size: 13px; }
.setup-form .primary { margin-top: 16px; }
.setup-skip { display: block; margin: 14px auto 4px; border: 0; background: none; color: #d3a4f5; text-decoration: underline; }
.setup-form > small { display: block; text-align: center; }
.dj-found { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #333841; border-radius: 10px; }
.dj-found img, .dj-found svg { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dj-found span { flex: 1; }
.dj-found small { display: block; }
.dj-invite-help { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #333841; color: #b8b6c9; font-size: 13px; }
.dj-invite-help summary { cursor: pointer; }
.dj-invite-help button { margin: 8px 0; }
.terms-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #b8b6c9; }
.terms-check input { width: 20px; height: 20px; min-height: 20px; accent-color: #d3a4f5; }
.legal-page { width: min(100%, 680px); height: 100dvh; overflow-y: auto; margin: 0 auto; padding: 32px 20px 80px; }
.legal-page h1 { margin: 28px 0; font-size: 30px; }
.legal-page h2 { margin-top: 28px; }
.legal-page p { color: #b8b6c9; }
.dj-profile-settings { margin: 28px 0; padding: 14px; border-top: 1px solid #333841; color: #b8b6c9; }
.dj-profile-settings summary { cursor: pointer; }
.dj-profile-settings form { margin-top: 14px; }
.dj-profile-settings > button { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0; }
.dj-profile-settings > button svg { width: 18px; height: 18px; }
.played-tag { border-color: #303039; background: #191a20; color: #b4afbd; }
.music-screen .song-list .song.is-played { padding-inline: 7px; border-radius: 6px; background: #08090c; }
.music-screen .song.is-played img { filter: grayscale(.8) brightness(.6); }
.music-screen .song.is-played strong,
.music-screen .song.is-played small { color: #96919f; }
@media (max-width: 350px) {
  .music-title .music-stats span { padding: 0 5px; }
  .music-stats { gap: 4px; }
}
