@font-face {
  font-family: 'Inter';
  src: url('../fonts/google-fonts/inter/inter-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/google-fonts/inter/inter-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/google-fonts/inter/inter-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/google-fonts/space-grotesk/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --oc-bg: #070b18;
  --oc-bg-soft: #0d1326;
  --oc-surface: rgba(15, 23, 42, 0.88);
  --oc-surface-2: rgba(23, 31, 54, 0.96);
  --oc-border: rgba(120, 136, 179, 0.2);
  --oc-text: #e8eeff;
  --oc-muted: #90a0c5;
  --oc-accent: #7c5cff;
  --oc-accent-2: #23d5ff;
  --oc-success: #24d18f;
  --oc-danger: #ff5e7a;
  --oc-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--oc-text);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 213, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #050816 0%, #0a1020 45%, #050816 100%);
}

h1,
h2,
h3,
h4,
.brand-font {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

h1,
.h1 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

h2,
.h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

h3,
.h3 {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

h4,
.h4,
.h5,
.h6 {
  font-size: 0.92rem;
}

a {
  color: #9ad9ff;
  text-decoration: none;
}

a:hover {
  color: #d3f0ff;
}

.app-shell {
  min-height: 100vh;
}

.app-shell__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.96), rgba(12, 18, 36, 0.96));
  border-right: 1px solid var(--oc-border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0;
}

.mobile-main-switch {
  display: none;
}

.sidebar__brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 10px 24px rgba(124, 92, 255, 0.28);
}

.sidebar__settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(120, 136, 179, 0.18);
  background: rgba(10, 16, 31, 0.84);
  color: #dbe6ff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sidebar__settings-link:hover {
  color: #fff;
  border-color: rgba(35, 213, 255, 0.4);
  background: rgba(16, 25, 43, 0.96);
  transform: translateY(-1px);
}

.client-route-view {
  display: grid;
  gap: 1rem;
  animation: client-route-view-enter 0.18s ease both;
}

.client-route-view:focus {
  outline: none;
}

.client-route-view__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(35, 213, 255, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(35, 213, 255, 0.1), rgba(118, 255, 179, 0.06)),
    rgba(11, 17, 32, 0.74);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.client-route-view__eyebrow,
.client-route-hero__eyebrow {
  margin: 0 0 0.2rem;
  color: #8fb4ff;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.client-route-view__title,
.client-route-hero__title {
  margin: 0;
  color: #f5f8ff;
}

.client-route-view__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(120, 136, 179, 0.2);
  border-radius: 14px;
  background: rgba(8, 13, 27, 0.74);
  color: #dbe6ff;
}

.client-route-view__loading,
.client-route-error,
.client-route-card,
.client-route-hero {
  border: 1px solid rgba(120, 136, 179, 0.16);
  border-radius: 22px;
  background: rgba(11, 17, 32, 0.72);
}

.client-route-view__loading,
.client-route-error {
  padding: 1.25rem;
}

.client-route-hero {
  padding: 1.2rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, rgba(35, 213, 255, 0.12), rgba(118, 255, 179, 0.08)),
    rgba(11, 17, 32, 0.72);
}

.client-route-hero__text {
  margin: 0.45rem 0 0;
  color: var(--oc-muted);
}

.client-route-settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
}

.client-route-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
}

.client-route-card {
  padding: 1rem;
}

.client-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.client-route-dropzone {
  width: 100%;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px dashed rgba(35, 213, 255, 0.46);
  border-radius: 18px;
  background: rgba(8, 13, 27, 0.7);
  color: #dbe6ff;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.client-route-dropzone:hover,
.client-route-dropzone:focus-visible,
.client-route-dropzone.is-dragover {
  border-color: rgba(118, 255, 179, 0.72);
  background: rgba(16, 29, 44, 0.84);
  transform: translateY(-1px);
}

.client-route-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--oc-muted);
}

.client-route-status[data-tone="success"] {
  color: #9df2bd;
}

.client-route-status[data-tone="danger"] {
  color: #ff9ea8;
}

@media (max-width: 880px) {
  .client-route-settings__grid,
  .client-route-dashboard__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes client-route-view-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar__title {
  margin: 0;
  font-size: 1rem;
}

.sidebar__subtitle {
  margin: 0;
  color: var(--oc-muted);
  font-size: 0.75rem;
}

.sidebar__section {
  margin-top: 0;
  min-height: 0;
}

.sidebar__section-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oc-muted);
  margin-bottom: 0.5rem;
}

