/* =====================================================================================================
   Rose 0.4 – neues Erscheinungsbild (Vorbild: helle Glas-Oberfläche auf Mint→Lavendel-Verlauf)
   Steht NACH rose.css und select.css und gilt überall. Grundsätze:
   • Schrift Urbanist (lokal), eher leicht: große Zahlen dünn, Überschriften normal kräftig
   • Grund: weicher Verlauf Mint → Hellblau → Lavendel; Flächen: weißes Glas (durchscheinend), Kacheln fast weiß
   • Hauptknopf schwarz (wie „Pay Invoice“), sonst weiße Knöpfe; runde Symbol-Kreise mit feinem Rand
   • Farben nur als Pastell für Status/Fortschritt: Grün #ec0b7a · Gelb #ec0b7a · Lavendel #f796c6 · Orange #ec0b7a
   • Zähler (ungelesen usw.): kleine Koralle-Punkte mit weißer Zahl
   ===================================================================================================== */
@font-face { font-family: 'Urbanist'; src: url('/fonts/urbanist-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Urbanist'; src: url('/fonts/urbanist-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sans: 'Urbanist', 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Grund und Flächen */
  --grad-page: radial-gradient(55% 60% at 0% 0%, #f14e9f 0%, rgba(241, 78, 159, 0) 70%),
    radial-gradient(60% 70% at 100% 0%, #f792c4 0%, rgba(247, 146, 196, 0) 72%),
    radial-gradient(60% 60% at 0% 100%, #f1489b 0%, rgba(241, 72, 155, 0) 72%),
    radial-gradient(60% 60% at 100% 100%, #f8a0cb 0%, rgba(248, 160, 203, 0) 70%),
    linear-gradient(135deg, #f366ac 0%, #f688be 45%, #f794c4 100%);
  --bg: #f688be;
  --bg-2: rgba(255, 255, 255, 0.72);       /* Felder, leise Flächen */
  --surface: rgba(255, 255, 255, 0.6);     /* Karten: weißes Glas */
  --surface-2: rgba(10, 10, 16, 0.06);     /* Hover, Chips, graue Kreise */
  --surface-3: rgba(10, 10, 16, 0.1);
  --solid: #ffffff;                        /* undurchsichtig: Fenster, Listen, Meldungen */
  --tile: rgba(255, 255, 255, 0.88);       /* Kacheln in Karten (fast weiß) */
  --line: rgba(10, 10, 16, 0.1);
  --line-2: rgba(10, 10, 16, 0.16);
  --ring: rgba(10, 10, 16, 0.22);          /* feiner Rand der Symbol-Kreise */
  --text: #0a0a10;
  --muted: #56565c;
  --faint: #68686e;
  --ph: #8f8f95;
  --ink: #0a0a10;
  --ink-2: #26262c;
  --ink-text: #ffffff;
  --ink-muted: #bfbfc5;
  /* Akzent: Schwarz (statt Rot) – Rose-Namen bleiben, damit alle Bausteine automatisch mitziehen */
  --rose: #0a0a10;
  --rose-hover: #2a2a30;
  --rose-2: #0a0a10;
  --rose-deep: #0a0a10;
  --rose-soft: rgba(247, 150, 198, 0.6);
  --rose-glow: rgba(179, 14, 96, 0.18);
  --on-rose: #ffffff;
  --grad-rose: #0a0a10;
  --grad-ink: #0a0a10;
  --glow-rose: none;
  /* Palette: Lila #ec0b7a · Lime #ec0b7a · Schwarz #0a0a10 · Weiß #FFFFFF (Rollen: positiv = Lime, Hinweis = Lila,
     dringend = Schwarz, sanfter Akzent = helles Lila; Schrift auf Lime/Lila schwarz) */
  --mint: #ec0b7a;
  --sun: #ec0b7a;
  --lilac: #f9b1d4;
  --peach: #0a0a10;
  --mint-ink: #0a0a10;
  --sun-ink: #0a0a10;
  --lilac-ink: #6d133f;
  --peach-ink: #ffffff;
  --coral: #ec0b7a;                        /* Zähler-Punkt */
  --ok: #4c1530;
  --warn: #6d133f;
  --err: #8f114f;
  /* Formen und Schatten */
  --radius: 30px;
  --radius-s: 20px;
  --r-btn: 16px;
  --shadow: 0 30px 80px rgba(10, 10, 16, 0.22);
  --shadow-s: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 18px rgba(10, 10, 16, 0.06);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 34px rgba(10, 10, 16, 0.07);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 44px rgba(10, 10, 16, 0.13);
  --glass-blur: blur(22px) saturate(1.25);
}

/* ---------- Grund ---------- */
html { background: var(--bg); }
body, body:not(.x) { background: transparent; color: var(--text); font: 500 15px/1.5 var(--sans); letter-spacing: 0; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--grad-page); pointer-events: none; }
@media (hover: hover) and (min-width: 761px) { body { background-attachment: scroll; } }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-weight: 500; }
b, strong { font-weight: 700; }
a { color: var(--text); font-weight: 600; }
::selection { background: var(--lilac); color: var(--text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Menü links: helles Glas ---------- */
.side, .side:not(.x) {
  background: rgba(255, 255, 255, 0.34); color: var(--text);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}
.brand b { color: var(--text); font-weight: 700; letter-spacing: -0.03em; }
.brand small { color: var(--muted); }
.brand img { box-shadow: 0 8px 20px rgba(10, 10, 16, 0.16); }
.nav a, .nav-group-head { color: var(--muted); font-weight: 600; }
.nav a .ico, .nav-group-head .ico { color: currentColor; }
.nav a:hover, .nav a:not(.on):hover, .nav-group-head:hover { background: rgba(255, 255, 255, 0.6); color: var(--text); }
.nav-group.has-on > .nav-group-head { color: var(--text); font-weight: 700; }
.nav a.on, .nav a.on:hover { background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(10, 10, 16, 0.18); }
.nav a.on .ico { color: #fff; }
.nav-chev { color: var(--faint); }
.nav-group-body { border-left-color: rgba(10, 10, 16, 0.14); }
.nav-sep { background: rgba(10, 10, 16, 0.12); }
.nav a:not(.on) .ico-rose, .tabbar a:not(.on) .ico-rose { color: currentColor; }
.side-foot, .side-foot:not(.x) { background: rgba(255, 255, 255, 0.62); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(10, 10, 16, 0.06); }
.side-foot:hover { background: rgba(255, 255, 255, 0.85); }
.side-foot:hover .who b, .side-foot .who b { color: var(--text); }
.side-foot .who span { color: var(--muted); }
@media (min-width: 761px) and (max-width: 1200px) {
  .nav-group > .nav-group-body, .nav-group:not(.open) > .nav-group-body { border-top-color: rgba(10, 10, 16, 0.12); }
}

/* ---------- Kopfzeile: Titel leicht, runde weiße Knöpfe ---------- */
.top, .top:not(.x) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.main > .top, .main > .top:not(.x) { background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); }
.top h1 { font-weight: 500; letter-spacing: -0.025em; }
.top-sub { color: var(--muted); font-weight: 500; }
.top > .btn.ghost.icon, .top > .bell, .top > .btn.ghost.icon:not(.x) {
  background: #fff; color: var(--text); box-shadow: 0 6px 18px rgba(10, 10, 16, 0.1);
}
.top > .btn.ghost.icon:hover, .top > .bell:hover { background: #fff; box-shadow: 0 0 0 1.5px var(--ink) inset, 0 6px 18px rgba(10, 10, 16, 0.1); }
.bell .n, .tab-count, .nav-sum, .msgr-count, .msgr-count:not(.x) { background: var(--coral); color: #0a0a10; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }

/* ---------- Karten: weißes Glas ---------- */
.card { background: var(--surface); box-shadow: var(--shadow-card); border-radius: var(--radius); }
a.card:hover, button.card:hover { box-shadow: var(--shadow-lift); background: rgba(255, 255, 255, 0.72); }
.card h2, .card h3 { font-weight: 600; letter-spacing: -0.02em; }
/* Symbol vor Überschriften und Listen-Symbole: feiner Kreis statt schwarzer Fläche (wie im Vorbild) */
.card h3 > .ico:first-child, .card h2 > .ico:first-child { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.dash-ico, .dash-ico:not(.x) { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.dash-ico .ico { color: var(--text); }
.ag-sec::before { background: var(--ink); box-shadow: none; width: 4px; }

/* Kennzahl: große, leichte Zahl mit kleiner grauer Einheit (wie „67 Items“) */
.stat .label { color: var(--muted); font-weight: 500; }
.stat .value { font-weight: 400; letter-spacing: -0.035em; font-size: 46px; }
.stat .delta { color: var(--muted); }
.up { color: var(--ok); }
.down { color: var(--err); }

/* ---------- Knöpfe ---------- */
.btn, .btn:not(.primary):not(.ghost):not(.danger):not(.dark) {
  border-radius: var(--r-btn); background: rgba(255, 255, 255, 0.82); color: var(--text); font: 600 14.5px var(--sans);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(10, 10, 16, 0.07);
}
.btn:hover, .btn:not(.primary):not(.ghost):not(.danger):not(.dark):hover { background: #fff; }
.btn.small { border-radius: 13px; font-size: 13.5px; }
.btn.icon, .btn.small.icon { border-radius: 50%; }
.btn.primary, .btn.primary.icon, .btn.primary:not(.x) { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(10, 10, 16, 0.18); font-weight: 600; }
.btn.primary:hover, .btn.primary.icon:hover { background: #26262c; box-shadow: 0 12px 28px rgba(10, 10, 16, 0.24); transform: none; }
.btn.primary .ico { color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost, .btn.ghost:not(.x) { background: transparent; box-shadow: none; color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.6); }
.btn.danger, .btn.ghost.danger { color: var(--err); }
.btn.danger:not(.ghost) { background: rgba(255, 255, 255, 0.82); }
.btn:disabled { opacity: 0.42; }

/* ---------- Felder ---------- */
input, select, textarea, input:not(.x) {
  background-color: rgba(255, 255, 255, 0.74); color: var(--text); border-radius: var(--r-btn); font: 500 15px var(--sans);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.1);
}
textarea { border-radius: 20px; }
input:focus, select:focus, textarea:focus, select.sel-open { background-color: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); box-shadow: none; }
label.field, div.field { color: var(--muted); font-weight: 500; }
.hint { color: var(--faint); }
.dt-field { border-radius: var(--r-btn); background: rgba(255, 255, 255, 0.74); font: 500 15px var(--sans); box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.1); }
.dt-field:hover { background: #fff; }
.dt-field:focus-visible, .dt-field.dt-open { box-shadow: 0 0 0 1.5px var(--ink); }
.dt-field.dt-open .dt-ico { color: var(--text); }

/* ---------- Anzeige-Pillen: Pastell ---------- */
.badge { background: rgba(255, 255, 255, 0.78); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.08); }
.badge.rose { background: var(--lilac); color: var(--lilac-ink); box-shadow: none; }
.badge.ok { background: var(--mint); color: var(--on-pink); box-shadow: none; }
.badge.warn { background: var(--sun); color: var(--on-pink); box-shadow: none; }
.badge.err { background: var(--peach); color: var(--peach-ink); box-shadow: none; }

/* ---------- Reiter, Umschalter, Chips ---------- */
.tabs button { background: rgba(255, 255, 255, 0.45); box-shadow: none; font-weight: 600; color: var(--muted); border-radius: 18px; }
.tabs button:hover { background: rgba(255, 255, 255, 0.75); color: var(--text); }
.tabs button.on { background: #fff; color: var(--text); box-shadow: 0 6px 18px rgba(10, 10, 16, 0.1); }
.seg { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.seg button { font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 4px 12px rgba(10, 10, 16, 0.1); }
.chip { background: rgba(255, 255, 255, 0.78); font-weight: 600; box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(10, 10, 16, 0.06); }
.chip:hover { background: var(--ink); color: #fff; }

/* ---------- Tabellen ---------- */
table.list th { color: var(--faint); font-weight: 600; border-bottom-color: var(--line); }
table.list td { border-bottom-color: var(--line); }
table.list tr.click:hover td { background: rgba(255, 255, 255, 0.6); }

/* ---------- Fenster, Meldungen, Listen ---------- */
.backdrop, .backdrop:not(.x) { background: rgba(60, 60, 60, 0.26); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal, .modal:not(.x) { background: rgba(255, 255, 255, 0.94); box-shadow: 0 40px 100px rgba(10, 10, 16, 0.28), inset 0 1px 0 #fff; backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.modal h2 { font-weight: 500; letter-spacing: -0.03em; }
.drop { background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.drop .item:hover { background: var(--surface-2); }
.toast, .toast:not(.x) { background: var(--ink); color: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(10, 10, 16, 0.25); }
.toast::before { background: var(--lilac); }
.toast.ok::before { background: var(--mint); }
.toast.error::before { background: var(--peach); }
.sel-pop { background: rgba(255, 255, 255, 0.97); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); font-family: var(--sans); font-weight: 500; box-shadow: 0 24px 60px rgba(10, 10, 16, 0.22), 0 0 0 1px rgba(10, 10, 16, 0.06); }
.sel-opt.active { background: var(--surface-2); }
.sel-opt.on { font-weight: 700; }
.sel-check { stroke: var(--ink); }
.sel-search { background: rgba(10, 10, 16, 0.06); font-family: var(--sans); }
.sel-back { background: rgba(60, 60, 60, 0.3); }
.dt-day.today { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--text); }
.dt-day.on { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(10, 10, 16, 0.2); }
.dt-btn.primary { background: var(--ink); color: #fff; }
.dt-t.on { background: var(--ink); }

/* ---------- Leere Bereiche, Trennlinien ---------- */
.empty { color: var(--muted); }
hr { border-top-color: var(--line); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  .top h1 { font-size: 24px; font-weight: 500; }
  .card { border-radius: 26px; }
  .page { padding-bottom: 120px; }
  .main:has(> .page.full) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .toasts, .approval { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .modal, .modal.wide { border-radius: 30px 30px 0 0; }
  .modal::before { background: rgba(10, 10, 16, 0.18); }
}

/* =====================================================================================================
   Profilbilder: Initialen dunkel auf Pastell
   ===================================================================================================== */
.av, .avatar { color: var(--text); font-weight: 600; }
.av.rk-letter { background: var(--lilac); color: var(--text); }
.side-foot .av, .av.side-av { box-shadow: 0 0 0 2px #fff; }

/* =====================================================================================================
   Dashboard / Start: Begrüßung direkt auf dem Verlauf, große zweifarbige Schrift (wie „$ 68,575.00“)
   ===================================================================================================== */
.dash-hello, .dash-hello:not(.x), .hello-hero, .hello-hero:not(.x) {
  background: transparent; background-image: none; color: var(--text); box-shadow: none; padding: 10px 6px 6px; border-radius: 0; overflow: visible;
}
.dash-hello::after, .hello-hero::after { content: none; }
.sticker, .sticker:not(.x) {
  transform: none; background: transparent; box-shadow: none; color: var(--muted); font: 500 15px/1.2 var(--sans);
  text-transform: none; letter-spacing: 0; padding: 0; display: inline-flex; align-items: center; gap: 10px;
}
.sticker::before { content: ''; width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--ring);
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.dash-hello h2, .hello-hero h2 { color: var(--text); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin: 22px 0 24px; }
.dash-hello h2 > span:first-child, .hello-hero h2 > span:first-child { color: var(--text); font-weight: 500; }
.dash-hello h2 .red, .hello-hero h2 .red { color: #65656b; font-weight: 300; }
.dash-hello p, .hello-hero p { color: var(--muted); font-weight: 500; }
.dash-ask, .dash-setup, .dash-ask:not(.x) {
  background: rgba(255, 255, 255, 0.7); color: var(--text); border-radius: 22px; padding: 6px 6px 6px 18px;
  box-shadow: inset 0 1px 0 #fff, 0 12px 34px rgba(10, 10, 16, 0.1); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.dash-ask .ico { color: var(--text); }
.dash-ask input, .dash-ask input:not(.x) { color: var(--text); background: transparent; box-shadow: none; }
.dash-ask input::placeholder { color: var(--ph); }
.dash-ask:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 12px 34px rgba(10, 10, 16, 0.1); }
.dash-ask .btn { border-radius: 16px; }
.dash-setup .ico { color: var(--text); }
.dash-setup, .dash-setup:not(.x) { background: rgba(255, 255, 255, 0.86); padding: 8px 8px 8px 18px; }
.dash-setup b, .dash-setup b:not(.x) { color: var(--text); font-weight: 600; }
.dash-setup .muted, .dash-setup .small, .dash-setup .small.muted { color: var(--muted); }
.dash-setup > .ico { color: var(--text); }
.hello-ico { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.hello-ico .ico { color: var(--text); }
.hello-item:hover .hello-ico { background: var(--ink); }
.hello-item:hover .hello-ico .ico { color: #fff; }

/* Kennzahlen: Pastell-Kacheln (Grün, Gelb, Lavendel, Orange) mit großer, leichter Zahl */
.dash-tiles, .dash-tiles:not(.x), .inv-tiles, .inv-tiles:not(.x) { background: transparent; box-shadow: none; padding: 0; gap: 12px; }
.dash-tile, .dash-tile:not(.x), .inv-tile, .inv-tile:not(.x) {
  color: var(--text); border-radius: 28px; padding: 20px 22px 18px; box-shadow: none; position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 150px;
}
.dash-tile::before, .inv-tile::before, .dash-tile + .dash-tile::before, .inv-tile + .inv-tile::before { content: none; display: none; }
:is(.dash-tile, .inv-tile):nth-child(4n+1) { background: var(--mint); }
:is(.dash-tile, .inv-tile):nth-child(4n+2) { background: var(--sun); }
:is(.dash-tile, .inv-tile):nth-child(4n+3) { background: #0a0a10; }
:is(.dash-tile, .inv-tile):nth-child(4n+4) { background: #ffffff; }
.dash-tile .label, .inv-tile .label { color: rgba(10, 10, 16, 0.66); font-weight: 500; font-size: 14px; }
a.dash-tile .label { padding-right: 40px; }
.dash-tile .value, .inv-tile .value, .dash-tile .value:not(.x) { color: var(--text); font-weight: 300; font-size: 54px; letter-spacing: -0.05em; margin-top: auto; padding-top: 10px; line-height: 1; }
.dash-tile .faint, .dash-tile .dash-sub, .inv-tile .delta, .inv-tile .muted { color: rgba(10, 10, 16, 0.6); font-weight: 500; }
a.dash-tile:hover, :is(.inv-tiles, .dash-tiles) :is(a.card, button.card):hover { filter: brightness(1.03); box-shadow: 0 14px 30px rgba(10, 10, 16, 0.14); background-image: none; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .value, .faint, .dash-sub, .delta, .muted), :is(.dash-tile, .inv-tile):nth-child(4n+3) .value:not(.x) { color: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .faint, .dash-sub, .delta, .muted) { color: rgba(255, 255, 255, 0.72); }
.inv-tile.on, .inv-tile.on:not(.x) { background: var(--ink); color: #fff; }
.inv-tile.on .label, .inv-tile.on .value, .inv-tile.on .delta, .inv-tile.on .muted { color: #fff; }
/* „Pfeil“-Kreis oben rechts (wie ↗ im Vorbild) */
a.dash-tile::after { content: ''; position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.5) no-repeat center / 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
@media (min-width: 1500px) { .dash-top .dash-tile:nth-child(n+3) { border-top: 0; } }
@media (max-width: 760px) {
  .dash-hello h2 .red, .hello-hero h2 .red { color: #4f4f55; font-weight: 400; }
  .dash-tile, .inv-tile { min-height: 124px; padding: 16px 16px 14px; border-radius: 24px; }
  .dash-tile .value, .inv-tile .value { font-size: 42px; }
  .dash-tile:nth-child(n+3), .inv-tile:nth-child(n+3) { border-top: 0; border-radius: 24px; }
  a.dash-tile::after { width: 30px; height: 30px; right: 10px; top: 10px; }
  .dash-hello h2, .hello-hero h2 { font-size: 40px; margin: 18px 0 20px; }
}

/* Karten mit Reiter (wie „Invoice lines“ / „Activity“): Titel im Reiter, der aus der Karte herauswächst */
.dash-card, .dash-card:not(.x) {
  --tab-h: 54px; --tab-fill: var(--surface);
  border-top: var(--tab-h) solid transparent; background-clip: padding-box; border-radius: 0 30px 30px 30px / 0 calc(30px + var(--tab-h)) 30px 30px;
  box-shadow: none; filter: drop-shadow(0 12px 26px rgba(10, 10, 16, 0.07)); padding-top: 14px;
}
.dash-card-head { margin: calc(-14px - var(--tab-h)) -22px 14px; height: var(--tab-h); display: flex; align-items: stretch; gap: 8px; }
.dash-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 22px 0 14px; background: var(--tab-fill); border-radius: 28px 28px 0 0; min-width: 0; max-width: calc(100% - 70px); }
.dash-tab::after { content: ''; position: absolute; right: -26px; bottom: 0; width: 26px; height: 26px; background: radial-gradient(circle at 100% 0, transparent 25.5px, var(--tab-fill) 26px); pointer-events: none; }
.dash-tab h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-tab .dash-ico { width: 40px; height: 40px; }
.dash-count, .dash-count:not(.x) { background: rgba(10, 10, 16, 0.08); color: var(--text); font-weight: 600; box-shadow: none; }
.dash-more, .dash-more:not(.x) { margin: 8px 0 6px auto; align-self: center; height: 40px; min-height: 40px; padding: 0 8px 0 16px; border-radius: 20px 20px 16px 16px; background: rgba(255, 255, 255, 0.4); color: var(--text); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.dash-more:hover { background: rgba(255, 255, 255, 0.75); }
.dash-row { border-radius: 20px; }
.dash-row:hover { background: rgba(255, 255, 255, 0.7); }
.dash-date, .dash-date:not(.x) { background: rgba(255, 255, 255, 0.55); color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); border-radius: 18px; }
.dash-date b { font-weight: 500; }
.dash-date small { color: var(--muted); font-weight: 600; }
.dash-ev.today .dash-date, .dash-ev.today .dash-date:not(.x) { background: var(--mint); box-shadow: none; color: var(--text); }
.dash-ev.today .dash-date small { color: var(--mint-ink); }
@media (max-width: 760px) {
  .dash-card, .dash-card:not(.x) { --tab-h: 50px; border-radius: 0 26px 26px 26px / 0 calc(26px + var(--tab-h)) 26px 26px; }
  .dash-card-head { margin-left: -16px; margin-right: -16px; }
  .dash-tab { padding: 0 16px 0 10px; border-radius: 24px 24px 0 0; }
  .dash-tab h3 { font-size: 18px; }
  .dash-tab .dash-ico { width: 36px; height: 36px; }
  .dash-more, .dash-more:not(.x) { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* =====================================================================================================
   Listen-Auswahl, Nachrichten, Chat, Support
   ===================================================================================================== */
/* gewählter Eintrag = fast weiße Kachel mit feinem Rand (wie die Produkt-Kacheln im Vorbild) */
.msgr-item:hover, .set-item:hover { background: rgba(255, 255, 255, 0.6); }
.msgr-item.on, .msgr-item.on:not(.x), .set-item.on, .set-item.on:not(.x) { background: var(--tile); color: var(--text); box-shadow: 0 8px 22px rgba(10, 10, 16, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.9); }
.msgr-item.on .msgr-prev, .msgr-item.on .msgr-time, .set-item.on .set-txt span, .set-item.on .set-go { color: var(--muted); }
.msgr-item.on.unread .msgr-prev, .msgr-item.on.unread b { color: var(--text); }
.msgr-item.on .tk-st.wartet { background: var(--sun); color: var(--on-pink); box-shadow: none; }
.msgr-item.on .kb-cat { background: var(--lilac); color: var(--lilac-ink); }
.msgr-item.on .tk-st.in_bearbeitung { background: var(--lilac); color: var(--lilac-ink); }
.set-ico, .set-ico:not(.x) { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.set-item.on .set-ico, .set-item.on .set-ico:not(.x) { background: var(--ink); color: #fff; box-shadow: none; }
.set-group-title { color: var(--faint); font-weight: 600; }
.set-title h2 { font-weight: 500; }
.msgr-list, .msgr-list:not(.x) { background: var(--surface); box-shadow: var(--shadow-card); }
.msgr-head h2 { font-weight: 500; }
.msgr-av.team, .msgr-av.team:not(.x) { background: var(--lilac); color: var(--lilac-ink); }
.msgr-av.team.agency { background: var(--mint); color: var(--on-pink); }
.msgr-av.tk-av-creator { background: var(--sun); color: var(--on-pink); }
.msgr-av { color: var(--text); }
.msgr-bubble, .msgr-bubble:not(.x) { background: var(--tile); color: var(--text); box-shadow: 0 2px 10px rgba(10, 10, 16, 0.06); }
.msgr-row.mine .msgr-bubble, .msgr-row.mine .msgr-bubble:not(.x) { background: var(--ink); color: #fff; box-shadow: none; }
.msgr-day span { background: rgba(255, 255, 255, 0.6); color: var(--muted); font-weight: 600; }
.msgr-compose .box, .composer .box { background: rgba(255, 255, 255, 0.78); border-radius: 24px; box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(10, 10, 16, 0.08); }
.msgr-compose .box:focus-within, .composer .box:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.msgr-compose textarea, .composer textarea, .msgr-compose textarea:not(.x), .composer textarea:not(.x) { background: transparent; box-shadow: none; }
.vm-dot { background: var(--ink); }
.vm-mic { background: var(--lilac); color: var(--lilac-ink); }
.msgr-row.mine .vm-dot { background: #fff; }
.voice.played .vm-mic { background: var(--ink); color: #fff; }
/* Chat mit Rose */
.msg.me, .msg.me:not(.x) { background: var(--ink); color: #fff; }
.cmsg.rose .cmsg-name b { color: var(--text); }
.av.rose-av { background: #fff; box-shadow: inset 0 0 0 1px var(--ring); }
/* Support: Status */
.tk-st { font-weight: 700; }
.tk-st.neu, .tk-st.neu:not(.x) { background: var(--peach); color: var(--peach-ink); }
.tk-st.in_bearbeitung { background: var(--lilac); color: var(--lilac-ink); }
.tk-st.wartet, .badge.warn { background: var(--sun); color: var(--on-pink); box-shadow: none; }
.tk-st.erledigt, .badge.ok, .ev-st.beendet { background: var(--mint); color: var(--on-pink); }
.tk-dot { background: var(--coral); }
.badge.err { background: var(--peach); color: var(--peach-ink); }
.badge.rose:not(.nav-count), .nw-imp, .kb-cat { background: var(--lilac); color: var(--lilac-ink); }

/* =====================================================================================================
   Kalender, Events, News, Turnier-Karten
   ===================================================================================================== */
.wk-day.today .dn, .wk-day.today .dn:not(.x) { background: var(--ink); color: #fff; }
.wk-col.today { background-color: rgba(236, 11, 122, 0.12); }
.cal-legend i.buchung, .mo-dots i.buchung { background: var(--lilac); }
.cal-legend i.termin, .mo-dots i.termin { background: var(--ink); }
.ag-date, .ag-date:not(.x) { background: var(--lilac); color: var(--text); }
.ag-date b { font-weight: 500; }
.ag-card.past .ag-date { background: rgba(255, 255, 255, 0.6); color: var(--muted); box-shadow: inset 0 0 0 1px var(--ring); }
.ag-rel.now, .ag-rel.now:not(.x) { background: var(--mint); color: var(--on-pink); }
.ag-rel { background: rgba(255, 255, 255, 0.7); font-weight: 700; }
.ag-tour, .ag-tour:not(.x), .cr-chip, .cr-chip:not(.x) { background: var(--sun); color: var(--on-pink); font-weight: 700; }
.ag-tour .ico, .cr-chip .ico { color: var(--sun-ink); }
.ev-card-ico, .ev-card-ico:not(.x) { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); }
.ev-card-ico .ico { color: var(--text); }
.ev-st { font-weight: 700; background: rgba(255, 255, 255, 0.72); }
.ev-st.laeuft, .ev-st.laeuft:not(.x) { background: var(--peach); color: var(--peach-ink); }
.tb-tab-n, .tb-tab-n:not(.x) { background: var(--coral); color: #0a0a10; }
.rk-switch-ui { background: rgba(10, 10, 16, 0.16); }
.rk-switch input:checked + .rk-switch-ui { background: var(--ink); }

/* =====================================================================================================
   Seitenköpfe (app.hero, .arena): hell, direkt auf dem Verlauf – wie der obere Teil im Vorbild
   ===================================================================================================== */
.arena, .arena:not(.x) { background: transparent; color: var(--text); box-shadow: none; overflow: visible; }
.arena::before { content: none; display: none; }
.px-hero, .px-hero:not(.x) { padding: 6px 4px 4px; gap: 22px; margin-bottom: 22px; border-radius: 0; }
.px-ico, .px-ico:not(.x) { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1px var(--ring); }
.px-ico .ico { width: 26px; height: 26px; color: var(--text); stroke-width: 1.6; }
.px-kicker, .px-kicker:not(.x) { color: var(--muted); font-weight: 600; font-size: 13.5px; letter-spacing: 0; }
.px-txt h2, .px-txt h2:not(.x) { color: var(--text); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.04em; line-height: 1.05; }
.px-txt p { color: var(--muted); font-weight: 500; }
.px-actions .btn:not(.primary), .px-actions .btn:not(.primary):not(.x) { background: rgba(255, 255, 255, 0.85); color: var(--text); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 10, 16, 0.08); }
.px-actions .btn:not(.primary):hover { background: #fff; }
.px-actions select, .px-actions select:not(.x) { background-color: rgba(255, 255, 255, 0.85); color: var(--text); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 10, 16, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23181818' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.px-actions select:focus, .px-actions select.sel-open { box-shadow: 0 0 0 1.5px var(--ink); background-color: #fff; }
/* Zahlen als Pastell-Pillen; die dritte schraffiert (wie „Balance“ im Vorbild) */
.px-stats { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.px-stat, .px-stat:not(.x) { border-radius: 24px; padding: 14px 18px 12px; box-shadow: none; gap: 2px; min-height: 84px; justify-content: flex-end; }
.px-stat:nth-child(4n+1) { background: var(--mint); }
.px-stat:nth-child(4n+2) { background: var(--sun); }
.px-stat:nth-child(4n+3) { background: repeating-linear-gradient(90deg, rgba(104, 104, 104, 0.42) 0 2px, transparent 2px 7px), rgba(255, 255, 255, 0.28); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.px-stat:nth-child(4n+3) b { align-self: flex-start; background: rgba(249, 182, 215, 0.96); border-radius: 14px; padding: 2px 10px; }
.px-stat:nth-child(4n+4) { background: #ffffff; }
.px-stat b, .px-stat b:not(.x) { color: var(--text); font-weight: 400; font-size: 30px; letter-spacing: -0.04em; line-height: 1.1; }
.px-stat span, .px-stat span:not(.x) { color: rgba(10, 10, 16, 0.66); font-weight: 600; font-size: 13px; }
.px-stat:nth-child(4n+3) span { align-self: flex-start; background: rgba(249, 182, 215, 0.96); border-radius: 10px; padding: 1px 8px; margin-top: 4px; }
@media (max-width: 760px) {
  .px-hero, .px-hero:not(.x) { padding: 4px 2px 2px; gap: 16px; }
  .px-ico, .px-ico:not(.x) { width: 52px; height: 52px; }
  .px-ico .ico { width: 22px; height: 22px; }
  .px-txt h2, .px-txt h2:not(.x) { font-size: 30px; }
  .px-stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
  .px-stat, .px-stat:not(.x) { min-height: 78px; padding: 12px 12px 10px; border-radius: 20px; }
  .px-stat b, .px-stat b:not(.x) { font-size: 24px; }
  .px-stat span, .px-stat span:not(.x) { font-size: 11.5px; }
}
/* Profil-Karte war eine Arena: jetzt eine helle Karte mit Bild im feinen Ring */
.prof-card.arena, .prof-card.arena:not(.x) { background: var(--surface); box-shadow: var(--shadow-card); border-radius: var(--radius); }
.prof-card.arena .prof-who h2 { color: var(--text); font-weight: 500; }
.prof-card.arena .prof-note { color: var(--muted); }
.prof-tt { color: var(--muted); font-weight: 600; }
.prof-card.arena .badge.rose { background: var(--lilac); color: var(--lilac-ink); box-shadow: none; }
.prof-card.arena .btn:not(.primary) { background: rgba(255, 255, 255, 0.85); color: var(--text); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(10, 10, 16, 0.08); }
.prof-card.arena .btn.danger { color: var(--err); }
.prof-card.arena .av, .prof-card.arena img, .av.big { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(10, 10, 16, 0.16); background-color: var(--peach); }

/* =====================================================================================================
   Konten: Kacheln statt Tabelle (wie die Produkt-Kacheln im Vorbild)
   ===================================================================================================== */
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; margin-top: 6px; }
.ac-tile { display: flex; flex-direction: column; gap: 14px; padding: 16px 16px 14px; border-radius: 26px; background: var(--tile); box-shadow: 0 8px 24px rgba(10, 10, 16, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.9); min-width: 0; break-inside: avoid; }
.ac-tile.off { opacity: 0.62; }
.ac-tile.me { box-shadow: 0 8px 24px rgba(10, 10, 16, 0.07), inset 0 0 0 1.5px var(--ink); }
.ac-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av.ac-av { width: 56px; height: 56px; font-size: 18px; flex: none; background-color: var(--surface-2); }
.ac-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-name b { font-size: 17px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -0.01em; }
.ac-name span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-role { align-self: flex-start; flex: none; }
.ac-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 0; }
.ac-num { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.ac-num b { font-size: 30px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-num .ac-unit { font-size: 13px; color: var(--faint); font-weight: 500; flex: none; }
.ac-tile:has(.ac-num .ac-unit:first-child) .ac-num b { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.ac-seen { font-size: 12.5px; color: var(--faint); font-weight: 500; white-space: nowrap; }
.ac-bot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-round { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); cursor: pointer; flex: none; transition: background 0.15s; }
.ac-round:hover { background: var(--surface-3); }
.ac-round[aria-expanded="true"] { background: var(--ink); color: #fff; }
.ac-round .ico { width: 18px; height: 18px; }
.ac-menu { padding: 6px; gap: 2px; }
.ac-menu-item { width: 100%; border: 0; background: transparent; font: 500 15px var(--sans); color: var(--text); text-align: left; }
.ac-menu-item .ico { width: 18px; height: 18px; color: var(--muted); }
.ac-menu-item:hover, .ac-menu-item:focus-visible { background: var(--surface-2); outline: none; }
.ac-menu-item.danger, .ac-menu-item.danger .ico { color: var(--err); }

/* Reward Tree: Reiter links, Umschalter Creator:innen / Agent:innen rechts in derselben Zeile */
.rw-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 18px; }
.rw-toprow > .rw-tabs { margin: 0; }
.rw-plan { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rw-plan:empty { display: none; }
.rw-plan-n { white-space: nowrap; }
@media (max-width: 760px) {
  .rw-toprow { margin-bottom: 14px; }
  .rw-plan { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* =====================================================================================================
   Reward Tree: helles Brett, Pastell-Kacheln
   geschafft = Grün · frei = weiß mit schwarzem Rand (sanft pulsierend) · eingereicht = Gelb · abgelehnt = Orange · gesperrt = blass
   ===================================================================================================== */
.sk-board, .sk-board:not(.x) { background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-card); }
.sk-face > .ico { color: var(--text); filter: none; stroke-width: 1.6; }
.sk-name { color: var(--text); text-shadow: none; font-weight: 600; }
@keyframes lk-pulse { 0%, 100% { box-shadow: 0 0 0 2px var(--ink), 0 14px 30px rgba(10, 10, 16, 0.16); } 50% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 9px rgba(247, 150, 198, 0.7), 0 14px 30px rgba(10, 10, 16, 0.16); } }
@media (prefers-reduced-motion: reduce) { .sk-tile.open { animation: none; } }
.sk-badge, .sk-badge:not(.x) { color: #fff; background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.sk-big.done .sk-badge { color: var(--on-pink); background: var(--mint); box-shadow: 0 0 0 3px #fff; }
.sk-big.locked .sk-badge { color: var(--faint); background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), inset 0 0 0 1.5px var(--line-2); }
.sk-add, .sk-add:not(.x) { border: 2px dashed rgba(10, 10, 16, 0.35); background: rgba(255, 255, 255, 0.5); color: var(--text); }
.sk-add:hover { background: #fff; }
.sk-key i { background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sk-key.done i { background: var(--mint); box-shadow: none; }
.sk-key.open i { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.sk-key.wait i { background: var(--sun); box-shadow: none; }
.rw-bar { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.06); }
.rw-bar i { background: var(--ink); box-shadow: none; }
/* Detail-Fenster */
.sk-big, .sk-big:not(.x) { color: var(--text); border: 0; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 16px 34px rgba(10, 10, 16, 0.16); }
.sk-big.done, .sk-big.done:not(.x) { color: var(--on-pink); background: var(--mint); box-shadow: 0 16px 34px rgba(113, 19, 65, 0.2); }
.sk-big.locked, .sk-big.locked:not(.x) { color: rgba(10, 10, 16, 0.35); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sk-mini, .sk-mini:not(.x) { color: var(--text); border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.sk-pic { background: var(--surface-2); }
.sk-sec { background: rgba(255, 255, 255, 0.7); }
.sk-sec h4, .sk-sub-title .ico { color: var(--text); }
.sk-sec.prize { background: var(--lilac); box-shadow: none; }
.sk-sec.prize.given { background: var(--mint); box-shadow: none; }
.sk-sec.prize.given h4 { color: var(--mint-ink); }
.sk-ico-btn { background: rgba(10, 10, 16, 0.06); }
.sk-ico-btn.on, .sk-ico-btn.on:not(.x) { background: var(--ink); color: #fff; box-shadow: none; }
.ev-st.wait { background: var(--sun); color: var(--on-pink); }
.ev-st.no { background: var(--peach); color: var(--peach-ink); }

/* =====================================================================================================
   Rangliste: heller Kopf, Treppchen aus hohen Pastell-Pillen (wie „Paid“/„Credits“ im Vorbild)
   ===================================================================================================== */
.rk-hero, .rk-hero:not(.x) { background: transparent; color: var(--text); box-shadow: none; padding: 6px 4px 0; overflow: visible; }
.rk-hero::before { content: none; }
.rk-hero-title h2, .rk-hero-title h2:not(.x) { color: var(--text); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); }
.rk-crown, .rk-crown:not(.x) { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1px var(--ring); }
.rk-crown .ico { color: var(--text); width: 26px; height: 26px; }
.rk-period, .rk-period:not(.x) { color: var(--muted); font-weight: 600; }
.rk-admin .btn.rk-ghost, .rk-admin .btn.rk-ghost:not(.x) { color: var(--text); background: rgba(255, 255, 255, 0.85); }
.rk-switch, .rk-switch:not(.x) { color: var(--text); background: rgba(255, 255, 255, 0.6); font-weight: 600; }
.rk-tabs, .rk-tabs:not(.x) { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); border-radius: 20px; }
.rk-tabs button, .rk-tabs button:not(.x) { color: var(--muted); font-weight: 600; border-radius: 16px; }
.rk-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.6); }
.rk-tabs button.on, .rk-tabs button.on:not(.x) { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(10, 10, 16, 0.18); }
.rk-pod { --pill: var(--lilac); }
.rk-pod.p1 { --pill: var(--sun); }
.rk-pod.p2 { --pill: var(--mint); }
.rk-pod.p1 .rk-pod-who::before { content: none; }
.rk-pod-crown { filter: none; }
.rk-pod-crown .ico { color: var(--text); fill: var(--sun); stroke-width: 1.5; }
.rk-pod-ring, .rk-pod-ring:not(.x) { background: #fff; padding: 5px; box-shadow: 0 14px 30px rgba(10, 10, 16, 0.16); }
.rk-pod-av { box-shadow: none; }
.rk-pod.me .rk-pod-ring, .rk-pod.me .rk-pod-ring:not(.x) { box-shadow: 0 0 0 2px var(--ink), 0 14px 30px rgba(10, 10, 16, 0.16); }
.rk-pod-badge, .rk-pod-badge:not(.x) { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; font-weight: 700; }
.rk-pod .rk-handle { color: var(--text); font-weight: 600; }
.rk-pod-val, .rk-pod-val:not(.x) { color: var(--text); font-weight: 400; font-size: 24px; letter-spacing: -0.03em; }
.rk-pod.p1 .rk-pod-val { font-size: 28px; }
.rk-pod-val .ico, .rk-val .ico { color: var(--text); }
.rk-pod-block, .rk-pod-block:not(.x) { background: var(--pill); border-radius: 34px 34px 0 0; box-shadow: none; padding-top: 16px; }
.rk-pod-block span, .rk-pod-block span:not(.x) { color: rgba(10, 10, 16, 0.78); font-weight: 300; text-shadow: none; }
.rk-pod .rk-delta.up { background: var(--mint); color: var(--on-pink); }
.rk-pod .rk-delta.down { background: var(--peach); color: var(--peach-ink); }
.rk-pod .rk-delta.same { background: rgba(255, 255, 255, 0.7); color: var(--muted); }
.rk-pod .rk-delta.new { background: var(--ink); color: #fff; }
.rk-delta.up { background: var(--mint); color: var(--on-pink); }
.rk-delta.down { background: var(--peach); color: var(--peach-ink); }
.rk-delta.same { background: rgba(255, 255, 255, 0.7); color: var(--muted); }
/* Dein Platz */
.rk-me, .rk-me:not(.x) { background: var(--surface); box-shadow: var(--shadow-card); }
.rk-me-rank, .rk-me-rank:not(.x) { background: var(--lilac); color: var(--text); box-shadow: none; }
.rk-me-rank *, .rk-me-rank b { color: var(--text); }
.rk-me-rank b { font-weight: 400; }
.rk-gap, .rk-gap:not(.x) { color: var(--text); font-weight: 600; }
.rk-me-ico { background: transparent; box-shadow: inset 0 0 0 1px var(--ring); }
/* Liste */
.rk-row:hover { background: rgba(255, 255, 255, 0.7); }
.rk-row.me, .rk-row.me:not(.x) { background: var(--lilac); box-shadow: none; }
.rk-rank { color: var(--muted); font-weight: 600; }
.rk-row.top .rk-rank, .rk-row.top .rk-rank:not(.x) { background: var(--peach); color: var(--peach-ink); }
.rk-row.top.p1 .rk-rank { background: var(--sun); color: var(--text); }
.rk-row.top.p2 .rk-rank { background: var(--lilac); color: var(--text); }
.rk-you, .rk-you:not(.x) { background: var(--ink); color: #fff; }
.rk-bar { background: rgba(10, 10, 16, 0.08); }
.rk-bar i, .rk-bar i:not(.x) { background: var(--ink); }
.rk-row.me .rk-bar { background: rgba(255, 255, 255, 0.6); }
.rw-mark.bestaetigt { background: var(--mint); color: var(--on-pink); }
.rk-pod-block, .rk-pod-block:not(.x) { border-radius: 34px; }
@media (max-width: 760px) { .rk-pod-block, .rk-pod-block:not(.x) { border-radius: 24px; } }

/* =====================================================================================================
   Turniere: heller Kopf, weiße Match-Kacheln; Sieg = Grün, offenes Match = schwarzer Rand, Finale/Pokal = Gelb
   ===================================================================================================== */
.tb-back, .tb-back:not(.x) { color: var(--muted); font-weight: 600; }
.tb-back:hover { color: var(--text); }
.tb-hero-ico.gold, .tb-hero-ico.gold:not(.x) { background: var(--sun); box-shadow: none; }
.tb-hero-ico.gold .ico { color: var(--text); }
.tb-kicker.laeuft, .tb-kicker.beendet { color: var(--muted); }
.tb-live-dot { background: var(--coral); animation: lk-live 1.8s ease-out infinite; }
@keyframes lk-live { 0% { box-shadow: 0 0 0 0 rgba(236, 11, 122, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(236, 11, 122, 0); } }
.tb-prize, .tb-prize:not(.x) { background: var(--lilac); color: var(--text); box-shadow: none; font-weight: 500; }
.tb-prize .ico { color: var(--lilac-ink); }
.tb-hero-champ, .tb-hero-champ:not(.x) { background: var(--sun); box-shadow: none; }
.tb-hero-champ span { color: var(--sun-ink); }
.tb-hero-champ b { color: var(--text); }
.tb-hero-champ > .ico { color: var(--text); fill: none; }
.av.tb-hero-av { box-shadow: 0 0 0 2px #fff; }
.tb-progress-txt, .tb-progress-txt:not(.x) { color: var(--muted); font-weight: 600; }
.tb-progress-txt b { color: var(--text); }
.tb-progress-bar, .tb-progress-bar:not(.x) { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.06); }
.tb-progress-bar i, .tb-progress-bar i:not(.x) { background: var(--ink); box-shadow: none; }
.tb-arena, .tb-arena:not(.x) { background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-card); }
.tb-arena .tb-head h3 .ico { color: var(--text); }
.tb-arena .tb-col-head, .tb-arena .tb-col-head:not(.x) { color: var(--muted); background: rgba(10, 10, 16, 0.06); font-weight: 700; box-shadow: none; }
.tb-arena .tb-col-head.on, .tb-arena .tb-col-head.on:not(.x) { color: #fff; background: var(--ink); box-shadow: none; }
.tb-arena .tb-col.final .tb-col-head, .tb-arena .tb-col.champ .tb-col-head { color: var(--on-pink); background: var(--sun); box-shadow: none; }
.tb-arena .tb-col.final .tb-col-head.on { color: var(--text); background: var(--sun); box-shadow: 0 0 0 1.5px var(--ink); }
.tb-arena .tb-m, .tb-arena .tb-m:not(.x) { color: var(--text); background: #fff; box-shadow: 0 8px 20px rgba(10, 10, 16, 0.08), inset 0 0 0 1px rgba(10, 10, 16, 0.07); }
.tb-arena button.tb-m:hover { box-shadow: 0 12px 26px rgba(10, 10, 16, 0.13), inset 0 0 0 1px rgba(10, 10, 16, 0.12); }
.tb-arena button.tb-m.offen, .tb-arena button.tb-m.offen:not(.x) { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 12px 26px rgba(10, 10, 16, 0.12); }
.tb-arena button.tb-m.offen:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--lilac), 0 12px 26px rgba(10, 10, 16, 0.12); }
.tb-arena .tb-m.wartet, .tb-arena .tb-m.leer { color: var(--faint); background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1.5px rgba(10, 10, 16, 0.08); }
.tb-arena .tb-m.wartet .tb-p, .tb-arena .tb-m.leer .tb-p { color: var(--faint); }
.tb-arena .tb-m.wartet .tb-m-no, .tb-arena .tb-m.leer .tb-m-no { color: var(--ph); }
.tb-arena .tb-m.final, .tb-arena .tb-m.final:not(.x) { background: var(--sun); color: var(--text); box-shadow: 0 12px 28px rgba(113, 19, 65, 0.18); }
.tb-arena .tb-m.final.wartet { color: var(--sun-ink); background: rgba(236, 11, 122, 0.45); box-shadow: inset 0 0 0 1.5px rgba(113, 19, 65, 0.25); }
.tb-arena .tb-m.final.wartet .tb-p, .tb-arena .tb-m.final.wartet .tb-m-no { color: var(--sun-ink); }
.tb-m-no, .tb-m-no:not(.x) { color: var(--faint); }
.tb-m.final .tb-m-no { color: var(--sun-ink); }
.tb-arena .tb-at, .tb-arena .tb-at:not(.x) { color: var(--muted); font-weight: 600; }
.tb-ready, .tb-ready:not(.x) { background: var(--ink); color: #fff; }
.tb-arena .tb-p, .tb-arena .tb-p:not(.x) { color: var(--text); font-weight: 600; }
.av.tb-av, .tb-av { box-shadow: 0 0 0 1.5px #fff; }
.tb-arena .tb-p.win, .tb-arena .tb-p.win:not(.x) { color: var(--text); font-weight: 700; background: var(--mint); box-shadow: none; }
.tb-arena .tb-p.win .tb-av { box-shadow: 0 0 0 2px #fff; }
.tb-arena .tb-m.final .tb-p.win { background: #fff; box-shadow: none; }
.tb-arena .tb-m.final .tb-p.win .tb-av { box-shadow: 0 0 0 2px var(--ink); }
.tb-arena .tb-p.bye, .tb-arena .tb-p.tbd { color: var(--ph); }
.tb-arena .tb-s, .tb-arena .tb-s:not(.x) { color: var(--muted); }
.tb-arena .tb-p.win .tb-s { color: var(--text); }
.tb-arena .tb-col + .tb-col .tb-slot::before { border-top-color: rgba(10, 10, 16, 0.16); }
.tb-arena .tb-pair:not(.single) .tb-slot::after, .tb-arena .tb-col.final .tb-slot::after { border-color: rgba(10, 10, 16, 0.16); }
.tb-arena .tb-col + .tb-col .tb-slot.in-on::before { border-top-color: var(--ink); filter: none; }
.tb-arena .tb-slot.out-on::after { border-color: var(--ink) !important; filter: none; }
.tb-arena .tb-col.final .tb-slot.out-on::after, .tb-arena .tb-col.champ .tb-slot.in-on::before { border-color: var(--ink) !important; filter: none; }
.tb-arena .tb-champ, .tb-arena .tb-champ:not(.x) { color: var(--muted); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px rgba(10, 10, 16, 0.08); }
.tb-cup { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--ring); border-radius: 50%; }
.tb-arena .tb-champ.on, .tb-arena .tb-champ.on:not(.x) { color: var(--text); background: var(--sun); box-shadow: 0 16px 34px rgba(113, 19, 65, 0.2); }
.tb-champ.on .tb-cup { color: var(--text); background: #fff; box-shadow: none; }
.av.tb-champ-av { box-shadow: 0 0 0 3px #fff; }
.tb-champ-k, .tb-champ.on .tb-champ-k { color: var(--sun-ink); }
.tb-arena .tb-champ.on b { color: var(--text); }
.tb-arena .tb-tabs button { background: rgba(10, 10, 16, 0.06); color: var(--muted); }
.tb-arena .tb-tabs button.on { background: var(--ink); color: #fff; box-shadow: none; }
.tb-arena .tb-tabs button.on .tb-tab-n { background: #fff; color: var(--text); }
.tb-pan { background: rgba(255, 255, 255, 0.5); box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.06); }
.tb-zoomctl button { border-radius: 50%; }
.tb-zoomctl button:hover:not(:disabled) { background: var(--ink); color: #fff; }
/* Rangliste: Umschalter rechts in der Zeile mit dem Zeitraum */
.rk-hero-top { align-items: center; }
.rk-hero-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px 12px; flex-wrap: wrap; margin-left: auto; min-width: 0; flex: 1 1 360px; }
.rk-hero-title { flex: 0 1 auto; }
.rk-hero-side .rk-tabs, .rk-hero-side .rk-tabs:not(.x) { margin: 0; width: min(520px, 100%); max-width: none; }
@media (max-width: 760px) {
  .rk-hero-side { margin-left: 0; width: 100%; justify-content: stretch; }
  .rk-hero-side .rk-tabs, .rk-hero-side .rk-tabs:not(.x) { width: 100%; }
}
/* Zähler im Menü: Koralle; im gewählten (schwarzen) Eintrag weiß */
.nav .nav-count, .nav .nav-count:not(.x), .nav-sum, .nav-sum:not(.x) { background: var(--coral); color: #0a0a10; box-shadow: none; }
.nav a.on .nav-count, .nav a.on .nav-count:not(.x) { background: #fff; color: var(--text); }
.ev-card.beendet .ev-card-ico, .ev-card.beendet .ev-card-ico:not(.x) { background: var(--mint); color: var(--on-pink); box-shadow: none; }
.ev-card.beendet .ev-card-ico .ico { color: var(--mint-ink); }

/* =====================================================================================================
   Anmeldung: Verlauf statt Rosenbild, große zweifarbige Schrift, Pastell-Pillen (wie das Handy-Vorbild)
   ===================================================================================================== */
.auth, .auth:not(.x) { background: transparent; }
.auth-hero, .auth-hero:not(.x) { background: transparent; background-image: none; color: var(--text); justify-content: center; gap: 18px; padding: 56px 64px; }
.auth-hero::before, .auth-hero::after { content: none; display: none; }
.auth-hero .sticker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z'/%3E%3C/svg%3E"); }
.auth-hero h1, .auth-hero h1:not(.x) { color: var(--text); font-weight: 500; font-size: clamp(48px, 6vw, 92px); letter-spacing: -0.05em; line-height: 0.98; }
.auth-hero h1 > span { display: block; }
.auth-hero h1 .auth-h-2 { color: #65656b; font-weight: 300; }
.auth-hero p, .auth-hero p:not(.x) { color: var(--muted); font-weight: 500; max-width: 480px; }
.auth-pills { display: flex; align-items: stretch; gap: 10px; margin-top: 18px; height: 230px; }
.auth-pill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0 18px; width: 72px; border-radius: 36px; flex: none; }
.auth-pill.mint { background: var(--mint); }
.auth-pill.sun { background: var(--sun); }
.auth-pill.lilac { background: var(--lilac); }
.auth-pill i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.25); }
.auth-pill i .ico { width: 18px; height: 18px; color: var(--text); stroke-width: 1.6; }
.auth-pill em { font-style: normal; font-size: 14px; font-weight: 500; color: rgba(10, 10, 16, 0.7); writing-mode: vertical-rl; transform: rotate(180deg); }
.auth-pill.hatch { flex: 1; width: auto; min-width: 0; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 12px; border-radius: 30px;
  background: repeating-linear-gradient(90deg, rgba(104, 104, 104, 0.45) 0 2px, transparent 2px 7px), rgba(255, 255, 255, 0.25); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }
.auth-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 22px; background: rgba(249, 182, 215, 0.96); font-size: 15px; }
.auth-chip i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--ring); }
.auth-chip .ico { width: 16px; height: 16px; color: var(--text); }
.auth-chip b { font-weight: 500; }
.auth-chip.dark { margin-top: auto; align-self: stretch; justify-content: center; padding: 14px; border-radius: 22px; background: var(--ink); color: #fff; }
.auth-chip.dark .ico { color: #fff; }
.auth .panel, .auth .panel:not(.x) { background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 1px 0 #fff, 0 30px 80px rgba(10, 10, 16, 0.16); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.auth .logo b { font-weight: 600; letter-spacing: -0.03em; }
.auth .logo span { color: var(--muted); font-weight: 500; }
.codes { background: rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) {
  .auth-hero, .auth-hero:not(.x) { min-height: 0; padding: max(28px, env(safe-area-inset-top)) 22px 18px; }
  .auth-hero h1, .auth-hero h1:not(.x) { font-size: 46px; }
  .auth-pills { height: 150px; margin-top: 6px; }
  .auth-pill { width: 58px; padding: 8px 0 12px; }
  .auth-pill i { width: 38px; height: 38px; }
  .auth-pill em { font-size: 12.5px; }
  .auth-chip { font-size: 13.5px; padding: 4px 12px 4px 4px; }
  .auth-chip i { width: 28px; height: 28px; }
  .auth-chip.dark { padding: 10px; }
  .auth .panel, .auth .panel:not(.x) { margin: 8px auto 24px; }
}
/* Chat mit Rose: eigenes Zeichen am Aufkleber (statt Kalender) */
.hello-hero .sticker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z'/%3E%3C/svg%3E"); }

/* =====================================================================================================
   Rosenbild (Pastell) auf Begrüßung, Chat und Anmeldung: Rose rechts, links Platz für Text
   ===================================================================================================== */
.dash-hello, .dash-hello:not(.x), .hello-hero, .hello-hero:not(.x) {
  background: #f68bc0 url(/img/hero-bg.webp) no-repeat right center / cover; border-radius: 32px; padding: 26px 30px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 40px rgba(10, 10, 16, 0.1);
}
.auth-hero, .auth-hero:not(.x) { background: #f68bc0 url(/img/hero-bg.webp) no-repeat 78% center / cover; }
@media (max-width: 760px) {
  /* Handy: Rose oben rechts angeschnitten, links leicht aufgehellt – Text bleibt gut lesbar */
  .dash-hello, .dash-hello:not(.x), .hello-hero, .hello-hero:not(.x) {
    background: linear-gradient(100deg, rgba(247, 153, 199, 0.95) 0%, rgba(247, 153, 199, 0.86) 55%, rgba(247, 153, 199, 0.35) 100%), url(/img/hero-bg.webp) no-repeat 82% 30% / auto 120%, #f68bc0;
    padding: 20px 18px 22px; border-radius: 28px;
  }
}
@media (max-width: 860px) {
  .auth-hero, .auth-hero:not(.x) { background: linear-gradient(100deg, rgba(247, 153, 199, 0.94) 0%, rgba(247, 153, 199, 0.72) 55%, rgba(247, 153, 199, 0.15) 100%), url(/img/hero-bg.webp) no-repeat 88% center / cover, #f68bc0; padding-bottom: 26px; }
  .auth-pills { display: none; }
}
/* Anmeldung am PC: Rose über die ganze Seite – Text links frei, die Glas-Karte liegt vor der Rose */
@media (min-width: 861px) {
  .auth, .auth:not(.x) { background: #f68bc0 url(/img/hero-bg.webp) no-repeat right center / cover; }
  .auth-hero, .auth-hero:not(.x) { background: none; }
  .auth-hero p { max-width: 440px; }
  .auth .panel, .auth .panel:not(.x) { background: rgba(255, 255, 255, 0.55); }
}

/* =====================================================================================================
   Anruf mit Rose: heller Bildschirm mit Rosenbild, Kugel in Pastell (ext/call-orb.js)
   ===================================================================================================== */
html.in-call, html.in-call body { background: #f688be; }
.call-screen, .call-screen:not(.x) {
  --text: #0a0a10; --muted: #56565c; --faint: #68686e; --surface-2: rgba(255, 255, 255, 0.78); --surface-3: #fff; --line: rgba(10, 10, 16, 0.1); --line-2: rgba(10, 10, 16, 0.16); --bg: #f688be;
  color: var(--text); background: linear-gradient(180deg, rgba(247, 147, 196, 0.55), rgba(248, 160, 203, 0.75)), url(/img/hero-bg.webp) no-repeat 70% center / cover, #f688be;
}
.call-head b { font-weight: 600; }
.call-who { color: var(--muted); }
.call-said { font-weight: 500; }
.call-approval, .call-error { background: rgba(255, 255, 255, 0.78); box-shadow: 0 10px 30px rgba(10, 10, 16, 0.1); }
.call-ico { background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 22px rgba(10, 10, 16, 0.12); }
.call-btn:hover .call-ico { background: #fff; }
.call-btn.on .call-ico { background: var(--ink); color: #fff; }
.call-btn.end .call-ico, .call-btn.end .call-ico:not(.x) { background: var(--peach); color: var(--peach-ink); }
.call-btn.accept .call-ico, .call-btn.accept .call-ico:not(.x) { background: var(--mint); color: var(--on-pink); }
.call-top.on { color: var(--text); background: var(--mint); animation: lk-ring 1.6s ease-in-out infinite; }
@keyframes lk-ring { 50% { box-shadow: 0 0 0 6px rgba(236, 11, 122, 0.35); } }
.voice-model { background: rgba(255, 255, 255, 0.7); }
.voice-bar { background: rgba(10, 10, 16, 0.1); }
.voice-bar i { background: var(--ink); }
input.voice-rate { accent-color: var(--ink); }



/* =====================================================================================================
   Einstellungen: keine Liste links mehr – oben ein großes Auswahlfeld (gruppiert) mit Symbol und Beschreibung
   ===================================================================================================== */
.set.set-one, .set.set-one:not(.x) { display: block; grid-template-columns: none; }
.set-one .set-body, .set-one .set-body:not(.x) { display: block; }
.set-one .set-head { margin: 0 0 18px; }
.set-one .set-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.set-one .set-ico, .set-one .set-ico:not(.x) { width: 64px; height: 64px; flex: none; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1px var(--ring); color: var(--text); }
.set-one .set-ico .ico { width: 24px; height: 24px; }
.set-pick-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; flex: 1; }
select.set-pick, select.set-pick:not(.x) {
  width: auto; max-width: 100%; min-width: min(360px, 100%); min-height: 58px; padding: 8px 58px 8px 22px; border-radius: 20px;
  font: 500 24px var(--sans); letter-spacing: -0.02em; color: var(--text); background-color: rgba(255, 255, 255, 0.82);
  background-position: right 24px center; box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgba(10, 10, 16, 0.08); cursor: pointer;
}
select.set-pick:hover { background-color: #fff; }
select.set-pick:focus, select.set-pick.sel-open { box-shadow: 0 0 0 1.5px var(--ink), 0 10px 26px rgba(10, 10, 16, 0.08); background-color: #fff; }
.set-desc { margin: 0 0 0 8px; }
@media (max-width: 760px) {
  .set-one .set-ico, .set-one .set-ico:not(.x) { width: 52px; height: 52px; }
  .set-pick-wrap { flex: 1 1 0; }
  select.set-pick, select.set-pick:not(.x) { width: 100%; min-width: 0; font-size: 19px; min-height: 52px; padding-left: 18px; padding-right: 48px; background-position: right 18px center; }
}

/* =====================================================================================================
   Bildlaufleisten im Rose-Stil: schmal, rund, durchsichtige Spur; beim Darüberfahren dunkler
   ===================================================================================================== */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background-color: rgba(10, 10, 16, 0.22); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; min-height: 44px; min-width: 44px; }
  ::-webkit-scrollbar-thumb:hover { background-color: rgba(10, 10, 16, 0.42); }
  ::-webkit-scrollbar-thumb:active { background-color: rgba(10, 10, 16, 0.55); }
  ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  /* Chrome zeigt die eigenen Leisten nur ohne scrollbar-width/-color – Bereiche ohne Leiste (Menü, Uhrzeit) bleiben so */
  *:not(.nav):not(.dt-col-list) { scrollbar-width: auto; scrollbar-color: auto; }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(10, 10, 16, 0.32) transparent; }
  .nav, .dt-col-list { scrollbar-width: none; }
}

/* Einstellungen: Kopf des Bereichs (Symbol, Titel, Beschreibung) mit der Auswahlliste rechts in derselben Zeile */
.set-one .set-head.set-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 18px; }
.set-one .set-head-row .set-title { flex: 1 1 320px; min-width: 0; }
.set-one .set-head-row .set-title h2 { margin: 0; font-weight: 500; }
.set-one .set-head-row .set-title p { margin: 2px 0 0; }
select.set-pick, select.set-pick:not(.x) {
  flex: 0 0 auto; width: auto; min-width: 260px; max-width: 100%; height: 50px; min-height: 50px; padding: 0 50px 0 18px; border-radius: 16px;
  font: 600 15px var(--sans); letter-spacing: 0; background-color: #fff; background-position: right 18px center;
  box-shadow: 0 6px 18px rgba(10, 10, 16, 0.1);
}
select.set-pick:focus, select.set-pick.sel-open { box-shadow: 0 0 0 1.5px var(--ink), 0 6px 18px rgba(10, 10, 16, 0.1); }
@media (max-width: 760px) {
  .set-one .set-head-row .set-title { flex-basis: 100%; }
  select.set-pick, select.set-pick:not(.x) { flex: 1 1 100%; width: 100%; min-width: 0; height: 50px; font-size: 16px; padding-left: 16px; }
}
/* Seiten mit eigenem Verlauf (Nachrichten, Support, Creator Lernhub): Abstand zur Kopfzeile wie auf den anderen Seiten */
.page { padding-top: 14px; }
.msgr, .msgr:not(.x) { padding-top: 14px; }
@media (max-width: 760px) {
  .page { padding-top: 10px; }
  .msgr, .msgr:not(.x) { padding-top: 10px; }
}

/* =====================================================================================================
   Menü als Hamburger: Knopf oben rechts (statt „Abmelden“), das Menü gleitet von rechts herein.
   Keine feste Leiste links mehr – die Seite nutzt die ganze Breite. „Abmelden“ ist der letzte Punkt unten.
   ===================================================================================================== */
.shell, .shell:not(.x) { grid-template-columns: minmax(0, 1fr); }
.side, .side:not(.x) {
  display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 60; height: 100vh; height: 100dvh;
  width: min(340px, calc(100vw - 28px)); padding: max(18px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
  border-radius: 30px 0 0 30px; background: rgba(255, 255, 255, 0.97); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: -24px 0 60px rgba(10, 10, 16, 0.18), inset 1px 0 0 #fff;
  transform: translateX(calc(100% + 30px)); visibility: hidden; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
}
.side.open { transform: none; visibility: visible; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.side-back { position: fixed; inset: 0; z-index: 59; background: rgba(60, 60, 60, 0.26); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.2s; }
html.menu-open, html.menu-open body { overflow: hidden; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 18px 4px; flex: none; }
.side-top .brand, .side-top .brand:not(.x) { padding: 0; justify-content: flex-start; min-width: 0; }
.side-top .brand > div { display: block; }
.side-close, .side-close:not(.x) { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); box-shadow: none; }
.side-close:hover { background: var(--surface-3); }
.side-logout { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; margin-top: 10px; padding: 0 16px; flex: none;
  border: 0; border-radius: 18px; background: transparent; color: var(--text); font: 600 15px var(--sans); cursor: pointer; text-align: left;
  box-shadow: inset 0 0 0 1px var(--line-2); }
.side-logout:hover { background: #fff; }
.side-logout .ico { color: var(--err); }
.side-foot, .side-foot:not(.x) { margin-top: 12px; }
.menu-btn .ico { width: 20px; height: 20px; }
/* im Menü immer volle Namen – auch auf mittleren Bildschirmen (früher nur Symbole) */
@media (min-width: 761px) and (max-width: 1200px) {
  .side, .side:not(.x) { padding: 18px 14px 16px; }
  .brand { justify-content: flex-start; }
  .brand > div { display: block; }
  .nav a { justify-content: flex-start; width: auto; min-height: 48px; margin: 0; padding: 0 16px; border-radius: 999px; }
  .nav a > span:not(.nav-count) { display: inline; }
  .nav a .nav-count { position: static; margin-left: auto; }
  .nav-group-head { display: flex; }
  .nav-group > .nav-group-body { display: flex; margin: 0 0 6px 22px; padding: 0 0 0 10px; border-top: 0; border-left: 2px solid rgba(10, 10, 16, 0.14); }
  .nav-group:not(.open) > .nav-group-body { display: none; }
  .nav a.sub { justify-content: flex-start; padding: 0 14px; width: auto; min-height: 42px; margin: 0; border-radius: 999px; }
  .side-foot { justify-content: flex-start; padding: 10px; background: rgba(255, 255, 255, 0.62); }
  .side-foot .who { display: block; }
}
@media (max-width: 760px) {
  .side, .side:not(.x) { width: min(340px, calc(100vw - 20px)); border-radius: 26px 0 0 26px; }
}
@media (prefers-reduced-motion: reduce) { .side, .side.open { transition: none; } }

/* ---------- Creator:innen: Termin buchen (cal-book.js) und „Dein nächster Termin“ im Kalender ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cb-flow { gap: 22px; }
.cb-step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-step[hidden], .cb-summary[hidden], .cb-note[hidden] { display: none; }
.cb-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.cb-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.cb-host, .cb-type, .cb-day, .cb-time {
  border: 0; font: inherit; color: var(--text); cursor: pointer; background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.15s, background 0.15s, transform 0.15s;
}
.cb-host:hover, .cb-type:hover, .cb-day:hover, .cb-time:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cb-host:focus-visible, .cb-type:focus-visible, .cb-day:focus-visible, .cb-time:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(10, 10, 16, 0.12); }
.cb-hosts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cb-host { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; text-align: left; min-width: 0; }
.cb-host .cb-av { width: 44px; height: 44px; flex: none; font-size: 15px; }
.cb-host-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cb-host-txt b { font-weight: 600; overflow-wrap: anywhere; }
.cb-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px var(--ring); color: transparent; }
.cb-check .ico { width: 14px; height: 14px; }
.cb-host.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.cb-host.on .cb-check { background: var(--ink); color: #fff; box-shadow: none; }
.cb-host:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); }
.cb-types { display: grid; gap: 8px; }
.cb-type { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 13px 16px; border-radius: 20px; min-width: 0; }
.cb-type-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cb-type-top b { font-weight: 600; overflow-wrap: anywhere; }
.cb-type-top .badge { flex: none; }
.cb-type.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.cb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.cb-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 9px 4px; border-radius: 18px; min-width: 0; }
.cb-day b { font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.cb-wd, .cb-mo { font-size: 12px; color: var(--muted); font-weight: 500; }
.cb-day.on { background: var(--ink); box-shadow: none; color: #fff; }
.cb-day.on .cb-wd, .cb-day.on .cb-mo { color: rgba(255, 255, 255, 0.78); }
.cb-more { gap: 4px; }
.cb-more .ico { width: 18px; height: 18px; }
.cb-sub { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.cb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.cb-time { padding: 11px 6px; border-radius: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-time.on { background: var(--ink); color: #fff; box-shadow: none; }
.cb-note { margin: 0; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); }
.cb-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: linear-gradient(120deg, rgba(236, 11, 122, 0.35), rgba(247, 150, 198, 0.45)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.cb-summary > .ico { width: 22px; height: 22px; flex: none; }
.cb-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-summary b { font-weight: 600; }
.cal-next { padding: 16px 18px; }
.cal-next-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cal-next-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px var(--ring); background: rgba(255, 255, 255, 0.5); }
.cal-next-ico .ico { width: 20px; height: 20px; }
.cal-next-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cal-next-txt b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cal-next-row > .btn { flex: none; }
@media (max-width: 760px) {
  .cb-hosts { grid-template-columns: minmax(0, 1fr); }
  .cb-days { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
  .cb-times { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
  .cal-next { padding: 14px; }
  .cal-next-row { flex-wrap: wrap; }
  .cal-next-row > .btn { flex: 1 1 100%; justify-content: center; }
}

/* Konto löschen: Liste, was alles verschwindet */
.del-list { margin: 0; padding: 12px 16px 12px 34px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 4px; font-size: 14px; }
.del-list li { line-height: 1.4; }

/* =====================================================================================================
   Handy-Leiste unten (aufgeräumt, 0.4.3): weißes Blatt, über der gewählten Seite eine runde Kuppel, darin der
   umrandete Kreis. Alles in EINEM Block. Ruhig beim Wechseln:
   – kein Schattenfilter über der ganzen Leiste (der hat auf dem iPhone bei jedem Wechsel neu gezeichnet und geflackert),
   – die Leiste liegt auf einer eigenen Ebene (will-change), Seitenwechsel dahinter zeichnen sie nicht neu,
   – der gewählte Kreis bewegt sich nur per transform (keine Größen-/Randänderung → nichts springt), die Kuppel
     gleitet weich hoch. Ganz links/rechts: die Ecke der Leiste wird gerade (Klassen edge-l / edge-r aus app.js).
   Maße: Oberkante der Leiste = y 22 der Kuppel-Form, Kreismitte 17,5 px unter der Leistenkante.
   ===================================================================================================== */
@keyframes rose-dome { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .tabbar, .tabbar:not(.x) {
    left: 0; right: 0; bottom: 0; height: calc(78px + env(safe-area-inset-bottom)); padding: 9px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0; background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; filter: none;
    box-shadow: 0 -6px 18px rgba(10, 10, 16, 0.08), inset 0 1px 0 #fff;
    clip-path: inset(-60px 0 -20px 0); will-change: transform; transform: translateZ(0); -webkit-transform: translateZ(0);
    transition: border-radius 0.2s ease;
  }
  .tabbar.edge-l { border-top-left-radius: 0; }
  .tabbar.edge-r { border-top-right-radius: 0; }
  .tabbar a { justify-content: flex-start; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 600; overflow: visible; position: relative;
    border-radius: 20px; background: transparent; -webkit-tap-highlight-color: transparent; transition: color 0.2s ease; }
  .tabbar a.on, .tabbar a.on:not(.x) { color: var(--text); font-weight: 700; background: transparent; box-shadow: none; }
  .tabbar a > span:not(.tab-ico), .tabbar a span:not(.tab-ico):not(.tab-count) { flex: none; overflow: visible; text-overflow: clip; line-height: 1.35; padding-bottom: 1px; }
  /* der Kreis: immer gleich groß im Fluss – gewählt nur verschoben und vergrößert (40 → 48 px) */
  .tabbar a .tab-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: 0; border-radius: 50%; position: relative; z-index: 1;
    background: rgba(10, 10, 16, 0.06); color: var(--text); box-shadow: inset 0 0 0 0 var(--ink);
    transform: translateZ(0); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease; }
  .tabbar a.on .tab-ico { transform: translateY(-13.5px) scale(1.2); background: #fff; box-shadow: inset 0 0 0 1.25px var(--ink); }
  .tabbar a.on .tab-ico .ico { color: var(--text); transform: scale(0.86); }
  .tabbar .ico { width: 19px; height: 19px; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .tabbar a:not(.on):active .tab-ico { background: rgba(10, 10, 16, 0.11); }
  .tab-count { top: -3px; right: -5px; z-index: 2; }
  .tabbar a.on .tab-count { transform: scale(0.84); }
  /* die Kuppel (Mitte): konzentrisch um den Kreis, weiche Übergänge – mit eigenem, leisem Schatten */
  .tabbar a.on::before { content: ''; display: block; position: absolute; left: 50%; right: auto; top: -30px; width: 100px; height: 40px; margin-left: -50px;
    border-radius: 0; pointer-events: none; z-index: 0; filter: drop-shadow(0 -4px 5px rgba(10, 10, 16, 0.07));
    background: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 22 L15.57 22 A14 14 0 0 0 26.05 17.28 A32 32 0 0 1 73.95 17.28 A14 14 0 0 0 84.43 22 L100 22 L100 40 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    animation: rose-dome 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .tabbar a.on::after { content: none; display: none; }
  /* ganz links: runde Ecke aus dem Rand + rechte Hälfte der Kuppel */
  .tabbar a.on:first-child::before { left: -8px; width: calc(50% + 8px); margin-left: 0; border-radius: 22px 0 0 0; background: #ffffff;
    top: calc(-30px + 6.5px); height: calc(40px - 6.5px); }
  .tabbar a.on:first-child::after { content: ''; display: block; position: absolute; left: 50%; right: auto; top: -30px; width: 50px; height: 40px; margin: 0; pointer-events: none; z-index: 0;
    background: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 6.5 A32 32 0 0 1 23.95 17.28 A14 14 0 0 0 34.43 22 L50 22 L50 40 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    filter: drop-shadow(0 -4px 5px rgba(10, 10, 16, 0.07)); animation: rose-dome 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  /* ganz rechts: gespiegelt */
  .tabbar a.on:last-child::before { left: auto; right: -8px; width: calc(50% + 8px); margin-left: 0; border-radius: 0 22px 0 0; background: #ffffff;
    top: calc(-30px + 6.5px); height: calc(40px - 6.5px); }
  .tabbar a.on:last-child::after { content: ''; display: block; position: absolute; right: 50%; left: auto; top: -30px; width: 50px; height: 40px; margin: 0; pointer-events: none; z-index: 0;
    background: no-repeat 0 0 / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 40' preserveAspectRatio='none'%3E%3Cpath d='M50 40 L50 6.5 A32 32 0 0 0 26.05 17.28 A14 14 0 0 1 15.57 22 L0 22 L0 40 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    filter: drop-shadow(0 -4px 5px rgba(10, 10, 16, 0.07)); animation: rose-dome 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .page { padding-bottom: 126px; }
  .main:has(> .page.full) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .toasts, .approval { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .tabbar a .tab-ico, .tabbar .ico { transition: none; }
  .tabbar a.on::before, .tabbar a.on::after { animation: none; }
}
/* Seitenwechsel ohne leeren Zwischenstand: die alte Seite bleibt eingefroren stehen, bis die neue fertig ist (app.js) */
.page-next { visibility: hidden; }
.page-old { position: fixed; z-index: 0; pointer-events: none; margin: 0; overflow: hidden; }

/* =====================================================================================================
   Schalter statt Ankreuzfelder (überall): app.toggle() / app.toggles() / app.switchInline() in app.js.
   Eine eigene Sektion mit Zeilen – links Titel und was der Schalter macht, rechts der Schalter.
   ===================================================================================================== */
.tg-sec { display: grid; gap: 8px; min-width: 0; }
.tg-head { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.tg-list { display: grid; border-radius: 22px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; min-width: 0; }
.tg-list > * + * { border-top: 1px solid var(--line); }
.tg-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; min-height: 64px; cursor: pointer; min-width: 0; -webkit-tap-highlight-color: transparent; }
.tg-row:hover { background: rgba(255, 255, 255, 0.5); }
.tg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tg-title { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.tg-desc { font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.tg-extra { padding: 0 16px 16px; display: grid; gap: 10px; transition: opacity 0.2s ease; }
.tg-item.is-off .tg-extra { opacity: 0.45; }
/* der Schalter selbst: das echte Ankreuzfeld, nur anders gezeichnet (Tastatur, Vorleser und Formular bleiben wie gewohnt) */
input.tg, .check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0; border: 0; padding: 0; cursor: pointer;
  width: 52px; height: 32px; border-radius: 16px; background: rgba(10, 10, 16, 0.18); box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.06);
  transition: background-color 0.22s ease, box-shadow 0.22s ease; vertical-align: middle;
}
input.tg::before, .check input[type="checkbox"]::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(10, 10, 16, 0.22); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
input.tg:checked, .check input[type="checkbox"]:checked { background: var(--ink); box-shadow: none; }
input.tg:checked::before, .check input[type="checkbox"]:checked::before { transform: translateX(20px); }
input.tg:focus-visible, .check input[type="checkbox"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(10, 10, 16, 0.18); }
input.tg:disabled { opacity: 0.45; cursor: not-allowed; }
input.tg.sm { width: 42px; height: 26px; border-radius: 13px; }
input.tg.sm::before { top: 3px; left: 3px; width: 20px; height: 20px; }
input.tg.sm:checked::before { transform: translateX(16px); }
.tg-inline { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-width: 0; -webkit-tap-highlight-color: transparent; }
.tg-inline .ico { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .tg-row { padding: 13px 14px; gap: 14px; }
  .tg-extra { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) { input.tg::before, .check input[type="checkbox"]::before { transition: none; } }
.tg-sec + .tg-sec { margin-top: 14px; }
.card > .tg-sec:not(:first-child), .card > p + .tg-sec { margin-top: 12px; }
/* Verfügbarkeit: Wochentag-Schalter mittig neben den Zeitfeldern */
.bs-day > .tg-inline { padding-top: 12px; }
@media (max-width: 760px) { .bs-day > .tg-inline { padding-top: 0; } }
/* Verfügbarkeit: die Zeitfenster eines Tages teilen sich die ganze Zeile (statt links gestapelt) */
.bs-day-body { flex-wrap: nowrap; align-items: flex-start; }
.bs-wins { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px; }
.bs-wins[hidden] { display: none; }
.bs-win { min-width: 0; }
.bs-win > .dt-field, .bs-win > input:not(.dt-native) { flex: 1 1 0; min-width: 0; }
.bs-day-body > .btn { flex: none; margin-top: 7px; }
.bs-day-body > .faint { padding-top: 12px; }
/* ganze Breite statt schmaler Einzelfelder (Nachrichten aufbewahren, Tickets löschen, Kalender-Auswahl) */
.bs-narrow { max-width: none; }
.cal-who, .cal-whorow .cal-who { max-width: none; flex: 1 1 320px; }
/* Reward Tree auf dem Handy: Reiter und Wege-Umschalter über die ganze Breite, Zahl neben dem Wort */
@media (max-width: 760px) {
  .rw-toprow { flex-direction: column; align-items: stretch; gap: 10px; }
  .rw-toprow > .rw-tabs, .rw-plan, .rw-plan > .seg { width: 100%; display: flex; }
  .rw-toprow .seg > button { flex: 1 1 0; min-width: 0; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .rw-toprow .seg > button .tb-tab-n { position: static; margin: 0; }
  .rw-plan > .rw-plan-n { display: none; }
}
@media (max-width: 760px) {
  .rw-toprow .seg.rw-tabs > button { flex: 1 1 auto; flex-wrap: nowrap; white-space: nowrap; padding: 6px 8px; }
}
/* Kachel „jederzeit einreichbar“ (im Editor markiert) */

/* ---------- Platzhalter Kacheln im Reward Tree ---------- */
/* „Kommt bald“: gestrichelt, Lavendel, mit Funkeln – ohne Inhalt für Mitglieder */
.sk-kind { position: relative; margin-top: 2px; font-size: 10px; font-weight: 700; color: #981053; background: rgba(247, 150, 198, 0.8); border-radius: 999px; padding: 1px 7px; }
.sk-key.soon i { background: rgba(247, 150, 198, 0.6); box-shadow: inset 0 0 0 2px rgba(165, 15, 89, 0.45); }
.sk-pic.art.soon, .sk-big.soon { background: rgba(247, 150, 198, 0.45); color: #981053; }
/* Verbindungsstück: kleiner runder Knoten auf dem Weg */
/* unsichtbar bis zur Freigabe (nur im Editor zu sehen) */
.sk-kinds { display: flex; width: 100%; }
.sk-kinds > button { flex: 1 1 0; }
/* „Neue Kachel daneben anlegen“: 8 Richtungen als Raster 3 × 3 (Mitte = diese Kachel) */
@media (max-width: 760px) { .sk-dirs.eight { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sk-dirs.eight .sk-dir-l { display: none; } }
/* „Neu“ Felder: deckend */
.sk-add, .sk-add:not(.x) { background: #fde4f0; }
/* Richtungsfeld 3 × 3 über die ganze Breite des Fensters, jede Richtung als eigenes Feld */

/* ---------- eigene Kachelfarben (Grün, Gelb, Lila, Orange) – der Stand steht dann am Zeichen in der Ecke ---------- */
.sk-pic.col-mint { --tc: #ec0b7a; }
.sk-pic.col-sun { --tc: #ec0b7a; }
.sk-pic.col-lilac { --tc: #f796c6; }
.sk-pic.col-peach { --tc: #ec0b7a; }
.sk-pic.art.custom { background: var(--tc); }
.sk-pic.art.custom .sk-big { background: rgba(255, 255, 255, 0.4); color: var(--text); }
/* Auswahl im Editor */
@media (max-width: 760px) { .sk-colors { grid-template-columns: repeat(5, minmax(0, 1fr)); } .sk-color { justify-content: center; padding: 8px; } .sk-color-l { display: none; } }

/* ---------- Leerraum: leeres Feld, durch das nur die Linie läuft ---------- */
.sk-gap { position: absolute; inset: 14%; z-index: 1; border-radius: calc(var(--t) * 0.22); border: 2px dashed rgba(10, 10, 16, 0.22); background: rgba(255, 255, 255, 0.35);
  display: grid; place-items: center; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted); padding: 0; }
.sk-gap.sel { border-color: var(--ink); color: var(--text); background: rgba(255, 255, 255, 0.7); }
.sk-gap.is-hidden { opacity: 0.5; }
.sk-board.tiny .sk-gap span { display: none; }
/* Anruf: Hintergrund reicht unten über den Bildschirmrand hinaus (iPhone zeigt sonst unter dem sichtbaren Bereich
   einen hellen Streifen); die Knöpfe bleiben durch den Innenabstand an derselben Stelle */
html.in-call, html.in-call body { background: #f79bc8; }
.call-screen, .call-screen:not(.x) { bottom: -160px; padding-bottom: calc(160px + max(26px, env(safe-area-inset-bottom))); overscroll-behavior: contain; }

/* Handy: Eingabefelder mit mindestens 16 px Schrift – sonst zoomt das iPhone beim Antippen heran und verschiebt alles */
@media (max-width: 760px), (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select:not(.set-pick), textarea, [contenteditable]:not([contenteditable=false]) { font-size: 16px !important; }
}

/* Schwebende Menüs (Nachricht: Antworten/Kopieren/Löschen, Mitteilungen) fast deckend wie Auswahllisten und
   Seitenmenü – sonst scheinen Nachrichten und Seite durch und man erkennt nichts. Am Handy dunkelt der Hintergrund
   hinter dem Nachrichten-Menü leicht ab. */
.msgr-menu, .msgr-menu:not(.x), .drop, .drop:not(.x) {
  background: rgba(255, 255, 255, 0.98); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 24px 60px rgba(10, 10, 16, 0.22), 0 0 0 1px rgba(10, 10, 16, 0.06);
}
@media (max-width: 760px) {
  .msgr-menu, .msgr-menu:not(.x) { z-index: 85; box-shadow: 0 0 0 100vmax rgba(33, 33, 33, 0.28), 0 24px 60px rgba(10, 10, 16, 0.22); }
}
/* Handy: Mitteilungen mittig mit gleichem Rand links und rechts (statt links am Rand zu kleben) */
@media (max-width: 760px) { .drop, .drop:not(.x) { left: 12px; right: 12px; width: auto; } }

/* iPhone mit offener Tastatur (app.js setzt html.kb-open, --kb-h, --kb-top): Chat und Nachrichten genau so hoch wie
   der sichtbare Bereich – Eingabezeile direkt über der Tastatur, ohne Lücke, Kopfzeile bleibt oben */
@media (max-width: 760px) {
  html.kb-open .main:has(> .page.full) { position: fixed; left: 0; right: 0; top: var(--kb-top, 0px); height: var(--kb-h, 100dvh); padding-bottom: 0; }
  html.kb-open .tabbar { display: none; }
}

/* Events & Termine: Beschreibung mit Formatierung (fett, kursiv, Überschrift, Liste, Zitat, Link) */
.ev-desc { white-space: normal; }
.ev-desc .md > :first-child { margin-top: 0; }
.ev-desc .md > :last-child { margin-bottom: 0; }
.kb-preview.ev-preview { min-height: 140px; }
/* formatierter Text überall (Events, News, Lernhub, Chat): Zitat mit Balken links, Links unterstrichen */
.md blockquote { margin: 10px 0; padding: 10px 16px; border-left: 4px solid var(--lilac, #f796c6); background: rgba(247, 150, 198, 0.22); border-radius: 0 14px 14px 0; color: var(--text); font-style: italic; }
.md a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(10, 10, 16, 0.45); }
.md a:hover { text-decoration-color: currentColor; }

/* Events: läuft gerade – Mint mit pulsierendem Punkt, eigener Abschnitt */
.ag-rel.live, .ag-rel.live:not(.x) { background: var(--mint); color: var(--on-pink); gap: 6px; }
.ag-rel.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ag-live 1.6s ease-in-out infinite; }
@keyframes ag-live { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .ag-rel.live::before { animation: none; } }
.ag-card.running { box-shadow: var(--shadow-s), inset 0 0 0 2px var(--mint); }

/* Turnierbaum: Namen direkt im Baum eintragen (erste Runde) */
.tb-edit-hint { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); color: var(--muted); font-size: 14px; line-height: 1.45; }
.tb-edit-hint .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--text); }
.tb-arena .tb-p.edit { padding: 0 4px 0 6px; gap: 6px; }
.tb-arena .tb-p.edit .tb-av { flex: none; }
input.tb-in, input.tb-in:not(.x) {
  flex: 1 1 auto; min-width: 0; width: 100%; height: 30px; min-height: 0; margin: 0; padding: 0 8px; border: 0; border-radius: 10px;
  background: transparent; box-shadow: none; font: inherit; font-size: inherit; color: inherit; text-overflow: ellipsis;
}
input.tb-in::placeholder { color: var(--ph, #a1a1a7); font-weight: 500; font-style: italic; }
input.tb-in:hover { background: rgba(10, 10, 16, 0.05); }
input.tb-in:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.tb-arena .tb-p.win input.tb-in:focus { background: #fff; }
.tb-arena .tb-m.editable.offen, .tb-arena .tb-m.editable.offen:not(.x) { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 12px 26px rgba(10, 10, 16, 0.12); }
.tb-arena .tb-m.editable.leer { opacity: 1; }
.tb-go { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; flex: none; }
.tb-go .ico { width: 12px; height: 12px; }
.tb-go:hover { background: #26262c; }
.tb-m.fertig .tb-go { background: rgba(10, 10, 16, 0.08); color: var(--text); }

/* Turnierbaum: Auswahl der @TikTok-Namen (Inhaber:in, Agent:innen, Creator:innen) unter dem Namensfeld */
.tb-pick { position: fixed; z-index: 130; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 24px 60px rgba(10, 10, 16, 0.22), 0 0 0 1px rgba(10, 10, 16, 0.06); font-family: var(--sans); }
.tb-pick-head { padding: 6px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tb-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tb-pick-row:hover, .tb-pick-row.hi { background: rgba(10, 10, 16, 0.06); }
.tb-pick-row.hi { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tb-pick-av { width: 32px; height: 32px; flex: none; font-size: 12px; }
.tb-pick-txt { display: flex; flex-direction: column; min-width: 0; }
.tb-pick-txt b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-pick-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =====================================================================================================
   Matchdate: Karten mit Plätzen (belegt · reserviert · frei), Booster in den vier Markenfarben
   ===================================================================================================== */
.mx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 26px; }
.mx-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; margin: 0; min-width: 0; }
.mx-card + .mx-card { margin-top: 0; }
.mx-card.mine { box-shadow: var(--shadow-s), inset 0 0 0 2px var(--ink); }
.mx-card.invite { box-shadow: var(--shadow-s), inset 0 0 0 2px var(--lilac); background: rgba(247, 150, 198, 0.28); }
.mx-card.past { opacity: 0.65; }
.mx-card.detail { max-width: 860px; }
.mx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mx-size, .mx-boost, .mx-st, .mx-rel { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mx-size .ico, .mx-boost .ico, .mx-st .ico { width: 13px; height: 13px; }
.mx-size { background: rgba(255, 255, 255, 0.75); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.mx-boost.b-normal { background: var(--mint); color: var(--on-pink); }
.mx-boost.b-normal_boost { background: var(--sun); color: var(--on-pink); }
.mx-boost.b-big { background: var(--lilac); color: var(--lilac-ink); }
.mx-boost.b-big_boost { background: var(--peach); color: var(--peach-ink); }
.mx-st { margin-left: auto; background: rgba(10, 10, 16, 0.06); color: var(--text); }
.mx-st.open { background: var(--ink); color: #fff; }
.mx-st.full { background: var(--mint); color: var(--on-pink); }
.mx-st.res { background: var(--lilac); color: var(--lilac-ink); }
.mx-st.warn { background: var(--peach); color: var(--peach-ink); }
.mx-title, a.mx-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
h2.mx-title { font-size: 28px; }
a.mx-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.mx-when .ico { width: 16px; height: 16px; }
.mx-rel { height: 22px; background: rgba(255, 255, 255, 0.8); color: var(--text); }
.mx-rel.soon { background: var(--mint); color: var(--on-pink); }
.mx-boost-long { margin: 0; font-size: 14px; color: var(--muted); }
.mx-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mx-slots.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-slots.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-slot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px var(--line); }
.mx-slot.me { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mx-slot.reserved { background: rgba(247, 150, 198, 0.35); box-shadow: inset 0 0 0 1.5px rgba(165, 15, 89, 0.35); }
.mx-slot.free { background: transparent; box-shadow: none; outline: 2px dashed rgba(10, 10, 16, 0.18); outline-offset: -2px; color: var(--muted); }
.mx-slot.free.closed { opacity: 0.7; }
.mx-av { width: 36px; height: 36px; flex: none; font-size: 13px; }
.mx-av-free { display: grid; place-items: center; border-radius: 50%; background: rgba(10, 10, 16, 0.06); color: var(--muted); }
.mx-av-free .ico { width: 16px; height: 16px; }
.mx-slot-txt { display: flex; flex-direction: column; min-width: 0; }
.mx-slot-txt b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-slot-txt small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-desc { font-size: 14.5px; color: var(--text); }
.mx-desc .md > :first-child { margin-top: 0; }
.mx-desc .md > :last-child { margin-bottom: 0; }
.mx-desc.clamp { max-height: 4.8em; overflow: hidden; -webkit-mask-image: linear-gradient(#0a0a10 60%, transparent); mask-image: linear-gradient(#0a0a10 60%, transparent); }
.mx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.mx-actions .btn.primary { flex: 1 1 auto; justify-content: center; }
.mx-back { display: inline-flex; margin-bottom: 14px; }
.ag-sec.live::before { background: var(--lilac-ink, #6d133f); }
/* Dialog „Match erstellen“ */
.mx-rule { margin: -4px 0 0; }
@media (max-width: 760px) {
  .mx-card { padding: 16px; }
  .mx-slots.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h2.mx-title { font-size: 24px; }
}
@media (max-width: 760px) { .mx-top .mx-st { margin-left: 0; } }

/* Matchdate: Karten weiß (Glas war zu blass), Plätze und Kennzeichen mit leichter Fläche darauf */
.card.mx-card, .card.mx-card:not(.x) { background: #fff; box-shadow: 0 12px 30px rgba(10, 10, 16, 0.1), inset 0 0 0 1px rgba(10, 10, 16, 0.06); }
.card.mx-card.mine, .card.mx-card.mine:not(.x) { box-shadow: 0 12px 30px rgba(10, 10, 16, 0.12), inset 0 0 0 2px var(--ink); }
.card.mx-card.invite, .card.mx-card.invite:not(.x) { background: #fff; box-shadow: 0 12px 30px rgba(109, 19, 63, 0.14), inset 0 0 0 2px #f03a94; }
.mx-card .mx-slot { background: #fde2ef; box-shadow: inset 0 0 0 1px rgba(10, 10, 16, 0.06); }
.mx-card .mx-slot.me { box-shadow: inset 0 0 0 1.5px var(--ink); }
.mx-card .mx-slot.reserved { background: #fcd7e9; box-shadow: inset 0 0 0 1.5px #ec0b7a; }
.mx-card .mx-slot.free { background: transparent; box-shadow: none; }
.mx-card .mx-size { background: #fde2ef; box-shadow: none; }
.mx-card .mx-rel { background: #fde2ef; }
.mx-card .mx-rel.soon { background: var(--mint); }
.mx-card .mx-st { background: #fde2ef; }
.mx-card .mx-st.open { background: var(--ink); }
.mx-card .mx-st.full { background: var(--mint); }
.mx-card .mx-st.res { background: var(--lilac); }
.mx-card .mx-st.warn { background: var(--peach); }
/* Dialog „Match erstellen“: Person einladen und Teamgröße nebeneinander (wie in der Vorlage) – am Handy untereinander */
@media (min-width: 761px) { .modal .mx-form .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reward Tree: mehrere Stränge – Name über jeder Start Kachel (statt „START“), bei Mitgliedern mit Stand */
.sk-strand { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(var(--t) * 2.4); padding: 3px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; font-size: 11px; line-height: 1.3; }
.sk-tools { align-items: center; gap: 10px; margin: 0 0 12px; }
/* Name des Strangs unter der Start Kachel (ohne Namen bleibt „Start“ darüber) */
/* Name des Strangs mittig im Abstand unter der Start Kachel – Größe wächst mit dem Zoom, damit er die Kachel darunter nie verdeckt */

/* ---------- Reward Tree als Flow-Editor (seit 0.4.8) ----------
   Linien: SVG-Ebene genau über den Rasterfeldern, unter den Kacheln (Farbverlauf setzt rewards.js je Linie).
   Editor: „Neu“ auf freien Feldern, Kachel ziehen = verschieben (Ablagefeld gestrichelt), Punkt = verbinden. */
.sk-wire { fill: none; stroke-linecap: butt; } /* gerade Enden: liegen bündig an der Seite bzw. Ecke */
.sk-board.edit .sk-gap { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* vier Anschlüsse (Mitte jeder Seite) an der ausgewählten Kachel, am PC auch beim Darüberfahren; beim Verbinden auch am
   Ziel – der nächste leuchtet grün */
.sk-port { --pp: clamp(16px, calc(var(--t) * 0.19), 22px); --in: 0%; position: absolute; z-index: 3; width: var(--pp); height: var(--pp); margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(10, 10, 16, 0.22); cursor: crosshair; touch-action: none;
  display: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .sk-board.edit .sk-scroll:not(.linking) .sk-cell:hover .sk-port { display: block; } }
/* Linie auswählen und lösen */
.sk-cut { position: absolute; z-index: 4; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: #ec0b7a; color: #fff; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(10, 10, 16, 0.22); cursor: pointer; }
/* Werkzeugleiste: Neuer Strang · Anzahl · was Ziehen verschiebt */
.sk-tools { flex-wrap: wrap; }
@media (max-width: 760px) {
}

/* Nachrichten: Video, das das Gerät nicht abspielen kann */
.msgr-media.video-bad { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 38px 16px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); max-width: 320px; }
.msgr-media.video-bad p { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.4; }
.msgr-media.video-bad p svg { flex: none; margin-top: 2px; }
.msgr-bubble .video-hint { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* Nachrichten: Video als Vorschau (erstes Bild, Abspielknopf, Dauer) – antippen öffnet es groß */
.msgr-media.video-tile { position: relative; display: block; width: 360px; max-width: 100%; aspect-ratio: 16 / 9; max-height: 420px; padding: 0; border: 0;
  border-radius: 18px; overflow: hidden; background: #0a0a10; cursor: pointer; color: #fff; }
.msgr-media.video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.msgr-media.video-tile .vt-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0a0a10; box-shadow: 0 8px 26px rgba(10, 10, 16, 0.28); transition: transform 0.15s; }
.msgr-media.video-tile .vt-play svg { width: 24px; height: 24px; margin-left: 3px; }
.msgr-media.video-tile:hover .vt-play { transform: scale(1.06); }
.msgr-media.video-tile:focus-visible { outline: 3px solid #0a0a10; outline-offset: 2px; }
.msgr-media.video-tile .vt-len { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 10, 16, 0.55);
  color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.msgr-mwrap .msgr-media.video-tile { margin: 0; }
.msgr-full.video { width: 100%; }
.msgr-full.video video { display: block; width: 100%; max-height: 72vh; border-radius: 18px; background: #0a0a10; }
.msgr-full .video-hint { margin: 0; }

/* =====================================================================================================
   Rewards 0.5.1: Kategorien mit Stufen als Liste (Fortschritt + Monatliche Einreichung, „Alle Stufen“)
   ===================================================================================================== */
.rw-page { display: flex; flex-direction: column; gap: 18px; }
.rw-cat-pick { width: 100%; margin: 0; }
.rw-cat-pick select, .rw-cat-pick select:not(.x) { width: 100%; }
.rw-cat-pick > span { font-weight: 600; }
.rw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rw-stat, .rw-stat:not(.x) { margin: 0; padding: 18px 20px; }
.rw-stat-l { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.rw-stat-l svg { width: 18px; height: 18px; color: var(--lilac-ink); }
.rw-stat-n { margin: 10px 0 4px; line-height: 1; letter-spacing: -0.02em; }
.rw-stat-n b { font-size: 36px; font-weight: 500; }
.rw-stat-n span { font-size: 22px; font-weight: 400; color: var(--muted); }
.rw-stat-s { margin: 0; color: var(--muted); font-size: 14px; }
.rw-stat.full .rw-stat-s { color: var(--peach-ink); font-weight: 600; }
.rw-head h2 { margin: 4px 0 2px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.rw-head p { margin: 0; }
.rw-list { display: flex; flex-direction: column; gap: 10px; }
.rw-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px 12px 12px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px;
  background: var(--tile); box-shadow: var(--shadow-s); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.rw-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.rw-row:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.rw-row.locked, .rw-row.soon { background: rgba(255, 255, 255, 0.55); }
.rw-st-pic { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.rw-st-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rw-st-pic svg { width: 28px; height: 28px; }
.rw-st-pic.done { background: var(--mint); color: var(--on-pink); box-shadow: none; }
.rw-st-pic.preview { background: var(--lilac); color: var(--lilac-ink); box-shadow: none; }
.rw-st-pic.mystery { display: flex; flex-direction: column; justify-content: center; gap: 3px; background: linear-gradient(150deg, #fbd0e5, #fbcbe3); color: var(--lilac-ink); }
.rw-st-pic.mystery svg { width: 22px; height: 22px; }
.rw-st-pic.mystery b { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.rw-st-pic.mystery.locked { color: var(--faint); background: rgba(255, 255, 255, 0.75); }
.rw-st-pic.soon { background: rgba(247, 150, 198, 0.5); color: #981053; box-shadow: none; }
.rw-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rw-kicker, .rw-where { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rw-where { margin: 0; }
.rw-row-title { font-size: 18px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.rw-row-st { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.rw-row-st svg { width: 15px; height: 15px; }
.rw-row-st.open { color: var(--lilac-ink); }
.rw-row-st.done { color: var(--mint-ink); }
.rw-row-st.wait { color: var(--sun-ink); }
.rw-row-st.no { color: var(--err); }
.rw-row-st.later { color: var(--peach-ink); }
.rw-row-st.locked { color: var(--faint); }
.rw-row-st.soon { color: #981053; }
.rw-row-gift, .rw-row-go { flex: none; display: grid; place-items: center; }
.rw-row-gift { color: var(--lilac-ink); }
.rw-row-go { color: var(--muted); }
.rw-row-gift svg, .rw-row-go svg { width: 20px; height: 20px; }
.sk-pend-node .rw-kicker { display: block; }
/* Stufen gestalten */
.rw-ed-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rw-ed-intro p { flex: 1 1 320px; margin: 0; }
.rw-ed-cat, .rw-ed-cat:not(.x) { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px; }
.rw-ed-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rw-ed-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; padding: 4px 6px 4px 0; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
.rw-ed-title:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.rw-ed-chev { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--ring); transition: transform 0.15s; }
.rw-ed-chev svg { width: 18px; height: 18px; }
.rw-ed-cat.closed .rw-ed-chev { transform: rotate(-90deg); }
.rw-ed-cat.closed { gap: 0; }
.rw-ed-intro-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-ed-title h3 { margin: 0; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.rw-ed-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-ed-row { display: flex; align-items: center; gap: 8px; }
.rw-ed-row .rw-ed-open { flex: 1; min-width: 0; }
.rw-ed-row.hidden .rw-ed-open { opacity: 0.62; border: 1px dashed var(--ring); }
.rw-ed-row.flash .rw-ed-open { box-shadow: 0 0 0 3px var(--lilac), var(--shadow-s); }
.rw-ed-move { display: flex; flex-direction: column; gap: 4px; }
.rw-ed-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.rw-flag { padding: 2px 9px; border-radius: 999px; background: rgba(247, 150, 198, 0.6); color: var(--lilac-ink); font-size: 12.5px; font-weight: 600; }
.rw-ed-add { display: flex; }
.rw-ed-none { margin: 0; }
@media (max-width: 560px) {
  .rw-stats { gap: 10px; }
  .rw-stat, .rw-stat:not(.x) { padding: 14px 16px; }
  .rw-stat-n b { font-size: 30px; }
  .rw-stat-n span { font-size: 19px; }
  .rw-row { gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; }
  .rw-st-pic { width: 54px; height: 54px; border-radius: 16px; }
  .rw-row-title { font-size: 16.5px; }
  .rw-ed-cat, .rw-ed-cat:not(.x) { padding: 14px; }
}

/* Creator Lernhub: Kategorie-Auswahl über die ganze Breite (ohne Suchfeld) */
.tk-tools.kb-tools-full { display: block; }
.tk-tools .kb-catsel, .tk-tools .kb-catsel:not(.x) { display: block; width: 100%; min-width: 0; }

/* Dashboard (Inhaber:in, Agent:innen): Nächste Termine und Nachrichten nebeneinander */
.dash-cols.two, .dash-cols.two:not(.x) { display: grid; columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.dash-cols.two > .card { margin: 0; }
@media (max-width: 860px) { .dash-cols.two, .dash-cols.two:not(.x) { grid-template-columns: minmax(0, 1fr); } .dash-cols.two > .card { order: 0; } }

/* Kalender (Creator:innen): „Ansehen“ und „Termin buchen“ im Kasten „Dein nächster Termin“ – am PC rechts daneben,
   bei wenig Platz unter dem Text über die ganze Breite */
.cal-next-row { flex-wrap: wrap; }
.cal-next-txt { flex: 1 1 260px; }
.cal-next-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: 0 0 auto; }
@media (max-width: 760px) {
  .cal-next-btns { flex: 1 1 100%; }
  .cal-next-btns .btn { flex: 1 1 0; justify-content: center; }
}

/* Kalender: Leiste der Ansichten (7 Tage · Woche · Monat) – „Heute“ gibt es seit 0.9.7 nicht mehr */
@media (max-width: 760px) {
  .cal-head .cal-views { flex: 1 1 auto; min-width: 0; }
  .cal-views > button { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; }
}

/* Kalender: Teilnehmende aus der Auswahlliste (Gesamte Agentur oder einzelne Personen) */
.cal-part-field select, .cal-part-field select:not(.x) { width: 100%; }
.cal-people:empty { display: none; }
.cal-person.picked, .cal-person.picked:not(.x) { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--line); }
.cal-person.picked .cal-pav { flex: none; width: 34px; height: 34px; }
.cal-pwho { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cal-pwho b { overflow-wrap: anywhere; }

/* =====================================================================================================
   Wallet („Dein Wallet“, Kontoverwaltung): Guthaben, Fortschritt bis zur Auszahlung, Abrechnung, Regeln, Verlauf;
   für die Inhaber:in alle Konten, Bearbeiten-Fenster und Vorschau der Backstage Tabelle
   ===================================================================================================== */
.wl { gap: 16px; }
.wl > .wl-tabs { align-self: flex-start; }
.wl-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.wl-tabs button svg { width: 17px; height: 17px; }
.wl .px-hero { margin-bottom: 0; }
.wl-hero .px-txt h2 { font-variant-numeric: tabular-nums; }
.wl-prog { display: flex; flex-direction: column; gap: 8px; }
.wl-prog-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.wl-prog-bar > span { display: block; height: 100%; min-width: 14px; border-radius: inherit; background: linear-gradient(90deg, #ec0b7a, #ec0b7a); transition: width 0.5s ease; }
.wl-prog-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.wl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wl-cols.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wl-cols > .card, .wl-cols > .stack > .card { margin: 0; }
.wl-cols > .stack { gap: 16px; }
@media (max-width: 960px) { .wl-cols, .wl-cols.wide { grid-template-columns: minmax(0, 1fr); } }

/* Regeln */
.wl-rule-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wl-rule-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; background: var(--tile); box-shadow: var(--shadow-s); }
.wl-rule-list li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-rule-list li span:not(.wl-rule-ico) { color: var(--muted); font-size: 14px; }
.wl-rule-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lilac); color: var(--lilac-ink); }
.wl-rule-ico svg { width: 18px; height: 18px; }

/* letzte Abrechnung */
.wl-calc-when { margin: 0 0 10px; }
.wl-lines { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--tile); box-shadow: var(--shadow-s); }
.wl-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.wl-line:first-child { border-top: 0; }
.wl-line-l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wl-line-l svg { width: 16px; height: 16px; }
.wl-line-c { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.wl-line-v { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.wl-line.off .wl-line-v, .wl-line.off .wl-line-c { color: var(--ph); }
.wl-line.sum { background: rgba(236, 11, 122, 0.28); }
.wl-line.sum .wl-line-v { font-size: 18px; }
.wl-line.wl-dia .badge { justify-self: end; }
.wl-line.wl-dur .wl-line-v { font-weight: 600; }

/* Buchungen und Tabellen */
.wl-entries { display: flex; flex-direction: column; gap: 8px; }
.wl-entry { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--tile); box-shadow: var(--shadow-s); }
.wl-entry-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wl-entry-ico svg { width: 17px; height: 17px; }
.wl-entry.k-earn .wl-entry-ico { background: var(--mint); color: var(--on-pink); box-shadow: none; }
.wl-entry.k-payout .wl-entry-ico { background: var(--lilac); color: var(--lilac-ink); box-shadow: none; }
.wl-entry-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wl-entry-txt b { overflow-wrap: anywhere; }
.wl-amt { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-amt.plus { color: var(--ok); }
.wl-amt.minus { color: var(--text); }
.wl-amt.zero { color: var(--ph); }
.wl-entry-act { flex: none; display: flex; gap: 4px; }

/* alle Konten */
.wl-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; margin-bottom: 12px; }
.wl-tools select, .wl-tools select:not(.x), .wl-tools input { width: 100%; min-height: 46px; }
@media (max-width: 760px) { .wl-tools { grid-template-columns: minmax(0, 1fr); } }
.wl-accs { display: flex; flex-direction: column; gap: 8px; }
.wl-acc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 20px;
  background: var(--tile); box-shadow: var(--shadow-s); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.wl-acc:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.wl-acc:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wl-acc-av { flex: none; width: 44px; height: 44px; }
.wl-acc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-acc-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wl-acc-name b { overflow-wrap: anywhere; }
.wl-acc-txt .small { overflow-wrap: anywhere; }
.wl-acc-bal { flex: none; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-acc-bal.zero { color: var(--ph); font-weight: 600; }
.wl-acc-go { flex: none; color: var(--faint); display: grid; }
.wl-acc-go svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .wl-acc-go { display: none; } .wl-acc-bal { font-size: 16px; } }

/* Bearbeiten-Fenster */
.wl-detail { display: flex; flex-direction: column; gap: 14px; }
.wl-d-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wl-d-av { flex: none; width: 56px; height: 56px; }
.wl-d-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.wl-d-who b { font-size: 19px; overflow-wrap: anywhere; }
.wl-d-bal { display: flex; flex-direction: column; align-items: flex-end; }
.wl-d-bal b { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wl-d-actions { flex-wrap: wrap; gap: 8px; }
.wl-d-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.wl-req, .wl-warn, .wl-hint-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; }
.wl-req > span, .wl-warn > span, .wl-hint-box > span { flex: 1 1 200px; min-width: 0; }
.wl-req svg, .wl-warn svg, .wl-hint-box svg { flex: none; width: 18px; height: 18px; }
.wl-req, .wl-warn { background: var(--sun); color: var(--on-pink); }
.wl-warn[hidden] { display: none; }
.wl-hint-box { background: rgba(247, 150, 198, 0.55); color: var(--lilac-ink); }
.wl-money-wrap { position: relative; }
.wl-money-wrap input { width: 100%; padding-right: 40px; font-variant-numeric: tabular-nums; }
.wl-eur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
@media (max-width: 520px) { .wl-d-bal { align-items: flex-start; width: 100%; } .wl-d-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* Vorschau der Tabelle */
.wl-pv { gap: 12px; }
.wl-pv-info { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.wl-pv-info > div { display: flex; flex-direction: column; min-width: 0; }
.wl-pv-month { flex: 0 1 300px; min-width: 0; }
.wl-pv-month select, .wl-pv-month select:not(.x) { width: 100%; }
.wl-pv-sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 600; color: var(--muted); }
.wl-pv-total { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.wl-pv-list { display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 560px); overflow: auto; padding: 2px; }
.wl-pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--tile); box-shadow: var(--shadow-s); }
.wl-pv-row.off { background: rgba(255, 255, 255, 0.55); }
.wl-pv-av { flex: none; width: 40px; height: 40px; }
.wl-pv-who { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; }
.wl-pv-who b, .wl-pv-who span { overflow-wrap: anywhere; }
.wl-pv-nums { flex: 0 1 520px; display: grid; grid-template-columns: 1fr 1.35fr 0.9fr 0.9fr; gap: 12px; }
.wl-pv-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-pv-n.low b { color: var(--sun-ink); }
.wl-pv-n small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wl-pv-n b { font-variant-numeric: tabular-nums; }
.wl-pv-amt { flex: none; min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ok); }
.wl-pv-amt.zero { color: var(--ph); }
.wl-unm summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.wl-unm-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wl-tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  /* Handy: Name und Betrag oben, darunter Diamanten, LIVE-Tage und Matches gleich breit nebeneinander */
  .wl-pv-row { flex-wrap: wrap; row-gap: 8px; }
  .wl-pv-who { flex: 1 1 0; }
  .wl-pv-amt { order: 2; min-width: 0; }
  .wl-pv-nums { order: 3; flex: 1 1 100%; padding-left: 52px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}
@media (max-width: 760px) { .wl > .wl-tabs { align-self: stretch; display: flex; } .wl-tabs button { flex: 1 1 0; justify-content: center; } }
/* Handy: Kennzahlen 2 × 2; Verlauf direkt nach der Abrechnung, die Regeln danach */
@media (max-width: 760px) { .wl-hero .px-stats, .wl-hero .px-stats:not(.x) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .wl-cols:not(.wide) > .stack { display: contents; } .wl-cols:not(.wide) > .stack > .wl-rules { order: 2; } }
/* Handy: Buchungen mit Bearbeiten/Löschen – Knöpfe in eine eigene Zeile rechts, damit der Text Platz hat */
@media (max-width: 600px) {
  .wl-entry:has(.wl-entry-act) { flex-wrap: wrap; row-gap: 2px; }
  .wl-entry-act { flex: 1 1 100%; justify-content: flex-end; }
}

.wl-entry.k-credit .wl-entry-ico { background: var(--mint); color: var(--on-pink); box-shadow: none; }
/* Antrag auf Auszahlung mit Info */
.wl-req-txt { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wl-info { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.wl-info-l { font-weight: 700; }
.wl-req-mine { align-items: flex-start; }
.wl-req-mine > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-info-in { width: 100%; min-height: 110px; resize: vertical; }
.wl-count { align-self: flex-end; }
.wl-ask-sum { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 20px; background: rgba(236, 11, 122, 0.35); }
.wl-ask-sum b { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .wl-pv-month { flex: 1 1 100%; } }
/* gewählte dritte Kachel (schon schwarz): mit lila Rand erkennbar */
.inv-tile.on:nth-child(4n+3), .inv-tile.on:nth-child(4n+3):not(.x) { box-shadow: 0 0 0 3px #ec0b7a; }

/* =====================================================================================================
   Rose 0.7 – Anthrazit-Grund wie im Referenzbild: Grund #0a0a10, darauf volle Flächen in Weiß, Lime und Lila.
   Schrift direkt auf dem Grund weiß (Akzent Lila), in den Flächen schwarz. Nur Farben – Aufbau und Schrift bleiben.
   ===================================================================================================== */
:root {
  --grad-page: #0a0a10;
  --bg: #0a0a10;
  --surface: #ffffff;                      /* Karten: weiß und undurchsichtig */
  --bg-2: #f3f3f6;                         /* leise Flächen in Karten */
  --tile: #f4f4f7;                         /* Kacheln in Karten */
  --on-ground: #ffffff;                    /* Schrift direkt auf dem Grund */
  --on-ground-muted: rgba(255, 255, 255, 0.64);
  --on-ground-ring: rgba(255, 255, 255, 0.28);
}
html, html.in-call, html.in-call body { background: #0a0a10; }
/* Kopfzeile: dunkles Glas, weiße Schrift, weiße runde Knöpfe */
.main > .top, .main > .top:not(.x) { background: rgba(10, 10, 16, 0.86); }
.top h1, .top h1:not(.x) { color: var(--on-ground); }
.top-sub { color: var(--on-ground-muted); }
.bell .n, .tab-count, .nav-sum, .msgr-count, .msgr-count:not(.x) { box-shadow: 0 0 0 2px #0a0a10; }
.top .btn.primary, .top .btn.primary:not(.x) { background: var(--mint); color: #0a0a10; box-shadow: none; }
.top .btn.primary:hover { background: #f254a2; }
.top .btn.primary .ico { color: #0a0a10; }
/* Karten: weiß, Hover bleibt weiß */
a.card:hover, button.card:hover { background: #ffffff; }
.btn, .btn:not(.primary):not(.ghost):not(.danger):not(.dark) { background: #ffffff; }
.btn.danger:not(.ghost) { background: #ffffff; }
.dash-row:hover, table.list tr.click:hover td { background: #f3f3f6; }
.dash-more, .dash-more:not(.x) { background: #ffffff; box-shadow: none; }
.dash-more:hover { background: #f3f3f6; }
.toast, .toast:not(.x) { background: #ffffff; color: #0a0a10; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.backdrop, .backdrop:not(.x), .side-back, .sel-back { background: rgba(0, 0, 0, 0.5); }

/* Begrüßung direkt auf dem Grund (wie „What do you want to do today?“): weiß, zweite Zeile Lila */
.dash-hello, .dash-hello:not(.x), .hello-hero, .hello-hero:not(.x) {
  background: transparent; box-shadow: none; color: var(--on-ground); padding: 10px 6px 6px; border-radius: 0;
}
@media (max-width: 760px) {
  .dash-hello, .dash-hello:not(.x), .hello-hero, .hello-hero:not(.x) { background: transparent; padding: 6px 2px 2px; border-radius: 0; }
}
.dash-hello h2, .hello-hero h2, .dash-hello h2 > span:first-child, .hello-hero h2 > span:first-child { color: var(--on-ground); }
.dash-hello h2 .red, .hello-hero h2 .red, .dash-hello h2 .red:not(.x) { color: var(--sun); font-weight: 400; }
.dash-hello p, .hello-hero p { color: var(--on-ground-muted); }
.dash-hello .sticker, .hello-hero .sticker, .dash-hello .sticker:not(.x), .hello-hero .sticker:not(.x) { color: var(--on-ground-muted); }
.dash-hello .sticker::before, .hello-hero .sticker::before { box-shadow: inset 0 0 0 1px var(--on-ground-ring);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.hello-hero .sticker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z'/%3E%3C/svg%3E"); }
.dash-ask, .dash-ask:not(.x), .dash-setup, .dash-setup:not(.x) { background: #ffffff; box-shadow: none; }
.dash-ask:focus-within { box-shadow: 0 0 0 3px var(--sun); }
.dash-ask .btn.primary, .dash-ask .btn.primary:not(.x) { background: var(--mint); color: #0a0a10; box-shadow: none; }
.dash-ask .btn.primary .ico { color: #0a0a10; }
.dash-ask .btn.primary:hover { background: #f254a2; }

/* Kennzahl-Kacheln in der Reihenfolge des Vorbilds: Lime · Weiß · Lila · Weiß, Schrift schwarz,
   Pfeil im schwarzen Kreis */
:is(.dash-tile, .inv-tile):nth-child(4n+1) { background: var(--mint); }
:is(.dash-tile, .inv-tile):nth-child(4n+2) { background: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) { background: var(--sun); }
:is(.dash-tile, .inv-tile):nth-child(4n+4) { background: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .value, .faint, .dash-sub, .delta, .muted), :is(.dash-tile, .inv-tile):nth-child(4n+3) .value:not(.x) { color: var(--text); }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .faint, .dash-sub, .delta, .muted) { color: rgba(10, 10, 16, 0.66); }
a.dash-tile::after { background-color: #0a0a10; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
/* gewählte Kachel: eigene Farbe bleibt, weißer Ring um die Kachel */
.inv-tile.on, .inv-tile.on:not(.x), .inv-tile.on:nth-child(4n+3), .inv-tile.on:nth-child(4n+3):not(.x) { box-shadow: 0 0 0 3px #0a0a10, 0 0 0 6px #ffffff; }
.inv-tile.on:nth-child(4n+1), .inv-tile.on:nth-child(4n+1):not(.x) { background: var(--mint); color: var(--text); }
.inv-tile.on:nth-child(4n+2), .inv-tile.on:nth-child(4n+4), .inv-tile.on:nth-child(4n+2):not(.x), .inv-tile.on:nth-child(4n+4):not(.x) { background: #ffffff; color: var(--text); }
.inv-tile.on:nth-child(4n+3):not(.x) { background: var(--sun); color: var(--text); }
.inv-tile.on .label, .inv-tile.on .value, .inv-tile.on .delta, .inv-tile.on .muted { color: var(--text); }

/* Anmeldung: Anthrazit, Text links weiß mit lila zweiter Zeile, weiße Karte */
.auth, .auth:not(.x), .auth-hero, .auth-hero:not(.x) { background: transparent; }
@media (min-width: 861px) { .auth, .auth:not(.x) { background: transparent; } .auth-hero, .auth-hero:not(.x) { background: none; } }
@media (max-width: 860px) { .auth-hero, .auth-hero:not(.x) { background: transparent; } }
.auth-hero h1, .auth-hero h1:not(.x) { color: var(--on-ground); }
.auth-hero h1 .auth-h-2 { color: var(--sun); font-weight: 400; }
.auth-hero p, .auth-hero p:not(.x) { color: var(--on-ground-muted); }
.auth-hero .sticker, .auth-hero .sticker:not(.x) { color: var(--on-ground-muted); }
.auth-hero .sticker::before { box-shadow: inset 0 0 0 1px var(--on-ground-ring);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z'/%3E%3C/svg%3E"); }
.auth-pill.lilac { background: #ffffff; }
.auth .panel, .auth .panel:not(.x), .auth .panel:not(.x):not(.y) { background: #ffffff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }

/* ---------- Flächen, die vorher durchscheinend waren: auf dem dunklen Grund undurchsichtig ---------- */
input, select, textarea, input:not(.x), .dt-field { background-color: #ffffff; }
input:focus, select:focus, textarea:focus, select.sel-open { background-color: #ffffff; }
input.tg, .check input[type="checkbox"] { background-color: #d4d4d7; }
.nav a:hover, .nav a:not(.on):hover, .nav-group-head:hover, .msgr-item:hover, .set-item:hover, .tg-row:hover { background: #f3f3f6; }
.btn.ghost:hover { background: rgba(128, 128, 128, 0.16); }
.tabs button { background: #ededf0; }
.tabs button:hover { background: #f7f7fa; }
.seg, .seg:not(.x) { background: #ededf0; box-shadow: none; }
.tb-pan { background: #f1f1f4; box-shadow: none; }
.tb-arena .tb-champ, .tb-arena .tb-champ:not(.x) { background: #ffffff; }
.rw-row.locked, .rw-row.soon { background: #e9e9ec; }
.rw-stat.full .rw-stat-s { color: var(--err); }
.msgr-item.on .tk-item-who, .msgr-item.on .tk-item-meta { color: var(--muted); }

/* ---------- Seitenköpfe direkt auf dem Grund: Schrift weiß; Knöpfe, Felder und Kacheln darin bleiben hell ---------- */
:is(.px-hero, .rk-hero, .set-one .set-head) {
  --text: #ffffff; --muted: rgba(255, 255, 255, 0.64); --faint: rgba(255, 255, 255, 0.5); --ring: rgba(255, 255, 255, 0.28); color: var(--text);
}
:is(.px-hero, .rk-hero, .set-one .set-head) :is(.btn:not(.ghost), select, input, textarea, .dt-field, .px-stat, .seg, .tabs, .badge, .chip, .card, .rk-switch, .rk-pod-block, .tb-prize, .px-note) {
  --text: #0a0a10; --muted: #56565c; --faint: #68686e; --ring: rgba(10, 10, 16, 0.22);
}
/* Kreis neben dem Seitentitel (seit 0.9.9): auf allen Seiten weiß mit schwarzem Symbol */
.px-ico, .px-ico:not(.x), .rk-crown, .rk-crown:not(.x), .set-one .set-ico, .set-one .set-ico:not(.x), .tb-hero-ico.gold, .tb-hero-ico.gold:not(.x) { background: #ffffff; box-shadow: none; color: #0a0a10; }
.px-ico .ico, .rk-crown .ico, .set-one .set-ico .ico, .tb-hero-ico.gold .ico { color: #0a0a10; }
:is(.px-actions, .px-hero, .msgr-none) .btn.primary, :is(.px-actions, .px-hero, .msgr-none) .btn.primary:not(.x) { background: var(--mint); color: #0a0a10; box-shadow: none; }
:is(.px-actions, .px-hero, .msgr-none) .btn.primary .ico { color: #0a0a10; }
:is(.px-actions, .px-hero, .msgr-none) .btn.primary:hover { background: #f254a2; }
/* Kennzahlen im Kopf: Lime · Weiß · Lila · Weiß (wie die Kacheln im Dashboard) */
.px-stat:nth-child(4n+2) { background: #ffffff; }
.px-stat:nth-child(4n+3), .px-stat:nth-child(4n+3):not(.x) { background: var(--sun); box-shadow: none; }
.px-stat:nth-child(4n+3) b, .px-stat:nth-child(4n+3) span { background: transparent; padding: 0; margin-top: 0; border-radius: 0; align-self: auto; }
/* Fortschritt (Turnier, Wallet) */
.tb-progress-bar, .tb-progress-bar:not(.x), .wl-prog-bar { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.tb-progress-bar i, .tb-progress-bar i:not(.x) { background: var(--mint); }
/* Rangliste: Umschalter dunkel mit weißem gewählten Feld, Sichtbarkeit als weiße Pille */
.rk-tabs, .rk-tabs:not(.x) { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.rk-tabs button, .rk-tabs button:not(.x) { color: var(--on-ground-muted); }
.rk-tabs button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.rk-tabs button.on, .rk-tabs button.on:not(.x) { background: #ffffff; color: #0a0a10; box-shadow: none; }
.rk-tabs button.on .ico { color: #0a0a10; }
.rk-switch, .rk-switch:not(.x) { background: #ffffff; color: #0a0a10; }
.rk-pod-crown .ico { color: #ffffff; fill: var(--sun); }

/* ---------- weitere Schrift direkt auf dem Grund ---------- */
.ag-sec, h3.ag-sec { color: var(--on-ground); }
.ag-sec::before { background: var(--mint); }
.ag-sec.live::before { background: var(--sun); }
details.ag-past > summary { color: var(--on-ground-muted); }
.cmsg-name, .cmsg-name span { color: var(--on-ground-muted); }
.cmsg-name b, .cmsg.rose .cmsg-name b { color: var(--on-ground); }
.msgr-day span { background: rgba(255, 255, 255, 0.1); color: var(--on-ground-muted); }
.tk-compose-row .tg-inline, .tk-compose-row .tg-inline .ico { color: var(--on-ground); }
.tk-compose-row input.tg:checked { background: var(--sun); }
.inv-filter > .small, .inv-filter > .muted, .inv-filter > span { color: var(--on-ground-muted); }
.msgr-main > .msgr-none, .msgr-main > .msgr-none :is(h2, h3, b) { color: var(--on-ground); }
.msgr-main > .msgr-none p, .msgr-main > .msgr-none .muted { color: var(--on-ground-muted); }
.msgr-main > .msgr-none .ico { color: var(--on-ground); }
.rw-head h2 { color: var(--on-ground); }
.rw-head p, .rw-head .muted, .rw-cat-pick > span, .rw-page > p.muted, .rw-page > .hint { color: var(--on-ground-muted); }
.tb-edit-hint { background: rgba(255, 255, 255, 0.08); color: var(--on-ground-muted); }
.tb-edit-hint .ico { color: var(--on-ground); }

/* vierte Kachel: Schwarz mit weißer Schrift (feiner heller Rand hebt sie vom Anthrazit-Grund ab); Pfeil im Lime-Kreis */
:is(.dash-tile, .inv-tile):nth-child(4n+4), :is(.dash-tile, .inv-tile):nth-child(4n+4):not(.x), .px-stat:nth-child(4n+4), .px-stat:nth-child(4n+4):not(.x) {
  background: #000000; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
}
:is(.dash-tile, .inv-tile):nth-child(4n+4) :is(.label, .value, .faint, .dash-sub, .delta, .muted), :is(.dash-tile, .inv-tile):nth-child(4n+4) .value:not(.x),
.px-stat:nth-child(4n+4) b, .px-stat:nth-child(4n+4) b:not(.x) { color: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+4) :is(.label, .faint, .dash-sub, .delta, .muted), .px-stat:nth-child(4n+4) span, .px-stat:nth-child(4n+4) span:not(.x) { color: rgba(255, 255, 255, 0.68); }
a.dash-tile:nth-child(4n+4)::after { background-color: var(--mint); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23181818' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.inv-tile.on:nth-child(4n+4), .inv-tile.on:nth-child(4n+4):not(.x) { background: #000000; color: #ffffff; box-shadow: 0 0 0 3px #0a0a10, 0 0 0 6px #ffffff; }
.inv-tile.on:nth-child(4n+4) :is(.label, .value, .delta, .muted) { color: #ffffff; }

/* Turnierbaum: weiße Karte statt Milchglas; wartende Spiele hellgrau, wartendes Finale helles Lila (alles undurchsichtig) */
.tb-arena, .tb-arena:not(.x) { background: #ffffff; }
.tb-arena .tb-m.wartet, .tb-arena .tb-m.leer { background: #f4f4f7; }
.tb-arena .tb-m.final.wartet, .tb-arena .tb-m.final.wartet:not(.x) { background: var(--lilac); color: var(--lilac-ink); box-shadow: inset 0 0 0 1.5px rgba(236, 11, 122, 0.35); }
.tb-arena .tb-m.final.wartet .tb-p, .tb-arena .tb-m.final.wartet .tb-m-no, .tb-arena .tb-m.final.wartet .tb-at { color: var(--lilac-ink); }
.tb-arena .tb-m.final .tb-m-no, .tb-arena .tb-m.final .tb-at { color: var(--text); }

/* Anruf mit Iris: Anthrazit wie die App, Kugel bleibt farbig; Knöpfe weiße Kreise mit schwarzem Symbol */
.call-screen, .call-screen:not(.x) {
  --text: #ffffff; --muted: rgba(255, 255, 255, 0.64); --faint: rgba(255, 255, 255, 0.5); --line: rgba(255, 255, 255, 0.12); --line-2: rgba(255, 255, 255, 0.2); --bg: #0a0a10;
  background: #0a0a10; color: var(--text);
}
.call-screen :is(.call-approval, .call-error) { --text: #0a0a10; --muted: #56565c; --faint: #68686e; background: #ffffff; color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.call-ico, .call-ico:not(.x) { background: #ffffff; color: #0a0a10; box-shadow: none; }
.call-ico .ico { color: inherit; }
.call-btn.on .call-ico, .call-btn.on .call-ico:not(.x) { background: var(--mint); color: #0a0a10; }
.call-btn.end .call-ico, .call-btn.end .call-ico:not(.x) { background: var(--sun); color: #0a0a10; }
.call-top.on { color: #0a0a10; }

/* =====================================================================================================
   Farbrollen (überall gleich, damit nichts willkürlich wirkt):
   • Grund Anthrazit #0a0a10 – Schrift darauf Weiß, Nebentext 64 % Weiß
   • Flächen Weiß – Schrift Schwarz; leise Flächen Hellgrau
   • Giftgrün #ec0b7a = Aktion und „jetzt“: Hauptknopf auf dem Grund, eigene Sprechblasen, Fortschritt, heute, läuft, Sieg, positiv
   • Lila #ec0b7a = Hervorhebung: Zähler, Akzent-Schrift, Finale, „in Arbeit“; helles Lila nur für sanfte Schilder
   • Schwarz = Hauptknopf in weißen Flächen, gewählte Reiter, dringend
   • Kacheln im Takt Giftgrün · Weiß · Lila · Schwarz. Schrift auf Lila tiefschwarz (gut lesbar)
   ===================================================================================================== */
:root { --sun-ink: #000000; }
.bell .n, .tab-count, .nav-sum, .msgr-count, .msgr-count:not(.x) { color: #000000; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .value, .faint, .dash-sub, .delta, .muted), :is(.dash-tile, .inv-tile):nth-child(4n+3) .value:not(.x),
.px-stat:nth-child(4n+3) b, .px-stat:nth-child(4n+3) span, .px-stat:nth-child(4n+3) b:not(.x), .px-stat:nth-child(4n+3) span:not(.x) { color: #000000; }
.inv-tile.on:nth-child(4n+3) :is(.label, .value, .delta, .muted) { color: #000000; }

/* Eigene Sprechblasen: Giftgrün mit schwarzer Schrift (Chat mit Iris, Nachrichten, Support) */
.msg.me, .msg.me:not(.x), .msgr-row.mine .msgr-bubble, .msgr-row.mine .msgr-bubble:not(.x) { background: var(--mint); color: #0a0a10; }
.msg.me .meta, .msgr-row.mine .msgr-bubble .msgr-meta, .msgr-row.mine .msgr-bubble .msgr-del, .msgr-row.mine .vm-foot { color: rgba(10, 10, 16, 0.66); }
.msg.me a, .msgr-row.mine .msgr-bubble a { color: #0a0a10; }
.msgr-row.mine .msgr-bubble .msgr-del:hover { background: rgba(10, 10, 16, 0.08); color: #0a0a10; }
.msgr-row.mine .msgr-media.audio { background: rgba(10, 10, 16, 0.07); }
.msgr-row.mine .vm-play { color: #0a0a10; }
.msgr-row.mine .vm-play:hover { background: rgba(10, 10, 16, 0.08); }
.msgr-row.mine .vm-bars i { background: rgba(10, 10, 16, 0.25); }
.msgr-row.mine .vm-bars i.on, .msgr-row.mine .vm-dot { background: #0a0a10; }
.msgr-row.mine .voice.played .vm-mic { background: #0a0a10; color: var(--mint); }
.msgr-row.mine .msgr-author, .msgr-row.mine .tk-who { color: #0a0a10; }
.msgr-row.mine .msgr-quote, .cmsg.me .cmsg-quote { background: rgba(10, 10, 16, 0.08); }
.msgr-row.mine .msgr-quote b, .cmsg.me .cmsg-quote b { color: #0a0a10; }
.msgr-row.mine .msgr-quote span, .cmsg.me .cmsg-quote span { color: rgba(10, 10, 16, 0.72); }
.msgr-row.mine .msgr-role { background: rgba(10, 10, 16, 0.1); color: #0a0a10; }

/* Knöpfe auf dem Grund: nur der Hauptknopf giftgrün; reine Symbol-Knöpfe weiß; schlichte Knöpfe mit weißer Schrift */
:is(.px-actions, .px-hero, .rk-hero) .btn.primary.icon, :is(.px-actions, .px-hero, .rk-hero) .btn.primary.icon:not(.x) { background: #ffffff; color: #0a0a10; }
:is(.px-actions, .px-hero, .rk-hero) .btn.primary.icon .ico { color: #0a0a10; }
:is(.rk-hero, .tk-compose-row, .msgr-compose > .row) .btn.primary, :is(.rk-hero, .tk-compose-row, .msgr-compose > .row) .btn.primary:not(.x) { background: var(--mint); color: #0a0a10; box-shadow: none; }
:is(.rk-hero, .tk-compose-row, .msgr-compose > .row) .btn.primary .ico { color: #0a0a10; }
/* schlichte Knöpfe in der Kopfzeile: weiß wie die runden Knöpfe daneben */
.top .row .btn.ghost, .top .row .btn.ghost:not(.x) { background: #ffffff; color: #0a0a10; box-shadow: none; }
.top .row .btn.ghost .ico { color: #0a0a10; }
.top .row .btn.ghost:hover { background: #f3f3f6; }
.rk-admin .btn.ghost, .rk-admin .btn.ghost:not(.x), .tk-compose-row .btn.ghost, .tk-compose-row .btn.ghost:not(.x) { color: #ffffff; }
.rk-admin .btn.ghost svg, .tk-compose-row .btn.ghost svg { color: #ffffff; }
.rk-admin .btn.ghost:hover, .tk-compose-row .btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
/* Profilbilder im Kopf bleiben dunkel beschriftet */
:is(.px-hero, .rk-hero, .set-one .set-head) .av { --text: #0a0a10; color: #0a0a10; }

/* Rangliste: Treppchen in den drei Hauptfarben – 1 Lila, 2 Giftgrün, 3 Weiß */
.rk-pod.p3 { --pill: #ffffff; }
/* Abschnitte: Strich Lila, „läuft gerade“ Giftgrün (wie die Karte darunter) */
.ag-sec::before { background: var(--sun); }
.ag-sec.live::before { background: var(--mint); }
/* Rollen-Schilder: Inhaber:in Schwarz, Agent:in helles Lila, Creator:in neutral – Giftgrün bleibt für „2FA aktiv“ */
.badge.ac-role.rose, .badge.ac-role.rose:not(.x) { background: #0a0a10; color: #ffffff; }
.badge.ac-role.ok, .badge.ac-role.ok:not(.x) { background: var(--lilac); color: var(--lilac-ink); }
/* Logo auf dem dunklen Grund: feiner heller Rand */
.msgr-none.big img, .bk-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px rgba(0, 0, 0, 0.4); }
.wl-acc-bal.zero { color: var(--muted); }

/* Lesbarkeit: Nebentext auf Giftgrün kräftiger, Zahlen auf Lila tiefschwarz, Knopf-Menü in der eigenen Sprechblase dunkel */
:is(.dash-tile, .inv-tile):nth-child(4n+1) :is(.label, .faint, .dash-sub, .delta, .muted), .px-stat:nth-child(4n+1) span, .px-stat:nth-child(4n+1) span:not(.x) { color: rgba(10, 10, 16, 0.78); }
.tb-tab-n, .tb-tab-n:not(.x) { color: #000000; }
.msg.me .msgr-more, .msgr-row.mine .msgr-bubble .msgr-more { background: rgba(10, 10, 16, 0.1); color: #0a0a10; }
.msg.me .msgr-more:hover, .msgr-row.mine .msgr-bubble .msgr-more:hover { background: rgba(10, 10, 16, 0.18); color: #000000; }
.auth-pill.sun em, .auth-pill.sun i .ico { color: #000000; }
.rk-admin .btn.rk-ghost, .rk-admin .btn.rk-ghost:not(.x) { background: #ffffff; color: #0a0a10; }
.rk-admin .btn.rk-ghost svg { color: #0a0a10; }
.rk-admin .btn.rk-ghost:hover { background: #f3f3f6; color: #0a0a10; }

/* Schema-Prüfung aller Seiten (0.7.1): letzte Stellen – Schrift auf Lila tiefschwarz, Zurück-Links weiß,
   Platzhalter dunkler (≥ 4,5 : 1), Speichern-Leiste deckend weiß */
:root { --ph: #737379; }
.tb-hero-champ span, .tb-hero-champ b, .tb-hero-champ > .ico { color: #000000; }
.tb-arena .tb-champ.on, .tb-arena .tb-champ.on:not(.x), .tb-arena .tb-champ.on b, .tb-champ.on .tb-champ-k { color: #000000; }
.tb-arena .tb-m.final, .tb-arena .tb-m.final:not(.x), .tb-arena .tb-m.final :is(.tb-m-no, .tb-at, .tb-p, .tb-n, .tb-s),
.tb-arena .tb-m.final .tb-p:not(.x) { color: #000000; }
.tb-arena .tb-m.final .tb-p.win, .tb-arena .tb-m.final .tb-p.win :is(.tb-n, .tb-s) { color: #0a0a10; }
.tb-arena .tb-m.wartet .tb-m-no, .tb-arena .tb-m.leer .tb-m-no { color: var(--muted); }
.nav .nav-count, .nav .nav-count:not(.x), .nav-sum, .nav-sum:not(.x) { color: #000000; }
.dt-field.dt-empty .dt-txt { color: var(--faint); }
.team-back, .team-back:not(.x), .ev-back, .ev-back:not(.x) { color: var(--on-ground-muted); }
.team-back:hover, .ev-back:hover { color: var(--on-ground); }
.team-back .ico, .ev-back .ico { color: currentColor; }
.bs-save, .bs-save:not(.x) { background: #ffffff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }

/* ---------- News & Infos als Karten (0.8.0) ----------
   Wie im Referenzbild: weiße Karte, oben rechts eine runde Aussparung im Grund mit rundem Knopf, links Überschrift,
   Datum (fett + klein), kurzer Anfang des Texts, rechts das erste Bild, unten runde Schilder. „Wichtig“ = helles Lila,
   neue News = giftgrüner Knopf und Schild „Neu“. Die Aussparung ist in der Grundfarbe gemalt (der Grund ist einfarbig). */
.nw-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; align-items: stretch; flex-direction: initial; }
.nw-card {
  --nw-pad: 24px; --nw-notch: 80px; --nw-btn: 66px; --nw-r: 30px; --nw-fillet: 22px; --nw-ground: #0a0a10;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "main" "pills";
  column-gap: 18px; row-gap: 18px; min-width: 0; min-height: 236px; padding: var(--nw-pad); border-radius: var(--nw-r);
  border-top-right-radius: 0; /* die Ecke liegt unter der Aussparung – ohne Rundung bleibt kein heller Rand */
  background: #ffffff; color: #0a0a10; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.16s ease;
}
.nw-card.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-areas: "main pic" "pills pills"; }
.nw-card:hover { transform: translateY(-2px); }
.nw-card-notch {
  position: absolute; top: 0; right: 0; z-index: 2; width: var(--nw-notch); height: var(--nw-notch);
  background: var(--nw-ground); border-bottom-left-radius: var(--nw-r);
}
.nw-card-notch::before, .nw-card-notch::after {
  content: ''; position: absolute; width: var(--nw-fillet); height: var(--nw-fillet);
  background: radial-gradient(circle at 0 100%, transparent calc(var(--nw-fillet) - 0.5px), var(--nw-ground) var(--nw-fillet));
}
.nw-card-notch::before { top: 0; left: calc(-1 * var(--nw-fillet)); }
.nw-card-notch::after { top: 100%; right: 0; }
.nw-card-open, .nw-card-open:not(.x) {
  position: absolute; top: 0; right: 0; width: var(--nw-btn); height: var(--nw-btn); border: 0; border-radius: 50%; padding: 0;
  display: grid; place-items: center; background: #ffffff; color: #0a0a10; cursor: pointer; box-shadow: none;
  transition: transform 0.16s ease, background 0.16s ease;
}
.nw-card-open .ico { width: 26px; height: 26px; color: currentColor; }
.nw-card:hover .nw-card-open { transform: rotate(45deg); }
.nw-card-open:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.nw-card.new .nw-card-open { background: var(--mint); }
.nw-card-main { grid-area: main; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nw-card-title {
  margin: 0; font-size: 26px; line-height: 1.16; font-weight: 700; letter-spacing: -0.015em; color: #0a0a10; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.nw-card:not(.has-pic) .nw-card-title { margin-right: calc(var(--nw-notch) - var(--nw-pad) + 8px); }
.nw-card-when { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 2px; color: #0a0a10; }
.nw-card-when b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.nw-card-when span { font-size: 15px; color: #56565c; }
.nw-card-text {
  margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; color: #56565c; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.nw-card-pic {
  grid-area: pic; position: relative; min-height: 150px; margin-top: calc(var(--nw-notch) - var(--nw-pad) + 10px);
  border-radius: 22px; overflow: hidden; background: #f0f0f3;
}
.nw-card-pic img, .nw-card-pic video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.nw-card-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #ffffff; }
.nw-card-play .ico { width: 22px; height: 22px; color: currentColor; margin-left: 2px; }
.nw-pills { grid-area: pills; display: flex; flex-wrap: wrap; gap: 8px; align-self: end; min-width: 0; }
.nw-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; max-width: 100%;
  background: #f0f0f3; color: #0a0a10; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.nw-pill > span { overflow: hidden; text-overflow: ellipsis; }
.nw-pill .ico { width: 16px; height: 16px; flex: none; color: currentColor; }
.nw-pill.new { background: var(--mint); color: #0a0a10; }
.nw-pill.imp { background: var(--sun); color: var(--on-pink); }
/* Wichtig: Karte in hellem Lila, Schilder weiß */
.nw-card.important { background: var(--lilac); }
.nw-card.important .nw-pill:not(.new):not(.imp) { background: #ffffff; }
.nw-card.important .nw-card-when span, .nw-card.important .nw-card-text { color: #501532; }
.nw-card.important .nw-card-pic { background: #ffffff; }
/* Ganze News im Fenster */
.modal .nw-post { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.modal .nw-post.important { box-shadow: none; }
@media (max-width: 640px) {
  .nw-feed { gap: 14px; }
  .nw-card { --nw-pad: 20px; --nw-notch: 68px; --nw-btn: 56px; --nw-r: 26px; --nw-fillet: 18px; min-height: 210px; column-gap: 14px; row-gap: 14px; }
  .nw-card.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 38%); }
  .nw-card-title { font-size: 21px; }
  .nw-card-when b { font-size: 18px; }
  .nw-card-when span { font-size: 14px; }
  .nw-card-text { font-size: 14.5px; }
  .nw-card-pic { min-height: 120px; border-radius: 18px; }
  .nw-pill { height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .nw-pill .ico { width: 15px; height: 15px; }
  .nw-card-open .ico { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .nw-card, .nw-card-open { transition: none; } .nw-card:hover { transform: none; } .nw-card:hover .nw-card-open { transform: none; } }

/* ---------- Kalender: „Heute“ zeigt den heutigen Tag (0.8.0) ----------
   Nach „Heute“ scrollt der Kalender zum heutigen Tag (Abstand für Kopfzeile und Handy-Leiste) und lässt ihn kurz
   giftgrün aufleuchten – danach wieder die normale Farbe. */
.cal-body :is(.ag-day, .mo-cell, .wk-day) { scroll-margin-top: 96px; scroll-margin-bottom: 104px; }
@keyframes cal-flash { 0%, 45% { background-color: #f8a2cc; box-shadow: inset 0 0 0 2px #0a0a10; } }
@keyframes cal-flash-col { 0%, 45% { background-color: rgba(236, 11, 122, 0.42); } }
.cal-body :is(.ag-day, .mo-cell, .wk-day).cal-flash { animation: cal-flash 1.6s ease-out; }
.cal-body .wk-col.cal-flash { animation: cal-flash-col 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .cal-body .cal-flash { animation-duration: 0.01s; } }

/* ---------- Kalender: Termine für alle (0.8.0) ----------
   Lila wie alles Hervorgehobene: in der Woche als lila Block mit schwarzer Schrift, in Listen mit lila Rand und Schild
   „Für alle“, im Monat und in der Legende als lila Punkt. */
.ev.alle, .ev.alle:not(.x), .ev-chip.alle, .ev-chip.alle:not(.x) { background: var(--sun); border-left-color: #0a0a10; color: var(--on-pink); }
.ev.alle .ev-time, .ev.alle b { color: var(--on-pink); }
.cal-item.alle, .cal-item.alle:not(.x) { border-left-color: var(--sun); }
.cal-legend i.alle, .mo-dots i.alle { background: var(--sun); }
.cal-alle-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; flex: none;
  background: var(--sun); color: var(--on-pink); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.cal-alle-tag .ico { width: 14px; height: 14px; color: currentColor; }

/* ---------- Events & Termine als Karten (0.8.0) ----------
   Dieselben Karten wie bei den News (.nw-card …); rechts statt Bild die Datum-Kachel: Schwarz mit weißer Schrift,
   heute/läuft Giftgrün, Termin für alle Lila (Karte hellila), vorbei Hellgrau. */
.ev-feed { margin-bottom: 8px; }
.ag-ncard.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); }
.ag-ncard .ag-ncard-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 8px; text-align: center;
  background: #0a0a10; color: #ffffff; min-height: 150px;
}
.ag-ncard .ag-ncard-date b { font-size: 64px; line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; color: inherit; }
.ag-ncard .ag-ncard-date span { font-size: 14px; font-weight: 700; color: inherit; overflow-wrap: anywhere; }
.ag-ncard .ag-ncard-date .ev-cd-wd { opacity: 0.8; }
.ag-ncard .ag-ncard-date.today { background: var(--mint); color: #0a0a10; }
.ag-ncard .ag-ncard-date.alle { background: var(--sun); color: var(--on-pink); }
.ag-ncard .ag-ncard-date.past { background: #f0f0f3; color: #56565c; }
.ag-ncard .ag-ncard-date.today .ev-cd-wd, .ag-ncard .ag-ncard-date.alle .ev-cd-wd, .ag-ncard .ag-ncard-date.past .ev-cd-wd { opacity: 1; }
.ag-ncard.past .nw-card-title { color: #3a3a40; }
.ev-desc-txt { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 0; }
@media (max-width: 640px) {
  .ag-ncard.has-pic { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); }
  .ag-ncard .ag-ncard-date { min-height: 120px; padding: 10px 6px; }
  .ag-ncard .ag-ncard-date b { font-size: 46px; }
  .ag-ncard .ag-ncard-date span { font-size: 12.5px; }
}
/* Handy: in der Terminliste kein Schild neben dem Titel (zu eng) – „Für alle“ steht in der Zeile darunter */
@media (max-width: 640px) { .cal-item .cal-alle-tag { display: none; } }

/* Nachrichten: beim ersten Öffnen eines Chats kurz ein ruhiger Lade-Kreis statt des vorigen Verlaufs (0.8.0) */
.msgr-loading { margin: auto; display: grid; place-items: center; color: var(--faint); padding: 40px 0; }
.msgr-loading .ico { width: 26px; height: 26px; animation: spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .msgr-loading .ico { animation: none; } }

/* ============================================================================================================
   Streamly Backstage 0.8 – Knallpink, Anthrazit, Weiß
   • Grund Anthrazit #0a0a10, darauf Weiß (Schrift, Karten) – Nebentext 64 % Weiß
   • EIN Akzent: Knallpink #EC0B7A – Aktion auf dem Grund, jetzt/neu/heute/live, eigene Sprechblasen, Fortschritt,
     Zähler, Hervorhebung. Schrift auf Pink immer Schwarz: Weiß auf diesem Pink hätte nur 4,3 : 1 (zu wenig für
     kleine Schrift), Schwarz hat 4,9 : 1.
   • Sanft: Hellrosa #FCDDEC (Schilder, wichtige Karten, 3. Kachel), Schrift darauf Dunkelpink #7A0A43
   • Dunkel: Anthrazit/Schwarz für Knöpfe in weißen Karten, „Wichtig“ und die 4. Kachel
   Kacheln: 1 Pink · 2 Weiß · 3 Hellrosa · 4 Schwarz. Treppchen: 1 Pink · 2 Hellrosa · 3 Weiß.
   ============================================================================================================ */
:root {
  --pink: #ec0b7a; --pink-hover: #f0358e; --pink-soft: #fcddec; --pink-ink: #7a0a43; --on-pink: #ffffff;
  --mint: var(--pink); --sun: var(--pink); --lilac: var(--pink-soft); --lilac-ink: var(--pink-ink);
  --mint-ink: #0a0a10; --sun-ink: #0a0a10;
  --rose-soft: rgba(252, 221, 236, 0.9);
}
::selection { background: var(--pink); color: var(--on-pink); }
/* Schrift auf Pink: Schwarz */
.msg.me, .msgr-row.mine .msgr-bubble, .msgr-row.mine .msgr-bubble:not(.x) { color: var(--on-pink); }
:is(.px-actions, .px-hero, .msgr-none, .rk-hero, .tk-compose-row, .dash-ask) .btn.primary, :is(.px-actions, .px-hero, .msgr-none, .rk-hero, .tk-compose-row, .dash-ask) .btn.primary:not(.x),
.top .btn.primary, .top .btn.primary:not(.x) { background: var(--pink); color: var(--on-pink); }
:is(.px-actions, .px-hero, .msgr-none, .rk-hero, .tk-compose-row, .dash-ask, .top) .btn.primary .ico { color: var(--on-pink); }
:is(.px-actions, .px-hero, .msgr-none, .rk-hero, .tk-compose-row, .dash-ask, .top) .btn.primary:hover { background: var(--pink-hover); }
.nav .nav-count, .nav-sum, .bell .n, .tab-count, .msgr-count, .msgr-count:not(.x) { color: var(--on-pink); }
/* 3. Kachel: Hellrosa (statt eines zweiten Pinks) */
:is(.dash-tile, .inv-tile):nth-child(4n+3), :is(.dash-tile, .inv-tile):nth-child(4n+3):not(.x), .px-stat:nth-child(4n+3), .px-stat:nth-child(4n+3):not(.x),
.inv-tile.on:nth-child(4n+3):not(.x) { background: var(--pink-soft); }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .faint, .dash-sub, .delta, .muted), .px-stat:nth-child(4n+3) span, .px-stat:nth-child(4n+3) span:not(.x) { color: rgba(48, 10, 28, 0.74); }
/* Treppchen: 2. Platz Hellrosa */
.rk-pod.p2 { --pill: var(--pink-soft); }
/* News & Events: „Neu/Heute/Läuft“ Pink, „Wichtig“ und „Termin für alle“ dunkel – so bleiben sie unterscheidbar */
.nw-pill.new { background: var(--pink); color: var(--on-pink); }
.nw-pill.imp { background: #0a0a10; color: #ffffff; }
.nw-card.important { background: var(--pink-soft); }
.nw-card.important .nw-card-when span, .nw-card.important .nw-card-text { color: #5a1834; }
.ag-ncard .ag-ncard-date { background: #0a0a10; }
.ag-ncard .ag-ncard-date.today, .ag-ncard .ag-ncard-date.alle { background: var(--pink); color: var(--on-pink); }
/* dunkle Knöpfe und Auswahl in weißen Karten: Anthrazit wie der Grund (statt Schwarz) */
:root { --ink: #0a0a10; --rose: #0a0a10; --rose-2: #0a0a10; --rose-deep: #0a0a10; --rose-hover: #24242e; --grad-rose: #0a0a10; --grad-ink: #0a0a10; }
.btn.primary:hover, .btn.primary.icon:hover { background: #24242e; }
/* Anmeldung: Pink · Hellrosa · Weiß */
.auth-pill.sun, .auth-pill.sun:not(.x) { background: var(--pink-soft); }
.auth-pill.mint em, .auth-pill.mint .ico { color: var(--on-pink); }
/* Kalender: heutige Spalte nur zart getönt (Pink ist kräftiger als das frühere Giftgrün) */
.wk-col.today, .wk-col.today:not(.x) { background-color: rgba(236, 11, 122, 0.05); }
/* Schrift auf Pink immer Schwarz – auch Neben- und Kleinschrift (Grau auf Pink wäre zu schwach) */
:is(.dash-tile, .inv-tile):nth-child(4n+1) :is(.label, .value, .faint, .dash-sub, .delta, .muted), :is(.dash-tile, .inv-tile):nth-child(4n+1) .value:not(.x),
.px-stat:nth-child(4n+1) :is(b, span), .px-stat:nth-child(4n+1) :is(b, span):not(.x),
.inv-tile.on:nth-child(4n+1) :is(.label, .value, .delta, .muted),
.msg.me, .msg.me *, .cmsg.me .msg.me div,
.msgr-row.mine .msgr-bubble :is(.msgr-author, .msgr-author span, .msgr-meta, .msgr-meta span, .msgr-del, .vm-foot),
.msgr-row.mine .msgr-bubble .msgr-meta:not(.x),
.tk-compose-row .btn.primary span, .rk-admin .btn.primary, .rk-admin .btn.primary:not(.x),
.tb-p.win, .tb-p.win :is(.tb-n, .tb-s), .tb-p.win .tb-s:not(.x),
.sk-sec.prize.given :is(b, span, .small, .muted), .sk-sec.prize.given .muted:not(.x) { color: var(--on-pink); }
.rk-admin .btn.primary .ico, .tk-compose-row .btn.primary .ico { color: var(--on-pink); }
/* 4. Kachel: dunkles Anthrazit, eine Spur heller als der Grund (#0A0A10) – so hebt sie sich ab */
:is(.dash-tile, .inv-tile):nth-child(4n+4), :is(.dash-tile, .inv-tile):nth-child(4n+4):not(.x), .px-stat:nth-child(4n+4), .px-stat:nth-child(4n+4):not(.x),
.inv-tile.on:nth-child(4n+4), .inv-tile.on:nth-child(4n+4):not(.x) { background: #1c1c26; }
/* Handy: Eingabefeld unter den Nachrichten deckend weiß (halbdurchsichtig wirkt es auf dem dunklen Grund grau) */
.msgr-compose .box, .msgr-compose .box:not(.x), .composer .box, .composer .box:not(.x) { background: #ffffff; }
/* Hinweise (Toasts): weiße Fläche → Überschrift dunkel (war weiß auf weiß), Punkt: Info dunkel, OK und Fehler pink */
.toast b, .toast b:not(.x) { color: #0a0a10; }
.toast::before, .toast.info::before { background: #0a0a10; }
.toast.ok::before, .toast.error::before { background: var(--pink); }
/* Rangliste: „Neue Tabelle“ (pink) mit schwarzer Schrift */
.rk-hero .rk-admin .btn.primary:not(.x):not(.y), .rk-hero .rk-admin .btn.primary:not(.x):not(.y) * { --text: var(--on-pink); color: var(--on-pink); }

/* ============================================================================================================
   0.8.1 – Feinschliff: ein ruhiges, festes System statt „überall Pink“
   Verteilung: 60 % Anthrazit (Grund) · 30 % Weiß (Karten) · 10 % Pink. Jede Farbe hat genau EINE Bedeutung:
   • Pink #EC0B7A = jetzt / neu / erledigt / gewonnen und der Hauptknopf – pro Gruppe höchstens ein pinker Block
   • Dunkel #0A0A10 (weiße Schrift) = wartet, Finale, „Wichtig“ – der ruhige Gegenpol
   • Hellrosa #FCDDEC (Dunkelpink #7A0A43) = Schilder und Hinweise (Creator:innen, Turnier, in Arbeit, Buchung)
   • Hellgrau #F1F1F4 = alles Neutrale in Karten (Schilder, Termine, Flächen)
   Grautöne sind leicht kühl gestimmt (wie das Anthrazit), Schatten und Linien kommen aus dem Anthrazit selbst.
   Kacheln: Pink · Weiß · Weiß · Dunkel (ein Akzent, ein Ruhepunkt). Treppchen: 1 Pink · 2 und 3 Weiß.
   ============================================================================================================ */
:root { --neutral: #f1f1f4; --dark: #0a0a10; }

/* Kacheln und Kennzahlen: die dritte wird weiß (kein zweiter Farbton neben Pink) */
:is(.dash-tile, .inv-tile):nth-child(4n+3), :is(.dash-tile, .inv-tile):nth-child(4n+3):not(.x),
.px-stat:nth-child(4n+3), .px-stat:nth-child(4n+3):not(.x), .inv-tile.on:nth-child(4n+3):not(.x) { background: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+3) :is(.label, .faint, .dash-sub, .delta, .muted),
.px-stat:nth-child(4n+3) span, .px-stat:nth-child(4n+3) span:not(.x) { color: var(--muted); }
.rk-pod.p2, .rk-pod.p3 { --pill: #ffffff; }

/* Zustände: erledigt = Pink · wartet = Dunkel · in Arbeit = Hellrosa */
.badge.ok, .badge.ok:not(.x), .tk-st.erledigt, .tk-st.erledigt:not(.x), .ev-st.beendet, .rw-mark.bestaetigt { background: var(--pink); color: var(--on-pink); }
.badge.warn, .badge.warn:not(.x), .tk-st.wartet, .tk-st.wartet:not(.x), .msgr-item.on .tk-st.wartet, .ev-st.wait, .ev-st.wait:not(.x) { background: var(--dark); color: #ffffff; box-shadow: none; }
.tk-st.in_bearbeitung, .tk-st.in_bearbeitung:not(.x) { background: var(--pink-soft); color: var(--pink-ink); }
/* Schilder für Zugehörigkeit (Creator:innen, Turnier, Kategorie) sanft statt knallig */
.ag-tour, .ag-tour:not(.x), .cr-chip, .cr-chip:not(.x), .kb-cat, .kb-cat:not(.x) { background: var(--pink-soft); color: var(--pink-ink); }
.ag-tour .ico, .cr-chip .ico { color: var(--pink-ink); }
/* Matches: normal = Pink, mit Boost = Dunkel */
.mx-boost.b-normal_boost, .mx-boost.b-normal_boost:not(.x) { background: var(--dark); color: #ffffff; }
/* Rewards: geschafft = Pink, wartet auf Bestätigung = Dunkel */
.sk-key.wait i, .sk-key.wait i:not(.x) { background: var(--dark); }
/* Wallet: Anfrage/Warnung dunkel */
.wl-req, .wl-req:not(.x), .wl-warn, .wl-warn:not(.x) { background: var(--dark); color: #ffffff; }
.wl-req *, .wl-warn * { color: inherit; }
/* Turnierbaum: Sieg = Pink, Finale = Dunkel, Pokal = Pink */
.tb-arena .tb-col.final .tb-col-head, .tb-arena .tb-col.final .tb-col-head:not(.x) { background: var(--dark); color: #ffffff; }
.tb-arena .tb-col.final .tb-col-head.on, .tb-arena .tb-col.final .tb-col-head.on:not(.x) { background: var(--dark); color: #ffffff; box-shadow: 0 0 0 2px var(--pink); }
/* Abschnitts-Striche: normal hell, „läuft gerade“ pink */
.ag-sec::before { background: rgba(255, 255, 255, 0.35); }
.ag-sec.live::before { background: var(--pink); }
/* Sanfte Flächen in Karten: neutral statt hellrosa (Hellrosa bleibt für Hinweise) */
.tb-prize, .tb-prize:not(.x) { background: var(--neutral); }

/* Kalender: normaler Termin neutral (dunkler Strich), Buchung hellrosa (pinker Strich), Termin für alle pink */
.wk .ev:not(.alle):not(.person):not(.buchung), .wk .ev:not(.alle):not(.person):not(.buchung):not(.x),
.ev-chip:not(.alle):not(.person):not(.buchung), .ev-chip:not(.alle):not(.person):not(.buchung):not(.x) { background: var(--neutral); border-left-color: var(--dark); }
.wk .ev.buchung:not(.person), .ev-chip.buchung:not(.person), .wk .ev.buchung:not(.person):not(.x) { background: var(--pink-soft); border-left-color: var(--pink); }
.cal-item:not(.alle):not(.person):not(.buchung) { border-left-color: var(--dark); }
.cal-item.buchung:not(.person) { border-left-color: var(--pink); }
.cal-legend i.termin, .mo-dots i.termin { background: var(--dark); }
.cal-legend i.buchung, .mo-dots i.buchung { background: var(--pink-soft); box-shadow: inset 0 0 0 1.5px var(--pink); }
/* Buchungen: sanft (Hellrosa) – „wartet“ bleibt dunkel */
.badge.buchung, .badge.buchung:not(.x) { background: var(--pink-soft); color: var(--pink-ink); box-shadow: none; }
/* Tickets: neu = Pink (braucht dich), in Arbeit = Hellrosa, wartet = Dunkel, erledigt = Neutral (ruhig) */
.tk-st.neu, .tk-st.neu:not(.x) { background: var(--pink); color: var(--on-pink); }
.tk-st.erledigt, .tk-st.erledigt:not(.x), .ev-st.beendet, .ev-st.beendet:not(.x) { background: var(--neutral); color: var(--text); }
.msgr-item.on .tk-st.erledigt { background: #ffffff; }
.tk-prio.hoch, .tk-prio.hoch:not(.x) { background: var(--pink-soft); color: var(--pink-ink); }
/* Zahlen-Kreise in weißen Karten: weißer statt dunkler Rand */
.card :is(.msgr-count, .tab-count, .nav-count), .card :is(.msgr-count, .tab-count):not(.x), .msgr-list .msgr-count, .msgr-list .msgr-count:not(.x) { box-shadow: 0 0 0 2px #ffffff; }
/* Events: „heute“ zeigt schon die pinke Datum-Kachel – der Knopf in der Ecke bleibt weiß (nicht dreimal Pink in einer Karte) */
.ag-ncard.new .nw-card-open, .ag-ncard.new .nw-card-open:not(.x) { background: #ffffff; }

/* Karten-Aussparung ohne helle Kante (0.8.2): Bei 125 %/150 % Bildschirm-Skalierung blitzte die weiße Kartenkante
   als feiner Strich über und unter dem runden Knopf durch. Die Aussparung reicht jetzt 1 px über den Kartenrand
   hinaus (die Karte schneidet nicht mehr ab) und die runden Übergänge überlappen sie um 1 px. */
.nw-card, .nw-card:not(.x) { overflow: visible; }
.nw-card-notch { top: -1px; right: -1px; width: calc(var(--nw-notch) + 1px); height: calc(var(--nw-notch) + 1px); }
.nw-card-notch::before { top: 0; left: calc(-1 * var(--nw-fillet) + 0.5px); height: calc(var(--nw-fillet) + 1px); }
.nw-card-notch::after { top: calc(100% - 1px); right: 0; width: calc(var(--nw-fillet) + 1px); height: calc(var(--nw-fillet) + 1px); }
.nw-card-open, .nw-card-open:not(.x) { top: 1px; right: 1px; }

/* ---------- 0.8.2: Schrift auf Pink weiß (Wunsch) ----------
   Weiß auf #EC0B7A hat 4,3 : 1 – damit es sicher lesbar bleibt, ist kleine Schrift auf Pink mindestens halbfett. */
:root { --on-pink: #ffffff; }
/* Zähler, Kacheln, Sprechblasen, Knöpfe */
.nav .nav-count, .nav-sum, .bell .n, .tab-count, .msgr-count, .badge.rose.nav-count, .badge.rose.nav-count:not(.x), .tb-tab-n, .tb-tab-n:not(.x) { color: #ffffff; }
:is(.dash-tile, .inv-tile):nth-child(4n+1) :is(.label, .faint, .dash-sub, .delta, .muted), .inv-tile.on:nth-child(4n+1) :is(.label, .delta, .muted),
.px-stat:nth-child(4n+1) span, .px-stat:nth-child(4n+1) span:not(.x) { color: #ffffff; font-weight: 600; }
.msg.me, .msg.me *, .cmsg.me .msg.me div, .msgr-row.mine .msgr-bubble .msgr-text, .msgr-row.mine .msgr-bubble .msgr-meta span { font-weight: 600; }
.tk-compose-row .btn.primary .ico, .tk-compose-row .btn.primary .ico:not(.x) { color: #ffffff; }
.nw-card.new .nw-card-open, .nw-card.new .nw-card-open:not(.x) { color: #ffffff; }
.dash-ev.today .dash-date small, .sk-sec.prize.given h4, .ev-card.beendet .ev-card-ico .ico { color: #ffffff; }
.sk-sec.prize.given :is(b, span, .small, .muted), .sk-sec.prize.given .muted:not(.x) { color: #ffffff; font-weight: 600; }
.auth-pill.mint em, .auth-pill.mint .ico { color: #ffffff; font-weight: 600; }
/* Treppchen und Turnier: Platz 1, Turniersieg, fertiges Finale */
.rk-pod.p1 .rk-pod-block span, .rk-pod.p1 .rk-pod-block span:not(.x) { color: #ffffff; }
.tb-hero-champ, .tb-hero-champ :is(span, b, .ico), .tb-hero-champ span:not(.x), .tb-hero-champ b:not(.x) { color: #ffffff; }
.tb-arena .tb-champ.on, .tb-arena .tb-champ.on :is(b, span, .tb-champ-k), .tb-arena .tb-champ.on .tb-champ-k:not(.x) { color: #ffffff; }
.tb-arena .tb-m.final:not(.wartet), .tb-arena .tb-m.final:not(.wartet) :is(.tb-m-no, .tb-at, .tb-p, .tb-n, .tb-s), .tb-arena .tb-m.final:not(.wartet) .tb-m-no:not(.x) { color: #ffffff; }
.tb-champ-k { color: var(--muted); }
/* Texte, die auf Weiß/Hellrosa stehen, bleiben dunkel */
.rw-row-st.done, .rw-row-st.wait, .rw-row-st.done .ico, .rw-row-st.wait .ico { color: var(--pink-ink); }
.ag-tour .ico, .cr-chip .ico { color: var(--pink-ink); }
.tb-arena .tb-m.final.wartet, .tb-arena .tb-m.final.wartet :is(.tb-p, .tb-m-no) { color: var(--pink-ink); }
/* Events: Knopf in der Ecke bleibt weiß → Pfeil dunkel; Pokal-Kreis beim Sieger weiß → Pokal pink */
.ag-ncard.new .nw-card-open, .ag-ncard.new .nw-card-open:not(.x) { color: #0a0a10; }
.tb-arena .tb-champ.on .tb-cup .ico, .tb-arena .tb-champ.on .tb-cup .ico:not(.x) { color: var(--pink); }

/* ---------- 0.8.2 – Handy: keine Tab-Leiste mehr (weder unten noch oben) ----------
   Oben steht wie am PC links der Seitentitel, rechts Anruf, Glocke und Menü (≡ öffnet das Menü-Blatt). */
@media (max-width: 760px) {
  .tabbar, .tabbar:not(.x) { display: none; }
  .page, .page:not(.x) { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .main:has(> .page.full), .main:has(> .page.full):not(.x) { padding-bottom: env(safe-area-inset-bottom); }
  body:has(.page.full textarea:focus) .main:has(> .page.full) { padding-bottom: 0; }
  .toasts, .approval, .toasts:not(.x) { bottom: calc(16px + env(safe-area-inset-bottom)); }
  /* Seiten mit fester Höhe (Nachrichten, Iris): Kopf nie zusammendrücken */
  .main > .top, .main > .top:not(.x) { flex: none; }
}

/* ---------- 0.8.2 – Handy: ein Menü für alles (≡ und „Mehr“) ----------
   weißes Blatt von unten; oben du (zum Profil), darunter alle Seiten nach Kategorien als gleich große Kacheln
   (3 je Reihe), die geöffnete Seite dunkel, Zähler pink mit weißer Schrift */
.modal.mn-sheet, .modal.mn-sheet:not(.x) { background: #ffffff; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 26px 16px calc(16px + env(safe-area-inset-bottom)); }
.mn { display: flex; flex-direction: column; gap: 18px; }
.mn-head { display: flex; align-items: center; gap: 10px; }
.mn-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 8px; border: 0; border-radius: 30px; background: var(--neutral); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mn-me .mn-av, .mn-me .mn-av:not(.x) { flex: none; width: 44px; height: 44px; font-size: 15px; }
.mn-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mn-who b { font-size: 15.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-who small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.mn-me > .ico { flex: none; width: 18px; height: 18px; color: var(--muted); }
.mn-sheet .btn.ghost.icon.mn-close, .mn-sheet .btn.ghost.icon.mn-close:not(.x) {
  flex: none; display: grid; place-items: center; width: 52px; min-width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: var(--neutral); color: var(--text); box-shadow: none;
}
.mn-sheet .btn.ghost.icon.mn-close .ico { width: 20px; height: 20px; color: var(--text); }
@media (hover: hover) { .mn-sheet .btn.ghost.icon.mn-close:hover { background: #e6e6eb; box-shadow: 0 0 0 2px var(--ink) inset; } }
.mn-sheet .btn.ghost.icon.mn-close:focus:not(:focus-visible) { box-shadow: none; outline: none; }
.mn-sheet .btn.ghost.icon.mn-close:active { background: #e2e2e9; transform: scale(0.96); }
.mn-sec { display: flex; flex-direction: column; gap: 10px; }
.mn-title { display: flex; align-items: center; gap: 8px; margin: 0; padding-left: 4px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.mn-title .ico { width: 16px; height: 16px; }
.mn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mn-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; min-height: 92px; padding: 12px 6px 11px; border: 0; border-radius: 24px; background: var(--neutral); color: var(--text); font: inherit; cursor: pointer; transition: transform 0.12s ease; }
.mn-tile:active { transform: scale(0.97); }
.mn-ico { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #ffffff; color: var(--text); }
.mn-ico .ico { width: 20px; height: 20px; }
.mn-label { max-width: 100%; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: break-word; hyphens: manual; }
.mn-tile.on { background: var(--dark); color: #ffffff; }
.mn-tile.on .mn-ico { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.mn-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #ffffff; font-size: 11.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mn-ico .mn-n { position: absolute; top: -5px; right: -9px; box-shadow: 0 0 0 2px var(--neutral); }
.mn-tile.on .mn-ico .mn-n { box-shadow: 0 0 0 2px var(--dark); }
.mn-foot { display: flex; align-items: center; gap: 12px; padding-top: 2px; }
.mn-logout { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 1.5px solid var(--line-2, rgba(10, 10, 16, 0.16)); border-radius: 26px; background: transparent; color: var(--text); font: 600 15px var(--sans); cursor: pointer; }
.mn-logout .ico { width: 18px; height: 18px; }
.mn-ver { flex: none; font-size: 12px; color: var(--muted); }
@media (max-width: 360px) {
  .mn-tile { min-height: 88px; padding: 11px 4px 10px; border-radius: 22px; }
  .mn-label { font-size: 12.5px; }
}

/* ---------- 0.8.2 – Kurz-Infos unter den Zahlen (Dashboard, Handy und PC) ----------
   Reihe runder Tabs auf dem dunklen Grund (Zähler pink, Schrift weiß); der gewählte Tab ist ein weißer Reiter mit
   umrandetem Kreis, der weich in die weiße Karte darunter übergeht. In der Karte: Titel groß, eine kurze Mitteilung,
   rechts der dunkle Pfeil-Knopf. Am Handy teilen sich die Tabs die ganze Breite, am PC stehen sie links. */
.kz { margin-top: 22px; }
.kz-tabs { display: flex; align-items: flex-end; min-height: 68px; }
.kz-tab { position: relative; flex: 0 0 84px; min-width: 0; height: 58px; padding: 0 0 6px; border: 0; background: transparent; color: #ffffff;
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: end; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kz-ico { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #ffffff; transition: background-color 0.2s ease; }
.kz-ico .ico { width: 20px; height: 20px; }
@media (hover: hover) { .kz-tab:not(.on):hover .kz-ico { background: rgba(255, 255, 255, 0.18); } }
.kz-tab:not(.on):active .kz-ico { background: rgba(255, 255, 255, 0.22); }
.kz-tab:focus { outline: none; }
.kz-tab:focus-visible .kz-ico { box-shadow: 0 0 0 2px var(--pink); }
.kz-n { position: absolute; top: -3px; right: -5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pink); color: #ffffff;
  font: 700 11.5px/20px var(--sans); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #0a0a10; }
/* gewählt: weißer Reiter, unten weiche Übergänge in die Karte */
.kz-tab.on { height: 68px; padding-bottom: 5px; background: #ffffff; border-radius: 26px 26px 0 0; color: var(--text); cursor: default; }
.kz-tab.on .kz-ico { width: 54px; height: 54px; background: #ffffff; color: #0a0a10; box-shadow: inset 0 0 0 1.25px #0a0a10; }
.kz-tab.on .kz-ico .ico { width: 21px; height: 21px; }
.kz-tab.on .kz-n { top: -2px; right: -3px; box-shadow: 0 0 0 2px #ffffff; }
.kz-tab.on:focus-visible .kz-ico { box-shadow: inset 0 0 0 1.25px #0a0a10, 0 0 0 3px var(--pink); }
.kz-tab.on::before, .kz-tab.on::after { content: ''; position: absolute; bottom: 0; width: 18px; height: 18px; pointer-events: none; }
.kz-tab.on::before { left: -18px; background: radial-gradient(circle at 0 0, transparent 17.5px, #ffffff 18px); }
.kz-tab.on::after { right: -18px; background: radial-gradient(circle at 100% 0, transparent 17.5px, #ffffff 18px); }
.kz.kz-l .kz-tab.on::before { display: none; }
/* Karte */
.kz-card, .kz-card:not(.x) { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 0; margin-top: -1px; padding: 22px 18px 18px 22px;
  background: #ffffff; border-radius: 26px; color: #0a0a10; text-decoration: none;
  --text: #0a0a10; --muted: #56565c; --faint: #68686e; }
.kz.kz-l .kz-card { border-top-left-radius: 0; }
.kz-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kz .kz-title, .kz .kz-title:not(.x) { margin: 0; font: 500 26px/1.15 var(--sans); letter-spacing: -0.01em; color: #0a0a10; }
.kz .kz-text, .kz .kz-text:not(.x) { margin: 0; font-size: 15px; line-height: 1.45; color: #56565c; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kz-go { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0a0a10; color: #ffffff; transition: transform 0.15s ease; }
.kz-go .ico { width: 17px; height: 17px; }
@media (hover: hover) { .kz-card:hover .kz-go { transform: translate(2px, -2px); } }
.kz-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
/* Handy: Tabs teilen sich die ganze Breite (erster bündig links, letzter bündig rechts) */
@media (max-width: 760px) {
  .kz { margin-top: 18px; }
  .kz-tab { flex: 1 1 0; }
  .kz.kz-r .kz-tab.on::after { display: none; }
  .kz.kz-r .kz-card { border-top-right-radius: 0; }
  .kz-card, .kz-card:not(.x) { min-height: 112px; padding: 20px 16px 20px 20px; }
  .kz .kz-title, .kz .kz-title:not(.x) { font-size: 24px; }
}
@media (max-width: 360px) {
  .kz-ico { width: 42px; height: 42px; }
  .kz-tab.on .kz-ico { width: 50px; height: 50px; }
  .kz .kz-title, .kz .kz-title:not(.x) { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .kz-ico, .kz-go { transition: none; } }
/* Menü-Blatt: Dashboard als breite Zeile über den Kategorien */
.mn-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px 8px 8px; border: 0; border-radius: 30px; background: var(--neutral); color: var(--text); font: 600 15px var(--sans); text-align: left; cursor: pointer; }
.mn-row .mn-label { flex: 1; min-width: 0; font-size: 15px; text-align: left; }
.mn-row > .ico { flex: none; width: 18px; height: 18px; color: var(--muted); }
.mn-row.on { background: var(--dark); color: #ffffff; }
.mn-row.on .mn-ico { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.mn-row.on > .ico { color: rgba(255, 255, 255, 0.7); }
.mn-row.on .mn-ico .mn-n { box-shadow: 0 0 0 2px var(--dark); }

/* ---------- 0.9.0 – Gerade Live: Karten wie bei News ----------
   rechts statt Bild das Profilbild groß; Schild „LIVE“ pink (Schrift weiß, jetzt = Pink) */
.lv-pic, .lv-pic:not(.x) { display: grid; place-items: center; background: var(--neutral); }
.lv-pic .lv-av, .lv-pic .lv-av:not(.x) { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; font-size: 40px; font-weight: 600; display: grid; place-items: center; }
.lv-pic .lv-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nw-pill.lv-on, .nw-pill.lv-on:not(.x) { background: var(--pink); color: #ffffff; gap: 8px; }
.nw-pill.lv-on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; flex: none; }
.lv-card .nw-card-text { -webkit-line-clamp: 2; }

/* ---------- 0.9.1 – Konten (Team, Creator:innen): Kacheln heben sich vom weißen Grund ab ----------
   kühles Hellgrau statt fast Weiß, runde Knöpfe darin weiß; „Du“ mit dunklem Rand */
.ac-tile, .ac-tile:not(.x) { background: #ebebf0; box-shadow: none; }
.ac-tile.me, .ac-tile.me:not(.x) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-tile .ac-round, .ac-tile .ac-round:not(.x) { background: #ffffff; }
.ac-tile .ac-round:hover { background: #ffffff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ac-tile .ac-round[aria-expanded="true"] { background: var(--ink); color: #ffffff; box-shadow: none; }
.ac-tile .av.ac-av:not(:has(img)) { box-shadow: 0 0 0 2px #ffffff; }

/* ---------- 0.9.1 – Eingabefeld unten (Nachrichten, Chat with Iris) – wie bei WhatsApp ----------
   PC: 14 px Abstand zur Unterkante. Handy: 8 px plus der Sicherheitsabstand für den iPhone-Strich (nur einmal, nicht
   doppelt wie bisher). Tastatur offen: 6 px direkt über der Tastatur, ohne Sicherheitsabstand (die Tastatur deckt ihn). */
.page.full .msgr, .page.full .msgr:not(.x) { padding-bottom: 14px; }
.page.full .chat .composer, .page.full .chat .composer:not(.x) { padding-bottom: 14px; }
@media (max-width: 760px) {
  .page.full, .page.full:not(.x) { padding-bottom: 0; }
  .main:has(> .page.full), .main:has(> .page.full):not(.x) { padding-bottom: 0; }
  .page.full .msgr, .page.full .msgr:not(.x) { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .page.full .chat .composer, .page.full .chat .composer:not(.x) { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  html.kb-open .page.full .msgr, html.kb-open .page.full .msgr:not(.x),
  body:has(.page.full :is(textarea, input):focus) .page.full .msgr:not(.x) { padding-bottom: 6px; }
  html.kb-open .page.full .chat .composer, html.kb-open .page.full .chat .composer:not(.x),
  body:has(.page.full :is(textarea, input):focus) .page.full .chat .composer:not(.x) { padding-bottom: 6px; }
  /* Reste der alten Leiste unten: Hinweise und Knöpfe sitzen jetzt unten mit normalem Abstand */
  .update-bar, .update-bar:not(.x) { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .push-bar, .push-bar:not(.x) { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bs-save, .bs-save:not(.x) { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .msgr-menu, .msgr-menu:not(.x) { bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* Rangliste verwalten (Fenster): Hochladen oben, Leeren unten abgesetzt */
.rk-manage { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rk-manage-danger { padding-top: 16px; border-top: 1px solid var(--line); }
/* Handy: „Verwalten“ über die ganze Breite (wie die Leiste Diamanten / LIVE Tage / LIVE Dauer darüber) */
@media (max-width: 760px) {
  .rk-hero-side .rk-admin, .rk-hero-side .rk-admin:not(.x) { width: 100%; flex: 1 1 100%; display: flex; }
  .rk-hero-side .rk-admin .btn, .rk-hero-side .rk-admin .btn:not(.x) { width: 100%; justify-content: center; min-height: 52px; }
}

/* ---------- 0.9.2 – Kurz-Infos: jede Mitteilung als eigener Abschnitt ----------
   oben Titel (und Summe), rechts der Pfeil zur Seite; darunter bis zu drei Abschnitte in Hellgrau – jeder ein eigener
   Link (Titel, kurze Zeile, rechts Zähler/Schild pink oder Pfeil). Am PC nebeneinander, am Handy untereinander. */
.kz-head { display: flex; align-items: flex-start; gap: 14px; }
.kz-head .kz-body { flex: 1; min-width: 0; }
.kz-go, .kz-go:not(.x) { text-decoration: none; }
.kz-go:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
@media (hover: hover) { .kz-card:hover .kz-go { transform: none; } .kz-card .kz-go:hover { transform: translate(2px, -2px); } }
.kz-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.kz-row, .kz-row:not(.x) { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 12px 14px 12px 16px; border-radius: 18px;
  background: var(--neutral); color: #0a0a10; text-decoration: none; transition: background-color 0.15s ease; }
@media (hover: hover) { .kz-row:hover { background: #e7e7ed; } }
.kz-row:active { background: #e2e2e9; }
.kz-row:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.kz-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kz-row-txt b { font-size: 15px; font-weight: 600; line-height: 1.3; color: #0a0a10; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-row-txt span { font-size: 13.5px; line-height: 1.35; color: #56565c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kz-row-n { flex: none; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--pink); color: #ffffff; font: 700 12px/24px var(--sans); }
.kz-row-go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffffff; color: #0a0a10; }
.kz-row-go .ico { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .kz-rows { grid-template-columns: minmax(0, 1fr); }
  .kz-row, .kz-row:not(.x) { min-height: 60px; }
}
.kz-row.empty, .kz-row.empty:not(.x) { min-height: 56px; cursor: default; }
.kz-row.empty .kz-row-txt b { font-weight: 500; color: #56565c; white-space: normal; }
@media (hover: hover) { .kz-row.empty:hover { background: var(--neutral); } }

/* ---------- 0.9.3 – Kalender: schmale Tageskarten (zwei Spalten am PC, Handy) ----------
   Ist die Karte schmal, steht die Uhrzeit über dem Titel statt daneben – der Titel bekommt die volle Breite und
   bricht nicht mehr Buchstabe für Buchstabe um. Das Schild („Für alle“, „Buchung“) steht rechts neben dem Titel. */
.cal-agenda .ag-day { container-type: inline-size; container-name: agday; }
@container agday (max-width: 470px) {
  .cal-item, .cal-item:not(.x) { flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 3px; padding-top: 11px; padding-bottom: 11px; }
  .cal-item .when, .cal-item .when:not(.x) { flex: 1 0 100%; min-width: 0; font-size: 12.5px; line-height: 1.3; }
  .cal-item .what, .cal-item .what:not(.x) { flex: 1 1 0; min-width: 0; }
  .cal-item .what b { hyphens: manual; overflow-wrap: break-word; }
  .cal-item > .badge, .cal-item > .cal-alle-tag { flex: none; align-self: center; }
}
/* Handy: Kalender-Symbol und „Mein Kalender“ in einer Zeile (das Symbol stand allein darüber) */
@media (max-width: 760px) {
  .cal-whorow, .cal-whorow:not(.x) { flex-wrap: wrap; align-items: center; column-gap: 10px; min-width: 0; max-width: 100%; }
  .cal-whorow > .ico, .cal-whorow > .cal-who-ico, .cal-whorow > svg { flex: none; }
  .cal-whorow > .cal-who, .cal-whorow > .sel, .cal-whorow > .sel-wrap { flex: 1 1 0; min-width: 0; width: auto; }
}

/* ---------- 0.9.3 – Chats: Creator-Gruppe, Reaktionen, Umfragen, @Erwähnungen, gelesen-Haken ----------
   eigene Blasen sind pink mit weißer Schrift – dort alles in Weiß/halbtransparent, in fremden Blasen hellgrau/pink */
.msgr-av.team.crew, .msgr-av.team.crew:not(.x) { background: #0a0a10; color: #ffffff; }
.msgr-item.on .msgr-av.team.crew { background: #ffffff; color: #0a0a10; }
/* Reaktionen */
.msgr-rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.msgr-rx-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 0; border-radius: 13px; background: rgba(10, 10, 16, 0.07); color: inherit; font: 600 12.5px var(--sans); cursor: pointer; }
.msgr-rx-chip > span { font-size: 14px; line-height: 1; }
.msgr-rx-chip.mine { box-shadow: inset 0 0 0 1.5px var(--pink); }
.msgr-row.mine .msgr-rx-chip { background: #ffffff; color: #0a0a10; }
.msgr-row.mine .msgr-rx-chip.mine { background: var(--pink-soft); color: var(--pink-ink); box-shadow: inset 0 0 0 1.5px #ffffff; }
.msgr-rx-pick { display: flex; justify-content: space-between; gap: 2px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.msgr-rx-opt { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; transition: transform 0.12s ease, background-color 0.12s ease; }
.msgr-rx-opt:hover, .msgr-rx-opt:focus-visible { background: var(--neutral); transform: scale(1.12); outline: none; }
.msgr-rx-opt.on { background: var(--pink-soft); }
/* gelesen-Haken (Direktnachrichten) */
.msgr-tick { margin-left: 4px; font-size: 11.5px; letter-spacing: -2.5px; opacity: 0.7; }
.msgr-tick.read { opacity: 1; font-weight: 800; }
/* @Erwähnungen */
.msgr-mention { font-weight: 700; }
.msgr-mention.me { padding: 0 3px; border-radius: 6px; background: rgba(236, 11, 122, 0.14); color: var(--pink-ink); }
.msgr-row.mine .msgr-mention { text-decoration: underline; text-underline-offset: 3px; }
.msgr-compose { position: relative; }
.msgr-mention-pop { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto;
  padding: 6px; border-radius: 18px; background: #ffffff; box-shadow: 0 18px 40px rgba(10, 10, 16, 0.25), 0 0 0 1px rgba(10, 10, 16, 0.05); }
.msgr-mention-pop[hidden] { display: none; }
.msgr-mention-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: #0a0a10; text-align: left; cursor: pointer; font: inherit; }
.msgr-mention-opt.on, .msgr-mention-opt:hover { background: var(--neutral); }
.msgr-mention-opt .msgr-mention-av, .msgr-mention-opt .msgr-mention-av:not(.x) { flex: none; width: 34px; height: 34px; font-size: 12px; }
.msgr-mention-txt { display: flex; flex-direction: column; min-width: 0; }
.msgr-mention-txt b { font-size: 14px; font-weight: 600; }
.msgr-mention-txt span { font-size: 12.5px; color: #56565c; }
/* Umfragen */
.msgr-bubble.has-poll { min-width: min(320px, 78vw); }
.msgr-poll { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.msgr-poll-q { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.35; }
.msgr-poll-ico { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(10, 10, 16, 0.07); }
.msgr-poll-ico .ico { width: 14px; height: 14px; }
.msgr-poll-opts { display: flex; flex-direction: column; gap: 6px; }
.msgr-poll-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px; border: 0; border-radius: 14px; background: rgba(10, 10, 16, 0.05); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.msgr-poll-opt:disabled { cursor: default; }
.msgr-poll-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.msgr-poll-mark.multi { border-radius: 7px; }
.msgr-poll-mark .ico { width: 13px; height: 13px; }
.msgr-poll-opt.on .msgr-poll-mark { background: var(--pink); color: #ffffff; box-shadow: none; }
.msgr-poll-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.msgr-poll-bar { display: block; height: 5px; border-radius: 3px; background: rgba(10, 10, 16, 0.08); overflow: hidden; }
.msgr-poll-bar i { display: block; height: 100%; border-radius: 3px; background: var(--pink); }
.msgr-poll-n { flex: none; min-width: 18px; text-align: right; font-size: 13px; }
.msgr-poll-info { opacity: 0.75; }
.msgr-row.mine .msgr-poll-ico, .msgr-row.mine .msgr-poll-opt { background: rgba(255, 255, 255, 0.16); }
.msgr-row.mine .msgr-poll-bar { background: rgba(255, 255, 255, 0.25); }
.msgr-row.mine .msgr-poll-bar i { background: #ffffff; }
.msgr-row.mine .msgr-poll-opt.on .msgr-poll-mark { background: #ffffff; color: var(--pink); }
.msgr-poll-foot { justify-content: flex-end; }
.msgr-poll-erow { flex-wrap: nowrap; gap: 8px; }
.msgr-poll-erow input { flex: 1 1 auto; width: auto; min-width: 0; }
.msgr-poll-erow > .btn { flex: none; }
/* News: Umfrage und Reaktionen im Fenster (gleiche Bausteine wie in den Chats) */
.nw-live { display: flex; flex-direction: column; gap: 14px; }
.nw-poll { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--neutral); }
.nw-poll .msgr-poll-opt { background: #ffffff; }
.nw-poll .msgr-poll-ico { background: #ffffff; }
.nw-poll-foot { gap: 10px; flex-wrap: wrap; }
.nw-rx { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-rx-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: var(--neutral); color: #0a0a10; font: 600 14px var(--sans); cursor: pointer; transition: transform 0.12s ease; }
.nw-rx-btn > span { font-size: 18px; line-height: 1; }
.nw-rx-btn:hover { transform: translateY(-1px); }
.nw-rx-btn.on { background: var(--pink-soft); box-shadow: inset 0 0 0 1.5px var(--pink); color: var(--pink-ink); }
.nw-pill.nw-rx-pill > span { letter-spacing: 1px; }
.nw-poll-edit { padding: 14px; border-radius: 20px; background: var(--neutral); }
.nw-poll-edit[hidden] { display: none; }
@media (max-width: 480px) {
  .nw-rx { gap: 5px; }
  .nw-rx-btn { height: 38px; padding: 0 10px; gap: 4px; }
}
/* Schalter-Listen: Rahmen liegt über den Zeilen – sonst übermalt die Hover-Farbe ihn */
.tg-list { position: relative; }
.tg-list::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
/* 0.9.4 – Reward System: Umschalter Agent:innen/Creator:innen direkt rechts neben der Kategorie-Auswahl
   (am Handy direkt darunter, volle Breite); unter „Stufen gestalten“ neben „Neue Kategorie“ */
.rw-catrow { display: flex; align-items: flex-end; gap: 10px 12px; flex-wrap: wrap; }
.rw-catrow > .rw-cat-pick { flex: 1 1 320px; width: auto; min-width: 0; }
.rw-catrow.solo { justify-content: flex-end; }
.rw-catrow.solo:has(> .rw-cat-seg:empty) { display: none; }
.rw-cat-seg { display: flex; flex: none; }
.rw-cat-seg:empty { display: none; }
.rw-catrow .rw-cat-seg > .seg { min-height: 50px; align-items: stretch; }
.rw-catrow .rw-cat-seg > .seg > button { min-height: 42px; padding: 0 18px; }
.rw-ed-intro-btns { align-items: center; }
@media (max-width: 600px) {
  .rw-ed-intro-btns .rw-cat-seg, .rw-ed-intro-btns .rw-cat-seg > .seg { width: 100%; }
  .rw-ed-intro-btns .rw-cat-seg > .seg > button { flex: 1 1 0; min-width: 0; }
}
/* Handy: Kategorie und Umschalter bleiben nebeneinander (Wunsch) – der Umschalter wird schmaler,
   ein langer Kategoriename endet mit „…“ */
@media (max-width: 600px) {
  .rw-catrow { flex-wrap: nowrap; gap: 8px; }
  .rw-catrow > .rw-cat-pick { flex: 1 1 auto; }
  .rw-catrow > .rw-cat-pick select, .rw-catrow > .rw-cat-pick select:not(.x) { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; padding-right: 36px; }
  .rw-catrow .rw-cat-seg > .seg { min-height: 0; height: 48px; padding: 3px; }
  .rw-catrow .rw-cat-seg > .seg > button { min-height: 0; padding: 0 9px; font-size: 12.5px; }
}
@media (max-width: 340px) {
  .rw-catrow { flex-wrap: wrap; }
  .rw-catrow > .rw-cat-pick { flex: 1 1 100%; }
  .rw-catrow .rw-cat-seg, .rw-catrow .rw-cat-seg > .seg { width: 100%; }
  .rw-catrow .rw-cat-seg > .seg > button { flex: 1 1 0; }
}

/* =========================================================================
   0.9.4 – Aktionsleisten überall gleich (.act-bar): alle Knöpfe einer Leiste sind gleich hohe Pillen mit
   Symbol + Text, Löschen ist ein runder Knopf ganz rechts. Auf weißen Flächen hellgrau, in Fenstern weiß
   mit leichtem Schatten, auf dunklen Köpfen weiß. „Angeheftet“ (an) ist hellrosa. Am Handy 44 px hoch,
   in Fenstern und Kopfzeilen teilen sich die Pillen die ganze Breite.
   ========================================================================= */
.act-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.act-bar > .btn:not(.x):not(.y):not(.z):not(.w) { height: 40px; min-height: 40px; padding: 0 16px; gap: 8px; border: 0; border-radius: 20px; background: var(--neutral); color: #0a0a10; box-shadow: none; font: 600 13.5px/1 var(--sans); white-space: nowrap; transform: none; justify-content: center; margin: 0; width: auto; }
.act-bar > .btn:not(.x):not(.y):not(.z):not(.w) .ico { width: 17px; height: 17px; color: currentColor; }
.act-bar > .btn:not(.x):not(.y):not(.z):not(.w):hover:not(:disabled) { background: #e6e6eb; }
.act-bar > .btn.icon:not(.x):not(.y):not(.z):not(.w) { width: 40px; padding: 0; border-radius: 50%; }
.act-bar > .btn.danger:not(.x):not(.y):not(.z):not(.w) { color: var(--pink-ink); }
.act-bar > .btn.on:not(.x):not(.y):not(.z):not(.w) { background: var(--pink-soft); color: var(--pink-ink); }
.act-bar > .btn.primary:not(.x):not(.y):not(.z):not(.w) { background: #0a0a10; color: #ffffff; }
.act-bar > .btn.primary:not(.x):not(.y):not(.z):not(.w) .ico { color: #ffffff; }
.act-bar > .btn.primary:not(.x):not(.y):not(.z):not(.w):hover { background: #26262c; }
.act-bar > .btn:not(.x):not(.y):not(.z):not(.w):disabled { opacity: 0.35; cursor: default; }
.modal .act-bar > .btn:not(.primary):not(.on):not(.x):not(.y):not(.z):not(.w) { background: #ffffff; box-shadow: 0 1px 2px rgba(10, 10, 16, 0.06), 0 6px 16px rgba(10, 10, 16, 0.07); }
.modal .act-bar > .btn:not(.primary):not(.on):not(.x):not(.y):not(.z):not(.w):hover:not(:disabled) { background: #f7f7f9; }
.px-actions.act-bar > .btn:not(.primary):not(.on):not(.x):not(.y):not(.z):not(.w) { background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 18px rgba(10, 10, 16, 0.14); }
.px-actions.act-bar > .btn:not(.primary):not(.on):not(.x):not(.y):not(.z):not(.w):hover { background: #ffffff; }
/* News: links „Gelesen von …“, rechts die Leiste */
.nw-admin, .nw-admin:not(.x) { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.nw-readers { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; border: 0; background: none; color: #3d3d45; font: 600 13.5px var(--sans); cursor: pointer; }
.nw-readers .ico { width: 17px; height: 17px; }
.nw-readers:hover { color: #0a0a10; }
.nw-readers:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* Fenster: „Schließen“ und „Abbrechen“ als echte Knöpfe (hellgraue Pille) statt blankem Text */
.modal .actions .btn.ghost:not(.x):not(.y):not(.z):not(.w) { background: rgba(10, 10, 16, 0.06); color: #0a0a10; }
.modal .actions .btn.ghost:not(.x):not(.y):not(.z):not(.w):hover { background: rgba(10, 10, 16, 0.1); }
.modal .actions .btn.ghost.danger:not(.x):not(.y):not(.z):not(.w) { color: var(--pink-ink); }
/* Reward System „Stufen gestalten“: Knöpfe auf dem dunklen Grund sichtbar (weiß bzw. Pink) */
.rw-ed-intro-btns > .btn:not(.x):not(.y):not(.z):not(.w) { height: 40px; min-height: 40px; padding: 0 16px; border-radius: 20px; gap: 8px; font: 600 13.5px/1 var(--sans); }
.rw-ed-intro-btns > .btn:not(.primary):not(.x):not(.y):not(.z):not(.w) { background: #ffffff; color: #0a0a10; box-shadow: none; }
.rw-ed-intro-btns > .btn.primary:not(.x):not(.y):not(.z):not(.w) { background: var(--pink); color: #ffffff; box-shadow: 0 8px 20px rgba(236, 11, 122, 0.3); }
.rw-ed-intro-btns > .btn.primary:not(.x):not(.y):not(.z):not(.w) .ico { color: #ffffff; }
.rw-ed-intro-btns > .btn.primary:not(.x):not(.y):not(.z):not(.w):hover { background: var(--pink-hover); }
@media (max-width: 600px) {
  .act-bar > .btn:not(.x):not(.y):not(.z):not(.w) { height: 44px; min-height: 44px; }
  .act-bar > .btn.icon:not(.x):not(.y):not(.z):not(.w) { width: 44px; }
  .modal .act-bar, .nw-admin > .act-bar, .kb-tools.act-bar, .ev-tools.act-bar, .inv-acts.act-bar, .sk-more.act-bar, .rw-ed-tools.act-bar, .mx-actions.act-bar { width: 100%; }
  .modal .act-bar > .btn:not(.icon), .kb-tools.act-bar > .btn:not(.icon), .ev-tools.act-bar > .btn:not(.icon), .inv-acts.act-bar > .btn:not(.icon), .sk-more.act-bar > .btn:not(.icon), .rw-ed-tools.act-bar > .btn:not(.icon), .mx-actions.act-bar > .btn:not(.icon) { flex: 1 1 0; min-width: 0; }
  .nw-admin, .nw-admin:not(.x) { flex-direction: column; align-items: stretch; }
  .nw-readers { align-self: flex-start; }
  .rw-ed-intro-btns { width: 100%; }
  .rw-ed-intro-btns > .btn:not(.x):not(.y):not(.z):not(.w) { flex: 1 1 0; height: 44px; }
}
/* Events: „Alle Events“ stand weiß auf der weißen Karte (unsichtbar) */
.card .ev-back, .card .ev-back:not(.x) { color: #56565c; }
.card .ev-back:hover { color: #0a0a10; }
@media (max-width: 600px) {
  .rw-ed-intro-btns > .rw-cat-seg { order: -1; flex: 1 1 100%; }
}
/* Support am Handy (Wunsch): „Übernehmen“ (Hand) und Löschen als runde Knöpfe oben rechts im Kopf */
@media (max-width: 600px) {
  .tk-head-actions.act-bar { flex: none; flex-wrap: nowrap; gap: 6px; }
  .tk-head-actions.act-bar > .btn.tk-take:not(.x):not(.y):not(.z):not(.w) { width: 44px; padding: 0; border-radius: 50%; }
  .tk-head-actions .tk-take-l, .tk-head-actions .btn.primary .ico + .tk-take-l { display: none; }
}
/* 0.9.4 – Support-Ticket: Eingabefeld genau wie bei den Chats (eine Pille, runder Senden-Knopf);
   🔒 = Interne Notiz (an: hellrosa), ✓ = Antworten & erledigen (nur mit Text), darüber die Leiste „Interne Notiz“ */
.tk-compose .box .tk-note-btn.on, .tk-compose .box .tk-note-btn.on:not(.x) { background: var(--pink-soft); color: var(--pink-ink); }
.tk-compose .box .tk-note-btn.on .ico { color: var(--pink-ink); }
.tk-compose .box .tk-done-btn:hover { color: #0a0a10; }
.tk-compose .box.internal, .tk-compose .box.internal:not(.x) { background: #fff4f9; box-shadow: inset 0 0 0 1.5px var(--pink); }
.tk-notebar .msgr-replybar-txt b { display: inline-flex; align-items: center; gap: 6px; color: var(--pink-ink); }
.tk-notebar .msgr-replybar-txt b .ico { width: 14px; height: 14px; }
/* Support für Creator:innen: Antwort-Pille in der weißen Karte hellgrau (wie Eingabefelder auf Karten) */
.sp-detail .sp-reply.msgr-compose { padding: 14px 0 0; background: none; }
.sp-detail .sp-reply .box, .sp-detail .sp-reply .box:not(.x) { background: var(--neutral); box-shadow: none; }
.sp-detail .sp-reply .box:focus-within { background: #ffffff; box-shadow: 0 0 0 1.5px var(--ink); }
/* Support für Creator:innen: „Du“ in der eigenen (dunklen) Blase war dunkel auf dunkel */
.sp-detail .sp-msg.mine .sp-who, .sp-detail .sp-msg.mine .sp-who:not(.x) { color: rgba(255, 255, 255, 0.78); }
/* =========================================================================
   0.9.4 – Gerade Live: das Profilbild ist der ganze Hintergrund der Kachel. Oben links die Schilder, oben rechts
   der Pfeil in der Aussparung, unten Name, @TikTok, seit wann und LIVE-Titel weiß auf einem dunklen Verlauf.
   ========================================================================= */
.nw-card.lv-photo, .nw-card.lv-photo:not(.x) {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "pills" "." "main";
  min-height: 420px; background: #15151c; color: #ffffff; overflow: hidden;
}
.lv-photo .nw-card-pic.lv-pic, .lv-photo .nw-card-pic.lv-pic:not(.x) {
  position: absolute; inset: 0; z-index: 0; margin: 0; min-height: 0; border-radius: 0; background: #1d1d25;
}
.lv-photo .lv-pic .lv-av, .lv-photo .lv-pic .lv-av:not(.x) { font-size: 96px; font-weight: 600; letter-spacing: -0.02em; }
.lv-photo .lv-pic .lv-av img { object-position: center 30%; transition: transform 0.4s ease; }
.lv-photo:hover .lv-pic .lv-av img { transform: scale(1.04); }
/* Verlauf: oben leicht (Schilder), unten kräftig (Schrift) */
.lv-photo .lv-pic::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 16, 0.92) 0%, rgba(10, 10, 16, 0.7) 28%, rgba(10, 10, 16, 0.18) 58%, rgba(10, 10, 16, 0) 72%, rgba(10, 10, 16, 0.22) 100%);
}
.lv-photo .nw-card-main, .lv-photo .nw-pills { position: relative; z-index: 1; }
.lv-photo .nw-pills { align-self: start; margin-right: calc(var(--nw-notch) - var(--nw-pad) + 6px); }
.lv-photo .nw-card-main { gap: 6px; }
.lv-photo .nw-card-title, .lv-photo .nw-card-title:not(.x) { color: #ffffff; font-size: 30px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.lv-photo .nw-card-when, .lv-photo .nw-card-when:not(.x) { color: #ffffff; }
.lv-photo .nw-card-when b { color: #ffffff; font-size: 18px; }
.lv-photo .nw-card-when span, .lv-photo .nw-card-when span:not(.x) { color: rgba(255, 255, 255, 0.82); }
.lv-photo .nw-card-text, .lv-photo .nw-card-text:not(.x) { color: rgba(255, 255, 255, 0.9); }
.lv-photo .nw-pill:not(.lv-on), .lv-photo .nw-pill:not(.lv-on):not(.x) { background: rgba(255, 255, 255, 0.9); color: #0a0a10; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 640px) {
  .nw-card.lv-photo, .nw-card.lv-photo:not(.x) { min-height: 440px; }
  .lv-photo .nw-card-title, .lv-photo .nw-card-title:not(.x) { font-size: 26px; }
  .lv-photo .nw-pill { height: 34px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lv-photo .lv-pic .lv-av img { transition: none; } .lv-photo:hover .lv-pic .lv-av img { transform: none; } }
/* 0.9.5 – Nachrichten: Hinweis für Agent:innen ohne Creator:innen (warum es noch keine Creator-Gruppe gibt) */
.msgr-crew-hint, .msgr-crew-hint:not(.x) { display: flex; align-items: flex-start; gap: 10px; margin: 4px 6px 6px; padding: 10px 12px; border-radius: 16px; background: var(--neutral); color: #3d3d45; font-size: 13px; line-height: 1.4; }
.msgr-crew-hint .ico { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--pink-ink); }

/* 0.9.7 – Seitenköpfe am Handy: Knöpfe (z. B. „+ Neues Turnier“, „+ Match erstellen“, „+ Neue News“, „+ Neues Event“)
   stehen UNTER den Zahlen-Widgets (Wunsch). Dazu wird die Zeile aufgelöst und die Reihenfolge getauscht. */
@media (max-width: 760px) {
  .px-hero:has(> .px-stats) > .px-row { display: contents; }
  .px-hero:has(> .px-stats) > .px-row > .px-ico { align-self: flex-start; }
  .px-hero:has(> .px-stats) > .px-stats { order: 1; }
  .px-hero:has(> .px-stats) > .px-row > .px-actions { order: 2; }
}
/* Knöpfe direkt in der Titelzeile (app.hero titleActions) – z. B. „Einstellungen“ bei Gerade Live */
.px-title { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; min-width: 0; }
.px-title > h2 { flex: 1 1 auto; min-width: 0; margin: 0; }
.px-title-acts { display: flex; gap: 8px; flex: none; }
.px-title-acts .btn:not(.primary), .px-title-acts .btn:not(.primary):not(.x) { background: #ffffff; color: #0a0a10; box-shadow: none; height: 44px; min-height: 44px; padding: 0 18px; border-radius: 22px; gap: 8px; font: 600 14px/1 var(--sans); }
.px-title-acts .btn:not(.primary):hover { background: #f3f3f6; }
@media (max-width: 760px) {
  .px-title-acts .btn:not(.primary), .px-title-acts .btn:not(.primary):not(.x) { height: 40px; min-height: 40px; padding: 0 14px; font-size: 13px; }
}

/* 0.9.8 – weicher Seitenwechsel: die alte Seite blendet kurz aus, die neue gleitet von leicht unten herein; der Titel
   oben blendet mit. Ganzseitige Bereiche (Nachrichten, Chat with Iris, Support) nur mit Blende (ohne Verschieben – dort
   stehen Eingabefelder fest am unteren Rand). Wer „Bewegung reduzieren“ eingestellt hat, sieht keine Animation. */
/* die alte Einblendung jeder Seite (rose.css: .page { animation: pg-in }) lief unsichtbar, solange die neue Seite noch
   aufgebaut wurde – daher der harte Wechsel. Sie ist aus; es gilt nur noch .page-enter. */
.page { animation: none; }
@keyframes rose-page-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes rose-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rose-page-out { from { opacity: 1; } to { opacity: 0; } }
.page.page-enter { animation: rose-page-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both; } /* startet, wenn die alte fast weg ist */
.page.full.page-enter { animation-name: rose-fade-in; animation-duration: 0.22s; }
.page.page-leave { animation: rose-page-out 0.1s ease-out both; }
.title-enter { animation: rose-fade-in 0.26s ease both; }
@media (prefers-reduced-motion: reduce) {
  .page.page-enter, .page.page-leave, .title-enter { animation: none; }
}

/* 0.9.9 – noch weicher: View Transitions (wo der Browser es kann). Die alte Seite (Foto) blendet aus und hebt sich ein
   klein wenig, die neue gleitet von unten herein; der Kopf (Titel, Knöpfe) blendet weich über. Kein Verformen der Fläche
   (group: none), damit nichts gestaucht wird, wenn die Seiten verschieden lang sind. */
::view-transition-group(rose-page), ::view-transition-group(rose-title) { animation: none; }
/* „Durchblenden nacheinander“ (wie bei Handy-Apps): alt in 0,09 s weg, dann gleitet neu in 0,3 s herein – kein Doppelbild */
::view-transition-old(rose-page), ::view-transition-old(rose-title) { animation: rose-vt-out 0.09s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(rose-page) { animation: rose-vt-in 0.3s cubic-bezier(0.05, 0.7, 0.1, 1) 0.09s both; }
::view-transition-new(rose-title) { animation: rose-vt-fade 0.22s cubic-bezier(0, 0, 0.2, 1) 0.09s both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes rose-vt-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes rose-vt-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes rose-vt-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* Gerade Live: „Gerade ist niemand LIVE“ über die ganze Breite (nicht nur eine Spalte des Karten-Rasters) */
.lv-feed > .ev-empty, .lv-feed > .card:only-child { grid-column: 1 / -1; }

/* Auge im Passwortfeld (0.9.9): Passwort beim Eintippen sichtbar machen */
.pw-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.pw-wrap > input { width: 100%; padding-right: 54px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; box-shadow: none; }
.pw-eye:hover { background: rgba(10, 10, 16, 0.06); color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye svg { width: 20px; height: 20px; }
/* das eigene Auge von Edge ausblenden – sonst wären es zwei */
input::-ms-reveal, input::-ms-clear { display: none; }

/* Anmeldeseite und Begrüßung (0.9.9): ✦-Kreis über der Überschrift weiß mit schwarzem Stern (wie die Kreise neben den
   Seitentiteln); die Kreise in den drei Pillen schwarz mit weißem Symbol */
:is(.auth-hero, .dash-hello, .hello-hero) .sticker::before { background-color: #ffffff; box-shadow: none; }
:is(.auth-hero, .hello-hero) .sticker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a10' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 10l-6.1 1.2L12 17l-1.9-5.8L4 10l6.1-1.2z'/%3E%3C/svg%3E"); }
.dash-hello .sticker::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a10' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.auth-pill i, .auth-pill i:not(.x) { background: #0a0a10; box-shadow: none; }
.auth-pill i .ico, .auth-pill.mint i .ico, .auth-pill.sun i .ico, .auth-pill.lilac i .ico { color: #ffffff; }
