/* ════════════════════════════════════════════════════════════════════════════
   Nexora · Oberfläche „Orbit“
   Leitbild: Der Bot ist der Kern, die Module kreisen als Punkte auf drei Bahnen um ihn.
   Aufbau dieser Datei:
     1 Grundlagen (Farben, Schrift, Basis)      6 Server-Seiten (Orbit, Module, Formulare)
     2 Bausteine (Knöpfe, Felder, Karten …)     7 App-Seiten, Konto, Premium
     3 Rückmeldungen (Toast, Dialog, Laden)     8 Startseite, Einrichtung, Einzelseiten
     4 Rahmen (Kopfzeile, Navigation)           9 Admin-Zentrale
     11 Architekt · Beispiel-Server (am Ende)
     5 Orbit                                   10 Öffentliche Textseiten · Bewegung
   Farben nur über die Variablen unten. Details: docs/DESIGN.md
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1 Grundlagen ─────────────────────────────────────────────────────────── */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Nacht (Standard). „.night“ erzwingt die Nachtfarben auch im hellen Design – für den Orbit, der immer im All spielt. */
:root, .night {
  --bg: #081622; --bg-2: #0a1a28; --deck: #0f2334; --deck-2: #173247; --well: #06111a;
  --line: #1e394e; --line-2: #2c4d67;
  --text: #e9f1f6; --muted: #93a9b9; --faint: #6c8497;
  --sun: #ffc53d; --sun-2: #ff9838; --on-sun: #231700; --sun-text: #ffd166;
  --sky: #5ab6ff; --rose: #ff86b6; --mint: #3fd9c8; --royal: #b8a1ff;
  --ok: #58d68d; --warn: #ffa24a; --err: #ff6b6b; --on-err: #2a0505;
  --focus: #ffc53d; --link: #ffd166; --scrim: rgba(3, 10, 16, .66);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --hue: var(--sun-text);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6f9; --bg-2: #ffffff; --deck: #ffffff; --deck-2: #eaeff4; --well: #f6f8fa;
  --line: #dbe3ea; --line-2: #c0cdd9;
  --text: #0d1c29; --muted: #50667a; --faint: #7d91a2;
  --sun: #ffc53d; --sun-2: #ff9838; --on-sun: #231700; --sun-text: #8a5200;
  --sky: #0f6fc0; --rose: #c2337a; --mint: #0a877c; --royal: #6547d6;
  --ok: #157f4c; --warn: #b25600; --err: #c9302c; --on-err: #ffffff;
  --focus: #0f6fc0; --link: #0f6fc0; --scrim: rgba(13, 28, 41, .42);
  --shadow: 0 24px 60px -28px rgba(13, 28, 41, .35);
  color-scheme: light;
}
:root {
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, ui-monospace, Menlo, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 18px; --r-xl: 26px;
  --bar: 60px; --tabs: 62px;
}
.night { color: var(--text); }
/* Bahnfarben: Schutz · Community · Wachstum & Werkzeuge · Kern */
.hue-guard { --hue: var(--sky); } .hue-crew { --hue: var(--rose); } .hue-tools { --hue: var(--mint); } .hue-core { --hue: var(--sun-text); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
body { min-height: 100vh; min-height: 100dvh; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; }
p { margin: 0 0 12px; }
img { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--sun) 45%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--sun); color: var(--on-sun) !important; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 40px; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .93em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.topgap { margin-top: 14px; }
.sp { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nowrap-row { flex-wrap: nowrap; }
.hidden-file { display: none; }
.clip { position: fixed; left: -9999px; }

/* Icons (eigenes Duotone-Set, icons.js) */
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.24em; margin-right: .42em; overflow: visible; }
.ic .st { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic .du { fill: currentColor; opacity: .2; stroke: none; }
.ic .fi { fill: currentColor; stroke: none; }
.btn .ic, .nav .ic, .pill .ic, .tag .ic, .pal-item .ic, .pop-item .ic, .tab .ic, .planet .ic, .orbit-planet .ic, .head-ic .ic, .state-ic .ic, .dlg-ic .ic, .toast .ic, .fe .ic, .box .ic, .ann .ic, .chip .ic { margin: 0; }
h2 > .ic:first-child, h3 > .ic:first-child { color: var(--hue); }

/* Zeichen und Schriftzug */
.mark { width: 28px; height: 28px; flex: none; display: block; overflow: visible; }
.mk-ring { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.mk-core { fill: var(--sun); }
.mk-sat { fill: var(--rose); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand-word { font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.brand.big .mark { width: 44px; height: 44px; }
.brand.big .brand-word { font-size: 36px; }

/* Start: kleiner Orbit als Ladezeichen */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-orbit { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: inline-block; animation: turn 1.6s linear infinite; }
.boot-orbit::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--sun); }
.boot-orbit i { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--rose); }

/* ── 2 Bausteine ──────────────────────────────────────────────────────────── */
/* Knöpfe: Pillen. Gelb = die eine Hauptaktion einer Ansicht. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .14s, border-color .14s, translate .1s, box-shadow .14s; }
.btn:hover { background: var(--deck-2); border-color: var(--faint); }
.btn:active { translate: 0 1px; }
.btn .ic { width: 17px; height: 17px; }
.btn.primary { background: var(--sun); border-color: transparent; color: var(--on-sun); font-weight: 650; }
.btn.primary:hover { background: color-mix(in srgb, var(--sun) 86%, #fff); box-shadow: 0 8px 22px -10px var(--sun); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--err) 13%, transparent); border-color: var(--err); }
.btn.danger.solid { background: var(--err); color: var(--on-err); border-color: transparent; font-weight: 650; }
.btn.danger.solid:hover { background: color-mix(in srgb, var(--err) 86%, #fff); }
.btn.quiet, .btn.ghost { border-color: transparent; }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover, .btn.quiet:hover { color: var(--text); border-color: transparent; }
.btn.small { min-height: 32px; padding: 0 13px; font-size: 13.5px; }
.btn.small .ic { width: 15px; height: 15px; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 16.5px; }
.btn.wide { width: 100%; }
.btn.icon-btn { width: 40px; padding: 0; }
.btn.small.icon-btn { width: 32px; }
.btn.lang-btn { min-width: 40px; padding: 0 10px; font-weight: 650; font-size: 13px; letter-spacing: .03em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; translate: none; box-shadow: none; }
.btn.busy { cursor: progress; }
.btn.busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: turn .7s linear infinite; }
.btn.on { border-color: var(--sun-text); color: var(--sun-text); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Felder */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-m); border: 1px solid var(--line-2); background: var(--well); transition: border-color .14s, box-shadow .14s; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 26%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[disabled], select[disabled], textarea[disabled] { opacity: .55; cursor: not-allowed; }
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.auto { width: auto; }
input[type=color] { width: 46px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--well); cursor: pointer; flex: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--sun); width: 16px; height: 16px; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); }

