.room-shell {
  width: min(1100px, calc(100% - 32px));
}

.room-intro,
.room-detail-heading,
.room-card__header,
.room-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.room-page-state[hidden],
.room-detail-section[hidden],
.room-prejoin[hidden],
.room-text-chat[hidden],
.room-readiness-card[hidden],
.room-technical-details[hidden],
.room-schedule-form[hidden],
.room-waiting-card[hidden],
.room-media[hidden],
.room-media__video[hidden],
.room-media__controls [hidden] {
  display: none;
}

.room-page.is-text-chat .room-intro {
  display: none;
}

.room-page.is-prejoin .room-intro,
.room-page.is-realtime-room .room-intro {
  display: none;
}

body.is-listening-room-focus > .site-header,
body.is-listening-room-focus > .site-footer {
  display: none;
}

body.is-listening-room-focus .room-page > .section {
  padding-top: var(--dd-space-4);
  padding-bottom: var(--dd-space-4);
}

.room-transient {
  position: fixed;
  z-index: 1200;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  width: min(92vw, 520px);
  padding: 12px 16px;
  transform: translateX(-50%);
  border: 1px solid var(--dd-border-default);
  border-radius: var(--dd-radius-control);
  box-shadow: 0 12px 32px rgb(16 34 48 / 18%);
  background: var(--dd-surface-card);
  color: var(--dd-text-primary);
  font-weight: 600;
  text-align: center;
}

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

.room-prejoin {
  min-height: min(680px, calc(100dvh - 150px));
  border: 1px solid var(--dd-border-default);
  border-radius: var(--dd-radius-card);
  background: var(--dd-surface-card);
}

.room-prejoin__header {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) auto minmax(104px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dd-border-default);
}

.room-prejoin__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.room-prejoin__header .button {
  justify-self: start;
}

.room-prejoin__content {
  display: grid;
  width: min(100%, 480px);
  min-height: 540px;
  margin: auto;
  padding: 48px 20px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.room-prejoin__content > p {
  margin: 0;
}

.room-prejoin__countdown,
.room-prejoin__ready {
  margin-top: 8px !important;
  color: var(--dd-text-primary);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
}

.room-prejoin__status {
  min-height: 22px;
  margin-top: 18px !important;
  color: var(--dd-danger);
  font-size: 14px;
  line-height: 20px;
}

.room-prejoin__content .button {
  min-width: 180px;
  min-height: 48px;
  margin-top: 18px;
}

.room-prejoin__content .button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.room-page.is-text-chat > .section {
  padding-top: var(--dd-space-4);
  padding-bottom: var(--dd-space-4);
}

.room-text-chat {
  display: flex;
  min-height: min(760px, calc(100dvh - 150px));
  max-height: 900px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--dd-border-default);
  border-radius: var(--dd-radius-card);
  background: var(--dd-surface-card);
}

.room-text-chat__header {
  display: grid;
  grid-template-columns: minmax(104px, 1fr) auto minmax(104px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dd-border-default);
}

.room-text-chat__header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.room-session-heading {
  display: grid;
  gap: 2px;
  justify-items: center;
}

.room-text-chat__header .room-session-heading {
  min-width: 0;
  overflow-wrap: anywhere;
}

.room-text-counterpart { margin: 0; color: var(--dd-text-secondary); font-size: 12px; line-height: 16px; }
.room-text-counterpart.is-typing { color: var(--dd-color-primary); }
.room-text-counterpart__typing { margin-left: 4px; animation: room-typing 900ms ease-in-out infinite alternate; }
@keyframes room-typing { to { opacity: .35; } }

