html {
  color-scheme: light dark;
  font-size: 90%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tm-bg);
  color: var(--tm-text);
  font-family: system-ui, sans-serif;
}

main {
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--tm-border);
  background: var(--tm-surface);
  padding: .7rem 1rem;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand,
.main-nav a,
.room-link {
  color: var(--tm-text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.main-nav a {
  color: var(--tm-text-label);
  font-size: .9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  min-width: 0;
}

.right-actions {
  justify-content: flex-end;
}

.meta {
  color: var(--tm-text-muted);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.meet-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  height: calc(100vh - 61px);
  min-height: 0;
}

.sidebar {
  border-right: 1px solid var(--tm-border);
  background: var(--tm-surface);
  padding: .8rem;
  overflow: auto;
}

.side-head,
.panel-head,
.page-head,
.call-actions-row,
.side-section > summary,
.dial-history > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.side-head {
  margin-bottom: .7rem;
}

.room-link {
  display: block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .55rem .6rem;
  margin-bottom: .35rem;
}

.room-link:hover,
.room-link.active {
  border-color: var(--tm-border);
  background: var(--tm-surface-2);
}

.room-link span,
.room-link small {
  display: block;
}

.room-link small {
  color: var(--tm-text-muted);
  margin-top: .16rem;
}

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  overflow: auto;
}

.right-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  border-left: 1px solid var(--tm-border);
  background: var(--tm-bg);
  padding: 1rem;
  overflow: auto;
}

.page-head {
  flex: 0 0 auto;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.page-head h2 {
  margin: .1rem 0 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.kicker {
  color: var(--tm-text-muted);
  font-size: .76rem;
  text-transform: uppercase;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  padding: .9rem;
  margin-bottom: 1rem;
}

.call-strip {
  flex: 0 0 auto;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  margin-bottom: .75rem;
  padding: .75rem;
}

.right-rail > .side-section {
  margin-bottom: 0;
}

.side-section {
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  padding: .85rem;
}

.call-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: var(--tm-surface-2);
  color: var(--tm-text-muted);
  font-size: .82rem;
  padding: .28rem .55rem;
}

.call-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.call-status.busy {
  color: var(--tm-text-label);
}

.call-status.live {
  border-color: color-mix(in srgb, var(--tm-badge-ok-text) 42%, var(--tm-border));
  color: var(--tm-badge-ok-text);
}

.call-status.error {
  border-color: color-mix(in srgb, var(--tm-error) 42%, var(--tm-border));
  color: var(--tm-error);
}

.room-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .65rem;
}

.settings-menu,
.room-controls,
.dial-history {
  min-width: 0;
}

.settings-menu[open],
.room-controls[open] {
  flex: 1 0 100%;
}

.settings-menu summary,
.room-controls summary,
.dial-history summary,
.side-section > summary {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: var(--tm-surface-2);
  color: var(--tm-text);
  cursor: pointer;
  font-size: .82rem;
  list-style: none;
  padding: .28rem .55rem;
}

.side-section > summary {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-menu summary::-webkit-details-marker,
.room-controls summary::-webkit-details-marker,
.dial-history summary::-webkit-details-marker,
.side-section > summary::-webkit-details-marker {
  display: none;
}

.settings-menu[open] > summary,
.room-controls[open] > summary,
.dial-history[open] > summary {
  border-color: color-mix(in srgb, var(--tm-accent) 42%, var(--tm-border));
}

.settings-menu .audio-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: .7rem;
  align-items: end;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface-2);
  margin-top: .55rem;
  padding: .75rem;
}

.room-controls .actions {
  margin-top: .55rem;
}

.settings-menu .audio-controls audio {
  display: none;
}

.volume-field input {
  min-height: 2.25rem;
  padding: 0;
}

.level-field span {
  display: block;
  color: var(--tm-text-label);
  font-size: .78rem;
  font-weight: 650;
  margin-bottom: .24rem;
}

.audio-meter {
  display: flex;
  align-items: center;
  height: 2.25rem;
  border: 1px solid var(--tm-border-input);
  border-radius: 4px;
  background: var(--tm-input-bg, var(--tm-surface));
  overflow: hidden;
  padding: .28rem;
}

.audio-meter i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--tm-accent);
  transition: width .08s linear;
}

.participant {
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface-2);
  min-height: 82px;
  padding: .75rem;
}

.participant-panel {
  flex: 0 0 auto;
}

.participant-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  max-height: 28vh;
  overflow: auto;
}

.participant strong,
.participant span {
  display: block;
}

.participant span {
  margin-top: .35rem;
  color: var(--tm-text-muted);
  font-size: .84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: .15rem .45rem;
  background: var(--tm-surface-2);
  color: var(--tm-text-label);
  font-size: .75rem;
  font-weight: 650;
}

.badge.ok {
  background: var(--tm-badge-ok-bg);
  color: var(--tm-badge-ok-text);
}

