.channel-settings-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(44rem, calc(100dvh - 2rem));
  overflow: hidden;
}

.channel-settings-dialog > form {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
}

.channel-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--app-control-border);
}

.channel-settings-tab {
  flex: 1 1 0;
  min-width: min-content;
  min-height: 2.5rem;
  padding-inline: 0.375rem;
  overflow-wrap: normal;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--colorFeedbackForegroundDefault);
}

.channel-settings-tab:hover:not(:disabled),
.channel-settings-tab:focus-visible {
  background: var(--colorFeedbackBackgroundLowEmphasis);
}

.channel-settings-tab.selected {
  border-bottom-color: var(--colorFeedbackBackgroundAccentHighEmphasis);
  color: var(--colorFeedbackForegroundAccentXHighEmphasis);
}

.channel-settings-tab-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.channel-settings-tab-panel[hidden] {
  display: none;
}

.channel-settings-dialog .dialog-actions {
  margin-top: 0;
}

.transcription-outputs {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-color, #d5dadd);
  padding-top: 0.5rem;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.message > .transcription-outputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  color: var(--colorFeedbackForegroundLowEmphasis);
}

.transcription-output {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcription-output-language {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.transcription-language-subset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-height: 10rem;
  overflow-y: auto;
  border: 1px solid var(--app-control-border);
}

.transcription-language-subset .member-option {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.transcription-provider {
  margin: 0;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  gap: 8px;
}

.translation-error-badge {
  min-height: 1.5rem;
  padding: 2px 8px;
  border: 1px solid var(--colorFeedbackForegroundDangerXHighEmphasis);
  border-radius: 4px;
  background: var(--colorFeedbackBackgroundDangerXLowEmphasis);
  color: var(--colorFeedbackForegroundDangerXHighEmphasis);
  font-size: 0.75rem;
  line-height: 1;
}

.translation-error-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 45%);
}

.translation-error-dialog {
  width: min(28rem, 100%);
  padding: 1rem;
}

.translation-error-dialog h2,
.translation-error-dialog p {
  margin-top: 0;
}

.translation-error-model-label {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.translation-error-models {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.transcription-recording-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 12px;
  border-top: 1px solid var(--app-control-border);
  font-size: 0.8125rem;
}

.transcription-recording-controls .member-option {
  margin: 0;
}

.transcription-entry-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.transcription-entry-header time {
  font-size: 0.75rem;
}

.transcription-entry-header .transcription-correction-controls {
  margin-left: auto;
}

.transcription-panel {
  grid-template-rows: minmax(0, 1fr);
}

.transcription-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.transcription-log .message-list {
  flex: 1;
}

.transcription-correction-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.transcription-reprocessing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 8px 0;
}

.transcription-reprocessing-actions select {
  width: auto;
  max-width: calc(100% - 40px);
  min-width: 0;
  font-size: 0.8125rem;
}
:root {
  --app-motion-fast: 140ms;
  --app-motion-normal: 200ms;
  --app-motion-layout: 240ms;
  --app-motion-ease: cubic-bezier(0.2, 0, 0, 1);
  --app-action-background: #79d2e1;
  --app-action-background-hover: #a7e6ef;
  --app-action-border: #56b3c3;
  --app-action-foreground: #082c36;
  --app-control-border: #6f939d;
  --app-selection-border: #79d2e1;
  --app-focus-ring: var(--app-selection-border);
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
  background: var(--colorFeedbackBackgroundXxxLowEmphasis);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"],
.message-content {
  -webkit-user-select: text;
  user-select: text;
}

button,
label {
  -webkit-user-select: none;
  user-select: none;
}

.application,
.auth-shell {
  min-height: 100vh;
}

.auth-shell {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 4vh, 3rem) 1.5rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 45%, rgba(38, 153, 169, 0.2) 0, rgba(7, 33, 44, 0.26) 28%, transparent 52%),
    linear-gradient(180deg, rgba(2, 12, 18, 0.08), rgba(1, 9, 14, 0.68)),
    repeating-linear-gradient(105deg, transparent 0 84px, rgba(84, 209, 224, 0.035) 85px 86px),
    #031019;
  color: #e8f5f6;
}

.auth-shell::before {
  position: absolute;
  z-index: -3;
  inset: -20%;
  background:
    radial-gradient(ellipse at 48% 40%, transparent 0 18%, rgba(45, 175, 188, 0.12) 18.2% 18.5%, transparent 18.8% 24%, rgba(45, 175, 188, 0.07) 24.2% 24.5%, transparent 24.8%),
    conic-gradient(from 205deg at 50% 48%, transparent 0 27%, rgba(67, 194, 207, 0.08) 30%, transparent 33% 66%, rgba(67, 194, 207, 0.06) 69%, transparent 72%);
  content: "";
  animation: auth-drift 24s linear infinite;
}

.auth-shell::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: radial-gradient(rgba(129, 225, 234, 0.32) 0.7px, transparent 0.8px);
  background-size: 19px 19px;
  content: "";
  opacity: 0.18;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 80%, transparent);
}

.auth-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-horizon {
  position: absolute;
  right: -12%;
  bottom: -52%;
  left: -12%;
  height: 75%;
  border: 1px solid rgba(103, 221, 231, 0.22);
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at center top, rgba(20, 85, 104, 0.42), transparent 56%),
    repeating-radial-gradient(ellipse at center top, transparent 0 52px, rgba(89, 199, 214, 0.08) 53px 54px);
  box-shadow: 0 -12px 80px rgba(22, 154, 177, 0.12);
}

.auth-network {
  position: absolute;
  top: 18%;
  width: 40%;
  height: 48%;
  border-top: 1px solid rgba(83, 214, 227, 0.36);
  border-bottom: 1px solid rgba(83, 214, 227, 0.16);
  opacity: 0.72;
  transform: skewY(-18deg);
}

.auth-network::before,
.auth-network::after {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 228, 238, 0.66), transparent);
  content: "";
}

.auth-network::before {
  top: 32%;
  width: 92%;
}

.auth-network::after {
  top: 68%;
  width: 68%;
}

.auth-network-left {
  left: -8%;
}

.auth-network-right {
  right: -8%;
  transform: scaleX(-1) skewY(-18deg);
}

.auth-pulse {
  position: absolute;
  top: 39%;
  left: 50%;
  width: 28rem;
  aspect-ratio: 1;
  border: 1px solid rgba(105, 225, 235, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: auth-pulse 7s ease-out infinite;
}

.auth-pulse-two {
  animation-delay: 2.3s;
}

.auth-pulse-three {
  animation-delay: 4.6s;
}

.auth-panel {
  width: min(100%, 25rem);
  text-align: center;
  animation: auth-arrive 700ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.auth-shell > .login-language-menu {
  position: fixed;
  z-index: 4;
  top: calc(1.25rem + env(safe-area-inset-top));
  right: calc(1.25rem + env(safe-area-inset-right));
}

.auth-brand {
  display: grid;
  justify-items: center;
}

.auth-emblem {
  width: clamp(9rem, 22vh, 13rem);
  height: auto;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 0 18px rgba(77, 220, 231, 0.25)) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55));
}

.auth-brand h1 {
  color: #f2f7f7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 6vh, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 2px 24px rgba(81, 215, 226, 0.3);
  text-transform: uppercase;
}

.login-language-menu {
  position: relative;
}

.login-language-menu > .icon-button {
  border-color: rgba(104, 205, 216, 0.36);
  background: rgba(4, 24, 31, 0.72);
}

.login-language-menu > .icon-button .icon-action {
  filter: brightness(0) invert(1);
}

.login-language-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 8rem;
  gap: 0.25rem;
  padding: 0.4rem;
  border: 1px solid rgba(104, 205, 216, 0.36);
  border-radius: 4px;
  background: rgba(3, 19, 26, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.login-language-options button {
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  text-align: left;
}

.login-language-options button[aria-checked="true"] {
  background: rgba(70, 182, 195, 0.2);
}

.auth-methods {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
  min-width: 0;
}

.auth-methods .login-form {
  margin-top: 0;
}

.auth-alternative {
  text-align: center;
}

.oidc-login-button {
  min-height: 2.75rem;
  border-color: #559ba5;
  background: rgba(23, 77, 88, 0.95);
  color: #f2fbfb;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.oidc-login-button:hover:not(:disabled) {
  border-color: #9ce7ed;
  background: rgba(28, 93, 105, 0.96);
}

.login-form {
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 1.15rem;
  border: 1px solid rgba(104, 205, 216, 0.28);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(8, 34, 43, 0.84), rgba(3, 18, 25, 0.76));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 22px 70px rgba(0, 0, 0, 0.42), 0 0 60px rgba(44, 174, 190, 0.06);
  backdrop-filter: blur(14px);
}

.login-form input {
  width: 100%;
  min-height: 2.7rem;
  border-color: rgba(105, 205, 216, 0.38);
  background: rgba(0, 10, 15, 0.62);
  color: #f3fafa;
  box-shadow: inset 0 0 18px rgba(40, 156, 171, 0.06);
}

.login-form input::placeholder {
  color: #829da2;
}

.login-form input:focus {
  border-color: #78d8e1;
  box-shadow: 0 0 0 1px #78d8e1, 0 0 18px rgba(73, 205, 219, 0.16);
}

.login-form button[type="submit"] {
  min-height: 2.75rem;
  border-color: #559ba5;
  background: linear-gradient(180deg, rgba(72, 157, 170, 0.8), rgba(23, 77, 88, 0.9));
  color: #f2fbfb;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-form button[type="submit"]:hover:not(:disabled) {
  border-color: #9ce7ed;
  background: linear-gradient(180deg, rgba(88, 186, 198, 0.92), rgba(28, 93, 105, 0.96));
}

.auth-methods .form-error {
  color: #ffb8af;
  font-size: 0.84rem;
}

