/* ============================================================
   UndergroundBot Dashboard — "Underground" Look
   (dunkel, violett, leichtes Leuchten wie das Logo)
   ============================================================ */
:root {
  color-scheme: dark light;

  --bg: #0b0912;
  --bg-soft: #13101d;
  --card: #161221;
  --card-2: #1d1830;
  --sidebar: #100d1a;
  --line: #2a2340;
  --line-soft: #221c33;

  --ink: #efecfa;
  --ink-2: #b7afd4;
  --ink-3: #8279a6;

  --brand: #8b5cff;
  --brand-2: #b98bff;
  --brand-ink: #ffffff;
  --brand-tint: #201a38;
  --glow: 0 0 22px -2px rgba(139, 92, 255, .55);
  --glow-soft: 0 0 40px -8px rgba(139, 92, 255, .45);

  --ok: #4ade80;   --ok-tint: #14261c;
  --warn: #fbbf24; --warn-tint: #2b2412;
  --bad: #fb7185;  --bad-tint: #2c1620;
  --info: #60a5fa; --info-tint: #141f31;
  --muted-tone: #9b93c0; --muted-tint: #1c1830;

  --r: 18px;
  --r-md: 13px;
  --r-sm: 9px;
  --shadow: 0 2px 6px rgba(0,0,0,.5), 0 22px 48px -22px rgba(20,8,50,.7);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --ring: 0 0 0 4px color-mix(in srgb, var(--brand) 30%, transparent);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sidebar-w: 250px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f1fb;
    --bg-soft: #ece7f8;
    --card: #ffffff;
    --card-2: #f6f3fd;
    --sidebar: #ffffff;
    --line: #e4dcf3;
    --line-soft: #ede7f8;
    --ink: #1c1530;
    --ink-2: #4d4568;
    --ink-3: #8a80a6;
    --brand: #7c3aed;
    --brand-2: #9d5cff;
    --brand-tint: #f0e9ff;
    --glow: 0 8px 20px -8px rgba(124, 58, 237, .45);
    --glow-soft: 0 10px 30px -12px rgba(124, 58, 237, .3);
    --ok-tint: #e7f6ec; --warn-tint: #fdf3e0; --bad-tint: #fce9ee;
    --info-tint: #e6f0fe; --muted-tint: #efecf6;
    --shadow: 0 2px 6px rgba(30,20,60,.07), 0 22px 48px -24px rgba(30,20,60,.22);
    --shadow-sm: 0 1px 3px rgba(30,20,60,.08);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 88% -12%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    radial-gradient(900px 520px at 6% 112%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Sternenhimmel / Sparkles ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1px 1px at 20% 24%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 68% 10%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.6px 1.6px at 86% 34%, rgba(210,190,255,.65), transparent),
    radial-gradient(1px 1px at 40% 58%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 12% 74%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 84%, rgba(210,190,255,.5), transparent),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 32% 14%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 92% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 50% 40%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.4px 1.4px at 8% 46%, rgba(210,190,255,.5), transparent),
    radial-gradient(1px 1px at 74% 52%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 26% 90%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 60% 22%, rgba(255,255,255,.3), transparent);
}
.sky::before,
.sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .5;
}
.sky::before {
  width: 260px; height: 260px; top: -80px; right: -40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
.sky::after {
  width: 200px; height: 200px; bottom: -60px; left: -30px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 45%, transparent), transparent);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.spark {
  position: absolute;
  color: #d9c9ff;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 8px rgba(139,92,255,.95), 0 0 18px rgba(139,92,255,.6);
  animation: twinkle 3.2s ease-in-out infinite;
}
.s1 { top: 11%; left: 7%;  font-size: 17px; animation-delay: 0s; }
.s2 { top: 20%; right: 11%; animation-delay: 1.3s; }
.s3 { top: 58%; left: 5%;  font-size: 12px; animation-delay: 2.4s; }
.s4 { bottom: 14%; right: 8%; font-size: 16px; animation-delay: .7s; }
.s5 { top: 44%; right: 20%; font-size: 19px; animation-delay: 1.9s; }
.s6 { bottom: 28%; left: 15%; animation-delay: 3s; }
.s7 { top: 33%; left: 30%; font-size: 11px; animation-delay: 2.1s; }
.s8 { bottom: 40%; right: 33%; font-size: 13px; animation-delay: .4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.5) rotate(0deg); }
  50%      { opacity: .9; transform: scale(1) rotate(45deg); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, 40px); }
}

@media (prefers-color-scheme: light) {
  .sky { opacity: .4; }
  .spark { color: var(--brand); text-shadow: 0 0 6px rgba(124,58,237,.5); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; opacity: .5; }
  .sky::before, .sky::after { animation: none; }
}

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }

p { margin: 0 0 .6rem; }
.muted { color: var(--ink-3); }

