:root {
  --neon: #c4ff3d;
  --neon-dim: rgba(196, 255, 61, 0.3);
  --panel: rgba(15, 23, 42, 0.75);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
}

.neon-border {
  box-shadow: 0 0 20px rgba(196, 255, 61, 0.3);
  border: 1px solid rgba(196, 255, 61, 0.5);
}

.neon-glow {
  text-shadow: 0 0 10px rgba(196, 255, 61, 0.8);
}

.btn-primary {
  background: linear-gradient(135deg, #c4ff3d 0%, #a0d92d 100%);
  box-shadow: 0 4px 15px rgba(196, 255, 61, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 255, 61, 0.6);
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input[type="file"] {
  display: none;
}

.replace-btn {
  transition: all 0.2s ease;
}

.replace-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(196, 255, 61, 0.5);
}

.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dj-option {
  transition: all 0.15s ease;
}

.dj-option:hover {
  transform: translateX(4px);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Poster Library ===== */
@keyframes posterShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.poster-skeleton {
  background: linear-gradient(90deg, rgba(196,255,61,0.04) 25%, rgba(196,255,61,0.14) 50%, rgba(196,255,61,0.04) 75%);
  background-size: 200% 100%;
  animation: posterShimmer 1.4s ease-in-out infinite;
}
.pl-thumb {
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.pl-thumb:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 2px #c4ff3d, 0 8px 24px rgba(196,255,61,0.28);
}
.pl-thumb .pl-thumb-eye,
.pl-thumb .pl-thumb-cap { opacity: 0; transition: opacity 0.16s ease; }
.pl-thumb:hover .pl-thumb-eye,
.pl-thumb:hover .pl-thumb-cap { opacity: 1; }
.pl-archive-thumb img { filter: saturate(0.82) brightness(0.9); }
.pl-archive-thumb:hover img { filter: none; }
.pl-archive-body {
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease;
}
.pl-chevron { transition: transform 0.22s ease; }

/* Mobile Booking View */
.mobile-view {
  -webkit-overflow-scrolling: touch;
}

.mobile-night-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-night-card:active {
  transform: scale(0.99);
}

.mobile-slot {
  transition: background-color 0.15s ease;
  min-height: 44px;
}

/* v2 compact redesign */
.mobile-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.85);
}

.mobile-compact-card {
  transition: background-color 0.15s ease;
  min-height: 56px;
  cursor: pointer;
}

.mobile-compact-card:active {
  background-color: rgba(255,255,255,0.03);
}

