@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format("woff2-variations");
  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: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format("woff2-variations");
  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 {
  --bg: #16130f;
  --surface: #1f1b16;
  --surface-2: #28231c;
  --surface-3: #332d24;
  --border: #2f2a22;
  --border-strong: #40382d;
  --text: #f6efe3;
  --soft: #e0d6c6;
  --muted: #a99f8f;
  --faint: #7a7062;
  --accent: #febc05;
  --accent-soft: rgba(254, 188, 5, 0.14);
  --accent-ink: #231a00;
  --online: #8fd694;
  --away: #f2a65a;
  --danger: #ff7a6b;
  --radius: 22px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 500 16px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(254, 188, 5, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 800; }
h3 { font-size: 0.95rem; font-weight: 750; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(254, 188, 5, 0.35); }

.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;
}
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.row { display: flex; align-items: center; }
.gap { gap: 8px; }
.end { justify-content: flex-end; }
.center { display: flex; justify-content: center; }
.min0 { min-width: 0; }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Grundbausteine ---------- */
.card { background: var(--surface); border-radius: var(--radius); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, opacity 0.15s;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 0.9rem; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 0.85rem; }
.btn-square { width: 36px; height: 36px; padding: 0; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffcb3d; }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: rgba(255, 122, 107, 0.45); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 122, 107, 0.1); }
.btn-success { background: var(--accent); color: var(--accent-ink); }
.btn svg { width: 16px; height: 16px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 999px; background: transparent; border: 0; color: var(--muted); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }

.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 900;
}
.badge.subtle { background: var(--surface-3); color: var(--muted); }
.admin-btn .badge { position: absolute; top: -2px; right: -4px; }

/* ---------- Avatare ---------- */
.avatar {
  --size: 40px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 50%; object-fit: cover; background: var(--surface-3);
}
.avatar.sm { --size: 30px; }
.avatar.xs { --size: 22px; }
.avatar.lg { --size: 80px; }
.avatar.initials {
  display: inline-grid; place-items: center; user-select: none;
  font-weight: 800; font-size: calc(var(--size) * 0.4); color: rgba(255, 255, 255, 0.95);
}

.av-wrap { position: relative; display: inline-flex; flex: none; }
.status-dot {
  position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%;
  border: 3px solid var(--bg); background: var(--faint);
}
.status-dot.online { background: var(--online); }
.status-dot.away { background: var(--away); }
.status-dot.ingame { background: var(--accent); }
.status-dot.offline, .status-dot.unknown { display: none; }

/* ---------- Logo ---------- */
.logo { width: 34px; height: 34px; flex: none; display: block; }
.logo.lg { width: 96px; height: 96px; }

