:root {
  --bg: #0a0612;
  --panel: #150c24;
  --panel-2: #1c1130;
  --line: #2a1c42;
  --text: #f1ecff;
  --text-dim: #9d8fc2;
  --magenta: #ff2e88;
  --cyan: #28e0ff;
  --acid: #b6ff2b;
  --font-display: 'Righteous', cursive;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255,46,136,0.18), transparent 70%),
    radial-gradient(50% 40% at 80% 20%, rgba(40,224,255,0.12), transparent 70%),
    var(--bg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(182,255,43,0.08), transparent 60%);
}

.mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120vw, 780px);
  height: min(120vw, 780px);
  transform: translate(-50%, -50%);
  opacity: 0.14;
  animation: spin 90s linear infinite;
  object-fit: contain;
  pointer-events: none;
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mandala { animation: none; }
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.logo-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255,46,136,0.45));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255,46,136,0.45);
}
.wordmark span {
  background: linear-gradient(90deg, var(--magenta), var(--cyan) 60%, var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0.9rem 0 2rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

#search {
  flex: 1 1 320px;
  max-width: 420px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
#search:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255,46,136,0.2); }
#search::placeholder { color: var(--text-dim); }

.chips { display: flex; gap: 0.5rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--text); }
.chip.is-active {
  background: var(--panel-2);
  border-color: var(--magenta);
  color: var(--text);
}

.multiselect {
  position: relative;
}
.multiselect-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239d8fc2'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%239d8fc2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.multiselect-btn:hover { border-color: var(--acid); color: var(--text); }
.multiselect-btn.has-selection { border-color: var(--magenta); color: var(--text); }

.multiselect-panel {
  /* position is set to "fixed" + explicit top/left via JS when opened
     (see setupMultiselect in app.js) - the hero section has overflow:
     hidden to contain the rotating mandala background, which would
     otherwise clip an absolutely-positioned dropdown at the hero's edge. */
  position: fixed;
  z-index: 200;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.multiselect-panel.hidden { display: none; }

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
}
.multiselect-option:hover { background: var(--panel-2); }
.multiselect-option input { accent-color: var(--magenta); cursor: pointer; }
.multiselect-option .count { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.75rem; margin-left: auto; }

.multiselect-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.multiselect-clear,
.multiselect-none {
  display: block;
  flex: 1;
  padding: 0.4rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
}
.multiselect-clear:hover { color: var(--acid); }
.multiselect-none:hover { color: var(--magenta); }

.refresh-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  cursor: pointer;
}
.refresh-btn:hover { background: rgba(182,255,43,0.1); }
.refresh-btn:disabled { opacity: 0.5; cursor: default; }

.status-line {
  margin-top: 1rem;
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- Sources panel ---------- */
.sources-panel {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.sources-panel.hidden { display: none; }

.sources-panel-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
}

.sources-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sources-panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: 0.02em;
}

.panel-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.panel-close:hover { border-color: var(--magenta); color: var(--text); }

.label-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.label-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}
.label-list .remove-label {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  line-height: 1;
  font-size: 0.85rem;
}
.label-list .remove-label:hover { background: rgba(255,46,136,0.2); color: var(--magenta); }
.label-list .empty-hint { color: var(--text-dim); font-family: var(--font-body); font-size: 0.85rem; }

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
}
.history-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 0.82rem;
}
.history-list .h-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.history-list .h-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.history-list .h-source.ok { background: rgba(182,255,43,0.15); color: var(--acid); }
.history-list .h-source.error { background: rgba(255,46,136,0.15); color: var(--magenta); }
.history-list .h-detail {
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-list .h-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
}
.history-list .empty-hint { color: var(--text-dim); font-family: var(--font-body); font-size: 0.85rem; }

.discord-header { margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

.discord-actions { margin-bottom: 0.9rem; }
.test-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}
.test-btn:hover { background: rgba(40,224,255,0.1); }
.test-btn:disabled { opacity: 0.5; cursor: default; }

.add-label-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.add-label-form input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}
.add-label-form input:focus { border-color: var(--acid); }
.add-label-form button {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.add-label-form button:hover { background: rgba(182,255,43,0.12); }

.sources-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.sources-hint code {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.sources-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acid);
  min-height: 1.1em;
}