.badge.info {
  background: var(--tm-badge-tech-bg);
  color: var(--tm-badge-tech-text);
}

.badge.warn {
  background: color-mix(in srgb, var(--tm-warn) 14%, transparent);
  color: var(--tm-warn);
}

.badge.err {
  background: var(--tm-error-bg);
  color: var(--tm-error);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  padding: .45rem .72rem;
  background: var(--tm-accent);
  color: var(--meet-invert);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

button.secondary,
.button.secondary {
  background: var(--tm-surface-2);
  color: var(--tm-text);
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--tm-border-input);
  border-radius: 4px;
  background: var(--tm-input-bg, var(--tm-surface));
  color: var(--tm-text);
  padding: .48rem .55rem;
}

textarea {
  min-height: 5.8rem;
  resize: vertical;
}

.field span {
  display: block;
  color: var(--tm-text-label);
  font-size: .78rem;
  font-weight: 650;
  margin-bottom: .24rem;
}

.compact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  align-items: end;
}

.dialpad input {
  font-size: 1rem;
  margin: .75rem 0;
}

.dialpad {
  flex: 0 0 auto;
  margin-top: auto;
}

.dial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-bottom: .75rem;
}

.dial-grid button {
  min-height: 3rem;
  background: var(--tm-surface-2);
  color: var(--tm-text);
}

.voice-status {
  margin-top: .65rem;
}

.dial-history {
  margin-top: .65rem;
}

.dial-history summary {
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.intent-list {
  margin-top: .7rem;
}

.intent {
  border-top: 1px solid var(--tm-border);
  padding: .45rem 0;
}

.intent strong,
.intent span {
  display: block;
}

.intent span {
  color: var(--tm-text-muted);
  font-size: .82rem;
}

.chat-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: .65rem;
  overflow: auto;
  min-height: 0;
  padding-right: .1rem;
}

.chat-message {
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  padding: .6rem;
  background: var(--tm-surface-2);
}

.chat-message.system {
  border-style: dashed;
}

.chat-message strong,
.chat-message small {
  display: block;
}

.chat-message p {
  margin: .35rem 0;
  overflow-wrap: anywhere;
}

.chat-message small {
  color: var(--tm-text-muted);
  font-size: .76rem;
}

.chat-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  margin-top: .75rem;
}

.ai-actions {
  margin-top: .55rem;
}

.ai-panel {
  flex: 0 0 auto;
  min-height: 0;
}

.ai-body {
  margin-top: .75rem;
}

.ai-panel audio {
  display: none;
}

.ai-panel button {
  margin-top: .55rem;
}

.empty,
.empty-state {
  color: var(--tm-text-muted);
}

.meet-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: calc(100vh - 61px);
  min-height: 0;
}

.meet-room.with-admin {
  grid-template-columns: 330px minmax(0, 1fr) 340px;
}

.room-view .main-nav {
  display: none;
}

.context-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 1rem;
  overflow: hidden;
}

.room-page-head {
  margin-bottom: .7rem;
}

.participant-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  border-left: 1px solid var(--tm-border);
  background: var(--tm-bg);
  padding: 1rem;
  overflow: auto;
}

.admin-drawer {
  position: static;
  z-index: 1;
  width: auto;
  min-width: 0;
  border-right: 1px solid var(--tm-border);
  background: var(--tm-surface);
  padding: 1rem;
  overflow: auto;
  transform: none;
  box-shadow: none;
}

.drawer-toggle,
.drawer-close {
  display: none;
}

.drawer-head,
.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.drawer-section {
  border-top: 1px solid var(--tm-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.room-identity {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  margin-bottom: .75rem;
  padding: .65rem;
}

.identity-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  min-width: 0;
}

.identity-item {
  display: block;
  min-width: 0;
  min-height: 3.2rem;
  background: var(--tm-surface-2);
  color: var(--tm-text);
  text-align: left;
  padding: .45rem .55rem;
}

.identity-item span,
.identity-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-item span {
  color: var(--tm-text-muted);
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 700;
}

.identity-item strong {
  margin-top: .2rem;
  font-size: .92rem;
}

.identity-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.compact-call-strip {
  padding: .55rem .65rem;
}

.compact-call-strip audio {
  display: none;
}

.context-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  padding: .85rem;
}

.context-head {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--tm-border);
  margin-bottom: .75rem;
  padding-bottom: .65rem;
}

.context-head strong {
  display: block;
  margin-top: .1rem;
  font-size: 1rem;
}

.context-input {
  position: sticky;
  bottom: 0;
  background: var(--tm-surface);
  padding-top: .65rem;
}

.mention-wrap {
  position: relative;
  min-width: 0;
}

.mention-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + .35rem);
  z-index: 12;
  width: min(320px, 100%);
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  box-shadow: 0 12px 28px color-mix(in srgb, #000 18%, transparent);
  padding: .3rem;
}

