/* ==========================================================================
   MythicMusic · Seiten-Module
   Automatisch aus den alten Stylesheets (styles, dash, ui, ui2, ui3, v4) übernommen:
   nur seitenspezifische Regeln, ohne Großbuchstaben, Pixel-Schrift, Verläufe und Glows.
   Grundbausteine (Buttons, Felder, Rahmen …) stehen in app.css, das danach geladen wird.
   ========================================================================== */

/* ---- aus styles.css ---- */

/* ------------------------------------------------------------------- Forms */

.code-textarea {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form .input {
  min-width: 190px;
  width: auto;
}

.color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.color-input {
  width: 42px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

/* ------------------------------------------------------------ Hero stage */

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

/* --------------------------------------------------------------- Sections */
.server-fallback {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.server-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  font-weight: 600;
  color: var(--red-soft);
}

/* ------------------------------------------------------------------ Panels */
.chip-danger:hover {
  color: #ffb3b3;
  border-color: rgba(255, 59, 59, 0.6);
  background: rgba(207, 20, 23, 0.2);
}

/* -------------------------------------------------------------- Dashboard */

.dash-main {
  margin-top: 12px;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 18px;
  flex-wrap: wrap;
}
.dash-head h2 {
  font-size: 22px;
}
.quota {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted-2);
}
.quota-bar {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.quota-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.premium-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(169, 156, 255, 0.25);
  background:
    var(--surface);
  flex-wrap: wrap;
  border-radius: var(--radius-md);
}
.premium-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.premium-strip strong {
  font-size: 14px;
}
.premium-strip span {
  font-size: 12px;
  color: var(--muted);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.playlist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    var(--surface);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  border-radius: var(--radius-md);
}
.playlist-card:hover {
  border-color: rgba(255, 59, 59, 0.3);
}
.playlist-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--surface);
  opacity: 0.6;
}
.playlist-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.playlist-index {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.22);
}
.playlist-badges {
  display: flex;
  gap: 6px;
}
.playlist-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.playlist-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-2);
  margin: 14px 0 10px;
}
.playlist-codes {
  margin-bottom: 16px;
  min-width: 0;
}
.playlist-actions {
  display: flex;
  gap: 7px;
  margin-top: auto;
  flex-wrap: wrap;
}
.playlist-actions .btn {
  flex: 1;
  min-width: 0;
}

/* --------------------------------------------------------------- Playlist */

.playlist-hero {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    var(--surface);
  margin-bottom: 20px;
  align-items: start;
  border-radius: var(--radius-md);
}
.playlist-hero-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.playlist-hero h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.playlist-hero p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 620px;
}
.playlist-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.playlist-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-md);
}
.playlist-hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.playlist-hero-stats strong {
  font-size: 15px;
}
.code-value {
  font-family: "JetBrains Mono", Consolas, monospace;
  color: var(--red-soft);
}

.track-add-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.track-add-head h2 {
  font-size: 18px;
}
.track-add-head p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
  max-width: 600px;
}
.track-add-form {
  display: flex;
  gap: 10px;
}
.track-add-form .input {
  flex: 1;
}

.track-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.track-list-head h2 {
  font-size: 18px;
}
.track-list-head .muted {
  font-size: 11.5px;
}

.track-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.track-row {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.14s ease;
}
.track-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.track-position {
  font-size: 9px;
  color: var(--muted-2);
  text-align: right;
}
.track-cover {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--stone);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}
.track-cover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--track-accent, var(--red));
}
.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-cover span {
  color: var(--track-accent, var(--red-soft));
  font-weight: 600;
  font-size: 16px;
}
.track-info {
  min-width: 0;
}
.track-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.14s ease;
}
.track-title:hover {
  color: var(--red-soft);
}
.track-sub {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 3px;
}
.track-platform {
  font-weight: 600;
}
.track-actions {
  display: flex;
  gap: 4px;
}

/* ---------------------------------------------------------------- Premium */

.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.premium-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.premium-card h2 {
  font-size: 24px;
}
.premium-card-featured {
  border-color: rgba(255, 59, 59, 0.4);
  background:
    var(--surface);
  border-radius: var(--radius-md);
}
.premium-ribbon {
  position: absolute;
  top: 16px;
  right: -36px;
  transform: rotate(38deg);
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 42px;
}
.price {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}
.check-list li::before {
  content: "▸";
  color: var(--red-bright);
  margin-right: 8px;
}
.premium-card-featured .check-list li::before {
  content: "✦";
  color: var(--red-soft);
}
.premium-note {
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
}

.guild-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guild-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}
.guild-icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.guild-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stone);
  font-weight: 600;
  color: var(--red-soft);
}
.guild-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}
.guild-info strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guild-info span {
  font-size: 11px;
  color: var(--muted-2);
}
.guild-status {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}
.guild-status .muted {
  font-size: 10.5px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.perk {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: rgba(207, 20, 23, 0.12);
  flex-shrink: 0;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.perk strong {
  font-size: 13.5px;
}
.perk p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.premium-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Tables */
.cell-server {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cell-server img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.cell-server .guild-icon {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.cell-server div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}
.cell-server strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.cell-result {
  max-width: 260px;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ------------------------------------------------------------------- Dev */

.dev-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.dev-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: var(--radius-md);
}
.dev-tab span {
  font-size: 11px;
  opacity: 0.7;
}
.dev-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.dev-tab.is-active {
  color: var(--text);
  border-color: var(--line);
  border-bottom-color: var(--red-bright);
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius-md);
}

.dev-tab-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--muted-2);
}
.status-done {
  background: var(--green);
}
.status-failed,
.status-error {
  background: var(--red-bright);
}
.status-running,
.status-queued {
  background: var(--amber);
}

