@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f3f4f7;
  --surface: #fff;
  --text: #242a3b;
  --muted: #626b7f;
  --line: #dde1e9;
  --accent: #4260e8;
  --accent-hover: #304bcf;
  --video: #171c27;
  --video-self: #121620;
  --video-text: #eef1fa;
  --video-muted: #a5adbf;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button,
a,
select {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
::selection {
  background: #dce3ff;
  color: #162982;
}
input,
textarea {
  caret-color: var(--accent);
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.app-shell {
  width: 100%;
  padding: 0 16px;
  height: 100dvh;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 44px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.topbar {
  height: 64px;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  margin-right: 9px;
}
.brand-mark .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}
.brand-suffix {
  color: var(--accent);
}
.mode-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}
.mode-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  min-height: 40px;
}
.mode-button .icon {
  width: 19px;
  height: 19px;
}
.mode-button.active {
  background: #e4e9ff;
  color: #304ccb;
}
.mode-button:hover:not(.active) {
  background: #e7eaf0;
  color: var(--text);
}
.help-button {
  justify-self: end;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  padding: 8px;
}
.help-button .icon {
  width: 18px;
  height: 18px;
}
.help-button:hover {
  color: var(--accent);
}
main {
  min-width: 0;
  min-height: 0;
}
.workspace {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) clamp(190px, 28dvh, 260px);
  gap: 12px;
}
.video-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  min-height: 0;
}
.video-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--video);
  color: var(--video-text);
}
.self-tile {
  background: var(--video-self);
}
.tile-topline,
.tile-bottomline {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
.tile-bottomline {
  margin-top: auto;
  min-height: 72px;
}
.tile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: #ffffff0d;
  color: #c8cfde;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 85%;
  overflow-wrap: anywhere;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a5b3e9;
  flex-shrink: 0;
}
.tile-lock {
  color: #929bae;
  width: 18px;
  height: 18px;
}
.camera-indicator {
  color: var(--video-muted);
  font-size: 12px;
}
.remote-placeholder,
.self-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 78px 24px;
  z-index: 1;
}
.remote-placeholder h2,
.self-placeholder h2 {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 20px 0 8px;
}
.remote-placeholder p,
.self-placeholder p {
  color: var(--video-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 40ch;
  margin: 0;
}
.connection-symbol,
.camera-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: #8b9fdc;
}
.connection-symbol .icon,
.camera-symbol .icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}
.camera-symbol {
  color: #81899b;
}
.connection-symbol.searching {
  animation: searching 1.8s ease-in-out infinite;
}
.camera-enable {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #293343;
  color: #e6ebf9;
  padding: 11px 15px;
  border-radius: 8px;
  margin-top: 24px;
  font-size: 14px;
  min-height: 44px;
}
.camera-enable .icon {
  width: 19px;
  height: 19px;
}
.camera-enable:hover {
  background: #374358;
}
.person-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 550;
  min-width: 0;
  overflow-wrap: anywhere;
  overflow: hidden;
}
#self-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.small-avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #2f384c;
  color: #c5d0ee;
  border-radius: 7px;
  font-size: 13px;
  flex-shrink: 0;
}
.self-avatar {
  background: #29303f;
  color: #b3bdce;
}
.small-avatar .icon {
  width: 17px;
  height: 17px;
}
.media-controls {
  display: flex;
  gap: 8px;
}
.icon-button {
  display: grid;
  place-items: center;
  background: #2b3243;
  color: #e1e5ef;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
}
.icon-button .icon {
  width: 19px;
  height: 19px;
}
.icon-button:hover {
  background: #3b465e;
}
.icon-button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.video-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.self-tile video {
  transform: scaleX(-1);
}
.video-tile:has(video:not([hidden])) .tile-topline {
  background: linear-gradient(#0c111bb3, transparent);
}
.video-tile:has(video:not([hidden])) .tile-bottomline {
  background: linear-gradient(transparent, #0c111bd9);
}
.live-timer {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.play-remote {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.secondary-button {
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.conversation-area {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.room-controls {
  flex: 1;
  min-height: 0;
}
.primary-controls {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  min-height: 46px;
  padding: 12px 20px;
}
.primary-button:hover:not(:disabled) {
  background: var(--accent-hover);
}
.primary-button:disabled {
  background: #c8d2fa;
  color: #526495;
}
.room-controls .primary-button,
.stop-button {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.4px;
  gap: 13px;
}
.room-controls .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}
.stop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f3d7db;
  color: #92404c;
  padding: 12px 20px;
}
.stop-button:hover:not(:disabled) {
  background: #efc1c9;
}
.stop-button:disabled {
  background: #f0e3e6;
  color: #98737b;
}
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.nickname-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  background: transparent;
  border-radius: 8px;
  padding: 8px;
}
.nickname-button:hover:not(:disabled) {
  background: #e4e9ff;
}
.nickname-button .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
#nickname-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nickname-action {
  color: var(--accent);
  font-size: 12px;
}
.nickname-button:disabled .nickname-action {
  display: none;
}
.keyboard-hint {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
kbd {
  font: inherit;
  padding: 2px 5px;
  border: 1px solid #cdd2dd;
  border-radius: 4px;
  margin-right: 4px;
  background: #fff;
}
.chat-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  min-height: 45px;
  border-bottom: 1px solid #e7eaf0;
  flex-shrink: 0;
}
.chat-heading h2 {
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.chat-heading .icon {
  width: 17px;
  height: 17px;
  color: #7d88a0;
}
.chat-status {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
#chat-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#join-form {
  display: grid;
  gap: 8px;
  align-items: start;
}
#join-form > label {
  font-size: 14px;
  font-weight: 650;
}
.username-input {
  display: flex;
  align-items: center;
  border: 1px solid #cbd2df;
  background: #f9faff;
  border-radius: 8px;
  min-height: 46px;
}
.username-input:focus-within {
  border-color: var(--accent);
  outline: 2px solid #d5ddff;
}
.username-input input {
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 16px;
  color: var(--text);
}
.username-input input::placeholder {
  color: #69768e;
}
.username-input button {
  display: grid;
  place-items: center;
  align-self: stretch;
  background: transparent;
  color: #78849b;
  width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.username-input button:hover {
  color: var(--accent);
}
.username-input .icon {
  width: 18px;
  height: 18px;
}
.join-button {
  white-space: nowrap;
  min-height: 46px;
  width: 100%;
  margin-top: 16px;
}
.join-button .icon {
  width: 18px;
  height: 18px;
}
.field-hint {
  grid-column: 1/-1;
  font-size: 12px;
  color: var(--muted);
}
.form-error {
  grid-column: 1/-1;
  color: #b03043;
  font-size: 13px;
  margin: 0;
}
.chat-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.message-space {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}
.chat-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px;
  pointer-events: none;
}
.chat-empty p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.chat-empty span {
  font-size: 12px;
  color: var(--muted);
}
body:not(.text-mode) .chat-empty span {
  display: none;
}
.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #bcc6e0 transparent;
  overscroll-behavior: contain;
}
.message {
  width: fit-content;
  max-width: min(85%, 65ch);
  margin-bottom: 10px;
}
.message-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.message-bubble {
  font-size: 16px;
  line-height: 1.5;
  background: #f0f2f7;
  padding: 8px 12px;
  border-radius: 2px 10px 10px 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message.own {
  margin-left: auto;
}
.message.own .message-meta {
  justify-content: flex-end;
}
.message.own .message-bubble {
  background: var(--accent);
  color: #fff;
  border-radius: 10px 2px 10px 10px;
}
.system-message {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 3px auto 10px;
  max-width: 55ch;
}
.message-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e5e9f1;
  padding: 7px 12px;
  flex-shrink: 0;
}
.message-form:focus-within {
  box-shadow: inset 0 -2px var(--accent);
}
textarea {
  font-size: 16px;
  line-height: 1.5;
  padding: 7px 0;
  min-height: 44px;
  max-height: 80px;
  resize: none;
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  outline: none;
}
textarea:focus-visible {
  outline: none;
}
textarea::placeholder {
  color: #788196;
}
.send-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}
.send-button .icon {
  width: 18px;
  height: 18px;
}
.send-button:disabled {
  background: #e5e9f5;
  color: #929cb6;
}
.page-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #737c8f;
  font-size: 12px;
  padding: 0 2px;
}
.footer-divider {
  padding: 0 7px;
  color: #adb5c4;
}
.page-footer > div {
  display: flex;
  gap: 20px;
}
.page-footer button {
  background: none;
  color: #606b81;
  font-size: 12px;
  padding: 8px 0;
  min-height: 44px;
}
.page-footer button:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-mode .video-grid {
  display: none;
}
.text-mode .workspace {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  max-width: 1120px;
  margin-inline: auto;
}
.text-mode .conversation-area {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.text-mode .room-controls {
  height: 56px;
}
.text-mode .room-controls button {
  font-size: 18px;
}
.text-mode .session-row {
  justify-content: flex-end;
}
.text-mode .keyboard-hint {
  display: none;
}
.text-mode .messages {
  padding: 24px;
}
.text-mode .message-form {
  padding: 12px 24px;
}
.text-mode .chat-empty p {
  font-size: 20px;
}
.text-mode .chat-empty span {
  font-size: 14px;
}
dialog {
  background: #fff;
  color: var(--text);
  border: 0;
  border-radius: 16px;
  max-width: 490px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  padding: 30px;
  box-shadow: 0 20px 70px #121e3a40;
}
dialog::backdrop {
  background: #11192db3;
}
#nickname-dialog {
  max-width: 440px;
  padding: 40px 32px 32px;
}
#nickname-dialog h2 {
  margin: 20px 0 8px;
  text-wrap: balance;
}
#nickname-description {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #eef1f7;
  color: #647089;
}
.dialog-close:hover {
  background: #dfe5f2;
}
.dialog-mark {
  color: var(--accent);
}
.dialog-mark .icon {
  width: 30px;
  height: 30px;
}
dialog h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 18px 0;
}
#dialog-content {
  font-size: 14px;
  line-height: 1.75;
  color: #59677d;
  margin-bottom: 22px;
}
#dialog-content p {
  margin: 0 0 14px;
}
#dialog-content strong {
  color: var(--text);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #22355c;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  max-width: min(90vw, 580px);
  width: max-content;
  font-size: 14px;
  box-shadow: 0 7px 24px #11192b26;
  z-index: 20;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes searching {
  50% {
    opacity: 0.35;
    transform: scale(0.95);
  }
}
@media (max-width: 1000px) {
  .room-controls .primary-button,
  .stop-button {
    font-size: 20px;
    padding: 12px;
  }
  .keyboard-hint {
    display: none;
  }
  .remote-placeholder h2,
  .self-placeholder h2 {
    font-size: 22px;
  }
  .remote-placeholder,
  .self-placeholder {
    padding: 70px 18px;
  }
  .remote-placeholder p,
  .self-placeholder p {
    max-width: 28ch;
  }
}
@media (max-width: 650px) {
  .app-shell {
    padding-inline: 12px;
    grid-template-rows: 100px minmax(0, 1fr) 44px;
  }
  .topbar {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 48px 44px;
    column-gap: 12px;
    row-gap: 0;
  }
  .brand {
    font-size: 19px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    margin-right: 6px;
  }
  .brand-mark .icon {
    width: 18px;
    height: 18px;
  }
  .mode-switch {
    grid-column: 1/-1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
  }
  .mode-button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    padding: 8px;
  }
  .mode-button .icon {
    width: 16px;
    height: 16px;
  }
  .help-button {
    grid-column: 2;
    grid-row: 1;
    padding: 7px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(160px, 1fr) auto minmax(140px, 1fr);
    gap: 8px;
  }
  .video-grid {
    grid-column: auto;
    gap: 8px;
  }
  .tile-topline,
  .tile-bottomline {
    padding: 8px;
  }
  .tile-bottomline {
    min-height: 60px;
    gap: 4px;
  }
  .tile-chip {
    font-size: 11px;
    padding: 4px 6px;
    max-width: 100%;
  }
  .tile-lock,
  .camera-indicator,
  .small-avatar {
    display: none;
  }
  .media-controls {
    gap: 4px;
  }
  .remote-placeholder,
  .self-placeholder {
    padding: 40px 8px 60px;
  }
  .connection-symbol,
  .camera-symbol {
    display: none;
  }
  .remote-placeholder h2,
  .self-placeholder h2 {
    font-size: 16px;
    margin: 0;
  }
  .remote-placeholder p,
  .self-placeholder p,
  .self-placeholder h2 {
    display: none;
  }
  .camera-enable {
    margin-top: 0;
    padding: 8px;
    min-height: 44px;
    font-size: 12px;
  }
  .camera-enable .icon {
    width: 16px;
    height: 16px;
  }
  .person-label {
    font-size: 12px;
    gap: 7px;
  }
  .conversation-area {
    gap: 0;
  }
  .room-controls {
    height: 48px;
    flex: none;
  }
  .primary-controls {
    gap: 8px;
  }
  .room-controls .primary-button,
  .stop-button {
    font-size: 16px;
    letter-spacing: normal;
    gap: 8px;
  }
  .room-controls .icon {
    width: 20px;
    height: 20px;
  }
  .session-row {
    min-height: 44px;
  }
  .chat-heading {
    padding: 8px 12px;
  }
  .chat-status {
    font-size: 12px;
  }
  .page-footer {
    gap: 8px;
  }
  .page-footer > span {
    display: none;
  }
  .page-footer > div {
    width: 100%;
    justify-content: center;
    gap: 24px;
  }
  .text-mode .workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .text-mode .conversation-area {
    display: flex;
    gap: 0;
    align-items: stretch;
  }
  .text-mode .room-controls {
    height: 48px;
  }
  .text-mode .room-controls button {
    font-size: 16px;
  }
  .text-mode .session-row {
    justify-content: flex-start;
  }
  .text-mode .messages {
    padding: 16px;
  }
  .text-mode .message-form {
    padding: 8px 12px;
  }
  #nickname-dialog {
    padding: 32px 24px 24px;
  }
}
@media (max-height: 600px) and (min-width: 651px) {
  .app-shell {
    grid-template-rows: 48px minmax(0, 1fr) 44px;
  }
  .topbar {
    height: 48px;
    min-height: 48px;
  }
  .workspace {
    grid-template-rows: minmax(0, 1fr) 140px;
  }
  .remote-placeholder p,
  .self-placeholder p,
  .connection-symbol,
  .camera-symbol,
  .self-placeholder h2 {
    display: none;
  }
  .remote-placeholder h2,
  .camera-enable {
    margin: 0;
  }
  .tile-topline,
  .tile-bottomline {
    padding: 8px 12px;
  }
  .tile-bottomline {
    min-height: 56px;
  }
  .remote-placeholder,
  .self-placeholder {
    padding: 40px 12px 56px;
  }
  .text-mode .workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
}
@media (max-width: 370px) {
  .room-controls .primary-button,
  .stop-button {
    font-size: 14px;
    padding-inline: 8px;
    gap: 6px;
  }
}
@media (max-height: 540px) and (max-width: 650px) {
  /* When the software keyboard opens, keep the composer and controls usable. */
  .workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .video-grid {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