.mention-menu button {
  display: block;
  width: 100%;
  min-height: 2.35rem;
  background: transparent;
  color: var(--tm-text);
  text-align: left;
}

.mention-menu button:hover {
  background: var(--tm-surface-2);
}

.mention-menu strong,
.mention-menu span {
  display: block;
}

.mention-menu span {
  color: var(--tm-text-muted);
  font-size: .75rem;
}

.mention {
  border-radius: 4px;
  background: var(--tm-badge-tech-bg);
  color: var(--tm-badge-tech-text);
  font-weight: 700;
  padding: .04rem .25rem;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .45rem 0;
}

.attachments a,
.attachments span {
  border: 1px solid var(--tm-border);
  border-radius: 4px;
  background: var(--tm-surface);
  color: var(--tm-text);
  font-size: .78rem;
  padding: .2rem .4rem;
  text-decoration: none;
}

.participant-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  min-height: 0;
  overflow: auto;
}

.participant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem;
  align-items: stretch;
}

.participant-row {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.2rem;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface-2);
  color: var(--tm-text);
  text-align: left;
  padding: .52rem .6rem;
}

.participant-row.active,
.participant-row:hover {
  border-color: color-mix(in srgb, var(--tm-accent) 50%, var(--tm-border));
}

.participant-row strong,
.participant-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-row span {
  color: var(--tm-text-muted);
  font-size: .82rem;
  margin-top: .2rem;
}

.participant-menu {
  position: relative;
}

.participant-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface-2);
  cursor: pointer;
  font-size: .78rem;
  list-style: none;
  padding: 0 .45rem;
}

.participant-menu summary::-webkit-details-marker {
  display: none;
}

.participant-menu div {
  position: absolute;
  right: 0;
  z-index: 11;
  min-width: 150px;
  border: 1px solid var(--tm-border);
  border-radius: 6px;
  background: var(--tm-surface);
  box-shadow: 0 12px 28px color-mix(in srgb, #000 18%, transparent);
  padding: .3rem;
}

.participant-menu button {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--tm-text);
  text-align: left;
}

.participant-menu button:hover {
  background: var(--tm-surface-2);
}

@media (max-width: 1180px) {
  .meet-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    height: auto;
    min-height: calc(100vh - 61px);
  }

  .right-rail {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--tm-border);
    overflow: visible;
  }

  .meet-room {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: calc(100vh - 61px);
  }

  .meet-room.with-admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-drawer {
    position: fixed;
    top: 61px;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 2rem));
    box-shadow: 0 18px 42px color-mix(in srgb, #000 24%, transparent);
    transform: translateX(calc(-100% - 18px));
    transition: transform .18s ease;
  }

  .admin-drawer.open {
    transform: translateX(0);
  }

  .drawer-toggle,
  .drawer-close {
    display: inline-flex;
  }

  .context-pane {
    min-height: 70vh;
    overflow: visible;
  }

  .participant-rail {
    border-left: 0;
    border-top: 1px solid var(--tm-border);
    overflow: visible;
  }
}

@media (max-width: 820px) {
  .topbar,
  .page-head,
  .call-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .meet-shell,
  .workspace,
  .right-rail {
    display: block;
  }

  .meet-shell {
    height: auto;
    min-height: calc(100vh - 61px);
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--tm-border);
    max-height: 260px;
  }

  .workspace,
  .right-rail {
    padding: .85rem;
    overflow: visible;
  }

  .settings-menu .audio-controls {
    grid-template-columns: 1fr;
    width: auto;
    margin-top: .55rem;
  }

  .participant-grid {
    max-height: none;
  }

  .meet-room,
  .context-pane,
  .participant-rail {
    display: block;
  }

  .context-pane,
  .participant-rail {
    padding: .85rem;
  }

  .room-identity,
  .identity-items {
    grid-template-columns: 1fr;
  }

  .identity-actions {
    justify-content: stretch;
  }

  .identity-actions button {
    flex: 1 1 auto;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .right-actions {
    justify-content: space-between;
  }
}

/* Approved meeting-room surface */
.room-view {
  --meet-bg: var(--tm-bg);
  --meet-panel: var(--tm-surface);
  --meet-panel-soft: var(--tm-surface-2);
  --meet-line: var(--tm-border);
  --meet-line-strong: var(--tm-border-input);
  --meet-text: var(--tm-text);
  --meet-muted: var(--tm-text-muted);
  --meet-soft: var(--tm-badge-tech-bg);
  --meet-blue: var(--tm-accent);
  --meet-green: var(--tm-badge-ok-text);
  --meet-purple: var(--tm-badge-tech-text);
  --meet-teal: var(--tm-success);
  --meet-orange: var(--tm-warn);
  --meet-invert: #fff;
  margin: 0;
  background: var(--meet-bg);
  color: var(--meet-text);
}

