/* GameLoungeMaster – Webkonsole
   Fast schwarz, feines Raster, violette Flächen; Magenta und Cyan nur punktuell.
   Status wird als farbiger Text mit gezeichnetem Symbol gezeigt – keine Pillen. */
@import url("fonts.css");

:root {
  --bg: #07060c;
  --bg-grid: rgba(139, 92, 246, 0.05);
  --surface: #110c1b;
  --surface-2: #171024;
  --surface-3: #21172f;
  --line: #2a2040;
  --line-soft: rgba(42, 32, 64, 0.65);
  --line-strong: #44345f;
  --text: #ece8f6;
  --text-soft: #bdb3d4;
  --text-mute: #8f84ad;
  --violet: #8b5cf6;
  --violet-strong: #a78bfa;
  --magenta: #ff3fb4;
  --cyan: #2ee6f6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --radius: 10px;
  --radius-sm: 6px;
  --display: "Chakra Petch", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--cyan);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-color: var(--line-strong) var(--bg); scrollbar-width: thin; }
body {
  font: 15px/1.55 var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.13), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 63, 180, 0.06), transparent 60%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  background-attachment: fixed;
  min-height: 100vh;
  caret-color: var(--cyan);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
h1, h2, h3, .label-caps, th, legend, .brand-name, .statusbar .value { font-kerning: normal; font-feature-settings: "kern" 1; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid var(--bg); }