.switch { display: inline-block; vertical-align: middle; position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: translate .2s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + span { background: var(--sun); }
.switch input:checked + span::after { translate: 20px 0; background: var(--on-sun); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.switch input:disabled + span { opacity: .5; }

.field { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.35fr); gap: 8px 24px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.card > .field:first-of-type, .field:first-child { border-top: 0; }
.card > h2 + .field, .card > h3 + .field { padding-top: 4px; }
.field > div:first-child > label, .field > label { font-weight: 600; display: block; }
.field .desc { color: var(--muted); font-size: 13.5px; margin-top: 3px; max-width: 54ch; }
.field > div:last-child { min-width: 0; }
label.row { display: flex; font-weight: 400; gap: 10px; cursor: pointer; }
.multi { display: grid; gap: 8px; }
.preview { margin-top: 8px; padding: 10px 13px; border-radius: var(--r-m); background: var(--well); border: 1px dashed var(--line-2); font-size: 14px; }
.preview .pv-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.warnline { margin-top: 6px; color: var(--warn); font-size: 13px; }
.preview-card { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.preview-card .pv-label { color: var(--muted); font-size: 13px; }
.card-preview { width: 100%; max-width: 620px; aspect-ratio: 1024 / 400; border-radius: 16px; background: var(--well); display: block; transition: opacity .2s; }
.card-preview.rank { aspect-ratio: 934 / 282; }
.card-preview.loading { opacity: .55; }
.preview-card p { margin: 0; }
.keyrow input { flex: 1; min-width: 200px; width: auto; }
.gift select, .gift input { width: auto; min-width: 170px; flex: 1; }

/* Seitenkopf */
.head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.head-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--hue); background: color-mix(in srgb, var(--hue) 13%, transparent); border: 1.5px solid color-mix(in srgb, var(--hue) 50%, transparent); }
.head-ic > .ic { width: 28px; height: 28px; }
.head-ic:has(.planet), .head-ic:has(.ico) { border: 0; background: none; }
.head-ic .ico { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; }
.head-tx { flex: 1; min-width: 220px; }
.head h1 { font-size: clamp(24px, 2.6vw, 30px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head p { margin: 5px 0 0; color: var(--muted); max-width: 68ch; }
.head-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-toggle { padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); }

/* Karten: eine Fläche je Thema */
.card { background: var(--deck); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 22px; margin-bottom: 16px; min-width: 0; }
.card > h2, .card > h3, .card-head h2 { font-family: var(--font); font-size: 16px; font-weight: 650; letter-spacing: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { font-size: 15px; }
.card-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card > :last-child { margin-bottom: 0; }

.msg { padding: 11px 15px; border-radius: var(--r-m); margin-bottom: 14px; border: 1px solid var(--line-2); background: var(--deck-2); }
.msg.err { border-color: color-mix(in srgb, var(--err) 55%, transparent); background: color-mix(in srgb, var(--err) 11%, var(--deck)); color: color-mix(in srgb, var(--err) 70%, var(--text)); }
.msg.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--deck)); color: color-mix(in srgb, var(--ok) 70%, var(--text)); }
.msg.warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--deck)); color: color-mix(in srgb, var(--warn) 72%, var(--text)); }
.msg.pro-msg { border-color: color-mix(in srgb, var(--sun) 55%, transparent); background: color-mix(in srgb, var(--sun) 9%, var(--deck)); color: var(--text); }
.msg.row { display: flex; align-items: center; gap: 12px; }
.msg ul { margin: 6px 0 0 18px; padding: 0; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; line-height: 1.6; background: var(--deck-2); border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; font-family: var(--font); letter-spacing: 0; }
.tag .ic { width: 12px; height: 12px; }
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.tag.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.tag.pro { background: var(--sun); color: var(--on-sun); border-color: transparent; font-weight: 750; font-size: 10.5px; letter-spacing: .05em; }
.tag.pro.big { font-size: 12px; padding: 3px 12px; }
.tag.gold { color: var(--royal); border-color: color-mix(in srgb, var(--royal) 45%, transparent); background: color-mix(in srgb, var(--royal) 12%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--well); border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.chip.more { font-family: var(--font); }
.chip.sel { color: var(--text); font-family: var(--font); font-size: 13.5px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--deck-2); border-color: var(--line-2); }
.chip.sel button { border: 0; background: none; color: var(--muted); padding: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.chip.sel button:hover { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
.chip.sel button .ic { width: 12px; height: 12px; }

.pill { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: background .14s, color .14s; }
.pill:hover { color: var(--text); background: var(--deck-2); }
.pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill[class*="hue-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; flex-wrap: wrap; max-width: 100%; }
.seg .pill { border-color: transparent; padding: 4px 12px; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar > input, .toolbar > select { max-width: 320px; flex: 1 1 200px; }
.jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }

/* Kennzahlen: eine Leiste statt vieler Kacheln */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 16px; background: var(--deck); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stat { padding: 15px 20px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 650; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 13px; }

.sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.spark-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 13.5px; }
.spark-top b { font-family: var(--display); font-size: 22px; font-weight: 650; color: var(--text); letter-spacing: -.02em; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; }
.bars i { flex: 1; background: var(--sun); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .9; }
.bars.alt i { background: var(--mint); }

.tablewrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 550; font-size: 12.5px; white-space: nowrap; }
tr:last-child > td { border-bottom: 0; }
td.right, th.right { text-align: right; }

.check { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.check .box { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.check .box .ic { width: 13px; height: 13px; }
.check.done .box { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.check.done > span:nth-child(2) { color: var(--muted); }
.check > span:nth-child(2) { flex: 1; }
.meter { height: 6px; border-radius: 99px; background: var(--deck-2); overflow: hidden; margin: 0 0 8px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--sun); transition: width .5s ease; }
.setup.complete .meter i { background: var(--ok); }

.sub { display: grid; gap: 8px; margin: 0 0 8px; }
.subrow { display: grid; grid-template-columns: 190px 1fr auto; gap: 8px; align-items: start; background: var(--deck-2); border-radius: var(--r-m); padding: 8px; }
.subrow .params { display: grid; gap: 6px; }
.rule { border-color: var(--line-2); }

.srvlist, .plist { display: grid; gap: 8px; }
.srvrow, .prow { display: flex; align-items: center; gap: 12px; background: var(--deck-2); border-radius: 14px; padding: 9px 14px; min-width: 0; flex-wrap: wrap; border: 1px solid transparent; }
.srvrow > div:not(.sp), .prow > div:not(.sp) { min-width: 0; }
.srvrow.link { width: 100%; text-align: left; transition: border-color .14s, translate .14s; }
.srvrow.link:hover { border-color: var(--sun-text); translate: 2px 0; }
.go { color: var(--sun-text); font-weight: 600; font-size: 13.5px; }
.ico { width: 38px; height: 38px; border-radius: 12px; background: var(--deck-2); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; color: var(--muted); border: 1px solid var(--line); }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.tiny { width: 24px; height: 24px; border-radius: 8px; font-size: 9.5px; }
.srvrow .ico { background: var(--deck); }
.perr { color: var(--err); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
code.path, .path { overflow-wrap: anywhere; }
code.path { display: block; padding: 9px 13px; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-m); font-size: 13px; }
pre.notes { white-space: pre-wrap; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 13px; font-size: 13px; max-height: 220px; overflow: auto; }
kbd { font-size: 11px; background: var(--well); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); white-space: nowrap; }

.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feat-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feat-list li:last-child { border-bottom: 0; }
.feat-list li > div { flex: 1; display: grid; min-width: 0; }
.feat-list li > div > span { color: var(--muted); font-size: 13.5px; }
.feat-list .fe { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--sun-text); background: color-mix(in srgb, var(--sun) 12%, transparent); flex: none; }
.feat-list .fe .ic { width: 21px; height: 21px; }
.slotlist { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.slotlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-radius: 14px; background: var(--deck-2); }
.keys { display: grid; gap: 6px; margin-top: 10px; }
.keyitem { display: flex; gap: 10px; align-items: center; background: var(--well); border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 8px 6px 13px; color: var(--text); }
.keyitem code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
code.big { font-size: 14px; letter-spacing: .06em; }
.presence-preview { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: var(--r-m); background: var(--well); border: 1px solid var(--line); }
.presence-preview .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ba55d; flex: none; }
.presence-preview .dot.idle { background: #faa61a; } .presence-preview .dot.dnd { background: #ed4245; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); flex: none; }

/* Planeten: runde Modul-Zeichen in der Farbe ihrer Bahn */
.planet { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; color: var(--muted); border: 1.5px dashed color-mix(in srgb, var(--hue) 45%, var(--line-2)); transition: background .2s, color .2s, border-color .2s; }
.planet .ic { width: 21px; height: 21px; }
.planet.on { color: var(--hue); border-style: solid; border-color: color-mix(in srgb, var(--hue) 75%, transparent); background: color-mix(in srgb, var(--hue) 14%, transparent); }
.planet.big { width: 56px; height: 56px; } .planet.big .ic { width: 28px; height: 28px; }
.planet.small { width: 34px; height: 34px; border-style: solid; color: var(--hue); background: color-mix(in srgb, var(--hue) 12%, transparent); } .planet.small .ic { width: 17px; height: 17px; }
.hue-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hue); flex: none; }

