/* ============ base.css ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--color-primary) 30%, transparent); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
button { cursor: pointer; background: none; border: none; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============ tokens ============ */
:root, [data-theme='light'] {
  --color-bg: #f7f1ee;
  --color-surface: #ffffff;
  --color-surface-2: #fbf5f3;
  --color-border: #e6d6d2;
  --color-divider: #ecdedb;
  --color-text: #221012;
  --color-text-muted: #6f5250;
  --color-text-faint: #b39c99;
  --color-text-inverse: #f7f1ee;
  --color-primary: #8a1620;
  --color-primary-hover: #6b1019;
  --color-primary-active: #500c14;
  --color-primary-highlight: #f1d9d8;
  --color-success: #3f6b2b;
  --color-success-highlight: #dbe6d2;
  --color-warning: #96421a;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 20 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.2 0.03 20 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 20 / 0.16);

  --font-display: 'Clash Display', 'Georgia', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
}

[data-theme='dark'] {
  --color-bg: #150a0b;
  --color-surface: #1e1112;
  --color-surface-2: #241416;
  --color-border: #3a2224;
  --color-divider: #2e1a1c;
  --color-text: #f5ece9;
  --color-text-muted: #ab8f8d;
  --color-text-faint: #6b5654;
  --color-text-inverse: #1a0e0f;
  --color-primary: #d8394a;
  --color-primary-hover: #e35a69;
  --color-primary-active: #f0808c;
  --color-primary-highlight: #3a1418;
  --color-success: #7cae57;
  --color-success-highlight: #263a1e;
  --color-warning: #d98a5c;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.55);
}

/* ============ layout ============ */
.wrap { max-width: 640px; margin-inline: auto; padding-inline: var(--space-5); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-4); max-width: 640px; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: 0.02em; display: flex; align-items: center; gap: var(--space-2); }
.wordmark .dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-primary); flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--color-primary); }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--color-text-muted); flex: none; }
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

@media (max-width: 480px) {
  .site-header .wrap { padding-inline: var(--space-3); gap: var(--space-2); }
  .wordmark { font-size: var(--text-sm); gap: var(--space-1); }
  .nav-links { gap: var(--space-3); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(to right, black 88%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 12px; white-space: nowrap; }
  .theme-toggle { width: 28px; height: 28px; flex: none; }
}

main { padding-block: var(--space-10) var(--space-24); }
.page-eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-2); }
.page-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-2); }
.page-sub { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-8); max-width: 46ch; }

/* ============ card / form ============ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--space-6); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field .hint, .hint { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-1); }

.load-submission-btn {
  margin-top: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}
.load-submission-btn:hover { color: var(--color-primary-hover, var(--color-primary)); }
.load-submission-msg { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); min-height: 1em; }
.load-submission-msg.is-error { color: var(--color-warning); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: var(--text-base); color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); }
.field textarea { resize: vertical; min-height: 4.5rem; }

.chip-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: block; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface-2);
  white-space: nowrap;
}
.chip input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.btn-primary {
  width: 100%; padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--color-primary); color: var(--color-text-inverse);
  font-size: var(--text-base); font-weight: 600; letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { transform: scale(0.99); }

.success-banner {
  display: none; align-items: flex-start; gap: var(--space-3);
  background: var(--color-success-highlight); border: 1px solid color-mix(in oklab, var(--color-success) 40%, var(--color-border));
  border-radius: var(--radius-lg); padding: var(--space-5); margin-top: var(--space-6);
}
.success-banner.visible { display: flex; }
.success-banner svg { flex: none; color: var(--color-success); margin-top: 2px; }
.success-banner strong { display: block; margin-bottom: var(--space-1); }
.success-banner p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ calendar ============ */
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.calendar-nav button { width: 32px; height: 32px; border: 1px solid var(--color-border); border-radius: var(--radius-full); display: grid; place-items: center; color: var(--color-text-muted); }
.calendar-nav button:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.calendar-nav .month-label { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-1); }
.cal-dow { text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); padding-block: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; }
.cal-cell {
  aspect-ratio: 1; border-radius: var(--radius-md); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: var(--text-sm); position: relative;
  border: 1px solid transparent;
}
.cal-cell.empty { visibility: hidden; }
.cal-cell.day { background: var(--color-surface-2); border-color: var(--color-border); color: var(--color-text-muted); }
.cal-cell.booked { background: var(--color-primary-highlight); border-color: color-mix(in oklab, var(--color-primary) 45%, transparent); color: var(--color-text); font-weight: 600; }
.cal-cell.booked .cal-time { font-size: 0.65rem; color: var(--color-primary); font-weight: 600; }
.cal-cell.booked::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-primary); }
.cal-cell.today { border-color: var(--color-text-faint); }