a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { color: var(--violet-strong); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; font-family: var(--display); }
h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: 0.005em; }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: 0.01em; }
h3 { font-size: 0.98rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.small { font-size: 0.86rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface-3); padding: 0.5rem 1rem; }
.label-caps { font: 600 0.72rem/1.2 var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.i.lg { width: 1.35rem; height: 1.35rem; }

/* ---------- Status (Ersatz für Pillen) ---------- */
.state { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.88rem; white-space: nowrap; color: var(--text-mute); }
.state .i { width: 1.05rem; height: 1.05rem; }
.state.ok { color: var(--ok); }
.state.bad { color: var(--bad); }
.state.warn { color: var(--warn); }
.state.info { color: var(--cyan); }
.state.violet { color: var(--violet-strong); }
.state.off { color: var(--text-mute); font-weight: 500; }
.ident { font-family: var(--mono); font-size: 0.82rem; color: var(--violet-strong); }

/* ---------- Grundlayout ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, rgba(17, 12, 27, 0.97), rgba(9, 7, 15, 0.97));
  border-right: 1px solid var(--line); padding: 1.1rem 0.8rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; padding: 0.2rem 0.45rem 0.3rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; font: 700 0.95rem var(--display);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.8);
}
.brand-name { font: 700 1rem/1.1 var(--display); letter-spacing: 0.02em; }
.brand-name small { display: block; font: 500 0.7rem var(--display); color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }
.guild-switch {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); transition: border-color 0.2s var(--ease);
}
.guild-switch:hover { border-color: var(--line-strong); text-decoration: none; }
.guild-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font: 700 0.95rem var(--display); overflow: hidden; flex: none; }
.guild-icon img { width: 100%; height: 100%; object-fit: cover; }
.guild-switch .label { min-width: 0; flex: 1; }
.guild-switch .label b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; font-weight: 600; }
.guild-switch .label span { font-size: 0.75rem; color: var(--text-mute); }
.guild-switch > .i { color: var(--text-mute); }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.48rem 0.65rem; border-radius: 8px; color: var(--text-soft); font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a .i { color: var(--text-mute); transition: color 0.18s var(--ease); }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a:hover .i { color: var(--text-soft); }
.nav a[aria-current="page"] { background: rgba(139, 92, 246, 0.16); color: #fff; }
.nav a[aria-current="page"] .i { color: var(--violet-strong); }
.nav-section { padding: 0.95rem 0.65rem 0.35rem; }

.user-box { margin-top: auto; display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.4rem 0; border-top: 1px solid var(--line); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); object-fit: cover; flex: none; }
.user-box .name { flex: 1; min-width: 0; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { padding: 2rem 2.25rem 4rem; max-width: 1300px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head > div:first-child { display: grid; gap: 0.45rem; }
.page-head p { color: var(--text-soft); max-width: 68ch; }
.page-head .head-actions { display: flex; align-items: center; gap: 0.9rem; }

/* ---------- Flächen ---------- */
.stack { display: grid; gap: 1.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.panel {
  background: linear-gradient(180deg, rgba(23, 16, 36, 0.94), rgba(17, 12, 27, 0.94));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.card { /* Alias für bestehende Templates */
  background: linear-gradient(180deg, rgba(23, 16, 36, 0.94), rgba(17, 12, 27, 0.94));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.card > h2:first-child, .panel > h2:first-child { margin-bottom: 1rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-head h2 { margin: 0; }
.card.sticky { position: sticky; top: 1.25rem; }
.mt { margin-top: 1.25rem; }

/* Statusleiste: eine Fläche, mehrere Werte, Trennlinien statt Einzelkarten */
.statusbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: linear-gradient(180deg, rgba(23, 16, 36, 0.94), rgba(17, 12, 27, 0.94));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.statusbar > div { padding: 1.05rem 1.3rem; display: grid; gap: 0.3rem; align-content: start; border-left: 1px solid var(--line-soft); }
.statusbar > div:first-child { border-left: 0; }
.statusbar .value { display: flex; align-items: center; gap: 0.5rem; font: 600 1.2rem/1.25 var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.statusbar .value .i { width: 1.2rem; height: 1.2rem; }
.statusbar .value.ok { color: var(--ok); }
.statusbar .value.bad { color: var(--bad); }
.statusbar .value.warn { color: var(--warn); }
.statusbar .detail { font-size: 0.8rem; color: var(--text-mute); }
.statusbar .actions { margin-top: 0.35rem; }

/* Zeilenlisten (Module, Fehler, Dateien im Entwurf) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line-soft); }
.rows > li:first-child { border-top: 0; }
.row-link, .row-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.25rem 0.9rem;
  padding: 0.8rem 0.35rem; color: var(--text);
}
.row-link { border-radius: var(--radius-sm); transition: background-color 0.18s var(--ease); }
.row-link:hover { background: rgba(139, 92, 246, 0.07); text-decoration: none; }
.row-link > .i:first-child, .row-item > .i:first-child { color: var(--text-mute); width: 1.25rem; height: 1.25rem; }
.row-link b, .row-item b { font-weight: 600; }
.row-link .sub, .row-item .sub { display: block; font-size: 0.82rem; color: var(--text-mute); }
.row-link > .i:last-child { color: var(--text-mute); }
.err-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.75rem; padding: 0.75rem 0.2rem; }
.err-row .i { color: var(--bad); margin-top: 0.15rem; }
.err-row .meta { font-size: 0.78rem; color: var(--text-mute); }
.err-row .meta .ident { color: var(--bad); }

/* ---------- Hinweise ---------- */
.alert {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85rem 1rem 0.85rem 2.85rem; margin-bottom: 1.25rem; background: var(--surface-2);
}
.alert::before {
  content: ""; position: absolute; left: 1rem; top: 0.95rem; width: 1.2rem; height: 1.2rem; background: currentColor;
  -webkit-mask: url("icons/info.svg") center / contain no-repeat; mask: url("icons/info.svg") center / contain no-repeat;
  color: var(--cyan);
}
.alert p { color: var(--text-soft); margin-top: 0.15rem; }
.alert.ok { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.07); }
.alert.ok::before { color: var(--ok); -webkit-mask-image: url("icons/check-circle.svg"); mask-image: url("icons/check-circle.svg"); }
.alert.error { border-color: rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.07); }
.alert.error::before { color: var(--bad); -webkit-mask-image: url("icons/x-circle.svg"); mask-image: url("icons/x-circle.svg"); }
.alert.warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); }
.alert.warn::before { color: var(--warn); -webkit-mask-image: url("icons/alert.svg"); mask-image: url("icons/alert.svg"); }
.alert.info { border-color: rgba(46, 230, 246, 0.3); background: rgba(46, 230, 246, 0.05); }
.alert details { margin-top: 0.4rem; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field > label, .label { font-weight: 600; font-size: 0.87rem; color: var(--text); }
.hint { font-size: 0.8rem; color: var(--text-mute); line-height: 1.45; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
input[type=text], input[type=number], input[type=url], input[type=datetime-local], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #0b0813; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 0.52rem 0.72rem; min-height: 40px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
input[type=file] { padding: 0.45rem; }
input[type=file]::file-selector-button { font: 600 0.82rem var(--sans); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0.3rem 0.7rem; margin-right: 0.7rem; cursor: pointer; }
input[type=number], input[type=datetime-local] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: #8b81a8; }
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: var(--mono); font-size: 0.86rem; min-height: 460px; tab-size: 4; white-space: pre; }
select[multiple] { min-height: 128px; padding: 0.3rem; }
select[multiple] option { padding: 0.28rem 0.45rem; border-radius: 4px; }
select[multiple] option:checked { background: rgba(139, 92, 246, 0.35) linear-gradient(0deg, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.35)); color: #fff; }
input:hover, select:hover, textarea:hover { border-color: #5d4884; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 246, 0.18); border-radius: var(--radius-sm); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; }
input[type=color] { width: 44px; height: 40px; padding: 3px; background: #0b0813; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; }
.color-field { display: flex; gap: 0.5rem; align-items: center; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex: none; }
/* Abschnitte im Formular: Überschrift + Trennlinie statt Kasten im Kasten */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > legend { float: left; width: 100%; padding: 0; margin: 0 0 0.9rem; font: 600 0.74rem/1.2 var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--violet-strong); }
fieldset > legend + * { clear: both; }
fieldset > * + * { margin-top: 1rem; }
fieldset + fieldset, .form > h2 + fieldset { border-top: 1px solid var(--line-soft); padding-top: 1.3rem; }
.form > h2 + fieldset { border-top: 0; padding-top: 0; }
fieldset:disabled { opacity: 0.85; }
.actions { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.form > .actions { padding-top: 0.4rem; border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }
.inline-form { display: inline; }
.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 1.2rem 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; font: 600 0.88rem var(--sans);
  padding: 0.55rem 1.05rem; min-height: 40px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-strong); background: var(--surface-3); color: var(--text);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn .i { width: 1.05rem; height: 1.05rem; }
.btn:hover { border-color: var(--violet-strong); text-decoration: none; background: #2b1f3e; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #7c3aed; border-color: #9b6cf7; color: #fff; }
.btn.primary:hover { background: #8b4cf6; }
.btn.accent { background: #e0158c; border-color: #ff6cc6; color: #fff; }
.btn.accent:hover { background: #f0259b; }
.btn.danger { background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.5); color: #fecdd3; }
.btn.danger:hover { background: rgba(251, 113, 133, 0.18); border-color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn.small { padding: 0.3rem 0.65rem; min-height: 32px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-discord { background: #5865f2; border-color: #7983f5; color: #fff; font-size: 1rem; padding: 0.75rem 1.4rem; }
.btn-discord:hover { background: #4752c4; border-color: #7983f5; }

/* Modul-Schalter */
.toggle-form { display: flex; align-items: center; gap: 0.75rem; }
.switch { position: relative; width: 50px; height: 28px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-3); cursor: pointer; padding: 0; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-mute); transition: transform 0.22s var(--ease), background-color 0.2s; }
.switch[aria-checked="true"] { background: rgba(52, 211, 153, 0.2); border-color: rgba(52, 211, 153, 0.6); }
.switch[aria-checked="true"]::after { transform: translateX(22px); background: var(--ok); }
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 7, 15, 0.5); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 600 0.7rem/1.2 var(--display); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-mute); padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 0.15s var(--ease); }
tbody tr:hover { background: rgba(139, 92, 246, 0.05); }
td.actions-cell { white-space: nowrap; text-align: right; }
td.actions-cell > * + * { margin-left: 0.35rem; }
td .sub { display: block; font-size: 0.8rem; color: var(--text-mute); margin-top: 0.15rem; }
.empty { padding: 1.6rem; text-align: center; color: var(--text-mute); }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-table th abbr { text-decoration: none; cursor: help; }
.role-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.role-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Embed-Vorschau (Discord-ähnlich) ---------- */
.discord { background: #313338; border-radius: var(--radius); padding: 1rem; color: #dbdee1; font: 15px/1.375 "gg sans", "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
.discord .msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 1rem; }
.discord .msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--magenta)); display: grid; place-items: center; color: #fff; font-weight: 700; }
.discord .msg-head { display: flex; gap: 0.4rem; align-items: baseline; }
.discord .msg-author { color: #f2f3f5; font-weight: 600; }
.discord .bot-tag { background: #5865f2; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 0 4px; border-radius: 3px; }
.discord .msg-time { color: #949ba4; font-size: 0.72rem; }
.discord .msg-content { margin: 0.15rem 0 0.25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; max-width: 520px; background: #2b2d31; border: 1px solid #26282c; border-left: 4px solid var(--embed-color, #8b5cf6); border-radius: 4px; padding: 0.6rem 1rem 1rem 0.75rem; margin-top: 0.2rem; }
.embed-body { min-width: 0; }
.embed-title { color: #fff; font-weight: 600; margin: 0.4rem 0 0.25rem; }
.embed-title a { color: #00a8fc; }
.embed-desc { font-size: 0.875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.embed-field { grid-column: 1 / -1; font-size: 0.875rem; }
.embed-field.inline { grid-column: auto; }
.embed-field b { display: block; color: #f2f3f5; font-size: 0.8rem; margin-bottom: 2px; }
.embed-field div { white-space: pre-wrap; }
.embed-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; margin-top: 0.5rem; }
.embed-image { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; margin-top: 0.75rem; background: #232428; color: #949ba4; font-size: 0.8rem; }
.embed-footer { grid-column: 1 / -1; font-size: 0.75rem; color: #b5bac1; margin-top: 0.5rem; }
.mention { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.discord-buttons { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.discord-btn { background: #5865f2; color: #fff; border-radius: 3px; padding: 0.3rem 1rem; font-size: 0.875rem; font-weight: 500; }
.discord-btn.link { background: #4e5058; }
.discord-btn.green { background: #248046; }
.preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }

/* ---------- Diverses ---------- */
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.log { font: 0.8rem/1.55 var(--mono); background: #06040b; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; max-height: 560px; overflow: auto; }
.log div { white-space: pre-wrap; overflow-wrap: anywhere; }
.log .lvl-ERROR { color: var(--bad); }
.log .lvl-WARNING { color: var(--warn); }
.log .ts { color: var(--text-mute); }
pre.diff { font: 0.8rem/1.5 var(--mono); background: #06040b; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; overflow: auto; max-height: 520px; margin: 0.6rem 0 1.2rem; }
pre.diff .add { color: var(--ok); }
pre.diff .del { color: var(--bad); }
pre.diff .hunk { color: var(--cyan); }
.inline-stats { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-size: 0.84rem; color: var(--text-mute); }
.inline-stats b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.breadcrumbs { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 0.85rem; }
.breadcrumbs span { color: var(--text-mute); }
.file-name { display: inline-flex; align-items: center; gap: 0.55rem; }
.file-name .i { color: var(--text-mute); }
.file-name .i.dir { color: var(--violet-strong); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.2rem; font-size: 0.88rem; margin: 0; }
.kv dt { color: var(--text-mute); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(460px, 100%); text-align: center; padding: 2.4rem 2.2rem; display: grid; gap: 1rem; justify-items: center; }
.login-card .brand-mark { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }
.login-card .soft { max-width: 38ch; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.server-card { display: flex; gap: 0.9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); box-shadow: var(--shadow); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.server-card:hover { border-color: var(--magenta); text-decoration: none; transform: translateY(-2px); }
.server-card .guild-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 1.1rem; }
.server-card b { font-weight: 600; }
.server-card .i { margin-left: auto; color: var(--text-mute); }
.demo-banner { display: flex; justify-content: center; align-items: center; gap: 0.5rem; background: rgba(46, 230, 246, 0.07); border-bottom: 1px solid rgba(46, 230, 246, 0.25); padding: 0.5rem 1rem; text-align: center; font-size: 0.85rem; color: var(--text-soft); }
.demo-banner .i { color: var(--cyan); }
details summary { cursor: pointer; color: var(--text-soft); }
.meter { height: 6px; background: var(--surface-3); border-radius: 6px; margin-top: 0.45rem; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.check-list { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.6rem; }

@media (max-width: 1100px) {
  .grid.split { grid-template-columns: minmax(0, 1fr); }
  .card.sticky { position: static; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 0.75rem; gap: 0.6rem; }
  .nav { flex-direction: row; overflow-x: auto; gap: 0.3rem; padding-bottom: 0.3rem; }
  .nav a { white-space: nowrap; flex: none; padding: 0.42rem 0.7rem; border: 1px solid var(--line); }
  .nav-section { display: none; }
  .user-box { margin-top: 0; padding: 0.5rem 0 0; }
  .main { padding: 1.2rem 1rem 3rem; }
  h1 { font-size: 1.5rem; }
  .grid.cols-2, .row, .row.three { grid-template-columns: 1fr; }
  .statusbar > div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .statusbar > div:first-child { border-top: 0; }
}
.storage { min-width: 240px; display: grid; gap: 0.25rem; }
.field-end { align-self: end; padding-bottom: 0.55rem; }
.card > p:not(:last-child) { margin-bottom: 1rem; }
.card > form.form + * , .statusbar + .grid { margin-top: 1.25rem; }
.form > .btn, .form > button { justify-self: start; }
.btn.twitch { background: #9146ff; border-color: #b18aff; color: #fff; }
.btn.twitch:hover { background: #7c2ff0; }
