:root {
  --bg-image: url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=2400&q=80");
  --bg-image-pro: url("/images/recherche_optimisee.jpg");
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.78);
  --ink: #0f172a;
  --accent: #7ec8e3;
  --accent-deep: #2d6a8f;
  --glass: rgba(15, 23, 42, 0.38);
  --glass-strong: rgba(15, 23, 42, 0.52);
  --glass-border: rgba(255, 255, 255, 0.18);
  --mine: rgba(126, 200, 227, 0.18);
  --danger: #fecaca;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 20px;
  --max-chat: 88rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #0b1220;
}

.hidden { display: none !important; }

.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.scene__image {
  position: absolute; inset: 0;
  background: var(--bg-image) center center / cover no-repeat;
  transform: scale(1.02);
  transition: background-image 0.45s ease, filter 0.45s ease;
}
.scene__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.35) 0%, rgba(8, 15, 28, 0.55) 45%, rgba(8, 15, 28, 0.72) 100%),
    radial-gradient(circle at 20% 10%, rgba(126, 200, 227, 0.12), transparent 40%);
  transition: background 0.45s ease;
}

/* Communauté scientifique & médicale */
body[data-community="pro"] .scene__image {
  background-image: var(--bg-image-pro);
  background-position: center 28%;
  filter: saturate(1.05);
}
body[data-community="pro"] .scene__veil {
  background:
    linear-gradient(180deg, rgba(6, 18, 36, 0.42) 0%, rgba(6, 18, 36, 0.58) 40%, rgba(4, 12, 28, 0.78) 100%),
    radial-gradient(circle at 70% 20%, rgba(56, 140, 180, 0.14), transparent 45%);
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0.75rem clamp(0.75rem, 3vw, 1.5rem) 0;
  border-radius: var(--radius);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch select {
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  max-width: 11rem;
  cursor: pointer;
}

.lang-switch select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header__eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.header p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.status {
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.status--off { background: rgba(180, 35, 24, 0.22); color: #fecaca; }
.status--on { background: rgba(46, 125, 50, 0.22); color: #bbf7d0; }

.join {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem clamp(0.75rem, 3vw, 1.5rem) 2rem;
}

.join__card {
  width: min(100%, 30rem);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.join__card--wide {
  width: min(100%, 44rem);
}

.communities {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}

@media (min-width: 700px) {
  .communities {
    grid-template-columns: 1fr 1fr;
  }
}

.community-card {
  text-align: left;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  width: 100%;
  font-weight: 400;
  box-shadow: none;
}

.community-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.community-card:hover {
  filter: none;
  border-color: rgba(126, 200, 227, 0.55);
  background: rgba(126, 200, 227, 0.1);
}

.community-card.is-selected {
  border-color: var(--accent);
  background: rgba(126, 200, 227, 0.16);
  box-shadow: 0 0 0 1px rgba(126, 200, 227, 0.35);
}

.community-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.45rem;
  border-radius: 8px;
  background: rgba(126, 200, 227, 0.2);
  color: var(--accent);
}

.community-card__icon-svg {
  width: 1.3rem;
  height: 1.3rem;
}

.community-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.community-card__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.community-card__desc {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 400;
}

.community-card__link {
  align-self: flex-start;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.community-card__link:hover,
.community-card__link:focus-visible {
  text-decoration: underline;
}

.chat__toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.chat__toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.chat__community {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.chat__user { font-size: 0.8rem; color: var(--muted); }

.login-community {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.join__hint {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.join__hint a, .join__footer a { color: var(--accent); font-weight: 700; }

.join__footer {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-error {
  margin: 0.75rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

input, select, textarea, button { font: inherit; }

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

button {
  margin-top: 1.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-deep), #1e4d6b);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-sso {
  margin-top: 1rem;
  background: linear-gradient(135deg, #3d8fb5, #2d6a8f);
}

.join__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.join__divider::before,
.join__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.join__divider span { white-space: nowrap; }

.btn-ghost {
  margin-top: 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost--sm {
  margin: 0;
  width: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem) 1.25rem;
  min-height: 0;
}

.chat__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, var(--max-chat));
  margin: 0 auto;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: calc(100vh - 9rem);
  max-height: calc(100vh - 9rem);
}

.chat__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--glass-strong);
}

.chat__user { font-size: 0.88rem; color: var(--muted); }

.chat__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr) minmax(14rem, 17rem);
  min-height: 0;
}

.chat__body:not(:has(#subrooms-panel:not(.hidden))) {
  grid-template-columns: minmax(9.5rem, 12.5rem) minmax(0, 1fr);
}

.members {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.28);
}

.members__title {
  margin: 0;
  padding: 0.75rem 0.9rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.members__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(126, 200, 227, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.members__list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0.55rem 0.85rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.members__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.25;
}

.members__item--me {
  background: rgba(126, 200, 227, 0.14);
}

.members__flag {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1;
}

.members__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members__empty {
  padding: 0.5rem 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.subrooms {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 18, 28, 0.55);
}

.subrooms.hidden {
  display: none !important;
}

.subrooms__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.subrooms__hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.subrooms__leave {
  width: 100%;
  margin: 0;
}

.subrooms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.subrooms__empty {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.35rem 0.15rem;
}

.subrooms__join {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  cursor: pointer;
  font-weight: 400;
  box-shadow: none;
}

.subrooms__join:hover:not(:disabled) {
  border-color: rgba(126, 200, 227, 0.55);
  background: rgba(126, 200, 227, 0.14);
}

.subrooms__join:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.subrooms__item.is-active .subrooms__join {
  border-color: var(--accent);
  background: rgba(126, 200, 227, 0.2);
}

.subrooms__name {
  font-size: 0.88rem;
  font-weight: 600;
}

.subrooms__meta {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.subrooms__form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.subrooms__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(244, 247, 249, 0.9);
}

.subrooms__form input {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(126, 200, 227, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #0a141c;
  font: inherit;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.subrooms__form input::placeholder {
  color: rgba(10, 20, 28, 0.45);
}

.subrooms__form input:focus {
  outline: 2px solid rgba(126, 200, 227, 0.75);
  outline-offset: 1px;
  border-color: var(--accent);
}

.subrooms__form button {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.chat__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

@media (max-width: 720px) {
  .chat__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .chat__body:not(:has(#subrooms-panel:not(.hidden))) {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .members {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 7.5rem;
  }

  .subrooms {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 14rem;
  }

  .members__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.15rem;
    padding-bottom: 0.55rem;
  }

  .members__item {
    padding: 0.28rem 0.4rem;
  }
}

.msg {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.msg--mine {
  background: var(--mine);
  border-color: rgba(126, 200, 227, 0.35);
  margin-left: clamp(0.5rem, 8vw, 3rem);
}

.msg:not(.msg--mine) { margin-right: clamp(0.5rem, 8vw, 3rem); }

.msg__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.msg__author { font-weight: 700; color: #fff; }

.msg__actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.msg__report {
  font: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
}

.msg__report:hover {
  color: #fff;
  border-color: rgba(255, 180, 180, 0.5);
}

.msg__body {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.moderation-panel {
  margin: 0 1rem 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 120, 0.35);
  background: rgba(40, 30, 10, 0.55);
}

.moderation-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.moderation-panel__head-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.moderation-panel__head h3 {
  margin: 0;
  font-size: 1rem;
}

.moderation-panel__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.moderation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow: auto;
}

.moderation-item {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.moderation-item__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.moderation-item__body {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9rem;
}

.moderation-item__reason {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: #f0c674;
}

.moderation-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.moderation-item__actions button {
  font: inherit;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

.moderation-item__actions button.is-good {
  border-color: rgba(120, 200, 140, 0.45);
}

.moderation-item__actions button.is-bad {
  border-color: rgba(220, 120, 120, 0.45);
}

.moderation-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.msg__original {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.62);
  font-style: italic;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "input actions"
    "hint hint";
  gap: 0.75rem;
  align-items: end;
  padding: 0.85rem 1rem 1rem;
  background: var(--glass-strong);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.composer textarea {
  grid-area: input;
  resize: vertical;
  min-height: 2.8rem;
  max-height: 8rem;
}

.composer__actions {
  grid-area: actions;
  display: flex;
  align-items: end;
  gap: 0.45rem;
}

.composer__mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5.5rem !important;
  width: auto;
  padding: 0.55rem 0.75rem !important;
  font-size: 0.88rem;
  line-height: 1;
  color: var(--text, #f8fafc);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.composer__mic-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.composer__mic-label {
  white-space: nowrap;
}

.composer__mic.is-recording {
  background: rgba(220, 100, 100, 0.35);
  border-color: rgba(255, 140, 140, 0.55);
}

.composer__mic.is-busy {
  opacity: 0.65;
}

.composer__mic:disabled {
  opacity: 0.45;
}

.composer__speech-hint {
  grid-area: hint;
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.composer button[type="submit"] {
  margin: 0;
  width: auto;
  min-width: 6.5rem;
}

.composer button {
  margin: 0;
}

.presence {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.55);
  padding: 0.35rem;
}

@media (max-width: 600px) {
  .header { flex-direction: column; align-items: flex-start; }
  .composer { grid-template-columns: 1fr; grid-template-areas: "input" "actions" "hint"; }
  .composer__actions { width: 100%; }
  .composer__actions button[type="submit"] { flex: 1; }
  .composer button { width: 100%; }
  .msg--mine, .msg:not(.msg--mine) { margin-left: 0; margin-right: 0; }
}

/* ——— Admin usage stats ——— */
.usage-app .usage-screen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

.usage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
}

.usage-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.usage-filter select {
  width: auto;
  min-width: 4.5rem;
}

.usage-updated {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.usage-stat {
  padding: 1rem;
  text-align: center;
}

.usage-stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.usage-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.usage-panel {
  padding: 1rem 1.1rem 1.15rem;
}

.usage-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.usage-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.usage-panel__head h2 {
  margin: 0;
}

.usage-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.usage-table-wrap {
  overflow-x: auto;
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.usage-table th,
.usage-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.usage-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.usage-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
}

.usage-badge--connect { background: rgba(100, 180, 255, 0.2); }
.usage-badge--disconnect { background: rgba(180, 180, 180, 0.15); }
.usage-badge--room_join { background: rgba(120, 200, 140, 0.2); }
.usage-badge--room_leave { background: rgba(220, 170, 100, 0.18); }

.usage-muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.usage-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.usage-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