/* ── 3 Rückmeldungen ──────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 36px)); text-align: left; padding: 11px 16px 11px 13px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--deck-2); color: var(--text); box-shadow: var(--shadow); animation: toast-in .22s cubic-bezier(.2, 1.2, .4, 1); }
.toast .ic { width: 20px; height: 20px; color: var(--ok); }
.toast.err .ic { color: var(--err); }
.toast.err { border-color: color-mix(in srgb, var(--err) 55%, transparent); }
.toast.out { opacity: 0; translate: 0 6px; transition: opacity .18s, translate .18s; }

.overlay { position: fixed; inset: 0; z-index: 70; background: var(--scrim); backdrop-filter: blur(5px); display: grid; animation: fade-in .16s ease; }
.dlg-wrap, .note-wrap { place-items: center; padding: 20px; z-index: 95; }
.dlg, .note { width: min(440px, 100%); background: var(--deck); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: pop-in .2s cubic-bezier(.2, 1.2, .4, 1); }
.dlg h2 { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin: 14px 0 8px; }
.dlg p { color: var(--muted); margin: 0 0 4px; }
.dlg input { margin-top: 12px; }
.dlg-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--sun-text); background: color-mix(in srgb, var(--sun) 14%, transparent); }
.dlg-ic.danger { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
.dlg-ic .ic { width: 23px; height: 23px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.note { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 34px 28px; }
.note strong { font-family: var(--display); font-size: 20px; }
.note p { color: var(--muted); margin: 0; }
.note-mark { width: 44px; height: 44px; }

.state { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 20px; color: var(--muted); }
.state strong { color: var(--text); font-size: 16px; }
.state p { margin: 0; max-width: 46ch; }
.state .btn { margin-top: 10px; }
.state ul { text-align: left; margin: 4px 0 0; }
.state-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; border: 1.5px dashed var(--line-2); color: var(--faint); }
.state-ic .ic { width: 24px; height: 24px; }
.state.err .state-ic { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); border-style: solid; }
.skel { display: grid; gap: 12px; padding: 6px 0; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--deck-2) 25%, var(--line-2) 40%, var(--deck-2) 60%); background-size: 300% 100%; animation: skel 1.5s ease-in-out infinite; }
.skel i:nth-child(2n) { width: 82%; } .skel i:nth-child(3n) { width: 61%; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--sun); animation: turn .8s linear infinite; flex: none; vertical-align: -4px; }

/* Suche */
.pal-wrap { place-items: start center; padding: 12vh 12px 12px; }
.pal { width: min(600px, 100%); background: var(--deck); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: pop-in .18s cubic-bezier(.2, 1.2, .4, 1); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.pal-in .ic { width: 20px; height: 20px; color: var(--muted); margin: 0; }
.pal-in input { border: 0; background: transparent; padding: 12px 0; font-size: 16.5px; box-shadow: none !important; }
.pal-list { max-height: min(52vh, 440px); overflow-y: auto; padding: 6px; }
.pal-item { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; }
.pal-item > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pal-item .ic { width: 18px; height: 18px; color: var(--muted); }
.pal-item small { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.pal-item.on, .pal-item:hover { background: var(--deck-2); }
.pal-item.on .ic { color: var(--sun-text); }
.pal-foot { display: flex; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.pal-foot kbd { margin-right: 3px; }
.pal .state { padding: 26px 16px; }

/* Aufklapp-Menüs */
.pop-wrap { position: relative; min-width: 0; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 240px; max-width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--deck); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); animation: pop-in .16s cubic-bezier(.2, 1.2, .4, 1); transform-origin: top left; }
.pop.right { left: auto; right: 0; transform-origin: top right; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 10px; text-align: left; }
.pop-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-item .ic { width: 18px; height: 18px; color: var(--muted); }
.pop-item:hover, .pop-item:focus-visible { background: var(--deck-2); }
.pop-item.on { font-weight: 600; }
.pop-item .tick { color: var(--ok); }
.pop-item.sep { margin-top: 6px; position: relative; }
.pop-item.sep::before { content: ""; position: absolute; left: 6px; right: 6px; top: -4px; border-top: 1px solid var(--line); }
.pop-note { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 13.5px; }

/* ── 4 Rahmen ─────────────────────────────────────────────────────────────── */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--bar); padding: 0 18px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand-btn { border: 0; background: none; padding: 6px 8px 6px 2px; border-radius: 12px; margin-right: 6px; }
.server-btn, .user-btn { display: flex; align-items: center; gap: 9px; max-width: 250px; height: 40px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 550; transition: background .14s; }
.server-btn:hover, .user-btn:hover, .server-btn[aria-expanded="true"], .user-btn[aria-expanded="true"] { background: var(--deck-2); }
.server-btn > span, .user-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-btn > .ic:first-child { width: 20px; height: 20px; color: var(--muted); }
.chev { width: 14px; height: 14px; color: var(--muted); transition: rotate .16s; }
[aria-expanded="true"] > .chev { rotate: 180deg; }
.user-btn { border-color: transparent; padding-left: 5px; }
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.av.ph, .acct-av.ph { display: grid; place-items: center; background: var(--deck-2); font-weight: 700; color: var(--muted); border: 1px solid var(--line-2); }
.av.ph { font-size: 13px; }
.search-btn { color: var(--muted); border-color: var(--line-2) !important; padding: 0 10px 0 13px; font-weight: 450; }
.search-btn kbd { margin-left: 8px; }

.shell { flex: 1; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.side { position: sticky; top: var(--bar); align-self: start; height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); overflow-y: auto; padding: 16px 12px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.nav { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 37px; text-align: left; padding: 7px 10px; border-radius: 11px; border: 0; background: transparent; color: var(--text); font-weight: 500; transition: background .12s, color .12s; }
.nav > span:not(.dot):not(.ico):not(.tag) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .ic { width: 18px; height: 18px; color: var(--muted); transition: color .12s; }
.nav:hover { background: var(--deck); }
.nav.active { background: color-mix(in srgb, var(--sun) 15%, transparent); color: var(--text); font-weight: 650; }
.nav.active .ic { color: var(--sun-text); }
.nav .dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); margin-left: auto; flex: none; }
.nav .dot.on { background: var(--ok); border-color: var(--ok); }
.nav.off { color: var(--muted); }
.nav.off .ic { color: var(--faint); }
.nav.locked::after { content: ""; width: 7px; height: 7px; rotate: 45deg; background: var(--sun); flex: none; border-radius: 1px; }
.nav.locked .dot { display: none; }
.nav-group .nav:not(.off) .ic, .nav-group .nav.active .ic { color: var(--hue); }
.nav-server { display: flex; align-items: center; gap: 11px; padding: 4px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.nav-server > div { display: grid; min-width: 0; }
.nav-server strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-server small { color: var(--muted); font-size: 12.5px; }
.nav-title, .nav-group summary { font-family: var(--font); font-size: 12.5px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.nav-title { margin: 18px 10px 6px; }
.nav-group { margin-top: 12px; display: grid; gap: 2px; }
.nav-group summary { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; cursor: pointer; list-style: none; user-select: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: var(--deck); color: var(--text); }
.nav-group summary span { flex: 1; }
.nav-group summary b { font-weight: 550; font-variant-numeric: tabular-nums; color: var(--faint); }
.nav-group summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); rotate: -45deg; transition: rotate .16s; margin-left: 2px; }
.nav-group[open] summary::after { rotate: 45deg; }
.nav-end { margin-top: auto; padding-top: 18px; display: grid; gap: 2px; }
.nav-note { margin: 4px 10px; color: var(--muted); font-size: 13.5px; }
.adm-entry .ic { color: var(--royal) !important; }

.main { padding: 30px clamp(18px, 3.4vw, 44px) 90px; max-width: 1100px; width: 100%; min-width: 0; }
.main.wide { max-width: 1360px; }
.main.page-in { animation: page-in .22s ease-out; }

.tabbar { display: none; }
.sheet-wrap { align-items: end; z-index: 80; }
.sheet { width: 100%; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--bg-2); border-radius: 24px 24px 0 0; border: 1px solid var(--line-2); border-bottom: 0; animation: sheet-in .24s cubic-bezier(.2, .9, .3, 1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 6px 22px; }
.sheet-head strong { font-family: var(--display); font-size: 18px; }
.sheet-body { overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.sheet-body .nav { min-height: 44px; }
.sheet-body .nav-end { margin-top: 12px; }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

.ann-bar { display: grid; }
.ann { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: 14px; background: color-mix(in srgb, var(--sky) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--sky) 35%, transparent); }
.ann.success { background: color-mix(in srgb, var(--ok) 14%, var(--bg)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.ann.warn { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.ann > .ic { width: 18px; height: 18px; }
.ann span { flex: 1; }
.ann-x { background: transparent; border: 0; color: var(--muted); padding: 4px; border-radius: 8px; display: grid; }
.ann-x:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }
.ann-x .ic { width: 15px; height: 15px; }

/* ── 5 Orbit ──────────────────────────────────────────────────────────────── */
.orbit { width: 100%; max-width: 540px; margin-inline: auto; }
.orbit-stage { position: relative; aspect-ratio: 1; container-type: inline-size; }
.orbit-ticks { position: absolute; inset: 0; border-radius: 50%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, var(--muted) 0 .35deg, transparent .35deg 5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 6px)); mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 6px)); }
.orbit-lane { --n: clamp(34px, 8.8cqw, 48px); position: absolute; inset: calc(50% - var(--r)); border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--hue) 42%, transparent); }
.lane-0 { --r: 19cqw; --t: 160s; } .lane-1 { --r: 31cqw; --t: 230s; } .lane-2 { --r: 43cqw; --t: 310s; }
.orbit-turn { position: absolute; inset: 0; border-radius: 50%; }
.orbit-lane, .orbit-turn, .orbit-ticks { pointer-events: none; } /* Bahnen liegen übereinander – nur die Punkte nehmen Klicks an */
.orbit-node { pointer-events: auto; }
.orbit-node { position: absolute; left: 50%; top: 50%; width: var(--n); height: var(--n); margin: calc(var(--n) / -2) 0 0 calc(var(--n) / -2); padding: 0; border: 0; background: none; border-radius: 50%;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.orbit-node:focus-visible { outline: none; }
.orbit-planet { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: color-mix(in srgb, var(--hue) 5%, var(--bg)); color: var(--muted); border: 1.5px dashed color-mix(in srgb, var(--hue) 62%, transparent);
  transition: scale .18s cubic-bezier(.3, 1.5, .5, 1), background .2s, color .2s, box-shadow .2s; }
.orbit-planet .ic { width: 54%; height: 54%; }
.orbit-node.on .orbit-planet { color: var(--hue); border-style: solid; border-color: var(--hue); background: color-mix(in srgb, var(--hue) 20%, var(--bg)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 10%, transparent), 0 0 20px -4px color-mix(in srgb, var(--hue) 70%, transparent); }
.orbit-node:hover .orbit-planet, .orbit-node:focus-visible .orbit-planet { scale: 1.16; color: var(--text); }
.orbit-node:focus-visible .orbit-planet, .orbit-node.sel .orbit-planet { outline: 2px solid var(--text); outline-offset: 3px; }
.orbit-node.sel .orbit-planet { scale: 1.16; }
.orbit-node.locked .orbit-planet::after { content: ""; position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; rotate: 45deg; border-radius: 2px; background: var(--sun); box-shadow: 0 0 0 2px var(--bg); }
.orbit-node.ignite .orbit-planet::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--hue); animation: ignite .8s ease-out forwards; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 21cqw; height: 21cqw; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--on-sun);
  background: radial-gradient(circle at 34% 28%, #ffe7a3 0%, var(--sun) 46%, var(--sun-2) 100%); box-shadow: 0 0 0 7px color-mix(in srgb, var(--sun) 13%, transparent), 0 0 70px -8px color-mix(in srgb, var(--sun) 75%, transparent); transition: scale .2s; }
.orbit-core:hover { scale: 1.05; }
.orbit-core .mark { width: 62%; height: 62%; }
.orbit-core .mk-core { fill: var(--on-sun); } .orbit-core .mk-sat { fill: var(--on-sun); }
.orbit-core.live::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--sun); animation: core-pulse 3.4s ease-out infinite; pointer-events: none; }
.orbit.turning .orbit-turn { animation: turn var(--t) linear infinite; }
.orbit.turning .orbit-planet { animation: turn var(--t) linear infinite reverse; }
.orbit.turning .lane-1 .orbit-turn { animation-direction: reverse; } .orbit.turning .lane-1 .orbit-planet { animation-direction: normal; }
.orbit.turning:hover .orbit-turn, .orbit.turning:hover .orbit-planet, .orbit.turning:focus-within .orbit-turn, .orbit.turning:focus-within .orbit-planet { animation-play-state: paused; }
.orbit-ghost { width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; border: 1px dashed var(--line-2); }
.orbit-legend { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 2px; }
.orbit-legend li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.orbit-legend li:last-child { border-bottom: 0; }
.orbit-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 12px -1px var(--hue); flex: none; }
.orbit-legend span { flex: 1; display: grid; min-width: 0; }
.orbit-legend small { color: var(--muted); font-size: 12.5px; }
.orbit-legend b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--hue); }

