/* StreamPilot — studio.css: overlay editor + alert scene editor */
/* =========================================================
   Overlay Editor (volledig herschreven)
   ========================================================= */

/* Layout */
.ov-editor { display: flex; flex-direction: column; }
.ov-editor__header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  margin-bottom: 20px;
}
.ov-editor__title { font-size: 18px; font-weight: 600; margin: 0; }
.ov-editor__title span { color: var(--accent, #7c3aed); }
.ov-editor__header-right { margin-left: auto; }
.ov-editor__header-actions {
  margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}
.ov-reset-confirm {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text, #f0f0f5);
}

/* Save-bar (fixed rechtsonder) */
/* Alert scene current picker */
.ov-as-current { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ov-as-current__name { font-size: 13px; font-weight: 600; color: var(--text, #fff); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Hover-tooltips via data-tip attribuut (500ms vertraging) ─────────── */
[data-tip] { position: relative; }

/* Pseudo-elementen altijd aanwezig maar onzichtbaar — zodat transition-delay werkt */
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,4,20,.97);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.55;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: pre-wrap;
  max-width: 220px;
  width: max-content;
  pointer-events: none;
  z-index: 9999;
  font-weight: 400;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s, visibility 0s .12s;
}
[data-tip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,.13);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s, visibility 0s .12s;
}
/* Na 500ms hover: fade-in */
[data-tip]:hover::after,
[data-tip]:hover::before {
  opacity: 1;
  visibility: visible;
  transition: opacity .12s .5s, visibility 0s .5s;
}

/* ── Particle-laag editor stijlen ────────────────────────────────────── */
.ase-particle-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 11px; color: rgba(124,58,237,.75);
  pointer-events: none; gap: 5px;
}
.ase-prt-section { margin-bottom: 10px; }
.ase-prt-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.ase-prt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ase-prt-row label { font-size: 12px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ase-prt-dir-group { display: flex; gap: 3px; flex-wrap: wrap; }
.ase-prt-dir-btn {
  padding: 3px 8px; font-size: 11px; border-radius: 5px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); transition: background .12s, color .12s, border-color .12s;
}
.ase-prt-dir-btn.is-active { background: rgba(124,58,237,.25); border-color: rgba(124,58,237,.5); color: #fff; }
.ase-prt-frame-list { list-style: none; margin: 5px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ase-prt-frame-item { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 7px; background: rgba(255,255,255,.04); border-radius: 5px; border: 1px solid rgba(255,255,255,.06); transition: background .1s, border-color .1s; }
.ase-prt-frame-item.drag-over { background: rgba(124,58,237,.18); border-color: rgba(124,58,237,.5); }
.ase-prt-frame-item.is-dragging { opacity: .4; }
.ase-prt-frame-item__drag { cursor: grab; color: rgba(255,255,255,.2); font-size: 13px; line-height: 1; padding: 0 1px; user-select: none; }
.ase-prt-frame-item__drag:hover { color: rgba(255,255,255,.5); }
.ase-prt-frame-item__idx { color: var(--muted); font-size: 10px; min-width: 16px; }
.ase-prt-frame-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.75); }
.ase-prt-frame-item__del { cursor: pointer; color: rgba(255,255,255,.3); font-size: 11px; background: none; border: none; padding: 0 2px; line-height: 1; }
.ase-prt-frame-item__del:hover { color: #ef4444; }
.ase-prt-frames-empty { font-size: 11px; color: var(--muted); padding: 4px 0; }

/* (media picker multi-select — zie regel na .sp-mpicker__item:hover) */

.ov-save-bar {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 500;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--surface-alt, #12131f);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.ov-save-bar .btn { white-space: nowrap; }
.ov-save-bar__save {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* Gift-drempel rijen */
.ov-gift-thr-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border, rgba(255,255,255,.06));
  border-radius: 8px;
  margin-bottom: 6px;
}
.ov-gift-thr-row__top { display: flex; align-items: center; gap: 6px; }
.ov-gift-thr-row__lbl { font-size: 12px; color: var(--muted, rgba(255,255,255,.45)); white-space: nowrap; }
.ov-gift-thr-row__spacer { flex: 1; }
.ov-gift-thr-row__bottom { display: flex; align-items: center; gap: 8px; }
.ov-gift-thr-file { flex: 1; font-size: 12px; color: var(--muted, rgba(255,255,255,.45)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Per-element kleur overrides */
.ov-per-color-section { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.ov-color-override-row { display: flex; align-items: center; gap: 8px; }
.ov-color-override-row .ov-color-wrap { margin: 0; }

.ov-editor__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) { .ov-editor__body { grid-template-columns: minmax(320px, 1fr) 1fr; } }
@media (max-width: 900px)  { .ov-editor__body { grid-template-columns: 1fr; } }

/* --- Settings panel --- */
.ov-editor__panel {
  display: flex; flex-direction: column;
  background: var(--card-bg, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px;
  overflow: hidden;
  color-scheme: dark;  /* Browser-native inputs donker */
}

/* Sections (accordion) */
.ov-section { border-bottom: 1px solid var(--border, rgba(255,255,255,.06)); }
.ov-section:last-of-type { border-bottom: none; }
/* Groepslabels in de editor (Standaard melding / Pro melding) */
.ov-group-label {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 2px;
  user-select: none;
}
.ov-group-label:first-child { border-top: none; margin-top: 0; }
.ov-group-label__badge {
  font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(124,58,237,.28); color: #c4b5fd;
}
.ov-group-label--pro { color: rgba(167,139,250,.65); }
.ov-section__title {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted, rgba(255,255,255,.5));
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ov-section__title small {
  font-size: 9px; font-weight: 400; letter-spacing: .03em;
  text-transform: none; opacity: .6;
  margin-top: 1px;
}
.ov-section__title::-webkit-details-marker { display: none; }
.ov-section__title::after { content: '\25BE'; margin-left: auto; font-size: 13px; flex-shrink: 0; }
details[open] > .ov-section__title::after { content: '\25B4'; }

.ov-section__body {
  padding: 4px 16px 16px;
  display: flex; flex-direction: column; gap: 8px;
}

/* Labels */
.ov-label {
  font-size: 13px; color: var(--text, #f0f0f5);
  display: flex; align-items: center; gap: 6px;
}
.ov-label--sm { font-size: 11px; color: var(--muted, rgba(255,255,255,.5)); }

/* â”€â”€ Zij-aan-zij velden: subgrid voor perfecte input-uitlijning â”€â”€ */
.ov-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  grid-template-rows: auto auto auto; /* label â€” input â€” hint */
  column-gap: 16px;
  row-gap: 3px;
  margin-top: 0;
}
.ov-row > div {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  min-width: 0;
  row-gap: 0;
}
/* Labels bottom-uitlijnen zodat bij een 2-regelig label het input toch op gelijke hoogte staat */
.ov-row > div > label,
.ov-row > div > span.ov-label { align-self: end; }

/* Inputs */
.ov-input, .ov-select {
  width: 100%;
  padding: 6px 10px;
  background: #1a1a2e;    /* expliciet donker i.p.v. transparant */
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 6px;
  color: #f0f0f5;
  font-size: 13px;
  font-family: inherit;
}
.ov-input:focus, .ov-select:focus {
  outline: 2px solid var(--accent, #7c3aed);
  outline-offset: 1px;
}
.ov-select option { background: #1a1a2e; color: #f0f0f5; }

/* Font preview */
.ov-font-preview {
  padding: 8px 10px;
  font-size: 16px; font-weight: 700;
  color: var(--text, #f0f0f5);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,.06));
  min-height: 38px;
}

/* Toggles */
.ov-toggles { display: flex; flex-direction: column; gap: 6px; }
.ov-toggles--grid { flex-direction: row; flex-wrap: wrap; gap: 6px 0; }
.ov-toggles--grid .ov-toggle { flex: 1 0 50%; min-width: 140px; }
.ov-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text, #f0f0f5);
  cursor: pointer;
}

/* Gradient preview */
.ov-gradient-preview {
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  margin-bottom: 4px;
}

/* Kleurpaar */
.ov-color-pair { display: flex; gap: 16px; }
.ov-color-item { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ov-color-wrap { display: flex; align-items: center; gap: 8px; }
.ov-color {
  width: 40px; height: 28px;
  padding: 2px 3px;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: transparent;
  cursor: pointer;
}
.ov-color-hex {
  font-size: 11px;
  font-family: monospace;
  color: var(--muted, rgba(255,255,255,.5));
}

/* Range sliders */
input[type="range"] { width: 100%; accent-color: var(--accent, #7c3aed); cursor: pointer; }

/* Button group (uitlijning) */
.ov-btn-group { display: flex; gap: 4px; }
.ov-btn-group__btn {
  flex: 1; padding: 5px 6px; font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 6px; color: var(--muted, rgba(255,255,255,.5));
  cursor: pointer; transition: .15s;
}
.ov-btn-group__btn:hover { background: rgba(255,255,255,.10); }
.ov-btn-group__btn.is-active {
  background: rgba(124,58,237,.20);
  border-color: var(--accent, #7c3aed);
  color: #a78bfa;
}

/* Progress stijl knoppen */
.ov-progress-btns { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.ov-progress-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 8px; font-size: 11px; color: var(--text, #f0f0f5);
  cursor: pointer; transition: .15s;
}
.ov-progress-btn:hover { background: rgba(255,255,255,.10); }
.ov-progress-btn.is-active {
  border-color: var(--accent, #7c3aed);
  background: rgba(124,58,237,.18);
  color: #a78bfa;
}

/* Progress stijl grid: 5 knoppen */
.ov-progress-btns { grid-template-columns: repeat(5,1fr); }

/* Progress stijl iconen (pure CSS + Material) */
.ov-prog-icon {
  display: block; width: 36px;
}
.ov-prog-icon--bar {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #7c3aed 65%, rgba(255,255,255,.15) 65%);
}
.ov-prog-icon--pill {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #7c3aed 65%, rgba(255,255,255,.15) 65%);
  box-shadow: 0 0 8px #7c3aed66;
}
.ov-prog-icon--line {
  height: 2px; border-radius: 1px; margin: 6px 0;
  background: linear-gradient(90deg, #7c3aed 65%, rgba(255,255,255,.15) 65%);
}
.ov-prog-icon--ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: #7c3aed;
  border-right-color: #a78bfa;
  transform: rotate(-45deg);
}
.ov-prog-icon--icon {
  width: auto; height: auto; font-size: 28px;
  background: linear-gradient(to top, #7c3aed 65%, rgba(255,255,255,.18) 65%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  line-height: 1;
}

/* Richting-knoppen (gradient dir / icon fill dir) */
.ov-dir-btns {
  display: flex; gap: 4px; margin-bottom: 4px;
}
.ov-dir-btns--sm .ov-dir-btn { padding: 3px 4px; font-size: 13px; }
.ov-dir-btn {
  flex: 1; padding: 5px 4px; font-size: 16px; line-height: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 6px; color: var(--muted, rgba(255,255,255,.5));
  cursor: pointer; transition: .12s; text-align: center;
}
.ov-dir-btn:hover { background: rgba(255,255,255,.10); }
.ov-dir-btn.is-active {
  background: rgba(124,58,237,.20);
  border-color: var(--accent, #7c3aed);
  color: #a78bfa;
}
/* Per-element ring positierij */
.ov-ring-pos-row {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.ov-ring-pos-row__lbl {
  font-size: 11px; color: var(--muted, rgba(255,255,255,.5));
  width: 64px; flex-shrink: 0; text-align: right;
}
.ov-ring-pos-row .ov-dir-btns--sm { flex: 1; margin-bottom: 0; }

/* Ring-icoon grid */
.ov-icon-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 4px;
  max-height: 240px; overflow-y: auto;
  scrollbar-width: thin;
}
.ov-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 6px; cursor: pointer; transition: .12s;
}
.ov-icon-btn:hover { background: rgba(255,255,255,.10); }
.ov-icon-btn.is-active {
  border-color: var(--accent, #7c3aed);
  background: rgba(124,58,237,.18);
}
.ov-icon-btn .material-symbols-outlined { font-size: 22px; color: var(--text, #f0f0f5); }
.ov-icon-none { font-size: 18px; color: var(--muted, rgba(255,255,255,.4)); }
.ov-icon-lbl { font-size: 9px; color: var(--muted, rgba(255,255,255,.4)); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.ov-custom-icon { margin-top: 6px; }

/* Deco positie grid */
.ov-deco-pos-grid { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; }
.ov-deco-pos-btn {
  padding: 5px 12px; font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 6px; color: var(--muted, rgba(255,255,255,.5));
  cursor: pointer; transition: .12s;
}
.ov-deco-pos-btn:hover { background: rgba(255,255,255,.10); }
.ov-deco-pos-btn.is-active {
  border-color: var(--accent, #7c3aed);
  background: rgba(124,58,237,.18);
  color: #a78bfa;
}

/* Deco preview */
.ov-deco-preview {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  overflow: hidden; min-width: 0;
}
.ov-deco-preview img   { max-height: 60px; max-width: 100px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.ov-deco-preview video { max-height: 60px; max-width: 160px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }

/* Upload status */
.ov-upload-status { font-size: 12px; color: var(--muted, rgba(255,255,255,.4)); min-height: 16px; }

/* Hint tekst */
.ov-hint { font-size: 12px; color: var(--muted, rgba(255,255,255,.4)); margin-bottom: 4px; }

/* Presets */
.ov-preset-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ov-preset-list__empty { font-size: 12px; color: var(--muted, rgba(255,255,255,.35)); font-style: italic; }
.ov-preset-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.05); }
.ov-preset-item__name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-preset-save { display: flex; flex-direction: column; gap: 6px; }
.ov-preset-save__form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ov-preset-name-input { flex: 1; min-width: 120px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 5px 8px; font-size: 13px; color: inherit; }
.ov-preset-name-input:focus { outline: none; border-color: rgba(255,255,255,.35); }
.ov-preset-status { font-size: 12px; color: var(--muted, rgba(255,255,255,.4)); min-height: 16px; }

/* Verborgen optie-secties */
.is-hidden { display: none !important; }

/* Acties */
.ov-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border, rgba(255,255,255,.06));
}

/* Status badge */
.ov-editor__preview-badge {
  font-size: 11px; padding: 3px 10px;
  border-radius: 999px;
  background: var(--card-bg, rgba(255,255,255,.06));
  border: 1px solid var(--border, rgba(255,255,255,.10));
  color: var(--muted, rgba(255,255,255,.5));
  transition: .2s;
}
[data-state="saved"]   { background: rgba(16,185,129,.2);  border-color: #10b981; color: #6ee7b7; }
[data-state="saving"]  { background: rgba(251,191,36,.12); border-color: #fbbf24; color: #fde68a; }
[data-state="error"]   { background: rgba(239,68,68,.15);  border-color: #ef4444; color: #fca5a5; }
[data-state="preview"] { background: rgba(124,58,237,.15); border-color: #7c3aed; color: #a78bfa; }
[data-state="reset"]   { background: rgba(75,85,99,.2);    border-color: #6b7280; color: #d1d5db; }

/* --- Preview panel --- */
.ov-editor__preview { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 80px; }
.ov-editor__preview-header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted, rgba(255,255,255,.4)); }
.ov-editor__preview-frame-wrap {
  background: repeating-conic-gradient(#2a2a3a 0% 25%, #1e1e2c 0% 50%) 0 0 / 16px 16px;
  border-radius: 10px; overflow: auto; min-height: 180px;
  display: flex; align-items: flex-start; justify-content: center; padding: 24px;
}
.ov-editor__preview-iframe { border: none; background: transparent; width: 100%; height: 360px; }
.ov-editor__preview-iframe--camera { height: auto; display: block; }
.ov-editor__preview-iframe--tall { height: auto; aspect-ratio: 360 / 640; max-height: 640px; }
.cam-pin { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; cursor: grab; box-shadow: 0 2px 6px rgba(0,0,0,.5); transform: translate(-50%,-50%); user-select: none; border: 2px solid rgba(255,255,255,.5); transition: box-shadow .1s; }
.cam-pin:active { cursor: grabbing; box-shadow: 0 4px 12px rgba(0,0,0,.7); }
.cam-slot-body.is-disabled { opacity: .45; pointer-events: none; }
.ov-select--sm { font-size: 12px; padding: 4px 6px; }
.nf-preview-iframe { height: 80px; }
.nf-preview-frame-wrap { background: repeating-conic-gradient(rgba(255,255,255,.04) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px; border-radius: 8px; overflow: hidden; }
.nf-preview-no-auth { padding: 20px; font-size: 12px; color: rgba(255,255,255,.3); text-align: center; }
.nf-add-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-editor__preview-actions { display: flex; justify-content: flex-end; padding: 8px 0 4px; }
.ov-editor__preview-actions .btn { white-space: nowrap; }
.ov-editor__preview-note { font-size: 11px; color: var(--muted, rgba(255,255,255,.35)); }

/* sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AUTH LAYOUT (login, register, forgot, reset, 2fa)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pub-body  { min-height: 100vh; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: rgba(255,255,255,.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 36px 32px; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { display: inline-block; text-decoration: none; }
.auth-logo__img { height: 36px; width: auto; display: block; }
.auth-title { font-size: 24px; font-weight: 900; letter-spacing: -.04em; margin: 0 0 24px; text-align: center; }
.auth-desc { font-size: 14px; color: rgba(255,255,255,.55); margin: 0 0 20px; text-align: center; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* â”€â”€ Impersonation banner â”€â”€ */
.impersonate-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; background: #b45309; color: #fff; font-size: 13px; font-weight: 500; }
.impersonate-bar strong { font-weight: 700; }
.impersonate-bar__stop { background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s; }
.impersonate-bar__stop:hover { background: rgba(0,0,0,.4); }
body.has-impersonate-bar .app { padding-top: 37px; }

/* â”€â”€ Moderator permissions â”€â”€ */
.mod-card { margin-bottom: 16px; }
.mod-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mod-perms { display: flex; flex-direction: column; gap: 8px; }
.mod-perms__module { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mod-perms__module:last-child { border-bottom: none; }
.mod-perms__module--hidden .mod-perms__module-label { opacity: .45; }
.mod-perms__module-header { display: flex; align-items: center; justify-content: space-between; }
.mod-perms__module-label { font-size: 13px; font-weight: 500; }
.mod-perms__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 4px; }
.mod-perms__actions--disabled { opacity: .35; pointer-events: none; }
.mod-perms__action { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; color: rgba(255,255,255,.7); }
.mod-perms__action input { accent-color: #fd641e; }
.mod-perms__cards { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.05); margin-top: 2px; }
.mod-perms__cards-label { display: block; width: 100%; font-size: 11px; opacity: .5; margin-bottom: -2px; }
.form-row { display: flex; gap: 8px; align-items: center; }

/* â”€â”€ Admin module + card access â”€â”€ */
.mod-access-module-row { padding: 4px 0 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.mod-access-cards { padding-left: 12px; border-left: 2px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 2px; }
.mod-access-cards--disabled { opacity: .35; pointer-events: none; }
.mod-access-card-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 4px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04); }
.mod-access-card-row:last-child { border-bottom: none; }
.mod-access-card-label { color: rgba(255,255,255,.7); }
.mod-access-section--disabled { opacity: .75; }
.mod-access-label-group { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; padding-right: 12px; }
.mod-access-label-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mod-access-desc { font-size: 11px; color: rgba(255,255,255,.4); line-height: 1.4; }
.toggle-slider--sm { width: 28px; height: 16px; border-radius: 8px; }
.toggle-slider--sm::after { width: 12px; height: 12px; }
.toggle-cb:checked + .toggle-slider--sm::after { left: 14px; }

/* â”€â”€ Module-access grid â”€â”€ */
.module-access-grid { display: flex; flex-direction: column; gap: 2px; }
.module-access-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.module-access-row:last-child { border-bottom: none; }
.module-access-label { font-size: 14px; }
.toggle-wrap { position: relative; display: inline-flex; align-items: center; }
.toggle-cb { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { display: inline-block; width: 36px; height: 20px; background: rgba(255,255,255,.12); border-radius: 10px; transition: background .2s; cursor: pointer; }
.toggle-slider::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: left .2s; }
.toggle-cb:checked + .toggle-slider { background: #16a34a; }
.toggle-cb:checked + .toggle-slider::after { left: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75); }
.auth-field--checkbox { margin-top: 4px; }
.auth-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,.65); font-weight: 400; }
.auth-checkbox-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: #fd641e; width: 15px; height: 15px; cursor: pointer; }
.auth-checkbox-label a { color: #fd641e; text-decoration: underline; }
.auth-hint { font-size: 12px; color: rgba(255,255,255,.4); }
.auth-field-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-link { font-size: 13px; color: #fd641e; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-footer { font-size: 13px; color: rgba(255,255,255,.5); text-align: center; margin: 20px 0 0; }
.auth-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.auth-alert--error   { background: rgba(239,68,68,.15);   border: 1px solid rgba(239,68,68,.4);   color: #fca5a5; }
.auth-alert--success { background: rgba(16,185,129,.15);  border: 1px solid rgba(16,185,129,.4);  color: #6ee7b7; }
.auth-alert--info    { background: rgba(99,102,241,.15);  border: 1px solid rgba(99,102,241,.4);  color: #a5b4fc; }
.btn--full { width: 100%; justify-content: center; }
.input--otp { font-size: 20px; letter-spacing: 4px; text-align: center; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SETTINGS PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.settings-wrap { display: flex; gap: 0; flex-direction: column; }
.settings-alert { padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 20px; }
.settings-alert--error   { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.4);  color: #fca5a5; }
.settings-alert--success { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.4); color: #6ee7b7; }

/* Tabs */
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.settings-tab { padding: 10px 18px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.5); text-decoration: none; border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.settings-tab:hover { color: rgba(255,255,255,.85); }
.settings-tab.is-active { color: #fff; border-bottom-color: #fd641e; }

.settings-body { }
.settings-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin: 0 0 8px; }
.settings-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 16px 0; }
.settings-section { background: var(--surface, #1a1a2e); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.settings-section__title { font-size: 15px; font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.settings-form { display: flex; flex-direction: column; gap: 14px; }
.settings-field { display: flex; flex-direction: column; gap: 6px; }
.settings-field label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); }
.settings-avatar-wrap { display: flex; align-items: center; gap: 14px; }
.settings-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); flex-shrink: 0; }
.settings-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.5; margin: 0 0 16px; }
.settings-actions { display: flex; gap: 10px; align-items: center; padding-top: 4px; }

/* Badge */
.settings-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.settings-badge--on  { background: rgba(16,185,129,.2);  color: #6ee7b7; }
.settings-badge--off { background: rgba(100,100,120,.2); color: rgba(255,255,255,.4); }

/* 2FA setup */
.settings-2fa-setup { display: flex; flex-direction: column; gap: 16px; }
.settings-2fa-qr { display: flex; justify-content: center; padding: 16px; background: #fff; border-radius: 10px; width: fit-content; }
.settings-secret-row { display: flex; align-items: center; gap: 10px; }
.settings-secret { font-family: monospace; font-size: 14px; letter-spacing: 2px; background: rgba(255,255,255,.06); padding: 8px 12px; border-radius: 6px; word-break: break-all; }

/* Backup codes */
.settings-backup-codes { background: rgba(253,100,30,.08); border: 1px solid rgba(253,100,30,.25); border-radius: 10px; padding: 18px; margin-top: 16px; }
.settings-backup-codes__desc { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 14px; line-height: 1.5; }
.settings-backup-codes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.backup-code { font-family: monospace; font-size: 14px; background: rgba(255,255,255,.07); padding: 7px 10px; border-radius: 6px; text-align: center; display: block; letter-spacing: 1px; }

/* Sessions */
.settings-sessions { display: flex; flex-direction: column; gap: 10px; }
.settings-session { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; }
.settings-session.is-current { border-color: rgba(253,100,30,.3); }
.settings-session__info { display: flex; flex-direction: column; gap: 3px; }
.settings-session__ip { font-size: 14px; font-weight: 500; }
.settings-session__ua, .settings-session__time { font-size: 12px; }

/* Platform connections */
.settings-section__title--group {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
}
.settings-connection { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.settings-connection:last-child { border-bottom: none; }
.settings-connection--soon { opacity: .4; pointer-events: none; }
.settings-connection__logo { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-connection__logo--twitch { background: #9147ff; color: #fff; }
.settings-connection__logo--youtube { background: #ff0000; color: #fff; }
.settings-connection__logo--se { background: #f5a623; color: #fff; }
.settings-connection__logo--streamlabs { background: #80f5d2; color: #09151a; }
.settings-connection__logo--stripe { background: #635bff; color: #fff; }
.settings-connection__logo--discord { background: #5865f2; color: #fff; }
.settings-connection__logo--spotify { background: #1db954; color: #fff; }
.settings-connection__logo--google { background: #fff; }
.settings-connection__logo--microsoft { background: #fff; color: #737373; }
.settings-connection__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-connection__info strong { font-size: 14px; }
.settings-connection__info .muted { font-size: 12px; }
.settings-privacy-list { padding-left: 0; list-style: none; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.settings-privacy-list li { font-size: 13px; color: var(--text-muted, #aaa); }
.settings-privacy-list li strong { color: var(--text, #e2e2f0); margin-right: 4px; }
.settings-connection__status { font-size: 12px; font-weight: 600; }
.settings-connection__status--on { color: #4ade80; }
.settings-connection__actions { flex-shrink: 0; display: flex; gap: 6px; align-items: center; }
.settings-connection__actions--wide { flex-shrink: 1; flex-wrap: wrap; }
.settings-connection__token-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-connection__token-form .input--sm { width: 200px; font-size: 12px; padding: 5px 10px; }
.settings-stripe-webhook { padding: 2px 0 4px 50px; }
.settings-stripe-webhook__toggle { font-size: 12px; color: rgba(255,255,255,.45); cursor: pointer; user-select: none; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.settings-stripe-webhook__toggle::-webkit-details-marker { display: none; }
.settings-stripe-webhook__toggle::before { content: '\25B6'; font-size: 9px; transition: transform .15s; }
details.settings-stripe-webhook[open] .settings-stripe-webhook__toggle::before { transform: rotate(90deg); }
.settings-stripe-webhook__toggle:hover { color: rgba(255,255,255,.7); }
.settings-stripe-webhook__body { margin-top: 8px; }
.settings-stripe-webhook__url { width: 340px; font-size: 11px; }
.settings-stripe-webhook .form-hint { margin: 4px 0; }

/* â”€â”€ OBS copy row (API-sleutel + copy-knop) â”€â”€ */
.obs-copy-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obs-copy-row__input { flex: 1; min-width: 160px; max-width: 380px; font-size: 11px; font-family: monospace; }

/* â”€â”€ OBS bronfilter (details/summary in mixer + scenes cards) â”€â”€ */
.obs-filter-details { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 6px; }
.obs-filter-summary { font-size: 11px; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 5px; list-style: none; user-select: none; padding: 2px 0; }
.obs-filter-summary::-webkit-details-marker { display: none; }
.obs-filter-summary:hover { color: var(--text); }
.obs-filter-body { padding: 8px 0 2px; display: flex; flex-direction: column; gap: 5px; }
.obs-filter-row { display: flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; }
.obs-filter-row input[type=checkbox] { width: 13px; height: 13px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }

/* â”€â”€ OBS Windows mixer: per-app device dropdown â”€â”€ */
.obs-device-select { grid-column: 1 / -1; justify-self: end; margin-top: 2px; max-width: 200px; font-size: 11px; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); background: #1a1b2e; color: #fff; cursor: pointer; }
.obs-device-select option { background: #1a1b2e; color: #fff; }
.obs-device-select:hover { border-color: var(--accent); }
.obs-device-select:focus { outline: none; border-color: var(--accent); }

/* â”€â”€ OBS card: key display (card-settings) â”€â”€ */
.obs-key-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.obs-key { font-size: 11px; font-family: monospace; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* â”€â”€ OBS card: Windows blue sliders â”€â”€ */
#sp-obs-win-mixer .obs-mixer__slider { accent-color: #60a5fa; }

/* â”€â”€ OBS card: sources sub-sectie â”€â”€ */
.obs-sources-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.obs-sources-label { margin: 0 0 8px; }

/* â”€â”€ OBS card: setup details/summary â”€â”€ */
.obs-setup-details { border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; padding-top: 8px; }
.obs-setup-summary { cursor: pointer; color: rgba(255,255,255,.5); font-size: 12px; }
.obs-setup-summary:hover { color: rgba(255,255,255,.75); }
.obs-setup-body { margin-top: 10px; }

/* â”€â”€ OBS WebSocket visuele gids â”€â”€ */
.obs-ws-guide { margin-top: 14px; }
.obs-ws-guide__toggle { font-size: 12px; color: rgba(255,255,255,.5); cursor: pointer; user-select: none; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.obs-ws-guide__toggle::-webkit-details-marker { display: none; }
.obs-ws-guide__toggle::before { content: '\25B6'; font-size: 9px; transition: transform .15s; }
details.obs-ws-guide[open] .obs-ws-guide__toggle::before { transform: rotate(90deg); }
.obs-ws-guide__toggle:hover { color: rgba(255,255,255,.75); }
.obs-ws-guide__body { margin-top: 12px; }
.obs-ws-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.obs-ws-step { display: flex; flex-direction: column; gap: 8px; }
.obs-ws-step__num { width: 22px; height: 22px; border-radius: 50%; background: rgba(99,102,241,.3); border: 1px solid rgba(99,102,241,.5); color: #a5b4fc; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.obs-ws-step__img { width: 100%; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); cursor: zoom-in; transition: border-color .15s; }
.obs-ws-step__img:hover { border-color: rgba(99,102,241,.5); }
.obs-ws-step__caption { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; }
.obs-ws-step__caption strong { color: rgba(255,255,255,.85); }

/* â”€â”€ OBS img lightbox â”€â”€ */
.obs-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.obs-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* â”€â”€ Topbar menu links â”€â”€ */
.topbarMenu__link { display: block; padding: 8px 12px; font-size: 14px; color: rgba(255,255,255,.75); text-decoration: none; border-radius: 6px; transition: background .15s, color .15s; }
.topbarMenu__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.topbarMenu__link--danger { color: rgba(239,68,68,.8); }
.topbarMenu__link--danger:hover { background: rgba(239,68,68,.1); color: #ef4444; }
.topbarMenu__link--admin { color: #c4b5fd; display: flex; align-items: center; gap: 6px; }
.topbarMenu__link--admin .ico { width: 14px; height: 14px; }
.topbarMenu__link--admin .badge-count { margin-left: auto; }
.topbarMenu__link--admin:hover { background: rgba(139,92,246,.12); color: #ddd6fe; }

/* â”€â”€ Invite link alert â”€â”€ */
.invite-link-alert { display: flex; flex-direction: column; gap: 10px; }
.invite-link-alert__text { display: flex; flex-direction: column; gap: 2px; }
.invite-link-alert__copy { display: flex; gap: 8px; align-items: center; }
.invite-link-alert__copy .input--sm { flex: 1; font-size: 12px; font-family: monospace; }
.invite-copy-input { font-size: 12px; font-family: monospace; }


/* â”€â”€ Topbar streamer switcher â”€â”€ */
.topbarMenu__sectionTitle { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 4px 6px; }
.topbarMenu__streamer { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 8px; border-radius: 6px; background: none; border: none; cursor: pointer; text-align: left; transition: background .15s; color: rgba(255,255,255,.75); font-size: 13px; }
.topbarMenu__streamer:hover { background: rgba(255,255,255,.07); color: #fff; }
.topbarMenu__streamer.is-active { color: #fff; background: rgba(255,255,255,.06); cursor: default; }
.topbarMenu__streamer-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbarMenu__streamer-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbarMenu__streamer-role { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 4px; }
.topbarMenu__streamer.is-active .topbarMenu__streamer-role { color: #fb923c; background: rgba(251,146,60,.12); }
.topbarMenu__streamer-check { width: 13px; height: 13px; color: #fb923c; flex-shrink: 0; }

/* â”€â”€ Poll dashboard card â”€â”€ */
.poll-question { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.poll-question--sm { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.poll-options--sm { gap: 6px; }
.poll-option__header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; }
.poll-option--sm .poll-option__header { font-size: 12px; }
.poll-option__num { background: rgba(255,255,255,.1); border-radius: 4px; padding: 1px 6px; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.poll-option__label { flex: 1; }
.poll-option__count { color: rgba(255,255,255,.5); font-size: 12px; flex-shrink: 0; }
.poll-bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.poll-bar--sm { height: 4px; }
.poll-bar__fill { height: 100%; background: var(--accent, #7c3aed); border-radius: 3px; transition: width .4s ease; }
.poll-meta { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 8px; }
.poll-history-item { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); margin-top: 8px; }
.poll-duration-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.poll-duration-presets { display: flex; gap: 4px; flex-wrap: wrap; }
.btn-radio--sm { font-size: 12px; padding: 3px 8px; }
.poll-countdown { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; }

/* â”€â”€ Worker status dot â”€â”€ */
.worker-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; cursor: default; }
.worker-dot--green  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
.worker-dot--orange { background: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.25); }
.btn--orange { background: #f97316; color: #fff; border-color: #f97316; }
.btn--orange:hover { background: #ea6c0a; border-color: #ea6c0a; }
.worker-dot--red    { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.25); }

/* â”€â”€ Topbar pauze-toggle â”€â”€ */
.topbarMenu__section--pause { padding: 6px; }
.topbarMenu__pause-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25);
  cursor: pointer; text-align: left; transition: background .15s, border-color .15s;
  color: #fff;
}
.topbarMenu__pause-toggle:hover { background: rgba(34,197,94,.18); }
.topbarMenu__pause-toggle.is-paused { background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.3); }
.topbarMenu__pause-toggle.is-paused:hover { background: rgba(249,115,22,.18); }
.topbarMenu__pause-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3);
}
.topbarMenu__pause-toggle.is-paused .topbarMenu__pause-dot {
  background: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.3);
}
.topbarMenu__pause-label { flex: 1; font-size: 13px; font-weight: 600; }
.topbarMenu__pause-action {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: rgba(255,255,255,.5); white-space: nowrap;
}
.topbarMenu__pause-toggle:hover .topbarMenu__pause-action { color: rgba(255,255,255,.8); }

/* â”€â”€ Sidebar footer (toggle button) â”€â”€ */
.sidebar__footer {
  margin-top: auto;
  padding: 10px 4px 6px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.sidebar__footer-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.sidebar__footer-link:hover, .sidebar__footer-link.is-active { background: rgba(255,255,255,.07); color: #fff; }

/* Collapse toggle button */
.sidebar__toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.40);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.sidebar__toggle-btn:hover {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.08);
}
.sidebar__toggle-icon { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar__toggle-label { white-space: nowrap; overflow: hidden; }

/* Collapsed: alleen het expand icon tonen */
.sidebar[data-collapsed="1"] .sidebar__toggle-icon--collapse,
.sidebar:not([data-collapsed="1"]) .sidebar__toggle-icon--expand { display: none; }
.sidebar[data-collapsed="1"] .sidebar__toggle-icon--expand { display: block; }
.sidebar[data-collapsed="1"] .sidebar__toggle-label { display: none; }
.sidebar[data-collapsed="1"] .sidebar__toggle-btn { justify-content: center; }

/* hover-expanded: label zichtbaar */
.sidebar[data-collapsed="1"].is-hover-expanded .sidebar__toggle-label { display: initial; }
.sidebar[data-collapsed="1"].is-hover-expanded .sidebar__toggle-btn { justify-content: flex-start; }

/* â”€â”€ E-mail verificatie banner â”€â”€ */
.verify-banner { display: flex; align-items: center; gap: 12px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: #fde68a; }
.verify-banner a { color: #fbbf24; font-weight: 600; text-decoration: underline; }


/* â”€â”€ Follower list â”€â”€ */
.follower-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.follower-list-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(255,255,255,.04); border-radius: 6px; font-size: 13px; }
.follower-name { font-weight: 500; color: #fff; }
.follower-date { color: rgba(255,255,255,.45); font-size: 12px; }
.card-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.card-meta-label { color: rgba(255,255,255,.5); }
.card-meta-value { font-weight: 700; color: #fff; font-size: 18px; }

/* â”€â”€ Watchtime list â”€â”€ */
.watchtime-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: none; }
.watchtime-list-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: rgba(255,255,255,.04); border-radius: 6px; font-size: 13px; }
.watchtime-rank { width: 20px; text-align: center; color: rgba(255,255,255,.35); font-size: 11px; font-weight: 700; }
.watchtime-name { flex: 1; font-weight: 500; color: #fff; }
.watchtime-time { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 600; }

/* â”€â”€ Commands table â”€â”€ */
.commands-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.commands-table th { text-align: left; padding: 8px 12px; color: rgba(255,255,255,.4); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.commands-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.commands-table tr:last-child td { border-bottom: none; }
.commands-table tr.row-inactive { opacity: .45; }
.commands-table tr.row-editing td { background: rgba(124,92,252,.08); }
.commands-table tr:hover td { background: rgba(255,255,255,.02); }
.commands-table .col-trigger  { width: 22%; }
.commands-table .col-type     { width: 108px; }
.commands-table .col-cooldown { width: 80px; }
.commands-table .col-uses     { width: 66px; }
.commands-table .col-actions  { width: 100px; }
.cmd-response { color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cmd-actions { text-align: right; }
.badge-mod { display: inline-block; font-size: 10px; font-weight: 700; background: rgba(168,85,247,.2); color: #c084fc; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

/* â”€â”€ Command edit form â”€â”€ */
.form-stack { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.form-stack--wide { max-width: none; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.form-row .form-group { flex: 1; min-width: 140px; }
/* Streamer profiel */
.settings-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .settings-fields-grid { grid-template-columns: 1fr; } }
.profile-faq-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.profile-faq-row__fields { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.profile-faq-row__fields .input { flex: 1; min-width: 120px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.form-control { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #fff; padding: 8px 12px; font-size: 14px; width: 100%; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: rgba(253,100,30,.6); }
select.form-control option { background: #1e1f2e; color: #f0f0f5; }
.form-control-sm { width: 100px; }
.form-group-check label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.65); cursor: pointer; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }
.form-actions--end { justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-group { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 6px; background: transparent; border: 1px solid transparent; color: rgba(255,255,255,.45); cursor: pointer; transition: background .12s, color .12s; flex-shrink: 0; }
.btn-icon:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.1); }
.btn-icon .ico { width: 14px; height: 14px; pointer-events: none; }
.btn-icon--danger:hover { color: #ef4444; background: rgba(239,68,68,.1); border-color: transparent; }
.btn-icon--success { color: #4ade80; }
.cmd-toggle-btn--on  { color: #4ade80; }
.cmd-toggle-btn--on:hover  { color: #86efac; background: rgba(74,222,128,.1); }
.cmd-toggle-btn--off { color: rgba(255,255,255,.25); }
.cmd-toggle-btn--off:hover { color: rgba(255,255,255,.6); }
.btn-icon.btn-icon--info { color: #60a5fa; }
.btn-icon.btn-icon--info:hover { color: #93c5fd; background: rgba(96,165,250,.12); }
.btn-icon.btn-icon--lg { width: 38px; height: 38px; border-radius: 8px; }
.btn-icon.btn-icon--lg .ico { width: 20px; height: 20px; }
.btn-danger { background: rgba(239,68,68,.15); color: #ef4444; border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: rgba(239,68,68,.25); }
.btn-outline-danger { background: transparent; color: #ef4444; border: 1px solid rgba(239,68,68,.5); }
.btn-outline-danger:hover { background: rgba(239,68,68,.1); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head--compact { margin-bottom: 12px; }
.page-head > .btn-icon { flex-shrink: 0; margin-top: 4px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header h1 { margin: 0; }
.page-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-test-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-test-status { font-size: 11px; }

/* â”€â”€ Toggle column layout (label boven switch) â”€â”€ */
.switch-wrap--col {
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  border-radius: 0;
}
.switch-wrap--col:hover { border-color: transparent; background: transparent; }
.switch-wrap--col .switch-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, rgba(255,255,255,.5));
}
.sp-card__toggles {
  justify-content: space-between;
  margin-bottom: 2px;
}

/* â”€â”€ Card notice (info/warning) â”€â”€ */
.card-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.card-notice--info {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  color: rgba(147,197,253,.9);
}
.card-notice--info .ico { color: rgba(147,197,253,.8); flex-shrink: 0; margin-top: 1px; }
.card-notice--info a { color: rgba(147,197,253,1); text-decoration: underline; }
.card-notice--info a:hover { color: #fff; }

/* â”€â”€ Hero info card goal progress bars â”€â”€ */
.hero-goal { margin-top: 10px; }
.hero-goal__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }

/* Stat-grid: 3-kolom statuskaart (label | bar | waarde)
   Gedeelde kolombreedtes via grid op de parent; rijen gebruiken display:contents */
.stat-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; column-gap: 14px; row-gap: 8px; margin-top: 4px; font-size: 14px; color: var(--text); }
.stat-grid__row { display: contents; }
.stat-grid__label { white-space: nowrap; opacity: .8; }
.stat-grid__bar { min-width: 0; }
.stat-grid__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.stat-grid__hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* â”€â”€ Goal content centering wrapper â”€â”€ */
.goal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* â”€â”€ Goal settings form â”€â”€ */
.goal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.goal-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.goal-form__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 80px;
}
.goal-form__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, rgba(255,255,255,.4));
}
.goal-form__input {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text, #f0f0f5);
  outline: none;
  width: 100%;
}
.goal-form__input:focus {
  border-color: rgba(253,100,30,.5);
}
select.goal-form__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
select.goal-form__input option {
  background: #1a1c30;
  color: #f0f0f5;
}

/* â”€â”€ Card preview link (header rechts) â”€â”€ */
.card__preview-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, rgba(255,255,255,.5));
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.card__preview-link:hover {
  color: var(--text, #f0f0f5);
  background: rgba(255,255,255,.07);
}

/* â”€â”€ Icon-only button â”€â”€ */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, rgba(255,255,255,.45));
  cursor: pointer;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.btn-icon:hover { color: var(--text, #f0f0f5); background: rgba(255,255,255,.08); }
.btn-icon:disabled { opacity: .4; cursor: not-allowed; }

/* â”€â”€ Follower history list â”€â”€ */
.follower-history {
  margin-bottom: 12px;
  border-top: 1px solid rgba(253,100,30,.45);
  padding-top: 10px;
}
.follower-history__head {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  gap: 6px;
  padding: 0 4px 6px;
  border-bottom: 1px solid rgba(253,100,30,.3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, rgba(255,255,255,.4));
}
.follower-history__row {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
}
.follower-history__row:last-child { border-bottom: 0; }
.follower-history__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follower-history__when { font-size: 12px; white-space: nowrap; }

/* â”€â”€ OBS URL field â”€â”€ */
.obs-url {
  margin-bottom: 10px;
}
.obs-url__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted, rgba(255,255,255,.4));
  margin-bottom: 6px;
}
.obs-url__field {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border, rgba(255,255,255,.10));
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
}
.obs-url__input {
  flex: 1;
  font-size: 11px;
  font-family: monospace;
  color: var(--text, #f0f0f5);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
  cursor: text;
  user-select: text;
}

/* â”€â”€ Follower history 3-kolom rij â”€â”€ */
.follower-history__head--3col,
.follower-history__row--3col {
  grid-template-columns: 1fr 1fr auto;
}

/* â”€â”€ Follower history 4-kolom rij: sub (naam / tier / wanneer / knop) â”€â”€ */
.follower-history__head--4col,
.follower-history__row--4col {
  grid-template-columns: 1fr 28px auto 28px;
}

/* â”€â”€ Follower history 4-kolom rij: donatie (naam / bedrag / wanneer / knop) â”€â”€ */
.follower-history__head--donation,
.follower-history__row--donation {
  grid-template-columns: 1fr auto auto 28px;
  gap: 10px;
}
.follower-history__tier { font-size: 12px; text-align: center; }

/* â”€â”€ Volume-slider in follow/sub kaart â”€â”€ */
.fw-vol-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.fw-vol-slider { flex: 1; accent-color: var(--accent, #f97316); cursor: pointer; }
.fw-vol-val    { font-size: 11px; min-width: 30px; text-align: right; }

/* â”€â”€ Sub-badges (gift / maanden) â”€â”€ */
.sub-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  vertical-align: middle;
  margin-left: 4px;
}
.sub-badge--gift { background: rgba(253,100,30,.18); color: rgba(253,100,30,.9); }

/* â”€â”€ Goal display â”€â”€ */
.goal-display { margin-bottom: 12px; }
.goal-display__numbers {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.goal-display__current { font-size: 28px; font-weight: 700; }
.goal-display__sep { font-size: 20px; }
.goal-display__target { font-size: 20px; }
.goal-display__label { font-size: 13px; }
.goal-display__pct { font-size: 12px; margin-top: 4px; }

/* â”€â”€ Multi test-buttons in card-action-row â”€â”€ */
.card-action-row__multi {
  display: flex;
  gap: 6px;
}
.card-action-row__multi .btn { flex: 1; justify-content: center; }

/* â”€â”€ Card action row (TEST + EDITOR) â”€â”€ */
.card-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.card-action-row .btn {
  justify-content: center;
  text-align: center;
}

/* â”€â”€ OBS URL copy button: altijd wit zichtbaar â”€â”€ */
.obs-url__field .btn-icon {
  color: rgba(255,255,255,.75);
  flex-shrink: 0;
}
.obs-url__field .btn-icon:hover { color: #fff; background: rgba(255,255,255,.12); }

/* â”€â”€ Command help drawer â”€â”€ */
.cmd-help-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); }
.cmd-help-drawer {
  position: fixed; top: 0; right: -480px; width: 420px; max-width: calc(100vw - 32px);
  height: 100vh; overflow-y: auto;
  background: #1a1c30; border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,.5); z-index: 201;
  transition: right .25s ease; padding: 24px; box-sizing: border-box;
}
.cmd-help-drawer.open { right: 0; }
.cmd-help-drawer--wide { width: 680px; right: -720px; }
.cmd-help-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cmd-help-header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cmd-help-section { margin-bottom: 24px; }
.cmd-help-section h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.35); margin: 0 0 12px; }
.cmd-help-dl { margin: 0; }
.cmd-help-dl dt { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-top: 12px; }
.cmd-help-dl dt:first-child { margin-top: 0; }
.cmd-help-dl dd { margin: 3px 0 0 0; font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.6; }
.cmd-help-dl dd code { font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 4px; border-radius: 3px; color: rgba(255,255,255,.75); }
.cmd-help-text { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.7; margin: 0; }
.cmd-help-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 8px; }
.cmd-help-table th { text-align: left; padding: 4px 8px; color: rgba(255,255,255,.3); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.cmd-help-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.05); color: rgba(255,255,255,.55); vertical-align: top; }
.cmd-help-table td:first-child { white-space: nowrap; }
.cmd-help-table td code { font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 4px; border-radius: 3px; color: rgba(255,255,255,.8); }
.cmd-help-table em { font-style: italic; color: rgba(255,255,255,.4); }
.cmd-help-list { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.7; margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cmd-help-list--warning li { color: rgba(253,100,30,.75); }

/* â”€â”€ Command inline form â”€â”€ */
.cmd-inline-form .form-group { margin-bottom: 12px; }
.cmd-inline-form .cmd-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.cmd-inline-form .cmd-section { margin-top: 0; }
.cmd-inline-help-btn { margin-bottom: 10px; }

/* â”€â”€ Newsfeed module â”€â”€ */
.nf-status-grid { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.nf-status-row { display: flex; align-items: baseline; gap: 8px; }
.nf-status-row dt { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); min-width: 60px; }
.nf-status-row dd { font-size: 12px; color: rgba(255,255,255,.4); margin: 0; }

.nf-section { margin-bottom: 16px; }
.nf-section:last-child { margin-bottom: 0; }
.nf-section__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.35); margin-bottom: 8px; }

.nf-sources { display: flex; flex-direction: column; gap: 6px; }
.nf-source-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,.75); }
.nf-source-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent, #7c6af7); flex-shrink: 0; }

.nf-items-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.nf-item { display: flex; flex-direction: column; background: rgba(255,255,255,.04); border-radius: 6px; border: 1px solid rgba(255,255,255,.07); }
.nf-item__content { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.nf-item__label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); flex-shrink: 0; }
.nf-item__text { font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nf-add-form { margin-top: 8px; }

.nf-event-linked { display: flex; flex-direction: column; gap: 8px; }
.nf-event-linked__head { display: flex; align-items: baseline; gap: 8px; }
.nf-event-token { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: rgba(255,255,255,.04); border-radius: 6px; border: 1px solid rgba(255,255,255,.07); }
.nf-event-token__row { display: flex; align-items: center; gap: 6px; }
.nf-token-val { font-family: monospace; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); padding: 3px 6px; border-radius: 4px; word-break: break-all; }

.nf-event-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.nf-event-col { flex: 1; min-width: 180px; }
.nf-event-divider { display: flex; align-items: center; font-size: 11px; color: rgba(255,255,255,.3); padding-top: 20px; }

.nf-member-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; background: rgba(255,255,255,.03); border-radius: 4px; }

/* Card status (simplified ticker card) */
.nf-card-status { display: flex; flex-direction: column; gap: 6px; }
.nf-card-status__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nf-card-status__label { font-size: 12px; color: rgba(255,255,255,.45); }
.nf-card-status__value { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8); }

/* Separator presets */
.nf-sep-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.nf-sep-preset { background: none; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: rgba(255,255,255,.7); cursor: pointer; font-size: 14px; min-width: 32px; padding: 3px 8px; transition: border-color .15s, background .15s; }
.nf-sep-preset:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.35); }
.nf-sep-preset.is-active { background: rgba(124,106,247,.25); border-color: rgba(124,106,247,.7); color: #fff; }

/* Gedeeld event â€” special accent section */
.ov-section--event { border: 1px solid rgba(124,106,247,.35) !important; background: rgba(124,106,247,.06); border-radius: 6px; margin-top: 4px; }
.ov-section--event > summary { color: rgba(180,170,255,.95); }
.nf-event-badge { font-size: 11px; margin-right: 4px; }

/* Bronnen per-rij met config */
.nf-source-row { display: flex; flex-direction: column; margin-bottom: 2px; }
.nf-source-row__main { display: flex; align-items: center; width: 100%; gap: 4px; }
.nf-source-row__toggle { flex: 1; min-width: 0; }
/* Per-bron summary: checkbox links, naam rechts van toggle */
.nf-src-summary { gap: 10px; }
.nf-src-toggle { display: inline-flex; align-items: center; flex-shrink: 0; cursor: default; }
.nf-src-toggle input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent, #7c6af7); cursor: pointer; }
/* Panel footer: opslaan/reset rechtsonder in het formulier */
.ov-editor__panel-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--border, rgba(255,255,255,.06)); }
.ov-editor__panel-footer .btn { justify-content: center; }

/* Stijl trio (B/I/U per veld) */
.nf-style-trio { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nf-sbtn { background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; color: rgba(255,255,255,.65); cursor: pointer; font-size: 12px; min-width: 22px; padding: 2px 5px; line-height: 1.4; transition: background .12s, border-color .12s; }
.nf-sbtn:hover { background: rgba(255,255,255,.08); }
.nf-sbtn.is-active { background: rgba(124,106,247,.3); border-color: rgba(124,106,247,.7); color: #fff; }

/* Config rijen (label + input + trio naast elkaar) */
.nf-cfg-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-cfg-label { font-size: 11px; color: rgba(255,255,255,.45); flex-shrink: 0; min-width: 48px; }
.nf-cfg-label-input { flex: 1; min-width: 0; }

/* Gestapelde variant: input op regel 1, controls op regel 2 */
.nf-cfg-row--stacked .ov-input { flex: 1; min-width: 0; }
.nf-cfg-row--stacked .nf-field-ctrls { order: 3; flex-basis: 100%; padding-left: 54px; margin-top: 2px; }
.nf-cfg-row--stacked .nf-emote-preview { order: 4; flex-basis: 100%; padding-left: 54px; margin-top: 2px; font-size: .85em; opacity: .7; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-height: 1.6em; }
.nf-emote-img { height: 1.5em; vertical-align: middle; display: inline-block; margin: 0 .1em; }

/* Per-veld kleur swatch + stijl (nfControls) */
.nf-field-ctrls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nf-font-pick { height: 22px; font-size: 11px; padding: 0 4px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: inherit; cursor: pointer; }
.nf-cswatch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.nf-cswatch__dot { width: 20px; height: 20px; border-radius: 3px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); flex-shrink: 0; transition: background .12s, border-color .12s; display: flex; align-items: center; justify-content: center; }
.nf-cswatch__dot::after { content: 'A'; font-size: 10px; font-weight: 900; font-style: normal; color: rgba(255,255,255,.85); text-shadow: 0 0 3px rgba(0,0,0,.7); line-height: 1; user-select: none; }
.nf-cswatch--set .nf-cswatch__dot { border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.nf-cpick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: none; padding: 0; }
.nf-creset { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; flex-shrink: 0; }
.nf-creset:hover { color: rgba(255,100,100,.8); }

/* Item bewerken */
.nf-item__view { display: none; align-items: center; gap: 6px; padding: 6px 8px; }
.nf-item__view:not([hidden]) { display: flex; }
.nf-item__actions { display: flex; gap: 2px; flex-shrink: 0; margin-left: auto; }
.nf-item__edit { display: none; flex-direction: column; gap: 6px; background: rgba(255,255,255,.04); border-radius: 4px; padding: 8px; margin-top: 4px; }
.nf-item__edit:not([hidden]) { display: flex; }
.nf-item__edit-actions { display: flex; gap: 6px; margin-top: 2px; }

/* Newsfeed editor page */
.nf-editor { max-width: 760px; }
.nf-editor__header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.nf-editor__title { flex: 1; margin: 0; font-size: 18px; font-weight: 700; }
.nf-editor__title span { color: rgba(255,255,255,.6); font-weight: 400; }
.nf-editor__body { display: flex; flex-direction: column; gap: 0; }
.nf-editor-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.nf-editor-section:last-child { border-bottom: none; }
.nf-editor-section__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); margin: 0 0 6px; }
.nf-editor-section__desc { font-size: 12px; color: rgba(255,255,255,.4); margin: 0 0 14px; }

/* Style form */
.nf-style-grid { display: flex; flex-direction: column; gap: 14px; }
.nf-style-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nf-style-label { font-size: 12px; color: rgba(255,255,255,.65); min-width: 130px; }
.nf-style-control { display: flex; align-items: center; gap: 8px; }
.nf-range { width: 160px; accent-color: var(--accent, #7c6af7); cursor: pointer; }
.nf-range-val { font-size: 12px; color: rgba(255,255,255,.5); min-width: 56px; }
.nf-dir-btns { display: flex; gap: 6px; }
.nf-color-wrap { display: flex; align-items: center; gap: 8px; }
.nf-color-input { width: 40px; height: 32px; border: none; background: none; cursor: pointer; padding: 0; border-radius: 4px; overflow: hidden; }
.nf-color-hex { font-size: 11px; font-family: monospace; color: rgba(255,255,255,.5); }
.nf-save-status { font-size: 12px; color: rgba(255,255,255,.45); min-height: 18px; margin-top: 4px; }
.nf-empty-msg { font-size: 13px; color: rgba(255,255,255,.35); margin: 0 0 12px; }

.cmd-meta { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.cmd-meta .form-group { flex: 0 1 auto; margin: 0; }
.cmd-meta .form-group-check { display: flex; align-items: center; }

/* Multi-response toggle */

/* Command type radio tabs */
.btn-group-radio { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-radio { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); cursor: pointer; font-size: 13px; color: rgba(255,255,255,.65); white-space: nowrap; transition: border-color .15s, background .15s; }
.btn-radio input[type="radio"] { display: none; }
.btn-radio:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.btn-radio.active,
.btn-radio:has(input:checked) { border-color: rgba(253,100,30,.6); background: rgba(253,100,30,.1); color: #fff; }
.badge-soon { font-size: 10px; font-weight: 700; background: rgba(100,100,120,.3); color: rgba(255,255,255,.4); border-radius: 4px; padding: 1px 5px; }
.badge-type { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; }
.badge-type-static  { background: rgba(16,185,129,.15); color: #6ee7b7; }
.badge-type-multi   { background: rgba(124,58,237,.18); color: #a78bfa; }
.badge-type-counter { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-type-ai      { background: rgba(139,92,246,.15); color: #c4b5fd; }
.input-group { display: flex; gap: 8px; align-items: center; }

/* Variabele-tegels in command builder */
.var-tiles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.var-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 3px 10px; cursor: pointer; font-size: 12px; color: rgba(255,255,255,.65); transition: background .1s, border-color .1s; }
.var-tile:hover { background: rgba(253,100,30,.15); border-color: rgba(253,100,30,.4); color: #fff; }
.var-tile code { font-size: 12px; background: none; padding: 0; }

/* Chat-beheer info blok */
.chat-beheer-info { margin-top: 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.chat-beheer-info summary { padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); list-style: none; display: flex; align-items: center; gap: 8px; }
.chat-beheer-info summary::-webkit-details-marker { display: none; }
.chat-beheer-info summary::before { content: '\25B6'; font-size: 10px; transition: transform .15s; }
.chat-beheer-info[open] summary::before { transform: rotate(90deg); }
.chat-beheer-body { padding: 0 14px 14px; }
.chat-beheer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.chat-beheer-table td { padding: 5px 8px 5px 0; vertical-align: middle; }
.chat-cmd-syntax { font-size: 12px; color: rgba(255,255,255,.8); }
.badge-type-keyword { background: rgba(14,165,233,.15); color: #7dd3fc; }
.badge-type-timed   { background: rgba(245,158,11,.15);  color: #fcd34d; }
.kw-trigger { display: flex; flex-wrap: wrap; gap: 3px; }
.kw-tag { display: inline-block; font-size: 11px; background: rgba(14,165,233,.12); color: #7dd3fc; border-radius: 4px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.kw-tag--more { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); }

/* â”€â”€ Breadcrumbs â”€â”€ */
.breadcrumbs { display: flex; align-items: center; gap: 6px; padding: 6px 20px; font-size: 12px; }
.breadcrumbs__sep { color: rgba(255,255,255,.2); }
.breadcrumbs__item { color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.breadcrumbs__item:hover { color: rgba(255,255,255,.7); }
.breadcrumbs__item--active { color: rgba(255,255,255,.7); }

/* â”€â”€ Module full-width content (after hero) â”€â”€ */
.module-content { }
.module-content .commands-table-wrap { background: var(--surface2); border-radius: var(--radius2); overflow: hidden; }

/* Tabel-paginering */
.sp-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 0 4px; }
.sp-pager__info { font-size: 12px; color: var(--muted); min-width: 80px; text-align: center; }

/* â”€â”€ Module hero section â”€â”€ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.hero__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.hero__title {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}
.hero__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0;
}
.hero__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.meta-pill {
  font-size: 11px;
  font-family: monospace;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
@media (min-width: 901px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero__title { font-size: 34px; }
}

/* Module color accent â€” left border on hero intro card */
[class*="hero--mod-"] .hero__card {
  border-left: 3px solid var(--mod-color, var(--accent));
  padding-left: 14px;
}
.hero--mod-orange { --mod-color: var(--accent); }
.hero--mod-blue   { --mod-color: var(--color-blue); }
.hero--mod-purple { --mod-color: var(--color-purple); }
.hero--mod-green  { --mod-color: var(--color-green); }
.hero--mod-yellow { --mod-color: var(--color-yellow); }
.hero--mod-teal   { --mod-color: var(--color-teal); }
.hero--mod-pink   { --mod-color: var(--color-pink); }
.hero--mod-indigo { --mod-color: var(--color-indigo); }

/* â”€â”€ Dashboard intro â”€â”€ */
.dashboard-intro { margin-bottom: 20px; }
.dashboard-intro__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dashboard-intro__title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px; }

/* â”€â”€ Commands dashboard card â”€â”€ */
.cmd-dash-summary { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.cmd-dash-count { font-size: 28px; font-weight: 700; line-height: 1; }
.cmd-dash-top { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cmd-dash-top li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.cmd-dash-uses { font-size: 11px; }
.cmd-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* â”€â”€ Emote picker â”€â”€ */
.ep-wrap { background: var(--surface2); border-radius: var(--radius2); padding: 14px; margin-top: 16px; }
.ep-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ep-title { font-weight: 600; font-size: 13px; margin-right: 4px; }
.ep-search { flex: 1; min-width: 160px; max-width: 280px; }
.ep-filter-row { display: flex; gap: 4px; flex-wrap: wrap; }
.ep-filter { font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.ep-filter.active, .ep-filter:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.ep-close { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; }
.ep-close:hover { color: #fff; }
.ep-status { font-size: 12px; margin: 0 0 8px; min-height: 16px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; max-height: 320px; overflow-y: auto; }
.ep-emote { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 6px; border: none; background: transparent; cursor: pointer; transition: background .12s; }
.ep-emote:hover { background: var(--surface3, rgba(255,255,255,.08)); }
.ep-emote img { width: 28px; height: 28px; object-fit: contain; }
.ep-emote span { font-size: 9px; color: var(--muted); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.ep-toggle-slot { display: contents; }
.ep-toggle-btn { font-size: 11px; padding: 2px 8px; }

/* â”€â”€ Timer display â”€â”€ */
.timer-display {
  text-align: center;
  padding: 12px 0 8px;
}
.timer-display__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.timer-display__time-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background .15s;
}
.timer-display__time-wrap:hover {
  background: rgba(255,255,255,.07);
}
.timer-display__time {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.1;
  min-width: 7ch;
  text-align: center;
}
.timer-display__edit-ico {
  opacity: .2;
  flex-shrink: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.timer-display__time-wrap:hover .timer-display__edit-ico { opacity: .6; }
.timer-display__time-wrap.is-editing .timer-display__edit-ico { opacity: 0; }
.timer-inline-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent, #fd641e);
  color: inherit;
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-align: center;
  width: 7ch;
  outline: none;
  padding: 0;
}

/* â”€â”€ Timer controls â”€â”€ */
.timer-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 12px;
}

/* â”€â”€ Timer settings wrapper â”€â”€ */
.timer-settings { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }

/* â”€â”€ Subathon contribution section â”€â”€ */
.timer-contrib-section {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
}
.timer-contrib-summary {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 2px 0;
}
.timer-contrib-summary:hover { color: rgba(255,255,255,.9); }
.timer-contrib-rules {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timer-contrib-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.timer-contrib-row__toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 90px;
  font-weight: 600;
  cursor: pointer;
}
.timer-contrib-row__inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.6);
}

/* â”€â”€ Extra-small input variant â”€â”€ */
.goal-form__input--xs {
  width: 56px;
  padding: 3px 6px;
  font-size: 12px;
}



/* ── Generieke modal ─────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65);
  padding: 16px;
}
.modal-backdrop[hidden] { display: none !important; }
.modal {
  position: relative;
  background: var(--card-bg-solid, #1e1f2e);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column;
}
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.modal__close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1;
  color: var(--muted);
  padding: 0 4px;
  transition: color .15s;
}
.modal__close:hover { color: var(--text); }
.modal__body {
  padding: 20px;
  overflow: visible;
  flex: 1;
}
.modal__footer {
  padding: 0 20px 20px;
  display: flex; gap: 8px; justify-content: flex-end;
  flex-shrink: 0;
}

/* â”€â”€ spConfirm modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-confirm-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.sp-confirm-modal[hidden] { display: none !important; }
.sp-confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
}
.sp-confirm-dialog {
  position: relative; z-index: 1;
  background: var(--card-bg-solid, #1e1f2e);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 12px;
  padding: 24px 24px 20px;
  min-width: 300px; max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.sp-confirm-msg {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}
.sp-confirm-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* â”€â”€ Public pages (commands / quotes) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pub-logo { height: 20px; width: auto; display: block; opacity: .7; }
.pub-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.1);
  object-fit: cover;
}
.pub-streamer { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pub-streamer__name { font-size: 20px; font-weight: 700; }
.pub-streamer__twitch {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  transition: color .15s;
}
.pub-streamer__twitch:hover { color: #a78bfa; }
.pub-streamer__twitch .ico  { width: 11px; height: 11px; }
.pub-nav  { display: flex; gap: 6px; margin-top: 4px; }
.pub-nav__item {
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  color: var(--muted); border: 1px solid var(--border); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.pub-nav__item:hover   { color: #fff; border-color: rgba(255,255,255,.25); }
.pub-nav__item.is-active { color: #fff; border-color: var(--accent, #fd641e); background: rgba(253,100,30,.1); cursor: default; }

.pub-commands {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pub-commands__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pub-commands__brand { margin-bottom: 4px; }
.pub-commands__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.pub-commands__sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.pub-commands__empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 32px 0;
}
.pub-commands__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pub-cmd {
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-cmd__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pub-cmd__trigger code {
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  border-radius: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono, monospace);
  color: var(--accent, #7c3aed);
}
.pub-cmd__responses {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
  border-left: 2px solid rgba(255,255,255,.1);
  margin-top: 2px;
}
.pub-cmd__response {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.pub-commands__footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.pub-commands__footer a { color: var(--muted); text-decoration: underline; }
.pub-commands__footer a:hover { color: #fff; }

/* â”€â”€ Public music queue page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pub-music { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 24px; }

/* Now Playing */
.pub-music__now-playing { display: flex; gap: 20px; align-items: flex-start; background: rgba(255,255,255,.045); border-radius: 14px; padding: 20px; }
.pub-music__np-art-wrap { flex-shrink: 0; }
.pub-music__np-art { width: 100px; height: 100px; border-radius: 10px; object-fit: cover; display: block; background: rgba(255,255,255,.08); }
.pub-music__np-art[hidden] { display: none; }
.pub-music__np-art--fallback { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); }
.pub-music__np-art--fallback[hidden] { display: none; }
.pub-music__np-art-wrap[hidden] { display: none; }
.pub-music__np-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.pub-music__np-status { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.pub-music__np-status--playing { color: var(--accent, #fd641e); }
.pub-music__np-status--paused  { color: rgba(255,255,255,.4); }
.pub-music__np-title  { font-size: 18px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-music__np-artist { font-size: 14px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-music__np-bar-wrap { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.pub-music__np-bar  { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.pub-music__np-fill { height: 100%; background: var(--accent, #fd641e); border-radius: 2px; transition: width .5s linear; }
.pub-music__np-times { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.4); }

/* Manage panel */
.pub-music__manage { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pub-music__manage-header { display: flex; align-items: center; justify-content: space-between; }
.pub-music__manage-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); }

/* Queue list */
.pub-music__queue-wrap { display: flex; flex-direction: column; gap: 8px; }
.pub-music__queue-header { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.pub-music__queue-empty { color: rgba(255,255,255,.35); font-size: 13px; text-align: center; padding: 20px 0; }
.pub-music__queue-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background .15s; }
.pub-music__queue-item:hover { background: rgba(255,255,255,.04); }
.pub-music__queue-item--current { background: rgba(253,100,30,.08); border: 1px solid rgba(253,100,30,.2); }
.pub-music__qi-pos { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.35); flex-shrink: 0; }
.pub-music__qi-pos--now { color: var(--accent, #fd641e); font-size: 15px; }
.pub-music__qi-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.08); }
.pub-music__qi-thumb--empty { display: flex; }
.pub-music__qi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pub-music__qi-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-music__qi-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }
.pub-music__qi-req strong { color: rgba(255,255,255,.65); }
.pub-music__qi-dur { font-variant-numeric: tabular-nums; }
.pmq-drag-handle { display: flex; align-items: center; cursor: grab; color: rgba(255,255,255,.25); flex-shrink: 0; padding: 0 2px; touch-action: none; }
.pmq-drag-handle:hover { color: rgba(255,255,255,.55); }
.pmq-drag--dragging { opacity: .4; }
.pmq-drag--over { outline: 2px dashed rgba(253,100,30,.6); outline-offset: -2px; background: rgba(253,100,30,.07); }

@media (max-width: 480px) {
  .pub-music__now-playing { flex-direction: column; align-items: center; text-align: center; }
  .pub-music__np-title, .pub-music__np-artist { white-space: normal; }
  .pub-music__np-times { display: none; }
}

/* â”€â”€ Quotes dashboard table â”€â”€ */
.quotes-table .col-id    { width: 48px; }
.quotes-table .col-by    { width: 130px; }
.quotes-table .col-date  { width: 110px; }
.quote-num  { color: rgba(255,255,255,.3); font-size: 12px; font-weight: 600; }
.quote-text { word-break: break-word; line-height: 1.5; }

/* â”€â”€ Public quotes page â”€â”€ */
.pub-quotes__list { display: flex; flex-direction: column; gap: 16px; }
.pub-quote { background: rgba(255,255,255,.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.pub-quote__num  { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pub-quote__text { margin: 0; font-size: 15px; line-height: 1.6; color: #fff; font-style: italic; }
.pub-quote__text::before { content: '\201C'; }
.pub-quote__text::after  { content: '\201D'; }
.pub-quote__by   { font-size: 12px; color: var(--muted); }


/* â”€â”€ Muziekmodule dashboard â”€â”€ */
.music-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 10px; }
.music-idle  { padding: 16px 0 4px; }
.music-pause-warn {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 12px;
  background: rgba(var(--c-warning-rgb, 245,158,11), .12);
  border: 1px solid rgba(var(--c-warning-rgb, 245,158,11), .3);
  border-radius: var(--radius, 8px);
  color: #f59e0b; font-size: 13px; line-height: 1.4;
}
.music-pause-warn .ico { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; }

.music-track { display: flex; gap: 16px; margin-top: 10px; align-items: flex-start; }
.music-track__art  { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.06); }
.music-track__art--fallback { display: flex; align-items: center; justify-content: center; object-fit: unset; }
.music-track__art--fallback[hidden] { display: none; }
.music-track__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.music-track__title  { font-weight: 800; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-track__artist { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.music-progress { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.music-progress__bar  { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.music-progress__fill { height: 100%; background: var(--accent, #7c5cfc); border-radius: 2px; width: 0; transition: width .8s linear; }
.music-progress__times { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* â”€â”€ Music controls card â”€â”€ */
.mc-controls { display: flex; align-items: center; gap: 16px; margin: 12px 0 4px; flex-wrap: wrap; }
.mc-controls__btns { display: flex; align-items: center; gap: 4px; }
.mc-controls__volume { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 120px; }
.mc-volume-slider { flex: 1; height: 4px; accent-color: var(--accent, #7c5cfc); cursor: pointer; }
.mc-status-msg { font-size: 11px; min-height: 14px; }

/* â”€â”€ Music search results â”€â”€ */
.mq-search-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mq-search-row:last-child { border-bottom: none; }
.mq-search-row__thumb { width: 36px; height: 27px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: rgba(255,255,255,.06); }
.mq-search-row__info { flex: 1; min-width: 0; overflow: hidden; }
.mq-search-row__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mq-search-row__artist { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-mode-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.mq-mode-tab { padding: 3px 10px; font-size: 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: rgba(255,255,255,.5); cursor: pointer; transition: background .12s, color .12s; }
.mq-mode-tab.active { background: rgba(124,92,252,.2); border-color: var(--accent, #7c5cfc); color: #fff; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SCENE EDITOR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.sp-scene-editor { display: flex; flex-direction: column; min-height: 0; }

/* 3-column grid: settings | canvas | library (instellingen links, kaarten rechts) */
.sp-scene-editor__layout {
  display: grid;
  grid-template-columns: 320px 1fr 210px;
  gap: 0;        /* gebruik borders als scheiding, geen gap */
  height: calc(100vh - 270px);
  min-height: 380px;
}

/* Kolomvolgorde via order (DOM = canvas, library, settings) */
.sp-scene-editor__canvas-wrap { order: 2; }
.sp-scene-editor__library      { order: 3; }
.sp-scene-editor__settings     { order: 1; }

/* Canvas wrapper â€” transparante flex-container; geen eigen achtergrond */
.sp-scene-editor__canvas-wrap {
  position: relative;
  user-select: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 12px;    /* horizontale lucht rond het canvas */
}

/* The actual canvas â€” sized by JS to match resolution aspect ratio */
.sp-scene-editor__canvas {
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  /* Checkerboard = transparantie-indicator */
  background-color: #1a1a2e;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.04) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  overflow: hidden;
  transform-origin: top left;
}

/* Canvas items (geplaatste cards) */
.sp-scene-item {
  position: absolute;
  cursor: move;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: outline-color .1s;
}
.sp-scene-item.is-selected { outline-color: var(--accent, #7c5cfc); }
.sp-scene-item.is-selected:focus-visible { outline-color: var(--accent, #7c5cfc); }

/* Resize handles â€” 8 punten rondom geselecteerde card */
.sp-scene-item__handles { display: none; position: absolute; inset: -6px; pointer-events: none; }
.sp-scene-item.is-selected .sp-scene-item__handles { display: block; }
.sp-scene-item__handle {
  position: absolute;
  width: 10px; height: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.4);
  border-radius: 2px;
  pointer-events: all;
  transform: translate(-50%, -50%);
}
.sp-scene-item__handle[data-h="nw"] { top: 0;   left: 0;   cursor: nw-resize; }
.sp-scene-item__handle[data-h="n"]  { top: 0;   left: 50%; cursor: n-resize;  }
.sp-scene-item__handle[data-h="ne"] { top: 0;   left: 100%; cursor: ne-resize; }
.sp-scene-item__handle[data-h="e"]  { top: 50%; left: 100%; cursor: e-resize;  }
.sp-scene-item__handle[data-h="se"] { top: 100%; left: 100%; cursor: se-resize; }
.sp-scene-item__handle[data-h="s"]  { top: 100%; left: 50%; cursor: s-resize;  }
.sp-scene-item__handle[data-h="sw"] { top: 100%; left: 0;   cursor: sw-resize; }
.sp-scene-item__handle[data-h="w"]  { top: 50%; left: 0;   cursor: w-resize;  }

/* Card placeholder in canvas */
.sp-scene-item__preview {
  width: 100%; height: 100%;
  background: rgba(124,92,252,.15);
  border: 1px solid rgba(124,92,252,.4);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  padding: 4px;
}
.sp-scene-item__preview .ico { width: 22px; height: 22px; opacity: .6; flex-shrink: 0; }

/* Uitgeschakelde card op canvas — amber outline + dimmed */
.sp-scene-item--disabled { outline-color: rgba(251,191,36,.5); }
.sp-scene-item--disabled .sp-scene-item__preview { background: rgba(251,191,36,.08); opacity: .55; }
.sp-scene-item--disabled.is-selected { outline-color: rgba(251,191,36,.9); }

/* Snap alignment guides */
.sp-scene-guide {
  position: absolute;
  background: rgba(236,72,153,.75);
  pointer-events: none;
  z-index: 9999;
}
.sp-scene-guide--h { left: 0; right: 0; height: 1px; }
.sp-scene-guide--v { top: 0;  bottom: 0; width: 1px; }

/* Empty state */
.sp-scene-editor__empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  pointer-events: none;
  padding: 40px;
  text-align: center;
}

/* Library column â€” links van canvas, border rechts als scheiding */
.sp-scene-editor__library {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 0 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sp-scene-editor__library::-webkit-scrollbar { width: 4px; }
.sp-scene-editor__library::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* Settings column â€” rechts van canvas, border links als scheiding */
.sp-scene-editor__settings {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;     /* voorkomt horizontale scrollbalk */
  min-width: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sp-scene-editor__settings::-webkit-scrollbar { width: 4px; }
.sp-scene-editor__settings::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
/* Zorg dat inputs niet buiten de kolom springen */
.sp-scene-editor__settings .input,
.sp-scene-editor__settings .copyline,
.sp-scene-editor__settings .btn-group,
.sp-scene-editor__settings .field-row { min-width: 0; max-width: 100%; }

/* Settings section blocks */
.sp-scene-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-scene-section--props { padding-top: 4px; }
.sp-scene-section__divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 8px 0;
}
.sp-scene-section__item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #7c5cfc);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-scene-section__actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 2px;
}

/* Column header label */
.sp-scene-col__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.35);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Toggle-variant: klikbaar met pijl en hover-state */
.sp-scene-col__label--toggle {
  cursor: pointer;
  user-select: none;
  padding: 6px 10px;
  margin: 0 0 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  font-size: 11px;
  transition: background .12s, border-color .12s;
}
.sp-scene-col__label--toggle:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.sp-scene-col__label--toggle::after {
  content: '\25BE';
  font-size: 16px;        /* groter pijltje */
  line-height: 1;
  color: var(--orange, #fd641e);
  transition: transform .2s;
}
.sp-scene-section.is-collapsed .sp-scene-col__label--toggle::after {
  transform: rotate(-90deg);
}
/* Verberg alles behalve de label bij collapsed */
.sp-scene-section.is-collapsed > *:not(.sp-scene-col__label):not(.sp-scene-section__divider) {
  display: none !important;
}

/* Library row â€” wrapper om item + actieknop */
.sp-scene-library-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-scene-library-row .sp-scene-library-item {
  flex: 1;
  min-width: 0;
}

/* Library items â€” vertical */
.sp-scene-library-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid rgba(253,100,30,.35);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: grab;
  transition: background .12s, border-color .12s;
  user-select: none;
  flex-shrink: 0;
  color: rgba(255,255,255,.8);
}
.sp-scene-library-item:hover {
  background: rgba(253,100,30,.1);
  border-color: rgba(253,100,30,.25);
  border-left-color: rgba(253,100,30,.8);
  color: #fff;
}
/* Op canvas geplaatst â€” gedimde stijl; actieknop toont âœ• */
.sp-scene-library-item.is-placed {
  opacity: .6;
  cursor: pointer;
  border-left-color: rgba(74,222,128,.4);
  background: rgba(74,222,128,.03);
}
.sp-scene-library-item.is-placed:hover {
  opacity: .9;
  background: rgba(74,222,128,.07);
  border-left-color: rgba(74,222,128,.65);
}
/* Actief geselecteerd op canvas */
.sp-scene-library-item.is-active {
  opacity: 1;
  background: rgba(124,92,252,.2);
  border-color: rgba(124,92,252,.4);
  border-left-color: var(--accent, #7c5cfc);
  color: #fff;
}
.sp-scene-library-item.is-active .sp-scene-library-item__icon { opacity: 1; }

/* Actieknop naast library item (+ / âœ•) â€” buiten het card-element */
.sp-scene-library-item__action {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; font-weight: 400;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
}
.sp-scene-library-item__action--add {
  color: rgba(74,222,128,.7);
  border-color: rgba(74,222,128,.25);
}
.sp-scene-library-item__action--add:hover {
  color: #4ade80;
  background: rgba(74,222,128,.12);
  border-color: rgba(74,222,128,.5);
}
.sp-scene-library-item__action--remove {
  color: rgba(239,68,68,.65);
  border-color: rgba(239,68,68,.2);
}
.sp-scene-library-item__action--remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.5);
}
.sp-scene-library-item__icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; pointer-events: none; }
.sp-scene-library-item__label { pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Full-width button group (layer controls) */
.btn-group--full { width: 100%; }
.btn-group--full .btn { flex: 1; justify-content: center; }

/* Opslaan-balk onderaan de editor */
.sp-scene-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 10px;
}
.sp-scene-footer__msg {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sp-scene-footer__msg.is-dirty {
  color: var(--orange, #fd641e);
}
.sp-scene-footer__msg.is-dirty::before {
  content: 'â—';
  font-size: 8px;
}
.sp-scene-footer__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Kleinere helptekst in scene-instellingen */
.sp-scene-editor__settings .field__help--xs {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* â”€â”€ Scene editor: lagenlijst in bibliotheek â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-scene-library-row--placed {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--fg, #e0e0e0);
  user-select: none;
  position: relative;
  border: 1px solid transparent;
}
.sp-scene-library-row--placed:hover { background: rgba(255,255,255,.06); }
.sp-scene-library-row--placed.is-active { background: rgba(124,92,252,.18); border-color: rgba(124,92,252,.35); }
.sp-scene-library-row--placed.is-dragging { opacity: .4; }
.sp-scene-library-row--placed.drag-over-above::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent, #7c5cfc);
  border-radius: 1px;
}
.sp-scene-library-row--placed.drag-over-below::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent, #7c5cfc);
  border-radius: 1px;
}
.sp-scene-library-drag {
  cursor: grab;
  font-size: 14px;
  opacity: .4;
  flex-shrink: 0;
  line-height: 1;
}
.sp-scene-library-drag:active { cursor: grabbing; }
.sp-scene-library-row__icon { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }
.sp-scene-library-row__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.sp-scene-library-z-badge {
  font-size: 10px;
  color: var(--muted, #888);
  flex-shrink: 0;
  min-width: 18px;
  text-align: right;
}
.sp-scene-library-disabled-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.sp-scene-library-disabled-icon .ico {
  width: 13px; height: 13px;
  color: rgba(251,191,36,.8);
}

/* â”€â”€ Privacy page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.privacy-page { min-height: 100vh; padding: 40px 16px 80px; }
.privacy-wrap { max-width: 760px; margin: 0 auto; }
.privacy-header { margin-bottom: 32px; }
.privacy-logo { height: 32px; }
.privacy-body { color: var(--text, #e2e2f0); line-height: 1.7; }
.privacy-body h1 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; color: var(--text, #e2e2f0); }
.privacy-updated { font-size: .85rem; color: var(--muted, #888); margin-bottom: 28px; }
.privacy-body h2 { font-size: 1.1rem; font-weight: 600; margin: 32px 0 8px; color: var(--text, #e2e2f0); border-bottom: 1px solid var(--border, #2a2a3a); padding-bottom: 4px; }
.privacy-body h3 { font-size: .95rem; font-weight: 600; margin: 20px 0 6px; color: var(--muted, #aaa); }
.privacy-body p, .privacy-body ul, .privacy-body li { font-size: .9rem; }
.privacy-body ul { padding-left: 20px; margin: 8px 0; }
.privacy-body li { margin-bottom: 4px; }
.privacy-body a { color: var(--accent, #7c5cfc); text-decoration: none; }
.privacy-body a:hover { text-decoration: underline; }
.privacy-body [lang="en"] { color: var(--muted, #999); font-style: italic; margin-top: 4px; }
.privacy-back { margin-top: 48px; }

/* â”€â”€ Channel Points page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Form-sectie titel (vervangt card-in-card patroon) */
.cp-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.cp-form-head__title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Reward cards: eigen hoogte, niet rekken naar tallste rij-item */
.cp-reward { align-self: start; height: auto; }
.sp-card.cp-reward--editing { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,92,252,.2); }

/* Reward card body content */
.cp-reward-card__cost { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.cp-reward-card__desc { font-size: 11px; color: var(--muted); margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-reward-card__url { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.obs-url__input--sm { font-size: 11px; height: 28px; }
.cp-twitch-id { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #4ade80; margin: 6px 0 0; }
.cp-twitch-id__val { font-family: monospace; }
.cp-not-linked { font-size: 11px; color: #fb923c; margin: 6px 0 0; }
.btn-icon--xs { width: 18px; height: 18px; }
.btn-icon--active { color: var(--accent); }

/* Channel Points type badges */
.badge-type-alert          { background: rgba(253,100,30,.15);  color: #fb923c; }
.badge-type-image          { background: rgba(59,130,246,.15);  color: #93c5fd; }
.badge-type-sound          { background: rgba(16,185,129,.15);  color: #6ee7b7; }
.badge-type-jumpscare      { background: rgba(239,68,68,.15);   color: #fca5a5; }
.badge-type-emote-rain     { background: rgba(124,58,237,.18);  color: #a78bfa; }
.badge-type-wheel-entry    { background: rgba(20,184,166,.15);  color: #5eead4; }
.badge-type-checkin        { background: rgba(34,197,94,.15);   color: #4ade80; }
.badge-type-hello-darkness { background: rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.15); color: #94a3b8; }

/* Alert form helpers (used in CP form) */
.cp-color-pick { width: 36px; height: 28px; padding: 2px; border-radius: 6px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.cp-color-pick:disabled { opacity: .35; cursor: default; }
.cp-style-btns { display: flex; gap: 4px; }
.cp-style-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.05); cursor: pointer; font-size: 14px; user-select: none; transition: background .1s; }
.cp-style-btn:hover { background: rgba(255,255,255,.1); }
.cp-style-btn.active { background: rgba(139,92,246,.3); border-color: rgba(139,92,246,.6); color: #a78bfa; }
.cp-style-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.cp-details { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.cp-details summary { padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.cp-details summary::-webkit-details-marker { display: none; }
.cp-details summary::after { content: '\25BE'; font-size: 11px; opacity: .6; transition: transform .2s; }
.cp-details[open] summary::after { transform: rotate(-180deg); }
.cp-details-body { padding: 4px 12px 12px; }
.cp-alert-preview { display: flex; flex-direction: column; gap: 6px; min-height: 80px; padding: 16px; border-radius: 8px; background: rgba(0,0,0,.5); border: 1px solid var(--border); }
.cp-alert-preview__name { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); transition: all .15s; }
.cp-alert-preview__msg  { font-size: 14px; color: rgba(255,255,255,.9); transition: all .15s; }


/* =======================================================================
   ALERT SCENE EDITOR
   ======================================================================= */

.ase-editor {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 500px;
  overflow: hidden;
  background: #13141c;
}

/* ── Toolbar ─────────────────────────────────────────────────────────── */
.ase-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1c1d28;
  border-bottom: 1px solid #2a2b3d;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ase-toolbar__left, .ase-toolbar__center, .ase-toolbar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ase-toolbar__left  { flex: 0 1 auto; min-width: 0; }
.ase-toolbar__center{ flex: 1 1 auto; justify-content: center; flex-wrap: nowrap; min-width: 0; }
.ase-toolbar__right { flex: 0 0 auto; margin-left: auto; }
.ase-toolbar__scene-select { min-width: 150px; max-width: 220px; flex: 1 1 150px; }
.ase-toolbar__name-input   { flex: 1 1 150px; min-width: 110px; }
.ase-toolbar__dur-input    { width: 76px; }
.ase-toolbar__dur-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ase-toolbar__dur-unit { font-size: 12px; color: var(--muted); }
.ase-toolbar__browse-btn { max-width: 220px; display: flex; align-items: center; gap: 5px; overflow: hidden; font-weight: 600; }
.ase-toolbar__browse-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.ase-toolbar__sep { width: 1px; height: 20px; background: rgba(255,255,255,.15); flex-shrink: 0; margin: 0 2px; }
.ase-toolbar__canvas-size { min-width: 150px; max-width: 200px; flex-shrink: 0; }
/* Dirty state indicator */
.ase-dirty-dot { color: #f59e0b; font-size: 14px; line-height: 1; flex-shrink: 0; }
.ase-dirty-dot[hidden] { display: none; }

/* ── Scene picker modal ──────────────────────────────────────────────── */
.ase-picker-backdrop { position: fixed; inset: 0; z-index: 1010; background: rgba(0,0,0,.55); }
.ase-picker-backdrop[hidden] { display: none !important; }
.ase-picker-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 1011;
  background: var(--card-bg-solid, #1e1f2e);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  width: min(680px, 95vw); max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.ase-picker-modal[hidden] { display: none !important; }
.ase-picker-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.ase-picker-modal__title { font-size: 14px; font-weight: 600; }
.ase-picker-modal__body { flex: 1; overflow-y: auto; padding: 16px; }
.ase-picker-empty { text-align: center; padding: 32px; opacity: .5; font-size: 14px; }
.ase-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ase-pcard {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  transition: border-color .15s, background .15s; display: flex; flex-direction: column;
}
.ase-pcard:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.ase-pcard--active { border-color: var(--accent, #e8611a) !important; background: rgba(232,97,26,.08); }
.ase-pcard__thumb {
  aspect-ratio: 16/9; background: rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ase-pcard__thumb-img { width: 100%; height: 100%; object-fit: contain; }
.ase-pcard__thumb-placeholder { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ase-pcard__event { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .45; }
.ase-pcard__info { padding: 7px 9px; display: flex; flex-direction: column; gap: 2px; }
.ase-pcard__name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ase-pcard__meta { font-size: 11px; opacity: .45; }

/* ── 3-panel body ────────────────────────────────────────────────────── */
.ase-body {
  display: grid;
  grid-template-columns: 320px 1fr 220px;
  flex: 1 1 0;
  overflow: hidden;
}

/* ── Panel base ──────────────────────────────────────────────────────── */
.ase-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #2a2b3d;
}
.ase-panel:last-child { border-right: none; }
/* Volgorde: eigenschappen links, canvas midden, lagen rechts */
.ase-body .ase-panel--props  { order: 1; border-right: 1px solid #2a2b3d; }
.ase-body .ase-panel--canvas { order: 2; }
.ase-body .ase-panel--layers { order: 3; border-right: none; }
.ase-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #14151f;
  border-bottom: 1px solid #2a2b3d;
  flex-shrink: 0;
}
.ase-panel__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ase-layer-add-btns { display: flex; gap: 4px; }

/* ── Lagenlijst ──────────────────────────────────────────────────────── */
.ase-panel--layers { overflow-y: auto; }
.ase-layer-list { list-style: none; margin: 0; padding: 6px; flex: 1 1 0; overflow-y: auto; }
.ase-layer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background .1s;
  margin-bottom: 2px;
}
.ase-layer-item:hover { background: var(--panel2); }
.ase-layer-item.is-selected { background: rgba(168,85,247,.18); border: 1px solid rgba(168,85,247,.35); }
.ase-layer-item__drag { flex-shrink:0; cursor:grab; opacity:.3; font-size:14px; user-select:none; padding:0 2px; }
.ase-layer-item:hover .ase-layer-item__drag { opacity:.6; }
.ase-layer-item__icon { flex-shrink: 0; opacity: .6; }
.ase-layer-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ase-layer-item__del { opacity: 0; flex-shrink: 0; }
.ase-layer-item:hover .ase-layer-item__del { opacity: .5; }
.ase-layer-item__del:hover { opacity: 1 !important; }
.ase-layer-item.is-dragging { opacity: .4; }
.ase-layer-item.drag-over-top { box-shadow: 0 -2px 0 var(--accent); }
.ase-layer-item.drag-over-bot { box-shadow: 0 2px 0 var(--accent); }

.ase-layers-save-row { padding: 10px 12px; border-top: 1px solid #2a2b3d; flex-shrink: 0; display: flex; gap: 6px; }

/* ── Canvas panel ────────────────────────────────────────────────────── */
.ase-panel--canvas {
  background: #111114;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ase-canvas-outer {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  position: relative;
}
.ase-canvas-wrap {
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}
.ase-canvas {
  position: absolute;
  top: 0; left: 0;
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
  overflow: visible;
}
.ase-canvas__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  pointer-events: none;
}
.ase-canvas-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #2a2b3d;
  flex-shrink: 0;
  width: 100%;
  background: #111114;
}
.ase-canvas-preview-btn { margin-left: auto; }

/* ── Layer element op canvas ──────────────────────────────────────────── */
.ase-layer-el {
  position: absolute;
  box-sizing: border-box;
}
.ase-layer-el.is-selected {
  outline: 2px solid rgba(168,85,247,.8);
  outline-offset: 0px;
}
.ase-layer-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.2);
}

/* ── Resize grips ────────────────────────────────────────────────────── */
.ase-grip {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid rgba(168,85,247,.9);
  border-radius: 2px;
  z-index: 9999;
  cursor: default;
}
.ase-grip--nw { top: -5px; left: -5px; cursor: nw-resize; }
.ase-grip--n  { top: -5px; left: calc(50% - 4px); cursor: n-resize; }
.ase-grip--ne { top: -5px; right: -5px; cursor: ne-resize; }
.ase-grip--e  { top: calc(50% - 4px); right: -5px; cursor: e-resize; }
.ase-grip--se { bottom: -5px; right: -5px; cursor: se-resize; }
.ase-grip--s  { bottom: -5px; left: calc(50% - 4px); cursor: s-resize; }
.ase-grip--sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.ase-grip--w  { top: calc(50% - 4px); left: -5px; cursor: w-resize; }

/* ── Eigenschappen panel ─────────────────────────────────────────────── */
.ase-panel--props { overflow-y: auto; background: #1a1b28; border-left: 1px solid #2a2b3d; }
.ase-panel--layers { background: #1a1b28; border-left: 1px solid #2a2b3d; }
/* Scrollbar themeing */
.ase-panel--props::-webkit-scrollbar,
.ase-panel--layers::-webkit-scrollbar { width: 5px; }
.ase-panel--props::-webkit-scrollbar-track,
.ase-panel--layers::-webkit-scrollbar-track { background: #13141c; }
.ase-panel--props::-webkit-scrollbar-thumb,
.ase-panel--layers::-webkit-scrollbar-thumb { background: #35364a; border-radius: 3px; }
.ase-panel--props::-webkit-scrollbar-thumb:hover,
.ase-panel--layers::-webkit-scrollbar-thumb:hover { background: #4a4b62; }
.ase-scene-section { flex-shrink: 0; border-bottom: 2px solid #2a2b3d; }
.ase-section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #14151f;
  border-bottom: 1px solid #2a2b3d;
  flex-shrink: 0;
}
.ase-section-header--layer {
  border-top: 1px solid #2a2b3d;
  position: sticky;
  top: 0;
  z-index: 5;
}
.ase-section-header__title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
/* Layer header naam */
.ase-layer-hdr-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.ase-layer-hdr-name.is-empty { color: var(--muted); font-weight: 400; font-style: italic; }
.ase-layer-hdr-icon[data-type="image"]::before     { content: "🖼"; font-style: normal; }
.ase-layer-hdr-icon[data-type="text"]::before      { content: "T"; font-weight:700; font-size:12px; color:var(--muted); }
.ase-layer-hdr-icon[data-type="particles"]::before { content: "✦"; font-style: normal; color: var(--muted); }
/* Naam-rij boven de accordions */
.ase-name-row { padding: 8px 12px 4px; border-bottom: 1px solid #2a2b3d; }
.ase-name-row .form-control { width: 100%; }
.ase-props-empty {
  display: none; /* wordt zichtbaar via JS door hidden-attribuut te verwijderen */
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.25);
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

#ase-props-empty:not([hidden]) { display: flex; }
#ase-props-form { flex-shrink: 0; width: 100%; }

/* ── Accordion ───────────────────────────────────────────────────────── */
.ase-acc { border-bottom: 1px solid #2a2b3d; }
.ase-acc__hdr {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: none; border: none; cursor: pointer;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); text-align: left;
}
.ase-acc__hdr:hover { background: rgba(255,255,255,.04); }
.ase-acc__chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-bottom: 2px; }
.ase-acc__hdr.is-open .ase-acc__chevron { transform: rotate(-135deg); margin-bottom: 0; margin-top: 2px; }
.ase-acc__body { padding: 10px 14px 14px; }
.ase-acc__hdr:not(.is-open) + .ase-acc__body { display: none; }
.ase-acc__sublabel { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ── Veld-rij (label links, input rechts) ───────────────────────────── */
.ase-fr { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 8px; margin-bottom: 7px; }
.ase-fr--top { align-items: flex-start; }
.ase-fr__lbl { font-size: 11px; color: var(--muted); line-height: 1.3; }
.ase-fr__val { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ase-fr__val > * { min-width: 0; }
.ase-fr__val > .form-control { width: 100%; }

/* ── Range + number combo ────────────────────────────────────────────── */
.ase-rn { display: flex; align-items: center; gap: 6px; width: 100%; }
.ase-rn__range { flex: 1; accent-color: var(--color-purple); min-width: 0; }
.ase-rn__num { width: 62px !important; flex-shrink: 0; text-align: center; padding-left: 4px; padding-right: 4px; }

/* Behoud oude stijlen voor backward compat particle editor */
.ase-props-section { padding: 12px; border-bottom: 1px solid var(--border); }
.ase-props-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.ase-props-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ase-props-grid4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.ase-num-full { width: 100% !important; }
.ase-props-lbl { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.ase-props-zbtns { display: flex; align-items: center; gap: 6px; }
.ase-props-checks { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.ase-check-label { display: flex; align-items: center; gap: 5px; font-size: 12px; cursor: pointer; }
.ase-var-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.ase-var-chips-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.ase-var-chip { background: rgba(124,58,237,.18); border: 1px solid rgba(124,58,237,.35); color: var(--color-purple-light, #c4b5fd); border-radius: 4px; font-size: 11px; padding: 2px 6px; cursor: pointer; font-family: monospace; transition: background .1s; }
.ase-var-chip:hover { background: rgba(124,58,237,.35); }
.ase-var-ref { margin-top: 8px; }
.ase-var-ref summary { font-size: 11px; color: var(--muted); cursor: pointer; user-select: none; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.ase-var-ref summary::-webkit-details-marker { display: none; }
.ase-var-ref summary::before { content: '▸'; transition: transform .15s; display: inline-block; }
.ase-var-ref[open] summary::before { transform: rotate(90deg); }
.ase-var-ref__table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 6px; }
.ase-var-ref__table td { padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.ase-var-ref__table td:first-child { white-space: nowrap; width: 1%; }
.ase-var-ref__table td code { background: rgba(124,58,237,.18); border-radius: 3px; padding: 1px 4px; font-size: 10.5px; color: var(--color-purple-light, #c4b5fd); }
.ase-var-ref__table td:last-child { color: var(--muted); }
.ase-var-ref__note { font-size: 10px; color: var(--muted); margin-top: 5px; font-style: italic; }
.ase-anim-extra { margin-top: 8px; }
.ase-slider { width: 100%; accent-color: var(--color-purple); }
.ase-color { height: 32px; padding: 2px; cursor: pointer; width: 100%; }
.ase-media-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: center; }
.ase-media-row .form-control { flex: 1; min-width: 0; }
.ase-shadow-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* ── Statusbalk ──────────────────────────────────────────────────────── */
.ase-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  flex-shrink: 0;
  font-size: 11px;
}
.ase-status-msg { color: var(--muted); }
.ase-status-msg--err { color: #f87171; }
.ase-cursor-pos { color: rgba(255,255,255,.3); font-variant-numeric: tabular-nums; font-family: monospace; }

/* ── Canvas custom grootte ───────────────────────────────────────────── */
.ase-canvas-size-select { min-width: 160px; }
.ase-canvas-custom { display: flex; align-items: center; gap: 6px; font-size: 12px; }