@keyframes auth-arrive {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-drift {
  to { transform: rotate(360deg); }
}

@keyframes auth-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  18% { opacity: 0.65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-shell::before,
  .auth-panel,
  .auth-pulse {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--colorFeedbackForegroundAccentXHighEmphasis);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.75rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
}

input,
select,
button {
  font: inherit;
}

input,
select,
textarea {
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  color: inherit;
}

button {
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--app-action-border);
  border-radius: 4px;
  background: var(--app-action-background);
  color: var(--app-action-foreground);
  cursor: pointer;
  font-weight: 700;
}

button:hover:not(:disabled) {
  border-color: var(--app-action-foreground);
  background: var(--app-action-background-hover);
}

button:disabled {
  cursor: wait;
  border-color: var(--app-control-border);
  background: var(--colorFeedbackBackgroundLowEmphasis);
  color: var(--colorFeedbackForegroundDefault);
  opacity: 1;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  place-items: center;
}

.compact-icon-button {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem;
}

.icon-action {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) saturate(100%);
}

.icon-button:disabled {
  border-color: #638e99;
  background: #365860;
}

.icon-button:disabled .icon-action,
.destructive-button .icon-action {
  filter: brightness(0) invert(1);
}

.microphone-disabled .icon-action,
.microphone-unavailable .icon-action,
.camera-disabled .icon-action,
.participant-muted-indicator img {
  filter: brightness(0) saturate(100%) invert(21%) sepia(93%) saturate(3241%) hue-rotate(349deg) brightness(88%) contrast(91%);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--app-focus-ring);
  outline-offset: 2px;
}

.form-error {
  margin: 0;
  color: var(--colorFeedbackForegroundDangerXHighEmphasis);
  font-size: 0.95rem;
}

.language-selector,
.theme-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.preference-selectors {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
}

.language-selector select,
.theme-selector select {
  min-height: 2.25rem;
  padding: 0.25rem 0.45rem;
}

.app-header {
  width: min(100% - 3rem, 70rem);
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-start {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.app-brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.app-brand-emblem { width: 2.5rem; height: 2.5rem; object-fit: contain; flex-shrink: 0; }
.workspace:not(.mobile-workspace) .app-brand-emblem { width: 3rem; height: 3rem; }
.app-brand-text { display: grid; min-width: 0; gap: 0.125rem; -webkit-user-select: none; user-select: none; }
.app-brand h1 { margin: 0; font-size: 1.125rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.app-version, .app-subtitle { font-size: 0.75rem; font-weight: 400; line-height: 1.25; color: var(--colorFeedbackForegroundDefault); }
@media (max-width: 480px) {
  .app-header > .header-actions > strong { display: none; }
}

.settings-menu {
  position: relative;
}

.settings-avatar-button,
.settings-avatar-button:hover:not(:disabled) {
  display: grid;
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.125rem;
  place-items: center;
  border-color: transparent;
  background: transparent;
}

.settings-avatar-button:hover:not(:disabled) {
  border-color: var(--app-selection-border);
}

.settings-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 14rem;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-radius: 6px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  box-shadow: var(--sizingCustomShadowsElevationDropOverlayX) var(--sizingCustomShadowsElevationDropOverlayY) var(--sizingCustomShadowsElevationDropOverlayBlur) var(--sizingCustomShadowsElevationDropOverlaySpread) var(--colorShadowsLowEmphasis);
}

.settings-popover .theme-selector,
.settings-popover .language-selector {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
}

.settings-popover .theme-selector span {
  grid-column: 1 / -1;
}

.settings-popover .theme-selector select,
.settings-popover .language-selector select {
  grid-column: 1 / -1;
}

.settings-popover select {
  width: 100%;
}

.settings-actions {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--colorFeedbackBackgroundLowEmphasis);
}

.settings-actions .settings-action-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-align: left;
}

.settings-actions .filled-icon-button {
  border-color: var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorFeedbackBackgroundLowEmphasis);
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
}

.settings-actions .filled-icon-button:hover:not(:disabled) {
  border-color: var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
}

:root[data-theme="dark"] .settings-action-button:not(.destructive-button) .icon-action {
  filter: brightness(0) invert(1);
}

.quiet-button {
  min-height: 2.25rem;
  border-color: var(--app-control-border);
  background: transparent;
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
}

.quiet-button:hover:not(:disabled) {
  border-color: var(--app-action-border);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
}

.avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--colorFeedbackBackgroundAccentXxHighEmphasis);
  color: var(--app-action-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
}

:root[data-theme="light"] .avatar {
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
  color: var(--colorFeedbackForegroundAccentXHighEmphasis);
}