.room-remaining-time {
  min-height: 18px;
  color: var(--dd-text-secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.room-text-chat__header .listening-action--danger {
  justify-self: end;
}

.room-text-chat__status {
  min-height: 22px;
  margin: 0;
  padding: 8px 16px 0;
  color: var(--dd-text-secondary);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.room-text-chat__status.is-error {
  color: var(--dd-danger);
}

.room-text-chat__messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
}

.room-text-chat__empty {
  margin: auto;
  color: var(--dd-text-secondary);
  text-align: center;
}

.room-text-message {
  align-self: flex-start;
  max-width: 72%;
  padding: 9px 12px 6px;
  overflow-wrap: anywhere;
  border: 1px solid var(--dd-border-default);
  border-radius: 14px 14px 14px 4px;
  background: var(--dd-surface-page);
}

.room-text-message--self {
  align-self: flex-end;
  border-color: var(--dd-color-primary-soft);
  border-radius: 14px 14px 4px 14px;
  background: var(--dd-color-primary-soft);
}

.room-text-message__body {
  margin: 0;
  color: var(--dd-text-primary);
  font-size: 15px;
  line-height: 22px;
  white-space: pre-wrap;
}

.room-text-message__time {
  display: block;
  margin-top: 2px;
  color: var(--dd-text-secondary);
  font-size: 11px;
  line-height: 16px;
  text-align: right;
}

.room-text-message__receipt { margin-left: 4px; color: var(--dd-text-secondary); }
.room-text-message__receipt.is-read { color: var(--dd-color-primary); }
.room-text-message__receipt.is-filtered { color: #dc2626; }

.room-text-filter { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 12px; }
.room-text-filter > span { flex: 1; min-width: 0; }
.room-text-filter__switch { min-height: 36px; color: #dc2626; border-color: currentColor; }
.room-text-filter__switch.is-enabled { color: #16a34a; }
.room-text-filter__info { margin: 0; padding: 8px 16px 0; color: #2563EB; font-size: 12px; }
.room-text-filter[hidden], .room-text-filter__info[hidden] { display: none; }

.room-text-chat__composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--dd-border-default);
  background: var(--dd-surface-card);
}

.room-text-chat__composer > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.room-text-chat__composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  overflow-y: auto;
  font: inherit;
  font-size: 15px;
  line-height: 22px;
}

.room-text-chat__composer .button {
  min-height: 44px;
}

.room-list-section,
.room-detail-section {
  min-width: 0;
}

.room-card-list {
  display: grid;
  gap: var(--dd-space-4);
}

.room-card,
.room-summary-card,
.room-readiness-card,
.room-technical-details,
.room-schedule-form,
.room-waiting-card {
  padding: var(--dd-space-4);
  overflow-wrap: anywhere;
}

.room-card h3,
.room-detail-heading h2,
.room-summary-card h3,
.room-readiness-card h3,
.room-schedule-form h3,
.room-waiting-card h3 {
  margin-top: 0;
}

.room-card__meta,
.room-detail-grid,
.room-schedule-grid,
.room-readiness-list {
  display: grid;
  gap: 12px 18px;
}

.room-card__meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0;
}

.room-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.room-detail-grid.is-storyteller-summary {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.room-detail-grid.is-storyteller-summary .room-summary-card {
  padding: var(--dd-space-4);
}

.room-detail-grid.is-storyteller-summary .room-summary {
  display: grid;
  gap: 0 22px;
}

.room-technical-details {
  margin-top: 14px;
  padding: 0;
}

.room-technical-details > summary {
  padding: 16px 18px;
  color: var(--dd-text-primary);
  font-weight: 600;
  cursor: pointer;
}

.room-technical-details[open] > summary {
  border-bottom: 1px solid var(--dd-border-default);
}

.room-technical-summary {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(0, 1.5fr);
  gap: 10px 18px;
  margin: 0;
  padding: 16px 18px 8px;
}

.room-technical-summary dt {
  color: var(--dd-text-secondary);
  font-weight: 700;
}

.room-technical-summary dd {
  min-width: 0;
  margin: 0;
}

.room-technical-notes {
  padding: 0 18px 16px;
}

.room-detail-grid.is-storyteller-summary .room-summary dt,
.room-detail-grid.is-storyteller-summary .room-summary dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--dd-border-default);
}

.room-schedule-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-summary,
.room-readiness-list {
  grid-template-columns: minmax(140px, .75fr) minmax(0, 1.5fr);
  margin: 0;
}

.room-summary dt,
.room-readiness-list dt {
  color: var(--dd-text-secondary);
  font-weight: 700;
}

.room-summary dd,
.room-readiness-list dd {
  min-width: 0;
  margin: 0;
  color: var(--dd-text-primary);
}

.room-card__footer {
  align-items: flex-end;
}

.room-countdown {
  padding: 12px 14px;
  border-radius: var(--dd-radius-control);
  background: var(--dd-color-primary-soft);
  color: var(--dd-info);
  font-weight: 600;
}

.room-blocking-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--dd-danger);
}