.room-view main {
  height: 100vh;
  overflow: hidden;
}

.room-view .meet-room {
  display: grid;
  grid-template-columns: 324px minmax(520px, 1fr) clamp(380px, 30vw, 500px);
  grid-template-rows: 88px minmax(0, 1fr);
  font-size: 90%;
  height: 100vh;
  min-height: 0;
  background: var(--meet-bg);
}

.room-view .meet-room:not(.with-admin) {
  grid-template-columns: minmax(460px, 1fr) minmax(360px, 500px);
}

.room-view .meet-room:not(.with-admin) .context-pane {
  grid-column: 1;
}

.room-view .meet-room:not(.with-admin) .participant-rail {
  grid-column: 2;
}

.icon-button::before {
  display: block;
  color: currentColor;
  font-size: 17.1px;
  line-height: 1;
}

.room-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--meet-line);
  background: color-mix(in srgb, var(--meet-bg) 96%, transparent);
  padding: 0 28px;
}

.room-topbar .room-identity {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

.room-topbar-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.room-session {
  color: var(--meet-muted);
  font-size: 11.34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-menu-slot {
  flex: 0 0 auto;
}

.room-topbar .identity-items,
.room-topbar .identity-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.room-topbar .identity-item,
.room-topbar .identity-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--meet-line-strong);
  border-radius: 14px;
  background: var(--meet-bg);
  color: var(--meet-text);
  font-size: 12.96px;
  font-weight: 700;
  line-height: 1;
  padding: 0 18px;
  box-shadow: var(--tm-shadow-card);
}

.room-topbar .identity-item {
  gap: 10px;
}

.room-topbar .identity-label {
  display: none;
}

.room-topbar .identity-item strong {
  display: block;
  margin: 0;
  max-width: 320px;
  color: var(--meet-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-topbar .identity-icon {
  color: var(--meet-text);
  font-size: 11.34px;
}

.room-topbar .identity-action {
  font-size: 11.34px;
  font-weight: 650;
  padding: 0 16px;
}

.admin-drawer {
  grid-column: 1;
  grid-row: 2;
  position: static;
  width: auto;
  min-width: 0;
  border-right: 1px solid var(--meet-line);
  background: var(--meet-panel);
  color: var(--meet-text);
  padding: 24px 28px;
  overflow: auto;
  transform: none;
  box-shadow: none;
}

.drawer-head {
  justify-content: flex-end;
  margin-bottom: 0;
}

.drawer-close {
  border: 0;
  background: transparent;
  color: var(--meet-text);
  font-size: 0;
  padding: 0;
}

.drawer-close::after {
  content: "x";
  font-size: 19.44px;
}

.drawer-tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 38px;
  margin: 0 0 18px;
  border: 1px solid var(--meet-line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--meet-bg);
}

.drawer-tab {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--meet-muted);
  font-size: 10.53px;
  font-weight: 750;
  letter-spacing: 0;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-tab + .drawer-tab {
  border-left: 1px solid var(--meet-line);
}

.drawer-tab:hover,
.drawer-tab.active {
  background: var(--meet-panel-soft);
  color: var(--meet-text);
}

.drawer-tab-panel[hidden] {
  display: none !important;
}

.drawer-tab-panel {
  min-height: 0;
}

.drawer-tab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.drawer-tab-panel-head strong {
  font-size: 13.77px;
}

.drawer-section {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.dial-to {
  margin-bottom: 28px;
}

.dial-target-row {
  display: block;
}

.dial-target-row input {
  height: 46px;
  border-color: var(--meet-line-strong);
  border-radius: 8px;
  background: var(--meet-bg);
  color: var(--meet-text);
  padding: 0 14px;
}

.dial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.dial-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border: 1px solid var(--meet-line-strong);
  border-radius: 8px;
  background: var(--meet-bg);
  color: var(--meet-text);
  padding: 0;
}

.dial-grid button:hover {
  background: var(--meet-panel-soft);
}

.dial-main {
  display: block;
  font-size: 19.44px;
  font-weight: 750;
  line-height: 1.1;
}

.dial-sub {
  display: block;
  min-height: 14px;
  color: var(--meet-muted);
  font-size: 8.91px;
  font-weight: 650;
  letter-spacing: .03em;
  line-height: 1.2;
  margin-top: 4px;
}

.dial-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
  margin-bottom: 26px;
}

.dial-actions button {
  min-height: 48px;
  border-radius: 8px;
  background: var(--meet-blue);
  color: var(--meet-invert);
  font-size: 12.96px;
  font-weight: 700;
}

.dial-actions button.secondary {
  border: 1px solid var(--meet-line-strong);
  background: var(--meet-panel-soft);
  color: var(--meet-text);
  font-size: 11.34px;
}

.audio-join {
  display: none;
}

.quick-actions {
  border-top: 1px solid var(--meet-line);
  padding-top: 18px;
}

