/* ============================================================================
   BIO ADMIN — Oberfläche zum Pflegen der Website
   Bewusst ruhiger und sachlicher als das Frontend.
   ========================================================================== */

:root {
  --a:        #8b5cf6;
  --a-soft:   rgba(139, 92, 246, .14);
  --a-line:   rgba(139, 92, 246, .32);

  --bg:       #0b0913;
  --bg-2:     #100d1c;
  --panel:    #14111f;
  --panel-2:  #191527;
  --line:     rgba(255, 255, 255, .08);
  --line-2:   rgba(255, 255, 255, .045);

  --text:     #e7e3f2;
  --soft:     #a49dba;
  --mute:     #736c87;

  --ok:       #4ade80;
  --warn:     #fbbf24;
  --bad:      #f87171;

  --radius:   12px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', Consolas, monospace;
  --side-w:   248px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar       { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2542; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--a); }

:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: .92em; }
.hidden-form { display: none; }


/* ==========================================================================
   SEITENLEISTE
   ========================================================================== */

.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 20;
}

.side__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px;
}
.side__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--a), #5b21b6);
  font-weight: 800;
  color: #fff;
}
.side__brand strong { display: block; font-size: 15px; }
.side__brand small  { display: block; font-size: 12px; color: var(--mute); }

.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--soft);
  transition: background .18s, color .18s;
}
.side__nav a svg { color: var(--mute); transition: color .18s; }
.side__nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side__nav a.is-active {
  background: var(--a-soft);
  color: #fff;
  box-shadow: inset 2px 0 0 var(--a);
}
.side__nav a.is-active svg,
.side__nav a:hover svg { color: var(--a); }

.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.side__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--mute);
  transition: color .18s, background .18s;
}
.side__link:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

.side__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--soft);
}
.side__user span { display: inline-flex; align-items: center; gap: 7px; }
.side__user a { color: var(--a); font-weight: 500; }
.side__user a:hover { text-decoration: underline; }


/* ==========================================================================
   HAUPTBEREICH
   ========================================================================== */

.main {
  margin-left: var(--side-w);
  padding: 0 30px 70px;
  max-width: 1500px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0 18px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
}
.topbar h1 { font-size: 24px; margin-right: auto; }

.lead { color: var(--soft); margin-bottom: 18px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 30px 0 14px;
}
.block-title:first-of-type { margin-top: 4px; }
.block-title svg { color: var(--a); }


/* ==========================================================================
   MELDUNGEN
   ========================================================================== */

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  margin-bottom: 14px;
}
.flash--ok    { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); color: #bbf7d0; }
.flash--error { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .08); color: #fecaca; }
.flash--warn  { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); color: #fde68a; }
.flash code   { font-family: var(--mono); font-size: 12.5px; background: rgba(0,0,0,.3); padding: 1px 5px; border-radius: 4px; }
.flash a      { color: inherit; text-decoration: underline; }


/* ==========================================================================
   KACHELN
   ========================================================================== */

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat__label {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}
.stat__value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.stat__note  { font-size: 12.5px; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }

.stat--live {
  border-color: var(--a-line);
  background: linear-gradient(160deg, var(--a-soft), var(--panel));
}
.stat--live .stat__value { color: #d8c5ff; }

.stat--link { transition: border-color .2s, transform .2s; }
.stat--link:hover { border-color: var(--a-line); transform: translateY(-2px); }

.livedot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }


/* ==========================================================================
   PANELS
   ========================================================================== */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
  align-items: start;
}

.panel {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel--group { padding: 0; margin-bottom: 14px; overflow: hidden; }

.panel__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel-2);
}
.panel__head h2 { font-size: 16px; }
.panel__head p  { font-size: 13px; color: var(--mute); margin-top: 2px; }

.panel__head--row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel__head--row h2 { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.panel__head-actions { display: flex; gap: 4px; }

.panel__label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

.entry-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--row-accent, var(--a));
  box-shadow: 0 0 10px var(--row-accent, var(--a));
  flex: none;
}


/* ==========================================================================
   FORMULARE
   ========================================================================== */

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px 22px;
}
.field--wide { grid-column: 1 / -1; }

.field > label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 6px;
}
.field > label small { font-weight: 400; color: var(--mute); }