.participant-avatar {
  position: relative;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.participant-avatar.channel-connected .avatar {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0.125rem;
  outline: 2px solid #3b9a5a;
}

.participant-avatar.offline .avatar {
  background: var(--colorFeedbackBackgroundLowEmphasis);
  color: var(--colorFeedbackForegroundLowEmphasis);
}

.participant-muted-indicator {
  position: absolute;
  right: -0.15rem;
  bottom: -0.1rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  padding: 0.15rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.participant-muted-indicator img {
  width: 100%;
  height: 100%;
}

.workspace {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 100dvh;
}

.workspace > .app-header,
.workspace-layout,
.invitation-stack,
.status-message {
  width: calc(100% - 2rem);
  margin-right: auto;
  margin-left: auto;
}

.workspace-layout {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  padding: 1rem 0;
  transition: grid-template-columns var(--app-motion-layout) var(--app-motion-ease), gap var(--app-motion-layout) var(--app-motion-ease);
}

.workspace-layout.channels-collapsed {
  grid-template-columns: minmax(0, 0rem) minmax(0, 1fr);
  gap: 0;
}

.workspace-layout > .lk-room-container {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.channel-navigation-shell {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  transition: visibility 0s;
}

.channel-nav,
.active-channel,
.chat-panel,
.invitation,
.dialog {
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-radius: 6px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

.channel-nav {
  align-self: start;
  padding: 0.75rem;
  transition: opacity var(--app-motion-fast) var(--app-motion-ease), transform var(--app-motion-layout) var(--app-motion-ease);
}

.workspace:not(.mobile-workspace) .channel-nav {
  width: 17rem;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.workspace:not(.mobile-workspace) .channel-nav .section-title {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

.channels-collapsed .channel-navigation-shell {
  visibility: hidden;
  pointer-events: none;
  transition-delay: var(--app-motion-layout);
}

.channels-collapsed .channel-nav {
  opacity: 0;
  transform: translateX(-1rem);
}

@media (prefers-reduced-motion: reduce) {
  .workspace-layout,
  .channel-navigation-shell,
  .channel-nav {
    transition: none;
  }
}

@keyframes app-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes app-surface-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  :where(button, a, input, select, textarea, .avatar, .channel-card) {
    transition:
      background-color var(--app-motion-fast) var(--app-motion-ease),
      border-color var(--app-motion-fast) var(--app-motion-ease),
      color var(--app-motion-fast) var(--app-motion-ease),
      box-shadow var(--app-motion-fast) var(--app-motion-ease);
  }

  .dialog-backdrop,
  .translation-error-backdrop,
  .active-channel,
  .chat-panel:not([hidden]),
  .chat-tab-panel:not([hidden]),
  .mobile-workspace.mobile-pane-channels .channel-nav,
  .mobile-workspace.mobile-pane-participants .participants,
  .channel-settings-tab-panel:not([hidden]) {
    animation: app-fade-in var(--app-motion-normal) var(--app-motion-ease);
  }

  .dialog,
  .translation-error-dialog,
  .settings-popover,
  .shared-channel-settings-popover,
  .login-language-options,
  .camera-tile-action-menu:popover-open,
  .invitation,
  .status-message {
    animation: app-surface-in var(--app-motion-normal) var(--app-motion-ease);
  }
}

.channel-navigation-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.section-title,
.channel-header,
.dialog-header,
.invitation,
.invitation > div,
.voice-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-title h2,
.section-title h3,
.participants h3 {
  margin: 0;
  font-size: 1rem;
}

.section-title span,
.message span,
.message time,
.participants small,
.channel-link small {
  color: var(--colorFeedbackForegroundDefault);
  font-size: 0.85rem;
}

.channel-nav .section-title {
  margin-bottom: 0.75rem;
}

.direct-button {
  margin-left: auto;
  background: transparent;
}

.direct-button:hover:not(:disabled) {
  background: transparent;
}

:root[data-theme="dark"] .direct-button .icon-action {
  filter: brightness(0) invert(1);
}

.channel-link {
  display: grid;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem;
  border-color: transparent;
  background: transparent;
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
  text-align: left;
}

.channel-card {
  --channel-card-settings-top: calc(0.65rem + 1px + 0.75rem);
  position: relative;
  margin-top: 0.25rem;
}

.channel-card .channel-link {
  margin-top: 0;
  padding-right: 3rem;
}

.channel-card .channel-card-settings {
  position: absolute;
  top: var(--channel-card-settings-top);
  right: 0.4rem;
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem;
  transform: translateY(-50%);
  border-color: transparent;
  background: transparent;
}

.channel-card .channel-card-settings:hover:not(:disabled) {
  border-color: var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
}

:root[data-theme="dark"] .channel-card-settings .icon-action {
  filter: brightness(0) invert(1);
}

.channel-link-name > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-link-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  line-height: 1.5rem;
}

.channel-link-indicators {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.channel-mode-icon {
  width: 1rem;
  height: 1rem;
}

.channel-mode-indicator {
  display: inline-flex;
  align-items: center;
  min-width: 2rem;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.channel-mode-indicator-idle {
  opacity: 0.35;
  filter: grayscale(1);
}

.unread-badge {
  display: inline-grid;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 50%;
  place-items: center;
  background: var(--app-action-background);
  color: var(--app-action-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.channel-link:hover,
.channel-link.selected {
  border-color: var(--app-selection-border);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
}

.active-channel {
  display: grid;
  gap: 1.25rem;
  height: 100%;
  min-height: 0;
  padding: 1.25rem;
  grid-template-rows: auto minmax(0, 1fr);
}

.active-channel-content {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  align-items: stretch;
  gap: 1.25rem;
  min-width: 0;
  min-height: 0;
}

.active-channel-content.direct-channel-content {
  grid-template-columns: minmax(0, 1fr);
}

.active-channel-content.private-call-content {
  grid-template-columns: minmax(12rem, 16rem) minmax(18rem, 1.4fr) minmax(18rem, 1fr);
}

.active-channel-content.direct-channel-content.private-call-content {
  grid-template-columns: minmax(18rem, 1.4fr) minmax(18rem, 1fr);
}

.active-channel-content.participants-collapsed {
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
}

.active-channel-content.private-call-content.participants-collapsed {
  grid-template-columns: 2rem minmax(18rem, 1.4fr) minmax(18rem, 1fr);
}

.call-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.video-session-notice { display: grid; place-items: center; min-width: 0; padding: 1.5rem; text-align: center; }
.video-session-notice p { margin: 0 0 1rem; font-size: 1rem; color: var(--colorFeedbackForegroundDefault); }
.video-session-notice button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.workspace:not(.mobile-workspace) .active-channel-content.video-session-idle { grid-template-rows: auto minmax(0, 1fr); }
.workspace:not(.mobile-workspace) .video-session-idle > .participants { grid-column: 1; grid-row: 1 / -1; }
.workspace:not(.mobile-workspace) .video-session-idle > .video-session-notice { grid-column: 2; grid-row: 1; padding: 0; }
.workspace:not(.mobile-workspace) .video-session-idle > .video-session-notice > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.workspace:not(.mobile-workspace) .video-session-idle > .video-session-notice p { margin: 0; }
.workspace:not(.mobile-workspace) .video-session-idle > .chat-panel { grid-column: 2; grid-row: 2; }
.workspace:not(.mobile-workspace) .video-session-idle > .chat-panel[data-half-height="true"] { height: 100%; align-self: stretch; }
.mobile-workspace.mobile-pane-chat .video-session-notice { display: none; }
.mobile-workspace .active-channel-content:has(.video-session-notice) { grid-template-rows: auto minmax(0, 1fr); }
.mobile-workspace .video-session-notice { grid-row: 1; padding: 1rem 0; }
.mobile-workspace.mobile-pane-chat .active-channel-content:has(.video-session-notice) { grid-template-rows: minmax(0, 1fr); }

.call-panel-header[hidden] { display: none; }

.call-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

:is(.call-panel:fullscreen, .call-panel-popout) {
  width: 100vw;
  height: 100vh;
  padding: 0.75rem;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

:is(.call-panel:fullscreen, .call-panel-popout) .camera-grid {
  overflow: visible;
}

:is(.call-panel:fullscreen, .call-panel-popout) .camera-tile {
  width: calc(100% * var(--camera-tile-scale, 1));
  max-width: 100%;
  height: calc(100% * var(--camera-tile-scale, 1));
  aspect-ratio: 16 / 9;
}

:is(.call-panel:fullscreen, .call-panel-popout) .camera-tile video {
  object-fit: contain;
}

.media-control-error {
  max-width: 22rem;
  color: var(--colorFeedbackForegroundNegative);
  text-align: right;
}

.camera-grid-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  gap: 0.75rem;
}

.camera-grid-viewport {
  column-gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.camera-grid-viewport::after {
  content: "";
  display: block;
  width: 1px;
  height: var(--camera-content-height, 0px);
}

.camera-thumbnails {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  overscroll-behavior: contain;
  height: 6rem;
}

.camera-thumbnails[hidden] {
  display: none;
}

.camera-grid-packed > .camera-tile[hidden] { display: none; }
.camera-inactive-summary { display: inline-flex; align-items: center; align-self: flex-end; flex: 0 0 auto; gap: 0.375rem; min-height: 2.75rem; padding: 0.25rem 0.625rem; }

.camera-thumbnails::after {
  content: "";
  display: block;
  flex: 0 0 var(--thumbnail-content-width, 0px);
}

.camera-grid:not([data-compact-video]) > .camera-thumbnails { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.camera-grid:not([data-compact-video]) > .camera-thumbnails::after { height: var(--thumbnail-content-height, 0px); }
.camera-grid:not([data-compact-video]) > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder { padding: 0.125rem 1.5rem 1.125rem 0.25rem; gap: 0; }
.camera-grid:not([data-compact-video]) > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder .avatar { width: 1.125rem; height: 1.125rem; font-size: 0.625rem; }
.camera-grid:not([data-compact-video]) > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder > :last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camera-grid:not([data-compact-video]) > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) > strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.camera-tile-inactive:not(:fullscreen) {
  overflow: hidden;
}

.camera-tile-inactive .camera-tile-size {
  display: none;
}

.camera-tile-inactive .camera-placeholder {
  gap: 0.15rem;
  padding: 0.25rem 1.75rem 1.5rem 0.25rem;
  font-size: 0.7rem;
  text-align: center;
}

.camera-tile-inactive .camera-placeholder .avatar {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
}

.camera-grid[data-compact-video] > .camera-thumbnails { height: calc(var(--camera-thumbnail-height, 1.75rem) + 0.375rem); }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) { border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: default; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.875rem 0 0;
  overflow: hidden;
  text-align: left;
}
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder .avatar { display: none; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-placeholder > :last-child { width: 100%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 0.875rem; text-align: left; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) > strong { top: 0; bottom: auto; left: 0; padding: 0; background: none; line-height: 0.875rem; text-shadow: none; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-tile-controls { top: 0; right: 0; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]) .camera-tile-controls > .icon-button { flex-basis: 2.75rem; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; }
.camera-grid[data-compact-video] > .camera-tile-inactive:not(:fullscreen):not([data-video-expanded="true"]):has(> .camera-tile-controls:not(:empty)) .camera-placeholder { padding-right: 3.25rem; }

.camera-grid {
  display: grid;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.camera-grid-1,
.camera-grid-2,
.camera-grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

.camera-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.camera-grid.camera-grid-packed {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.camera-grid-area.camera-grid {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.camera-grid.camera-grid-packed::after {
  content: none;
}

.camera-grid.camera-grid-packed .camera-tile:not(:fullscreen) {
  position: absolute;
  left: var(--camera-layout-left);
  top: var(--camera-layout-top);
  width: var(--camera-layout-width);
  height: var(--camera-layout-height);
  max-height: none;
  margin: 0;
}

.camera-tile {
  position: relative;
  container-type: inline-size;
  width: calc(100% * var(--camera-tile-scale, 1));
  max-height: 100%;
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--app-control-border);
  border-radius: 0.5rem;
  background: var(--colorFeedbackBackgroundLowEmphasis);
}

.camera-grid-1 .camera-tile,
.camera-grid-2 .camera-tile,
.camera-grid-3 .camera-tile {
  width: min(calc(100% * var(--camera-tile-scale, 1)), calc(48rem * var(--camera-tile-scale, 1)));
}

.camera-tile:fullscreen,
.call-panel:fullscreen .camera-tile:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: black;
  clip-path: none !important;
}

.camera-tile:fullscreen video {
  object-fit: contain;
}

.camera-tile:fullscreen .camera-tile-size {
  display: none;
}

.camera-tile-drag-handle {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  z-index: 3;
  cursor: grab;
  background: rgb(0 0 0 / 38%);
  border-color: rgb(255 255 255 / 28%);
}
.camera-tile-drag-handle:active { cursor: grabbing; }
.camera-tile-drag-handle:hover, .camera-tile-drag-handle:focus-visible { background: rgb(0 0 0 / 65%); }
.camera-tile-drag-handle .icon { filter: brightness(0) invert(1); }
.camera-tile:has(> .camera-tile-drag-handle) > strong { max-width: calc(100% - 3.5rem); }
.camera-tile[data-video-dragging="true"] { opacity: 0.5; }
.camera-tile[data-video-drop-target="true"] { outline: 3px solid var(--colorFeedbackForegroundDefault); outline-offset: -3px; }
.camera-tile[data-local-screen-share="true"] { border-color: #ef4444; outline: 2px solid #ef4444; outline-offset: -2px; }
.camera-tile:fullscreen .camera-tile-drag-handle { display: none; }

.call-panel[data-expanded-tile] .call-panel-header,
.call-panel[data-expanded-tile] .camera-grid > :not([data-video-expanded="true"]) {
  display: none;
}

.call-panel .camera-grid.camera-grid-packed .camera-tile[data-video-expanded="true"] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: black;
  clip-path: none !important;
  transform: none;
  z-index: 40;
  overflow: hidden;
}

.camera-tile-action-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0.5rem;
  max-width: calc(100vw - 1rem);
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  color: var(--colorNeutralForegroundDefault);
}
.camera-tile-action-menu:popover-open { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.camera-tile .camera-tile-action-menu .icon-button,
.camera-tile[data-touch-controls] .camera-tile-controls > .icon-button { flex: 0 0 2.75rem; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; padding: 0.5rem; }
.camera-tile .camera-tile-action-menu .icon,
.camera-tile[data-touch-controls] .camera-tile-controls > .icon-button .icon { width: 1.5rem; height: 1.5rem; }
.camera-tile[data-touch-controls] .camera-tile-controls { width: auto; max-width: calc(100% - 0.5rem); max-height: none; flex-direction: row; flex-wrap: nowrap; overflow: visible; }
.camera-tile[data-touch-controls]:not([data-video-expanded="true"]) > strong { right: 2.75rem; max-width: calc(100% - 3rem); }
.camera-tile[data-touch-controls]:not([data-video-expanded="true"]):has(> .camera-tile-controls:empty) > strong { right: 0.5rem; max-width: calc(100% - 1rem); }
.call-panel .camera-grid.camera-grid-packed .camera-tile[data-video-expanded="true"] { height: 100dvh; }
.camera-tile[data-video-expanded="true"] .camera-tile-controls { top: max(0.5rem, env(safe-area-inset-top)); right: max(0.5rem, env(safe-area-inset-right)); }
.camera-tile[data-video-expanded="true"] > strong { bottom: max(0.5rem, env(safe-area-inset-bottom)); left: max(0.5rem, env(safe-area-inset-left)); }

@media (max-width: 680px), (any-pointer: coarse) {
  .icon-button.compact-icon-button { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; padding: 0.5rem; }
  button, select, input:not([type="checkbox"]):not([type="radio"]), .quiet-button, .mobile-workspace-tabs > button { min-height: 2.75rem; }
  input[type="checkbox"], input[type="radio"] { min-width: 1.25rem; min-height: 1.25rem; margin: 0.75rem; }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 2.75rem; }
}

.camera-tile[data-video-expanded="true"] video {
  object-fit: contain;
}

.camera-tile[data-video-expanded="true"] .camera-tile-size {
  display: none;
}

.camera-tile video,
.camera-placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.camera-tile video {
  display: block;
  object-fit: cover;
}

.camera-tile[data-media-fit="contain"] video { object-fit: contain; background: #000; }

.camera-placeholder {
  display: grid;
  overflow: hidden;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  color: var(--colorFeedbackForegroundLowEmphasis);
}

.camera-placeholder .avatar {
  width: clamp(1.25rem, calc(3.5rem * var(--camera-tile-scale, 1)), 3.5rem);
  height: clamp(1.25rem, calc(3.5rem * var(--camera-tile-scale, 1)), 3.5rem);
  font-size: clamp(0.75rem, calc(1.1rem * var(--camera-tile-scale, 1)), 1.1rem);
}

.camera-tile-controls {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: calc(100% - 4.75rem);
  gap: 0.35rem;
}

.camera-tile-size {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  z-index: 1;
  width: 4rem;
  max-width: calc(100% - 0.5rem);
  min-width: 0;
  min-height: 0;
  height: 1.5rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 4px;
  background: rgb(0 0 0 / 38%);
  color: white;
  font-size: 0.75rem;
}

.camera-tile-size option {
  background: #365860;
  color: white;
}

.camera-tile:not(:fullscreen) {
  overflow: visible;
}

.camera-tile-controls .icon-button {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(0 0 0 / 38%);
}

.camera-tile-controls .icon-button:hover:not(:disabled),
.camera-tile-controls .icon-button:focus-visible,
.camera-tile-size:hover:not(:disabled),
.camera-tile-size:focus-visible {
  border-color: rgb(255 255 255 / 50%);
  background: rgb(0 0 0 / 65%);
}

@container (max-width: 10rem) {
  .camera-tile-size { width: min(4rem, calc(100% - 2rem)); height: 1.25rem; }
  .camera-tile-drag-handle { width: 1.25rem; min-width: 1.25rem; height: 1.25rem; min-height: 1.25rem; padding: 2px; }
  .camera-tile-drag-handle .icon { width: 0.875rem; height: 0.875rem; }
  .camera-tile:has(> .camera-tile-drag-handle) .camera-tile-controls { max-height: calc(100% - 2rem); }
  .camera-tile-controls { width: 1.25rem; max-width: none; max-height: calc(100% - 0.5rem); flex-wrap: nowrap; flex-direction: column; justify-content: flex-start; gap: 2px; overflow: auto; }
  .camera-tile-controls .icon-button { flex: 0 0 1.25rem; width: 1.25rem; min-width: 1.25rem; height: 1.25rem; min-height: 1.25rem; padding: 2px; }
  .camera-tile-controls .icon { width: 0.875rem; height: 0.875rem; }
  .camera-tile[data-video-size] > strong { right: 2rem; bottom: 0.25rem; font-size: 0.75rem; }
}

.camera-tile[data-touch-controls] .camera-tile-controls > :is(.camera-tile-actions-toggle, .camera-tile-audio-toggle, .camera-tile-map-select) {
  flex-basis: 2rem;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0.35rem;
  border-color: rgb(255 255 255 / 28%);
  background: rgb(0 0 0 / 38%);
}
.camera-tile[data-touch-controls] .camera-tile-controls > :is(.camera-tile-actions-toggle, .camera-tile-audio-toggle, .camera-tile-map-select) .icon { width: 1.125rem; height: 1.125rem; filter: brightness(0) invert(1); }
.camera-tile[data-touch-controls] .camera-tile-controls > :is(.camera-tile-actions-toggle, .camera-tile-audio-toggle, .camera-tile-map-select):hover:not(:disabled),
.camera-tile[data-touch-controls] .camera-tile-controls > :is(.camera-tile-actions-toggle, .camera-tile-audio-toggle, .camera-tile-map-select):focus-visible,
.camera-tile[data-touch-controls] .camera-tile-controls > .camera-tile-actions-toggle[aria-expanded="true"],
.camera-tile[data-touch-controls] .camera-tile-controls > .camera-tile-audio-toggle[aria-pressed="true"] { border-color: rgb(255 255 255 / 50%); background: rgb(0 0 0 / 65%); }

.video-popout-error {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(16rem, 65vw);
  padding: 0.5rem;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
  font-size: 0.875rem;
}

.call-panel-header .icon-button {
  border-color: #638e99;
  background: #365860;
}

.call-panel-header .icon-button:hover:not(:disabled) {
  border-color: #79a9b5;
  background: #416a74;
}

:root[data-theme="dark"] .call-panel-header .icon-action {
  filter: brightness(0) invert(1);
}

.camera-tile-controls .icon-button:not(.moderation-active) .icon-action {
  filter: brightness(0) invert(1);
}

.camera-tile > strong {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px black;
  white-space: nowrap;
}

.video-call-toolbar {
  position: relative;
  display: grid;
  flex: 1 1 30rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-width: min(30rem, 55vw);
}

.video-call-media-controls,
.video-call-secondary-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-call-media-controls {
  grid-column: 2;
  justify-self: center;
}

.video-call-secondary-controls {
  grid-column: 3;
  justify-self: end;
}

.video-call-session-controls { display: contents; }

.media-toggle-button,
.channel-header-actions .media-toggle-button {
  width: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.65rem;
  border-radius: 50%;
}

.video-call-toolbar-separator {
  width: 1px;
  height: 2rem;
  margin: 0 0.25rem;
  background: var(--colorFeedbackBackgroundHighEmphasis);
}

.video-control-error {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: min(24rem, 100%);
  padding: 0.5rem;
  transform: translateX(-50%);
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  color: var(--colorFeedbackForegroundNegative);
  text-align: center;
}

.channel-header {
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--colorFeedbackBackgroundLowEmphasis);
}

.channel-header.video-call-toast-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem) minmax(0, 1fr);
}

.channel-header-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1.25rem;
}

.voice-controls-stack {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.voice-status {
  position: absolute;
  top: -0.5rem;
  right: 0;
  color: var(--colorFeedbackForegroundDefault);
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.channel-header-actions .icon-button:not(.join-button):not(.filled-icon-button),
.channel-header-actions .icon-button:not(.join-button):not(.filled-icon-button):hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
}

.channel-header-actions .filled-icon-button {
  border-color: #638e99;
  background: #365860;
}

.channel-header-actions .filled-icon-button:hover:not(:disabled) {
  border-color: #79a9b5;
  background: #416a74;
}

:root[data-theme="dark"] .channel-header-actions .icon-button:not(.join-button):not(.microphone-disabled):not(.microphone-unavailable):not(.camera-disabled) .icon-action {
  filter: brightness(0) invert(1);
}

.channel-header-actions .microphone-disabled .icon-action,
.channel-header-actions .microphone-unavailable .icon-action,
.channel-header-actions .camera-disabled .icon-action {
  filter: brightness(0) saturate(100%) invert(21%) sepia(93%) saturate(3241%) hue-rotate(349deg) brightness(88%) contrast(91%);
}

.shared-channel-settings {
  position: relative;
}

.shared-channel-settings-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  width: max-content;
  max-width: min(26rem, calc(100vw - 2rem));
  max-height: var(--settings-available-height, calc(100dvh - 8rem));
  overflow-y: auto;
  gap: 0.75rem;
  padding: 3rem 1rem 1rem;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-radius: 6px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  box-shadow: var(--sizingCustomShadowsElevationDropOverlayX) var(--sizingCustomShadowsElevationDropOverlayY) var(--sizingCustomShadowsElevationDropOverlayBlur) var(--sizingCustomShadowsElevationDropOverlaySpread) var(--colorShadowsLowEmphasis);
}

.settings-popover-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.shared-channel-settings-popover label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shared-channel-settings-popover input {
  min-height: auto;
}

.settings-clear-chat {
  border-color: #ef8787;
  background: #ae3034;
  color: #fff;
}

.settings-clear-chat:hover:not(:disabled) {
  border-color: #ffc1c1;
  background: #d14449;
}

.destructive-button {
  border-color: #ef8787;
  background: #ae3034;
  color: #fff;
}

.destructive-button:hover:not(:disabled) {
  border-color: #ffc1c1;
  background: #d14449;
}

.channel-subtitle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.channel-header .eyebrow {
  margin: 0;
}

.channel-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.channel-mode-label {
  flex: 0 0 auto;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorFeedbackBackgroundLowEmphasis);
  color: var(--colorFeedbackForegroundXxHighEmphasis);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.channel-mode-label-video {
  border-color: var(--app-action-border);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
  color: var(--colorFeedbackForegroundAccentXHighEmphasis);
}

.voice-controls {
  justify-content: flex-end;
}

.listener-notice {
  padding: 0.5rem 0.75rem;
  background: var(--colorFeedbackBackgroundLowEmphasis);
  color: var(--colorFeedbackForegroundXxHighEmphasis);
  font-size: 0.9rem;
  font-weight: 700;
}

.direct-peer-channel-status {
  margin: 0.35rem 0 0 2.85rem;
  color: var(--colorFeedbackForegroundLowEmphasis);
  font-size: 0.875rem;
  line-height: 1.3;
}

.media-restriction-notice {
  margin: 0.35rem 0 0;
  color: var(--colorFeedbackForegroundDangerXHighEmphasis);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.direct-peer-offline {
  color: var(--colorFeedbackForegroundLowEmphasis);
}

.message-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.participants .participants-list {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 0;
  min-height: 0;
  margin: 0.75rem 0 0;
  padding: 0 0.75rem 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-gutter: stable;
}

.participants {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.participants-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.participants-collapse-button {
  flex: 0 0 auto;
  width: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0.25rem;
}

.participants.participants-collapsed {
  align-items: center;
}

.participants.participants-collapsed .participants-heading-row h3,
.participants.participants-collapsed .participants-list {
  display: none;
}

.participants li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--colorFeedbackBackgroundLowEmphasis);
}

.participants li.participant-offline .participant-info {
  color: var(--colorFeedbackForegroundLowEmphasis);
}

.participants .participant-info {
  display: grid;
  gap: 0.1rem;
  min-width: 8rem;
}

.participant-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.camera-tile-controls .moderation-active {
  border-color: #638e99;
  background: rgb(0 0 0 / 38%);
}

.camera-tile-controls .moderator-overridden {
  border-color: #ef8787;
}

.camera-tile-controls .moderator-overridden:hover:not(:disabled) {
  border-color: #ffc1c1;
}

.camera-tile-controls .moderation-active .icon-action {
  filter: brightness(0) saturate(100%) invert(21%) sepia(93%) saturate(3241%) hue-rotate(349deg) brightness(88%) contrast(91%);
}

.presence-indicator {
  width: 0.65rem;
  height: 0.65rem;
  margin-left: auto;
  border: 1px solid var(--app-control-border);
  border-radius: 50%;
  background: var(--colorFeedbackBackgroundLowEmphasis);
}

.presence-indicator.online {
  border-color: #3b9a5a;
  background: #5fbe79;
}

.participants .permission {
  margin-left: auto;
}

.chat-panel {
  display: grid;
  container-type: inline-size;
  container-name: channel-tools;
  gap: 1rem;
  min-height: 0;
  padding: 1rem;
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.25rem;
  border-bottom: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
}

.chat-panel-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.25rem; }
.chat-panel-toolbar { display: flex; align-items: center; gap: 0.5rem; padding-block: 0.125rem; }
.chat-layout-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
  background: var(--colorFeedbackBackgroundLowEmphasis, transparent);
}
.chat-layout-switch .icon-button {
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border: var(--buttonTertiaryToggleBorderMainUnselectedEnabled, 1px solid transparent);
  border-radius: var(--buttonTertiaryToggleBorderRadiusMain, 2px);
  background: var(--buttonTertiaryToggleColorBackgroundMainUnselectedEnabled, transparent);
  color: var(--buttonTertiaryToggleColorForegroundUnselectedEnabled, var(--colorFeedbackForegroundDefault));
}
.chat-layout-switch button[aria-pressed="true"] {
  border: var(--buttonTertiaryToggleBorderMainSelectedEnabled, 1px solid var(--app-action-border));
  background: var(--buttonTertiaryToggleColorBackgroundMainSelectedEnabled, var(--app-action-background));
  color: var(--buttonTertiaryToggleColorForegroundSelectedEnabled, var(--app-action-foreground));
}
.chat-layout-switch button[aria-pressed="false"]:hover {
  border: var(--buttonTertiaryToggleBorderMainUnselectedHover, 1px solid var(--app-control-border));
  background: var(--buttonTertiaryToggleColorBackgroundMainUnselectedHover, var(--colorFeedbackBackgroundHighEmphasis));
  color: var(--buttonTertiaryToggleColorForegroundUnselectedHover, var(--colorFeedbackForegroundDefault));
}
.chat-layout-switch button[aria-pressed="true"]:hover {
  border: var(--buttonTertiaryToggleBorderMainSelectedHover, 1px solid var(--app-action-border));
  background: var(--buttonTertiaryToggleColorBackgroundMainSelectedHover, var(--app-action-background-hover));
  color: var(--buttonTertiaryToggleColorForegroundSelectedHover, var(--app-action-foreground));
}
.chat-layout-switch button:focus-visible {
  position: relative;
  z-index: 1;
  outline: var(--borderKFocus, 2px solid var(--app-focus-ring));
  outline-color: var(--colorOtherKFocus, var(--app-focus-ring));
  outline-offset: 2px;
}
.chat-layout-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  background-color: currentColor;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
.chat-tool-panels { display: grid; min-width: 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); gap: 0.75rem; overflow: hidden; }
.tools-grid[data-panel-count="1"] { grid-template-columns: minmax(0, 1fr); }
.tools-grid[data-panel-count="3"] .map-tab-panel { grid-column: 2; grid-row: 1 / span 2; }
.tools-grid > .chat-tab-panel { min-width: 0; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.5rem; border-top: 1px solid var(--colorFeedbackBackgroundHighEmphasis); }
.tools-grid > .chat-tab-panel.map-tab-panel, .tools-grid > .transcription-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tools-grid-title, .tools-grid-panel-title { margin: 0; padding: 0.375rem 0; font-size: 0.875rem; font-weight: 600; }
@container channel-tools (max-width: 640px) {
  .tools-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(18rem, 1fr); overflow-y: auto; }
  .tools-grid[data-panel-count="3"] .map-tab-panel { grid-column: auto; grid-row: auto; }
}
.mobile-workspace .chat-panel-actions { display: none; }
.chat-panel-height-toggle { display: none; }
.workspace:not(.mobile-workspace) .chat-panel-height-toggle { display: inline-flex; }
.workspace:not(.mobile-workspace) .chat-panel[data-half-height="true"] { height: 50%; align-self: end; }
.workspace:not(.mobile-workspace) .private-call-content:has(> .chat-panel[data-half-height="true"]) > .participants { grid-column: 1; grid-row: 1; }
.workspace:not(.mobile-workspace) .private-call-content:has(> .chat-panel[data-half-height="true"]) > .call-panel { grid-column: 2 / -1; grid-row: 1; }
.workspace:not(.mobile-workspace) .private-call-content:has(> .chat-panel[data-half-height="true"]) > .chat-panel { grid-column: 3; grid-row: 1; z-index: 3; }
.workspace:not(.mobile-workspace) .direct-channel-content.private-call-content:has(> .chat-panel[data-half-height="true"]) > .call-panel { grid-column: 1 / -1; }
.workspace:not(.mobile-workspace) .direct-channel-content.private-call-content:has(> .chat-panel[data-half-height="true"]) > .chat-panel { grid-column: 2; }

.chat-tabs {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0.25rem;
}

.chat-tab-panel.map-tab-panel {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.channel-panel-popout-error {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.channel-panel-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  height: 100dvh;
  min-width: 0;
  padding: 1rem;
  overflow: hidden;
}

.channel-panel-window-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.channel-panel-window-header img {
  width: 2rem;
  height: 2rem;
}

.channel-panel-window-header h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.channel-panel-window-header [role="status"] {
  flex-basis: 100%;
}

.channel-panel-window .message-list {
  align-content: start;
  grid-auto-rows: max-content;
}

.screen-share-viewer-session {
  display: grid;
  min-height: 0;
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.screen-share-viewer-status {
  padding: 0.5rem;
}

.chat-clear-button {
  margin-left: auto;
}

.chat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--colorFeedbackForegroundDefault);
}

.chat-tab:hover:not(:disabled),
.chat-tab.selected {
  border-color: var(--app-selection-border);
  background: transparent;
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
}

.chat-tab-unread,
.mobile-chat-unread {
  flex: 0 0 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--app-action-background);
}

.mobile-chat-unread { display: inline-block; margin-left: 0.4rem; vertical-align: middle; }

.chat-scope {
  color: var(--colorFeedbackForegroundDefault);
  font-size: 0.85rem;
}

.chat-tab-panel {
  display: grid;
  gap: 0.75rem;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.message-list {
  min-height: 0;
  overflow-y: auto;
}

.message {
  padding: 0.75rem;
  background: var(--colorFeedbackBackgroundXxLowEmphasis);
}

.current-message {
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
}

.message > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message time {
  margin-left: auto;
}

.message-edited {
  font-style: italic;
}

.message p,
.message-content {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.message-content > :first-child {
  margin-top: 0;
}

.message-content > :last-child {
  margin-bottom: 0;
}

.message-content ul,
.message-content ol {
  margin: 0.35rem 0;
  padding-left: 1.5rem;
}

.message-content code {
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
  background: var(--colorFeedbackBackgroundLowEmphasis);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.message-video-player {
  display: block;
  width: min(100%, 40rem);
  max-height: 24rem;
  margin-top: 0.5rem;
  background: #111;
}

.message-attachments,
.attachment-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.message-attachments {
  margin-top: 0.5rem;
}

.message-attachment {
  position: relative;
  display: flex;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-radius: 4px;
  background: var(--colorFeedbackBackgroundXxLowEmphasis);
}

.image-attachment {
  width: 8rem;
  height: 5.5rem;
  overflow: hidden;
}

.message-attachment .attachment-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.attachment-image-link > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-attachment {
  width: min(100%, 18rem);
  min-height: 4rem;
  align-items: center;
  padding: 0.5rem 4.75rem 0.5rem 0.65rem;
}

.attachment-file-details {
  display: grid;
  min-width: 0;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
}

.attachment-file-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-file-details small {
  grid-column: 2;
  color: var(--colorFeedbackForegroundDefault);
}

.attachment-file-icon {
  grid-row: 1 / 3;
}

.attachment-controls {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: flex;
  gap: 0.25rem;
}

.attachment-controls .icon-button {
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

.attachment-download-button,
.attachment-delete-button {
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
}

:root[data-theme="dark"] .attachment-download-button .icon-action,
:root[data-theme="dark"] .attachment-delete-button .icon-action {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .attachment-file-icon {
  filter: brightness(0) invert(1);
}

.message-edit-button {
  margin-left: 0.25rem;
}

.message-editor {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
}

.message-editor textarea {
  min-height: 2.25rem;
  max-height: 8rem;
  resize: vertical;
}

.message-editor-actions {
  display: grid;
  grid-template-columns: repeat(3, 2rem);
  gap: 0.35rem;
}

.message-editor-attachments {
  grid-column: 1 / -1;
}

.empty-state {
  padding: 1rem;
  color: var(--colorFeedbackForegroundDefault);
  text-align: center;
}

.chat-composer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  margin: 0;
}

.chat-composer.attachment-dragging {
  outline: 2px dashed var(--app-selection-border);
  outline-offset: 0.25rem;
}

.attachment-previews,
.attachment-error {
  grid-column: 1 / -1;
}

.chat-composer textarea {
  min-height: 2.75rem;
  max-height: 8rem;
  margin: 0.25rem 0;
  resize: vertical;
}

.chat-composer .composer-action {
  align-self: end;
  margin: 0.25rem 0;
}

.chat-composer .attachment-action,
.chat-composer .attachment-action:disabled {
  background: transparent;
}

:root[data-theme="dark"] .chat-composer .attachment-action .icon-action {
  filter: brightness(0) invert(1);
}

.status-message,
.invitation-stack {
  margin-top: 1rem;
}

.status-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--colorFeedbackBackgroundAccentHighEmphasis);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
}

.status-message button {
  flex: 0 0 auto;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
}

.toast-message {
  margin-top: 1rem;
}

.video-call-toast {
  width: 100%;
  margin: 0;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-left: 4px solid var(--colorFeedbackBackgroundAccentHighEmphasis);
  border-radius: 6px;
  box-shadow: var(--sizingCustomShadowsElevationDropOverlayX) var(--sizingCustomShadowsElevationDropOverlayY) var(--sizingCustomShadowsElevationDropOverlayBlur) var(--sizingCustomShadowsElevationDropOverlaySpread) var(--colorShadowsHighEmphasis);
}

.mobile-workspace .video-call-toast {
  width: 100%;
}

.invitation-stack {
  display: grid;
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 24rem);
  gap: 0.75rem;
  margin: 0;
}

.workspace > .invitation-stack {
  width: min(calc(100% - 2rem), 18rem);
}

.invitation {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  border-radius: 6px;
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
  box-shadow: var(--sizingCustomShadowsElevationDropOverlayX) var(--sizingCustomShadowsElevationDropOverlayY) var(--sizingCustomShadowsElevationDropOverlayBlur) var(--sizingCustomShadowsElevationDropOverlaySpread) var(--colorShadowsHighEmphasis);
}

.invitation p {
  margin: 0;
  font-size: 1rem;
}

.invitation > .invitation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.invitation-reason {
  margin: 0;
}

.invitation-reason textarea {
  width: 100%;
  min-height: 4rem;
  resize: vertical;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  padding: 1rem;
  background: rgb(3 10 13 / 45%);
}

.dialog {
  width: min(100%, 34rem);
  padding: 1.25rem;
  box-shadow: var(--sizingCustomShadowsElevationDropOverlayX) var(--sizingCustomShadowsElevationDropOverlayY) var(--sizingCustomShadowsElevationDropOverlayBlur) var(--sizingCustomShadowsElevationDropOverlaySpread) var(--colorShadowsHighEmphasis);
}

.dialog form {
  margin-top: 1rem;
}

.confirmation-dialog {
  width: min(100%, 28rem);
}

.dialog-description {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dialog-actions button {
  min-width: 7.5rem;
}

.dialog-close-button,
.dialog-close-button:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
}

:root[data-theme="dark"] .dialog-close-button .icon-action {
  filter: brightness(0) invert(1);
}

.user-management-dialog {
  width: min(100%, 42rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.oidc-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--app-control-border);
}

.oidc-profile-details > div {
  min-width: 0;
}

.oidc-profile-details dt {
  color: var(--colorFeedbackForegroundLowEmphasis);
  font-size: 0.8rem;
}

.oidc-profile-details dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.user-management-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.user-management-list .icon-button,
.user-management-list .icon-button:hover:not(:disabled) {
  border-color: transparent;
  background: transparent;
}

:root[data-theme="dark"] .user-management-list .icon-action {
  filter: brightness(0) invert(1);
}

.user-management-list {
  display: grid;
  gap: 0.5rem;
  max-height: min(60dvh, 36rem);
  margin: 1rem 0 0;
  padding: 0 0.25rem 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  list-style: none;
}

.user-management-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--app-control-border);
  border-radius: 4px;
}