.template-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.template-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
  border-radius: var(--radius-md);
}
.template-chip:hover {
  color: var(--text);
  border-color: rgba(255, 59, 59, 0.4);
  background: rgba(207, 20, 23, 0.1);
}

.preview-panel {
  position: sticky;
  top: 96px;
}
.preview-embed {
  position: relative;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0c11;
  margin-bottom: 14px;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-md);
}
.preview-bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--red);
}
.preview-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.preview-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.preview-author img {
  width: 22px;
  height: 22px;
  object-fit: cover;
}
.preview-title {
  font-size: 14px;
  color: #fff;
}
.preview-body {
  font-size: 12px;
  color: #c9c4d2;
  white-space: pre-wrap;
  line-height: 1.55;
  word-break: break-word;
  max-height: 260px;
  overflow: hidden;
}
.preview-footer {
  font-size: 10px;
  color: #8a8496;
  margin-top: auto;
}
.preview-accent {
  display: block;
  width: 42px;
  height: 3px;
}
.preview-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-swatches {
  display: flex;
  gap: 8px;
}
.color-swatches span {
  width: 42px;
  height: 26px;
  border: 1px solid var(--line-strong);
}

/* -------------------------------------------------------- Errors / Audit */

.error-list,
.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.error-item {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  border-left: 2px solid var(--red);
  border-radius: var(--radius-md);
}
.error-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.error-message {
  font-size: 11.5px;
  color: #ffc9c9;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.error-context {
  font-size: 10.5px;
  color: var(--muted-2);
  background: rgba(0, 0, 0, 0.35);
  padding: 9px;
  margin: 8px 0 0;
  overflow-x: auto;
  max-height: 180px;
}
.audit-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
}
.audit-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.audit-detail {
  font-size: 10.5px;
  color: var(--muted-2);
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  max-height: 140px;
}

/* ------------------------------------------------------------------ Shared */

.shared-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    var(--surface);
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-radius: var(--radius-md);
}
.shared-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  margin: 10px 0 8px;
}
.shared-hero p {
  color: var(--muted);
  max-width: 620px;
}
.shared-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted-2);
}
.shared-owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}
.shared-owner img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.shared-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.shared-code {
  padding: 20px 26px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-md);
}
.shared-code strong {
  font-size: 14px;
  color: var(--red-soft);
}