.mobile-past-strip {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mobile-past-strip:active {
  background-color: rgba(255,255,255,0.08);
}

.mobile-today-dot {
  animation: mobile-pulse 1.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes mobile-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.mobile-chev {
  transition: transform 0.2s ease;
  display: inline-block;
}

.mobile-chev.expanded {
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}

/* ============================================ */
/* Replace DJ Modal v2 — split-pane redesign    */
/* ============================================ */
.rdm-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  animation: fadeIn 0.18s ease-out;
}
.rdm-shell {
  position: fixed;
  inset: 24px;
  z-index: 51;
  background: rgba(10, 13, 31, 0.96);
  border: 1.5px solid rgba(196, 255, 61, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(196, 255, 61, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Space Mono', 'SF Mono', monospace;
  color: rgba(255, 255, 255, 0.92);
  animation: slideUp 0.22s ease-out;
}
.rdm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
  flex-shrink: 0;
}
.rdm-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  white-space: nowrap;
}
.rdm-ctx-row { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.ctx-chip {
  padding: 4px 10px; border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ctx-chip.day   { background: rgba(255, 255, 0, 0.18);  color: #fef08a; border: 1px solid rgba(255, 255, 0, 0.4); }
.ctx-chip.time  { background: rgba(196, 255, 61, 0.18); color: var(--neon); border: 1px solid rgba(196, 255, 61, 0.4); }
.ctx-chip.night { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); }
.rdm-close {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.rdm-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}
.rdm-body {
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  min-height: 0;
}
.rdm-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255, 255, 255, 0.015);
}
.rdm-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}
.replacing-card {
  background: rgba(196, 255, 61, 0.06);
  border: 1px solid rgba(196, 255, 61, 0.35);
  border-radius: 10px;
  padding: 12px;
  display: flex; gap: 12px; align-items: center;
}
.replacing-card-photo {
  width: 56px; height: 56px;
  border-radius: 8px;
  background-size: cover; background-position: center;
  flex-shrink: 0;
  border: 1px solid rgba(196, 255, 61, 0.4);
}
.replacing-card-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 16px;
  color: white; line-height: 1.1;
  margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.replacing-card-meta {
  font-size: 9px; color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.replacing-card-meta .neon { color: var(--neon); }
.slot-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.slot-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.slot-row:last-child { border-bottom: 0; }
.slot-row .k {
  font-size: 9px; color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.slot-row .v {
  color: white; font-weight: 700;
  font-family: 'Space Mono', monospace; font-size: 11px;
}
.slot-row .v.neon { color: var(--neon); }
.mode-toggle {
  display: flex; padding: 3px; gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.mode-btn {
  flex: 1; padding: 8px 10px; border-radius: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer; border: 0; background: transparent;
  transition: all 0.15s ease;
}
.mode-btn:hover:not(.active):not(:disabled) {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}
.mode-btn.active {
  background: rgba(196, 255, 61, 0.2);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(196, 255, 61, 0.25);
}
.mode-btn:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.filter-pill-row {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.filter-pill {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.12s ease;
}
.filter-pill:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.filter-pill.active {
  background: rgba(196, 255, 61, 0.2);
  border-color: rgba(196, 255, 61, 0.55);
  color: var(--neon);
}
.count-banner {
  background: rgba(196, 255, 61, 0.06);
  border: 1px solid rgba(196, 255, 61, 0.25);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}
.count-banner .big-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px; font-weight: 900;
  color: var(--neon);
  display: block; line-height: 1; margin-bottom: 5px;
}
.count-banner .sub {
  font-size: 10px; color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.rdm-main {
  display: flex; flex-direction: column;
  overflow: hidden; min-height: 0;
}
.rdm-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.search-input {
  position: relative; flex: 1; max-width: 420px;
}
.search-input input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}
.search-input input:focus {
  border-color: rgba(196, 255, 61, 0.5);
  background: rgba(196, 255, 61, 0.05);
}
.search-input::before {
  content: '🔍';
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
  opacity: 0.6;
}
.sort-group {
  display: flex; gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sort-btn {
  padding: 6px 12px; border-radius: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer; border: 0; background: transparent;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.sort-btn:hover { color: rgba(255, 255, 255, 0.9); }
.sort-btn.active {
  background: rgba(196, 255, 61, 0.18);
  color: var(--neon);
}
.rdm-result-count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  margin-left: auto;
  white-space: nowrap;
}
.rdm-result-count strong { color: var(--neon); font-weight: 700; }
.dj-grid {
  padding: 18px 22px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: max-content;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.dj-grid-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: 'Space Mono', monospace;
}
.dj-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  align-self: start;          /* don't stretch to row height in CSS Grid */
}
.dj-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 255, 61, 0.6);
  box-shadow: 0 8px 24px rgba(196, 255, 61, 0.25);
}
.dj-card.suggested {
  border-color: rgba(196, 255, 61, 0.45);
  box-shadow: 0 0 18px rgba(196, 255, 61, 0.18);
}
.dj-card.has-warning {
  border-color: rgba(251, 191, 36, 0.45);
}
.dj-card.kbd-focused {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}
.dj-card-suggested-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 8px;
  letter-spacing: 0.18em;
  padding: 3px 7px; border-radius: 3px;
  background: var(--neon); color: #0a0d1f;
  box-shadow: 0 2px 8px rgba(196, 255, 61, 0.5);
}
.warn-chip {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(251, 191, 36, 0.85);
  color: #0a0d1f;
  font-family: 'Space Mono', monospace;
  font-size: 8px; font-weight: 700; letter-spacing: 0.05em;
}
.dj-photo {
  width: 100%;
  padding-bottom: 100%;          /* enforces 1:1 inside flex column */
  background-size: cover; background-position: center;
  background-color: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.dj-photo::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.95));
  pointer-events: none;
}
.dj-photo-name {
  position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 15px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dj-info {
  padding: 8px 10px 10px;
  background: rgba(15, 23, 42, 0.96);
  display: flex; flex-direction: column; gap: 5px;
}
.dj-info-row {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.type-badge {
  font-family: 'Space Mono', monospace;
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 5px; border-radius: 3px;
  text-transform: uppercase;
}
.type-res   { background: rgba(254, 242, 0, 0.25);  color: #FEF200; }
.type-trvl  { background: rgba(96, 165, 250, 0.3);  color: #bfdbfe; }
.type-visit { background: rgba(239, 68, 68, 0.3);   color: #fecaca; }
.type-other { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
.genre-mini {
  padding: 1px 5px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px; color: rgba(255, 255, 255, 0.65);
  text-transform: lowercase;
}
.dj-stats {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.dj-stats .neon { color: var(--neon); }
.rdm-footer {
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  gap: 14px;
}
.rdm-kb-hints {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}
.rdm-kb-hints kbd {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}
.rdm-actions { display: flex; gap: 10px; }
.rdm-btn {
  padding: 8px 16px; border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.rdm-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}
.rdm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}
.rdm-btn-primary {
  background: var(--neon);
  color: #0a0d1f;
  box-shadow: 0 0 14px rgba(196, 255, 61, 0.5);
}
.rdm-btn-primary:hover {
  box-shadow: 0 0 22px rgba(196, 255, 61, 0.75);
  transform: translateY(-1px);
}
.rdm-btn-primary:disabled {
  opacity: 0.45; cursor: not-allowed; box-shadow: none;
}
.show-flag-row {
  display: flex; flex-direction: column; gap: 6px;
}
.show-flag {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.show-flag:hover { background: rgba(255, 255, 255, 0.04); }
.show-flag input { accent-color: var(--neon); }
/* Sub-flow: add visiting DJ form rendered inside rdm-main */
.rdm-newdj-form {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.rdm-newdj-field {
  display: flex; flex-direction: column; gap: 4px;
}
.rdm-newdj-field label {
  font-family: 'Space Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.rdm-newdj-field input,
.rdm-newdj-field textarea {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  outline: none;
}
.rdm-newdj-field input:focus,
.rdm-newdj-field textarea:focus {
  border-color: rgba(196, 255, 61, 0.5);
  background: rgba(196, 255, 61, 0.04);
}
/* Responsive — narrower viewports stack the sidebar above the grid */
@media (max-width: 767px) {
  .rdm-shell { inset: 8px; border-radius: 10px; }
  .rdm-header { padding: 10px 14px; }
  .rdm-header .rdm-title { font-size: 11px; letter-spacing: 0.12em; }
  .rdm-body { grid-template-columns: 1fr; }
  .rdm-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 38vh; padding: 12px 14px; gap: 12px;
  }
  .rdm-toolbar { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .dj-grid {
    padding: 12px 14px 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .rdm-footer { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .rdm-kb-hints { display: none; }
}

/* ============================================================
   BOOKING TILE (v2d canonical port from mockups/booking-week.html)
   ============================================================ */

/* ====== WEEK SECTION (month-view groupings) ====== */
.week-section { margin-top: 28px; }
.week-section:first-of-type { margin-top: 8px; }
.week-heading {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.week-swatch {
  width: 6px; height: 36px;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* ====== DAY STRIP (two-column: 200px sidebar + scrolling tiles) ====== */
.day-strip {
  display: grid;
  /* minmax(0, 1fr) — NOT plain 1fr. A 1fr track has an implicit min of
     min-content, so when a night has many slots the tiles column expands the
     track past the strip's width instead of scrolling; the overflow then gets
     clipped by the strip's `overflow: hidden` and the horizontal scrollbar
     never appears (the "3–4am Added Set" clipped-tile bug). minmax(0, …) lets
     the track shrink below content so `.day-strip-tiles`' own overflow-x
     scrollbar takes over. */
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(15, 23, 42, 0.75) 30%);
}
/* Dark week colors (e.g. Week 2 = #000000) would blend into the page bg — use a white outline */
.day-strip.is-dark-week { border-color: rgba(255, 255, 255, 0.6); }
.day-strip.is-dark-week .day-strip-sidebar { border-right-color: rgba(255, 255, 255, 0.6); }
.day-strip-sidebar {
  grid-column: 1; grid-row: 1;
  padding: 14px 10px 12px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border-right: 2px solid rgba(var(--accent-rgb), 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
/* ============================================================
   Collapsed day-strip — single short row (~40px tall).
   Sidebar goes horizontal, hides extras + stats + day-actions.
   Tiles column just shows a comma-separated DJ list.
   ============================================================ */
.day-strip.is-collapsed .day-strip-sidebar {
  padding: 6px 12px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
}
.day-strip.is-collapsed .day-strip-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.day-strip.is-collapsed .day-strip-top > .flex.items-baseline {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px;
  flex: initial;
}
.day-strip.is-collapsed .day-strip-top > .flex > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.day-strip.is-collapsed .day-big { font-size: 16px; }
.day-strip.is-collapsed .day-date { margin-top: 0 !important; font-size: 10px; }
.day-strip.is-collapsed .night-type-wrap { margin-top: 0 !important; }
.day-strip.is-collapsed .night-chip { font-size: 9px; padding: 2px 6px; }
.day-strip.is-collapsed .day-extras,
.day-strip.is-collapsed .day-strip-bottom,
.day-strip.is-collapsed .night-edit-btn,
.day-strip.is-collapsed .night-type-wrap { display: none !important; }
/* Tiles-column compact summary row also gets tighter padding */
.day-strip.is-collapsed > .day-strip-tiles,
.day-strip.is-collapsed > div:nth-child(2) { padding-top: 6px; padding-bottom: 6px; }

/* ====== DAY TILE STRIP ====== */
.day-strip-tiles {
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  align-items: flex-start;
  /* Pair with the grid's minmax(0, 1fr): lets this grid item shrink below its
     content so the horizontal scrollbar engages instead of widening the track. */
  min-width: 0;
}
.day-strip-tiles::-webkit-scrollbar { height: 6px; }
.day-strip-tiles::-webkit-scrollbar-thumb { background: rgba(196, 255, 61, 0.3); border-radius: 3px; }

/* ====== Day sidebar inner pieces ====== */
.day-big {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: white;
  letter-spacing: 0.02em;
}
.day-date {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.day-collapse {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.15s ease, color 0.15s ease;
  background: transparent;
  border: none;
  padding: 0;
}
.day-collapse:hover { color: white; }
.stats-line {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}
.night-type-wrap {
  display: flex; align-items: center; gap: 4px;
}
.night-chip {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), 0.3);
  color: white;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  display: inline-block;
  cursor: pointer;
}
.night-edit-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.day-strip-sidebar:hover .night-edit-btn { opacity: 1; }
.night-edit-btn:hover { color: #c4ff3d; background: rgba(196, 255, 61, 0.1); }

.day-extras { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
/* Inline edit field for competing event */
.competing-event-edit {
  font-size: 11px;
  color: #fb923c;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(249, 115, 22, 0.4);
  outline: none;
  font-family: 'Space Mono', monospace;
  width: 100%;
  padding: 0;
}
.competing-event-add {
  font-size: 10px;
  color: #f97316;
  opacity: 0;
  transition: opacity 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  font-family: 'Space Mono', monospace;
}
.day-strip-sidebar:hover .competing-event-add { opacity: 0.55; }
.competing-event-add:hover { opacity: 1 !important; }

.day-strip-top { display: flex; flex-direction: column; }
.day-strip-bottom { display: flex; flex-direction: column; gap: 6px; }


/* ====== TILE WRAPPER ======
   Width is pinned to the tile's data-duration width so long sibling content
   (e.g. the Tried DJs row) cannot push the column wider than the tile. */
.tile-wrapper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 6px;
  min-width: 0;
}
.tile-wrapper[data-duration="60"]  { width: 180px; }
.tile-wrapper[data-duration="90"]  { width: 270px; }
.tile-wrapper[data-duration="120"] { width: 360px; }
.tile-wrapper[data-duration="150"] { width: 420px; }
.tile-wrapper[data-duration="180"] { width: 480px; }
/* Sibling rows below the tile (Tried DJs, suggest-expansion) wrap inside the wrapper */
.tile-wrapper > * { max-width: 100%; min-width: 0; }
.tried-djs-row {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.tried-djs-row .tried-label { color: rgba(156, 163, 175, 1); }

/* ====== DJ TILE ====== */
.dj-tile {
  height: 200px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  transition: all 0.2s ease;
  background: #0a0d1f;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.dj-tile:active { cursor: grabbing; }
.dj-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.dj-tile[data-duration="60"]  { width: 180px; }
.dj-tile[data-duration="90"]  { width: 270px; }
.dj-tile[data-duration="120"] { width: 360px; }
.dj-tile[data-duration="150"] { width: 420px; }
.dj-tile[data-duration="180"] { width: 480px; }

/* ====== BORDER LADDER ====== */
.dj-tile.suggested {
  border: 2px dashed #fff;
}
.dj-tile.suggested .tile-bg,
.dj-tile.suggested .tile-bg-half {
  filter: grayscale(1) brightness(0.82) contrast(1.05);
}
/* Active-discussion override: a tile with pending suggestions stays in full color */
.dj-tile.has-suggestions .tile-bg,
.dj-tile.has-suggestions .tile-bg-half {
  filter: none;
}
/* Saved sits between suggested (2px dashed white) and confirmed (4px solid
   lime + glow), so it brightens by ALPHA only — raising the weight or adding
   a glow here would blur the line between "I like this" and "this is booked".
   Was 0.55, which read as washed-out next to The Space lane's 0.9. */
.dj-tile.saved {
  border: 1.75px solid rgba(196, 255, 61, 0.9);
}
.dj-tile.confirmed {
  border: 4px solid rgba(196, 255, 61, 1);
  box-shadow: 0 0 28px rgba(196, 255, 61, 0.55), 0 0 6px rgba(196, 255, 61, 0.45);
}

/* ====== Drag visuals ====== */
.dj-tile.dragging {
  opacity: 0.5;
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}
.dj-tile.drag-target {
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.4);
}
.dj-tile.drag-target::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px dashed rgba(250, 204, 21, 0.9);
  border-radius: 13px;
  pointer-events: none;
  z-index: 20;
  animation: drag-target-pulse 1.2s ease-in-out infinite;
}
@keyframes drag-target-pulse {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.45; }
}

/* ====== Tile background ====== */
.tile-bg, .tile-bg-split {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
}
.tile-bg-split { display: flex; }
.tile-bg-half {
  flex: 1 1 50%;
  background-position: center;
  background-size: cover;
  position: relative;
}
.tile-bg-half + .tile-bg-half::before {
  content: '';
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.55));
  z-index: 2;
}
.b2b-conn {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(216, 180, 254, 0.85);
  padding: 0 3px;
  vertical-align: middle;
}

/* ====== Time chip ====== */
.tile-time-chip {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: white;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.tile-time-chip:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(196, 255, 61, 0.55);
  transform: translateY(-1px);
}
.dj-tile[data-duration="120"] .tile-time-chip { font-size: 12px; padding: 5px 11px; }
.dj-tile[data-duration="150"] .tile-time-chip,
.dj-tile[data-duration="180"] .tile-time-chip { font-size: 12px; padding: 5px 11px; }

/* ====== Corner column (lock/save + avatars) ====== */
.corner-col {
  position: absolute;
  top: 7px; right: 7px;
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
}
.slot-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  margin-bottom: 3px;
}
.slot-icon:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(255, 255, 255, 0.25); }
.slot-icon.is-saved   { background: rgba(196, 255, 61, 0.55); border-color: rgba(196, 255, 61, 0.7); color: #0a0d1f; }
.slot-icon.is-locked  { background: rgba(196, 255, 61, 1); border-color: rgba(196, 255, 61, 1); color: #0a0d1f; }
.slot-icon.is-suggest { background: rgba(0, 0, 0, 0.6); border-color: rgba(192, 132, 252, 0.7); color: rgba(255, 255, 255, 0.95); }

.tile-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 800; color: black;
  border: 1.5px solid rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.6);
  cursor: default;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}
.tile-avatar.is-me { cursor: pointer; }
.tile-avatar:hover { transform: scale(1.18); }
.tile-avatar.is-me:hover .pill-x { opacity: 1; }
.pill-x {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

/* ====== HOVER ACTION CAPSULE ====== */
.hover-actions {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.92);
  z-index: 5;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.dj-tile:hover .hover-actions {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.action-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}
.action-btn:hover {
  background: rgba(196, 255, 61, 0.28);
  border-color: rgba(196, 255, 61, 0.7);
  color: #c4ff3d;
  transform: scale(1.06);
}
.action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.action-btn .tt {
  position: absolute;
  bottom: 116%; left: 50%; transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.95);
  padding: 3px 6px; border-radius: 3px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.1s ease;
}
.action-btn:hover .tt { opacity: 1; }

/* ====== Tile bottom (name + meta) ====== */
.tile-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 10px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 35%, rgba(0, 0, 0, 0.96) 100%);
  z-index: 2;
}
.tile-dj-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: white;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Length-based shrink+wrap: JSX sets data-name-len="short|med|long" so long names stay visible */
.tile-dj-name[data-name-len="med"]  { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; word-break: break-word; }
.tile-dj-name[data-name-len="long"] { font-size: 13px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; word-break: break-word; }
.dj-tile[data-duration="90"]  .tile-dj-name { font-size: 22px; }
.dj-tile[data-duration="90"]  .tile-dj-name[data-name-len="med"]  { font-size: 18px; }
.dj-tile[data-duration="90"]  .tile-dj-name[data-name-len="long"] { font-size: 15px; }
.dj-tile[data-duration="120"] .tile-dj-name { font-size: 26px; }
.dj-tile[data-duration="120"] .tile-dj-name[data-name-len="med"]  { font-size: 22px; }
.dj-tile[data-duration="120"] .tile-dj-name[data-name-len="long"] { font-size: 18px; }
.dj-tile[data-duration="150"] .tile-dj-name,
.dj-tile[data-duration="180"] .tile-dj-name { font-size: 26px; }
.dj-tile[data-duration="150"] .tile-dj-name[data-name-len="med"],
.dj-tile[data-duration="180"] .tile-dj-name[data-name-len="med"]  { font-size: 22px; }
.dj-tile[data-duration="150"] .tile-dj-name[data-name-len="long"],
.dj-tile[data-duration="180"] .tile-dj-name[data-name-len="long"] { font-size: 18px; }
.headliner-star {
  color: #c4ff3d;
  font-size: 14px;
  margin-left: 4px;
  text-shadow: 0 0 8px rgba(196, 255, 61, 0.7);
}
.tile-meta-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  min-width: 0;
}
.meta-left {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; min-width: 0;
}
.tile-badge {
  padding: 3px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'Space Mono', monospace;
  display: inline-block;
}
.badge-res   { background: rgba(254, 242, 0, 0.4);  color: #FEF200; }
.badge-trvl  { background: rgba(96, 165, 250, 0.45); color: #bfdbfe; }
.badge-visit { background: rgba(239, 68, 68, 0.45);  color: #fecaca; }
.badge-b2b   { background: rgba(168, 85, 247, 0.45); color: #e9d5ff; }
.genre-pill {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  padding: 3px 7px; border-radius: 3px;
  font-size: 10px; font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1;
}

/* ====== Suggestion expansion strip ====== */
.suggest-expansion {
  padding: 8px 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 8px;
}
.suggest-expansion-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(216, 180, 254, 0.85);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.suggest-row {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  padding: 3px 0;
}
.suggest-avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px; font-weight: 800; color: black;
  flex-shrink: 0;
}
.suggest-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}
.suggest-dj {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.suggest-row .accept-btn {
  margin-left: auto;
  background: rgba(196, 255, 61, 0.18);
  border: 1px solid rgba(196, 255, 61, 0.5);
  color: #c4ff3d;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.suggest-row .accept-btn:hover {
  background: rgba(196, 255, 61, 0.35);
}

/* ====== Add-tile placeholder ====== */
.add-tile {
  width: 60px; height: 200px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(196, 255, 61, 0.3);
  border-radius: 10px;
  color: rgba(196, 255, 61, 0.5);
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 200;
}
.add-tile:hover { background: rgba(196, 255, 61, 0.08); color: #c4ff3d; }

/* Main-room closer placeholder — the default lineup ends at 2am (the closer
   plays The Space afters); this advertises the vacant main-room closer slot
   (MAIN_CLOSER_TIME in main.jsx). Same idiom as .space-placeholder but sized
   like a real tile and painted in the main room's lime. */
.main-closer-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 200px; border-radius: 10px;
  border: 2px dashed rgba(196, 255, 61, 0.3); color: rgba(196, 255, 61, 0.5);
  transition: all 0.12s ease;
}
.main-closer-placeholder:hover { border-color: #c4ff3d; color: #c4ff3d; background: rgba(196, 255, 61, 0.08); }
.main-closer-placeholder-time { font-family: 'Space Mono', monospace; font-size: 11px; }

/* ====== Day actions row (sidebar bottom) ====== */
.day-actions {
  display: flex; gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.week-actions {
  display: flex; gap: 6px;
  align-items: center;
}
/* Week-action icons render in the week color. On dark weeks (e.g. Week 2 = #000000)
   the button's interior switches to a white inner background so the dark icon glyph
   stays visible against the dark page bg. CSS vars set inline on .week-actions. */
.week-actions .day-action-btn {
  color: var(--week-icon-color, rgba(255, 255, 255, 0.65));
  border-color: var(--week-icon-border-color, rgba(255, 255, 255, 0.14));
  background: var(--week-icon-bg, rgba(0, 0, 0, 0.5));
}
.week-actions .day-action-btn:hover {
  background: var(--week-icon-hover-bg, rgba(196, 255, 61, 0.2));
  border-color: var(--week-icon-color, rgba(196, 255, 61, 0.5));
  color: var(--week-icon-color, #c4ff3d);
}
.day-action-btn {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.day-action-btn:hover {
  background: rgba(196, 255, 61, 0.2);
  border-color: rgba(196, 255, 61, 0.5);
  color: #c4ff3d;
  transform: translateY(-1px);
}
.day-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: #ef4444;
}
.day-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ====== Pinned events / competing event ====== */
.competing-event {
  font-size: 11px;
  color: #fb923c;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.pinned-events {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.pinned-event {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px 2px 7px;
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.pinned-event::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pinned-event .pin-x {
  background: transparent;
  border: none;
  color: currentColor;
  opacity: 0.5;
  cursor: pointer;
  padding: 0 0 0 2px;
  font-size: 12px;
  line-height: 1;
}
.pinned-event .pin-x:hover { opacity: 1; }
.pinned-event.treefort { background: rgba(34, 197, 94, 0.22); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.pinned-event.shrine   { background: rgba(99, 102, 241, 0.22); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.4); }
.pinned-event.knitting { background: rgba(251, 146, 60, 0.22); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.4); }

/* ============================================================
   MORE MODAL (per-slot)
   ============================================================ */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
  text-align: left;
  width: 100%;
}
.more-item:hover {
  background: rgba(196, 255, 61, 0.06);
  border-color: rgba(196, 255, 61, 0.4);
  transform: translateY(-1px);
}
.more-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.55);
}
.more-item.admin-only::after {
  content: 'super-admin';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 8px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.7);
}
.mi-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(196, 255, 61, 0.12);
  border: 1px solid rgba(196, 255, 61, 0.3);
  color: #c4ff3d;
  display: flex; align-items: center; justify-content: center;
}
.more-item.danger .mi-icon {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
.more-item.admin-only .mi-icon {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.mi-label {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.mi-sub {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.3;
}
.mi-value {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #c4ff3d;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.mi-value.warn { color: #fbbf24; }
.mi-value.muted { color: rgba(255, 255, 255, 0.45); }
.section-divider {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin: 18px 0 8px;
  display: flex; align-items: center; gap: 10px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== The Space lane (second room) — THE_SPACE_PLAN.md §6 ===== */
.space-lane {
  grid-column: 2; grid-row: 2;
  margin: 2px 8px 8px 8px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.05);
}
.space-lane-title {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; color: #00e5ff;
}
.space-lane-tiles { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; }
.space-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 100%; height: 74px; border-radius: 10px;
  border: 2px dashed rgba(0, 229, 255, 0.35); color: rgba(0, 229, 255, 0.65);
  transition: all 0.12s ease;
}
.space-placeholder:hover { border-color: #00e5ff; color: #00e5ff; background: rgba(0, 229, 255, 0.08); }
.space-placeholder-time { font-family: 'Space Mono', monospace; font-size: 10px; }

/* Main-room tiles strip — row 1, col 2. The Space lane (when open) sits on
   its own grid row below, paired with the .space-sidebar block in col 1 so
   both rooms get the same sidebar-left / tiles-right layout. */
.day-rooms { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }

/* The Space sidebar block — row 2, col 1. Mirrors .day-strip-sidebar: lane
   name + night-type chip + promoter note + lane actions, aligned with the
   lane's tiles to its right. */
.space-sidebar {
  grid-column: 1; grid-row: 2;
  padding: 8px 10px 12px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.22) 0%, rgba(var(--accent-rgb), 0.08) 100%);
  border-right: 2px solid rgba(var(--accent-rgb), 0.4);
  border-top: 1px dashed rgba(0, 229, 255, 0.35);
  display: flex; flex-direction: column; gap: 6px;
}
.day-strip.is-dark-week .space-sidebar { border-right-color: rgba(255, 255, 255, 0.6); }
.space-sidebar:hover .night-edit-btn { opacity: 1; }
.space-sidebar:hover .competing-event-add { opacity: 0.55; }
.space-sidebar .space-note { max-width: none; white-space: normal; overflow: visible; }
/* Violet variant of the main room's night chip */
.night-chip.space-night-chip {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.55);
  color: #ccf7ff;
}
.night-chip.space-night-chip:hover { border-color: #00e5ff; }

/* Space toggle (⚡) — lives beside the day name/emoji (top-right of the
   sidebar), NOT in the day-action row (those act on the main room's lineup;
   this opens/closes the second room). */
.day-name-right { display: flex; align-items: center; gap: 6px; }
.space-toggle-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: rgba(0, 229, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}
.space-toggle-btn:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.6);
  color: #7df0ff;
  transform: translateY(-1px);
}
.space-toggle-btn.is-open {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.7);
  background: rgba(0, 229, 255, 0.16);
}
/* Collapsed day can't show the lane, so hide the toggle to avoid a no-op. */
.day-strip.is-collapsed .space-toggle-btn { display: none; }

/* Space placeholder as a cross-room drop target during a drag */
.space-placeholder.drop-ready {
  border-color: rgba(250, 204, 21, 0.8);
  color: rgba(250, 204, 21, 0.9);
  animation: drag-target-pulse 1.2s ease-in-out infinite;
}

/* Promoter note (rendered in .space-sidebar) */
.space-note {
  font-family: 'Space Mono', monospace; font-size: 10px; font-style: italic;
  color: rgba(207, 170, 255, 0.75); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px;
}
.space-note:hover { color: #7df0ff; }
/* Trailing add-tile */
.space-add-tile { border-color: rgba(0, 229, 255, 0.35); color: rgba(0, 229, 255, 0.6); }
.space-add-tile:hover { border-color: #00e5ff; color: #00e5ff; }

/* Space-lane tile states — THE SPACE stays on the cool side of the wheel:
   saved swaps the main room's lime for a light blue, confirmed swaps the
   gold for the brand's Strobe (#00E5FF) at the same 4px weight + glow.
   Suggested (dashed white) is shared with the main room. Corner icons
   follow the same substitution so the state language stays consistent. */
.space-lane .dj-tile.saved {
  border-color: rgba(125, 240, 255, 0.9);
}
.space-lane .dj-tile.confirmed {
  border-color: #00e5ff;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.55), 0 0 6px rgba(0, 229, 255, 0.45);
}
.space-lane .slot-icon.is-saved  { background: rgba(125, 240, 255, 0.92); border-color: #7df0ff; color: #0a0d1f; }
.space-lane .slot-icon.is-locked { background: #00e5ff; border-color: #00e5ff; color: #0a0d1f; }