.room-list,
.member-list {
  display: grid;
  gap: 0.75rem;
}

.sidebar__rooms-section {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar__rooms-section .room-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--oc-accent-2) rgba(124, 92, 255, 0.16);
  overscroll-behavior: contain;
}

.sidebar__rooms-section .room-list::-webkit-scrollbar {
  width: 10px;
}

.sidebar__rooms-section .room-list::-webkit-scrollbar-track {
  background: rgba(124, 92, 255, 0.08);
  border-radius: 999px;
}

.sidebar__rooms-section .room-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.9), rgba(35, 213, 255, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(10, 16, 31, 0.95);
}

.sidebar__rooms-section .room-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(145, 122, 255, 0.95), rgba(70, 224, 255, 0.95));
}

.room-member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
}

.sidebar-member-list {
  display: grid;
  gap: 0.35rem;
}

.sidebar-member-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.28rem 0.4rem;
  border-radius: 10px;
  background: rgba(10, 16, 31, 0.76);
  border: 1px solid rgba(120, 136, 179, 0.12);
}

.sidebar-member-item__avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-width: 1px;
}

.sidebar-member-item__name {
  min-width: 0;
  font-size: 0.6rem;
  line-height: 1.1;
  color: #dbe6ff;
}

.sidebar-member-empty {
  color: var(--oc-muted);
  font-size: 0.6rem;
}

.sidebar__voice-controls {
  display: flex;
  gap: 0.55rem;
}

.sidebar__voice-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(120, 136, 179, 0.24);
  background: rgba(255, 94, 122, 0.12);
  color: #dce6ff;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sidebar__voice-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.42);
  color: #fff;
}

.sidebar__voice-toggle.is-active {
  border-color: rgba(35, 213, 255, 0.5);
  background: rgba(35, 213, 255, 0.12);
  color: #fff;
}

.sidebar__voice-toggle.is-push-to-talk:not(.is-active) {
  border-color: rgba(255, 204, 71, 0.36);
  background: rgba(255, 204, 71, 0.12);
  color: #ffe39a;
}

[data-ptt-shortcut-record].is-active {
  border-color: rgba(35, 213, 255, 0.58);
  background: rgba(35, 213, 255, 0.14);
  color: #ffffff;
}

.sidebar__voice-controls--inline {
  margin-left: auto;
  flex: 0 0 auto;
}

.sidebar__voice-toggle--sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.sidebar__actions {
  display: grid;
  gap: 0.35rem;
}

.room-card,
.member-card,
.panel-card,
.auth-card,
.chat-card,
.metric-card {
  border: 1px solid var(--oc-border);
  background: linear-gradient(180deg, rgba(18, 24, 44, 0.92), rgba(10, 15, 29, 0.94));
  box-shadow: var(--oc-shadow);
  backdrop-filter: blur(16px);
}

.server-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-user-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 136, 179, 0.14);
  background: rgba(10, 16, 31, 0.72);
}

.server-user-card__connection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #94a3b8;
}

.server-user-card__connection--good {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.34);
}

.server-user-card__connection--fair {
  color: #facc15;
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.34);
}

.server-user-card__connection--poor {
  color: #fb7185;
  background: rgba(251, 113, 133, 0.14);
  border-color: rgba(251, 113, 133, 0.34);
}

.server-user-card__connection--unknown {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
}

.server-user-card__connection--offline {
  color: #64748b;
}

.server-user-card__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
}

.server-user-card__name {
  margin: 0;
  min-width: 0;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.server-user-card__metric {
  margin: 0.16rem 0 0;
  color: var(--oc-muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.server-user-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.server-user-card__admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 71, 0.36);
  background: rgba(255, 204, 71, 0.12);
  color: #ffe39a;
  font-size: 0.55rem;
  flex: 0 0 auto;
}

.sidebar__profile-card {
  border-radius: 20px;
}

.sidebar__profile-card .member-card__name {
  font-size: 0.96rem;
}

.sidebar__profile-card .member-card__meta {
  font-size: 0.72rem;
}

.room-card__member-main {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  min-width: 0;
  min-height: 32px;
  flex: 1 1 auto;
}

.room-card__member-avatar-shell {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.room-card__member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}



.room-card__member-statuses {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.room-card__member-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 136, 179, 0.18);
  background: rgba(255, 94, 122, 0.12);
  color: #ffd2db;
  font-size: 0.55rem;
  flex: 0 0 auto;
}

