/* AKChat-Doppelgänger (geheimes Easter Egg am Beamer) und seine Benachrichtigung auf den Laptops.
   Alles unter .akchat bzw. .akchat-toast – nichts sickert ins Spiel, und die allgemeinen Regeln aus party.css
   (Schrift der Knöpfe, gelber Fokusrahmen …) werden hier überschrieben.
   Maße wie in der Desktop-App (Tailwind-Grautöne, 14 px Grundschrift); akchat.js bringt das Fenster per zoom
   auf Beamer-Größe. Bewusst ohne Weichzeichner und ohne animierte große Schatten – dahinter läuft die Arena mit 60 fps. */

.akchat, .akchat-toast {
  --ak-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
  --ak-emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  --ak-bg: #FFFFFF;
  --ak-side: #F3F4F6;
  --ak-line: #E5E7EB;
  --ak-line2: #D1D5DB;
  --ak-line3: #C3C8D0;
  --ak-sel: #D1D5DB;
  --ak-hover: rgba(17, 24, 39, 0.06);
  --ak-scroll: #C4C8CF;
  --ak-text: #1F2937;
  --ak-text2: #374151;
  --ak-strong: #111827;
  --ak-muted: #6B7280;
  --ak-soft: #4B5563;
  --ak-faint: #9CA3AF;
  --ak-blue: #1D4ED8;
  --ak-accent: #3B82F6;
  --ak-tick: #60A5FA;
  --ak-mine: #F5FAFF;
  --ak-sky: #0EA5E9;
  --ak-on: #22C55E;
  --ak-away: #EAB308;
  --ak-star: #FACC15;
  --ak-orange: #DC841E;
  --ak-purple: #A855F7;
  --ak-logo: #313131;
  --ak-badge: #EF4444;
  --ak-close: #C42B1C;
  --ak-ring: rgba(17, 24, 39, 0.12);
  --ak-pin-bg: #FEFCE8;
  --ak-pin-line: #FEF3C7;
  --ak-pin-text: #A16207;
  --ak-red: #DC2626;
  --ak-orange-hot: #F97316;
  --ak-bad-bg: #FEF2F2;
  --ak-bad-line: #FECACA;
  --ak-bad-text: #B91C1C;
  --ak-duel-bg: #FFF7F7;
  --ak-duel-text: #7F1D1D;
  --ak-duel-state: #991B1B;
  --ak-duel-track: #FEE2E2;
  --ak-ok: #16A34A;
  --ak-ok-bg: #F0FDF4;
  --ak-ok-line: #BBF7D0;
  --ak-ok-text: #166534;
  --ak-ok-track: #DCFCE7;
  --ak-off-bg: #F9FAFB;
  --ak-dim: rgba(8, 6, 12, 0.66);
  --ak-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 24px 70px rgba(0, 0, 0, 0.55);
  --ak-pop-shadow: 0 10px 30px rgba(17, 24, 39, 0.16);
  --ak-toast-line: rgba(17, 24, 39, 0.1);
  --ak-toast-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ---------- Ebene über allem ---------- */
.akchat { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; }
.akchat.ak-open { display: grid; }
.akchat *, .akchat *::before, .akchat *::after { box-sizing: border-box; }
.akchat [hidden] { display: none !important; }
.akchat .ak-backdrop { position: absolute; inset: 0; background: var(--ak-dim); animation: ak-fade 0.2s ease-out both; }
/* Eigene Ebene (will-change): die Arena dahinter malt jedes Bild neu, das Fenster wird nur bei Änderungen gezeichnet */
.akchat .ak-window {
  position: relative; display: flex; flex-direction: column; width: 1100px; height: 677px;
  background: var(--ak-bg); color: var(--ak-text); border-radius: 8px; overflow: hidden; box-shadow: var(--ak-shadow);
  font: 400 14px/1.43 var(--ak-font); letter-spacing: normal; text-align: left; text-transform: none;
  -webkit-font-smoothing: antialiased; outline: none; cursor: default; will-change: transform; contain: layout paint;
  animation: ak-pop 0.24s cubic-bezier(0.2, 0.9, 0.25, 1.1) both;
}
.akchat.ak-closing .ak-window { animation: ak-out 0.18s ease-in both; }
.akchat.ak-closing .ak-backdrop { animation: ak-fade-out 0.18s ease-in both; }
@keyframes ak-pop { from { opacity: 0; transform: translateY(12px) scale(0.965); } }
@keyframes ak-out { to { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes ak-fade { from { opacity: 0; } }
@keyframes ak-fade-out { to { opacity: 0; } }

.akchat button, .akchat input, .akchat textarea { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.akchat button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.akchat :focus { outline: none; }
.akchat :focus-visible { outline: 2px solid var(--ak-accent); outline-offset: -2px; }
.akchat .ak-window:focus-visible, .akchat input:focus-visible, .akchat textarea:focus-visible { outline: none; }
.akchat .ak-i { display: block; width: 16px; height: 16px; flex: none; stroke-width: 1.65; }
.akchat h2, .akchat h3, .akchat p { margin: 0; }

/* Titelleiste wie unter Windows 11 */
.akchat .ak-cap { height: 32px; flex: none; display: flex; align-items: center; background: var(--ak-bg); border-bottom: 1px solid var(--ak-line); font-size: 12px; color: var(--ak-strong); user-select: none; }
.akchat .ak-logo { display: block; color: var(--ak-logo); flex: none; }
.akchat .ak-logo-cap { width: 22px; height: 14px; margin: 0 9px 0 12px; }
.akchat .ak-cap-title { flex: 1; }
.akchat .ak-cap-btn { display: grid; place-items: center; width: 46px; height: 31px; border: 0; background: transparent; color: var(--ak-strong); }
.akchat .ak-cap-btn svg { width: 10px; height: 10px; }
.akchat .ak-cap-close:hover { background: var(--ak-close); color: var(--ak-bg); }

.akchat .ak-app { flex: 1; min-height: 0; display: flex; }

/* ---------- Seitenleiste ---------- */
.akchat .ak-side { width: 256px; flex: none; display: flex; flex-direction: column; background: var(--ak-side); border-right: 1px solid var(--ak-line); }
.akchat .ak-collapsed .ak-side { display: none; }
.akchat .ak-side-top { height: 64px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--ak-line); }
.akchat .ak-search { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; gap: 6.5px; padding: 0 10px 0 11.5px; border-radius: 8px; background: var(--ak-line); color: var(--ak-muted); cursor: text; }
.akchat .ak-search .ak-i { width: 14px; height: 14px; }
.akchat .ak-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; font-size: 14px; color: var(--ak-strong); }
.akchat .ak-search input::placeholder { color: var(--ak-muted); opacity: 1; }
.akchat .ak-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ak-muted); }
.akchat .ak-collapse .ak-i { width: 19px; height: 19px; stroke-width: 1.6; }
.akchat .ak-btn:hover { background: var(--ak-hover); color: var(--ak-text); }