.legend { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); font-size: var(--text-xs); color: var(--color-text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend .swatch { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--color-primary); }
.legend .swatch--past { background: var(--color-text-faint); }

.set-list { list-style: none; margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.set-list li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.set-list .venue { font-weight: 600; font-size: var(--text-sm); }
.set-list .date { font-size: var(--text-xs); color: var(--color-text-muted); }
.set-list .time { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); white-space: nowrap; }

.footnote {
  margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px dashed var(--color-border);
  font-size: var(--text-xs); color: var(--color-text-faint); display: flex; align-items: center; gap: var(--space-2);
}

@media (max-width: 480px) {
  .cal-cell { font-size: var(--text-xs); }
  .card { padding: var(--space-5); }
}

/* ============ venue sections (submit form) ============ */
.venue-section { margin-bottom: var(--space-8); padding-bottom: var(--space-8); border-bottom: 1px solid var(--color-divider); }
.venue-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.venue-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
.venue-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.venue-note { font-size: var(--text-xs); color: var(--color-text-faint); }
.room-block { margin-bottom: var(--space-5); }
.room-block:last-child { margin-bottom: 0; }
.room-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.room-label .room-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--color-primary); flex: none; }

/* ============ events section ============ */
.event-card { background: var(--color-surface-2); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.event-card:last-child { margin-bottom: 0; }
.event-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); flex-wrap: wrap; gap: var(--space-2); }
.event-name-input { font-weight: 600; }
.event-date-input { max-width: 180px; }
.add-event-btn { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-primary); font-weight: 600; padding: var(--space-2) 0; }
.add-event-btn:hover { color: var(--color-primary-hover); }
.remove-event-btn { color: var(--color-text-faint); width: 28px; height: 28px; border-radius: var(--radius-full); display: grid; place-items: center; flex: none; }
.remove-event-btn:hover { color: var(--color-primary); background: var(--color-surface); }

/* ============ login gate ============ */
.login-shell { min-height: calc(100dvh - 61px); display: flex; align-items: center; justify-content: center; padding: var(--space-8) var(--space-5); }
.login-card { max-width: 380px; width: 100%; text-align: center; }
.login-card .wordmark { justify-content: center; margin-bottom: var(--space-6); font-size: var(--text-xl); }
.login-card h1 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.login-card p.sub { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.login-card .field { text-align: left; margin-bottom: var(--space-5); }
.login-security { display: flex; align-items: center; gap: var(--space-2); justify-content: center; margin-top: var(--space-6); font-size: var(--text-xs); color: var(--color-text-faint); }

/* ============ add to calendar ============ */
.set-list li { flex-wrap: wrap; }
.set-main { display: flex; flex-direction: column; }
.set-actions { display: flex; align-items: center; gap: var(--space-3); }
.add-cal-wrap { position: relative; }
.add-cal-btn { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: var(--space-2) var(--space-3); background: var(--color-surface); }
.add-cal-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.add-cal-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); min-width: 190px; z-index: 20; overflow: hidden; }
.add-cal-menu.open { display: block; }
.add-cal-menu button, .add-cal-menu a { display: flex; align-items: center; gap: var(--space-2); width: 100%; padding: var(--space-3) var(--space-4); font-size: var(--text-sm); text-align: left; color: var(--color-text); text-decoration: none; }
.add-cal-menu button:hover, .add-cal-menu a:hover { background: var(--color-surface-2); }