.room-card__member-role-badge {
  background: rgba(255, 204, 71, 0.12);
  border-color: rgba(255, 204, 71, 0.36);
  color: #ffe39a;
}

.room-card__member-status.is-active {
  background: rgba(35, 213, 255, 0.12);
  border-color: rgba(35, 213, 255, 0.3);
  color: #d7f9ff;
}

.room-card__member-status.is-inactive {
  background: rgba(255, 94, 122, 0.14);
  border-color: rgba(255, 94, 122, 0.3);
  color: #ffd2db;
}

.room-card__member.is-speaking .room-card__member-avatar,
.room-member-card[data-room-member-speaking='true'] .room-card__member-avatar {
  box-shadow: 0 0 0 2px rgba(235, 250, 255, 0.85), 0 0 0 5px rgba(35, 213, 255, 0.18);
}

.room-member-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 136, 179, 0.14);
  background: rgba(10, 16, 31, 0.72);
}

.room-member-card__name {
  margin: 0;
  max-width: 100%;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 22px;
  display: flex;
  align-items: center;
  color: #edf3ff;
}

@keyframes roomSpeakerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 213, 255, 0.22);
  }

  70% {
    box-shadow: 0 0 0 4px rgba(35, 213, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(35, 213, 255, 0);
  }
}

.room-card {
  display: block;
  width: 100%;
  align-self: start;
  min-width: 0;
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.42);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.room-card.is-active {
  border-color: rgba(35, 213, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(35, 213, 255, 0.16), var(--oc-shadow);
}

.room-card__members {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.room-card__member {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.28rem 0.42rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 136, 179, 0.12);
  border-left-width: 3px;
  border-left-color: rgba(148, 163, 184, 0.3);
  background: rgba(10, 16, 31, 0.72);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.room-card__member--presence-good {
  border-left-color: #34d399;
}

.room-card__member--presence-fair {
  border-left-color: #facc15;
}

.room-card__member--presence-poor {
  border-left-color: #fb7185;
}

.room-card__member--presence-unknown {
  border-left-color: #94a3b8;
}

.room-card__member--presence-offline {
  border-left-color: #64748b;
  opacity: 0.72;
}

.room-card__member-avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.room-card__member-name {
  min-width: 0;
  color: #dce6ff;
  font-size: 0.68rem;
  line-height: 22px;
  display: flex;
  align-items: center;
  font-weight: 600;
  flex: 1 1 auto;
}
.room-card__members-empty {
  color: var(--oc-muted);
  font-size: 0.68rem;
}

.room-card__name,
.member-card__name {
  margin: 0;
  font-weight: 700;
}

.room-card__meta,
.member-card__meta,
.small-meta {
  color: var(--oc-muted);
  font-size: 0.76rem;
}

.sidebar .room-card__meta,
.sidebar .small-meta {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: #d6cdff;
  font-size: 0.7rem;
  border: 1px solid rgba(124, 92, 255, 0.22);
}

.room-voice-card {
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
}

.room-voice-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.room-voice-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.room-voice-card__speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.room-voice-card__speaker,
.room-voice-card__speaker-empty {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.48rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 136, 179, 0.14);
  background: rgba(10, 16, 31, 0.72);
}

.room-voice-card__speaker.is-active {
  border-color: rgba(35, 213, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(35, 213, 255, 0.12);
}

.room-voice-card__speaker-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.room-voice-card__speaker-name {
  min-width: 0;
  font-weight: 600;
  font-size: 0.78rem;
  color: #edf3ff;
}

.room-voice-card__speaker-state {
  margin-left: auto;
  font-size: 0.68rem;
  color: #a6b5d8;
}

.room-voice-card__speaker-empty {
  color: var(--oc-muted);
  font-size: 0.76rem;
}

.app-main {
  padding: 1rem;
}

body.app-shell--room {
  height: 100%;
  overflow: hidden;
}

.app-shell--room {
  height: 100%;
}

.app-shell__grid--room {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.app-main--room {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
  gap: 0.75rem;
}

.hero-banner--room {
  flex: 0 0 auto;
}

.room-chat-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.room-chat-card__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.room-chat-card__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--oc-accent-2) rgba(124, 92, 255, 0.16);
  overscroll-behavior: contain;
}

.room-chat-card__messages::-webkit-scrollbar {
  width: 10px;
}

.room-chat-card__messages::-webkit-scrollbar-track {
  background: rgba(124, 92, 255, 0.16);
  border-radius: 999px;
}

.room-chat-card__messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--oc-accent), var(--oc-accent-2));
  background-clip: padding-box;
}