/* ------------------------------------------------------------------ Modal */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ----------------------------------------------------------------- Toasts */
@keyframes toastIn {
  from {
    transform: translateX(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* -------------------------------------------------------------- Utilities */

.loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-lg {
  width: 22px;
  height: 22px;
  border-width: 3px;
}
.empty-icon {
  font-size: 34px;
  color: rgba(255, 59, 59, 0.55);
  line-height: 1;
  margin-bottom: 4px;
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .playlist-hero {
    grid-template-columns: 1fr;
  }
  .premium-grid {
    grid-template-columns: 1fr;
  }
  .perk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .playlist-grid,
  .perk-grid {
    grid-template-columns: 1fr;
  }
  .track-add-form {
    flex-direction: column;
  }
  .track-row {
    grid-template-columns: 26px 40px minmax(0, 1fr);
    gap: 10px;
  }
  .track-cover {
    width: 40px;
    height: 40px;
  }
  .track-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }
  .playlist-hero {
    padding: 22px;
  }
  .premium-card {
    padding: 24px;
  }
  .shared-hero {
    padding: 24px;
  }
  .shared-code {
    width: 100%;
  }
}

/* ==========================================================================
   V3 · Ergänzungen für die EJS-Seiten (ohne React)
   ========================================================================== */

form.inline {
  display: inline-flex;
  margin: 0;
}

.dev-tab {
  text-decoration: none;
}

.dev-search {
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cell-entity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.cell-entity img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.cell-entity > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cell-entity .server-fallback {
  width: 32px;
  height: 32px;
}

.cell-actions {
  white-space: nowrap;
  text-align: right;
}

.cell-actions .btn + .btn {
  margin-left: 6px;
}

.payload summary {
  cursor: pointer;
  font-size: 0.8rem;
}

.error-detail {
  padding: 4px 16px 16px;
}

.error-detail p {
  margin: 8px 0;
  word-break: break-word;
}

.brand-preview {
  border: 1px solid var(--line);
  border-left: 4px solid var(--preview-color, var(--red));
  background: var(--panel-2);
  border-radius: var(--radius-md);
}

.brand-preview-banner {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

.brand-preview-body {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.brand-preview-body p {
  margin: 6px 0;
  color: var(--muted);
}

.brand-preview-body small {
  color: var(--muted-2);
}

.brand-preview-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cell-actions {
    text-align: left;
  }
}

.error-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}

.error-item summary .error-message {
  flex: 1;
  min-width: 200px;
}

/* ---- aus dash.css ---- */

/* ==========================================================================
   MythicMusic · Dashboard mit Seitenleiste, Auswahlmenüs, Schalter
   (ergänzt styles.css, nutzt dieselben Farb-Variablen)
   ========================================================================== */

.text-amber {
  color: var(--amber);
}

/* -------------------------------------------------------------- Schalter */

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.toggle-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.toggle-row span {
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------- Dashboard-Seitenleiste */

.side-title-dev {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- Status-Banner */

.status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(67, 209, 127, 0.3);
  background: rgba(67, 209, 127, 0.07);
  border-radius: var(--radius-md);
}

.status-banner.is-bad {
  background: rgba(207, 20, 23, 0.12);
  border-color: rgba(255, 59, 59, 0.35);
  border-radius: var(--radius-md);
}

.status-banner > div:not(.status-banner-tags) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-banner > div > span {
  color: var(--muted);
  font-size: 13px;
}

.status-banner-tags {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}

.status-pulse {
  width: 12px;
  height: 12px;
  background: var(--green);
  animation: mm-pulse 2s infinite;
  flex-shrink: 0;
}

.is-bad .status-pulse {
  background: var(--red-bright);
  animation: none;
}

@keyframes mm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 209, 127, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(67, 209, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 209, 127, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .status-pulse { animation: none; }
}

.meter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.meter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.meter-value {
  font-size: 20px;
  font-weight: 600;
}

.meter-label {
  color: var(--muted);
  font-size: 11.5px;
}

/* -------------------------------------------------------- Listen & Karten */

.entity-link .server-fallback {
  width: 36px;
  height: 36px;
  object-fit: cover;
  flex-shrink: 0;
}

.guild-card-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-card-text span {
  color: var(--muted);
  font-size: 12.5px;
}

.guild-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.guild-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.guild-card.is-missing {
  border-style: dashed;
}

.guild-card img,
.guild-card .server-fallback {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
}

.guild-card-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.guild-card-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  flex-shrink: 0;
}

/* --------------------------------------------------- Serverliste (Dev) */

a.cell-entity {
  color: inherit;
  text-decoration: none;
}

a.cell-entity:hover strong {
  color: var(--red-soft);
}

.cell-entity > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ------------------------------------------------- Server-Detailseite */

.server-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.server-hero > img,
.server-hero > .server-fallback-lg {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  font-size: 32px;
}

.server-hero-text {
  flex: 1;
  min-width: 220px;
}

.server-hero-text h2 {
  margin: 8px 0;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.server-hero-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.server-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 13px;
}

.server-hero-meta strong {
  color: var(--text);
}

.server-owner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
}

/* ------------------------------------------------------------- Handy */

@media (max-width: 960px) {

  .meter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- aus ui.css ---- */

/* ----------------------------------------------------------------- Icons */

.server-fallback .i {
  width: 34px;
  height: 34px;
}

.track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.track-link .i {
  opacity: 0.5;
}

.track-link:hover {
  color: var(--red-soft);
}

/* --------------------------------------------------------- Auswahlmenüs */

@keyframes select-in {
  from { opacity: 0; transform: translateY(-4px); }
}

/* ------------------------------------------------------- Status-Anzeigen */

.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.state .i {
  width: 14px;
  height: 14px;
}

.state:has(.i)::before {
  display: none;
}

.state-on {
  color: #7fe6a8;
}

.state-on::before {
  background: var(--green);
}

.state-off {
  color: var(--muted);
}

.state-off::before {
  background: var(--muted-2);
}

.state-warn {
  color: var(--amber);
}

.state-warn::before {
  background: var(--amber);
}

.state-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
}

.server-owner {
  color: inherit;
  text-decoration: none;
}

a.server-owner:hover {
  border-color: rgba(255, 59, 59, 0.45);
}

.meter-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ----------------------------------------------------------- Protokolle */

.log-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  border-radius: var(--radius-md);
}

.log-row {
  display: grid;
  grid-template-columns: 84px 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.log-row:last-child {
  border-bottom: 0;
}

.log-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.log-warn {
  background: rgba(255, 176, 32, 0.05);
}

.log-error {
  background: rgba(207, 20, 23, 0.08);
}

.log-time {
  color: var(--muted-2);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
}

.log-type {
  justify-self: start;
}

.log-message {
  overflow-wrap: anywhere;
}

.log-message.mono {
  font-size: 12px;
}

.log-error .log-message {
  color: #ffc9c9;
}

.log-warn .log-message {
  color: #ffe2a8;
}

.log-meta {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  font-size: 12px;
}

.log-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-meta a:hover {
  color: var(--red-soft);
}

.log-list.is-compact .log-row {
  padding: 6px 10px;
}

.log-filter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: end;
}

.log-filter-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.live-toggle.is-on {
  border-color: rgba(67, 209, 127, 0.45);
  color: #7fe6a8;
}

.live-toggle.is-on .live-dot {
  background: var(--green);
  animation: mm-pulse 2s infinite;
}

/* ------------------------------------------------- Wartung & Befehle */

.mode-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.mode-card-head h2 {
  margin: 0 0 4px;
}

.mode-card.is-alert {
  border-color: rgba(255, 176, 32, 0.45);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.mode-card.is-alert .mode-icon {
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.12);
  color: var(--amber);
  border-radius: var(--radius-md);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.command-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.command-card.is-off {
  border-color: rgba(255, 59, 59, 0.35);
  background: rgba(207, 20, 23, 0.06);
  border-radius: var(--radius-md);
}

.command-card.is-off .mode-icon {
  color: var(--muted);
  border-color: var(--line-strong);
  background: transparent;
  border-radius: var(--radius-md);
}

.command-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.command-text strong {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.command-text span {
  color: var(--muted);
  font-size: 12.5px;
}

.command-text .command-usage {
  color: var(--muted-2);
  font-size: 11.5px;
}

.command-add {
  max-width: 520px;
}

/* --------------------------------------------------------- Premium-Codes */

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(169, 156, 255, 0.28);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.code-card.is-used {
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.2);
  opacity: 0.7;
  border-radius: var(--radius-md);
}

.code-card-head,
.code-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.code-value-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.code-value-btn .i {
  color: var(--muted);
}

.code-value-btn:hover .i {
  color: var(--red-bright);
}

.code-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
}

.code-card-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.code-card-facts .i {
  color: var(--violet);
}

.code-card-foot .muted {
  font-size: 12px;
}

.more-options {
  margin-top: 6px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.more-options summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}

.more-options summary::-webkit-details-marker {
  display: none;
}

.more-options[open] summary .i {
  transform: rotate(90deg);
}

.more-options[open] summary {
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------- Fehler */

.error-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.error-row .error-item {
  flex: 1;
  min-width: 0;
}

.error-row.is-done .error-item {
  border-left-color: var(--green);
  opacity: 0.6;
}

.check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: var(--radius-md);
}

.check-btn:hover {
  border-color: var(--green);
  color: rgba(67, 209, 127, 0.6);
}

.check-btn.is-on {
  border-color: var(--green);
  background: rgba(67, 209, 127, 0.18);
  color: var(--green);
}

.check-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* --------------------------------------------------------- Web-Verwaltung */

.lock-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.lock-row:has(.switch-input:checked) {
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.06);
}