/* ---------- Login ---------- */
.center-view { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login {
  width: min(380px, 100%); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.login p { margin: 0; }
.btn-steam {
  margin-top: 10px; width: 100%; height: 52px; font-size: 1.02rem;
  background: var(--accent); color: var(--accent-ink);
}
.btn-steam:hover { background: #ffcb3d; }
.steam-glyph {
  width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url(/steam.svg) center / contain no-repeat; mask: url(/steam.svg) center / contain no-repeat;
}
.fineprint { font-size: 0.82rem; color: var(--faint); }
.alert {
  width: 100%; padding: 10px 14px; border-radius: 16px; font-size: 0.92rem;
  background: rgba(255, 122, 107, 0.1); color: #ffc0b8;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 19, 15, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto; min-height: 68px; padding: 10px 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.app-name { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.me {
  display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px;
  border-radius: 999px; color: var(--text); max-width: 200px;
}
.me:hover { background: var(--surface-2); text-decoration: none; }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; font-size: 0.92rem; }

/* ---------- Nächster Termin (Header) ---------- */
.next-slot { display: flex; justify-content: center; min-width: 0; }
.next {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0;
  padding: 6px 8px 6px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 0; background: var(--accent-soft); color: var(--text);
  transition: background 0.15s;
}
.next:hover { background: rgba(254, 188, 5, 0.22); }
.next > svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.next-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.next-title { font-weight: 800; }
.next-when { color: var(--soft); }
.pill {
  flex: none; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; font-weight: 900;
}
.pill.live { background: var(--online); color: #0e2410; }
.next.empty-next { background: transparent; border: 2px dashed var(--border-strong); padding: 6px 14px; color: var(--muted); }
.next.empty-next:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Layout ---------- */
.layout {
  max-width: 1140px; margin: 0 auto; padding: 24px 20px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start;
}
.side { display: flex; flex-direction: column; gap: 20px; }
.side > .card { padding: 20px; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.mobile-tabs { display: none; }
.section-title { font-size: 0.95rem; color: var(--muted); font-weight: 750; margin-bottom: 10px; }

/* ---------- Composer ---------- */
.composer { display: flex; gap: 12px; align-items: flex-start; }
.composer-main {
  flex: 1; min-width: 0; padding: 12px 12px 12px 18px;
  border-radius: var(--radius); background: var(--surface);
  border: 2px solid transparent; transition: border-color 0.15s;
}
.composer-main:focus-within { border-color: rgba(254, 188, 5, 0.45); }
.composer textarea {
  display: block; width: 100%; max-height: 320px; resize: none;
  padding: 2px 0; background: transparent; border: 0; outline: none; font-size: 1.02rem;
}
.composer textarea::placeholder, .todo-form input::placeholder, .event-form input::placeholder { color: var(--faint); }
.composer-foot { display: flex; justify-content: flex-end; margin-top: 4px; }

/* ---------- Wer ist da ---------- */
.people { margin-top: 26px; }
.people-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: 0 -2px; scrollbar-width: none; }
.people-row::-webkit-scrollbar { display: none; }
.person {
  flex: none; display: flex; align-items: center; gap: 10px; max-width: 230px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 2px solid transparent;
  background: var(--surface); cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.person:hover { background: var(--surface-2); }
.person[aria-pressed="true"] { border-color: var(--accent); }
.person.is-offline { opacity: 0.55; }
.person.is-offline:hover, .person.is-offline[aria-pressed="true"] { opacity: 1; }
.person-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.person-name { font-weight: 800; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-status { font-size: 0.78rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-status.ingame { color: var(--accent); font-weight: 750; }
.person-status.online { color: var(--online); }
.person-status.away { color: var(--away); }

.filter-bar {
  display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 8px 8px 16px;
  border-radius: 999px; background: var(--accent-soft); font-size: 0.9rem;
}
.filter-bar .icon-btn { margin-left: auto; width: 30px; height: 30px; color: var(--soft); }

/* ---------- Feed ---------- */
.feed { display: flex; flex-direction: column; margin-top: 8px; }
.day { margin-top: 22px; padding: 4px 0 6px; font-size: 0.9rem; font-weight: 800; color: var(--muted); }
.entry {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px;
  padding: 16px 18px; margin-top: 8px; border-radius: var(--radius); background: var(--surface);
  animation: fadein 0.25s ease;
}
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
.entry-head { display: flex; align-items: baseline; gap: 8px; min-height: 24px; }
.entry-name { font-weight: 850; }
.entry-time { font-size: 0.85rem; color: var(--faint); }
.entry-menu { margin-left: auto; margin-top: -8px; margin-right: -8px; align-self: center; opacity: 0; }
.entry:hover .entry-menu, .entry:focus-within .entry-menu { opacity: 1; }
.entry-body { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
.entry-edit textarea {
  width: 100%; min-height: 90px; margin-top: 6px; padding: 10px 14px; resize: vertical;
  border-radius: 16px; border: 2px solid var(--border-strong); background: var(--bg); outline: none;
}
.entry-edit textarea:focus { border-color: rgba(254, 188, 5, 0.45); }
.entry-edit .row { justify-content: flex-end; margin-top: 8px; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; }
.empty strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 4px; }
#load-more { margin-top: 18px; }

/* ---------- To-Dos ---------- */
.todo-form {
  display: flex; gap: 4px; align-items: center;
  padding: 4px 4px 4px 16px; border-radius: 999px; background: var(--bg); border: 2px solid transparent;
}
.todo-form:focus-within { border-color: rgba(254, 188, 5, 0.45); }
.todo-form input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: none; }
.assign-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none;
  border-radius: 999px; border: 2px dashed var(--border-strong); background: none; color: var(--muted); cursor: pointer;
}
.assign-btn:hover { border-color: var(--accent); color: var(--text); }
.assign-btn.has-user { border: 0; }
.assign-btn svg { width: 16px; height: 16px; }

.seg { display: flex; gap: 4px; margin: 14px 0 6px; }
.seg-btn {
  height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 0.88rem; font-weight: 800; color: var(--muted);
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--surface-3); color: var(--text); }

.todo-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.todo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 10px 0; }
.check {
  width: 24px; height: 24px; margin-top: 0; padding: 0; flex: none; cursor: pointer;
  display: grid; place-items: center;
  border-radius: 50%; border: 2px solid var(--border-strong); background: none; color: var(--accent-ink);
  transition: all 0.15s;
}
.check:hover { border-color: var(--accent); }
.check svg { width: 14px; height: 14px; opacity: 0; }
.todo.done .check { background: var(--accent); border-color: var(--accent); }
.todo.done .check svg { opacity: 1; }
.todo-title { overflow-wrap: anywhere; line-height: 1.4; font-weight: 650; }
.todo.done .todo-title { color: var(--faint); text-decoration: line-through; }
.todo-meta { font-size: 0.8rem; color: var(--faint); margin-top: 1px; }
.todo-side { display: flex; align-items: center; gap: 2px; }
.todo-side .icon-btn { width: 30px; height: 30px; opacity: 0; }
.todo:hover .todo-side .icon-btn, .todo:focus-within .todo-side .icon-btn { opacity: 1; }
.todo-side .assign-btn { width: 28px; height: 28px; }
.todo-empty { padding: 22px 0 8px; text-align: center; color: var(--faint); }

/* ---------- Kalender ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .row { gap: 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-wd { font-size: 0.75rem; font-weight: 800; color: var(--faint); padding: 2px 0 6px; }
.cal-cell {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--soft);
}
.cal-cell:hover { background: var(--surface-2); }
.cal-cell.out { color: var(--faint); opacity: 0.55; }
.cal-cell.today { color: var(--accent); font-weight: 900; }
.cal-cell.selected { background: var(--accent); color: var(--accent-ink); font-weight: 900; opacity: 1; }
.cal-cell.has::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.cal-cell.selected.has::after { background: var(--accent-ink); }
.cal-day { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--border); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-events { list-style: none; margin: 8px 0 0; padding: 0; }
.cal-event { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; }
.cal-event-time { font-weight: 900; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--accent); padding-top: 1px; }
.cal-event-title { font-weight: 800; overflow-wrap: anywhere; }
.cal-event-meta { font-size: 0.82rem; color: var(--faint); overflow-wrap: anywhere; }
.cal-event .icon-btn { width: 30px; height: 30px; }
.cal-empty { padding: 6px 0 2px; color: var(--faint); }

.event-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.event-form input {
  width: 100%; min-width: 0; height: 42px; padding: 0 14px;
  border-radius: 14px; border: 2px solid transparent; background: var(--bg); outline: none;
  color-scheme: dark;
}
.event-form input:focus { border-color: rgba(254, 188, 5, 0.45); }
.event-form .row input { flex: 1; }

/* ---------- Popover-Menü ---------- */
.menu {
  position: fixed; z-index: 100; min-width: 200px; max-width: min(280px, calc(100vw - 24px));
  max-height: 320px; overflow-y: auto; padding: 6px;
  border-radius: 18px; background: var(--surface-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  animation: pop 0.12s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font-weight: 650;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); outline: none; }
.menu-item.danger { color: var(--danger); }
.menu-item.selected::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 900; }
.menu-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item svg { width: 17px; height: 17px; color: var(--muted); }

/* ---------- Dialoge ---------- */
.dialog {
  width: min(500px, calc(100vw - 24px)); max-height: min(80dvh, 680px); padding: 0;
  border-radius: 24px; border: 0; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.dialog::backdrop { background: rgba(10, 8, 5, 0.7); backdrop-filter: blur(4px); }
.dialog-head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; background: var(--surface);
}
.admin-list { list-style: none; margin: 0; padding: 0 14px 14px; }
.admin-user {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 4px; border-top: 2px solid var(--border);
}
.admin-user .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.admin-user .sub { font-size: 0.82rem; color: var(--faint); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.role {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 900; vertical-align: 1px;
}
.role-admin { color: var(--accent); background: var(--accent-soft); }
.role-member { color: var(--online); background: rgba(143, 214, 148, 0.12); }
.role-pending { color: var(--away); background: rgba(242, 166, 90, 0.14); }
.role-blocked { color: var(--danger); background: rgba(255, 122, 107, 0.12); }

.dialog.confirm { width: min(360px, calc(100vw - 32px)); }
.confirm-body { padding: 24px 22px 4px; font-weight: 650; }
.confirm-body p { margin: 0; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 200; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  background: var(--surface-3); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7); animation: fadein 0.2s ease;
}
.toast.error { color: #ffc0b8; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .layout { display: block; padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); }
  .side { gap: 0; }
  .pane { display: none; }
  .pane.active { display: block; }
  .todo-list { max-height: none; }
  .todo-side .icon-btn, .entry-menu { opacity: 1; }

  .topbar-inner {
    grid-template-columns: auto auto; grid-template-areas: "brand actions" "next next";
    justify-content: space-between; row-gap: 8px; padding: 8px 14px 10px;
  }
  .brand { grid-area: brand; }
  .topbar-actions { grid-area: actions; }
  .next-slot { grid-area: next; justify-content: stretch; }
  .next { width: 100%; }

  .mobile-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: min(380px, calc(100vw - 32px)); padding: 5px;
    border-radius: 999px; background: rgba(40, 35, 28, 0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  }
  .mtab {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; border: 0; border-radius: 999px; background: none; cursor: pointer;
    font-weight: 800; font-size: 0.95rem; color: var(--muted);
  }
  .mtab.active { background: var(--accent); color: var(--accent-ink); }
  .mtab.active .badge { background: rgba(35, 26, 0, 0.18); color: var(--accent-ink); }
  .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .me span { display: none; }
  .me { padding: 2px; }
  .composer > #composer-avatar { display: none; }
  .entry { padding: 14px; gap: 12px; }
  .entry .avatar { --size: 34px; }
  .admin-user { grid-template-columns: auto minmax(0, 1fr); }
  .admin-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
