/* ═══════════════════════════════════════════════════════════
   SETS TAB — Festival Crew Coordination
   Real-time set attendance + crowd positioning
   ═══════════════════════════════════════════════════════════ */

/* ─── Header ─────────────────────────────────────────────── */
.sets-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 16px 10px; gap: 12px;
}
.sets-header-titles { min-width: 0; }
.sets-header h2 {
  font-size: 17px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(135deg, #ffb347, #ff6b9d, #c471ed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin: 0;
}
.sets-sub {
  font-size: 11px; color: #7b8ba5; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sets-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; border: none;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
  font-family: inherit;
}
.sets-add-btn:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(196,113,237,.3); }
.sets-add-btn:active { transform: scale(.96); }
.sets-add-btn svg { width: 14px; height: 14px; }

/* ─── Feed / Timeline ────────────────────────────────────── */
.sets-feed {
  padding: 4px 14px 24px; display: flex; flex-direction: column; gap: 6px;
}

/* ─── Day Label ─────────────────────────────────────────── */
.sets-day-lbl {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 4px; margin-top: 4px;
}
.sets-day-lbl:first-child { margin-top: 0; }
.sets-day-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.sets-day-name {
  font-size: 12px; font-weight: 700; color: #f0f2f8;
}
.sets-day-ct {
  font-size: 11px; font-weight: 500; color: #7b8ba5;
}

