:root {
  --bg: #f4f5fb;
  --panel: #ffffff;
  --panel-2: #f8f9fc;
  --border: #e6e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef0ff;
  --mine: #4f46e5;
  --mine-text: #ffffff;
  --theirs: #ffffff;
  --danger: #dc2626;
  --ok: #16a34a;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --panel: #121831;
    --panel-2: #0f152b;
    --border: #232b4a;
    --text: #e5e7f0;
    --muted: #8b93b0;
    --accent: #818cf8;
    --accent-2: #6366f1;
    --accent-soft: #1e2550;
    --mine: #5b55e8;
    --theirs: #1a2142;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
#app { height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- Buttons & Inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 16px;
  background: var(--accent-2); color: #fff; font-weight: 600; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: inline-grid; place-items: center; flex: none;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
              radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, #a855f7 18%, transparent), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand img { width: 44px; height: 44px; }
.brand b { font-size: 22px; letter-spacing: .5px; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.tabs { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button.active { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.code-input { letter-spacing: 10px; text-align: center; font-size: 24px; font-weight: 700; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 340px 1fr; height: 100dvh; }
.sidebar { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.side-head { padding: 14px 14px 10px; display: flex; align-items: center; gap: 10px; padding-top: calc(14px + env(safe-area-inset-top)); }
.side-head .title { font-weight: 800; font-size: 18px; letter-spacing: .4px; flex: 1; display: flex; align-items: center; gap: 8px; }
.side-head .title img { width: 28px; height: 28px; }
.side-search { padding: 0 14px 10px; }
.side-actions { display: flex; gap: 8px; padding: 0 14px 10px; }
.side-actions .btn { flex: 1; }
.conv-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; padding: 12px 10px 6px; }
.conv { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; position: relative; }
.conv:hover { background: var(--panel-2); }
.conv.active { background: var(--accent-soft); }
.conv .meta { flex: 1; min-width: 0; }
.conv .line1 { display: flex; gap: 8px; align-items: baseline; }
.conv .name { font-weight: 650; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .time { font-size: 12px; color: var(--muted); flex: none; }
.conv .line2 { display: flex; gap: 8px; align-items: center; }
.conv .preview { font-size: 13.5px; color: var(--muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .name, .conv.unread .preview { color: var(--text); font-weight: 700; }
.badge { background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.badge.muted { background: var(--muted); }
.side-foot { border-top: 1px solid var(--border); padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.side-foot .me { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; cursor: pointer; border-radius: 10px; padding: 4px; }
.side-foot .me:hover { background: var(--panel-2); }
.side-foot .me .nm { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .me .st { font-size: 12px; color: var(--muted); }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; position: relative; font-size: 15px; user-select: none; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.xs { width: 28px; height: 28px; font-size: 11px; }
.avatar.group { border-radius: 14px; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--panel); }

/* ---------- Chat ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.empty-state { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.empty-state img { width: 84px; opacity: .9; margin-bottom: 12px; }
.empty-state h2 { color: var(--text); margin: 0 0 6px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--panel); border-bottom: 1px solid var(--border); }
.chat-head .info { flex: 1; min-width: 0; cursor: pointer; }
.chat-head .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .back { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.load-more { align-self: center; margin-bottom: 10px; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; margin: 14px 0 10px; }
.sys-msg { align-self: center; font-size: 12.5px; color: var(--muted); margin: 6px 0; text-align: center; max-width: 80%; }
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 2px; max-width: 78%; position: relative; }
.msg.first { margin-top: 10px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .av-slot { width: 34px; flex: none; }
.bubble { background: var(--theirs); border: 1px solid var(--border); padding: 8px 12px 6px; border-radius: 16px; min-width: 60px; box-shadow: 0 1px 1px rgba(0,0,0,.03); overflow-wrap: anywhere; position: relative; }
.msg.mine .bubble { background: var(--mine); color: var(--mine-text); border-color: transparent; }
.msg.mine .bubble a { color: #fff; }
.bubble .author { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.bubble .text { white-space: pre-wrap; }
.bubble .text code { background: color-mix(in srgb, currentColor 12%, transparent); padding: 1px 5px; border-radius: 5px; font-size: 13.5px; }
.bubble .text pre { background: color-mix(in srgb, currentColor 10%, transparent); padding: 8px 10px; border-radius: 8px; overflow-x: auto; margin: 4px 0; white-space: pre; }
.bubble .foot { display: flex; gap: 6px; justify-content: flex-end; align-items: center; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble .foot svg { width: 15px; height: 15px; }
.bubble .foot .read { color: #7dd3fc; opacity: 1; }
.msg:not(.mine) .bubble .foot .read { color: var(--accent); }
.bubble.deleted { font-style: italic; opacity: .65; }
.bubble.pending { opacity: .6; }
.quote { border-left: 3px solid currentColor; padding: 4px 8px; margin: 2px 0 6px; border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); font-size: 13px; cursor: pointer; }
.quote b { display: block; font-size: 12px; }
.quote span { opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-actions { position: absolute; top: -14px; display: none; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 2px; z-index: 2; }
.msg.mine .msg-actions { right: 8px; }
.msg:not(.mine) .msg-actions { left: 50px; }
.msg:hover .msg-actions, .msg.show-actions .msg-actions { display: flex; }
.msg-actions button { border: 0; background: transparent; padding: 5px 7px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.msg-actions button:hover { background: var(--panel-2); color: var(--text); }
.msg-actions svg { width: 17px; height: 17px; }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: none; } }

.atts { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; }
.att-img { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 10px; cursor: zoom-in; object-fit: cover; background: rgba(127,127,127,.15); }
.att-video { max-width: min(360px, 100%); border-radius: 10px; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, currentColor 8%, transparent); text-decoration: none; color: inherit !important; min-width: 200px; }
.att-file .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-2); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; flex: none; text-transform: uppercase; }
.msg.mine .att-file .ic { background: rgba(255,255,255,.25); }
.att-file .fn { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.att-file .fs { font-size: 12px; opacity: .75; }
audio { max-width: 100%; }

.typing { font-size: 13px; color: var(--muted); padding: 0 20px 4px; min-height: 22px; }
.typing span.dots::after { content: '…'; animation: dots 1.2s steps(3) infinite; }

.composer-wrap { padding: 8px 14px 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
.reply-bar, .edit-bar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; padding: 8px 12px; font-size: 13px; }
.reply-bar .q { flex: 1; min-width: 0; border-left: 3px solid var(--accent); padding-left: 8px; }
.reply-bar .q b { display: block; color: var(--accent); }
.reply-bar .q span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pending-files { display: flex; gap: 8px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-bottom: 0; padding: 10px 12px; border-radius: 14px 14px 0 0; }
.reply-bar + .pending-files, .edit-bar + .pending-files { border-radius: 0; }
.pf { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; font-size: 13px; max-width: 240px; }
.pf img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.pf .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf .bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.pf .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.pf button { border: 0; background: transparent; color: var(--muted); padding: 2px; }
.composer { display: flex; align-items: flex-end; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); }
.reply-bar ~ .composer, .edit-bar ~ .composer, .pending-files ~ .composer { border-top-left-radius: 0; border-top-right-radius: 0; }
.composer textarea { flex: 1; border: 0; outline: none; background: transparent; resize: none; padding: 9px 6px; max-height: 180px; min-height: 40px; line-height: 1.4; }
.send-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--accent-2); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn:disabled { opacity: .4; }
.send-btn svg { width: 20px; height: 20px; }
.drop-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 3px dashed var(--accent); border-radius: 16px; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--accent); z-index: 20; pointer-events: none; margin: 8px; backdrop-filter: blur(2px); }

/* ---------- Modals ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 10, 25, .55); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 520px; max-height: min(88dvh, 820px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .18s ease; }
.modal.wide { max-width: 860px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.user-pick { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; margin-top: 8px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.user-row:hover { background: var(--panel-2); }
.user-row .nm { font-weight: 600; }
.user-row .sub { font-size: 12.5px; color: var(--muted); }
.user-row .grow { flex: 1; min-width: 0; }
.user-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: transparent; color: inherit; padding: 0 4px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.red { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.pill.gray { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 8px; border-bottom: 1px solid var(--border); }
table.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: ui-monospace, monospace; font-size: 13px; }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--panel-2); margin-bottom: 14px; }
.card h4 { margin: 0 0 10px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent-2); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.file-grid a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--border); }
.file-grid img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 60; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 8px; }
.lightbox .lb-actions { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; display: flex; gap: 8px; }

/* ---------- Menüs & Toasts ---------- */
.menu { position: fixed; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; z-index: 70; min-width: 200px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; text-align: left; }
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--danger); }
.menu svg { width: 18px; height: 18px; color: var(--muted); }
#toasts { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 28px)); }
.toast { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); display: flex; gap: 10px; align-items: center; animation: slidein .2s ease; cursor: pointer; }
.toast .t-body { min-width: 0; }
.toast .t-title { font-weight: 700; font-size: 14px; }
.toast .t-text { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.err { border-color: var(--danger); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
.notif-banner { margin: 0 12px 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.notif-banner .grow { flex: 1; }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .layout.chat-open .sidebar { display: none; }
  .layout:not(.chat-open) .main { display: none; }
  .chat-head .back { display: inline-grid; }
  .msg { max-width: 88%; }
  .messages { padding: 12px 10px 6px; }
  .composer-wrap { padding: 6px 8px 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .modal-bg { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .msg-actions { top: -34px; }
}

/* ---------- Verwaltung ---------- */
.admin-btn { flex: 1; background: var(--accent-soft); color: var(--accent); }
.admin-btn.active { background: var(--accent-2); color: #fff; }
.admin-page { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.admin-nav { border-right: 1px solid var(--border); background: var(--panel); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.admin-nav button { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); text-align: left; }
.admin-nav button svg { width: 18px; height: 18px; flex: none; }
.admin-nav button:hover { background: var(--panel-2); color: var(--text); }
.admin-nav button.active { background: var(--accent-soft); color: var(--accent); }
.admin-content { overflow-y: auto; padding: 22px 24px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.admin-content .tbl-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 4px 8px; }
.chat-head .avatar svg { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; text-align: left; }
.stat:hover { border-color: var(--accent); }
.stat b { font-size: 26px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) {
  .admin-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; padding: 8px 10px; }
  .admin-content { padding: 16px 12px; }
}

/* ---------- Zoom-Call ---------- */
.call-btn { background: #16a34a; padding: 7px 12px; }
.call-btn svg { width: 18px; height: 18px; }
.bubble.call { min-width: 240px; }
.call-card { display: flex; gap: 12px; align-items: center; margin: 2px 0 10px; }
.call-ic { width: 42px; height: 42px; border-radius: 12px; background: #2d8cff; color: #fff; display: grid; place-items: center; flex: none; }
.msg.mine .call-ic { background: rgba(255, 255, 255, .22); }
.call-ic svg { width: 22px; height: 22px; }
.call-title { font-weight: 700; }
.call-sub { font-size: 13px; opacity: .8; }
.call-join { width: 100%; background: #16a34a; color: #fff !important; text-decoration: none; }
@media (max-width: 820px) { .call-btn span { display: none; } }