.quick-actions > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13.77px;
}

.quick-action-stack {
  display: grid;
  gap: 8px;
}

.quick-action-stack + .room-controls {
  margin-top: 22px;
}

.quick-action {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--meet-text);
  justify-content: flex-start;
  padding: 4px 0;
}

.settings-menu,
.dial-history,
.room-controls {
  margin-top: 18px;
}

.drawer-tab-panel.dial-history,
.drawer-tab-panel.quick-actions,
.drawer-tab-panel.settings-menu {
  margin-top: 0;
}

.drawer-tab-panel.quick-actions {
  border-top: 0;
  padding-top: 0;
}

.drawer-tab-panel.settings-menu .audio-controls {
  grid-template-columns: 1fr;
  width: auto;
  max-width: none;
  margin-top: 0;
  border-color: var(--meet-line-strong);
  background: var(--meet-bg);
}

.settings-menu summary,
.dial-history summary,
.room-controls summary {
  border: 0;
  background: transparent;
  color: var(--meet-muted);
  padding: 0;
}

.context-pane {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 36px 30px;
  overflow: hidden;
  background: var(--meet-bg);
}

.context-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--meet-bg);
  padding: 0;
}

.context-head {
  flex: 0 0 auto;
  height: 84px;
  border-bottom: 1px solid var(--meet-line);
  margin: 0;
  padding: 0;
}

.context-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.context-title-block strong {
  display: block;
  margin: 0;
  color: var(--meet-green);
  font-size: 19.44px;
  line-height: 1.2;
}

.context-title-block .meta {
  display: block;
  color: var(--meet-muted);
  font-size: 12.15px;
  margin-top: 4px;
}

.context-avatar,
.participant-avatar,
.message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--meet-green);
  color: var(--meet-invert);
  font-weight: 800;
}

.context-avatar.all,
.participant-avatar.all {
  background: var(--meet-green);
}

.participant-avatar.ai,
.message-avatar.ai {
  background: var(--meet-blue);
}

.participant-avatar.user,
.message-avatar.user {
  background: var(--meet-purple);
}

.participant-avatar.pstn,
.message-avatar.pstn {
  background: var(--meet-orange);
}

.participant-avatar.sip {
  background: var(--meet-blue);
}

.participant-avatar.text {
  background: var(--meet-green);
}

.message-avatar.system {
  background: var(--meet-panel-soft);
  color: var(--meet-text);
}

.message-avatar.email,
.message-avatar.transcript {
  background: var(--meet-panel-soft);
  color: var(--meet-text);
}

.context-tools {
  display: flex;
  gap: 18px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--meet-text);
  padding: 0;
}

.search-icon::before {
  content: "⌕";
}

.sliders-icon::before {
  content: "≛";
}

.chat-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px 0 16px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--meet-text);
  padding: 10px 4px;
}

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

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 4px;
}

.message-meta strong {
  color: var(--meet-text);
  font-size: 12.96px;
  font-weight: 800;
}

.message-meta small {
  color: var(--meet-muted);
  font-size: 10.53px;
}

.chat-message p {
  margin: 0;
  color: var(--meet-text);
  font-size: 12.96px;
  line-height: 1.55;
}

.chat-message.partial p {
  color: var(--meet-muted);
  font-style: italic;
}

.message-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--meet-text);
  font-size: 0;
  margin-left: auto;
  padding: 0;
  align-self: center;
}

.message-menu::before {
  content: "";
  width: 4px;
  height: 18px;
  background:
    radial-gradient(circle, var(--meet-muted) 0 2px, transparent 2.5px) 0 0 / 4px 6px repeat-y;
}

.message-menu:hover,
.message-menu:focus-visible {
  background: var(--meet-panel-soft);
}

.thinking-dots {
  display: inline-flex;
  align-items: end;
  gap: 5px;
  height: 18px;
  min-width: 38px;
  vertical-align: middle;
}

.thinking-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--meet-muted);
  animation: meet-dot-wave 920ms ease-in-out infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes meet-dot-wave {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

.mention {
  background: var(--meet-soft);
  color: var(--tm-badge-tech-text);
  border-radius: 6px;
  padding: .08rem .35rem;
}

.context-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  position: sticky;
  bottom: 0;
  border: 1px solid var(--meet-line);
  border-radius: 10px;
  background: var(--meet-bg);
  margin-top: 8px;
  padding: 10px 12px;
}

.context-input::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: calc(100% + 7px);
  width: 34px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 5px 7px, var(--meet-muted) 0 3px, transparent 3.5px),
    radial-gradient(circle at 17px 7px, var(--meet-muted) 0 3px, transparent 3.5px),
    radial-gradient(circle at 29px 7px, var(--meet-muted) 0 3px, transparent 3.5px);
  opacity: 0;
  pointer-events: none;
}