.akchat .ak-list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--ak-scroll) transparent; }
.akchat .ak-sec { display: flex; align-items: center; gap: 5px; height: 24px; padding: 6px 12px 2px 11px; font-size: 11px; font-weight: 600; line-height: 16px; color: var(--ak-muted); user-select: none; }
.akchat .ak-sec .ak-chev { width: 14px; height: 14px; }
.akchat .ak-sec .ak-star { width: 12px; height: 12px; margin-right: 1px; color: var(--ak-star); }
.akchat .ak-sec-dm { height: 32px; margin-top: 16px; padding: 2px 12px 6px 11px; }
.akchat .ak-sec-tools { display: flex; gap: 3px; margin-left: auto; }
.akchat .ak-sec-tools .ak-btn { width: 24px; height: 24px; }

.akchat .ak-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px 0 32px; border: 0; border-radius: 0; background: transparent; color: var(--ak-strong); font-size: 14px; text-align: left; }
.akchat .ak-item:hover { background: var(--ak-line); }
.akchat .ak-item.ak-sel { background: var(--ak-sel); }
.akchat .ak-item .ak-nm { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.akchat .ak-item .ak-tm { flex: none; font-size: 10px; color: var(--ak-muted); }
.akchat .ak-item .ak-star { width: 12px; height: 12px; margin: 0 1px 0 -1px; color: var(--ak-star); }
.akchat .ak-item.ak-chan { font-size: 16px; }
.akchat .ak-hash { flex: none; }
.akchat .ak-item.ak-unread .ak-nm { font-weight: 700; }
.akchat .ak-badge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ak-badge); color: var(--ak-bg); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.akchat .ak-none { padding: 8px 16px 8px 32px; font-size: 13px; color: var(--ak-faint); }