/* ============ admin master schedule ============ */
.admin-badge { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-primary-highlight); color: var(--color-primary); font-size: var(--text-xs); font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.admin-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.admin-item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); cursor: pointer; text-align: left; width: 100%; }
.admin-item:hover { border-color: var(--color-primary); }
.admin-item .meta { display: flex; flex-direction: column; gap: 2px; }
.admin-item .venue-line { font-weight: 600; font-size: var(--text-sm); }
.admin-item .date-line { font-size: var(--text-xs); color: var(--color-text-muted); }
.admin-item .count { font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.admin-item .row-right { display: flex; align-items: center; gap: var(--space-3); }
.admin-item .chevron { color: var(--color-text-faint); flex: none; }
.schedule-group-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; padding: var(--space-2) var(--space-1) 0; }
.schedule-group-title:not(:first-child) { margin-top: var(--space-3); padding-top: var(--space-4); border-top: 1px dashed var(--color-divider); }

.modal-overlay { display: none; position: fixed; inset: 0; background: oklch(0.1 0.02 20 / 0.55); z-index: 50; align-items: flex-end; justify-content: center; }
.modal-overlay.open { display: flex; }
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal { background: var(--color-surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0; width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; padding: var(--space-6); box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .modal { border-radius: var(--radius-xl); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.modal-head h2 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; color: var(--color-text-muted); flex: none; }
.modal-close:hover { background: var(--color-surface-2); }
.msg-preview { background: #0b1a12; color: #d9f2d0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: var(--text-sm); line-height: 1.7; padding: var(--space-5); border-radius: var(--radius-lg); white-space: pre-wrap; margin-bottom: var(--space-5); }
.msg-preview .mention { color: #79d0f5; font-weight: 600; }
.modal-actions { display: flex; gap: var(--space-3); }
.btn-secondary { flex: 1; padding: var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--color-border); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); background: var(--color-surface); text-align: center; }
.btn-secondary:hover { border-color: var(--color-text-faint); }
.modal-actions .btn-primary { flex: 1; width: auto; padding: var(--space-3); font-size: var(--text-sm); }
.manual-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }
.manual-note svg { flex: none; margin-top: 1px; }

/* ============ tabs ============ */
/* Every tab — venue or event — shares one uniform tab/pill shape and padding so nothing shifts
   position between tabs. Color-only modifiers (like .tab-gold below) sit on top of this same shape
   instead of introducing a differently-sized wrapper, so the label text always lands in the same spot. */
.tab-bar { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; overflow-x: auto; }
.tab-btn {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.tab-btn:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.tab-btn.active { color: var(--color-text-inverse); background: var(--color-primary); border-color: var(--color-primary); }

/* Gold variant — same .tab-btn box, so identical padding/size/letter position as every other tab.
   The border becomes an animated gold gradient instead of a flat color; pair with .fx-gold-glisten
   on the inner text span for the full shimmer effect used on Block Party NYE 26/27. */
.tab-btn.tab-gold {
  position: relative;
  isolation: isolate;
  border-color: transparent;
  background: color-mix(in oklab, #f0c454 12%, var(--color-surface));
}
.tab-btn.tab-gold::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, #8a5f1f, #f0c454, #ffe9a8, #f0c454, #8a5f1f);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .tab-btn.tab-gold::before { animation: fx-gold-shift 3.2s ease-in-out infinite; }
}
.tab-btn.tab-gold:hover { border-color: transparent; }
.tab-btn.tab-gold.active {
  background: color-mix(in oklab, #f0c454 24%, var(--color-surface));
  box-shadow: 0 0 10px color-mix(in oklab, #f0c454 40%, transparent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ collapsed-until-picked submit form ============ */
.select-prompt { font-size: var(--text-sm); color: var(--color-text-faint); font-style: italic; text-align: center; padding: var(--space-8) 0; }
.select-prompt.hidden { display: none; }
.card.collapsed { display: none; }
@keyframes formReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.card.form-reveal { animation: formReveal 0.35s ease; }

/* ============ bulk add-to-calendar ============ */
.bulk-cal-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin: var(--space-5) 0; }
.btn-bulk-cal { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); border: 1px solid var(--color-primary); border-radius: var(--radius-full); padding: var(--space-2) var(--space-4); background: var(--color-surface); white-space: nowrap; }
.btn-bulk-cal:hover { background: var(--color-primary-highlight); }
.bulk-cal-caption { font-size: var(--text-xs); color: var(--color-text-faint); max-width: 42ch; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
@media (max-width: 480px) {
  .page-head-row { flex-direction: column; }
  .bulk-cal-row { align-items: stretch; }
  .btn-bulk-cal { justify-content: center; }
}

/* ============ date rows with set-time slots ============ */
.date-row { padding-block: var(--space-4); border-bottom: 1px dashed var(--color-divider); }
.date-row:last-child { border-bottom: none; padding-bottom: 0; }
.date-row:first-child { padding-top: 0; }
.date-row-main { display: flex; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; }
.note-input { margin-top: var(--space-2); margin-left: calc(56px + var(--space-4)); max-width: 420px; display: none; font-size: var(--text-sm); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); width: calc(100% - 56px - var(--space-4)); }
.note-input:focus { border-color: var(--color-primary); outline: none; }
.note-input::placeholder { color: var(--color-text-faint); }
.date-row.has-availability .note-input { display: block; }
@media (max-width: 480px) {
  .note-input { margin-left: 0; width: 100%; max-width: none; }
}
.date-label { min-width: 56px; font-weight: 600; font-size: var(--text-sm); padding-top: var(--space-2); flex: none; }
.chip.chip--all span { border-style: dashed; color: var(--color-text-faint); }
.chip.chip--all input:checked + span { background: var(--color-text-muted); border-color: var(--color-text-muted); color: var(--color-text-inverse); }

/* ============ settings / admin config ============ */
.settings-tabs { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); flex-wrap: wrap; }
.settings-tabs.settings-subtabs { margin-bottom: var(--space-5); }
.settings-tab-btn, .basics-subtab-btn, .brief-tab-btn, .sidebar-tab-btn { font-size: var(--text-sm); font-weight: 600; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface); }
.settings-tab-btn.active, .basics-subtab-btn.active, .brief-tab-btn.active, .sidebar-tab-btn.active { color: var(--color-text-inverse); background: var(--color-primary); border-color: var(--color-primary); }
.config-section, .basics-subsection, .brief-subsection, .sidebar-subsection { display: none; }
.config-section.active, .basics-subsection.active, .brief-subsection.active, .sidebar-subsection.active { display: block; }
.settings-tab-hint { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-5); max-width: 640px; }
.config-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); margin-bottom: var(--space-5); box-shadow: var(--shadow-sm); }
.config-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); gap: var(--space-3); flex-wrap: wrap; }
.config-card-head h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; }
.config-card-head .venue-note { font-size: var(--text-xs); }
.config-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px dashed var(--color-divider); flex-wrap: wrap; }
.config-row:last-of-type { border-bottom: none; }
.config-label { font-weight: 600; font-size: var(--text-sm); flex: none; min-width: 120px; }
.config-sub { font-size: var(--text-xs); color: var(--color-text-faint); }
.inline-input { width: auto; padding: var(--space-2) var(--space-3); font-size: var(--text-sm); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); }
.inline-input.time-input { max-width: 90px; }
.inline-input.url-input { width: 100%; max-width: 420px; margin-top: var(--space-2); display: block; }
.slot-edit-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.slot-edit-row .to { color: var(--color-text-faint); font-size: var(--text-xs); }
.remove-slot-btn { color: var(--color-text-faint); width: 26px; height: 26px; border-radius: var(--radius-full); display: grid; place-items: center; flex: none; }
.remove-slot-btn:hover { color: var(--color-primary); background: var(--color-surface-2); }
.add-slot-btn { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-primary); font-weight: 600; padding: var(--space-2) 0; }
.add-slot-btn:hover { color: var(--color-primary-hover); }
.textarea-config { width: 100%; min-height: 3.5rem; padding: var(--space-3); background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text); resize: vertical; margin-top: var(--space-2); }