.room-provider-note {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--dd-border-default);
  border-radius: var(--dd-radius-control);
  background: var(--dd-color-primary-soft);
  color: var(--dd-info);
}

.room-media {
  display: grid;
  gap: var(--dd-space-4);
  margin-top: var(--dd-space-4);
  padding: var(--dd-space-4);
  border: 1px solid var(--dd-border-default);
  border-radius: var(--dd-radius-control);
  background: var(--dd-surface-card);
}

.room-media__heading,
.room-media__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.room-media__heading h4,
.room-media__heading p,
.room-media__feedback {
  margin: 0;
}

.room-media__status,
.room-media__participant,
.room-media__feedback {
  color: var(--dd-text-secondary);
}

.room-media__participant {
  font-size: .9rem;
  font-weight: 600;
}

.room-media__meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.room-audio-identity {
  display: none;
  margin: 0;
}

.room-page.is-realtime-room .room-detail-heading,
.room-page.is-realtime-room .room-detail-grid,
.room-page.is-realtime-room .room-technical-details,
.room-page.is-realtime-room .room-schedule-form,
.room-page.is-realtime-room [data-room-detail-feedback],
.room-page.is-realtime-room .room-waiting-card > h3,
.room-page.is-realtime-room [data-room-waiting-message],
.room-page.is-realtime-room [data-room-actions] {
  display: none;
}

.room-page.is-realtime-room .room-waiting-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.room-page.is-realtime-room .room-media {
  min-height: min(720px, calc(100dvh - 140px));
  margin: 0;
}

.room-page.is-audio-room .room-waiting-card,
.room-page.is-audio-room .room-media {
  width: 100%;
  min-height: calc(100dvh - 112px);
}

.room-page.is-audio-room .room-media {
  position: relative;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: stretch;
  padding: clamp(20px, 4vw, 48px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 35%, var(--dd-color-primary-soft), transparent 44%),
    var(--dd-surface-card);
}

.room-page.is-audio-room .room-media__heading {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 52px;
  place-items: center;
  text-align: center;
}

.room-page.is-audio-room .room-media__heading > div:first-child {
  grid-column: 1;
}

.room-page.is-audio-room .room-media__heading h4 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.room-page.is-audio-room .room-media__participant {
  display: none;
}

.room-page.is-audio-room .room-media__meta {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  display: grid;
  width: auto;
  justify-items: end;
}

.room-page.is-audio-room .room-audio-identity {
  display: grid;
  align-self: center;
  min-height: 160px;
  margin: auto;
  place-items: center;
  color: var(--dd-text-primary);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.room-page.is-audio-room .room-audio-speaking::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: .75em;
  margin-inline: 5px 9px;
  background: currentColor;
  box-shadow: -5px .15em 0 -.05em, 5px -.15em 0 -.05em;
}

@media (prefers-reduced-motion: no-preference) {
  .room-page.is-audio-room .room-audio-speaking::before {
    animation: room-voice-speaking .65s ease-in-out alternate infinite;
  }
}

@keyframes room-voice-speaking {
  from { transform: scaleY(.65); }
  to { transform: scaleY(1); }
}

.room-page.is-audio-room .room-media__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.room-page.is-audio-room .room-media__feedback:empty {
  display: none;
}

.room-page.is-audio-room .room-media__controls {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 18px;
}

.room-page.is-audio-room [data-room-microphone] {
  width: 136px;
  min-width: 136px;
  height: 136px;
  padding: 18px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
}