.akchat .ak-side-foot { height: 50px; flex: none; display: flex; align-items: flex-start; padding: 6px 14px 0 16px; border-top: 1px solid var(--ak-line); }
.akchat .ak-side-foot .ak-logo { width: 52.5px; height: 34px; }
.akchat .ak-ver { margin: 21px 0 0 6px; font-size: 11px; font-weight: 700; line-height: 11px; letter-spacing: 0.13em; color: var(--ak-orange); white-space: nowrap; }
.akchat .ak-info { margin: 5px 0 0 auto; }

/* ---------- Kopfzeile ---------- */
.akchat .ak-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ak-bg); }
.akchat .ak-head { position: relative; height: 64px; flex: none; display: flex; align-items: center; padding: 0 16px 0 20px; border-bottom: 1px solid var(--ak-line); }
.akchat .ak-expand { display: none; margin: 0 4px 0 -8px; }
.akchat .ak-collapsed .ak-expand { display: inline-grid; }
.akchat .ak-home { width: 36px; height: 36px; }
.akchat .ak-home .ak-i { width: 20px; height: 20px; }
.akchat .ak-peer { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 16px; }
.akchat .ak-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 20px; font-weight: 600; line-height: 28px; color: var(--ak-text); }
.akchat .ak-hash-l { font-size: 22px; line-height: 28px; color: var(--ak-muted); }
.akchat .ak-head-tools { display: flex; align-items: center; gap: 10px; margin-left: 20px; flex: none; }
.akchat .ak-huddle { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: 2px; padding: 0 12px 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--ak-soft); font-size: 14px; font-weight: 600; }
.akchat .ak-huddle .ak-i { transform: translateY(-2px); }
.akchat .ak-huddle:hover { background: var(--ak-hover); }
.akchat .ak-me { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 -4px 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; flex: none; }
.akchat .ak-me:hover .ak-av { box-shadow: 0 0 0 3px var(--ak-line); }

.akchat .ak-menu { position: absolute; top: 56px; right: 12px; z-index: 5; width: 250px; padding: 6px; border: 1px solid var(--ak-line); border-radius: 10px; background: var(--ak-bg); box-shadow: var(--ak-pop-shadow); animation: ak-drop 0.14s ease-out both; }
@keyframes ak-drop { from { opacity: 0; transform: translateY(-4px); } }
.akchat .ak-menu-me { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--ak-line); }
.akchat .ak-menu-t { display: grid; min-width: 0; }
.akchat .ak-menu-t b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-menu-t small { font-size: 12px; color: var(--ak-muted); }
.akchat .ak-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; color: var(--ak-text); text-align: left; }
.akchat .ak-menu-item:hover { background: var(--ak-side); }