/* Der Server als Sonnensystem: links die Karte, rechts die Anzeige */
.nexus { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 12px 34px; align-items: center; padding: 26px 30px; margin-bottom: 16px; border-radius: var(--r-xl); border: 1px solid var(--line);
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255, 255, 255, .7), transparent), radial-gradient(1px 1px at 78% 14%, rgba(255, 255, 255, .55), transparent), radial-gradient(1.4px 1.4px at 62% 82%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 91% 58%, rgba(255, 255, 255, .6), transparent), radial-gradient(1px 1px at 44% 8%, rgba(255, 255, 255, .45), transparent), radial-gradient(1.2px 1.2px at 6% 78%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(circle at 27% 50%, #133552 0%, #0b1f30 44%, #07131d 100%); }
.nexus-read { min-width: 0; display: grid; gap: 4px; align-content: center; }
.nexus-count { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.nexus-count b { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 6vw, 76px); line-height: .9; letter-spacing: -.04em; color: var(--sun); }
.nexus-count span { font-size: 17px; color: var(--muted); }
.read-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.read-head > div { flex: 1; min-width: 0; display: grid; }
.read-head h2 { font-family: var(--display); font-size: 24px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.read-head small { color: var(--hue); font-size: 13px; font-weight: 550; }
.read-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ── 6 Server-Seiten ──────────────────────────────────────────────────────── */
.grid-guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gcard { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; text-align: left; padding: 18px; border-radius: var(--r-l); border: 1px dashed var(--line-2); background: transparent; color: var(--text); text-decoration: none; transition: translate .16s, border-color .16s, background .16s; }
.gcard .ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; font-size: 16px; }
.gcard .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .gstate { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.gcard .go { grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.gcard.on { border-style: solid; border-color: var(--line); background: var(--deck); }
.gcard:hover { translate: 0 -3px; border-color: var(--sun-text); }

.hub-sec { margin-top: 26px; }
.hub-sec > h2 { font-family: var(--display); font-size: 19px; font-weight: 650; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hub-sec > h2 small { font-family: var(--font); font-size: 13px; font-weight: 550; color: var(--muted); font-variant-numeric: tabular-nums; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mcard { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--deck); transition: border-color .16s, translate .16s; }
.mcard:hover { border-color: color-mix(in srgb, var(--hue) 55%, var(--line)); translate: 0 -2px; }
.mcard.on { border-color: color-mix(in srgb, var(--hue) 38%, var(--line)); }
.mcard .mtop { display: flex; width: 100%; align-items: center; }
.mcard h3 { font-family: var(--font); font-size: 16px; font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.mcard p { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .chips { margin: 2px 0 4px; }
.mcard.locked .planet { opacity: .7; }

/* Speichern: schwebende Leiste, die sich meldet, sobald etwas geändert wurde */
.savebar { position: sticky; bottom: 14px; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 22px 0 16px; padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--deck) 90%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: border-color .2s; }
.savebar.dirty { border-color: var(--sun); }
.savebar:not(.dirty) [data-discard] { display: none; }
.save-note { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.savebar.dirty .save-note { color: var(--sun-text); font-weight: 600; }
.savebar.dirty .save-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: blink 1.6s ease-in-out infinite; }

/* ── 7 App-Seiten, Konto, Premium ─────────────────────────────────────────── */
.status { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-xl); border: 1px solid var(--line); margin-bottom: 16px; background: var(--deck); --tone: var(--warn); }
.status.up { --tone: var(--ok); } .status.down { --tone: var(--err); }
.status-core { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); border: 1.5px solid var(--tone); }
.status-core .mark { width: 34px; height: 34px; } .status-core .mk-core { fill: currentColor; } .status-core .mk-sat { fill: currentColor; }
.status.up .status-core::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--tone); animation: core-pulse 3.4s ease-out infinite; }
.status.wait .status-core .mark { animation: turn 2.4s linear infinite; }
.status-tx { flex: 1; min-width: 200px; display: grid; }
.status-tx strong { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.status-tx span { color: var(--muted); }
.status-act { display: flex; gap: 8px; flex-wrap: wrap; }
.about { display: grid; gap: 6px; justify-items: start; }
.about p { margin: 0; }
.logbox { background: #050d14; color: #c9d6df; border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; height: min(66vh, 660px); overflow: auto; font: 12.5px/1.55 var(--mono); }
.ll { white-space: pre-wrap; overflow-wrap: anywhere; }
.ll.warn { color: #ffb86b; } .ll.error { color: #ff8585; } .ll.debug { color: #6c8497; }
.logbox .skel i { background: #0f2334; animation: none; }

.mv-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.mv-step { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.mv-step:not(:last-child)::before { content: ""; position: absolute; left: 18.5px; top: 42px; bottom: 4px; border-left: 1.5px dashed var(--line-2); }
.mv-step h2 { font-family: var(--font); font-size: 17px; font-weight: 650; margin: 7px 0 6px; }
.mv-step p { margin: 0 0 8px; max-width: 70ch; }
.mv-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--sun-text); border: 1.5px solid var(--sun-text); background: var(--bg); }
.mv-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin: 10px 0 12px; max-width: 860px; }
.mv-field { display: grid; gap: 5px; align-content: start; }
.mv-field > span { font-size: 13px; font-weight: 600; }
.mv-field input { width: 100%; }
.mv-where { margin: 4px 0 2px; padding: 9px 12px; border-left: 3px solid var(--sun-text); background: var(--well); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 14px; max-width: 860px; }
.mv-where code { font-size: 12.5px; }
.mv-file { margin-right: 6px; font-size: 12.5px; }
.cmd { position: relative; margin-top: 8px; }
.cmd pre { margin: 0; padding: 13px 96px 13px 15px; border-radius: var(--r-m); background: #050d14; color: #d5e2ea; border: 1px solid var(--line); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.cmd .btn { position: absolute; top: 8px; right: 8px; color: #d5e2ea; border-color: #2c4d67; }
.cmd .btn:hover { background: #173247; }

.acct { display: grid; grid-template-columns: minmax(0, 1fr); }
.acct-row { gap: 14px; }
.acct-av { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: none; font-size: 20px; }
.link-code { font-family: var(--display); font-size: clamp(28px, 8vw, 42px); letter-spacing: .12em; font-weight: 700; padding: 10px 20px; border-radius: var(--r-l); background: var(--well); border: 1px dashed var(--sun-text); color: var(--sun-text); user-select: all; font-variant-numeric: tabular-nums; width: fit-content; max-width: 100%; }
.cloud-link { display: grid; gap: 12px; justify-items: start; margin-top: 18px; }
.cloud-link .wait { display: flex; align-items: center; gap: 8px; margin: 0; }
.cloud-hero .feat-list { margin-top: 4px; }

.pro-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px 28px 24px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--deck); }
.pro-hero.on { border-color: color-mix(in srgb, var(--sun) 60%, transparent); }
.pro-hero.on::before { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--sun) 55%, transparent); box-shadow: 0 0 0 46px color-mix(in srgb, var(--sun) 5%, transparent), inset 0 0 0 60px color-mix(in srgb, var(--sun) 6%, transparent); pointer-events: none; }
.pro-hero > * { position: relative; }
.pro-mark { font-family: var(--display); font-weight: 750; font-size: 32px; letter-spacing: -.035em; line-height: 1.1; }
.pro-mark span { font-weight: 450; color: var(--muted); }
.pro-hero.on .pro-mark span { color: var(--sun-text); }
.pro-line { margin: 8px 0 18px; color: var(--muted); font-size: 16px; }
.pro-hero .feat-list { margin-bottom: 14px; }

/* ── 8 Startseite, Einrichtung, Einzelseiten ──────────────────────────────── */
.landing { min-height: 100vh; }
.land-top { display: flex; align-items: center; gap: 8px; padding: 14px clamp(16px, 4vw, 40px); max-width: 1320px; margin: 0 auto; }
.land-link { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 500; }
.land-link:hover { color: var(--text); }
.land-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; max-width: 1320px; margin: 0 clamp(10px, 2vw, 28px); padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 72px); border-radius: 36px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    radial-gradient(1.2px 1.2px at 8% 18%, rgba(255, 255, 255, .75), transparent), radial-gradient(1px 1px at 22% 72%, rgba(255, 255, 255, .5), transparent), radial-gradient(1.4px 1.4px at 37% 9%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1px 1px at 46% 88%, rgba(255, 255, 255, .5), transparent), radial-gradient(1.2px 1.2px at 94% 12%, rgba(255, 255, 255, .6), transparent), radial-gradient(1px 1px at 86% 92%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(circle at 74% 48%, #143755 0%, #0b1f30 42%, #07131d 78%); }
@media (min-width: 1380px) { .land-hero { margin-inline: auto; } }
.land-copy h1 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 720; line-height: .98; letter-spacing: -.035em; max-width: 11.5em; text-wrap: balance; }
.land-tag { font-size: clamp(16.5px, 1.5vw, 20px); color: var(--muted); max-width: 40ch; margin: 22px 0 30px; }
.land-cta { gap: 12px; }
.land-proof { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.land-orbit { display: grid; gap: 14px; min-width: 0; }
.orbit-read { margin: 0 auto; min-height: 68px; max-width: 46ch; text-align: center; display: grid; gap: 2px; align-content: start; font-size: 14.5px; }
.orbit-read strong { color: var(--hue); font-size: 16px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.orbit-read > span:not(.muted) { color: var(--muted); }
.land-sec { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 40px) 0; }
.land-sec > h2 { font-family: var(--display); font-weight: 680; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.025em; }
.land-lead { color: var(--muted); font-size: 17px; margin: 10px 0 30px; max-width: 56ch; }
.land-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px 44px; }
.land-ring h3 { font-family: var(--display); font-size: 20px; font-weight: 650; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px solid var(--hue); }
.land-ring h3 small { margin-left: auto; font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 550; }
.land-ring ul { list-style: none; margin: 0; padding: 0; }
.land-ring li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.land-ring li > div { display: grid; min-width: 0; }
.land-ring li strong { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.land-ring li span:not(.tag):not(.planet) { color: var(--muted); font-size: 14px; }
.land-premium { max-width: 820px; }
.land-foot { max-width: 1180px; margin: 0 auto; padding: 64px clamp(18px, 4vw, 40px) 48px; }
.land-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 14px; }
.land-foot a { color: var(--muted); text-decoration: none; }
.land-foot a:hover { color: var(--text); text-decoration: underline; }

/* Ersteinrichtung: links das All, rechts die ruhige Arbeitsfläche (immer Nachtfarben) */
.ob { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(300px, 38%) 1fr; background: var(--bg); font-size: 15px; overflow: hidden; }
.ob-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 44px 40px 30px; border-right: 1px solid var(--line);
  background: radial-gradient(1.2px 1.2px at 14% 16%, rgba(255, 255, 255, .7), transparent), radial-gradient(1px 1px at 70% 10%, rgba(255, 255, 255, .5), transparent), radial-gradient(1.4px 1.4px at 40% 34%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 84% 44%, rgba(255, 255, 255, .6), transparent), radial-gradient(circle at 92% 86%, #153a5a 0%, #0b1f30 46%, #07131d 86%); }
.ob-deco { position: absolute; right: -210px; bottom: -150px; width: 520px; height: 520px; pointer-events: none; }
.ob-deco i { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--hue) 45%, transparent); animation: turn 120s linear infinite; }
.ob-deco i::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 14px var(--hue); }
.ob-deco i:nth-child(1) { inset: 150px; --hue: var(--sky); animation-duration: 60s; }
.ob-deco i:nth-child(2) { inset: 80px; --hue: var(--rose); animation-duration: 95s; animation-direction: reverse; }
.ob-deco i:nth-child(3) { inset: 6px; --hue: var(--mint); animation-duration: 140s; }
.ob-deco b { position: absolute; inset: 208px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ffe7a3, var(--sun) 46%, var(--sun-2)); box-shadow: 0 0 80px -6px var(--sun); }
.ob-brand { position: relative; }
.ob-brand p { margin: 14px 0 0; color: var(--muted); font-size: 16.5px; max-width: 24ch; }
.ob-steps { position: relative; list-style: none; margin: 38px 0 auto; padding: 0; display: grid; gap: 4px; }
.ob-steps li { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--muted); }
.ob-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; border: 1.5px solid var(--line-2); flex: none; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.ob-steps li.now { color: var(--text); font-weight: 650; }
.ob-steps li.now .n { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.ob-steps li.done .n { border-color: var(--ok); color: var(--ok); }
.ob-foot { position: relative; margin: 0; color: var(--faint); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ob-main { overflow-y: auto; display: flex; align-items: center; }
.ob-pane { width: 100%; max-width: 620px; padding: 56px clamp(24px, 6vw, 76px); animation: page-in .24s ease-out; }
.ob-progress { margin: 0 0 10px; color: var(--sun-text); font-size: 14px; font-weight: 600; }
.ob h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.ob-lead { color: var(--muted); margin: 0 0 28px; max-width: 58ch; font-size: 16.5px; }
.ob-plan { list-style: none; counter-reset: plan; margin: 0 0 30px; padding: 0; }
.ob-plan li { counter-increment: plan; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.ob-plan li:last-child { border-bottom: 1px solid var(--line); }
.ob-plan li::before { content: counter(plan); grid-row: span 2; align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--sun-text); border: 1.5px solid color-mix(in srgb, var(--sun-text) 60%, transparent); }
.ob-plan span { color: var(--muted); }
.ob-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.ob-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0 18px; }
.ob-guide { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--r-l); background: var(--deck); border: 1px solid var(--line); }
.ob-guide summary { cursor: pointer; font-weight: 600; }
.ob-guide ol { margin: 12px 0 14px; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.ob-guide.flat ol { margin-top: 0; }
.ob-guide .ob-row { margin-bottom: 0; }
.ob-label { display: block; font-weight: 600; margin-bottom: 8px; }
.ob-field { display: flex; gap: 8px; align-items: stretch; }
.ob-token { flex: 1; min-width: 0; height: 50px !important; font-family: var(--mono) !important; font-size: 14px; letter-spacing: .02em; }
.ob-field .btn { min-height: 50px; }
.ob-hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.ob-status { min-height: 78px; margin-top: 16px; }
.ob-check { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 14px 0; }
.ob-bot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-l); background: color-mix(in srgb, var(--ok) 9%, var(--deck)); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); animation: pop-in .24s cubic-bezier(.2, 1.2, .4, 1); }
.ob-bot img, .ob-av { width: 48px; height: 48px; border-radius: 50%; background: var(--deck-2); flex: none; }
.ob-av { display: grid; place-items: center; font: 700 20px var(--display); color: var(--ok); }
.ob-bot div { flex: 1; display: grid; min-width: 0; }
.ob-bot strong { font-size: 17px; }
.ob-bot div span { color: var(--muted); font-size: 14px; }
.ob-ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--bg); font-weight: 800; }
.ob-intents { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.ob-intents li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--deck); }
.ob-intents li div { flex: 1; display: grid; min-width: 0; }
.ob-intents li div span { color: var(--muted); font-size: 14px; }
.ob-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 18%, transparent); flex: none; }
.ob-intents li.on .ob-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.ob-guilds { display: grid; gap: 8px; margin-top: 4px; }
.ob-guild { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-l); border: 1.5px solid var(--line); background: var(--deck); cursor: pointer; transition: border-color .14s; }
.ob-guild:hover { border-color: var(--line-2); }
.ob-guild.sel { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 8%, var(--deck)); }
.ob-guild input { position: absolute; opacity: 0; pointer-events: none; }
.ob-guild:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-guild > span:last-child { display: grid; min-width: 0; }
.ob-guild small { color: var(--muted); font-size: 13px; }
.ob-guild .ico .ic { width: 18px; height: 18px; }
.ob-empty { color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-l); margin: 0; }
.ob-finish { display: grid; justify-items: start; gap: 8px; }
.ob-finish .boot-orbit { width: 64px; height: 64px; margin-bottom: 16px; } .ob-finish .boot-orbit::before { inset: 20px; }
.ob-cloud { display: grid; gap: 14px; }

