/* GM-Webseite: Welt der öffentlichen Seite (website/site.css), dichter gesetzt für die tägliche Arbeit */
@font-face { font-family: "Lilita One"; src: url(/fonts/LilitaOne-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/Nunito.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #0d1314;
  --shell: #0f1718;
  --raise: #121a1b;
  --raise-2: #172122;
  --hover: #1a2627;
  --sel: #1d2829;
  --line: #223031;
  --line-2: #2c3d3e;
  --text: #edf1f0;
  --muted: #a3b0ad;
  --faint: #839290;
  --accent: #f7931e;
  --accent-hi: #ffa840;
  --accent-ink: #1a0d00;
  --accent-soft: rgba(247, 147, 30, .14);
  --danger: #ff7a72;
  --danger-solid: #d9463e;
  --danger-bg: #2a1517;
  --danger-line: #55282a;
  --warn: #e8c04a;
  --warn-bg: #221d0f;
  --warn-line: #4d4020;
  --ok: #5fd38a;
  --ok-bg: #12251a;
  --rar-m: #86d06a;
  --rar-r: #4aa3ff;
  --rar-l: #f7a531;
  --display: "Lilita One", Nunito, system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --r-sm: 8px;
  --r: 12px;
  --shadow: 0 12px 32px -12px rgba(0, 6, 8, .7), 0 2px 6px rgba(0, 6, 8, .35);
}

* { box-sizing: border-box; }
html { height: 100%; scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 Nunito, system-ui, sans-serif;
       -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

/* ---------- Anmeldung ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
         background: radial-gradient(1200px 600px at 50% -10%, #16272a, transparent 70%), var(--bg); }
.login-card { width: min(380px, 100%); display: grid; gap: 6px; }
.login-card h1 { font-size: 40px; line-height: 1; }
.login-sub { color: var(--muted); margin: 6px 0 22px; }
.login-card label { font-weight: 700; font-size: 13px; color: var(--muted); margin-top: 10px; }
.login-card .btn { margin-top: 18px; justify-content: center; height: 44px; }
.login-note { margin-top: 18px; font-size: 12.5px; color: var(--faint); line-height: 1.55; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.rail { background: var(--shell); border-right: 1px solid var(--line); display: flex; flex-direction: column;
        align-items: center; padding: 14px 0 12px; gap: 4px; min-height: 0; }
.rail-mark { font: 22px var(--display); color: var(--accent); text-decoration: none; margin-bottom: 14px; height: 36px;
             display: grid; place-items: center; }
.rail-links { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 10px; overflow-y: auto; }
.rail-link { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; border-radius: 10px;
             text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 800;
             transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.rail-link svg { width: 22px; height: 22px; }
.rail-link[aria-current="page"] { background: var(--sel); color: var(--text); }
.rail-link[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px;
                                          border-radius: 0 3px 3px 0; background: var(--accent); }
@media (hover: hover) { .rail-link:not([aria-current]):hover { color: var(--text); background: var(--hover); } }
.rail-count { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
              background: var(--danger-solid); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.rail-foot { margin-top: auto; position: relative; }
.rail-me { border: 0; background: none; padding: 4px; border-radius: 50%; }
.stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.menu { position: fixed; left: 76px; bottom: 12px; min-width: 200px; background: var(--raise-2); border-radius: var(--r);
        box-shadow: var(--shadow); padding: 6px; z-index: 30; transform-origin: bottom left;
        animation: pop 160ms var(--ease-out); }
.menu-head { padding: 8px 10px 10px; display: grid; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head span { color: var(--muted); font-size: 12px; }
.menu button { width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: var(--r-sm); font-weight: 700; }
@media (hover: hover) { .menu button:hover { background: var(--hover); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* Kopf eines Bereichs */
.view-head { display: flex; align-items: center; gap: 16px; padding: 18px 28px 14px; border-bottom: 1px solid var(--line);
             flex-wrap: wrap; }
.view-head h1 { font-size: 28px; line-height: 1.1; }
.view-head .grow { flex: 1; }
.view-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 28px 40px; }

/* ---------- Bausteine ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0;
       background: var(--sel); color: var(--text); font-weight: 800; font-size: 13.5px; white-space: nowrap;
       text-decoration: none; transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.btn.danger.solid { background: var(--danger-solid); color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
@media (hover: hover) {
  .btn:not(:disabled):hover { background: var(--hover); }
  .btn.primary:not(:disabled):hover { background: var(--accent-hi); }
  .btn.danger:not(:disabled):hover { background: #34191b; }
  .btn.danger.solid:not(:disabled):hover { background: #e7524a; }
  .btn.ghost:not(:disabled):hover { color: var(--text); background: var(--hover); }
}
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor;
                      border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

input, select, textarea { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; height: 38px;
       padding: 0 12px; outline: none; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select { padding-right: 30px; appearance: none; cursor: pointer;
         background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3b0ad' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; accent-color: var(--accent); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 800; font-size: 12.5px; color: var(--muted); }
.field small { color: var(--faint); font-size: 12px; }
.form-error { color: var(--danger); font-size: 13px; font-weight: 700; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; translate: 0 -50%; color: var(--faint); pointer-events: none; }
.search input { width: 100%; padding-left: 38px; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-weight: 800; font-size: 12.5px;
              color: var(--muted); transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--sel); color: var(--text); }
@media (hover: hover) { .seg button:not([aria-pressed="true"]):hover { color: var(--text); } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: none; padding: 4px 11px; border-radius: 99px; font-weight: 800;
        font-size: 12.5px; color: var(--muted); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--faint); } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px;
         font-weight: 800; background: var(--sel); color: var(--muted); white-space: nowrap; }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.role { text-transform: capitalize; }

.tabs::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 11px 0; font-weight: 800; color: var(--faint); white-space: nowrap;
               box-shadow: inset 0 -2px 0 transparent; transition: color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
@media (hover: hover) { .tabs button:not([aria-selected="true"]):hover { color: var(--text); } }

.panel { background: var(--raise); border: 1px solid var(--line); border-radius: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.panel-head h2 { font-size: 19px; }
.panel-head .grow { flex: 1; }
.panel-body { padding: 0 16px 16px; }
.section-title { font: 19px var(--display); margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.section-title small { font: 700 12.5px Nunito, sans-serif; color: var(--faint); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.empty b { color: var(--text); font-size: 15px; }
.empty img { width: 64px; height: auto; opacity: .9; margin-bottom: 6px; }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--raise) 0, var(--raise-2) 40%, var(--raise) 80%);
            background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-row { height: 44px; margin-bottom: 8px; }

/* Porträt-Kreis: das Gesicht ist die Kennung jedes Spielers */
.face { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
        background: radial-gradient(circle at 50% 36%, #2a3c3d, #121a1b 72%); }
.face svg { position: absolute; left: 6%; top: 12%; width: 88%; height: 88%; overflow: visible; }
.face-sm { width: 28px; height: 28px; }
.face-lg { width: 112px; height: 112px; border-radius: 26px; }
.face-md { width: 48px; height: 48px; }
.face.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 9px; height: 9px; border-radius: 50%;
                      background: var(--ok); box-shadow: 0 0 0 2px var(--raise); }
.face-lg.online::after { width: 14px; height: 14px; right: 6px; bottom: 6px; box-shadow: 0 0 0 3px var(--bg); }

/* ---------- Spieler: Liste + Dossier ---------- */
.desk { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100%; min-height: 0; }
.roster { border-right: 1px solid var(--line); background: #101819; display: flex; flex-direction: column; min-height: 0; }
.roster-top { padding: 16px 14px 10px; display: grid; gap: 10px; }
.roster-top .seg { display: flex; }
.roster-top .seg button { flex: 1; }
.roster-list { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.roster-count { padding: 2px 8px 8px; font-size: 12px; font-weight: 700; color: var(--faint); }
.prow { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 11px; text-decoration: none;
        transition: background-color 120ms var(--ease-out); }
.prow b { display: block; font-weight: 800; line-height: 1.25; }
.prow small { display: block; color: var(--faint); font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .who { min-width: 0; flex: 1; }
.prow .flags { display: flex; gap: 4px; }
.prow[aria-current="true"] { background: var(--sel); box-shadow: inset 0 0 0 1px rgba(247, 147, 30, .45); }
@media (hover: hover) { .prow:not([aria-current="true"]):hover { background: var(--hover); } }

.dossier { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dossier-head { display: flex; gap: 22px; align-items: center; padding: 24px 28px 18px; }
.dossier-head h1 { font-size: 38px; line-height: 1; }
.dossier-head .facts { color: var(--muted); margin-top: 6px; }
.dossier-head .facts b { color: var(--text); font-weight: 800; }
.dossier-head .badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.dossier-head .actions { margin-left: auto; align-self: flex-start; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.back { display: none; }
.class-sig { width: 22px; height: 22px; display: inline-block; vertical-align: -5px; margin-right: 4px; }
.dossier-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 28px 48px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.chars { display: grid; gap: 8px; }
.charcard { text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg);
            border: 1px solid var(--line); text-align: left; width: 100%; transition: border-color 160ms var(--ease-out); }
.charcard[aria-pressed="true"] { border-color: var(--accent); }
.charcard b { font: 17px var(--display); letter-spacing: .01em; }
.charcard small { display: block; color: var(--faint); font-size: 12.5px; }
.charcard .grow { flex: 1; min-width: 0; }
@media (hover: hover) { .charcard:not([aria-pressed="true"]):hover { border-color: var(--line-2); } }

.wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.coin { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.coin img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.coin b { display: block; font: 20px var(--display); letter-spacing: .01em; line-height: 1.1; }
.coin span { font-size: 12px; color: var(--faint); font-weight: 700; }

.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 7px 12px; font-size: 13.5px; }
.kv dt { color: var(--faint); font-weight: 700; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.gear { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: var(--bg);
        border: 1px solid var(--line); }
.gear .gem { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 13px var(--display);
             color: var(--bg); }
.gear b { display: block; font-size: 13.5px; line-height: 1.3; }
.gear small { color: var(--faint); font-size: 12px; }
.r0 .gem { background: var(--rar-m); } .r1 .gem { background: var(--rar-r); } .r2 .gem { background: var(--rar-l); }
.r1 b { color: #9cccff; } .r2 b { color: #ffc670; }
.gear.equipped { border-color: var(--line-2); background: var(--raise-2); }
.itemlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.itemlist div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #182223; font-size: 13.5px; }
.itemlist span { color: var(--faint); font-weight: 700; }

/* Tabellen */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 800; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--line);
            white-space: nowrap; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.table td { padding: 9px 10px; border-bottom: 1px solid #182223; vertical-align: middle; }
.table tr.click { cursor: pointer; }
@media (hover: hover) { .table tr.click:hover td { background: var(--raise); } }
.table .who { display: flex; align-items: center; gap: 10px; }

/* Ereignisse */
.events { display: grid; }
.ev { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 10px;
      border-radius: 10px; }
.ev + .ev { box-shadow: 0 -1px 0 #172021; }
.ev .face, .ev .glyph { margin-top: 1px; }
.ev .text { min-width: 0; overflow-wrap: anywhere; }
.ev .text a { font-weight: 800; text-decoration: none; }
@media (hover: hover) { .ev .text a:hover { color: var(--accent); } }
.ev .text em { font-style: normal; color: var(--muted); }
.ev .text q { color: var(--text); quotes: "\201C" "\201D"; }
.ev .meta { color: var(--faint); font-size: 12px; white-space: nowrap; text-align: right; }
.ev .detail { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.ev.sev-2 { background: var(--warn-bg); }
.ev.sev-3 { background: var(--danger-bg); }
.ev.fresh { animation: fresh 260ms var(--ease-out); }
@keyframes fresh { from { opacity: 0; transform: translateY(-4px); } }
.tag { font-weight: 800; color: var(--accent); }
.tag.danger { color: var(--danger); } .tag.warn { color: var(--warn); } .tag.ok { color: var(--ok); } .tag.mute { color: var(--muted); }
.glyph { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sel); color: var(--muted); flex: none; }
.glyph svg { width: 16px; height: 16px; }
.glyph.danger { background: var(--danger-bg); color: var(--danger); }
.glyph.warn { background: var(--warn-bg); color: var(--warn); }
.glyph.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- Live ---------- */
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b { display: block; font: 26px var(--display); letter-spacing: .01em; line-height: 1.05; }
.stat span { font-size: 12px; font-weight: 700; color: var(--faint); }
.stat.alarm b { color: var(--danger); }
.live { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.alert { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px;
         background: var(--danger-bg); box-shadow: inset 0 0 0 1px var(--danger-line); }
.alert.warn { background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn-line); }
.alert + .alert { margin-top: 8px; }
.alert .title { font-weight: 700; }
.alert p { color: var(--muted); font-size: 13px; margin: 2px 0 10px; overflow-wrap: anywhere; }
.alert .meta { font-size: 12px; color: var(--faint); }
.alert-out { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); opacity: 0; transform: translateX(-8px); }
.feed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.feed-head h2 { font-size: 19px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 211, 138, .16); }
.pulse.paused { background: var(--faint); box-shadow: none; }

/* ---------- Dialog, Toast ---------- */
.dialog { border: 0; padding: 0; border-radius: 16px; background: var(--raise-2); color: var(--text); width: min(520px, calc(100% - 32px));
          box-shadow: var(--shadow); max-height: calc(100dvh - 40px); }
.dialog::backdrop { background: rgba(4, 8, 9, .62); }
.dialog[open] { animation: dialog-in 220ms var(--ease-out); }
.dialog[open]::backdrop { animation: fade 220ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.dialog form { display: grid; gap: 14px; padding: 22px; }
.dialog h2 { font-size: 24px; }
.dialog .lead { color: var(--muted); margin-top: -6px; }
.dialog .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.dialog .warnbox { padding: 10px 12px; border-radius: 10px; background: var(--danger-bg); color: #ffc9c5; font-size: 13px; }
.pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pick button { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; text-align: left;
               padding: 8px 12px; font-size: 13.5px; }
.pick button small { color: var(--faint); }
.pick button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
@media (hover: hover) { .pick button:not([aria-pressed="true"]):hover { background: var(--hover); } }

.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 50; width: min(360px, calc(100% - 40px)); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--raise-2); box-shadow: var(--shadow); font-weight: 700;
         display: flex; gap: 10px; align-items: flex-start; transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out); }
.toast.error { color: var(--danger); }
.toast.enter, .toast.leave { opacity: 0; transform: translateY(12px); }

/* ---------- Server / Team / Sperren ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.event-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.event-pick button { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line);
                     background: var(--bg); font-size: 12px; font-weight: 800; color: var(--muted); }
.event-pick img { width: 40px; height: 40px; object-fit: contain; }
.event-pick button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #182223; }
.switch:first-child { border-top: 0; }
.switch b { display: block; }
.switch small { color: var(--faint); font-size: 12.5px; }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 12px; border: 0; background: var(--line-2); flex: none;
          transition: background-color 160ms var(--ease-out); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text);
                 transition: transform 200ms var(--ease-out); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { transform: translateX(18px); background: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .menu, .dialog[open], .dialog[open]::backdrop, .ev.fresh { animation-name: fade; }
  .toast.enter, .toast.leave { transform: none; }
  .alert-out { transform: none; }
  .skeleton { animation: none; }
}

/* ---------- Schmale Fenster ---------- */
@media (max-width: 1100px) {
  .live, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rail { order: 2; flex-direction: row; padding: 6px 8px; border-right: 0; border-top: 1px solid var(--line); }
  .rail-mark, .rail-foot { display: none; }
  .rail-links { flex-direction: row; padding: 0; overflow-x: auto; scrollbar-width: none; gap: 0; }
  .rail-links::-webkit-scrollbar { display: none; }
  .rail-link { flex: 1 0 52px; min-width: 52px; font-size: 10px; padding: 7px 0 5px; }
  .rail-link svg { width: 20px; height: 20px; }
  .rail-count { right: 4px; }
  .rail-link[aria-current="page"]::before { left: 12px; right: 12px; top: auto; bottom: -6px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .desk { grid-template-columns: minmax(0, 1fr); }
  .desk.has-dossier .roster, .desk:not(.has-dossier) .dossier { display: none; }
  .view-head, .dossier-head, .view-body, .dossier-body { padding-left: 16px; padding-right: 16px; }
  .tabs { padding: 0 16px; }
  .dossier-head { flex-wrap: wrap; }
  .back { display: inline-flex; flex-basis: 100%; width: max-content; margin: -8px 0 -6px -10px; }
  .dossier-head .actions { margin-left: 0; justify-content: flex-start; }
  .face-lg { width: 80px; height: 80px; border-radius: 20px; }
  .wallet { grid-template-columns: minmax(0, 1fr); }
  .event-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feed-box { margin-top: 10px; padding: 6px; }
.more-row { justify-content: center; margin-top: 12px; }