.lock-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.lock-row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.lock-row-text span {
  font-size: 12px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, background 0.2s ease;
  border-radius: var(--radius-md);
}

.order-row strong {
  flex: 1;
}

.order-row.is-moved {
  border-color: rgba(255, 59, 59, 0.5);
  background: rgba(207, 20, 23, 0.1);
  border-radius: var(--radius-md);
}

.order-grip {
  color: var(--muted-2);
}

.order-row:first-child [data-order-move="-1"],
.order-row:last-child [data-order-move="1"] {
  opacity: 0.3;
  pointer-events: none;
}

.eye-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.eye-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.eye-toggle .eye-on {
  display: none;
  color: var(--green);
}

.eye-toggle .eye-off {
  color: var(--muted-2);
}

.eye-toggle:has(input:checked) .eye-on {
  display: inline-flex;
}

.eye-toggle:has(input:checked) .eye-off {
  display: none;
}

.eye-toggle:has(input:focus-visible) {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.order-row:has(.eye-toggle input:not(:checked)) strong {
  color: var(--muted-2);
  text-decoration: line-through;
}

.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: rgba(13, 12, 17, 0.95);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
  border-radius: var(--radius-md);
}

/* ------------------------------------------------------------------ Team */

.role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.role-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.role-list .badge {
  min-width: 96px;
  justify-content: center;
}

/* ---------------------------------------------------- Playlists (Nutzer) */

.pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.pl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 0.15s ease, transform 0.15s ease;
  border-radius: var(--radius-md);
}

.pl-card:hover {
  border-color: rgba(255, 59, 59, 0.4);
}

.pl-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.pl-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: var(--surface);
  color: #fff;
  border-radius: var(--radius-md);
}

.pl-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pl-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-text span {
  color: var(--muted);
  font-size: 12.5px;
}

.pl-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pl-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.pl-open {
  margin-left: auto;
}

.quota {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.quota .quota-bar {
  width: 140px;
}

.premium-strip {
  justify-content: flex-start;
  margin-bottom: 20px;
}

.premium-strip > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-strip > div span {
  color: var(--muted);
  font-size: 13px;
}

.premium-strip .mode-icon {
  border-color: rgba(169, 156, 255, 0.4);
  background: rgba(169, 156, 255, 0.12);
  color: var(--violet);
  border-radius: var(--radius-md);
}

/* ---------------------------------------------------------------- Handy */

@media (max-width: 960px) {

  .log-filter {
    grid-template-columns: 1fr 1fr;
  }

  .log-filter .field:first-child {
    grid-column: 1 / -1;
  }

  .log-row {
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
  }

  .log-message,
  .log-meta {
    grid-column: 1 / -1;
  }

  .log-meta {
    justify-content: flex-start;
  }

  .meter-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---- aus ui2.css ---- */

/* ------------------------------------------------- Dauer / Einheit-Felder */

.duration-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
}

.duration-field > .field:only-child,
.duration-field > .field[hidden] + .field,
.duration-field:has(> .field[hidden]) > .field:first-child {
  grid-column: 1 / -1;
}

.unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
}

/* --------------------------------------------------- Code zum Kopieren */

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.code-copy .i {
  opacity: 0.55;
}

.code-copy:hover .i,
.code-copy:focus-visible .i {
  opacity: 1;
  color: var(--red-bright);
}

.shared-code-btn {
  font-size: 18px;
  color: var(--red-soft);
}

/* ---------------------------------------------------------------- Rollen */

.role-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.role-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.role-card-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.role-card-text span {
  color: var(--muted);
  font-size: 12.5px;
}

.perm-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.perm-group {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.perm-group legend {
  padding: 0 6px;
  color: var(--red-soft);
  font-size: 11px;
  font-weight: 600;
}

.perm-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  align-items: start;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
}

.perm-item input {
  margin-top: 2px;
  accent-color: var(--red);
}

.perm-item code {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 10.5px;
}

.perm-item.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ------------------------------------------------------- Status & Shards */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  border-radius: var(--radius-md);
}

.status-item > .i {
  width: 26px;
  height: 26px;
}

.status-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-item span {
  color: var(--muted);
  font-size: 13px;
}

.status-item.is-ok > .i {
  color: var(--green);
}

.status-item.is-bad {
  border-color: rgba(255, 59, 59, 0.4);
}

.status-item.is-bad > .i {
  color: var(--red-bright);
}

.shard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.shard-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.shard-card.is-bad {
  border-top-color: var(--red-bright);
}

a.shard-card:hover,
.shard-card.is-selected {
  border-color: rgba(255, 59, 59, 0.45);
  background: rgba(207, 20, 23, 0.08);
}

.shard-card span {
  color: var(--muted);
  font-size: 12.5px;
}

.shard-id {
  font-size: 11px;
}