/* ---------- Bilder mit Initialen und Status ---------- */
.akchat .ak-av, .akchat-toast .ak-av {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background-color: var(--c, var(--ak-sky)); color: var(--ak-bg); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0; user-select: none;
}
.akchat .ak-av.ak-light, .akchat-toast .ak-av.ak-light { color: var(--ak-text); box-shadow: inset 0 0 0 1px var(--ak-ring); }
.akchat .ak-av-s { width: 22px; height: 22px; font-size: 9px; }
.akchat .ak-av-h { width: 32px; height: 32px; font-size: 12px; }
.akchat .ak-av-m, .akchat-toast .ak-av-m { width: 40px; height: 40px; font-size: 14px; }
.akchat .ak-av-xl { width: 64px; height: 64px; font-size: 22px; }
.akchat .ak-st { position: absolute; right: -3px; bottom: 2px; width: 11px; height: 11px; border: 2px solid var(--ak-bg); border-radius: 50%; background: var(--ak-faint); }
.akchat .ak-av-h .ak-st { right: -2px; bottom: 2px; }
.akchat .ak-av-m .ak-st { right: -3px; bottom: 1px; width: 12px; height: 12px; }
.akchat .ak-st.ak-on { background: var(--ak-on); }
.akchat .ak-st.ak-away { background: var(--ak-away); }
.akchat .ak-av-bot { background: var(--ak-strong); color: var(--ak-bg); }
.akchat .ak-av-bot svg { width: 62%; height: auto; }
.akchat .ak-tag { flex: none; padding: 1px 5px; border-radius: 4px; background: var(--ak-line); color: var(--ak-soft); font-size: 10px; font-weight: 700; line-height: 14px; letter-spacing: 0.04em; }

/* ---------- Nachrichten ---------- */
.akchat .ak-msgs { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 0 12px; scrollbar-width: thin; scrollbar-color: var(--ak-scroll) transparent; }
.akchat .ak-intro { padding: 28px 16px 8px; }
.akchat .ak-intro h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 700; color: var(--ak-strong); }
.akchat .ak-intro p { font-size: 14px; color: var(--ak-muted); }
.akchat .ak-intro-hash { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--ak-side); color: var(--ak-muted); font-size: 34px; font-weight: 300; line-height: 1; }
.akchat .ak-pinned { margin: 18px -16px 0; padding: 6px 0 8px; background: var(--ak-pin-bg); border-top: 1px solid var(--ak-pin-line); border-bottom: 1px solid var(--ak-pin-line); }
.akchat .ak-pin-label { display: flex; align-items: center; gap: 6px; padding: 0 16px 0 68px; font-size: 12px; font-weight: 600; color: var(--ak-pin-text); }
.akchat .ak-pin-label .ak-i { width: 12px; height: 12px; }
.akchat .ak-pinned .ak-grp { margin-top: 2px; }
.akchat .ak-day { display: flex; align-items: center; gap: 12px; margin: 14px 16px 2px; font-size: 12px; font-weight: 600; color: var(--ak-muted); }
.akchat .ak-day::before, .akchat .ak-day::after { content: ''; flex: 1; height: 1px; background: var(--ak-line); }

