/* 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=password], 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; }
.nav a.locked { color: var(--text-mute); }
.nav a .lock { margin-left: auto; width: 0.95rem; height: 0.95rem; color: var(--text-mute); }
.setup-steps { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--text-soft); display: grid; gap: 0.25rem; }
.alert .actions { margin-top: 0.75rem; }

/* ---------- Anleitung (gerendertes Markdown) ---------- */
.guide-layout { display: grid; grid-template-columns: minmax(0, 60rem) 15rem; gap: 1.5rem; align-items: start; }
.guide-layout .toc { position: sticky; top: 1rem; font-size: 0.88rem; }
.guide-layout .toc ul { list-style: none; padding: 0; margin: 0; }
.guide-layout .toc ul ul { padding-left: 0.85rem; }
.guide-layout .toc a { display: block; padding: 0.2rem 0; color: var(--text-soft); }
.guide-layout .toc a:hover { color: var(--text); }
.prose > * { max-width: 76ch; }
.prose > pre, .prose > table { max-width: 92ch; }
.prose h1 { display: none; }
.prose h2 { font: 600 1.25rem/1.3 var(--display); margin: 2.2rem 0 0.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font: 600 1.02rem/1.35 var(--display); margin: 1.5rem 0 0.5rem; color: var(--violet-strong); }
.prose p, .prose ul, .prose ol { margin: 0 0 0.85rem; color: var(--text-soft); }
.prose li { margin: 0.2rem 0; }
.prose li > p { margin: 0; }
.prose strong { color: var(--text); }
.prose pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  overflow-x: auto; margin: 0 0 1rem; font-size: 0.85rem; line-height: 1.5; }
.prose pre code { color: var(--text); font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--text-mute); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.prose td code { white-space: nowrap; }
.prose blockquote { margin: 0 0 1rem; padding: 0.6rem 1rem; border-left: 3px solid var(--cyan); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose blockquote p { margin: 0; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: 1fr; } .guide-layout .toc { position: static; order: -1; } }

/* ---------- Bildfeld ---------- */
.image-field-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.image-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.image-thumb.empty { display: grid; place-items: center; color: var(--text-mute); }
.image-thumb.empty .i { width: 22px; height: 22px; }
.image-field-inputs { display: grid; gap: 0.5rem; }
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.85rem; }
.weekday-picks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

[hidden] { display: none !important; }

/* ---------- Paket 2: Spieleliste, Discord-Elemente ---------- */
.edit-table td { padding: 0.35rem 0.4rem; }
.edit-table input, .edit-table select { width: 100%; min-width: 0; }
.edit-table .w-xs { width: 4.5rem; }
.discord-btn.red { background: #da373c; }
.discord-buttons.wrap { flex-wrap: wrap; gap: 0.4rem; }
.discord-select { margin: 0.5rem 0 0 calc(40px + 0.9rem); display: flex; justify-content: space-between; align-items: center;
  max-width: 26rem; padding: 0.55rem 0.8rem; border-radius: 4px; background: #1e1f22; border: 1px solid #111214; color: #b5bac1; font-size: 0.9rem; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; color: var(--text-soft); }

/* ---------- Paket 3: Rangliste, Crew ---------- */
.edit-table .w-sm { width: 7rem; }
.btn.icon-only { padding-left: 0.55rem; padding-right: 0.55rem; }
.btn.icon-only .i { margin: 0; }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.leaderboard li { display: grid; grid-template-columns: 2rem 32px minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.45rem 0.25rem;
  border-bottom: 1px solid var(--line-soft); }
.leaderboard li:nth-child(-n+3) .lb-rank { color: var(--magenta); font-weight: 700; }
.lb-rank { text-align: right; color: var(--text-mute); font-family: var(--display); }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); object-fit: cover; display: block; }
.lb-name { min-width: 0; display: grid; gap: 0.3rem; }
.lb-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.lb-level { text-align: right; font-family: var(--display); font-weight: 600; }
.crew-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.crew-item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.55rem 0.4rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface-2); }
.crew-pos { color: var(--violet-strong); font-family: var(--display); font-weight: 700; text-align: center; }
.crew-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.crew-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 1rem; }
.lb-level .sub, .crew-main .sub { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.78rem; color: var(--text-mute); }