.field__key {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
  background: rgba(0, 0, 0, .3);
  padding: 1px 6px;
  border-radius: 4px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0e0b18;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color .18s, background .18s;
}
textarea { font-family: var(--mono); font-size: 13px; line-height: 1.7; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--a);
  background: #100d1e;
}
input::placeholder, textarea::placeholder { color: #574f6b; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5l4-4' fill='none' stroke='%23a49dba' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  cursor: pointer;
}

.hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.55; }
.hint--warn { color: var(--warn); }
.hint a { color: var(--a); text-decoration: underline; }
.hint code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: rgba(0, 0, 0, .35);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  width: 42px; height: 24px;
  border-radius: 999px;
  background: #241f36;
  border: 1px solid var(--line);
  padding: 2px;
  transition: background .2s, border-color .2s;
}
.switch__knob {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6b6485;
  transition: transform .2s cubic-bezier(.3,1.4,.5,1), background .2s;
}
.switch input:checked + .switch__track { background: var(--a-soft); border-color: var(--a); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(18px); background: var(--a); }
.switch__text { font-size: 13.5px; color: var(--soft); }

/* Farbe */
.colorfield { display: flex; gap: 8px; align-items: center; }
.colorfield input[type="color"] {
  width: 42px; height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0e0b18;
  cursor: pointer;
  flex: none;
}

/* Icon-URL mit Vorschau */
.iconfield { display: flex; gap: 8px; align-items: center; }
.iconfield__preview {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0e0b18;
  font-size: 19px;
  line-height: 1;
  overflow: hidden;
  color: var(--a);
}
.iconfield__preview .icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.iconfield__preview.is-broken { border-color: rgba(248, 113, 113, .5); }

/* Passwort */
.passfield { position: relative; display: flex; gap: 6px; }
.passfield input { padding-right: 42px; }
.passfield .iconbtn { position: absolute; right: 4px; top: 4px; }

.formbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px 0 4px;
}


/* ==========================================================================
   EDITOR MIT LIVE-VORSCHAU
   ========================================================================== */

.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.editor textarea { min-height: 190px; height: 100%; }

.editor__preview {
  position: relative;
  padding: 30px 16px 16px;
  border-radius: 9px;
  border: 1px dashed var(--a-line);
  background: #0d0a17;
  overflow-y: auto;
  max-height: 460px;
}
.editor__label {
  position: absolute;
  top: 8px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a);
}
.preview-empty { color: var(--mute); font-style: italic; font-size: 13.5px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .editor__preview { max-height: 300px; }
}


/* ==========================================================================
   DISCORD-VORSCHAU (dc-*)
   ========================================================================== */

.dc-content { font-size: 14px; color: var(--soft); line-height: 1.65; }
.dc-content > *:first-child { margin-top: 0; }
.dc-content > *:last-child  { margin-bottom: 0; }
.dc-content p { margin: 0 0 10px; }