.akchat .ak-grp { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 4px 16px; }
.akchat .ak-grp.ak-mine { background: var(--ak-mine); }
.akchat .ak-body { flex: 1; min-width: 0; }
.akchat .ak-meta { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 6px; line-height: 14px; }
.akchat .ak-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-mine .ak-name { color: var(--ak-blue); }
.akchat .ak-meta .ak-tag { align-self: center; }
.akchat .ak-time { flex: none; font-size: 12px; color: var(--ak-faint); }
.akchat .ak-check { align-self: center; color: var(--ak-faint); }
.akchat .ak-check.ak-read { color: var(--ak-tick); }
.akchat .ak-check .ak-i { width: 14px; height: 14px; }
.akchat .ak-text { font-size: 14px; line-height: 22px; color: var(--ak-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.akchat .ak-text + .ak-text { margin-top: 8px; }
.akchat .ak-new { animation: ak-msg-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes ak-msg-in { from { opacity: 0; transform: translateY(10px); } }

.akchat .ak-typing { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 2px 16px 2px 25px; font-size: 13px; color: var(--ak-muted); }
.akchat .ak-typing-t b { font-weight: 600; color: var(--ak-soft); }
.akchat .ak-dots { display: inline-flex; gap: 4px; padding-top: 3px; }
.akchat .ak-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ak-faint); animation: ak-hop 1s ease-in-out infinite; }
.akchat .ak-dots i:nth-child(2) { animation-delay: 0.15s; }
.akchat .ak-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ak-hop { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.akchat .ak-note { display: flex; justify-content: center; margin: 12px 16px 4px; }
.akchat .ak-note span { max-width: 100%; padding: 6px 14px; border: 1px solid var(--ak-bad-line); border-radius: 999px; background: var(--ak-bad-bg); color: var(--ak-bad-text); font-size: 13px; font-weight: 600; text-align: center; }

/* Duell-Karte im Chat */
.akchat .ak-duel { max-width: 520px; margin: 12px 16px 4px 68px; padding: 12px 14px 14px; border: 1px solid var(--ak-bad-line); border-left: 4px solid var(--ak-red); border-radius: 10px; background: var(--ak-duel-bg); }
.akchat .ak-duel-title { font-size: 14px; color: var(--ak-duel-text); }
.akchat .ak-duel-x { font-family: var(--ak-emoji); }
.akchat .ak-duel-title b { margin-left: 6px; font-weight: 800; letter-spacing: 0.05em; color: var(--ak-red); }
.akchat .ak-duel-state { color: var(--ak-duel-state); }
.akchat .ak-duel-vs { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-duel-v { margin: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--ak-red); text-transform: uppercase; }
.akchat .ak-duel-bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--ak-duel-track); }
.akchat .ak-duel-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ak-orange-hot), var(--ak-red)); transform-origin: left; animation: ak-load 1.4s cubic-bezier(0.3, 0.6, 0.4, 1) both; }
@keyframes ak-load { from { transform: scaleX(0.04); } to { transform: scaleX(0.92); } }
.akchat .ak-duel-ok { border-color: var(--ak-ok-line); border-left-color: var(--ak-ok); background: var(--ak-ok-bg); }
.akchat .ak-duel-ok .ak-duel-state { color: var(--ak-ok-text); }
.akchat .ak-duel-ok .ak-duel-bar { background: var(--ak-ok-track); }
.akchat .ak-duel-ok .ak-duel-bar i { animation: none; background: var(--ak-ok); }
.akchat .ak-duel-off { border-color: var(--ak-line); border-left-color: var(--ak-faint); background: var(--ak-off-bg); }
.akchat .ak-duel-off .ak-duel-title, .akchat .ak-duel-off .ak-duel-state { color: var(--ak-muted); }
.akchat .ak-duel-off .ak-duel-title b, .akchat .ak-duel-off .ak-duel-v { color: var(--ak-muted); }
.akchat .ak-duel-off .ak-duel-bar { background: var(--ak-line); }
.akchat .ak-duel-off .ak-duel-bar i { animation: none; transform: scaleX(0.92); background: var(--ak-faint); }

/* ---------- Eingabe ---------- */
.akchat .ak-compose { flex: none; padding: 12px 12px 10px; border-top: 1px solid var(--ak-line); }
.akchat .ak-box { border: 1px solid var(--ak-line2); border-radius: 12px; background: var(--ak-side); }
.akchat .ak-box:focus-within { border-color: var(--ak-line3); }
.akchat .ak-input { display: block; width: 100%; min-height: 39px; max-height: 128px; padding: 12px 16px 7px; border: 0; background: transparent; font-size: 14px; line-height: 20px; color: var(--ak-strong); resize: none; overflow-y: auto; field-sizing: content; }
.akchat .ak-input::placeholder { color: var(--ak-faint); opacity: 1; }
.akchat .ak-tools { display: flex; align-items: center; gap: 2px; padding: 9px 10px 9px 8px; }
.akchat .ak-tool { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ak-muted); font-size: 13px; line-height: 1; }
.akchat .ak-tool:hover { background: var(--ak-hover); color: var(--ak-text); }
.akchat .ak-emoji .ak-i { width: 14px; height: 14px; margin-top: 3px; }
.akchat .ak-gif { width: 34px; font-size: 12px; font-weight: 700; }
.akchat .ak-fmt { width: 19px; font-size: 14px; }
.akchat .ak-fmt b { font-weight: 700; }
.akchat .ak-fmt i { font-style: italic; }
.akchat .ak-code { width: 31px; }
.akchat .ak-tsep { display: block; width: 1px; height: 16px; margin: 0 3px; background: var(--ak-line2); flex: none; }
.akchat .ak-tsep2 { margin: 0 4px; }
.akchat .ak-ai { color: var(--ak-purple); }
.akchat .ak-send { margin-left: auto; color: var(--ak-accent); }
.akchat .ak-send:disabled { color: var(--ak-faint); background: transparent; cursor: default; }
.akchat .ak-hint { padding: 6px 4px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 16px; color: var(--ak-faint); }
.akchat .ak-hint i { margin: 0 6px; font-style: normal; }