/* ------------------------------------------------------------ Rechtstexte */

.legal-page h1 {
  margin: 8px 0 18px;
}

.legal-body {
  line-height: 1.7;
  color: var(--text);
}

.legal-body h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.legal-body p,
.legal-body ul {
  color: #d6d0dc;
}

.legal-item {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.legal-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
}

.legal-item summary::-webkit-details-marker {
  display: none;
}

.legal-item[open] summary {
  margin-bottom: 14px;
}

.legal-item[open] summary > .i:first-child {
  transform: rotate(90deg);
}

.legal-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------ Entbannungsanträge */

.appeal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.appeal-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.appeal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.appeal-ban {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
  color: var(--red-soft);
  font-size: 13px;
}

.appeal-text {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--line-strong);
  color: #d6d0dc;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .duration-field,
  .unit-input {
    grid-template-columns: 1fr;
  }
}

/* ---- aus ui3.css ---- */

/* -------------------------------------------- Scrollbare Listen/Tabellen */

.log-list {
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 59, 59, 0.45) transparent;
}

.log-list.is-compact {
  max-height: 420px;
}

.log-list::-webkit-scrollbar {
  width: 8px;
}

.log-list::-webkit-scrollbar-thumb {
  background: rgba(255, 59, 59, 0.4);
}

.sticky-head thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-2);
}

/* ------------------------------------------------- Web-Verwaltung gleich hoch */

.web-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.web-side > .panel {
  flex: 1;
  margin-bottom: 0;
}

/* ------------------------------------------------------------ Rechtstexte */

.legal-card .check-list {
  margin: 0 0 10px;
}

/* ------------------------------------------------------- Broadcast-Builder */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.builder-side {
  position: sticky;
  top: 90px;
}

.template-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 12px;
  align-items: end;
}