.copy-field { padding: var(--space-3) 0; border-bottom: 1px dashed var(--color-divider); }
.copy-field:last-of-type { border-bottom: none; }
.copy-field label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.copy-field .copy-field-hint { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--color-text-faint); margin-top: 2px; }
.copy-field .inline-input, .copy-field .textarea-config { width: 100%; max-width: 560px; margin-top: 0; }
.config-card-subhead { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.02em; margin: var(--space-6) 0 var(--space-3); }
.config-card-subhead:first-child { margin-top: 0; }

.switch { position: relative; width: 40px; height: 22px; border-radius: var(--radius-full); background: var(--color-border); flex: none; display: inline-block; }
.switch input { opacity: 0; position: absolute; inset: 0; cursor: pointer; margin: 0; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 180ms cubic-bezier(0.16,1,0.3,1); pointer-events: none; }
.switch:has(input:checked) { background: var(--color-primary); }
.switch input:checked ~ .knob { transform: translateX(18px); }

.event-config-item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-4); }
.event-config-item:last-child { margin-bottom: 0; }
.event-config-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); flex-wrap: wrap; }
.event-config-top .titles { display: flex; flex-direction: column; gap: 2px; }
.event-config-top .ev-name { font-weight: 600; font-size: var(--text-base); }
.event-config-top .ev-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.open-toggle-wrap { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; }
.add-venue-config-btn, .add-event-config-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; padding: var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.add-venue-config-btn:hover, .add-event-config-btn:hover { border-color: var(--color-primary); background: var(--color-primary-highlight); }
.settings-save-bar { position: sticky; bottom: 0; background: color-mix(in oklab, var(--color-bg) 90%, transparent); backdrop-filter: blur(10px); padding: var(--space-4) 0; margin-top: var(--space-6); border-top: 1px solid var(--color-border); }