code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: .1em .42em;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn, .btn-sm {
  --bbg: var(--card-2);
  --bfg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bbg);
  color: var(--bfg);
  font: inherit;
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: transform .06s, filter .15s, box-shadow .15s;
}
.btn:hover, .btn-sm:hover { text-decoration: none; filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; border-radius: 8px; }
.btn-primary {
  --bbg: linear-gradient(135deg, var(--brand), var(--brand-2));
  --bfg: var(--brand-ink);
  border-color: transparent;
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: var(--glow-soft), var(--glow); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.7rem;
  background: color-mix(in srgb, var(--sidebar) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; opacity: .8; }
.brand-logo { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; box-shadow: var(--glow); }
.user { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-2); }
.user img { width: 27px; height: 27px; border-radius: 50%; }

.container { max-width: 780px; margin: 0 auto; padding: 2.8rem 1.5rem 5rem; }
.foot { text-align: center; color: var(--ink-3); font-size: .78rem; padding: 1.5rem; letter-spacing: .04em; }

/* ---------- Login ---------- */
.hero {
  max-width: 430px;
  margin: 4rem auto 0;
  padding: 3rem 2.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 20% auto;
  height: 220px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 35%, transparent), transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero .logo {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  margin: 0 auto 1.4rem;
  font-size: 2.2rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--glow-soft), var(--glow);
}
.hero .logo img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { font-size: 1.6rem; }
.hero p { color: var(--ink-2); margin: .8rem 0 1.8rem; }

/* ---------- Server picker ---------- */
.page-title { margin-bottom: .3rem; }
.page-sub { color: var(--ink-3); margin: 0 0 2rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.1rem; }
.card-server {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.7rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  text-align: center;
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.card-server:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--brand); box-shadow: var(--glow-soft);
}
.card-server img, .card-server .avatar { width: 62px; height: 62px; border-radius: 20px; }
.card-server span { font-weight: 650; font-size: .92rem; word-break: break-word; }
.card-server small { font-size: .74rem; color: var(--ink-3); }
.dim { opacity: .6; }
.dim:hover { opacity: 1; }

.avatar {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 1.5rem;
  box-shadow: var(--glow);
}

/* ============================================================
   Sidebar + Inhalt
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky; top: 0;
  align-self: flex-start;
  height: 100vh;
  display: flex; flex-direction: column;
  gap: .2rem;
  padding: 1.1rem;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
}
.s-brand {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .5rem .7rem;
  font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
  color: var(--ink);
}
.s-brand:hover { text-decoration: none; opacity: .8; }
.s-brand img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; box-shadow: var(--glow); }

.s-server {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem;
  border-radius: var(--r-md);
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}
.s-server:hover { text-decoration: none; border-color: var(--line); }
.s-server img, .s-server .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; }
.s-server b { font-size: .93rem; font-weight: 700; display: block; line-height: 1.2;
  max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-server small { color: var(--ink-3); font-size: .74rem; }

.s-back { font-size: .8rem; color: var(--ink-3); padding: .1rem .6rem .7rem; }
.s-back:hover { color: var(--ink-2); text-decoration: none; }

.s-nav { display: flex; flex-direction: column; gap: 2px; }
.s-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem .7rem;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .92rem; font-weight: 560;
}
.s-nav a .ic { font-size: 1.02rem; width: 1.3rem; text-align: center; }
.s-nav a:hover { text-decoration: none; color: var(--ink); background: var(--bg-soft); }
.s-nav a.active {
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--glow);
}

.s-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: .55rem;
  padding-top: .8rem; border-top: 1px solid var(--line-soft);
  font-size: .82rem; color: var(--ink-2);
}
.s-foot img { width: 28px; height: 28px; border-radius: 50%; }
.s-foot .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { flex: 1; min-width: 0; }
.content .inner { max-width: 720px; margin: 0 auto; padding: 2.6rem 1.6rem 5rem; }

/* ---------- Page head ---------- */
.phead { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.7rem; }
.phead .badge {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 30%, var(--card)), var(--card));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--glow-soft);
}
.phead h1 { font-size: 1.4rem; }
.phead p { margin: .2rem 0 0; color: var(--ink-3); font-size: .92rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 1.7rem;
  margin-bottom: 1.2rem;
}
.card > h3 { margin-bottom: .3rem; }
.card > h3 + .muted { margin-top: 0; margin-bottom: 1.1rem; font-size: .9rem; }

.hint {
  display: flex; gap: .7rem;
  padding: .85rem 1rem;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: var(--r-md);
  font-size: .88rem;
  color: var(--ink-2);
  margin-bottom: 1.3rem;
}
.hint::before { content: "💡"; }