/* Einzelseiten: App verknüpfen, Rangliste */
.solo { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 28px 16px; text-align: center; }
.solo h1 { font-size: clamp(26px, 5vw, 34px); }
.link-card { width: min(500px, 100%); display: grid; gap: 12px; text-align: center; justify-items: center; margin: 0; padding: 26px; }
.link-card .row { justify-content: center; }
.link-card .msg { width: 100%; }
.lbpage { max-width: 760px; margin: 0 auto; padding: 36px 16px 60px; }
.lb-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.lb-head img, .lb-gi { width: 66px; height: 66px; border-radius: 20px; background: var(--deck-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.lb-head h1 { font-size: clamp(24px, 4.4vw, 34px); }
.lb-head p { margin: 2px 0 0; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-list li { display: grid; grid-template-columns: 36px 42px 1fr auto; align-items: center; gap: 13px; padding: 11px 16px; border-radius: var(--r-l); background: var(--deck); border: 1px solid var(--line); }
.lb-list li.top1 { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 7%, var(--deck)); } .lb-list li.top2 { border-color: color-mix(in srgb, var(--text) 45%, transparent); } .lb-list li.top3 { border-color: color-mix(in srgb, var(--sun-2) 60%, transparent); }
.lb-rank { font-family: var(--display); font-weight: 700; font-size: 19px; text-align: center; color: var(--muted); }
.lb-list li.top .lb-rank { color: var(--text); } .lb-list li.top1 .lb-rank { color: var(--sun-text); }
.lb-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--deck-2); display: grid; place-items: center; font-weight: 700; }
.lb-who { min-width: 0; display: grid; gap: 6px; }
.lb-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { height: 6px; border-radius: 99px; background: var(--deck-2); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sun); transition: width .6s ease; }
.lb-stat { text-align: right; display: grid; }
.lb-stat span { color: var(--muted); font-size: 13px; }
.lb-foot { text-align: center; margin-top: 30px; }