.context-input.is-typing::before {
  opacity: .55;
  animation: meet-typing-pulse 900ms ease-in-out infinite;
}

@keyframes meet-typing-pulse {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-2px); opacity: .8; }
}

.context-input input {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--meet-text);
  font-size: 12.96px;
}

.context-input button[type="submit"] {
  width: 42px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--meet-blue);
  color: var(--meet-invert);
  font-size: 0;
}

.context-input button[type="submit"]::after {
  content: ">";
  font-size: 19.44px;
  font-weight: 800;
  transform: translateX(1px);
}

.participant-rail {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--meet-line);
  background: var(--meet-bg);
  padding: 24px 20px;
  overflow: auto;
}

.participant-panel,
.ai-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.rail-head {
  height: 36px;
  margin-bottom: 14px;
  justify-content: flex-start;
}

.rail-head strong {
  font-size: 16.2px;
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.participant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 8px;
  border-top: 1px solid var(--meet-line);
}

.participant-shell.participant-self {
  border-top: 0;
}

.participant-shell.participant-self + .participant-shell:not(.participant-self) {
  border-top: 2px solid var(--meet-line-strong, var(--meet-line, #d0d7de));
  margin-top: 10px;
}

.participant-shell.participant-fixed-ai + .participant-shell:not(.participant-fixed) {
  border-top: 2px solid var(--meet-line-strong, var(--meet-line, #d0d7de));
  margin-top: 10px;
}

.participant-shell.participant-self .participant-row,
.participant-shell.participant-fixed .participant-row {
  grid-column: 1 / -1;
}

.participant-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--meet-text);
  padding: 10px 0;
  text-align: left;
}

.participant-row:hover,
.participant-row.active {
  border-color: var(--meet-line);
  background: transparent;
}

.participant-copy {
  min-width: 0;
}

.participant-copy strong,
.participant-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-copy strong {
  color: var(--meet-text);
  font-size: 12.96px;
  font-weight: 650;
}

.participant-copy span {
  color: var(--meet-muted);
  font-size: 10.53px;
  margin-top: 3px;
}

.participant-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--meet-muted) 68%, var(--meet-line));
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--meet-panel);
  flex: 0 0 auto;
}

.participant-shell.is-speaking .participant-level {
  border-color: var(--meet-green);
  background: var(--meet-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--meet-green) 18%, transparent);
}

.participant-action-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--meet-text);
  font-weight: 900;
}

.participant-menu {
  position: relative;
}

.participant-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--meet-text);
  font-size: 0;
  font-weight: 900;
  padding: 0;
}

.participant-menu summary::before,
.participant-action-placeholder::before {
  content: "";
  width: 4px;
  height: 18px;
  background:
    radial-gradient(circle, var(--meet-muted) 0 2px, transparent 2.5px) 0 0 / 4px 6px repeat-y;
}

.participant-action-placeholder {
  font-size: 0;
}

.participant-menu[open] summary {
  background: var(--meet-panel-soft);
}

.participant-menu div {
  right: 0;
  min-width: 170px;
  border-color: var(--meet-line-strong);
  border-radius: 10px;
  background: var(--meet-bg);
  box-shadow: var(--tm-shadow-card);
  padding: 10px;
}

.participant-menu button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--meet-text);
  justify-content: flex-start;
}

.ai-panel {
  margin-top: 20px;
}

.ai-panel summary {
  color: var(--meet-muted);
}