/* ---------- Anmeldung ---------- */
.akchat .ak-login { position: absolute; inset: 32px 0 0; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 34px 32px 14px; background: var(--ak-bg); }
.akchat .ak-login-in { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; width: min(780px, 100%); }
.akchat .ak-logo-big { width: 96px; height: 62px; }
.akchat .ak-login h2 { margin: 16px 0 4px; font-size: 24px; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-login .ak-sub { margin-bottom: 18px; font-size: 15px; color: var(--ak-muted); }
.akchat .ak-login-q { flex: none; width: min(420px, 100%); height: 36px; }
.akchat .ak-accs { flex: 1; min-height: 0; width: 100%; margin-top: 10px; padding: 0 4px 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ak-scroll) transparent; }
.akchat .ak-acc-sec { margin: 14px 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ak-muted); }
.akchat .ak-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.akchat .ak-acc { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; border: 1px solid var(--ak-line); border-radius: 10px; background: var(--ak-bg); text-align: left; }
.akchat .ak-acc:hover { border-color: var(--ak-line2); background: var(--ak-side); }
.akchat .ak-acc-t { display: grid; flex: 1; min-width: 0; }
.akchat .ak-acc-t b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-acc-t small { font-size: 12px; color: var(--ak-muted); }
.akchat .ak-empty-state { display: grid; justify-items: center; gap: 6px; margin-top: 40px; color: var(--ak-muted); text-align: center; }
.akchat .ak-empty-state .ak-crowd { width: 44px; height: 44px; margin-bottom: 6px; color: var(--ak-faint); stroke-width: 1.5; }
.akchat .ak-empty-state b { font-size: 16px; font-weight: 600; color: var(--ak-strong); }
.akchat .ak-login .ak-none { margin-top: 30px; padding: 0; text-align: center; }
.akchat .ak-login-foot { flex: none; margin-top: 10px; font-size: 12px; color: var(--ak-faint); }
.akchat .ak-login-foot .ak-ver { margin: 0; }

/* ---------- Benachrichtigung auf den Laptops ---------- */
.akchat-toast { position: fixed; top: 16px; right: 16px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; width: min(370px, calc(100vw - 32px)); pointer-events: none; font: 400 14px/1.4 var(--ak-font); letter-spacing: normal; text-align: left; }
.akchat-toast * { box-sizing: border-box; }
.akchat-toast .ak-t { padding: 11px 14px 14px; border: 1px solid var(--ak-toast-line); border-radius: 10px; background: var(--ak-bg); color: var(--ak-text); box-shadow: var(--ak-toast-shadow); pointer-events: auto; cursor: pointer; animation: ak-t-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
.akchat-toast .ak-t-out { animation: ak-t-out 0.26s ease-in both; }
@keyframes ak-t-in { from { opacity: 0; transform: translateX(48px); } }
@keyframes ak-t-out { to { opacity: 0; transform: translateX(48px); } }
.akchat-toast .ak-t-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: var(--ak-muted); }
.akchat-toast .ak-logo { display: block; width: 26px; height: 17px; color: var(--ak-logo); flex: none; }
.akchat-toast .ak-t-app { font-weight: 600; color: var(--ak-strong); }
.akchat-toast .ak-t-when::before { content: '·'; margin-right: 8px; }
.akchat-toast .ak-t-x { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 4px; color: var(--ak-muted); }
.akchat-toast .ak-t-x svg { width: 9px; height: 9px; }
.akchat-toast .ak-t:hover .ak-t-x { background: var(--ak-side); color: var(--ak-text); }
.akchat-toast .ak-t-body { display: flex; align-items: flex-start; gap: 12px; }
.akchat-toast .ak-t-words { flex: 1; min-width: 0; }
.akchat-toast .ak-t-from { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; color: var(--ak-strong); }
.akchat-toast .ak-t-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ak-text2); }