/* ---------- Discord-Editor ---------- */
.md-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); position: relative; }
.md-editor:focus-within { border-color: var(--violet); }
.md-editor textarea { border: 0; border-radius: 0; background: transparent; box-shadow: none; width: 100%; resize: vertical; min-height: 6rem; }
.md-editor textarea:focus { box-shadow: none; outline: none; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 0.15rem; align-items: center; padding: 0.3rem; border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.md-tool { min-width: 2rem; height: 2rem; padding: 0 0.45rem; border: 0; border-radius: 5px; background: transparent; color: var(--text-soft);
  font: 600 0.92rem/1 var(--sans); cursor: pointer; display: inline-grid; place-items: center; }
.md-tool:hover, .md-tool[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.md-tool:focus-visible { box-shadow: var(--focus); outline: none; }
.md-tool .i { width: 16px; height: 16px; }
.md-sep { width: 1px; height: 1.2rem; background: var(--line); margin: 0 0.25rem; }
.md-num, .md-mono { font-family: var(--mono); font-size: 0.82rem; }
.md-q { font-size: 1.1rem; }
.md-foot { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 0.3rem 0.6rem;
  border-top: 1px solid var(--line-soft); font-size: 0.78rem; }
.md-foot .hint { flex: 1; }
.md-count { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.md-count.warn { color: var(--warn); }
.md-toggle { border: 0; background: none; color: var(--violet-strong); font: inherit; cursor: pointer; padding: 0.15rem 0; }
.md-toggle:hover { color: var(--text); }
.md-preview-wrap { border-top: 1px solid var(--line-soft); background: #313338; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 0.6rem 0.8rem 0.8rem; }
.md-preview-label { font: 600 0.68rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #949ba4; margin-bottom: 0.45rem; }
.md-preview { color: #dbdee1; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; }
.md-inline-field { display: flex; gap: 0.3rem; align-items: center; position: relative; }
.md-inline-field input { flex: 1; min-width: 0; }
.md-inline-field .md-tool { border: 1px solid var(--line); height: 2.5rem; background: var(--bg); }

/* gemeinsame Discord-Formatierung (Editor-Vorschau und Embed-Vorschau) */
.md-h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0.3rem 0; color: #f2f3f5; }
.md-h2 { font-size: 1.25rem; font-weight: 700; margin: 0.25rem 0; color: #f2f3f5; }
.md-h3 { font-size: 1.05rem; font-weight: 700; margin: 0.2rem 0; color: #f2f3f5; }
.md-sub { font-size: 0.78rem; color: #949ba4; }
.md-gap { height: 0.6em; }
.md-quote { margin: 0.15rem 0; padding: 0 0 0 0.75rem; border-left: 4px solid #4e5058; }
.md-list { margin: 0.15rem 0; padding-left: 1.4rem; }
.md-code { margin: 0.3rem 0; padding: 0.5rem 0.6rem; background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; font: 0.85rem/1.4 var(--mono); white-space: pre-wrap; color: #dbdee1; }
.md-inline-code, code.md-inline { background: #2b2d31; border-radius: 3px; padding: 0.05rem 0.25rem; font: 0.85em var(--mono); color: #dbdee1; }
.md-link { color: #00a8fc; }
.md-emoji { width: 1.375em; height: 1.375em; vertical-align: -0.3em; object-fit: contain; }
.md-mention, .md-time { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 0.15rem; font-weight: 500; }
.md-time { background: rgba(255, 255, 255, 0.06); color: #dbdee1; }
.md-var { background: rgba(255, 63, 180, 0.16); color: #ff9fd8; border: 1px dashed rgba(255, 63, 180, 0.45); border-radius: 3px; padding: 0 0.2rem; }
.md-spoiler { background: #1e1f22; color: transparent; border-radius: 3px; cursor: pointer; padding: 0 0.1rem; }
.md-spoiler.open, .embed .md-spoiler:hover { background: rgba(255, 255, 255, 0.1); color: inherit; }

/* Popups */
.md-pop { position: absolute; z-index: 30; width: min(320px, 100%); max-height: 360px; overflow: auto; display: grid; gap: 0.45rem; padding: 0.6rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); }
.md-pop input, .md-pop select { width: 100%; }
.md-pop-label { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); }
.md-emoji-pop { width: min(352px, 100%); max-height: 400px; grid-template-rows: auto auto 1fr; overflow: hidden; }
.md-emoji-tabs { display: flex; gap: 0.15rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.35rem; overflow-x: auto; }
.md-emoji-tabs button { border: 0; background: transparent; font-size: 1.15rem; width: 2.1rem; height: 2.1rem; border-radius: 6px; cursor: pointer; flex: none; }
.md-emoji-tabs button[aria-selected="true"], .md-emoji-tabs button:hover { background: var(--surface-3); }
.md-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.2rem, 1fr)); gap: 0.1rem; overflow-y: auto; max-height: 280px; padding-right: 0.2rem; }
.md-emoji { border: 0; background: transparent; font-size: 1.35rem; height: 2.2rem; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.md-emoji img { width: 1.6rem; height: 1.6rem; object-fit: contain; }
.md-emoji:hover, .md-emoji:focus-visible { background: var(--surface-3); outline: none; }
.md-list-pop { display: grid; gap: 0.1rem; }
.md-list-title { font: 600 0.68rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-strong); padding: 0.45rem 0.3rem 0.2rem; }
.md-list-item { display: flex; justify-content: space-between; gap: 0.6rem; text-align: left; border: 0; background: transparent; color: var(--text);
  padding: 0.4rem 0.45rem; border-radius: 6px; cursor: pointer; font: inherit; font-size: 0.9rem; }
.md-list-item .hint { font-size: 0.75rem; }
.md-list-item:hover, .md-list-item:focus-visible { background: var(--surface-3); outline: none; }
.update-actions { display: grid; gap: 0.9rem; align-content: start; }
pre.log { white-space: pre-wrap; max-height: 18rem; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem; font: 0.8rem/1.45 var(--mono); }
.inline-edit { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.inline-edit select { min-width: 9rem; max-width: 14rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }

/* Erfolge (Level-System) */
.ach-group { margin: 1.25rem 0 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.ach-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.ach { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding: 0.7rem 0.8rem;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.ach-secret { border-left: 2px solid var(--magenta); }
.ach-off { opacity: 0.45; }
.ach-emoji { font-size: 1.5rem; line-height: 1; text-align: center; padding-top: 0.1rem; }
.ach-body { display: grid; gap: 0.15rem; min-width: 0; }
.ach-tag { margin-left: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--magenta); }
.ach-desc { color: var(--text-soft); font-size: 0.88rem; }
.ach-meta { color: var(--text-mute); font-size: 0.8rem; }
.ach-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--violet); margin-top: 0.2rem; }

/* Server-Auslastung (Instanzseite) */
.range-switch { display: flex; gap: 0.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.2rem; }
.range-switch a { padding: 0.25rem 0.6rem; border-radius: 4px; color: var(--text-soft); text-decoration: none; font-size: 0.85rem; }
.range-switch a:hover { color: var(--text); background: var(--surface-3); }
.range-switch a[aria-current] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--violet); }
.metric-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.metric { margin: 0; padding: 1rem; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.metric figcaption { display: grid; gap: 0.1rem; margin-bottom: 0.75rem; }
.metric-title { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.metric-now { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--text); }
.metric-sub { font-size: 0.82rem; color: var(--text-soft); }
.chart { position: relative; height: 150px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-base { stroke: var(--line-strong); stroke-width: 1; }
.chart-area { fill: rgba(139, 92, 246, 0.16); }
.chart-line { fill: none; stroke: var(--violet-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-cross { stroke: var(--text-mute); stroke-width: 1; }
.chart-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--violet-strong);
  box-shadow: 0 0 0 2px var(--surface-2); pointer-events: none; }
.chart-ylabel { position: absolute; right: 0; transform: translateY(-120%); font-size: 0.72rem; color: var(--text-mute); pointer-events: none; }
.chart-tip { position: absolute; top: 0; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; pointer-events: none; z-index: 2;
  background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.3rem 0.55rem; font-size: 0.8rem; color: var(--text); }
.chart-tip b { font-family: var(--display); }
.chart-x { display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: 0.75rem; color: var(--text-mute); }
.kv-inline { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; }

/* Server-Auslastung kompakt (Server-Übersicht) */
.load-grid { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.load-item { display: grid; gap: 0.35rem; }
.load-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.load-head .metric-title { flex-basis: 100%; }
.load-now { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.load-pct { font-size: 0.9rem; color: var(--text-soft); font-weight: 500; }
.load-flag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--warn); }
.load-flag svg { width: 14px; height: 14px; }
.load-bad .load-flag { color: var(--bad); }
.load-warn .chart-line { stroke: var(--warn); }
.load-warn .chart-area { fill: rgba(251, 191, 36, 0.14); }
.load-bad .chart-line { stroke: var(--bad); }
.load-bad .chart-area { fill: rgba(251, 113, 133, 0.16); }
.chart.chart-compact { height: 52px; }
.chart-compact .chart-tip { font-size: 0.75rem; }