@media (max-width: 1280px) {
  .room-view .meet-room,
  .room-view .meet-room.with-admin {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  }

  .room-topbar {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .room-topbar .room-identity {
    grid-column: 1;
    justify-self: start;
  }

  .room-topbar-right {
    grid-column: 2;
  }

  .admin-drawer {
    position: fixed;
    top: 88px;
    bottom: 0;
    left: 0;
    z-index: 30;
    width: min(324px, calc(100vw - 24px));
    box-shadow: var(--tm-shadow-card);
    transform: translateX(calc(-100% - 24px));
    transition: transform .18s ease;
  }

  .admin-drawer.open {
    transform: translateX(0);
  }

  .context-pane {
    grid-column: 1;
  }

  .participant-rail {
    grid-column: 2;
  }

  .drawer-close {
    display: inline-flex;
  }

  .room-view .drawer-head {
    margin-bottom: 10px;
  }

  .drawer-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .room-view main {
    height: auto;
    overflow: visible;
  }

  .room-view .meet-room,
  .room-view .meet-room.with-admin {
    display: block;
    min-height: 100vh;
  }

  .room-topbar {
    min-height: auto;
    padding: 12px;
    overflow-x: auto;
  }

  .room-topbar .room-identity,
  .room-topbar .identity-items,
  .room-topbar .identity-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .room-topbar-right {
    margin-left: auto;
  }

  .room-session {
    display: none;
  }

  .admin-drawer {
    top: 0;
    left: 0;
  }

  .context-pane,
  .participant-rail {
    display: block;
    padding: 0 18px 24px;
  }

  .context-card {
    min-height: 70vh;
  }
}

/* Viewport workspace + collapsible side rails */
html,
body {
  height: 100%;
  overflow: hidden;
}

body:not(.room-view) main {
  height: calc(100dvh - 56px);
  overflow: hidden;
}

body:not(.room-view) .meet-shell {
  height: 100%;
  min-height: 0;
}

.room-view {
  --meet-topbar-h: 76px;
  --meet-rail-w: var(--tm-edge-rail-w, 15px);
  --meet-left-w: 324px;
  --meet-right-w: clamp(340px, 29vw, 460px);
  --tm-edge-tab-top: var(--meet-topbar-h);
  --tm-edge-tab-bottom: 0;
  --tm-edge-tab-z: 46;
  --tm-drawer-resize-line: 3px;
  --tm-drawer-resize-z: 47;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.room-view main {
  height: 100dvh !important;
  overflow: hidden !important;
}

.room-view .meet-room,
.room-view .meet-room.with-admin {
  display: grid !important;
  grid-template-rows: var(--meet-topbar-h) minmax(0, 1fr);
  grid-template-columns: var(--meet-left-w) minmax(0, 1fr) var(--meet-right-w);
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden;
}

.room-view .meet-room:not(.with-admin) {
  grid-template-columns: minmax(0, 1fr) var(--meet-right-w);
}

.room-view .room-topbar {
  min-height: 0;
  height: var(--meet-topbar-h);
  padding: 0 18px;
  overflow: hidden;
}

.room-view .room-session {
  display: none;
}

.room-view .admin-drawer {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition:
    border-color .18s ease,
    background-color .18s ease;
}

.room-view .admin-drawer-scroll,
.room-view .participant-rail-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.room-view .admin-drawer-scroll {
  flex: 1 1 auto;
  padding: 18px;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.room-view .admin-drawer-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.room-view .context-pane {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.room-view .participant-rail {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  transition:
    border-color .18s ease,
    background-color .18s ease;
}

.room-view .participant-rail-scroll {
  flex: 1 1 auto;
  direction: rtl;
  padding: 18px 0 18px 16px;
}

.room-view .participant-rail-scroll > * {
  direction: ltr;
  padding-right: 16px;
}

.room-view .meet-room:not(.with-admin) .context-pane {
  grid-column: 1;
}

.room-view .meet-room:not(.with-admin) .participant-rail {
  grid-column: 2;
}

.room-view.meet-left-collapsed .meet-room.with-admin {
  grid-template-columns: var(--meet-rail-w) minmax(0, 1fr) var(--meet-right-w);
}

.room-view.meet-right-collapsed .meet-room.with-admin {
  grid-template-columns: var(--meet-left-w) minmax(0, 1fr) var(--meet-rail-w);
}

.room-view.meet-left-collapsed.meet-right-collapsed .meet-room.with-admin {
  grid-template-columns: var(--meet-rail-w) minmax(0, 1fr) var(--meet-rail-w);
}

.room-view.meet-right-collapsed .meet-room:not(.with-admin) {
  grid-template-columns: minmax(0, 1fr) var(--meet-rail-w);
}

.room-view.meet-left-collapsed .admin-drawer,
.room-view.meet-right-collapsed .participant-rail {
  border-color: var(--meet-line);
  background: var(--meet-panel);
  padding: 0;
  overflow: hidden;
}

.room-view.meet-left-collapsed .admin-drawer-scroll,
.room-view.meet-right-collapsed .participant-rail-scroll {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.room-view .context-card {
  min-height: 0 !important;
}

.room-view textarea {
  resize: none;
}

.room-view .rail-toggle {
  display: inline-flex;
}

.room-view .rail-toggle.active {
  border-color: color-mix(in srgb, var(--meet-blue) 45%, var(--meet-line));
}

.room-view .tm-edge-tab:focus-visible {
  outline: 2px solid var(--meet-blue);
  outline-offset: -2px;
}

.meet-panel-resize {
  top: var(--meet-topbar-h);
  bottom: 0;
  width: var(--tm-drawer-resize-line);
  background: transparent !important;
  box-shadow: none !important;
  cursor: col-resize;
}

.meet-panel-resize::before {
  background: transparent !important;
}

.meet-panel-resize:hover,
.meet-panel-resizing .meet-panel-resize {
  background: color-mix(in srgb, var(--meet-blue) 28%, transparent) !important;
}

.meet-panel-resize:hover::before,
.meet-panel-resizing .meet-panel-resize::before {
  background: color-mix(in srgb, var(--meet-blue) 28%, transparent) !important;
}

.meet-panel-resize-left {
  left: calc(var(--meet-left-w) - var(--tm-drawer-resize-line));
}

.meet-panel-resize-right {
  right: calc(var(--meet-right-w) - var(--tm-drawer-resize-line));
}

.room-view:not(.meet-left-collapsed) .meet-panel-resize-left,
.room-view:not(.meet-right-collapsed) .meet-panel-resize-right {
  opacity: 1;
  pointer-events: auto;
}

.room-view.meet-left-collapsed .meet-panel-resize-left,
.room-view.meet-right-collapsed .meet-panel-resize-right {
  opacity: 0;
  pointer-events: none;
}

.meet-panel-resizing,
.meet-panel-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.meet-edge-tab-left {
  left: var(--meet-left-w);
}

.room-view.meet-left-collapsed .meet-edge-tab-left {
  left: 0;
}

.meet-edge-tab-right {
  right: var(--meet-right-w);
}

.room-view.meet-right-collapsed .meet-edge-tab-right {
  right: 0;
}

@media (max-width: 1280px) {
  .room-view {
    --meet-topbar-h: 74px;
    --meet-left-w: min(324px, calc(100vw - var(--meet-rail-w)));
    --meet-right-w: min(400px, calc(100vw - var(--meet-rail-w)));
  }

  .room-view .meet-room,
  .room-view .meet-room.with-admin,
  .room-view .meet-room:not(.with-admin),
  .room-view.meet-left-collapsed .meet-room.with-admin,
  .room-view.meet-right-collapsed .meet-room.with-admin,
  .room-view.meet-left-collapsed.meet-right-collapsed .meet-room.with-admin,
  .room-view.meet-right-collapsed .meet-room:not(.with-admin) {
    grid-template-columns: minmax(0, 1fr) var(--meet-rail-w);
  }

  .room-view .context-pane,
  .room-view .meet-room:not(.with-admin) .context-pane {
    grid-column: 1 / -1;
    padding-right: calc(14px + var(--meet-rail-w));
  }

  .room-view .room-topbar .room-identity,
  .room-view .room-topbar .identity-items {
    min-width: 0;
    overflow: hidden;
  }

  .room-view .room-topbar .identity-actions,
  .room-view .room-topbar .rail-toggle {
    display: none;
  }

  .room-view .admin-drawer {
    position: fixed;
    top: var(--meet-topbar-h);
    bottom: 0;
    left: 0;
    z-index: 42;
    width: var(--meet-left-w);
    padding: 0;
    transform: translateX(calc(-100% - 8px));
    transition: transform .18s ease;
  }

  .room-view .admin-drawer.open {
    transform: translateX(0);
  }

  .room-view.meet-left-collapsed .admin-drawer {
    padding: 0;
    transform: translateX(calc(-100% - 8px));
  }

  .room-view .participant-rail,
  .room-view .meet-room:not(.with-admin) .participant-rail {
    position: fixed;
    top: var(--meet-topbar-h);
    right: 0;
    bottom: 0;
    z-index: 41;
    width: var(--meet-right-w);
    padding: 0;
    transform: translateX(0);
    transition: transform .18s ease;
  }

  .room-view:not(.meet-panels-ready) .participant-rail,
  .room-view.meet-right-collapsed .participant-rail {
    padding: 0;
    transform: translateX(calc(100% + 8px));
  }

  .meet-panel-resize {
    display: none;
  }
}

@media (max-width: 900px) {
  .room-view {
    --meet-topbar-h: 70px;
    height: 100dvh;
  }

  .room-view main {
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .room-view .meet-room,
  .room-view .meet-room.with-admin {
    min-height: 0 !important;
  }

  .room-view .room-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    overflow: hidden;
  }

  .room-view .room-topbar .room-identity {
    min-width: 0;
    overflow: hidden;
  }

  .room-view .room-topbar .identity-items,
  .room-view .room-topbar .identity-actions {
    gap: 8px;
    overflow: hidden;
  }

  .room-view .room-topbar .identity-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .room-view .room-topbar .identity-actions,
  .room-view .room-topbar .identity-item:nth-child(n + 3),
  .room-view .room-topbar .rail-toggle,
  .room-view .room-session {
    display: none;
  }

  .room-view .room-topbar .identity-item,
  .room-view .room-topbar .identity-action {
    min-height: 34px;
    min-width: 0;
    padding: 0 10px;
  }

  .room-view .context-pane {
    display: flex;
    min-height: 0;
    padding: 10px calc(10px + var(--meet-rail-w)) 10px 10px;
  }

  .room-view .context-card {
    min-height: 0 !important;
  }

}

/* Shared app menu dropdowns are positioned from the menu slot. Keep the
   topbar itself unclipped while preserving truncation on identity text. */
.room-view .room-topbar {
  overflow: visible;
  z-index: 80;
}

.room-view .room-menu-slot,
.room-view .room-menu-slot.tm-app-menu {
  position: relative;
  z-index: 100;
  overflow: visible;
}

.room-view .room-topbar .tm-app-menu-panel {
  z-index: 120;
}