/* ── 9 Admin-Zentrale (Violett = erhöhte Rechte) ──────────────────────────── */
.adm { display: grid; gap: 16px; min-width: 0; }
.adm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--royal) 38%, var(--line)); background: radial-gradient(520px 180px at 0% 0%, color-mix(in srgb, var(--royal) 17%, transparent), transparent 72%), var(--deck); }
.adm-head h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; font-size: clamp(22px, 2.6vw, 28px); }
.adm-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-crown { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--royal); background: color-mix(in srgb, var(--royal) 15%, transparent); border: 1.5px solid var(--royal); flex: none; }
.adm-crown .ic { width: 28px; height: 28px; margin: 0; }
.adm-role { display: inline-flex; align-items: center; padding: 2px 11px; border-radius: 999px; background: color-mix(in srgb, var(--royal) 18%, transparent); color: var(--royal); font-weight: 650; font-size: 12.5px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 24px; border: 1px solid var(--line); background: var(--deck); overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 550; transition: background .14s, color .14s; }
.adm-tab .ic { margin: 0; width: 17px; height: 17px; }
.adm-tab:hover { color: var(--text); background: var(--deck-2); }
.adm-tab.on { color: var(--text); background: color-mix(in srgb, var(--royal) 22%, transparent); }
.adm-tab.on .ic { color: var(--royal); }
.adm-body { display: grid; gap: 16px; min-width: 0; }
.adm-card { margin: 0; }
.adm-tiles, .adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.adm-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-tile { position: relative; display: grid; gap: 2px; padding: 14px 16px 13px; border-radius: 16px; background: var(--deck); border: 1px solid var(--line); min-width: 0; }
.adm-tile .ic { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; margin: 0; color: var(--faint); }
.adm-tile b { font-family: var(--display); font-weight: 650; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 22px; }
.adm-tile span { color: var(--muted); font-size: 13px; }
.adm-tile small { color: var(--faint); font-size: 12px; }
.adm-tile.ok b, .adm-tile.ok .ic { color: var(--ok); }
.adm-tile.bad b, .adm-tile.bad .ic { color: var(--err); }
.adm-tile.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); } .adm-tile.warn b { color: var(--warn); }
.adm-mini .adm-tile { background: var(--deck-2); border-color: transparent; padding: 10px 12px; } .adm-mini .adm-tile b { font-size: 20px; padding: 0; }
.adm-alerts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-alert { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--deck); color: var(--text); font-size: 13.5px; text-align: left; }
.adm-alert .ic { margin: 0; width: 16px; height: 16px; }
button.adm-alert:hover { background: var(--deck-2); }
.adm-alert.warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); } .adm-alert.warn .ic { color: var(--warn); }
.adm-alert.info .ic { color: var(--sky); }
.adm-alert.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.adm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.adm-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.adm-chartbox { display: grid; gap: 8px; }
.adm-chart { width: 100%; height: 150px; display: block; }
.adm-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.adm-chart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.adm-chart .area { opacity: .16; }
.adm-chart .a.line { stroke: var(--sun); } .adm-chart .a.area { fill: var(--sun); }
.adm-chart .b.line { stroke: var(--royal); } .adm-chart .b.area { fill: var(--royal); }
.adm-chart .bar.a { fill: var(--ok); } .adm-chart .bar.b { fill: var(--err); opacity: .8; }
.adm-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.adm-legend .a i { background: var(--sun); } .adm-legend .b i { background: var(--royal); }
.adm-chartbox:has(.bar) .adm-legend .a i { background: var(--ok); } .adm-chartbox:has(.bar) .adm-legend .b i { background: var(--err); }
.adm-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.adm-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.adm-feed li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.adm-feed li > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.adm-feed li > span { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }
.adm-feed li:last-child { border-bottom: 0; }
.adm-feed span { color: var(--muted); font-size: 13.5px; min-width: 0; }
.adm-feed small { color: var(--faint); font-size: 12px; justify-self: end; }
.adm-feed .tag { justify-self: start; grid-row: auto; }
.adm-banner { padding: 10px 15px; border-radius: var(--r-m); background: color-mix(in srgb, var(--sky) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sky) 38%, transparent); }
.adm-banner.success { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 38%, transparent); }
.adm-banner.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); border-color: color-mix(in srgb, var(--warn) 42%, transparent); }
.adm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--sky); }
.adm-dot.success { background: var(--ok); } .adm-dot.warn { background: var(--warn); }
.adm-row { cursor: pointer; }
.adm-row:hover td, .adm-row:focus-visible td { background: color-mix(in srgb, var(--royal) 9%, transparent); }
.adm-gname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-gname .ico { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
.adm-gname div { display: grid; min-width: 0; }
.adm-gname small { color: var(--faint); font-size: 11.5px; }
.adm-dhead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-dhead > div:not(.sp) { min-width: 0; }
.adm-dhead h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--display); font-size: 20px; }
.adm-dhead p { margin: 2px 0 0; }
.adm-gicon, .adm-av { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; flex: none; }
.adm-av { border-radius: 50%; }
.adm-gicon.ph, .adm-av.ph { display: grid; place-items: center; background: var(--deck-2); font-weight: 700; font-size: 18px; color: var(--muted); }
.adm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; margin-bottom: 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.adm-facts div { display: grid; gap: 2px; padding: 10px 13px; background: var(--deck); min-width: 0; }
.adm-facts span { color: var(--muted); font-size: 12px; }
.adm-facts b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.adm-actions { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-more { margin-top: 10px; }
.adm-more summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.adm-detail:empty { display: none; }
.adm-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 8px 0; }
.adm-perm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--deck-2); cursor: pointer; }
.adm-perm.on { border-color: color-mix(in srgb, var(--royal) 55%, transparent); background: color-mix(in srgb, var(--royal) 9%, var(--deck)); }
.adm-perm input { margin-top: 3px; accent-color: var(--royal); }
.adm-perm span { display: grid; gap: 2px; }
.adm-perm small { color: var(--muted); font-size: 12px; }
.adm-yes { color: var(--royal); font-weight: 800; }
.adm table td.tc { text-align: center; }
.adm-log { list-style: none; margin: 0; padding: 0; display: grid; }
.adm-log li { display: grid; grid-template-columns: 130px auto 1fr; gap: 2px 12px; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line); position: relative; align-items: baseline; }
.adm-log li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.adm-log li.adm-log-team::before, .adm-log li.adm-log-support::before { background: var(--royal); }
.adm-log li.adm-log-server::before, .adm-log li.adm-log-maintenance::before { background: var(--warn); }
.adm-log li.adm-log-premium::before { background: var(--sun); }
.adm-log .when { color: var(--muted); font-size: 12.5px; }
.adm-log code, .adm-log small { grid-column: 2 / -1; }
.adm-log code { font-size: 12px; color: var(--muted); }
.adm-log .ip { font-size: 11.5px; }
.adm-logs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.adm-logs li code { display: block; white-space: pre-wrap; word-break: break-word; font-size: 12px; padding: 6px 11px; border-radius: 8px; background: var(--well); border-left: 3px solid var(--warn); }
.adm-logs li.error code { border-left-color: var(--err); }