/* ============ night planner (master schedule modal) ============ */
.modal--wide { max-width: 660px; }
.room-plan { margin-bottom: var(--space-5); }
.room-plan:last-of-type { margin-bottom: 0; }
.room-plan-title { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); display: flex; align-items: center; gap: var(--space-2); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.slot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border: 1px dashed var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-2); background: var(--color-surface-2); }
.slot-row:last-child { margin-bottom: 0; }
.slot-row.filled { border-style: solid; border-color: var(--color-primary); background: var(--color-primary-highlight); }
.slot-row.dragover { border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in oklab, var(--color-primary) 30%, transparent); }
.slot-time { font-size: var(--text-xs); color: var(--color-text-muted); min-width: 128px; font-weight: 600; flex: none; }
.slot-drop { flex: 1; min-height: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.empty-slot-hint { font-size: var(--text-xs); color: var(--color-text-faint); }

.artist-pill { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: 600; cursor: grab; user-select: none; }
.artist-pill:active { cursor: grabbing; }
.artist-pill.dragging { opacity: 0.35; }
.artist-pill .pref-tag { color: var(--color-text-faint); font-weight: 400; }
.artist-pill .remove-pill { color: var(--color-text-faint); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.artist-pill .remove-pill:hover { color: var(--color-primary); background: var(--color-surface-2); }
.artist-pill.has-conflict { border-color: color-mix(in oklab, var(--color-warning) 55%, var(--color-border)); }
.artist-pill .conflict-tag { color: var(--color-warning); font-weight: 700; font-size: var(--text-xs); cursor: help; }

.conflict-banner {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  background: color-mix(in oklab, var(--color-warning) 14%, var(--color-surface));
  border: 1px solid color-mix(in oklab, var(--color-warning) 45%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--color-warning);
}
.conflict-banner.visible { display: flex; }
.conflict-banner svg { flex: none; margin-top: 2px; }
.conflict-banner span#conflict-banner-text { flex: 1; font-size: var(--text-sm); color: var(--color-text); font-weight: 500; }
.conflict-banner-actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.conflict-force-btn {
  background: var(--color-warning); color: var(--color-bg); border: none; border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3); font-size: var(--text-xs); font-weight: 600; cursor: pointer;
}
.conflict-dismiss { color: var(--color-text-faint); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; cursor: pointer; }
.conflict-dismiss:hover { color: var(--color-text); background: var(--color-surface-2); }

.pool-title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); margin: var(--space-5) 0 var(--space-2); }
.pool-list { display: flex; flex-wrap: wrap; gap: var(--space-2); min-height: 40px; padding: var(--space-3); border: 1px dashed var(--color-border); border-radius: var(--radius-md); }
.pool-list.dragover { border-color: var(--color-primary); background: var(--color-primary-highlight); }
.pool-list.empty::after { content: 'Everyone is assigned'; font-size: var(--text-xs); color: var(--color-text-faint); }
.plan-divider { border-top: 1px dashed var(--color-border); margin: var(--space-5) 0; }
.plan-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); }