/* ─── Sun Divider (sunrise / sunset) ───────────────────── */
.sets-sun-div {
  display: flex; align-items: center; padding: 8px 0 4px;
}
.sets-sun-dashed {
  flex: 1; height: 1px;
}
.sets-sun-div.sunset .sets-sun-dashed { border-top: 1px dashed rgba(255,179,71,.2); }
.sets-sun-div.sunrise .sets-sun-dashed { border-top: 1px dashed rgba(124,156,255,.2); }
.sets-sun-icon-wrap {
  padding: 0 10px; display: flex; align-items: center; gap: 6px;
}
.sets-sun-icon-wrap svg { width: 14px; height: 14px; flex-shrink: 0; }
.sets-sun-icon-wrap span {
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.sets-sun-div.sunset .sets-sun-icon-wrap span { color: #ffb347; }
.sets-sun-div.sunrise .sets-sun-icon-wrap span { color: #7c9cff; }

/* ─── Card ───────────────────────────────────────────────── */
.sets-card {
  background: rgba(15,15,30,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
  cursor: pointer;
}
.sets-card:hover { border-color: rgba(255,255,255,.12); }
.sets-card.expanded { border-color: rgba(196,113,237,.2); }
.sets-card.meetup { border-color: rgba(255,179,71,.15); background: rgba(255,179,71,.04); }
.sets-card.live { border-color: rgba(255,107,157,.3); box-shadow: 0 0 20px rgba(255,107,157,.1); }
.sets-card.overlap { border-color: rgba(248,113,113,.3); }

/* ─── Card Top Row ───────────────────────────────────────── */
.sets-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
}
.sets-avi {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, #c471ed, #7c9cff);
  overflow: hidden;
}
.sets-avi img { width: 100%; height: 100%; object-fit: cover; }
.sets-card.meetup .sets-avi {
  background: linear-gradient(135deg, #ffb347, #ff6b9d);
}
.sets-info {
  flex: 1; min-width: 0;
}
.sets-info-name {
  font-size: 14px; font-weight: 600; color: var(--text-primary, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sets-info-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11px; color: #7b8ba5; margin-top: 2px;
}
.sets-pos-tag {
  display: inline-flex; padding: 2px 6px; border-radius: 8px;
  background: rgba(196,113,237,.15); color: #c471ed;
  font-size: 10px; font-weight: 600;
}
.sets-ovlp-tag {
  display: inline-flex; padding: 2px 6px; border-radius: 8px;
  background: rgba(248,113,113,.15); color: #f87171;
  font-size: 10px; font-weight: 600;
}
.sets-meetup-tag {
  display: inline-flex; padding: 2px 6px; border-radius: 8px;
  background: rgba(255,179,71,.15); color: #ffb347;
  font-size: 10px; font-weight: 600;
}

/* ─── People Avatars (stacked) ───────────────────────────── */
.sets-ppl {
  display: flex; flex-shrink: 0; margin-right: 4px;
}
.sets-ppl-avi {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(15,15,30,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  margin-left: -6px; overflow: hidden;
}
.sets-ppl-avi:first-child { margin-left: 0; }
.sets-ppl-avi img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sets-ppl-overflow {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(15,15,30,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; color: #7b8ba5;
  background: rgba(255,255,255,.08); margin-left: -6px;
}

/* ─── Plus/Check Button ──────────────────────────────────── */
.sets-plus-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  color: #fff; cursor: pointer; flex-shrink: 0;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), opacity .2s;
}
.sets-plus-btn:hover { transform: scale(1.1); }
.sets-plus-btn:active { transform: scale(.9); }
.sets-plus-btn.joined {
  background: rgba(255,255,255,.08); color: #7b8ba5;
}
.sets-plus-btn svg { width: 16px; height: 16px; }

/* ─── Expanded Content ───────────────────────────────────── */
.sets-expand {
  display: none; padding: 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sets-card.expanded .sets-expand { display: block; padding-top: 10px; }

/* Edit / Remove buttons at top of expanded section */
.sets-expand-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; margin-bottom: 8px;
}
.sets-edit-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #c8cdd8; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.sets-edit-btn:hover { background: rgba(196,113,237,.08); border-color: rgba(196,113,237,.25); color: #c471ed; }
.sets-edit-btn svg { width: 11px; height: 11px; }
.sets-remove-btn {
  padding: 4px 10px; border-radius: 14px;
  background: none; border: 1px solid rgba(248,113,113,.18);
  color: #f87171; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.sets-remove-btn:hover { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); }

/* Small uppercase label above grid */
.sets-grid-label {
  font-size: 10px; font-weight: 600; color: #7b8ba5;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 6px;
}

/* ─── Crowd Grid ─────────────────────────────────────────── */
.sets-grid-wrap {
  display: flex; flex-direction: column; gap: 8px;
}
.sets-stg-bar {
  text-align: center; padding: 4px 0;
  background: linear-gradient(135deg, rgba(255,179,71,.15), rgba(255,107,157,.1));
  border-radius: 6px 6px 0 0;
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #ffb347;
}
.sets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.sets-zone {
  min-height: 32px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  font-size: 10px; color: #7b8ba5;
  transition: background .2s, border-color .2s;
}
.sets-zone.sel {
  background: rgba(196,113,237,.12);
  border-color: rgba(196,113,237,.25);
}
.sets-zone.you {
  border-color: rgba(255,107,157,.4);
  box-shadow: 0 0 8px rgba(255,107,157,.15);
}
.sets-zone.interactive {
  cursor: pointer; min-height: 44px;
}
.sets-zone.interactive:hover {
  background: rgba(196,113,237,.08);
  border-color: rgba(255,255,255,.12);
}
/* (Older .sets-zone-name rule consolidated into the one near .sets-zone-code
    below — keeping a single source of truth so duplicate rules don't fight.) */

/* ─── Name Legend ─────────────────────────────────────────── */
.sets-names {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px 0 0; font-size: 11px;
}
.sets-names-group {
  display: inline-flex; align-items: center; gap: 4px;
}
.sets-names-badge {
  font-size: 9px; font-weight: 700; padding: 1px 4px;
  border-radius: 4px; background: rgba(255,255,255,.08);
  color: #7b8ba5;
}
.sets-names-list { color: #fff; font-weight: 500; }

/* ─── Note ───────────────────────────────────────────────── */
.sets-note {
  margin-top: 8px; padding: 6px 10px;
  border-left: 2px solid #ffb347;
  font-size: 12px; font-style: italic; color: #7b8ba5;
  background: rgba(255,179,71,.04); border-radius: 0 6px 6px 0;
}
.sets-note-author { font-weight: 600; color: #fff; font-style: normal; }

/* ─── Live Banner ────────────────────────────────────────── */
.sets-live-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 8px; padding: 10px 14px;
  background: rgba(255,107,157,.08);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,107,157,.2);
  border-radius: 12px;
}
.sets-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff6b9d;
  animation: sets-pulse 1.5s ease-in-out infinite;
}
@keyframes sets-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.sets-live-info { flex: 1; min-width: 0; }
.sets-live-name { font-size: 13px; font-weight: 600; color: #fff; }
.sets-live-time { font-size: 11px; color: #7b8ba5; }
.sets-live-update-btn {
  padding: 6px 12px; border-radius: 16px; border: none;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  color: #fff; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.sets-live-update-btn:hover { transform: scale(1.05); }

/* ─── Live Card ──────────────────────────────────────────── */
.sets-live-card {
  margin: 0 12px 12px; padding: 16px;
  background: rgba(15,15,30,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,107,157,.2);
  border-radius: 14px;
}
.sets-live-card .sets-grid { margin-bottom: 10px; }
.sets-live-card .sets-zone { min-height: 44px; }
.sets-live-note-input {
  width: 100%; padding: 8px 12px; margin-top: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; color: #fff; font-size: 12px;
  font-family: inherit; outline: none; resize: none;
  transition: border-color .2s;
}
.sets-live-note-input:focus { border-color: rgba(255,107,157,.3); }
.sets-live-saved {
  font-size: 11px; color: #4ade80; margin-top: 4px;
  opacity: 0; transition: opacity .3s;
}
.sets-live-saved.show { opacity: 1; }

/* ─── Modal — centered on desktop, full-bleed sheet on mobile ───
   Was a bottom sheet on all viewports, which made the Save button
   require scrolling down to find on desktop. Now: centered card
   with proper rounded corners and a constrained max-height that
   internally scrolls. Mobile still gets a bottom-sheet feel but
   with all sides rounded and full max-height. */
.sets-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sets-modal.open { opacity: 1; pointer-events: all; }
.sets-modal-content {
  width: 100%; max-width: 540px; max-height: 88vh;
  overflow-y: auto;
  /* Reserve space at the bottom so the sticky save button doesn't cover the
     last form field when scrolled to bottom. */
  padding: 24px 24px 96px;
  background: rgba(15,15,30,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  transform: translateY(20px) scale(.98);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  position: relative;
}

/* Save button — pinned to the bottom of the modal's scroll viewport so it's
   always reachable, even if the content above is tall. */
.sets-modal-content > .sets-submit-btn {
  position: sticky;
  bottom: -24px;            /* cancel the modal's bottom padding so it hits the edge */
  margin: 8px -24px -96px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 0 0 20px 20px;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  box-shadow: 0 -6px 20px rgba(0,0,0,.35);
  z-index: 5;
}
.sets-modal-content > .sets-leave-btn {
  /* Sits just above the sticky save button — its position is fine in normal
     flow because the bottom padding gives it room. */
  position: relative;
  margin-top: 8px;
  z-index: 4;
}
.sets-modal.open .sets-modal-content { transform: translateY(0) scale(1); }

@media (max-width: 600px) {
  .sets-modal { padding: 0; align-items: flex-end; }
  .sets-modal-content {
    max-width: none;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}
.sets-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.sets-modal-header h3 {
  font-size: 16px; font-weight: 700; color: #fff; margin: 0;
}
.sets-modal-sub {
  font-size: 11px; color: #7b8ba5; margin-top: 2px;
}
.sets-modal-close {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.08); color: #7b8ba5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; font-family: inherit;
  transition: background .2s;
}
.sets-modal-close:hover { background: rgba(255,255,255,.12); }

/* ─── Search ─────────────────────────────────────────────── */
.sets-search {
  width: 100%; padding: 10px 14px; margin-bottom: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; color: #fff; font-size: 13px;
  font-family: inherit; outline: none;
  transition: border-color .2s;
}
.sets-search:focus { border-color: rgba(196,113,237,.3); }
.sets-search::placeholder { color: #7b8ba5; }
.sets-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: background .15s;
}
.sets-result:hover { background: rgba(255,255,255,.04); }
.sets-result-name { font-size: 13px; font-weight: 500; color: #fff; flex: 1; }
.sets-result-genre { font-size: 11px; color: #7b8ba5; }
.sets-result-add {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.sets-result-add:hover { transform: scale(1.1); }

/* ─── Form Fields ────────────────────────────────────────── */
.sets-field {
  margin-bottom: 14px;
}
.sets-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: #7b8ba5; margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: .04em;
}
.sets-field input, .sets-field select, .sets-field textarea {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; color: #fff; font-size: 13px;
  font-family: inherit; outline: none;
  transition: border-color .2s;
}
.sets-field input:focus, .sets-field select:focus, .sets-field textarea:focus {
  border-color: rgba(196,113,237,.3);
}
.sets-field select { appearance: none; cursor: pointer; }
.sets-field textarea { resize: none; min-height: 60px; }
.sets-field-row {
  display: flex; gap: 8px;
}
.sets-field-row .sets-field { flex: 1; }

/* ─── Who's Going Chips ──────────────────────────────────── */
.sets-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.sets-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  font-size: 11px; font-weight: 500; color: #fff;
}
.sets-chip-remove {
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #7b8ba5;
  font-size: 10px; cursor: pointer; border: none;
  transition: background .15s;
}
.sets-chip-remove:hover { background: rgba(248,113,113,.3); color: #f87171; }
.sets-chip-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.2); background: none;
  color: #7b8ba5; font-size: 14px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.sets-chip-add:hover { border-color: rgba(196,113,237,.4); color: #c471ed; }

/* ─── Submit Button ──────────────────────────────────────── */
.sets-submit-btn {
  width: 100%; padding: 12px; margin-top: 16px;
  border: none; border-radius: 12px;
  background: linear-gradient(135deg, #ff6b9d, #c471ed);
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}
.sets-submit-btn:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(196,113,237,.3); }
.sets-submit-btn:active { transform: scale(.98); }

.sets-leave-btn {
  width: 100%; padding: 10px; margin-top: 8px;
  border: 1px solid rgba(248,113,113,.3); border-radius: 12px;
  background: none; color: #f87171;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.sets-leave-btn:hover { background: rgba(248,113,113,.08); }

/* ─── Toast ──────────────────────────────────────────────── */
.sets-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 20px; border-radius: 14px;
  background: rgba(15,15,30,.95); border: 1px solid rgba(196,113,237,.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; z-index: 1000;
  transition: opacity .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.sets-toast.show { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.sets-toast-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  display: flex; align-items: center; justify-content: center;
}
.sets-toast-check svg { width: 12px; height: 12px; stroke: #fff; }
.sets-toast-text { font-size: 13px; font-weight: 500; color: #fff; }
.sets-toast-action {
  font-size: 12px; font-weight: 600; color: #c471ed;
  cursor: pointer; border: none; background: none; font-family: inherit;
}
.sets-toast-progress {
  position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: rgba(255,255,255,.08); border-radius: 1px;
  overflow: hidden;
}
.sets-toast-progress-bar {
  height: 100%; background: linear-gradient(90deg, #ff6b9d, #c471ed);
  border-radius: 1px; transition: width linear;
}

/* ─── Empty State ────────────────────────────────────────── */
.sets-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center; overflow: hidden;
}
.sets-empty-icon {
  width: 64px; height: 64px; max-width: 64px; max-height: 64px; margin-bottom: 16px; opacity: .6;
}
.sets-empty h3 {
  font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 6px;
}
.sets-empty p {
  font-size: 13px; color: #7b8ba5; margin: 0 0 20px;
  max-width: 260px; line-height: 1.5;
}

/* ─── Overlap Toast (inline) ─────────────────────────────── */
.sets-overlap-toast {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 6px 12px;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 10px; font-size: 12px; color: #f87171;
}
.sets-overlap-toast button {
  padding: 4px 10px; border-radius: 8px; border: none;
  font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.sets-overlap-toast .sets-overlap-confirm {
  background: rgba(248,113,113,.2); color: #f87171;
}
.sets-overlap-toast .sets-overlap-cancel {
  background: rgba(255,255,255,.08); color: #7b8ba5;
}

/* ─── Member Picker ──────────────────────────────────────── */
.sets-picker {
  max-height: 180px; overflow-y: auto;
  margin-top: 8px; padding: 4px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.sets-picker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.sets-picker-item:hover { background: rgba(255,255,255,.04); }
.sets-picker-item-avi {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.sets-picker-item-name {
  font-size: 12px; font-weight: 500; color: #fff; flex: 1;
}

/* ─── Confirm Modal ─────────────────────────────────────── */
.sets-confirm-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sets-confirm-modal.open { opacity: 1; pointer-events: all; }
.sets-confirm-content {
  max-width: 320px; width: 90%; padding: 24px;
  background: rgba(15,15,30,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; text-align: center;
}
.sets-confirm-content p {
  font-size: 14px; color: #fff; margin: 0 0 20px; line-height: 1.5;
}
.sets-confirm-actions {
  display: flex; gap: 10px; justify-content: center;
}
.sets-confirm-cancel {
  padding: 8px 20px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: none;
  color: #7b8ba5; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.sets-confirm-cancel:hover { background: rgba(255,255,255,.12); }
.sets-confirm-ok {
  padding: 8px 20px; border-radius: 10px;
  background: rgba(248,113,113,.2); border: none;
  color: #f87171; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.sets-confirm-ok:hover { background: rgba(248,113,113,.3); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (min-width: 600px) {
  .sets-feed { max-width: 520px; margin: 0 auto; }
  .sets-header { max-width: 520px; margin: 0 auto; padding: 20px 0 12px; }
  .sets-live-banner { max-width: 520px; margin: 0 auto 8px; }
  .sets-zone { min-height: 28px; }
  .sets-zone.interactive { min-height: 36px; }
}

/* ═══════════════════════════════════════════════════════════
   FESTIVAL GRID (LIB Sets — Phase 1)
   Stage × time schedule grid backed by canonical sets/ collection
   ═══════════════════════════════════════════════════════════ */

/* ─── Day Pills (jump-to-anchor) ────────────────────────────
   Live inside the sticky control bar. Clicking a pill smooth-scrolls
   the corresponding day section into view. */
.sets-day-tab {
  padding: 7px 14px; border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: #c8cdd8; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s, transform .15s cubic-bezier(.34, 1.56, .64, 1);
}
.sets-day-tab:hover {
  background: rgba(196,113,237,.08);
  border-color: rgba(196,113,237,.2);
  color: #fff;
}
.sets-day-tab.active {
  background: linear-gradient(135deg, rgba(255,179,71,.18), rgba(255,107,157,.18));
  border-color: rgba(255,179,71,.35);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   CONTROL BAR — scrolls with content (not sticky). Per Luca's
   Phase 5 feedback: "we don't need search / day pills / view
   toggle to stay on screen as pinned elements. Just the stage
   names."
   ═══════════════════════════════════════════════════════════ */
.sets-control-bar {
  display: flex; align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11,11,22,.6);
}
.sets-control-bar-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 320px;
  display: flex; align-items: center;
}
.sets-search-icon {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: #7b8ba5;
  pointer-events: none;
}
.sets-control-search {
  width: 100%;
  padding: 8px 30px 8px 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #f0f2f8;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, background .15s;
}
.sets-control-search:focus {
  border-color: rgba(196,113,237,.5);
  background: rgba(255,255,255,.08);
}
.sets-control-search::placeholder { color: #7b8ba5; }
.sets-control-search-clear {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.08);
  color: #c8cdd8; font-size: 14px; line-height: 1;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
}
.sets-control-search-clear:hover {
  background: rgba(255,107,157,.25);
  color: #fff;
}

.sets-control-bar-days {
  flex: 0 1 auto;
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.sets-control-bar-days::-webkit-scrollbar { display: none; }
.sets-control-bar-view {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 767px) {
  .sets-control-bar {
    /* No cd-tabs on mobile (replaced by floating dock) — just clear topbar */
    top: calc(60px + env(safe-area-inset-top, 0px));
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .sets-control-bar-search {
    flex: 1 1 100%;
    max-width: none;
    order: 1;
  }
  .sets-control-bar-days {
    flex: 1 1 100%;
    order: 2;
    justify-content: flex-start;
  }
  .sets-control-bar-view {
    order: 3;
    margin-left: 0;
    margin-right: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   STAGE COLUMN HEADERS (Phase 5) — the ONLY pinned element.
   Sticky to the page; scrolls horizontally on its own + JS-syncs
   with the body scroller so columns stay aligned.
   ═══════════════════════════════════════════════════════════ */
.sets-headers-scroll {
  position: sticky;
  /* Desktop: clear topbar + cd-tabs */
  top: calc(60px + env(safe-area-inset-top, 0px) + 70px);
  z-index: 25;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255,179,71,.22);
  padding: 0 12px;
  background: rgba(11,11,22,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.sets-headers-scroll::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .sets-headers-scroll {
    /* Mobile: no cd-tabs (floating dock), just clear topbar */
    top: calc(60px + env(safe-area-inset-top, 0px));
    padding: 0 10px;
  }
}

.sets-sticky-headers {
  display: grid;
  column-gap: 4px;
  /* Sized by JS via --sets-axis-w + --sets-stage-min CSS vars set inline */
}

/* Horizontal-scroll hint — a soft pulsing chevron near the right edge of the
   headers strip, telling users "more stages this way". Sits on top of the
   header content via absolute positioning + pointer-events:none so it
   doesn't intercept taps. Fades out once user has scrolled past the start. */
.sets-headers-scroll-hint {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  pointer-events: none;
  color: rgba(255,179,71,.6);
  background: linear-gradient(90deg, transparent 0%, rgba(11,11,22,.85) 50%);
  padding-left: 8px;
  border-radius: 0 8px 8px 0;
  animation: sets-headers-hint-nudge 2.2s ease-in-out infinite;
  z-index: 2;
}
.sets-headers-scroll-hint svg {
  width: 14px; height: 14px;
  stroke-width: 2.5;
}
.sets-headers-scroll.scrolled .sets-headers-scroll-hint {
  opacity: 0;
  transition: opacity .25s ease;
}
@keyframes sets-headers-hint-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(3px); }
}

/* ─── Day sections (continuous scroll) ──────────────────── */
/* Land the divider just below the combined sticky shell (control bar +
   headers strip). Approximate shell heights: desktop ~88px, mobile ~140px
   when the control bar stacks. */
.sets-day-section {
  scroll-margin-top: calc(60px + env(safe-area-inset-top, 0px) + 70px + 100px);
}
@media (max-width: 767px) {
  .sets-day-section {
    scroll-margin-top: calc(60px + env(safe-area-inset-top, 0px) + 150px);
  }
}
.sets-day-divider {
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 14px 8px;
  position: relative;
}
.sets-day-divider-name {
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffb347, #ff6b9d, #c471ed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sets-day-divider-ct {
  font-size: 11px; color: #7b8ba5;
  font-variant-numeric: tabular-nums;
}
/* "today" badge in the divider count line */
.sets-day-section.is-today .sets-day-divider-ct {
  color: #ff6b9d;
  font-weight: 700;
}

/* ─── "Now" time marker on the schedule (P7.1) ─────────────
   Horizontal line that spans all stage columns at the current
   time in the festival timezone. Updated every 60s in place. */
.sets-now-line {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 2px dashed rgba(255,107,157,.7);
  grid-column: 1 / -1;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 18px rgba(255,107,157,.25);
}
.sets-now-label {
  position: absolute;
  left: 4px; top: -8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b9d, #ffb347);
  color: #fff;
  font-size: 9px; font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255,107,157,.4);
}
.sets-day-grid {
  display: grid;
  column-gap: 4px;
  row-gap: 0;
  position: relative;
  padding: 0 12px;
}
@media (max-width: 767px) {
  .sets-day-grid { padding: 0 10px; }
}

/* ─── Search filter classes on pills ────────────────────── */
.sets-fest-pill.dim {
  opacity: .22;
  filter: grayscale(.7);
  pointer-events: auto;     /* still tappable, just visually de-emphasized */
}
.sets-fest-pill.match {
  border-color: rgba(255,179,71,.55);
  box-shadow: 0 0 0 1px rgba(255,179,71,.35), 0 0 14px rgba(255,179,71,.18);
  z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   GUESTS (S6) — let voters bring named guests not on the app.
   Lives in the attendance modal between position grid and note.
   ═══════════════════════════════════════════════════════════ */
.sets-att-guests {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sets-att-guest-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  background: rgba(196,113,237,.10);
  border: 1px solid rgba(196,113,237,.25);
  font-size: 12px;
  color: #f0f2f8;
  max-width: 100%;
}
.sets-att-guest-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.sets-att-guest-tag {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #c471ed;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(196,113,237,.18);
}
.sets-att-guest-remove {
  width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.08);
  color: #c8cdd8; font-size: 12px; line-height: 1;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.sets-att-guest-remove:hover {
  background: rgba(248,113,113,.3);
  color: #f87171;
}
.sets-att-guest-add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.18);
  background: transparent;
  color: #7b8ba5;
  font-size: 12px; font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.sets-att-guest-add-btn:hover {
  border-color: rgba(196,113,237,.4);
  color: #c471ed;
  background: rgba(196,113,237,.05);
}
.sets-att-guest-add-plus {
  font-size: 14px; line-height: 1; font-weight: 700;
}
.sets-att-guest-form {
  display: flex; gap: 6px; margin-top: 8px;
  align-items: center;
}
.sets-att-guest-input {
  flex: 1; min-width: 0;
  padding: 7px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(196,113,237,.3);
  border-radius: 999px;
  color: #fff; font-size: 13px;
  font-family: inherit; outline: none;
}
.sets-att-guest-input:focus {
  border-color: rgba(196,113,237,.6);
}
.sets-att-guest-save {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #c471ed, #7c9cff);
  color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  flex-shrink: 0;
}
.sets-att-guest-cancel {
  padding: 7px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #7b8ba5; font-size: 12px;
  cursor: pointer; font-family: inherit;
  flex-shrink: 0;
}
.sets-att-guest-cancel:hover { color: #f0f2f8; }

/* Inline "+N" tag next to a name in the crew list (when they have guests). */
.sets-att-crew-guests {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  background: rgba(196,113,237,.18);
  color: #c471ed;
  vertical-align: middle;
}

/* ─── Grid Scroll Container ──────────────────────────────
   No overflow on desktop so position:sticky on .sets-stage-header
   sticks to the page (not to this container). On narrow viewports
   we allow horizontal scroll, but sticky doesn't work there —
   acceptable trade-off for the spreadsheet-feel on desktop. */
.sets-grid-scroll {
  padding: 0 12px 24px;
}
@media (max-width: 720px) {
  .sets-grid-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .sets-grid-scroll::-webkit-scrollbar { height: 6px; }
  .sets-grid-scroll::-webkit-scrollbar-track { background: transparent; }
  .sets-grid-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE LAYOUT (Phase 4 of LIB Sets project)
   Vertical scroll, shared time axis on the left, stage columns
   side-by-side. Each pill is absolute-positioned by start time,
   sized by duration. Top = late-night (5A), bottom = afternoon
   (12P) — matches the official LIB poster convention.
   ═══════════════════════════════════════════════════════════ */
/* 2-row CSS grid: header row (auto) + body row (timeline height).
   Splitting headers from bodies guarantees every body cell starts at the
   same top edge — so absolute-positioned pills in any stage column align
   exactly with the hour labels in the shared time-axis column. */
.sets-timeline {
  display: grid;
  column-gap: 4px;
  row-gap: 0;
  position: relative;
}

/* Empty corner cell — sits above the time axis to match the header row height */
.sets-timeline-corner {
  /* visual: leave empty so the row height comes from the stage headers */
}

/* Time axis (body-row column 1) — relative container, labels are absolute */
.sets-timeline-axis {
  position: relative;
  /* height comes from the grid row — 100% of the row */
  height: 100%;
}
.sets-timeline-hour {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; justify-content: flex-end;
  height: 1px;
  padding-right: 6px;
  pointer-events: none;
}
.sets-timeline-hour span {
  display: inline-block;
  font-size: 9px; font-weight: 700;
  color: #7b8ba5;
  letter-spacing: .04em;
  background: rgba(15,15,30,.85);
  padding: 1px 4px;
  border-radius: 4px;
  transform: translateY(-50%);
}

/* ─── Stage header — lives in .sets-sticky-headers wrapper now ─── */
.sets-stage-header {
  padding: 8px 6px 6px;
  text-align: center; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #ffb347;
  /* No per-element sticky any more — the whole .sets-sticky-headers row
     is sticky as a unit, so columns stay aligned with the bodies below. */
}
.sets-stage-host {
  margin-top: 3px;
  font-size: 9px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: #c471ed;
  opacity: .85;
}

/* ─── Stage body (row 2) ───────────────────────────────── */
.sets-stage-body {
  position: relative;
  height: 100%;
  min-width: 0;
  border-left: 1px solid rgba(255,255,255,.03);
}
.sets-stage-hourline {
  position: absolute; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.sets-stage-empty {
  position: absolute; left: 0; right: 0; top: 40%;
  text-align: center;
  font-size: 11px; color: rgba(123,139,165,.25);
}

/* ─── Festival Set Pill ──────────────────────────────────
   Compact fixed-height pill anchored at the start time. Tall enough
   to fit ONE time line + a two-line title with ellipsis (P4.3) so
   long names like "Afromantis Brunch" or "Mr. Carmack" don't get
   chopped mid-letter. */
.sets-fest-pill {
  position: absolute;
  left: 2px; right: 2px;
  height: 52px;                /* up from 44 — accommodates 2-line title */
  background: rgba(15,15,30,.65);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 4px 7px;
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, background .15s, box-shadow .15s, z-index 0s linear .15s;
  z-index: 1;
}
.sets-fest-pill:hover {
  border-color: rgba(196,113,237,.45);
  background: rgba(15,15,30,.92);
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
  z-index: 5;
  transition: border-color .15s, background .15s, box-shadow .15s, z-index 0s;
}
.sets-fest-pill.surprise {
  border-style: dashed;
  border-color: rgba(255,179,71,.35);
  background: rgba(255,179,71,.04);
}
.sets-fest-pill.live {
  border-color: rgba(255,107,157,.45);
  background: rgba(255,107,157,.06);
  box-shadow: 0 0 16px rgba(255,107,157,.18);
}
.sets-fest-pill.live::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb347, #ff6b9d, #c471ed);
  border-radius: 8px 8px 0 0;
}
/* (Removed `.sets-fest-pill { position: relative; }` — it was a leftover that
    fought the timeline's position:absolute layout, making every pill stack at
    the top of the column instead of anchoring to its start time.) */

.sets-fest-pill-time {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600;
  color: #7b8ba5; letter-spacing: .02em;
  margin-bottom: 2px;
  line-height: 1.1;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sets-fest-pill-live-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff6b9d;
  flex-shrink: 0;
  animation: sets-pulse 1.5s ease-in-out infinite;
}
.sets-fest-pill-note {
  margin-top: 4px;
  font-size: 10px; font-style: italic;
  color: #c8cdd8; opacity: .7;
  line-height: 1.3;
}
.sets-fest-pill-title {
  font-size: 11.5px; font-weight: 600; color: #fff;
  line-height: 1.15;
  /* Two-line clamp with ellipsis so long names degrade gracefully instead of
     being chopped mid-letter by the parent's overflow:hidden. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.sets-fest-pill-name {
  /* Names are no longer independently clickable — the whole pill opens the
     attendance modal. Spotify popover is reached via the "Artist info" pill
     inside that modal. Removed cursor:pointer and hover color so the names
     read as part of the pill, not a separate target. */
  display: inline;
}
.sets-fest-pill-role {
  display: inline; margin: 0 4px;
  font-size: 10px; font-weight: 500;
  color: #7b8ba5; font-style: italic;
}
.sets-fest-pill-surprise {
  color: #ffb347; font-weight: 700;
  letter-spacing: .04em;
}
.sets-fest-pill-meta {
  margin-top: 4px;
  font-size: 10px; font-weight: 500;
  color: #4ade80;
}

/* Voter avatar chips (P5.2) — small circles at the bottom of a set pill
   showing who from the crew is Going. Replaces the old "1 going" text. */
.sets-fest-pill-voters {
  display: flex; align-items: center;
  gap: 2px;
  margin-top: 3px;
  flex-shrink: 0;
}
.sets-fest-pill-avi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  font-size: 8px; font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(15,15,30,.9);
  margin-left: -3px;          /* slight overlap, the "team huddle" look */
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.sets-fest-pill-avi:first-child { margin-left: 0; }
.sets-fest-pill-avi-more {
  background: rgba(255,255,255,.14);
  color: #c8cdd8;
  font-size: 7px;
}

/* ─── Responsive grid ─────────────────────────────────── */
@media (min-width: 900px) {
  .sets-fest-grid { gap: 8px; }
  .sets-grid-scroll { padding: 0 20px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   ATTENDANCE MODAL (LIB Sets — Phase 3)
   Tri-state Going / Interested / Can't + position + note + crew list
   ═══════════════════════════════════════════════════════════ */

.sets-att-tri {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.sets-att-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 8px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #c8cdd8; font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s cubic-bezier(.34, 1.56, .64, 1);
}
.sets-att-btn:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateY(-1px);
}
.sets-att-btn-icon {
  font-size: 18px; font-weight: 700;
  opacity: .7;
}
.sets-att-btn-label {
  font-size: 12px; font-weight: 600;
}
.sets-att-btn.going.selected {
  background: linear-gradient(135deg, rgba(74,222,128,.18), rgba(34,211,238,.12));
  border-color: rgba(74,222,128,.45);
  color: #4ade80;
}
.sets-att-btn.going.selected .sets-att-btn-icon { opacity: 1; color: #4ade80; }

.sets-att-btn.interested.selected {
  background: linear-gradient(135deg, rgba(255,179,71,.18), rgba(255,107,157,.12));
  border-color: rgba(255,179,71,.45);
  color: #ffb347;
}
.sets-att-btn.interested.selected .sets-att-btn-icon { opacity: 1; color: #ffb347; }

.sets-att-btn.cant.selected {
  background: rgba(248,113,113,.12);
  border-color: rgba(248,113,113,.4);
  color: #f87171;
}
.sets-att-btn.cant.selected .sets-att-btn-icon { opacity: 1; color: #f87171; }

/* ─── Crew list inside modal ─────────────────────────── */
.sets-att-crew-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 6px;
}
.sets-att-crew-empty {
  padding: 12px;
  font-size: 12px; color: #7b8ba5;
  text-align: center; font-style: italic;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 10px;
}
.sets-att-crew-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.sets-att-crew-row.status-interested { opacity: .8; }
.sets-att-crew-row.status-cant { opacity: .55; }
.sets-att-crew-avi {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sets-att-crew-name {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 500; color: #fff;
}
.sets-att-crew-status {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #c8cdd8;
}
.sets-att-crew-row.status-going .sets-att-crew-status {
  background: rgba(74,222,128,.15); color: #4ade80;
}
.sets-att-crew-row.status-interested .sets-att-crew-status {
  background: rgba(255,179,71,.15); color: #ffb347;
}
.sets-att-crew-row.status-cant .sets-att-crew-status {
  background: rgba(248,113,113,.15); color: #f87171;
}
.sets-att-crew-pos {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(196,113,237,.15);
  color: #c471ed;
  letter-spacing: .04em;
}

/* ─── Attendance modal sections (always-visible layout) ── */
.sets-att-section { margin-bottom: 16px; }
.sets-att-section:last-child { margin-bottom: 0; }
.sets-att-section-label {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #7b8ba5;
  margin-bottom: 8px;
}
.sets-att-section-hint {
  font-size: 10px; font-weight: 500;
  text-transform: none; letter-spacing: 0;
  color: rgba(196,113,237,.7);
  font-style: italic;
}

/* ─── Position grid locked state ──────────────────────── */
.sets-att-position-section.locked .sets-grid-wrap {
  opacity: .55;
  filter: saturate(.6);
}
.sets-att-position-section.locked .sets-zone {
  cursor: not-allowed;
}
.sets-att-grid-wrap .sets-zone {
  min-height: 56px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
}
.sets-zone-code {
  font-size: 10px; font-weight: 700;
  color: #7b8ba5;
  letter-spacing: .04em;
}
.sets-zone-name {
  font-size: 11px; font-weight: 600;
  color: #fff;              /* default — overridden by inline color or .you */
  line-height: 1.15;
}
.sets-zone-name.you {
  color: #ff6b9d;
  text-shadow: 0 0 8px rgba(255,107,157,.4);
}

/* ─── Header artist-info pill (opens Spotify popover) ── */
.sets-modal-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.sets-att-info-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #c8cdd8; font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.sets-att-info-pill:hover {
  background: rgba(74,222,128,.08);
  border-color: rgba(74,222,128,.3);
  color: #4ade80;
}
.sets-att-info-pill svg { width: 12px; height: 12px; }

/* ─── Always-visible note input ───────────────────────── */
.sets-att-note-input {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #fff; font-size: 13px;
  font-family: inherit; outline: none; resize: vertical;
  min-height: 64px;
  transition: border-color .15s;
}
.sets-att-note-input:focus {
  border-color: rgba(196,113,237,.4);
}

/* ─── Going button nudge (when user taps locked grid) ── */
.sets-att-btn.nudge {
  animation: sets-att-nudge .55s ease-out;
}
@keyframes sets-att-nudge {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ═══════════════════════════════════════════════════════════
   CONSTELLATION VIEW (LIB Sets — Phase 5)
   2D SVG sets-as-planets — toggle alongside the grid view.
   ═══════════════════════════════════════════════════════════ */

/* View toggle in header (Grid / Constellation) */
.sets-view-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2px;
  flex-shrink: 0;
}
.sets-view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
  border-radius: 999px; border: none;
  background: transparent; color: #7b8ba5;
  cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.sets-view-btn:hover { color: #fff; }
.sets-view-btn.active {
  background: linear-gradient(135deg, rgba(255,179,71,.2), rgba(255,107,157,.18));
  color: #fff;
}
.sets-view-btn svg { width: 16px; height: 16px; }

/* Constellation container */
.sets-constellation-wrap {
  padding: 0 12px 24px;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 12px;
}
.sets-constellation-caption {
  font-size: 12px; color: #c8cdd8;
  text-align: center;
  background: rgba(15,15,30,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
}
.sets-constellation-caption strong {
  color: #ffb347; font-weight: 700;
}

/* The SVG — square, fills the column, max ~560px */
.sets-constellation-svg {
  width: 100%; max-width: 560px; height: auto;
  display: block;
}

/* Planet hover lift */
.sets-constellation-planet { transition: transform .15s cubic-bezier(.34, 1.56, .64, 1); transform-origin: center; transform-box: fill-box; }
.sets-constellation-planet:hover { transform: scale(1.18); }

/* Stage legend below the SVG */
.sets-constellation-legend {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 14px; margin-top: 4px;
  max-width: 560px;
}
.sets-constellation-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #c8cdd8;
}
.sets-constellation-legend-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .sets-constellation-svg { max-width: 600px; }
  .sets-constellation-legend { max-width: 600px; }
}

/* ═══════════════════════════════════════════════════════════
   FESTIVAL SCHEDULE — Public read-only grid on event detail
   Collapsed-by-default toggle that expands to the full grid.
   ═══════════════════════════════════════════════════════════ */

.fs-section {
  margin: 16px 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(15,15,30,.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.fs-toggle {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px;
  background: none; border: none;
  color: #fff; font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.fs-toggle:hover {
  background: rgba(255,255,255,.03);
}
.fs-toggle-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,179,71,.18), rgba(255,107,157,.14));
  color: #ffb347;
  flex-shrink: 0;
}
.fs-toggle-icon svg { width: 16px; height: 16px; }
.fs-toggle-label {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.fs-toggle-title {
  font-size: 13px; font-weight: 700; color: #fff;
}
.fs-toggle-sub {
  font-size: 11px; color: #7b8ba5;
}
.fs-toggle-chev {
  display: flex; align-items: center;
  color: #7b8ba5;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), color .15s;
  flex-shrink: 0;
}
.fs-toggle-chev svg { width: 16px; height: 16px; }
.fs-toggle.expanded .fs-toggle-chev {
  transform: rotate(180deg);
  color: #c471ed;
}
.fs-body {
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  animation: fs-expand .25s ease-out;
}
@keyframes fs-expand {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   GOING TAB (S7) — Timeline-aesthetic: vertical line + colored
   dot per set + card. Stage color drives the dot. Click any
   card → opens the same attendance modal.
   ═══════════════════════════════════════════════════════════ */
/* Sub-nav inside the Going tab — You vs Crew filter */
.sets-going-subnav {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 0 16px 8px;
  max-width: 640px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
}
@media (min-width: 641px) {
  .sets-going-subnav { margin-left: auto; margin-right: auto; }
}
.sets-going-subnav-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #7b8ba5;
  font-size: 12px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s, color .15s, transform .15s cubic-bezier(.34,1.56,.64,1);
}
.sets-going-subnav-btn svg {
  width: 14px; height: 14px;
  stroke-width: 2;
}
.sets-going-subnav-btn:hover { color: #f0f2f8; }
.sets-going-subnav-btn:active { transform: scale(.97); }
.sets-going-subnav-btn.active {
  background: linear-gradient(135deg, rgba(255,179,71,.22), rgba(255,107,157,.18));
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,107,157,.18);
}

.sets-going-tl {
  padding: 12px 16px 100px;
  max-width: 640px;
  margin: 0 auto;
}
.sets-going-tl-day {
  font-size: 13px; font-weight: 700;
  color: #c471ed;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 20px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.sets-going-tl-day:first-child { padding-top: 4px; }

.sets-going-tl-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 18px;
  cursor: pointer;
  outline: none;
}
/* Vertical line spanning each item */
.sets-going-tl-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.08);
}
/* Colored dot anchored at the top of each item (stage color via --tl-color) */
.sets-going-tl-item::after {
  content: '';
  position: absolute;
  left: 2px; top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--tl-color, #c471ed);
  border: 2px solid var(--bg, #0b0b16);
  box-shadow: 0 0 8px var(--tl-glow, rgba(196,113,237,.3));
}
.sets-going-tl-item.live::after {
  animation: sets-going-tl-pulse 1.6s ease-in-out infinite;
}
@keyframes sets-going-tl-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.3); }
}
.sets-going-tl-item:focus-visible .sets-going-tl-card {
  border-color: var(--tl-color, #c471ed);
  box-shadow: 0 0 0 2px var(--tl-glow, rgba(196,113,237,.35));
}

.sets-going-tl-date {
  font-size: 11px; color: #7b8ba5;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.sets-going-tl-card {
  background: rgba(15,15,30,.55);
  border: 1px solid var(--tl-border, rgba(255,255,255,.08));
  border-radius: 14px;
  padding: 12px 14px;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1),
              border-color .15s, box-shadow .15s, background .15s;
}
.sets-going-tl-item:hover .sets-going-tl-card {
  transform: translateX(2px);
  border-color: var(--tl-color, #c471ed);
  box-shadow: 0 4px 20px rgba(0,0,0,.35), 0 0 14px var(--tl-glow, transparent);
  background: rgba(20,20,40,.65);
}
.sets-going-tl-item.live .sets-going-tl-card {
  border-color: var(--tl-color, #ff6b9d);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tl-color, #ff6b9d) 8%, transparent), transparent),
    rgba(15,15,30,.55);
}

.sets-going-tl-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sets-going-tl-card-title {
  font-size: 14px; font-weight: 600; color: #f0f2f8;
  line-height: 1.3;
  word-break: break-word;
}
.sets-going-tl-card-stage {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}
.sets-going-tl-stage-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}

.sets-going-tl-badges {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
  margin-bottom: 6px;
}
.sets-going-tl-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.sets-going-tl-badge.going {
  background: rgba(74,222,128,.14);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.28);
}
.sets-going-tl-badge.interested {
  background: rgba(255,179,71,.12);
  color: #ffb347;
  border: 1px solid rgba(255,179,71,.26);
}
.sets-going-tl-badge.live {
  background: rgba(255,107,157,.18);
  color: #ff6b9d;
  border: 1px solid rgba(255,107,157,.32);
}
.sets-going-tl-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #ff6b9d;
  animation: sets-going-tl-pulse 1.6s ease-in-out infinite;
}

.sets-going-tl-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 6px;
}
.sets-going-tl-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  max-width: 100%;
}
.sets-going-tl-chip.interested { opacity: .55; }
.sets-going-tl-chip.guest {
  padding: 2px 8px;
  background: rgba(196,113,237,.10);
  border-color: rgba(196,113,237,.22);
}
.sets-going-tl-chip-avi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.sets-going-tl-chip-name {
  color: #c8cdd8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sets-going-tl-chip.going .sets-going-tl-chip-name {
  color: #f0f2f8; font-weight: 600;
}

@media (max-width: 480px) {
  .sets-going-tl { padding: 10px 12px 100px; }
  .sets-going-tl-card { padding: 10px 12px; }
  .sets-going-tl-card-title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   (Old GOING TAB N1 styles preserved below for legacy callers,
    will be pruned once we confirm no consumers depend on them.)
   ═══════════════════════════════════════════════════════════ */

.sets-going-list {
  padding: 4px 14px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
}

.sets-going-day-lbl {
  padding-top: 12px;
}

.sets-going-row {
  display: grid;
  grid-template-columns: 64px 1fr 14px;
  align-items: stretch;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(15,15,30,.45);
  cursor: pointer;
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1),
              border-color .15s, background .15s;
  outline: none;
}
.sets-going-row:hover {
  transform: translateY(-1px);
  border-color: rgba(196,113,237,.35);
  background: rgba(20,20,40,.55);
}
.sets-going-row:focus-visible {
  border-color: #c471ed;
  box-shadow: 0 0 0 2px rgba(196,113,237,.35);
}
.sets-going-row.live {
  border-color: rgba(255,107,157,.45);
  background:
    linear-gradient(135deg, rgba(255,107,157,.10), rgba(196,113,237,.06)),
    rgba(15,15,30,.45);
}

/* Left column — time + optional live dot */
.sets-going-time {
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  gap: 2px;
  position: relative;
  min-width: 0;
}
.sets-going-time-main {
  font-size: 14px; font-weight: 700; color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sets-going-time-end {
  font-size: 10px; color: #7b8ba5;
  font-variant-numeric: tabular-nums;
}
.sets-going-live-dot {
  position: absolute; top: -2px; right: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff6b9d;
  box-shadow: 0 0 8px rgba(255,107,157,.7);
  animation: sets-going-live-pulse 1.6s ease-in-out infinite;
}
@keyframes sets-going-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(1.25); }
}

/* Body column — stage, title, counts, voter chips */
.sets-going-body {
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sets-going-stage {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.sets-going-stage-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}
.sets-going-title {
  font-size: 14px; font-weight: 600; color: #f0f2f8;
  line-height: 1.3;
  word-break: break-word;
}
.sets-going-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 2px;
}
.sets-going-count {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.sets-going-count.going {
  background: rgba(74,222,128,.14);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.28);
}
.sets-going-count.interested {
  background: rgba(255,179,71,.12);
  color: #ffb347;
  border: 1px solid rgba(255,179,71,.26);
}

.sets-going-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px;
}
.sets-going-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  max-width: 100%;
}
.sets-going-chip.interested {
  opacity: .55;
}
.sets-going-chip-avi {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.sets-going-chip-name {
  color: #c8cdd8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sets-going-chip.going .sets-going-chip-name {
  color: #f0f2f8; font-weight: 600;
}

/* Right column — chevron hint */
.sets-going-chev {
  width: 14px; height: 14px;
  align-self: center;
  color: #5a6678;
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.sets-going-row:hover .sets-going-chev {
  color: #c471ed;
  transform: translateX(2px);
}

/* Mobile tightening */
@media (max-width: 480px) {
  .sets-going-row {
    grid-template-columns: 54px 1fr 12px;
    gap: 10px;
    padding: 10px 12px;
  }
  .sets-going-time-main { font-size: 13px; }
  .sets-going-title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH (N3) — iPhone 14 (390px) + Pixel 7 (412px)
   The festival grid is the most demanding view on mobile —
   8 stages × a 12-hour timeline is too wide to fit, so we
   horizontally scroll, but we tighten everything: smaller
   column widths, smaller pill text, smaller axis, more
   thumb-friendly touch targets on day tabs.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* ─── Header (tighter, less vertical waste) ─── */
  .sets-header { padding: 10px 12px 8px; }
  .sets-header h2 { font-size: 16px; }
  .sets-sub { font-size: 10px; }

  /* ─── Day tabs — bigger thumb targets, slightly snugger horizontal padding ─── */
  .sets-day-tabs { padding: 0 10px 10px; gap: 5px; }
  .sets-day-tab {
    padding: 10px 14px;
    font-size: 12px;
    min-height: 38px;            /* ≥38px = Apple HIG comfortable */
  }

  /* ─── View toggle (grid / constellation) ─── */
  .sets-view-toggle { padding: 3px; }

  /* ─── Grid scroll & timeline — keep time axis pinned to left edge ─── */
  .sets-grid-scroll {
    padding: 0 10px 20px;
    /* Smooth iOS-style horizontal scroll snapping is too aggressive for an
       8-column schedule; we keep the standard scroll but enable momentum. */
    -webkit-overflow-scrolling: touch;
  }
  /* Pin the time-axis column to the left edge of the scroller so users keep
     their temporal bearings as they swipe sideways through stage columns. */
  .sets-timeline-axis {
    position: sticky;
    left: 0;
    z-index: 3;
    background: linear-gradient(90deg, rgba(11,11,22,.96) 70%, rgba(11,11,22,0) 100%);
  }
  .sets-timeline-corner {
    position: sticky;
    left: 0;
    z-index: 4;
    background: rgba(11,11,22,.96);
  }
  .sets-timeline-hour span {
    font-size: 8px;
    padding: 1px 3px;
    background: rgba(11,11,22,.95);
  }

  /* ─── Stage header — tighter padding and font ─── */
  .sets-stage-header {
    padding: 6px 4px 4px;
    font-size: 9px;
    letter-spacing: .04em;
  }
  .sets-stage-host {
    font-size: 8px;
    margin-top: 2px;
  }

  /* ─── Festival set pill — compact for narrow columns ─── */
  .sets-fest-pill {
    padding: 4px 6px;
    border-radius: 7px;
  }
  .sets-fest-pill-time {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .sets-fest-pill-title {
    font-size: 11px;
    line-height: 1.25;
  }
  .sets-fest-pill-role { font-size: 9px; }
  .sets-fest-pill-meta { font-size: 9px; margin-top: 3px; }
  .sets-fest-pill-note { font-size: 9px; margin-top: 3px; }

  /* ─── Attendance modal — bottom-sheet polish ─── */
  .sets-modal-content { padding: 18px 16px 22px; }
  .sets-modal-header h3 { font-size: 15px; }
  .sets-modal-header-actions { gap: 6px; }
  .sets-att-section { margin-bottom: 14px; }
  .sets-att-section-label { font-size: 10px; }
  .sets-att-section-hint { font-size: 10px; }
  .sets-att-tri { gap: 6px; margin-bottom: 12px; }
  .sets-att-btn { padding: 12px 6px; }
  .sets-att-btn-icon { font-size: 18px; }
  .sets-att-btn-label { font-size: 11px; }
  .sets-att-crew-row { padding: 6px 8px; gap: 8px; }
  .sets-att-crew-name { font-size: 12px; }
  .sets-att-crew-status { font-size: 10px; }

  /* Tighten the position grid so all 9 zones fit comfortably side-by-side */
  .sets-grid { gap: 3px; }
  .sets-zone {
    min-height: 36px;
    font-size: 9px;
  }
  .sets-zone.interactive { min-height: 44px; }
  .sets-zone-code { font-size: 9px; }
  .sets-zone-name { font-size: 9px; }
}

/* Slightly smaller phones (iPhone SE, older Androids ≤ 360px) — extra
   tightening so the festival grid doesn't show a horizontal slot < 96px. */
@media (max-width: 360px) {
  .sets-fest-pill-title { font-size: 10px; }
  .sets-fest-pill-time { font-size: 8px; }
  .sets-stage-header { font-size: 8px; }
  .sets-modal-content { padding: 16px 12px 20px; }
}

/* ─── Narrow-viewport grid column tightening ─────────────────
   Both .sets-day-grid and .sets-sticky-headers consume --sets-axis-w +
   --sets-stage-min (set inline by the JS renderer at desktop defaults).
   Overriding those vars here shrinks every grid on mobile in lockstep,
   keeping headers + bodies column-aligned. */
@media (max-width: 480px) {
  .sets-day-grid,
  .sets-sticky-headers,
  .sets-timeline {
    /* !important required because the JS sets the vars inline; inline beats
       normal cascade. !important on a custom property is the documented
       escape hatch. */
    --sets-axis-w: 36px !important;
    --sets-stage-min: 108px !important;
    column-gap: 3px;
  }
}
@media (max-width: 360px) {
  .sets-day-grid,
  .sets-sticky-headers,
  .sets-timeline {
    --sets-stage-min: 96px !important;
  }
}