.room-page.is-audio-room .room-media__controls .listening-action--danger {
  min-width: min(100%, 240px);
  min-height: 52px;
  margin-left: 0;
  border-color: var(--dd-danger);
  background: var(--dd-danger);
  color: var(--dd-surface-card);
}

.room-page.is-audio-room .room-media__controls .listening-action--danger:hover {
  filter: brightness(.92);
}

.room-media__video {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--dd-radius-control);
  background: var(--dd-text-primary);
}

.room-media__remote,
.room-media__remote video {
  width: 100%;
  height: 100%;
}

.room-media__remote {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--dd-surface-card);
}

.room-media__remote video,
.room-media__local video {
  display: block;
  object-fit: cover;
}

.room-media__local {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(26%, 180px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid var(--dd-surface-card);
  border-radius: var(--dd-radius-control);
  background: var(--dd-color-primary-soft);
  color: var(--dd-text-primary);
  cursor: pointer;
  touch-action: none;
}

.room-media__local video {
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

.room-page.is-video-room > .section,
body.is-listening-room-focus .room-page.is-video-room > .section {
  padding: 0;
}

.room-page.is-video-room .room-shell,
.room-page.is-video-room .room-detail-section,
.room-page.is-video-room .room-waiting-card {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
}

.room-page.is-video-room .room-media {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071019;
}

.room-page.is-video-room .room-media__heading {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  min-height: 72px;
  padding: max(14px, env(safe-area-inset-top)) 18px 18px;
  background: linear-gradient(rgb(0 0 0 / 72%), transparent);
  color: #fff;
  pointer-events: none;
}

.room-page.is-video-room .room-media__heading h4,
.room-page.is-video-room .room-media__meta,
.room-page.is-video-room .room-remaining-time {
  color: #fff;
}

.room-page.is-video-room .room-media__status,
.room-page.is-video-room .room-media__participant,
.room-page.is-video-room .room-audio-identity {
  display: none;
}

.room-page.is-video-room .room-media__video,
.room-media:fullscreen .room-media__video {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  background: #071019;
}

.room-page.is-video-room .room-media__remote,
.room-page.is-video-room .room-media__local {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071019;
}

.room-page.is-video-room .room-media__remote video,
.room-page.is-video-room .room-media__local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-page.is-video-room .room-media__video:not(.is-local-main)
  .room-media__remote video[data-room-video-orientation="portrait"] {
  object-fit: contain;
}

.room-page.is-video-room .room-media__local,
.room-page.is-video-room .room-media__video.is-local-main .room-media__remote {
  z-index: 4;
  inset: auto 14px 92px auto;
  width: clamp(128px, 24vw, 220px);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
  cursor: pointer;
  touch-action: none;
}

.room-page.is-video-room .room-media__local video,
.room-page.is-video-room .room-media__video.is-local-main .room-media__remote video {
  object-fit: cover;
}

.room-page.is-video-room .room-media__video.is-local-main .room-media__local {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  touch-action: auto;
}

.room-page.is-video-room .room-media__feedback {
  position: absolute;
  z-index: 8;
  top: 78px;
  left: 50%;
  width: min(92vw, 520px);
  margin: 0;
  padding: 8px 12px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: rgb(0 0 0 / 64%);
  color: #fff;
  text-align: center;
}

.room-page.is-video-room .room-media__feedback:empty {
  display: none;
}

.room-page.is-video-room .room-media__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.room-page.is-video-room .room-media__controls,
.room-media:fullscreen .room-media__controls {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 78px;
  padding: 16px 18px max(16px, env(safe-area-inset-bottom));
  justify-content: center;
  gap: 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 78%));
}

.room-page.is-video-room .room-media__controls .button {
  min-width: 48px;
  min-height: 48px;
}

.room-page.is-video-room .room-media__controls .listening-action--danger {
  margin-left: 0;
  border-color: var(--dd-danger);
  background: var(--dd-danger);
  color: #fff;
}

.room-media:fullscreen {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  background: #071019;
}