.user-management-list li > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.user-management-list span {
  color: var(--colorFeedbackForegroundDefault);
  font-size: 0.875rem;
}

fieldset {
  display: grid;
  gap: 0.5rem;
  border: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
}

.member-list-toggle {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
}

.member-list-toggle small {
  color: var(--colorFeedbackForegroundDefault);
  font-weight: 500;
}

:root[data-theme="dark"] .member-list-toggle .icon-action {
  filter: brightness(0) invert(1);
}

.channel-member-fieldset {
  min-width: 0;
  padding: 0.5rem;
}

.channel-member-fieldset[hidden] {
  display: none;
}

.channel-member-list {
  display: grid;
  gap: 0.5rem;
  max-height: min(14rem, 35dvh);
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.member-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.member-option input {
  min-height: auto;
}

.member-option small {
  margin-left: auto;
  color: var(--colorFeedbackForegroundDefault);
}

.workspace-loading {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.workspace .direct-channel-settings-dialog .shared-channel-settings-popover {
  position: relative;
  inset: auto;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
}

.direct-channel-settings-dialog label:not(:has(input[type="checkbox"])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}

.direct-channel-settings-dialog select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.direct-channel-settings-dialog h2 {
  margin: 0;
  padding-right: 1rem;
  font-size: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-workspace > .app-header {
  display: flex;
  width: 100%;
  padding: calc(0.75rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) 0.75rem calc(1rem + env(safe-area-inset-left));
}

.mobile-workspace .header-actions {
  min-width: 0;
  justify-content: flex-end;
}

.mobile-workspace .header-actions > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-workspace > .status-message {
  width: auto;
  margin-right: calc(1rem + env(safe-area-inset-right));
  margin-left: calc(1rem + env(safe-area-inset-left));
}

.mobile-workspace .workspace-layout {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0.75rem calc(1rem + env(safe-area-inset-right)) 0.75rem calc(1rem + env(safe-area-inset-left));
  overflow: hidden;
}

.mobile-workspace .workspace-layout > :not(.channel-navigation-shell) {
  height: 100%;
  min-height: 0;
}

.mobile-workspace.mobile-pane-channels .workspace-layout > :not(.channel-navigation-shell),
.mobile-workspace:not(.mobile-pane-channels) .channel-navigation-shell,
.mobile-workspace.mobile-pane-chat .participants,
.mobile-workspace.mobile-pane-chat .call-panel,
.mobile-workspace.mobile-pane-participants .chat-panel,
.mobile-workspace.mobile-pane-participants .call-panel,
.mobile-workspace.mobile-pane-call .participants,
.mobile-workspace.mobile-pane-call .chat-panel {
  display: none;
}

.mobile-workspace .channel-navigation-shell {
  height: 100%;
  overflow-y: auto;
}

.mobile-workspace .channel-nav {
  display: block;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.mobile-workspace .channel-nav .section-title {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 0.25rem 0 0.75rem;
  background: var(--colorFeedbackBackgroundXxxLowEmphasis);
}

.mobile-workspace .channel-link {
  min-height: 3.5rem;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border-color: var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

.mobile-workspace .channel-card {
  --channel-card-settings-top: calc(0.75rem + 1px + 0.75rem);
  margin-top: 0.4rem;
}

.mobile-workspace .channel-card .channel-link {
  margin-top: 0;
  padding-right: 3rem;
}

.mobile-workspace .active-channel {
  gap: 0.75rem;
  padding: 0.75rem;
}

.mobile-workspace .channel-header {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
}

.mobile-workspace .channel-header > :first-child { min-width: 0; padding-right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px) + var(--channel-camera-space, 0px)); }
.mobile-workspace .channel-header:has(.channel-settings-button, .shared-channel-settings) { --channel-settings-space: 3.5rem; }
.mobile-workspace .channel-header:has(.video-call-session-controls, .voice-leave-button) { --channel-session-space: 3.5rem; }
.mobile-workspace .channel-header:has(.video-call-session-controls > .join-button) { --channel-session-space: 7rem; }
.mobile-workspace .channel-header:has(.video-call-toolbar, .voice-video-button) { --channel-camera-space: 3.5rem; }
.mobile-workspace .channel-header-actions,
.mobile-workspace .channel-header-actions > .shared-channel-settings { position: static; }
.mobile-workspace .channel-header-actions > .channel-settings-button,
.mobile-workspace .channel-header-actions > .shared-channel-settings > button { position: absolute; top: 0; right: 0; }
.mobile-workspace .channel-header-actions > .voice-controls-stack { position: relative; }
.mobile-workspace .channel-header-actions > .voice-controls-stack > .voice-status { top: -1.25rem; right: auto; left: 0; }
.mobile-workspace .channel-header-actions > .voice-controls-stack:has(.voice-leave-button) { position: static; }
.mobile-workspace .channel-header-actions > .voice-controls-stack:has(.voice-leave-button) > .voice-status { position: static; top: auto; right: auto; left: auto; }

.mobile-workspace .channel-header.video-call-toast-visible {
  grid-template-columns: minmax(0, 1fr);
}

.mobile-workspace .channel-header-actions,
.mobile-workspace .voice-controls {
  justify-content: flex-start;
}

.mobile-workspace .channel-header-actions:has(.video-call-toolbar) {
  width: 100%;
  padding-top: 0;
}

.mobile-workspace .video-call-toolbar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  flex-basis: 100%;
  gap: 1.5rem;
  min-width: 0;
}

.mobile-workspace .video-call-toolbar > span[aria-hidden="true"] { display: none; }
.mobile-workspace .video-call-media-controls,
.mobile-workspace .video-call-secondary-controls { flex-wrap: wrap; max-width: 100%; }
.mobile-workspace .video-call-session-controls,
.mobile-workspace .voice-leave-button {
  position: absolute;
  top: 0;
  right: var(--channel-settings-space, 0px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-workspace .video-call-session-controls > .video-call-toolbar-separator { display: none; }
.mobile-workspace .screen-share-button { display: none; }
.mobile-workspace .video-call-media-controls > .media-toggle-button:first-child,
.mobile-workspace .voice-video-button {
  position: absolute;
  top: 0;
  right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px));
}

@media (max-width: 480px) {
  .mobile-workspace .channel-header .channel-mode-label { display: none; }
}

.mobile-workspace .voice-controls > .media-toggle-button,
.mobile-workspace .video-call-media-controls > .media-toggle-button:nth-child(2) {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(4.25rem + env(safe-area-inset-bottom));
  z-index: 5;
  width: 6rem;
  min-width: 6rem;
  height: 6rem;
  min-height: 6rem;
  padding: 1.25rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgb(0 0 0 / 30%);
}
.mobile-workspace .voice-controls > .media-toggle-button .icon,
.mobile-workspace .video-call-media-controls > .media-toggle-button:nth-child(2) .icon { width: 3rem; height: 3rem; }
.mobile-workspace:not(.mobile-pane-chat) .active-channel:has(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) .active-channel-content { padding-bottom: 7rem; }
.mobile-workspace:has(.call-panel[data-expanded-tile]) .video-call-media-controls > .media-toggle-button:nth-child(2) { z-index: 41; }

body:has(.channel-settings-dialog, .shared-channel-settings-popover, .settings-popover) .mobile-workspace .voice-controls > .media-toggle-button,
body:has(.channel-settings-dialog, .shared-channel-settings-popover, .settings-popover) .mobile-workspace .video-call-media-controls > .media-toggle-button:nth-child(2) { display: none; }

.mobile-workspace .settings-popover {
  width: min(18rem, calc(100vw - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  min-width: 0;
  max-height: calc(100dvh - 6rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
}

.mobile-workspace .shared-channel-settings-popover {
  position: fixed;
  z-index: 20;
  top: calc(4.5rem + env(safe-area-inset-top));
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(4rem + env(safe-area-inset-bottom));
  left: calc(1rem + env(safe-area-inset-left));
  width: auto;
  max-width: none;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-workspace .shared-channel-settings-popover label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-workspace .dialog-backdrop {
  padding: calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
}

.mobile-workspace .dialog {
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
}

.mobile-workspace .channel-settings-dialog {
  height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: hidden;
}

.mobile-workspace .active-channel-content {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.mobile-workspace .participants-collapse-button {
  display: none;
}

.mobile-workspace .participants,
.mobile-workspace .chat-panel,
.mobile-workspace .call-panel {
  height: 100%;
}

.mobile-workspace .chat-panel {
  padding: 0.75rem;
}

.mobile-workspace .chat-tabs {
  overflow-x: auto;
}

.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) { height: var(--mobile-viewport-height, 100dvh); min-height: var(--mobile-viewport-height, 100dvh); }
.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) .workspace-layout {
  padding: 0.375rem calc(0.5rem + env(safe-area-inset-right)) 0.375rem calc(0.5rem + env(safe-area-inset-left));
}

.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) .active-channel { gap: 0.375rem; padding: 0.5rem; }
.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) > .app-header { padding-top: calc(0.25rem + env(safe-area-inset-top)); padding-bottom: 0.25rem; }
.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) .app-brand-emblem { width: 2rem; height: 2rem; }
.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) :is(.app-subtitle, .app-version) { display: none; }
.mobile-workspace.mobile-pane-chat .channel-subtitle-row { display: none; }
.mobile-workspace.mobile-pane-call .channel-header { gap: 0.375rem; padding-bottom: 0.375rem; }
.mobile-workspace.mobile-pane-chat .channel-header { gap: 0; min-height: 3.25rem; padding-bottom: 0.25rem; align-content: center; }
.mobile-workspace:is(.mobile-pane-chat, .mobile-pane-call) .channel-title-row h2 { min-width: 0; overflow: visible; overflow-wrap: anywhere; font-size: 1.125rem; text-overflow: clip; white-space: normal; }
.mobile-workspace.mobile-pane-chat .channel-header > :first-child { padding-right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px) + var(--channel-camera-space, 0px) + 3.5rem); }
.mobile-workspace.mobile-pane-chat :is(.channel-header-actions, .channel-header-actions > .voice-controls-stack, .voice-controls, .video-call-toolbar) { display: contents; }
.mobile-workspace.mobile-pane-chat .channel-header-actions > .voice-controls-stack > .voice-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mobile-workspace.mobile-pane-chat .channel-header:has(.voice-controls > .icon-button:not(.media-toggle-button):not(.voice-video-button):not(.voice-leave-button)) { --channel-session-space: 3.5rem; }
.mobile-workspace.mobile-pane-chat .voice-controls > .icon-button:not(.media-toggle-button):not(.voice-video-button):not(.voice-leave-button) { position: absolute; top: 0; right: var(--channel-settings-space, 0px); }
.mobile-workspace.mobile-pane-chat :is(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) {
  position: absolute;
  top: 0;
  right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px) + var(--channel-camera-space, 0px));
  bottom: auto;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0.75rem;
  box-shadow: none;
}
.mobile-workspace.mobile-pane-chat :is(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) .icon { width: 1.5rem; height: 1.5rem; }
.mobile-workspace.mobile-pane-chat .chat-panel { gap: 0.375rem; padding: 0; border: 0; }
.mobile-workspace .chat-tab-panel { gap: 0.375rem; min-width: 0; }
.mobile-workspace .message-list {
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0.375rem;
  margin: 0;
  padding: 0.25rem 0.25rem 0.5rem 0;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
}
.mobile-workspace .message { min-width: 0; padding: 0.5rem; overflow-wrap: anywhere; }
.mobile-workspace .chat-composer { gap: 0.375rem; min-width: 0; }
.mobile-workspace .chat-composer textarea { min-width: 0; min-height: 2.75rem; max-height: 6rem; margin: 0; font-size: 1rem; field-sizing: content; resize: none; }
.mobile-workspace .chat-composer .composer-action { min-width: 2.75rem; min-height: 2.75rem; margin: 0; }