.template-bar .template-actions {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.template-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.button-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.button-rows .form-row {
  gap: 8px;
}

.dc-message {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #313338;
  color: #dbdee1;
  font-family: "gg sans", var(--font-body);
}

.dc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dc-body {
  flex: 1;
  min-width: 0;
}

.dc-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.dc-author strong {
  color: #fff;
}

.dc-app {
  padding: 0 4px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 3px;
}

.dc-time {
  color: #949ba4;
  font-size: 12px;
}

.dc-card {
  padding: 14px 16px;
  border-left: 4px solid var(--dc-accent, #cf1417);
  border-radius: 6px;
  background: #2b2d31;
}

.dc-card-top {
  display: flex;
  gap: 12px;
}

.dc-card-text {
  flex: 1;
  min-width: 0;
}

.dc-title {
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.dc-text {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dc-text code {
  padding: 1px 4px;
  background: #1e1f22;
  border-radius: 3px;
  font-size: 12.5px;
}

.dc-text small {
  color: #949ba4;
  font-size: 12px;
}

.dc-quote {
  display: inline-block;
  padding-left: 10px;
  border-left: 3px solid #4e5058;
}

.dc-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.dc-image {
  display: block;
  width: 100%;
  max-height: 240px;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 6px;
}

.dc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dc-buttons:empty {
  display: none;
}

.dc-button {
  padding: 5px 14px;
  background: #4e5058;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.dc-footer {
  margin-top: 10px;
  color: #949ba4;
  font-size: 12px;
}

/* --------------------------------------------------------- Branding-Galerie */

.brand-active {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-active > img,
.brand-empty {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.brand-active.is-banner > img,
.brand-active.is-banner .brand-empty {
  width: 100%;
  height: 180px;
}

.brand-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  background: rgba(0, 0, 0, 0.25);
}

.brand-active-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.brand-active-text code {
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.gallery-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.gallery-grid.is-banner {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.gallery-card.is-active {
  border-color: var(--green);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-grid.is-banner .gallery-card img {
  aspect-ratio: 3 / 1;
}

.gallery-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 0;
  font-size: 13px;
}

.gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
}

/* ------------------------------------------------------------ Mitwirkende */

.member-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.member-add .field {
  margin-bottom: 0;
}

.member-perms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.perm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.perm-chip input {
  accent-color: var(--red);
}

.perm-chip:has(input:checked) {
  border-color: rgba(255, 59, 59, 0.5);
  background: rgba(207, 20, 23, 0.12);
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-row {
  display: grid;
  grid-template-columns: 36px minmax(140px, 0.7fr) minmax(0, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.member-row img,
.member-row .server-fallback {
  width: 36px;
  height: 36px;
}

.pl-cover-shared {
  background: var(--surface);
}

/* ------------------------------------------------------------ Rollen-Editor */

.role-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.role-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px 110px minmax(0, 1fr);
  gap: 0 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.role-editor-head .field {
  margin-bottom: 0;
}

.role-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--role-color, #a8a4b8);
  color: var(--role-color, #a8a4b8);
  background: color-mix(in srgb, var(--role-color, #a8a4b8) 14%, transparent);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.role-modal .perm-groups {
  max-height: 56vh;
}

.perm-group {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
}

.perm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--red-soft);
  font-size: 11.5px;
}

.perm-all {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.perm-all:hover {
  color: var(--text);
  border-color: rgba(255, 59, 59, 0.45);
}

.perm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.perm-toggle:last-child {
  border-bottom: 0;
}

.perm-toggle:hover {
  background: rgba(255, 255, 255, 0.03);
}

.perm-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
}

.perm-toggle-text code {
  color: var(--muted-2);
  font-size: 10.5px;
}

.perm-toggle.is-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.perm-toggle .switch-input:checked + .switch-sm span {
  transform: translateX(16px);
}

@media (max-width: 960px) {
  .builder {
    grid-template-columns: 1fr;
  }

  .builder-side {
    position: static;
  }

  .template-bar,
  .member-add,
  .member-row,
  .role-editor-head {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------ Server-Playlists */

.server-pl-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.server-pl-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.server-pl-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-pl-head img,
.server-pl-head .server-fallback {
  width: 36px;
  height: 36px;
}

.server-pl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.server-pl-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.server-pl-item:hover {
  border-color: rgba(255, 59, 59, 0.45);
}

.server-pl-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-pl-item .muted {
  font-size: 12.5px;
  white-space: nowrap;
}

.toolbar + .log-filter {
  margin-top: 16px;
}

.server-pl-create {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.server-pl-create .input {
  flex: 1;
  min-height: 38px;
}

/* ---------------------------------------------- Vorschläge & Feedback */

.feedback-hero .eyebrow {
  justify-content: center;
}

.feedback-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.feedback-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 13.5px;
}

.feedback-stats strong {
  color: var(--text);
  font-size: 18px;
  margin-right: 4px;
}

.feedback-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-search {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-search .input,
.feedback-search .select {
  flex: 0 1 200px;
  width: auto;
  min-width: 160px;
  min-height: 38px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.feedback-card.is-done {
  border-color: rgba(67, 209, 127, 0.35);
}

.feedback-card.is-rejected {
  opacity: 0.72;
}

.vote-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  align-self: start;
  border-radius: var(--radius-md);
}

.vote-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.vote-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.vote-btn.is-on {
  color: var(--green);
  border-color: rgba(67, 209, 127, 0.45);
  background: rgba(67, 209, 127, 0.1);
  border-radius: var(--radius-md);
}

.vote-btn.is-down.is-on {
  color: var(--red-soft);
  border-color: rgba(255, 59, 59, 0.45);
  background: rgba(207, 20, 23, 0.12);
  border-radius: var(--radius-md);
}

.vote-box.is-closed .vote-btn {
  pointer-events: none;
  opacity: 0.5;
}

.vote-score {
  font-size: 18px;
}

.feedback-body {
  min-width: 0;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.feedback-body h2 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.feedback-text {
  margin: 0;
  color: #d6d0dc;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.feedback-response {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: rgba(207, 20, 23, 0.08);
}

.feedback-response p {
  margin: 4px 0 0;
  color: #d6d0dc;
  white-space: pre-line;
}

.feedback-own {
  margin-top: 10px;
}

/* ----------------------------------------------------------- Bugreports */

.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.note.is-public {
  border-color: rgba(67, 209, 127, 0.35);
}

.note img,
.note .server-fallback {
  width: 32px;
  height: 32px;
}

.note-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.note p {
  margin: 6px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.note-forms {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.entity .server-fallback {
  width: 40px;
  height: 40px;
}

@media (max-width: 960px) {

  .feedback-card {
    grid-template-columns: 1fr;
  }

  .vote-box {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .feedback-search {
    justify-content: flex-start;
  }
}

/* ------------------------------------------------- Verwaltungs-Dashboard */

.vw-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  border-radius: var(--radius-md);
}

.vw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.vw-state.is-online {
  color: var(--text);
  border-color: rgba(67, 209, 127, 0.4);
}

.vw-state.is-online .vw-dot {
  background: var(--green);
}

.vw-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.vw-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
}

.vw-tile .i {
  color: var(--red-soft);
  margin-bottom: 6px;
}

.vw-tile span {
  color: var(--muted);
  font-size: 13px;
}

.vw-tile:hover {
  border-color: rgba(255, 59, 59, 0.45);
}

.vw-systems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 10px;
}

.vw-system {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.vw-system.is-off {
  opacity: 0.6;
}

.vw-system-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--red-soft);
}

.vw-system-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vw-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.vw-commands code {
  font-size: 11px;
}

.vw-system-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.vw-settings {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.vw-sections {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.vw-section-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}

.vw-section-link span {
  flex: 1;
}

.vw-section-link small {
  font-size: 10px;
}

.vw-section-link:hover,
.vw-section-link.is-active {
  background: rgba(207, 20, 23, 0.12);
  color: var(--text);
}

.vw-section-link.is-off {
  opacity: 0.6;
}

.vw-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.vw-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.vw-field-roles,
.vw-field-channels,
.vw-field-categories,
.vw-field-lines,
.vw-field-json,
.vw-field-bool {
  grid-column: 1 / -1;
}

.pick-box {
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
}

.pick-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}

.pick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  cursor: pointer;
}

.pick-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pick-item:has(input:checked) {
  background: rgba(207, 20, 23, 0.12);
}

.pick-item input {
  accent-color: var(--red);
}

.pick-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pick, var(--muted-2));
}

.pick-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-hint {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}

.pick-item.is-missing .pick-name {
  color: var(--amber);
}

.pick-count {
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
  border-radius: var(--radius-md);
}

.json-field {
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.json-field summary {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13.5px;
}

.json-field .field {
  margin: 0;
  padding: 0 12px 12px;
}

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

.vw-embed-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.vw-embed-card .btn {
  align-self: flex-start;
}

.vw-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vw-task-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  border-radius: var(--radius-md);
}

/* ------------------------------------------------------------- Changelog */

.cl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.cl-side {
  position: sticky;
  top: 90px;
}

.cl-week {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cl-week-label {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cl-week-label strong {
  font-size: 22px;
}

.cl-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.cl-add {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.cl-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-kind input {
  position: absolute;
  opacity: 0;
}

.cl-kind > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.cl-kind input:checked + span {
  border-color: var(--red);
  background: rgba(207, 20, 23, 0.12);
}

.cl-kind input:focus-visible + span {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.cl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
}

.cl-dot-add {
  background: var(--green);
}

.cl-dot-change {
  background: #ff8a3d;
}

.cl-dot-remove {
  background: var(--red);
}

.cl-add-row {
  display: flex;
  gap: 8px;
}

.cl-add-row .input {
  flex: 1;
}

.cl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cl-entry {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.cl-entry-text p {
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}

.cl-entry-text .muted {
  font-size: 12px;
}

.cl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cl-settings > summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.cl-settings > summary h2 {
  margin: 0;
}

.cl-settings[open] > summary {
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .cl-layout,
  .vw-settings {
    grid-template-columns: 1fr;
  }

  .cl-side,
  .vw-sections {
    position: static;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .vw-fields,
  .vw-systems {
    grid-template-columns: 1fr;
  }

  .vw-system {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .vw-system-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .cl-add-row {
    flex-direction: column;
  }
}

.vw-section-group {
  padding: 10px 10px 4px;
  color: var(--red-soft);
  font-size: 10.5px;
}

.vw-text-edit {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.vw-text-card + .vw-text-card {
  margin-top: 8px;
}

.vw-pre {
  white-space: pre-line;
  margin-top: 6px;
}

/* ---- aus v4.css ---- */

/* ------------------------------------------------ Übersicht (Nutzer) */

.home-servers .server-fallback {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: cover;
}

.guild-cards {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.guild-card-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------ Feedback-Seite */

.mod-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.mod-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ------------------------------------------------ Bestrafungs-Log */

.mod-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.mod-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.15s ease;
  border-radius: var(--radius-md);
}

a.mod-tile:hover {
  border-color: var(--line-strong);
}

.mod-tile > span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  opacity: 0.9;
}

.mod-tile strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

.mod-tile strong small {
  font-size: 14px;
  color: var(--muted);
}

.mod-tile-text {
  font-size: 16px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-tile > small {
  color: var(--muted);
  font-size: 12.5px;
}

.mod-tile-red > span { color: var(--red-bright); background: rgba(255, 59, 59, 0.1); }
.mod-tile-amber > span { color: var(--amber); background: rgba(255, 176, 32, 0.1); }
.mod-tile-violet > span { color: var(--violet); background: rgba(169, 156, 255, 0.1); }
.mod-tile-green > span { color: var(--green); background: rgba(67, 209, 127, 0.1); }

.mod-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  border-radius: var(--radius-md);
}

.mod-check .input {
  width: 220px;
}

.mod-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.mod-person img,
.mod-person .server-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mod-person span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mod-person small {
  color: var(--muted-2);
  font-size: 11px;
}

.mod-person:hover strong {
  color: var(--red-soft);
}

.mod-reason {
  max-width: 360px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mod-dur {
  display: block;
  margin-top: 3px;
}

.mod-actions {
  text-align: right;
  white-space: nowrap;
}

.mod-table td {
  vertical-align: middle;
}
.check-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.check-head img,
.check-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 26px;
}

.check-head > div {
  flex: 1;
  min-width: 0;
}

.check-head h2 {
  margin: 0 0 2px;
  font-size: 22px;
}

.check-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.check-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.check-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.check-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}

.check-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  border-radius: var(--radius-md);
}

.check-item.is-red .check-dot { color: var(--red-bright); border-color: rgba(255, 59, 59, 0.5); }
.check-item.is-amber .check-dot { color: var(--amber); border-color: rgba(255, 176, 32, 0.5); }
.check-item.is-violet .check-dot { color: var(--violet); border-color: rgba(169, 156, 255, 0.5); }
.check-item.is-green .check-dot { color: var(--green); border-color: rgba(67, 209, 127, 0.5); }

.check-body {
  flex: 1;
  min-width: 0;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.check-body p {
  margin: 4px 0 2px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------ Giveaways */

.gw-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.gw-duration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.gw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gw-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.gw-card.is-active {
  border-color: rgba(255, 176, 32, 0.35);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.gw-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.gw-card-main .muted {
  font-size: 12.5px;
}

.gw-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.gw-meta span,
.gw-winners {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gw-winners {
  font-size: 12.5px;
  color: var(--amber);
}

/* ------------------------------------------------ Honeypot */

.hp-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.hp-explain ol {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

/* ------------------------------------------------ Changelog-Updates */

.cl-update {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
}

.cl-update-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.cl-update-head .field {
  margin: 0;
}

.cl-section-input {
  width: 240px;
  font-weight: 600;
}

.cl-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cl-line {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 6px;
}

.cl-update-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12.5px;
}

.cl-block {
  margin-bottom: 14px;
  border-left: 3px solid rgba(169, 156, 255, 0.5);
  padding-left: 12px;
}

.cl-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.cl-block-badge {
  font-size: 14px;
}

.dc-sub {
  display: block;
  margin: 4px 0 2px;
  font-size: 12px;
  color: var(--muted);
}

/* ------------------------------------------------ Handy & Tablet */

@media (max-width: 1180px) {
  .gw-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {

  .hp-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {

  .cl-line {
    grid-template-columns: 1fr;
  }

  .check-head {
    flex-wrap: wrap;
  }
}

/* ------------------------------------------------ Changelog V2 (Bereiche, freies Textfeld) */

.clx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: 22px;
  align-items: start;
}

.clx-main > .panel {
  margin-bottom: 18px;
}

.clx-week-panel .cl-status {
  margin-bottom: 0;
}

.clx-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clx-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clx-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.clx-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--red-soft);
}

.clx-step-label .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.clx-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.clx-section input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.clx-section span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  border-radius: var(--radius-md);
}

.clx-section b {
  font-size: 15px;
  font-weight: 400;
}

.clx-section span:hover {
  border-color: rgba(255, 59, 59, 0.45);
}

.clx-section input:checked + span {
  border-color: var(--red-bright);
  background: rgba(207, 20, 23, 0.2);
  color: #fff;
}

.clx-section input:focus-visible + span {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.clx-custom {
  width: 190px;
}

.clx-kinds {
  display: inline-flex;
  gap: 4px;
}

.clx-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.clx-kind:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.clx-lines {
  min-height: 170px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  resize: vertical;
}

.clx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clx-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.clx-list-head .panel-title {
  margin: 0;
}

.clx-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.clx-block {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.clx-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
}

.clx-entries {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.clx-entries li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.clx-entries li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.clx-entry-text {
  flex: 1;
  min-width: 0;
}

.clx-entry-text p {
  margin: 0;
  overflow-wrap: anywhere;
}

.clx-entry-text span {
  font-size: 12px;
}

.clx-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clx-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.clx-preview-head .side-heading {
  margin: 0;
}

.clx-weeks {
  margin: 0;
}

.vw-cleanup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vw-cleanup > div {
  flex: 1;
}

.vw-cleanup p {
  margin: 2px 0 0;
  font-size: 13px;
}

/* ------------------------------------------------ Discord-Vorschau (wie im echten Client) */

.dcx {
  padding: 14px 0;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  background: #313338;
  color: #dbdee1;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.375;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.dcx-msg {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 2px 16px 2px 14px;
}

.dcx-msg + .dcx-msg {
  margin-top: 18px;
}

.dcx-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.dcx-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
}

.dcx-body {
  flex: 1;
  min-width: 0;
}

.dcx-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.dcx-author strong {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 15px;
}

.dcx-app {
  padding: 0 5px;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
}

.dcx-time {
  color: #949ba4;
  font-size: 12px;
}

.dcx-embed {
  max-width: 520px;
  padding: 10px 16px 14px 12px;
  border-left: 4px solid var(--dcx-accent, #f5b301);
  border-radius: 4px;
  background: #2b2d31;
}

.dcx-title {
  margin: 4px 0 8px;
  color: #f2f3f5;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.dcx-text {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.dcx-text p {
  margin: 0 0 10px;
}

.dcx-text strong {
  color: #f2f3f5;
}

.dcx-block {
  margin-top: 12px;
}

.dcx-block.is-new {
  outline: 1px dashed rgba(88, 101, 242, 0.7);
  outline-offset: 4px;
}

.dcx-quote {
  padding-left: 12px;
  border-left: 4px solid #4e5058;
  border-radius: 2px;
  margin-bottom: 2px;
}

.dcx-quote small {
  color: #949ba4;
  font-size: 12px;
}

.dcx-quote small strong {
  color: #b5bac1;
}

.dcx-line {
  padding: 1px 0;
}

/* Leerzeile wie im Bot (Zeile mit unsichtbarem Zeichen): vor den Updates und vor dem Footer */
.dcx-spacer {
  height: 18px;
}

.dcx-spacer + .dcx-block,
.dcx-spacer + .dcx-quote {
  margin-top: 0;
}

/* Neue Zeilen, die in einen vorhandenen Bereich kommen */
.dcx-added {
  margin-top: 2px;
  outline: 1px dashed rgba(88, 101, 242, 0.7);
  outline-offset: 3px;
  border-radius: 2px;
}

.clx-foot-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}

.clx-target {
  color: var(--fg-muted, #8f8f98);
  font-size: 13px;
}

.clx-target.is-merge {
  color: var(--success-text, #79e0b1);
}

.dcx-image {
  display: block;
  width: 100%;
  margin-top: 14px;
  border-radius: 4px;
}

.dcx-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #b5bac1;
  font-size: 12px;
}

.dcx-footer img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.dcx-reply {
  padding-top: 18px;
}

.dcx-reply-line {
  position: absolute;
  top: 0;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #949ba4;
  font-size: 12px;
}

.dcx-reply-line span {
  width: 24px;
  height: 10px;
  margin-top: 8px;
  border-top: 2px solid #4e5058;
  border-left: 2px solid #4e5058;
  border-top-left-radius: 6px;
}

.dcx-mention {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  font-weight: 500;
}

@media (max-width: 1280px) {
  .clx-layout {
    grid-template-columns: 1fr;
  }

  .clx-side {
    position: static;
  }

  .dcx {
    max-height: none;
  }
}

/* ==========================================================================
   Dashboard-Rahmen V3: Bereichs-Leiste ganz links, Unterseiten daneben,
   Inhalt über die volle restliche Breite. Keine sichtbaren Scrollleisten.
   ========================================================================== */
.dash-content > .dev-page {
  max-width: 1640px;
}

/* ------------------------------------------------ Häkchen-Chips (Rechte, Filter) */

.perm-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.perm-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.perm-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.perm-chip > span::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--muted-2);
  border-radius: 5px;
  background: transparent center / 11px no-repeat;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.perm-chip:hover > span {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.perm-chip input:checked + span {
  border-color: rgba(255, 59, 59, 0.55);
  background: var(--surface);
  color: #fff;
}

.perm-chip input:checked + span::before {
  border-color: var(--red-bright);
  background-color: var(--red-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.perm-chip input:focus-visible + span {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.perm-chip:has(input:checked) {
  border: 0;
  background: none;
}
.member-add {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.member-perms {
  gap: 8px;
}

.member-row {
  grid-template-columns: 40px minmax(140px, 0.6fr) minmax(0, 2fr) auto;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.member-row:hover {
  border-color: var(--line-strong);
}

.member-row img,
.member-row .server-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.playlist-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