/* ---------- Grid ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.upcoming-section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.upcoming-section.hidden { display: none; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.01em;
}

.toggle-upcoming-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.toggle-upcoming-btn:hover { border-color: var(--acid); color: var(--acid); }

.upcoming-grid.is-collapsed { display: none; }

.upcoming-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.upcoming-grid .card { border-color: rgba(182,255,43,0.25); }
.upcoming-grid .card-date {
  color: var(--acid);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--magenta); }

.card-art-link { display: block; }

.card-art {
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  display: block;
  width: 100%;
  object-fit: cover;
}
.card-art.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
  padding: 1rem;
}

.card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }

.card-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  text-decoration: none;
  color: var(--text);
}
.card-title:hover { color: var(--magenta); }
.card-artist { color: var(--text-dim); font-size: 0.88rem; }
.card-label { color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-mono); }

.card-meta {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card.is-seen { opacity: 0.5; }
.card.is-seen:hover { opacity: 0.75; }

.badge.bandcamp { background: rgba(40,224,255,0.15); color: var(--cyan); }
.badge.beatport { background: rgba(255,46,136,0.15); color: var(--magenta); }
.badge.psyfeed { background: rgba(182,255,43,0.15); color: var(--acid); }
.badge.alt-badge {
  text-decoration: none;
  opacity: 0.7;
  border: 1px solid currentColor;
}
.badge.alt-badge:hover { opacity: 1; }

.card-date { color: var(--text-dim); }

.card-links {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.platform-icon {
  width: 14px;
  height: 14px;
  display: block;
}
.badge .platform-icon { width: 11px; height: 11px; }

.platform-link,
.search-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
}
.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  line-height: 0; /* icon-only pill: keep it snug/circular, no extra text-line height */
}
.platform-deezer { border-color: rgba(182,255,43,0.4); color: var(--acid); }
.platform-deezer:hover { background: rgba(182,255,43,0.12); }
.platform-spotify {
  border-color: rgba(30,215,96,0.5);
  color: #1ed760;
  padding: 0.3rem 0.65rem; /* no icon yet - keep the original text-pill padding */
  line-height: normal;
}
.platform-spotify:hover { background: rgba(30,215,96,0.12); }
.platform-apple { border-color: rgba(250,60,90,0.5); color: #fa3c5a; }
.platform-apple:hover { background: rgba(250,60,90,0.12); }
.platform-youtube { border-color: rgba(255,0,0,0.5); color: #ff0000; }
.platform-youtube:hover { background: rgba(255,0,0,0.12); }
.search-link {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(40,224,255,0.4);
  color: var(--cyan);
}
.search-link:hover { background: rgba(40,224,255,0.12); }

.card-actions {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.seen-toggle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.seen-toggle:hover { border-color: var(--text); color: var(--text); }
.card.is-seen .seen-toggle {
  border-color: var(--acid);
  color: var(--acid);
}

.favorite-toggle {
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.favorite-toggle:hover {
  border-color: var(--text);
  filter: grayscale(0.4) opacity(0.85);
}
.favorite-toggle.is-active {
  filter: none;
  border-color: var(--magenta);
  transform: scale(1.05);
}
.favorite-toggle.favorite-crush.is-active { border-color: var(--acid); }

.empty { text-align: center; padding: 4rem 1rem; color: var(--text-dim); }
.empty code { font-family: var(--font-mono); color: var(--acid); }
.hidden { display: none; }

.load-more {
  display: block;
  margin: 2.5rem auto 0;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  cursor: pointer;
}
.load-more:hover { border-color: var(--cyan); }

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 2rem 1.5rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Auth modal ---------- */
.login-open-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--magenta);
  background: rgba(10,6,18,0.7);
  backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
}
.login-open-btn:hover { background: rgba(255,46,136,0.15); }
.login-open-btn.hidden { display: none; }

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5,3,10,0.75);
  backdrop-filter: blur(4px);
}
.auth-modal-backdrop.hidden { display: none; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.auth-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}
.auth-close:hover { color: var(--text); }

.preview-hint {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.preview-hint.hidden { display: none; }
.preview-hint-link {
  background: none;
  border: none;
  color: var(--cyan);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.preview-hint-link:hover { color: var(--magenta); }

.auth-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255,46,136,0.45));
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.auth-title span {
  background: linear-gradient(90deg, var(--magenta), var(--cyan) 60%, var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-subtitle {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.auth-form.hidden { display: none; }

.auth-form input {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}
.auth-form input:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255,46,136,0.2); }
.auth-form input::placeholder { color: var(--text-dim); }

.auth-form button {
  margin-top: 0.3rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  color: #0a0612;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}
.auth-form button:hover { opacity: 0.9; }
.auth-form button:disabled { opacity: 0.5; cursor: default; }

.auth-error {
  color: var(--magenta);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}
.auth-error.hidden { display: none; }

.auth-toggle {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}
.auth-toggle:hover { color: var(--cyan); }

.user-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.55rem 0.2rem;
}
.user-badge .admin-tag {
  color: var(--acid);
  margin-left: 0.3rem;
}

.you-tag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.user-action-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  margin-left: 0.4rem;
}
.user-action-btn:hover { border-color: var(--cyan); color: var(--text); }
.delete-user-btn:hover { border-color: var(--magenta); color: var(--magenta); }


/* ---- Admin: registration mode + invite codes ---- */
.panel-subtitle {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.panel-select,
.invite-new input {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.panel-select { width: 100%; }
.panel-select option { background: #12091f; color: var(--text); }
.invite-new {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0.7rem 0;
}
.invite-new label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.invite-new input { width: 6.5rem; }
.invite-code { font-family: var(--font-mono); letter-spacing: 0.08em; color: var(--acid); }
.invite-meta { font-size: 0.72rem; color: var(--text-dim); }
.invite-inactive .invite-code { color: var(--text-dim); text-decoration: line-through; }
