
    :root {
      --bg: #0e0f12;
      --panel: #151821;
      --panel-2: #1b1f2b;
      --text: #e9edf1;
      --muted: #a7b0bf;
      --line: #252a36;
      --focus: #6aa8ff;
      --success: #22c55e;
      --danger: #ef4444;
      --warn: #f59e0b;
      --chip: #23293a;
      --btn: #2a3145;
      --btn-hover: #343c55;
      --shadow: 0 8px 30px rgba(0,0,0,.35);
      color-scheme: dark;
    }

    * { box-sizing: border-box; }

    html, body {
      height: 100%;
      background:
        radial-gradient(1200px 800px at 20% -20%, #1a2031 0%, #0e0f12 60%) no-repeat,
        linear-gradient(180deg, #0f1117 0%, #0e0f12 100%);
      margin: 0;
      color: var(--text);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

    .page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px;
    }

    .page__header { margin-bottom: 18px; }
    .page__title {
      margin: 0 0 6px;
      font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
      letter-spacing: .2px;
    }
    .page__subtitle { margin: 0; color: var(--muted); font-size: .95rem; }

    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }

    @media (min-width: 900px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
    @media (min-width: 640px) and (max-width: 899px) { .grid { grid-template-columns: 1fr 1fr; } }

    .card {
      background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 16px;
      box-shadow: var(--shadow);
      min-height: 180px;
    }

    .card__title { margin: 0 0 12px; font-size: 1.05rem; }

    .kv {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 10px;
      padding: 8px 0;
      border-bottom: 1px dashed var(--line);
    }
    .kv:last-of-type { border-bottom: 0; }

    .kv__label { color: var(--muted); }
    .kv__value { font-variant-numeric: tabular-nums; }

    .badge {
      display: inline-block;
      padding: 4px 8px;
      font-size: .85rem;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #1f2432;
    }
    .badge--online   { background: rgba(34,197,94,.12);  color: #86efac; border-color: rgba(34,197,94,.25); }
    .badge--offline  { background: rgba(239,68,68,.12);  color: #fca5a5; border-color: rgba(239,68,68,.25); }
    .badge--unknown  { background: rgba(245,158,11,.12); color: #fbc981; border-color: rgba(245,158,11,.25); }

    .sep {
      border: none;
      border-top: 1px solid var(--line);
      margin: 12px 0;
    }

    .meta summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
    .list { margin: 0; padding-left: 18px; }

    .form { display: grid; gap: 14px; }
    .field { display: grid; gap: 6px; }
    .label { font-size: .95rem; }

    .input, .select, .button {
      appearance: none;
      font: inherit;
      color: var(--text);
    }

    .input, .select {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #141826;
      outline: none;
      transition: box-shadow .15s ease, border-color .15s ease, transform .02s ease;
    }
    .input:focus, .select:focus {
      border-color: rgba(106,168,255,.6);
      box-shadow: 0 0 0 4px rgba(106,168,255,.15);
    }

    .hint { color: var(--muted); font-size: .85rem; }

    .button {
      justify-self: start;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, var(--btn) 0%, var(--btn-hover) 100%);
      cursor: pointer;
      transition: transform .03s ease-in-out, filter .15s ease;
    }
    .button:hover { filter: brightness(1.08); }
    .button:active { transform: translateY(1px); }
    .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

    .footnote { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }

    .group { margin-bottom: 14px; }
    .group__title {
      margin: 0 0 8px;
      font-size: .95rem;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
    }

    .dot {
      display: inline-block;
      width: 10px; height: 10px;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: #2a3042;
    }
    .dot--online { background: rgba(34,197,94,.85); }
    .dot--whitelisted { background: rgba(59,130,246,.85); }
    .dot--known { background: rgba(245,158,11,.9); }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .chip {
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--chip);
      font-size: .92rem;
      white-space: nowrap;
    }

    /* Commands Section */
    .commands-list {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }
    .commands-list li {
      padding: 6px 0;
      border-bottom: 1px dashed var(--line);
      font-family: monospace;
      font-size: 0.95rem;
    }
    .commands-list li:last-child {
      border-bottom: none;
    }

    .rules-list {
      margin-top: 8px;
      padding-left: 18px;
    }

    .discord-link {
      display: inline-block;
      margin-top: 12px;
      padding: 8px 12px;
      background: #5865F2;
      color: #fff;
      text-decoration: none;
      border-radius: 8px;
      font-size: 0.95rem;
      transition: background 0.2s;
    }
    .discord-link:hover {
      background: #4752c4;
    }

    @media (prefers-reduced-motion: reduce) {
      .button, .input, .select, .discord-link { transition: none; }
    }