:root[data-mobile-keyboard] .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) > .app-header,
:root[data-mobile-keyboard] .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .channel-header,
:root[data-mobile-keyboard] .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .chat-panel-heading { display: none; }
:root[data-mobile-keyboard] .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .chat-panel { grid-template-rows: minmax(0, 1fr); }

.mobile-workspace-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  padding: 0 calc(0.5rem + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(0.5rem + env(safe-area-inset-left));
  border-top: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
  background: var(--colorNeutralBackgroundSurfaceHighEmphasis);
}

.mobile-workspace-tabs .mobile-navigation-icon { display: none; }

.mobile-workspace-tabs button {
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.5rem;
  overflow: hidden;
  border: 0;
  border-top: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--colorFeedbackForegroundDefault);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-workspace-tabs button:hover:not(:disabled),
.mobile-workspace-tabs button.selected {
  border-color: var(--app-selection-border);
  background: var(--colorFeedbackBackgroundAccentXLowEmphasis);
  color: var(--colorFeedbackForegroundXxxHighEmphasis);
}

@media (orientation: landscape) and (max-height: 500px) {
  .mobile-workspace.mobile-pane-chat > .app-header { display: none; }

  .mobile-workspace {
    display: grid;
    height: var(--mobile-viewport-height, 100dvh);
    min-height: var(--mobile-viewport-height, 100dvh);
    grid-template-columns: calc(4.25rem + env(safe-area-inset-left)) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-workspace > .app-header {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    gap: 0.5rem;
    padding: 0.25rem calc(0.5rem + env(safe-area-inset-right)) 0.25rem 0.5rem;
  }
  .mobile-workspace .app-brand-emblem { width: 2rem; height: 2rem; }
  .mobile-workspace .app-brand-text h1 { font-size: 1rem; }
  .mobile-workspace .app-subtitle,
  .mobile-workspace .app-version,
  .mobile-workspace .header-actions > strong { display: none; }
  .mobile-workspace > .status-message { grid-column: 2; grid-row: 2; margin: 0; }

  .mobile-workspace .workspace-layout {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    padding: 0.375rem calc(0.5rem + env(safe-area-inset-right)) 0.375rem 0.5rem;
  }
  .mobile-workspace .active-channel { gap: 0.375rem; padding: 0.375rem; }
  .mobile-workspace .channel-header { gap: 0; min-height: 3.25rem; padding-bottom: 0.25rem; align-content: center; }
  .mobile-workspace .channel-header .channel-subtitle-row { display: none; }
  .mobile-workspace .channel-header > :first-child { padding-right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px) + var(--channel-camera-space, 0px) + 3.5rem); }
  .mobile-workspace .channel-title-row h2 { overflow: visible; overflow-wrap: anywhere; font-size: 1.125rem; text-overflow: clip; white-space: normal; }
  .mobile-workspace .channel-header-actions,
  .mobile-workspace .channel-header-actions > .voice-controls-stack,
  .mobile-workspace .voice-controls,
  .mobile-workspace .video-call-toolbar { display: contents; }
  .mobile-workspace .channel-header-actions > .voice-controls-stack > .voice-status,
  .mobile-workspace .channel-header-actions > .voice-controls-stack:has(.voice-leave-button) > .voice-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mobile-workspace .channel-header:has(.voice-controls > .icon-button:not(.media-toggle-button):not(.voice-video-button):not(.voice-leave-button)) { --channel-session-space: 3.5rem; }
  .mobile-workspace .voice-controls > .icon-button:not(.media-toggle-button):not(.voice-video-button):not(.voice-leave-button) { position: absolute; top: 0; right: var(--channel-settings-space, 0px); }
  .mobile-workspace .voice-controls > .media-toggle-button,
  .mobile-workspace .video-call-media-controls > .media-toggle-button:nth-child(2) {
    position: absolute;
    top: 0;
    right: calc(var(--channel-settings-space, 0px) + var(--channel-session-space, 0px) + var(--channel-camera-space, 0px));
    bottom: auto;
    width: 3rem;
    min-width: 3rem;
    height: 3rem;
    min-height: 3rem;
    padding: 0.75rem;
    box-shadow: none;
  }
  .mobile-workspace .voice-controls > .media-toggle-button .icon,
  .mobile-workspace .video-call-media-controls > .media-toggle-button:nth-child(2) .icon { width: 1.5rem; height: 1.5rem; }
  .mobile-workspace:not(.mobile-pane-chat) .active-channel:has(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) .active-channel-content { padding-bottom: 0; }
  .mobile-workspace .chat-panel { padding: 0.375rem; }

  .mobile-workspace-tabs {
    grid-column: 1;
    grid-row: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(3.25rem, max-content);
    align-content: start;
    padding: 0.25rem 0 0 calc(0.25rem + env(safe-area-inset-left));
    border-top: 0;
    border-right: 1px solid var(--colorFeedbackBackgroundHighEmphasis);
    overflow-y: auto;
  }
  .mobile-workspace-tabs button { position: relative; display: flex; align-items: center; justify-content: center; border-top: 0; border-left: 3px solid transparent; }
  .mobile-workspace-tabs .mobile-navigation-icon { display: block; width: 1.5rem; height: 1.5rem; }
  .mobile-workspace-tabs .mobile-navigation-label { display: none; }
  .mobile-workspace-tabs .mobile-chat-unread { position: absolute; top: 0.375rem; right: 0.625rem; margin-left: 0; }
  .mobile-workspace .camera-grid-area { gap: 0.25rem; }
  :root[data-theme="dark"] .mobile-workspace-tabs .icon-action { filter: brightness(0) invert(1); }
}