/* ============ period banner (which month's form this is) ============ */
.period-banner {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--color-primary-highlight);
  border: 1px solid color-mix(in oklab, var(--color-primary) 40%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.period-banner svg { color: var(--color-primary); flex: none; }
.period-banner strong { color: var(--color-primary); }

/* ============ venue brief / disclaimer (only rendered when Patrick fills one in) ============ */
.venue-brief {
  display: flex; gap: var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-warning);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.venue-brief svg { color: var(--color-warning); flex: none; margin-top: 2px; }
.venue-brief strong { color: var(--color-text); display: block; margin-bottom: var(--space-1); }

/* ============ no-slots message (venue/event fully booked for the active window) ============ */
.no-slots-message {
  display: flex; gap: var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text-faint);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.no-slots-message.hidden { display: none; }
.no-slots-message svg { color: var(--color-text-faint); flex: none; margin-top: 2px; }
.no-slots-message strong { color: var(--color-text); display: block; margin-bottom: var(--space-1); }

/* ============ submit layout: form + optional right-hand brief sidebar ============ */
#content-wrap.wrap { transition: max-width 0.25s ease; }
#content-wrap.has-sidebar { max-width: 980px; }
.submit-layout { display: flex; gap: var(--space-8); align-items: flex-start; }
.submit-main { flex: 1 1 auto; min-width: 0; max-width: 640px; }
.venue-sidebar { flex: 0 0 300px; }
.venue-sidebar.hidden { display: none; }
.venue-sidebar-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: var(--space-6);
}
.venue-sidebar-box .sidebar-label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-faint); font-weight: 600; margin-bottom: var(--space-3);
}
.venue-sidebar-box .sidebar-image {
  width: 100%; border-radius: var(--radius-md); margin-bottom: var(--space-4); display: block;
}
.venue-sidebar-box .sidebar-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-4); background: #000;
}
.venue-sidebar-box .sidebar-video-wrap iframe,
.venue-sidebar-box .sidebar-video-wrap video {
  width: 100%; height: 100%; border: 0; display: block; object-fit: cover;
}
.venue-sidebar-box .sidebar-text {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; white-space: pre-wrap;
}
.venue-sidebar-box > *:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .submit-layout { flex-direction: column; }
  .venue-sidebar { flex: 1 1 auto; width: 100%; }
  .venue-sidebar-box { position: static; }
  #content-wrap.has-sidebar { max-width: 640px; }
}