.dc-h  { color: #fff; margin: 16px 0 8px; }
.dc-h1 { font-size: 19px; }
.dc-h2 { font-size: 17px; }
.dc-h3 { font-size: 15px; }
.dc-subtext { font-size: 12px; color: var(--mute); }

.dc-content strong { color: #fff; }
.dc-content u { text-decoration-color: var(--a-line); text-underline-offset: 3px; }
.dc-content s { opacity: .6; }

.dc-link {
  color: #c4b5fd;
  border-bottom: 1px solid rgba(139, 92, 246, .4);
}
.dc-link:hover { color: #fff; }

.dc-code {
  font-family: var(--mono);
  font-size: .88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(139, 92, 246, .14);
  border: 1px solid var(--line);
  color: #ddd0ff;
}

.dc-codeblock {
  margin: 12px 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #08060f;
  overflow: hidden;
}
.dc-codeblock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(139, 92, 246, .07);
}
.dc-codeblock__lang {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a);
}
.dc-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-family: var(--font);
  font-size: 11px;
  cursor: pointer;
}
.dc-copy:hover { color: #fff; border-color: var(--a-line); }
.dc-codeblock pre { margin: 0; padding: 11px 13px; overflow-x: auto; }
.dc-codeblock code { font-family: var(--mono); font-size: 12.5px; color: #cdbdf0; white-space: pre; }

.dc-quote {
  margin: 10px 0;
  padding: 1px 0 1px 13px;
  border-left: 3px solid var(--a);
}
.dc-list { margin: 9px 0; padding-left: 20px; }
.dc-list li { margin-bottom: 5px; }
.dc-list li::marker { color: var(--a); }
.dc-hr { height: 1px; border: 0; margin: 16px 0; background: var(--line); }

.dc-spoiler {
  border-radius: 4px;
  background: #241f36;
  color: transparent;
  cursor: pointer;
  padding: 0 3px;
}
.dc-spoiler * { visibility: hidden; }
.dc-spoiler:hover { background: rgba(139, 92, 246, .2); color: inherit; }
.dc-spoiler:hover * { visibility: visible; }

.dc-mention {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(139, 92, 246, .2);
  color: #d5c6ff;
}
.dc-timestamp {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: var(--soft);
}
.dc-emoji { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; }


/* ==========================================================================
   TABELLE
   ========================================================================== */

.table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.table__head,
.table__row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1.6fr) 1fr 1.4fr 90px 90px 130px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.table__head {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

.table__row { border-bottom: 1px solid var(--line-2); transition: background .18s; }
.table__row:last-child { border-bottom: 0; }
.table__row:hover { background: rgba(255, 255, 255, .022); }
.table__row.is-hidden { opacity: .45; }

.table__emoji {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--row-accent, #7b2ff7) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--row-accent, #7b2ff7) 34%, transparent);
}
.table__emoji .icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.table__main a { font-weight: 600; }
.table__main a:hover { color: var(--a); }
.table__main small { display: block; font-size: 11.5px; color: var(--mute); }

.table__cell { font-size: 13.5px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.table__order, .table__actions { gap: 3px; }

.pill {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--soft);
  border: 1px solid var(--line);
}
.pill--primary { background: rgba(139, 92, 246, .16); color: #cbb5ff; border-color: rgba(139,92,246,.3); }
.pill--violet  { background: rgba(167, 139, 250, .14); color: #ddd6fe; border-color: rgba(167,139,250,.3); }
.pill--blue    { background: rgba(59, 130, 246, .14); color: #bfdbfe; border-color: rgba(59,130,246,.3); }
.pill--green   { background: rgba(34, 197, 94, .13); color: #bbf7d0; border-color: rgba(34,197,94,.28); }
.pill--amber   { background: rgba(245, 158, 11, .14); color: #fde68a; border-color: rgba(245,158,11,.3); }
.pill--rose    { background: rgba(244, 63, 94, .13); color: #fecdd3; border-color: rgba(244,63,94,.28); }
.pill--slate   { background: rgba(255, 255, 255, .06); color: #d4d0de; }


/* ==========================================================================
   WIEDERHOLBARE ZEILEN
   ========================================================================== */

.repeat { padding: 20px 22px; }
.panel--group > .repeat { padding-top: 16px; }

.repeat__rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.repeat--blocks > .repeat__rows { gap: 14px; }

.repeat__row {
  display: grid;
  grid-template-columns: 30px minmax(120px, 1fr) minmax(120px, 1fr) 40px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #100d1b;
}
.repeat__row--wide {
  grid-template-columns: 30px 1fr 1.6fr 1fr 130px 70px 70px 40px;
}
.repeat__rows--card .repeat__row { background: var(--panel-2); }

.repeat__grip { display: grid; place-items: center; color: var(--mute); }

.repeat__block {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #100d1b;
}
.repeat__block-head { display: flex; gap: 8px; margin-bottom: 10px; }

.panel--entry { margin: 0; }

.is-new { animation: popIn .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

.narrow { max-width: 90px; }


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.btn:hover { border-color: var(--a-line); background: #1e1932; transform: translateY(-1px); }

.btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--a), #6d28d9);
  color: #fff;
}
.btn--primary:hover { background: linear-gradient(135deg, #9a6dff, #7c3aed); }

.btn--danger {
  border-color: rgba(248, 113, 113, .3);
  background: rgba(248, 113, 113, .08);
  color: #fecaca;
}
.btn--danger:hover { background: rgba(248, 113, 113, .16); border-color: rgba(248,113,113,.5); }

.btn--small { padding: 7px 13px; font-size: 13px; }

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 11px;
  transition: color .18s, border-color .18s, background .18s;
}
.iconbtn:hover:not(:disabled) { color: var(--text); border-color: var(--a-line); background: var(--a-soft); }
.iconbtn:disabled { opacity: .3; cursor: not-allowed; }
.iconbtn.is-on { color: var(--a); border-color: var(--a-line); }
.iconbtn--danger:hover { color: #fecaca; border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.1); }

.inline { display: inline; }


/* ==========================================================================
   CHECKLISTE & PROFILVORSCHAU (Dashboard)
   ========================================================================== */

.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist__row {
  display: grid;
  grid-template-columns: 24px minmax(150px, 200px) 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #100d1b;
  font-size: 13.5px;
}
.checklist__name { font-weight: 500; }
.checklist__val  { color: var(--mute); font-size: 12.5px; word-break: break-word; }

.mark {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.mark--ok  { background: rgba(74, 222, 128, .16); color: var(--ok); }
.mark--bad { background: rgba(248, 113, 113, .16); color: var(--bad); }

.hintbox {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #100d1b;
  font-size: 13px;
  color: var(--soft);
}
.hintbox strong { display: block; color: var(--text); margin-bottom: 8px; }
.hintbox pre {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #08060f;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #cdbdf0;
  overflow-x: auto;
}
.hintbox code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0, 0, 0, .35);
  padding: 1px 5px;
  border-radius: 4px;
}

.preview-profile {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #100d1b;
  margin-bottom: 12px;
}
.preview-banner {
  height: 90px;
  background-size: cover;
  background-position: center;
}
.preview-body { display: flex; gap: 14px; padding: 0 16px 16px; margin-top: -30px; }
.preview-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 4px solid var(--panel);
  object-fit: cover;
  flex: none;
}
.preview-avatar--empty {
  display: grid;
  place-items: center;
  background: #241f36;
  color: var(--mute);
  font-size: 26px;
  font-weight: 700;
}
.preview-body > div { padding-top: 34px; }
.preview-body strong { display: block; font-size: 16px; }
.preview-body small  { display: block; font-size: 12.5px; color: var(--mute); }

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--soft);
}
.preview-status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot, #80848e);
}
[data-state="online"]  { --dot: #23a55a; }
[data-state="idle"]    { --dot: #f0b232; }
[data-state="dnd"]     { --dot: #f23f43; }
[data-state="offline"] { --dot: #80848e; }


/* ==========================================================================
   LEERZUSTAND
   ========================================================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 70px 30px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--panel);
  text-align: center;
}
.empty-state svg { color: var(--a); opacity: .55; }
.empty-state h2  { font-size: 19px; }
.empty-state p   { color: var(--mute); max-width: 380px; margin-bottom: 8px; }


/* ==========================================================================
   LOGIN
   ========================================================================== */

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 30px 20px;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(139, 92, 246, .16), transparent 70%),
    var(--bg);
}

.login {
  width: 100%;
  max-width: 380px;
  padding: 34px 30px 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
  box-shadow: 0 30px 70px -30px #000;
}
.login__mark {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--a), #5b21b6);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 14px 30px -12px var(--a);
}
.login h1 { font-size: 22px; }
.login__sub { font-size: 13.5px; color: var(--mute); margin: 6px 0 22px; }

.login__form { display: flex; flex-direction: column; gap: 13px; text-align: left; }
.login__form label { display: flex; flex-direction: column; gap: 6px; }
.login__form label span { font-size: 13px; font-weight: 600; color: var(--soft); }
.login__form .btn { justify-content: center; margin-top: 6px; }

.login__back {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mute);
}
.login__back:hover { color: var(--a); }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
  .side {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side__nav { flex-direction: row; flex-wrap: wrap; }
  .side__foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .side__user { margin: 0; }
  .main { margin-left: 0; padding: 0 18px 60px; }
}

@media (max-width: 760px) {
  .table__head { display: none; }
  .table__row {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "emoji main"
      "cells cells"
      "acts  acts";
    gap: 8px;
  }
  .table__emoji { grid-area: emoji; }
  .table__main  { grid-area: main; }
  .table__actions { grid-area: acts; }

  .repeat__row, .repeat__row--wide { grid-template-columns: 1fr; }
  .repeat__grip { display: none; }
  .narrow { max-width: none; }
  .fields { padding: 16px; grid-template-columns: 1fr; }
  .side__foot .side__link { display: none; }
}