@media (orientation: landscape) {
  .mobile-workspace:has(.camera-tile[data-video-expanded="true"]) :is(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) {
    position: fixed;
    top: auto;
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 41;
    width: 6rem;
    min-width: 6rem;
    height: 6rem;
    min-height: 6rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgb(0 0 0 / 30%);
  }
  .mobile-workspace:has(.camera-tile[data-video-expanded="true"]) :is(.voice-controls > .media-toggle-button, .video-call-media-controls > .media-toggle-button:nth-child(2)) .icon { width: 3rem; height: 3rem; }
}

@media (orientation: landscape) and (max-height: 300px) {
  .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) > .app-header,
  .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .channel-header,
  .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .chat-panel-heading { display: none; }
  .mobile-workspace.mobile-pane-chat:has(.chat-composer textarea:focus) .chat-panel { grid-template-rows: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .auth-shell {
    padding: calc(3.5rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));
  }

  .auth-panel {
    width: min(100%, 23rem);
  }

  .auth-shell > .login-language-menu {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: calc(0.75rem + env(safe-area-inset-right));
  }

  .auth-emblem {
    width: clamp(7.5rem, 19vh, 10rem);
  }

  .auth-brand h1 {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .login-form {
    margin-top: 1rem;
    padding: 1rem;
  }

  .app-header {
    width: min(100% - 2rem, 70rem);
  }

  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-actions {
    justify-content: space-between;
  }

  .workspace > .app-header,
  .workspace-layout,
  .invitation-stack,
  .status-message {
    width: min(100% - 2rem, 82rem);
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .workspace-layout.channels-collapsed {
    grid-template-columns: 1fr;
  }

  .active-channel-content {
    grid-template-columns: 1fr;
  }

  .channel-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.25rem;
  }

  .channel-nav .section-title {
    grid-column: 1 / -1;
  }

  .channel-header,
  .invitation,
  .chat-composer {
    display: grid;
  }

  .voice-controls {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .participants li {
    flex-wrap: wrap;
  }

  .participants .permission {
    margin-left: 0;
  }
}

.lifecycle-management-dialog { display: flex; flex-direction: column; width: min(100%, 42rem); height: min(42rem, calc(100dvh - 2rem)); max-height: calc(100dvh - 2rem); overflow: hidden; }
.lifecycle-management-dialog > :not(.lifecycle-channel-list) { flex-shrink: 0; }
.lifecycle-management-dialog > label { margin-top: 1rem; }
.lifecycle-channel-list { display: grid; flex: 1; align-content: start; gap: 0; min-height: 0; overflow-y: auto; list-style: none; margin: 1rem 0 0; padding: 0; }
.lifecycle-channel-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--app-control-border); }
.lifecycle-channel-info { display: grid; gap: 0.25rem; min-width: 0; overflow-wrap: anywhere; }
.lifecycle-channel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.lifecycle-channel-list span { font-size: 0.875rem; }
.lifecycle-channel-list button { display: flex; align-items: center; gap: 0.25rem; min-width: 6rem; }
.video-agent-settings-action { padding: 0.25rem 0.5rem; border: 0; background: transparent; color: var(--colorFeedbackForegroundXxxHighEmphasis); text-align: left; }
.video-agent-settings-action:hover { background: var(--colorFeedbackBackgroundAccentXLowEmphasis); }
.external-video-settings { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--app-control-border); }
.external-video-settings fieldset { min-width: 0; }
.external-video-participants { flex: 0 1 auto !important; max-height: 45%; }
.participants li.external-video-participant { flex-wrap: nowrap; }
.participants li.external-video-agent { display: block; min-width: 0; }
.external-video-agent-heading { display: flex; align-items: center; gap: 0.25rem; }
.external-video-agent-expand { display: flex; align-items: center; gap: 0.4rem; flex: 1; min-width: 0; padding: 0.4rem 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.external-video-agent-expand > img { flex-shrink: 0; }
.external-video-agent-expand[aria-expanded="true"] > img { transform: rotate(90deg); }
.external-video-agent-sources { list-style: none; margin: 0; padding: 0 0 0 0.75rem; border-left: 1px solid var(--app-control-border); }
.external-video-agent-sources[hidden] { display: none; }
.external-video-participant .participant-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.external-video-participant small { line-height: 1.35; }
.external-video-source-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 2rem; min-height: 2rem; margin-left: auto; cursor: pointer; }
.external-video-source-toggle input { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--colorBrandBackground); }
.video-source-error { color: var(--colorFeedbackForegroundNegative); }
.external-video-availability-offline .avatar,
.external-video-availability-unavailable .avatar { opacity: 0.55; }
.video-agent-management-dialog { display: flex; flex-direction: column; width: min(100%, 42rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.video-agent-description { color: var(--colorFeedbackForegroundDefault); font-size: 0.875rem; font-weight: 400; line-height: 1.5; }
.video-agent-list { display: grid; gap: 0; margin: 1rem 0 0; padding: 0; list-style: none; }
.video-agent-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--app-control-border); }
.video-agent-list li > div:first-child { display: grid; gap: 0.2rem; min-width: 0; overflow-wrap: anywhere; }
.video-agent-list small { color: var(--colorFeedbackForegroundDefault); }
.video-agent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.video-agent-actions button { min-height: 2rem; }
.video-agent-status-toggle { display: flex; align-items: center; gap: 0.5rem; margin: 0; min-height: 2rem; cursor: pointer; }
.video-agent-status-toggle input { width: 1rem; height: 1rem; min-height: 0; margin: 0; accent-color: var(--colorBrandBackground); }
.video-agent-credential-input { display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem; align-items: center; gap: 0.5rem; }
.video-agent-credential-input input { min-width: 0; width: 100%; }
.video-agent-delete-dialog { margin: auto; }
.video-agent-delete-dialog::backdrop { background: rgb(0 0 0 / 60%); }
.video-agent-credential { display: grid; gap: 0.5rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--app-control-border); border-radius: 6px; }
.video-agent-credential p { margin: 0; }
.video-agent-credential code { overflow-wrap: anywhere; user-select: all; }
.video-agent-credential small { color: var(--colorFeedbackForegroundDefault); }
@media (max-width: 480px) {
  .lifecycle-channel-list li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .lifecycle-channel-actions { justify-content: flex-start; }
  .lifecycle-channel-list button { justify-self: start; }
  .video-agent-list li { align-items: flex-start; flex-direction: column; }
  .video-agent-actions { justify-content: flex-start; }
}

@media (max-width: 680px), (any-pointer: coarse) {
  .channel-card .channel-link,
  .mobile-workspace .channel-card .channel-link { padding-right: 3.75rem; }
  .channel-card .channel-card-settings { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; }
  .external-video-source-toggle { flex-basis: 2.75rem; }
  .video-agent-actions button,
  .settings-actions button { min-height: 2.75rem; }
}