/* ============ text effects (event heading highlights — pure CSS, no plugins) ============ */
.fx-rainbow-glow {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #4fd1c5, #7c5cff, #ff5f6d);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 5px color-mix(in oklab, #7c5cff 45%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .fx-rainbow-glow { animation: fx-rainbow-shift 6s linear infinite; }
}
@keyframes fx-rainbow-shift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.fx-shimmer {
  background: linear-gradient(100deg, var(--color-text) 42%, #ffffff 50%, var(--color-text) 58%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .fx-shimmer { animation: fx-shimmer-sweep 2.6s ease-in-out infinite; }
}
@keyframes fx-shimmer-sweep { 0% { background-position: 200% 0; } 100% { background-position: -50% 0; } }

.fx-pulse-glow {
  color: var(--color-primary);
  text-shadow: 0 0 6px color-mix(in oklab, var(--color-primary) 55%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .fx-pulse-glow { animation: fx-pulse-shift 2.2s ease-in-out infinite; }
}
@keyframes fx-pulse-shift {
  0%, 100% { text-shadow: 0 0 4px color-mix(in oklab, var(--color-primary) 35%, transparent); }
  50% { text-shadow: 0 0 15px color-mix(in oklab, var(--color-primary) 85%, transparent); }
}

/* Gold glisten — a stronger, more decorative highlight than the effects above. Two reusable pieces:
   .fx-gold-glisten (animated gold gradient text) and .tab-chip-gold (a pill/tab shape with an animated
   gold-gradient border + soft glow). Combine them, or use .tab-chip-gold alone around plain text, to
   spotlight anything Patrick wants to call out — not just Block Party NYE. */
.fx-gold-glisten {
  /* Kept off pure-white gradient stops so the shimmer never washes out against a light chip — every
     stop below holds AA contrast against both the light and dark surface colors. */
  background: linear-gradient(100deg, #8a5f1f 0%, #d9a53c 22%, #f0c454 42%, #c98f2c 60%, #8a5f1f 80%, #d9a53c 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 1px color-mix(in oklab, #4a3410 70%, transparent)) drop-shadow(0 0 6px color-mix(in oklab, #f0c454 45%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .fx-gold-glisten { animation: fx-gold-shift 3.2s ease-in-out infinite; }
}
@keyframes fx-gold-shift { 0% { background-position: 0% 50%; } 100% { background-position: 250% 50%; } }

.tab-chip-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: color-mix(in oklab, #f0c454 10%, var(--color-surface));
  box-shadow: 0 0 12px color-mix(in oklab, #f0c454 35%, transparent);
  isolation: isolate;
}
.tab-chip-gold::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, #b8862f, #ffe9a8, #f0c454, #ffe9a8, #b8862f);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .tab-chip-gold::before { animation: fx-gold-shift 3.2s ease-in-out infinite; }
}

/* ============ my schedule: past sets + empty month state ============ */
.cal-cell.past-booked { background: var(--color-surface-2); border-color: var(--color-border); color: var(--color-text-muted); }
.cal-cell.past-booked .cal-time { color: var(--color-text-faint); }
.cal-cell.past-booked::after { background: var(--color-text-faint); }
.played-tag {
  font-size: var(--text-xs); font-weight: 600; color: var(--color-text-faint);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3); white-space: nowrap;
}
.set-list-empty { font-size: var(--text-sm); color: var(--color-text-faint); padding: var(--space-4) 0; text-align: center; }

/* ============ admin nav links: hidden until unlocked ============ */
.admin-nav-link { display: none; }

/* ============ admin passcode gate ============ */
.admin-lock-screen {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6) var(--space-4);
}
.admin-lock-card {
  width: 100%; max-width: 360px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6); text-align: center;
  box-shadow: 0 8px 32px color-mix(in oklab, var(--color-text) 8%, transparent);
}
.admin-lock-icon { font-size: 28px; margin-bottom: var(--space-3); }
.admin-lock-card h1 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.admin-lock-card p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0 0 var(--space-5); }
.admin-lock-form { display: flex; flex-direction: column; gap: var(--space-3); }
.admin-lock-form input {
  width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-text); font-size: var(--text-base);
  text-align: center; letter-spacing: 0.05em;
}
.admin-lock-form input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.admin-lock-form button {
  padding: var(--space-3) var(--space-4); border: none; border-radius: var(--radius-md);
  background: var(--color-primary); color: #fff; font-weight: 600; font-size: var(--text-sm); cursor: pointer;
}
.admin-lock-form button:hover { background: var(--color-primary-hover); }
.admin-lock-error { color: var(--color-warning); font-size: var(--text-sm); margin: var(--space-3) 0 0; }
.admin-lock-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted);
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3); cursor: pointer;
}
.admin-lock-btn:hover { color: var(--color-text); border-color: var(--color-text-muted); }