.room-chat-card__messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #967bff, #51e3ff);
  background-clip: padding-box;
}
.room-chat-card__loader {
  padding: 0.3rem 0 0.6rem;
  color: var(--oc-muted);
  font-size: 0.72rem;
  text-align: center;
}

.room-chat-card__loader[hidden] {
  display: none;
}

.room-chat-card__messages-inner {
  flex: 0 0 auto;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
}

.room-chat-card__composer {
  flex: 0 0 auto;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(120, 136, 179, 0.16);
}

.room-chat-card__composer-controls {
  display: grid;
  gap: 0.65rem;
}

.room-chat-card__attachment-preview {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px dashed rgba(120, 136, 179, 0.28);
  background: rgba(8, 12, 24, 0.72);
}

.room-chat-card__attachment-preview[hidden] {
  display: none;
}

.room-chat-card__attachment-preview-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.room-chat-card__attachment-preview-item {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(120, 136, 179, 0.16);
  background: rgba(11, 17, 32, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.room-chat-card__attachment-preview-media {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  color: #b9c7ea;
}

.room-chat-card__attachment-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
}

.room-chat-card__attachment-preview-media--file {
  font-size: 2rem;
}

.room-chat-card__attachment-preview-meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.room-chat-card__attachment-preview-name,
.room-chat-card__attachment-preview-size {
  font-size: 0.72rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-chat-card__attachment-preview-name {
  color: var(--oc-text);
}

.room-chat-card__attachment-preview-size {
  color: var(--oc-muted);
}

.room-chat-card__attachment-preview-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 136, 179, 0.22);
  background: rgba(8, 12, 24, 0.92);
  color: var(--oc-text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.room-chat-card__attachment-preview-remove:hover,
.room-chat-card__attachment-preview-remove:focus-visible {
  border-color: rgba(255, 94, 122, 0.58);
  background: rgba(255, 94, 122, 0.16);
  transform: translateY(-1px);
}

.room-chat-card__input-group .form-control {
  min-height: 2.8rem;
}

.room-chat-card__attachment-toggle,
.room-chat-card__emoji-toggle {
  flex: 0 0 auto;
  width: 3rem;
  justify-content: center;
}

.room-chat-card__emoji-toggle {
  margin-left: 0;
}

.room-chat-card__emoji-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 136, 179, 0.18);
  background: rgba(8, 12, 24, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.room-chat-card__emoji-panel[hidden] {
  display: none;
}

.room-chat-card__emoji-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.room-chat-card__emoji-picker-host {
  min-width: 0;
}

emoji-picker {
  display: block;
  width: 100%;
  min-height: 320px;
  height: 320px;
  border-radius: 14px;
  border: 1px solid rgba(120, 136, 179, 0.18);
  overflow: hidden;
}

.room-chat-empty {
  align-self: center;
  width: min(100%, 520px);
}

.panel-card,
.auth-card,
.chat-card,
.metric-card {
  border-radius: 18px;
  padding: 1rem;
}

.hero-banner {
  overflow: hidden;
  position: relative;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(35, 213, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-banner__eyebrow {
  color: var(--oc-accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
}

.hero-banner__title {
  margin: 0.35rem 0 0.6rem;
  font-size: clamp(1.25rem, 1.9vw, 2rem);
}

.hero-banner__text {
  color: var(--oc-muted);
  max-width: 60ch;
  font-size: 0.88rem;
}

.btn,
.btn-primary,
.btn-outline-primary {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--oc-accent), #4ba7ff);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8e74ff, #63bcff);
}

.btn-outline-primary {
  color: #c9dcff;
  border-color: rgba(124, 92, 255, 0.45);
}

.btn-outline-primary:hover {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.7);
  color: #fff;
}

.form-control,
.form-select,
.input-group-text {
  background: rgba(9, 13, 26, 0.96);
  color: var(--oc-text);
  border: 1px solid rgba(123, 138, 181, 0.26);
  border-radius: 12px;
  font-size: 0.85rem;
  min-height: 2.4rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(35, 213, 255, 0.6);
  box-shadow: 0 0 0 0.18rem rgba(35, 213, 255, 0.12);
  background: rgba(8, 12, 22, 0.98);
  color: var(--oc-text);
}

.form-label {
  color: #d9e4ff;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.table-dark {
  --bs-table-bg: rgba(13, 20, 37, 0.94);
  --bs-table-striped-bg: rgba(17, 25, 46, 0.94);
  --bs-table-border-color: rgba(120, 136, 179, 0.18);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(35, 213, 255, 0.4);
  background: #10192c;
  cursor: zoom-in;
}

body.avatar-lightbox-open {
  overflow: hidden;
}

.avatar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 9, 18, 0.74);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.avatar-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.avatar-lightbox__dialog {
  width: min(96vw, 1680px);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(120, 136, 179, 0.22);
  background: rgba(10, 16, 31, 0.94);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.48);
}

.avatar-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.avatar-lightbox__title {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #eaf2ff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.avatar-lightbox__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(120, 136, 179, 0.2);
  border-radius: 999px;
  background: rgba(18, 28, 48, 0.88);
  color: #edf4ff;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.avatar-lightbox__close:hover,
.avatar-lightbox__close:focus-visible {
  transform: scale(1.05);
  background: rgba(35, 213, 255, 0.14);
  border-color: rgba(35, 213, 255, 0.42);
  color: #ffffff;
}

.avatar-lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.avatar-preview-box .avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
}


.avatar-dropzone {
  min-height: 9rem;
  padding: 1rem;
  border: 1px dashed rgba(124, 92, 255, 0.45);
  border-radius: 16px;
  background: rgba(8, 13, 27, 0.72);
}

.avatar-dropzone .dz-message {
  margin: 0;
  color: var(--oc-muted);
  font-size: 0.88rem;
}

.avatar-dropzone .dz-preview {
  display: none;
}

.settings-note-list {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.05rem;
  color: #dbe6ff;
}

.avatar--sm,
.avatar--xs {
  width: 32px;
  height: 32px;
}

.message-list {
  display: grid;
  gap: 0.75rem;
  max-height: 520px;
  overflow: auto;
  padding-right: 0.35rem;
}

.message-item {
  position: relative;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(10, 16, 31, 0.88);
  border: 1px solid rgba(120, 136, 179, 0.14);
  overflow: visible;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.message-item:hover,
.message-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.36);
  background: rgba(14, 22, 40, 0.96);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.message-item__body {
  min-width: 0;
  flex: 1 1 auto;
}

.message-item__reaction-picker {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 136, 179, 0.18);
  background: rgba(9, 14, 28, 0.94);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(0.35rem) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.message-item:hover .message-item__reaction-picker,
.message-item:focus-within .message-item__reaction-picker {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.message-item__reaction,
.message-item__reaction-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 1.7rem;
  border: 1px solid rgba(120, 136, 179, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce6ff;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.message-item__reaction:hover,
.message-item__reaction-action:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 213, 255, 0.4);
  background: rgba(35, 213, 255, 0.12);
  color: #fff;
}

.message-item__reaction.is-active,
.message-item__reaction-action.is-active {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.18);
  color: #fff;
}