.room-media__controls {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.room-media__controls .listening-action--danger {
  margin-left: auto;
}

.room-inline-form {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  padding: 16px;
}

.room-review-rating {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.room-review-rating legend {
  margin-bottom: 6px;
  font-weight: 600;
}

.room-review-stars {
  display: grid;
  grid-template-columns: repeat(10, minmax(24px, 1fr));
  gap: 4px;
}

.room-review-star {
  min-width: 0;
  min-height: 40px;
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa8b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.room-review-star.is-selected {
  background: var(--dd-color-primary-soft);
  color: var(--dd-rating-star);
}

.room-presence--joined {
  color: var(--dd-success);
  font-weight: 700;
}

.room-presence--disconnected,
.room-presence--left {
  color: var(--dd-danger);
  font-weight: 700;
}

.room-schedule-form,
.room-waiting-card {
  margin-top: 16px;
}

.room-detail-grid.is-storyteller-summary ~ .room-waiting-card {
  margin-top: 12px;
}

.room-page.is-storyteller-room .listening-action--danger {
  border-color: var(--dd-danger);
  background: var(--dd-surface-card);
  color: var(--dd-danger);
}

.room-page.is-storyteller-room .listening-action--danger:hover {
  background: var(--dd-danger);
  color: var(--dd-surface-card);
}

.room-schedule-form .field-help {
  color: var(--dd-text-secondary);
}

.room-page button:focus-visible,
.room-page a:focus-visible,
.room-page input:focus-visible,
.room-page textarea:focus-visible {
  outline: 2px solid var(--dd-focus);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .room-shell {
    width: min(100%, calc(100% - 2rem));
  }

  .room-review-stars {
    grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  }

  .room-text-chat {
    min-height: calc(100dvh - 112px);
    border-radius: var(--dd-radius-control);
  }

  .room-prejoin {
    min-height: calc(100dvh - 112px);
    border-radius: var(--dd-radius-control);
  }

  .room-prejoin__header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
  }

  .room-prejoin__header .button {
    min-height: 48px;
  }

  .room-prejoin__content {
    min-height: calc(100dvh - 180px);
  }

  .room-text-chat__header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .room-text-chat__header .room-session-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .room-text-chat__header > button:first-child {
    justify-self: start;
  }

  .room-text-chat__header .button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .room-text-chat__header h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .room-text-chat__messages {
    padding: 12px;
  }

  .room-text-message {
    max-width: 78%;
  }

  .room-text-chat__composer {
    gap: 8px;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  }

  .room-text-chat__composer textarea,
  .room-text-chat__composer .button {
    min-height: 48px;
  }

  .room-intro,
  .room-detail-heading,
  .room-card__header,
  .room-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .room-media__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-media__meta {
    width: 100%;
    justify-items: start;
  }

  .room-page.is-audio-room .room-media__meta {
    position: static;
    justify-items: center;
  }

  .room-remaining-time {
    font-size: 14px;
  }

  .room-media__video,
  .room-media__remote {
    min-height: 220px;
  }

  .room-media__local {
    width: 34%;
  }

  .room-page.is-video-room .room-media__heading {
    min-height: 64px;
    padding-inline: 12px;
  }

  .room-page.is-video-room .room-media__heading h4 {
    font-size: 18px;
  }

  .room-page.is-video-room .room-media__local,
  .room-page.is-video-room .room-media__video.is-local-main .room-media__remote {
    inset: auto 10px 88px auto;
    width: clamp(112px, 30vw, 154px);
  }

  .room-page.is-video-room .room-media__controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    padding-inline: 10px;
  }

  .room-page.is-video-room .room-media__controls .button {
    width: auto;
    padding-inline: 8px;
    font-size: 13px;
  }

  .room-media__controls .listening-action--danger {
    width: 100%;
    margin-left: 0;
  }

  .room-card__meta,
  .room-detail-grid,
  .room-schedule-grid,
  .room-summary,
  .room-readiness-list,
  .room-technical-summary {
    grid-template-columns: 1fr;
  }

  .room-summary dd,
  .room-readiness-list dd,
  .room-technical-summary dd {
    margin-bottom: 8px;
  }
}