/* ---------- Overview status cards ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .14s, box-shadow .14s;
}
.stat:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--glow-soft); }
.stat .top { display: flex; align-items: center; gap: .55rem; }
.stat .top .ic { font-size: 1.2rem; }
.stat .top b { font-size: .95rem; font-weight: 680; }
.stat p { margin: 0; font-size: .85rem; color: var(--ink-3); flex: 1; }
.stat .row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .76rem; font-weight: 700;
}
.pill.on  { background: var(--ok-tint);  color: var(--ok); }
.pill.off { background: var(--muted-tint); color: var(--muted-tone); }
.pill.on::before  { content: "●"; font-size: .6rem; }
.pill.off::before { content: "○"; font-size: .6rem; }

/* ---------- Mod-Log feed ---------- */
.summary-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .8rem;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
}
.chip b { font-weight: 800; }

.feed { display: flex; flex-direction: column; }
.feed-item {
  display: flex; gap: .9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
}
.feed-item:first-child { border-top: 0; }
.feed-item .evt {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 11px;
  font-size: 1.05rem;
}
.evt.bad   { background: var(--bad-tint); }
.evt.warn  { background: var(--warn-tint); }
.evt.ok    { background: var(--ok-tint); }
.evt.info  { background: var(--info-tint); }
.evt.muted { background: var(--muted-tint); }

.feed-item .body { flex: 1; min-width: 0; }
.feed-item .line { font-size: .92rem; }
.feed-item .line b { font-weight: 700; }
.feed-item .reason { font-size: .85rem; color: var(--ink-3); margin-top: .15rem; }
.feed-item .when { font-size: .76rem; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty .big { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* ---------- Forms ---------- */
form label {
  display: block;
  margin: 0 0 1.2rem;
  font-size: .89rem;
  font-weight: 620;
  color: var(--ink-2);
}
form label > .muted { font-weight: 400; }
form .field-note { display: block; margin-top: .35rem; font-size: .82rem; color: var(--ink-3); font-weight: 400; }

input[type=text], input[type=number], input[type=password], select, textarea {
  width: 100%;
  margin-top: .5rem;
  padding: .66rem .78rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit; font-size: .93rem;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238279a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center;
  padding-right: 2.1rem;
}
textarea { resize: vertical; font-family: var(--mono); font-size: .85rem; line-height: 1.55; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.inline { display: flex; gap: 1rem; }
.inline > label { flex: 1; }

/* toggle rows */
form label.check {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: .55rem;
  font-weight: 550; color: var(--ink);
  cursor: pointer;
}
form label.check .sub { font-weight: 400; color: var(--ink-3); font-size: .84rem; }
form label.check.big {
  padding: 1.1rem 1.2rem;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
form label.check > input[type=checkbox] {
  appearance: none; position: relative;
  width: 40px; height: 23px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
}
form label.check > input[type=checkbox]::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4);
  transition: transform .16s;
}
form label.check > input[type=checkbox]:checked {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--glow);
}
form label.check > input[type=checkbox]:checked::after { transform: translateX(17px); }
form label.check > input[type=checkbox]:focus-visible { box-shadow: var(--ring); outline: none; }

.pickgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: .1rem 1rem;
  margin: .6rem 0 1.2rem;
  padding: 1rem 1.1rem;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.pickgrid label.check { margin-bottom: .3rem; font-size: .88rem; font-weight: 500; }
.pickgrid label.check > input[type=checkbox] {
  appearance: none; width: 18px; height: 18px; border-radius: 6px;
  background: var(--bg-soft); border: 1.5px solid var(--line); position: relative;
}
.pickgrid label.check > input[type=checkbox]:checked { background: var(--brand); border-color: var(--brand); }
.pickgrid label.check > input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* command permissions rows */
.cmd-row { padding: .9rem 0; border-top: 1px solid var(--line-soft); }
.cmd-row:first-of-type { border-top: 0; padding-top: .2rem; }
.cmd-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.cmd-head code { font-size: .92rem; font-weight: 700; }
.cmd-mode { width: auto; margin: 0; flex: 1; min-width: 200px; }
.cmd-row .pickgrid { margin: 0; }

.sect { margin: 1.9rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sect:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.save-bar { margin-top: 1.6rem; }
.save-bar .btn-primary { min-width: 150px; }

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1.1rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.4rem;
  font-size: .9rem; font-weight: 550;
  border: 1px solid var(--line);
  background: var(--card);
}
.flash::before { font-weight: 900; }
.flash.ok { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.flash.ok::before { content: "✓"; color: var(--ok); }
.flash.error { background: var(--bad-tint); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.flash.error::before { content: "!"; color: var(--bad); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: .4rem;
    overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line-soft);
    padding: .55rem .8rem;
  }
  .s-brand { display: none; }
  .s-server small, .s-back { display: none; }
  .s-server { flex-shrink: 0; }
  .s-nav { flex-direction: row; flex: 1; }
  .s-nav a span { display: none; }
  .s-nav a .ic { font-size: 1.2rem; }
  .s-foot { margin: 0; border: 0; padding: 0; flex-shrink: 0; }
  .s-foot .nm { display: none; }
  .content .inner { padding-top: 1.7rem; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
  .inline { flex-direction: column; }
}