.brand-previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px; align-items: start; }
.brand-fig { margin: 0; display: grid; gap: 10px; }
.brand-fig img { width: 100%; display: block; border: 1px solid var(--line); background: var(--well); }
.brand-fig.avatar img { border-radius: 50%; max-width: 220px; aspect-ratio: 1; }
.brand-fig.banner img { border-radius: var(--r-m); aspect-ratio: 17 / 6; }
.brand-fig figcaption { display: grid; gap: 8px; }
@media (max-width: 860px) { .brand-previews { grid-template-columns: minmax(0, 1fr); } }

/* ── 10 Öffentliche Textseiten (Befehle, Status, Rechtliches – vom Server gerendert) ── */
.docpage { min-height: 100vh; display: flex; flex-direction: column; }
.doc-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.doc-top nav { display: flex; gap: 4px 18px; margin-left: auto; flex-wrap: wrap; }
.doc-top nav a, .doc-foot a { color: var(--muted); text-decoration: none; font-weight: 500; }
.doc-top nav a:hover, .doc-foot a:hover { color: var(--text); }
.doc-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -.035em; color: var(--text); text-decoration: none; }
.doc { width: 100%; max-width: 860px; margin: 0 auto; padding: 44px 20px 72px; flex: 1; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 14px; }
.doc h2 { font-family: var(--display); font-size: 22px; font-weight: 650; margin: 38px 0 10px; }
.doc h3 { font-size: 17px; margin: 0 0 4px; }
.doc p, .doc li { max-width: 72ch; }
.doc li { margin: 4px 0; }
.doc mark { background: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--text); border-radius: 4px; padding: 0 4px; }
.doc-lead { color: var(--muted); font-size: 17.5px; }
.doc-warn { border: 1px solid var(--warn); color: var(--warn); border-radius: var(--r-m); padding: 10px 14px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.doc-toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 14px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 550; }
.doc-toc a:hover { background: var(--deck-2); }
.doc-mod { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.doc-cmds, .doc-subs, .doc-opts { list-style: none; padding: 0; margin: 8px 0 0; }
.doc-cmd { padding: 8px 0; }
.doc-cmd p { margin: 2px 0 0; color: var(--muted); }
.doc-subs { padding-left: 16px; border-left: 2px solid var(--line); }
.doc-subs li { padding: 4px 0; }
.doc-opts { padding-left: 16px; font-size: 14px; color: var(--muted); }
.doc-name { font-family: var(--mono); font-size: 14px; color: var(--sun-text); font-weight: 600; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 20px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.doc-foot span { margin-left: auto; }
.doc-status { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 650; margin: 8px 0 22px; }
.doc-status.ok { color: var(--ok); } .doc-status.err { color: var(--err); }
.doc-status.err .pulse { background: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 25%, transparent); }
.doc table { width: 100%; max-width: 580px; margin: 8px 0 18px; }

/* ── Kleine Bildschirme: eigene Navigation unten, ein Daumen reicht ───────── */
@media (max-width: 1040px) {
  .nexus { grid-template-columns: 1fr; padding: clamp(12px, 3vw, 22px); }
  .nexus-read { padding: 0 6px 6px; }
  .nexus .orbit { max-width: 440px; }
  .land-hero { grid-template-columns: 1fr; }
  .land-copy h1 { max-width: 14em; }
  .land-hero .orbit { max-width: 460px; }
}
@media (max-width: 860px) {
  :root { --bar: 56px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .brand-word, .topbar .search-btn span, .topbar .search-btn kbd, .topbar .user-btn > span:not(.av), .topbar .user-btn .chev, .topbar .lang-btn, .topbar > .icon-btn { display: none; }
  .topbar .search-btn { width: 40px; padding: 0; border-color: transparent !important; }
  .server-btn { max-width: none; flex: 0 1 auto; min-width: 0; }
  .topbar .user-btn { padding: 0 4px; }
  .main { padding: 20px 14px calc(var(--tabs) + 40px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--bg-2) 90%, transparent); backdrop-filter: blur(18px) saturate(1.3); border-top: 1px solid var(--line); }
  .tab { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 550; padding: 0 2px; min-width: 0; }
  .tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-ic { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; transition: background .16s; }
  .tab .ic { width: 22px; height: 22px; }
  .tab.active { color: var(--text); }
  .tab.active .tab-ic { background: color-mix(in srgb, var(--sun) 20%, transparent); color: var(--sun-text); }
  .toasts { left: 12px; right: 12px; bottom: calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); justify-items: stretch; }
  .toast { max-width: none; }
  .savebar { bottom: calc(var(--tabs) + 10px + env(safe-area-inset-bottom)); border-radius: 22px; padding: 10px 12px; }
  .savebar .sp { display: none; }
  .savebar .save-note { width: 100%; }
  .savebar .save-note:empty { display: none; }
  .savebar .btn { flex: 1; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 22px; }
  .seg::-webkit-scrollbar { display: none; }
  .adm-tabs { flex-wrap: nowrap; border-radius: 999px; }
  .head { gap: 12px; margin-bottom: 18px; }
  .head-ic, .head-ic .ico, .planet.big { width: 46px; height: 46px; }
  .head-ic > .ic, .planet.big .ic { width: 23px; height: 23px; }
  .head-act { width: 100%; }
  .field { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .field:has(> div:last-child > .switch:only-child) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .subrow { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; border-radius: 16px; }
  .pal-wrap { padding-top: 8px; }
  .dlg-wrap { align-items: end; padding: 10px; }
  .dlg { border-radius: 22px; }
  .dlg-actions .btn { flex: 1; min-height: 46px; }
  .btn { min-height: 42px; }
  .btn.small { min-height: 36px; }
  .mgrid { grid-template-columns: minmax(0, 1fr); }
  .mcard { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .mcard .mtop { display: contents; }
  .mcard .mtop .planet { grid-row: 1 / span 2; }
  .mcard .mtop .sp { display: none; }
  .mcard .mtop > :last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .mcard h3 { grid-column: 2; grid-row: 1; margin: 0; padding-right: 60px; align-self: center; }
  .mcard p { grid-column: 2; -webkit-line-clamp: 2; line-clamp: 2; }
  .mcard .chips { display: none; }
  .mcard > .btn { grid-column: 1 / -1; }
  .grid-guilds { grid-template-columns: minmax(0, 1fr); }
  .status { padding: 16px; }
  .status-act { width: 100%; } .status-act .btn { flex: 1; }
  .land-top .land-link { display: none; }
  .land-hero { border-radius: 26px; }
  .land-cta .btn { flex: 1 1 100%; }
  .ob { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .ob-side { padding: 18px 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ob-deco { left: auto; right: -260px; bottom: -330px; }
  .ob-brand p, .ob-foot { display: none; }
  .ob-brand .brand.big .mark { width: 30px; height: 30px; } .ob-brand .brand.big .brand-word { font-size: 24px; }
  .ob-steps { margin: 14px 0 0; grid-auto-flow: column; justify-content: start; gap: 8px; }
  .ob-steps li span:last-child { display: none; }
  .ob-steps li { padding: 0; }
  .ob-main { align-items: flex-start; }
  .ob-pane { padding: 26px 16px 40px; }
  .ob-actions .btn.primary { flex: 1; }
  .adm-log li { grid-template-columns: 1fr; } .adm-log code, .adm-log small { grid-column: auto; }
  .lb-list li { grid-template-columns: 28px 36px 1fr; padding: 10px 12px; } .lb-stat { grid-column: 3; text-align: left; display: flex; gap: 10px; }
  .lb-av { width: 36px; height: 36px; }
  .doc-top nav { margin-left: 0; width: 100%; }
}
@media (min-width: 861px) { .sheet-wrap { display: none; } }

/* ── 11 Architekt · Beispiel-Server · Neu laden ───────────────────────────── */
.linklike { border: 0; background: none; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.linklike:hover { color: var(--text); }
.reload-btn.spin .ic { animation: turn .8s linear infinite; }
.server-btn.static { cursor: default; }
.nav .tag.pro { flex: none; margin-left: auto; font-size: 9.5px; padding: 0 7px; }
.nav.nav-arch .ic { color: var(--sun-text); }

.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 9px 18px; background: color-mix(in srgb, var(--sun) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); font-size: 14px; }
.demo-bar > span { flex: 1; min-width: 220px; }
.demo-bar strong { color: var(--sun-text); margin-right: 4px; }
.land-try { margin: 16px 0 0; font-size: 14.5px; }
.land-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px 28px; flex-wrap: wrap; }
.land-facts li { display: grid; gap: 1px; }
.land-facts b { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.land-facts span { font-size: 12.5px; color: var(--muted); }
.land-facts a { text-decoration: none; }
.ob-look { margin-top: 18px; }
.setup-first { border-color: color-mix(in srgb, var(--sun) 55%, transparent); background: color-mix(in srgb, var(--sun) 7%, var(--deck)); }

.arch-hero { position: relative; overflow: hidden; padding: 30px 32px 26px; margin-bottom: 16px; border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--royal) 22%, transparent), transparent 55%), radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--sun) 13%, transparent), transparent 60%), var(--bg-2); }
.arch-hero h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 650; letter-spacing: -.02em; position: relative; }
.arch-hero > p { margin: 8px 0 16px; max-width: 62ch; position: relative; }
.arch-deco { position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; pointer-events: none; }
.arch-deco i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--royal) 45%, transparent); animation: turn 60s linear infinite; }
.arch-deco i:nth-child(2) { inset: 56px; border-color: color-mix(in srgb, var(--sun) 40%, transparent); animation-duration: 44s; animation-direction: reverse; }
.arch-deco i:nth-child(3) { inset: 112px; border-color: color-mix(in srgb, var(--mint) 40%, transparent); animation-duration: 30s; }
.arch-deco i::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--royal); }
.arch-deco i:nth-child(2)::after { background: var(--sun); } .arch-deco i:nth-child(3)::after { background: var(--mint); }
.arch-input { position: relative; width: 100%; min-height: 132px; padding: 16px 18px; font-size: 16px; line-height: 1.55; border-radius: var(--r-l); border: 1.5px solid var(--line-2); background: color-mix(in srgb, var(--well) 82%, transparent); resize: vertical; }
.arch-input:focus { border-color: var(--sun); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 20%, transparent); }
.arch-chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.arch-go { position: relative; margin-top: 18px; }
.arch-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.arch-facts > div { display: grid; gap: 3px; padding: 14px 16px; border-radius: var(--r-m); border: 1px solid var(--line); }
.arch-facts span { color: var(--muted); font-size: 13.5px; }
.arch-show { padding: 22px; border-radius: var(--r-xl); border: 1px dashed var(--line-2); margin-bottom: 16px; }
.arch-show > p { margin: 0 0 14px; max-width: 76ch; }