.message-item__reaction {
  padding: 0.2rem 0.48rem;
}

.message-item__reaction-action {
  width: 1.8rem;
  padding: 0;
}

.message-item__reaction-emoji {
  font-size: 0.78rem;
}

.message-item__reaction-count {
  font-weight: 700;
  font-size: 0.7rem;
}

.message-item__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(120, 136, 179, 0.16);
}

@media (hover: none) and (pointer: coarse) {
  .message-item__reaction-picker {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.message-item__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.message-item__name {
  font-weight: 700;
  font-size: 0.88rem;
}

.message-item__time {
  color: var(--oc-muted);
  font-size: 0.7rem;
}

.message-item__text {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  color: #90a0c5;
}

.message-item__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.message-item__text a:hover,
.message-item__text a:focus-visible {
  color: #c3d1f0;
}

.message-item__attachments {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.message-item__attachment {
  width: min(100%, 320px);
}

.message-item__attachment--image {
  position: relative;
  display: grid;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: zoom-in;
}

.message-item__attachment-image {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(120, 136, 179, 0.16);
  background: rgba(10, 16, 31, 0.92);
}

.message-item__attachment-image-overlay {
  position: absolute;
  right: 0.65rem;
  bottom: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(120, 136, 179, 0.22);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.message-item__attachment-meta {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.message-item__attachment-name,
.message-item__attachment-size {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-item__attachment-name {
  font-size: 0.82rem;
  color: var(--oc-text);
}

.message-item__attachment-size {
  font-size: 0.7rem;
  color: var(--oc-muted);
}

.message-item__attachment--file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.82rem;
  border-radius: 14px;
  border: 1px solid rgba(120, 136, 179, 0.16);
  background: rgba(10, 16, 31, 0.9);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.message-item__attachment--file:hover,
.message-item__attachment--file:focus-visible {
  color: inherit;
  border-color: rgba(35, 213, 255, 0.35);
  background: rgba(14, 22, 39, 0.96);
  transform: translateY(-1px);
}

.message-item__attachment-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.16);
  color: #d9d0ff;
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.message-item__attachment-file-body {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.message-item__attachment--image:hover .message-item__attachment-image,
.message-item__attachment--image:focus-visible .message-item__attachment-image {
  border-color: rgba(35, 213, 255, 0.35);
}

.message-item__attachment--image:hover .message-item__attachment-image-overlay,
.message-item__attachment--image:focus-visible .message-item__attachment-image-overlay {
  background: rgba(35, 213, 255, 0.16);
  border-color: rgba(35, 213, 255, 0.35);
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-card__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.3), 0 16px 28px rgba(124, 92, 255, 0.22);
}

.footer-note {
  color: var(--oc-muted);
  font-size: 0.74rem;
}

@media (max-width: 1200px) {
  .app-shell__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--oc-border);
  }

  .sidebar__brand {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.65rem 0;
    margin: -0.65rem 0 0;
    background: linear-gradient(180deg, rgba(6, 11, 24, 0.98), rgba(6, 11, 24, 0.9));
    backdrop-filter: blur(10px);
  }

  .mobile-main-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    position: sticky;
    top: 4.1rem;
    z-index: 29;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid rgba(120, 136, 179, 0.18);
    border-radius: 18px;
    background: rgba(8, 13, 27, 0.72);
    backdrop-filter: blur(10px);
  }

  .mobile-main-switch__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #aebde1;
    font-weight: 700;
  }

  .mobile-main-switch__button.is-active {
    color: #06101f;
    background: linear-gradient(135deg, #76ffb3, #35d5ff);
    box-shadow: 0 10px 24px rgba(35, 213, 255, 0.22);
  }

  .app-main[data-mobile-main-placement="sidebar"] {
    padding: 0;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"]:not(.app-main--room) {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.15rem 0.1rem 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"][data-client-route-active] {
    align-self: stretch;
    display: block;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.15rem 0.1rem 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--oc-accent-2) rgba(124, 92, 255, 0.16);
  }

  .sidebar[data-mobile-main-mode="voice"] .app-main[data-mobile-main-placement="sidebar"] {
    display: none;
  }

  .sidebar[data-mobile-main-mode="chat"] .sidebar__rooms-section {
    display: none;
  }

  .sidebar[data-mobile-main-mode="chat"] {
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .sidebar[data-mobile-main-mode="chat"] > .sidebar__section:not(.sidebar__rooms-section) {
    display: none;
  }

  .sidebar__rooms-section,
  .sidebar__rooms-section .room-list {
    overflow: visible;
    min-height: 0;
    max-height: none;
  }

  body.app-shell--room {
    height: auto;
    overflow: auto;
  }

  .app-shell--room,
  .app-shell__grid--room {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .app-main--room[data-mobile-main-placement="sidebar"] {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] {
    display: flex;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: 0;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .hero-banner--room {
    display: none;
  }

  .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card {
    min-height: 0;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 0.85rem;
    border-radius: 20px;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card__messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
    overscroll-behavior: contain;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card__messages-inner {
    min-height: 100%;
    justify-content: flex-end;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card__composer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    background: linear-gradient(180deg, rgba(13, 20, 38, 0), rgba(13, 20, 38, 0.98) 30%);
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 1rem;
  }

  .app-main {
    padding: 1rem;
  }

  .app-main[data-mobile-main-placement="sidebar"] {
    padding: 0;
  }

  .message-item {
    padding: 0.75rem;
  }
}

/* Feintuning für sehr flache Notebook-Höhen: Abstände verdichten,
   damit der scrollbare Chatbereich nutzbar bleibt. */
@media (max-height: 800px) {
  .app-main--room {
    gap: 0.5rem;
  }

  .hero-banner--room {
    padding: 0.7rem 1rem;
  }

  .hero-banner--room .hero-banner__eyebrow {
    margin-bottom: 0.25rem !important;
  }

  .room-voice-card {
    padding: 0.6rem 0.8rem;
  }

  .room-voice-card__speakers {
    margin-top: 0.55rem;
  }

  .room-chat-card {
    padding: 0.8rem;
  }

  .room-chat-card__header {
    margin-bottom: 0.5rem;
  }

  .room-chat-card__composer {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  .room-chat-card__input-group .form-control {
    min-height: 2.5rem;
  }
}

@media (max-height: 680px) {
  .app-main--room {
    gap: 0.4rem;
  }

  .hero-banner--room {
    padding: 0.55rem 0.85rem;
  }

  .hero-banner--room .hero-banner__title {
    font-size: 1.15rem;
  }

  .hero-banner--room .hero-banner__text {
    display: none;
  }

  .room-chat-card__header .small-meta {
    display: none;
  }

  .room-voice-card {
    padding: 0.5rem 0.7rem;
  }

  .room-voice-card__speakers {
    margin-top: 0.45rem;
    gap: 0.4rem;
  }

  .room-chat-card {
    padding: 0.65rem 0.7rem;
  }

  .room-chat-card__header {
    margin-bottom: 0.4rem;
  }

  .room-chat-card__messages-inner {
    gap: 0.55rem;
  }

  .room-chat-card__composer {
    flex: 0 0 auto;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(124, 92, 255, 0.12);
  }

  .room-chat-card__typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.1rem;
    margin-bottom: 0.55rem;
    color: var(--oc-muted);
    font-size: 0.86rem;
    line-height: 1;
  }

  .room-chat-card__typing-indicator[hidden] {
    display: none;
  }

  .room-chat-card__typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
  }

  .room-chat-card__typing-dots > span {
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #967bff, #51e3ff);
    opacity: 0.55;
    animation: roomChatTypingDot 1.05s infinite ease-in-out;
  }

  .room-chat-card__typing-dots > span:nth-child(2) {
    animation-delay: 0.14s;
  }

  .room-chat-card__typing-dots > span:nth-child(3) {
    animation-delay: 0.28s;
  }

  @keyframes roomChatTypingDot {
    0%, 80%, 100% {
      transform: translateY(0);
      opacity: 0.35;
    }
    40% {
      transform: translateY(-0.22rem);
      opacity: 1;
    }
  }

  .room-chat-card__composer-controls {
    gap: 0.45rem;
  }

  .room-chat-card__input-group .form-control {
    min-height: 2.3rem;
  }

  .room-chat-card__emoji-toggle {
    width: 2.65rem;
  }

  .message-item {
    padding: 0.6rem;
  }
}

@media (max-width: 1200px) {
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"],
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card {
    min-height: 0;
    overflow: hidden;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card__messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"] .room-chat-card__composer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex: 0 0 auto;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"][data-client-route-active] {
    display: block;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--oc-accent-2) rgba(124, 92, 255, 0.16);
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar,
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar {
    width: 10px;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-track,
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-track {
    background: rgba(124, 92, 255, 0.16);
    border-radius: 999px;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-thumb,
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--oc-accent), var(--oc-accent-2));
    background-clip: padding-box;
  }

  .sidebar[data-mobile-main-mode="chat"] .app-main[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-thumb:hover,
  .sidebar[data-mobile-main-mode="chat"] .app-main--room[data-mobile-main-placement="sidebar"][data-client-route-active]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #967bff, #51e3ff);
    background-clip: padding-box;
  }
}