.arch-think { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 70px 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--royal) 18%, transparent), transparent 60%), var(--bg-2); }
.arch-think h2 { font-family: var(--display); font-size: 26px; margin-top: 18px; }
.boot-orbit.big { width: 84px; height: 84px; } .boot-orbit.big::before { inset: 26px; } .boot-orbit.big i { width: 13px; height: 13px; top: -7px; margin-left: -6.5px; }
.arch-line { margin: 0; min-height: 1.6em; color: var(--sun-text); font-weight: 550; }

.arch-sum > p { margin: 0 0 12px; max-width: 80ch; font-size: 15.5px; }
.arch-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.arch-stats span { padding: 4px 12px; border-radius: 999px; background: var(--deck-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.arch-stats b { color: var(--text); font-family: var(--display); font-size: 16px; }
.arch-note { display: flex; gap: 9px; align-items: flex-start; margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.arch-note .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--sky); }
.arch-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.arch-col { margin-bottom: 16px; }
.arch-sub { margin-top: 22px !important; }
.arch-x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; color: var(--faint); display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.arch-x .ic { width: 13px; height: 13px; }
:is(.tree-cat, .tree-ch, .role-pill, .arch-mod, .arch-msg):hover .arch-x, .arch-x:focus-visible, .arch-x[aria-pressed="true"] { opacity: 1; }
.arch-x:hover { color: var(--err); background: color-mix(in srgb, var(--err) 14%, transparent); }
.arch-x[aria-pressed="true"] { color: var(--ok); } .arch-x[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.off > :not(.arch-x):not(.arch-msg-head), .off .arch-msg-head > :not(.arch-x) { opacity: .38; }
.off .tree-name, .off strong, .role-pill.off > span:not(.tag) { text-decoration: line-through; }
.arch-tree { display: grid; }
.tree-cat { display: flex; align-items: center; gap: 8px; padding: 12px 4px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tree-cat:first-child { padding-top: 0; }
.tree-ch { display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 10px; border-radius: 8px; min-height: 34px; }
.tree-ch:hover { background: var(--deck-2); }
.tree-ic { width: 20px; text-align: center; color: var(--faint); font-weight: 600; font-size: 17px; line-height: 1; display: grid; place-items: center; flex: none; }
.tree-ic .ic { width: 16px; height: 16px; }
.tree-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-ch .tree-name { font-weight: 550; }
.arch-roles { display: flex; gap: 8px; flex-wrap: wrap; }
.role-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--deck-2); font-weight: 550; font-size: 14px; }
.role-pill > i { --c: var(--faint); width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.role-pill .arch-x { width: 22px; height: 22px; opacity: 1; }
.arch-mods { display: grid; }
.arch-mod { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.arch-mod:first-child { border-top: 0; padding-top: 0; }
.arch-mod-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.arch-mod-tx strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arch-mod-tx .muted { font-size: 13.5px; }
.arch-mod details { margin-top: 5px; font-size: 13.5px; }
.arch-mod summary { cursor: pointer; color: var(--link); width: fit-content; }
.arch-set { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.4fr); gap: 4px 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.arch-set:first-of-type { margin-top: 6px; }
.arch-set span { color: var(--muted); }
.arch-set code { font-family: var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.arch-msg { padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--line); border-left: 4px solid var(--sun); background: var(--well); margin-bottom: 10px; }
.arch-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.arch-text { margin: 6px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: color-mix(in srgb, var(--text) 88%, transparent); }
.arch-msg p { margin: 4px 0 0; }
.arch-refine .keyrow input { min-width: 240px; }

.arch-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.arch-step { display: flex; gap: 12px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line); color: var(--muted); }
.arch-step:first-child { border-top: 0; }
.arch-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.arch-dot .ic { width: 12px; height: 12px; }
.arch-step-tx { flex: 1; min-width: 0; display: grid; }
.arch-step-tx strong { color: var(--text); font-weight: 600; }
.arch-step-tx small { color: var(--warn); overflow-wrap: anywhere; }
.arch-state { font-size: 12.5px; white-space: nowrap; }
.arch-step.run { color: var(--text); } .arch-step.run .arch-dot { border-color: var(--sun); border-top-color: transparent; animation: turn .8s linear infinite; }
.arch-step.ok .arch-dot { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.arch-step.reuse .arch-dot { color: var(--faint); }
.arch-step.warn .arch-dot { border-color: var(--warn); color: var(--warn); }
.arch-step.err .arch-dot { background: var(--err); border-color: var(--err); color: var(--on-err); } .arch-step.err small, .arch-step.err .arch-state { color: var(--err); }
.arch-done { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--deck)); }
.arch-done.part { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 7%, var(--deck)); }
.adm-key { display: block; flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--well); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; user-select: all; }
.adm-table tr.off td:first-child { opacity: .55; }
@media (max-width: 980px) { .arch-plan { grid-template-columns: 1fr; } .arch-facts { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .arch-hero { padding: 22px 18px; } .arch-deco { opacity: .5; }
  .arch-x { opacity: 1; }
  .arch-go .btn.big { width: 100%; }
  .demo-bar { padding: 9px 14px; font-size: 13.5px; }
  .topbar > .reload-btn { display: grid; }
}


/* ── Bewegung: nur als Antwort auf eine Handlung – und der Orbit ──────────── */
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes core-pulse { from { opacity: .75; scale: 1; } to { opacity: 0; scale: 1.55; } }
@keyframes ignite { from { opacity: .9; scale: 1; } to { opacity: 0; scale: 2.3; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; scale: .96; translate: 0 6px; } }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } }
@keyframes sheet-in { from { translate: 0 100%; } }
@keyframes page-in { from { opacity: 0; translate: 0 8px; } }
.orbit.turning .orbit-turn, .orbit.turning .orbit-planet { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spin, .boot-orbit, .btn.busy::before, .arch-step.run .arch-dot, .reload-btn.spin .ic { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}
