.topbar { padding-inline: max(32px, env(safe-area-inset-left)); gap: 20px; }
body.is-lobby { overflow-y: auto; }
body.is-lobby .top-actions { display: flex; }
body.is-lobby #copyLinkButton, body.is-lobby .room-title-row,
body.is-lobby .call-connection-summary,
.room-lobby-toolbar { display: none; }
.room-lobby { padding: 52px 32px 40px; }
.room-lobby-inner { width: min(1088px, 100%); gap: 30px; }
.room-lobby-heading { gap: 12px; }
.room-lobby-heading h1 { font-size: 38px; font-weight: 700; line-height: 1.16; letter-spacing: -.03em; }
.room-lobby-heading p { font-size: 16px; line-height: 1.5; }
.room-lobby-form { gap: 12px; }
.room-lobby-form label { gap: 9px; font-size: 13px; }
.lobby-room-input-wrap { display: flex; align-items: center; gap: 12px; padding-left: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-soft); }
.lobby-room-input-wrap:focus-within { border-color: var(--blue); outline: 2px solid var(--info-bg); outline-offset: 2px; }
.lobby-room-input-wrap > .button-icon { flex-shrink: 0; color: var(--muted); }
.lobby-room-input-wrap #lobbyRoomInput { width: 100%; min-width: 0; min-height: 54px; padding: 12px 15px 12px 0; background: transparent; border: 0; border-radius: 12px; font-size: 15px; box-shadow: none; outline: none; }
.room-lobby-form > button { min-height: 56px; border-radius: 12px; padding-inline: 24px; font-size: 15px; }
.lobby-room-status { margin: -16px 0 0; font-size: 14px; color: var(--red); line-height: 1.5; }
.recent-rooms { padding-top: 8px; border: 0; gap: 18px; }
.recent-rooms .section-heading h2 { font-size: 18px; font-weight: 600; }
.recent-room-count { font-size: 13px; color: var(--muted); }
.recent-room-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recent-room-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 36px; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--panel-soft); position: relative; min-width: 0; transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.recent-room-card.is-pinned { border-color: var(--line); }
.recent-room-card:hover, .recent-room-card:focus-within { border-color: var(--muted); background: var(--panel); }
.recent-room-card.has-open-menu { z-index: 30; }
.recent-room-top { display: contents; }
.recent-room-monogram { grid-column: 1; grid-row: 1; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-strong); color: var(--text); font-size: 12px; font-weight: 600; }
.recent-room-pin-label { position: absolute; left: 32px; top: 30px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; color: var(--green); background: var(--panel-soft); }
.recent-room-pin-label .button-icon { width: 12px; height: 12px; }
.recent-room-menu { grid-column: 3; grid-row: 1; position: relative; }
.recent-room-menu-trigger { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; font-size: 23px; line-height: 1; cursor: pointer; }
.recent-room-menu-trigger::-webkit-details-marker { display: none; }
.recent-room-menu-trigger:hover { background: var(--panel-strong); }
.recent-room-menu-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.recent-room-menu .recent-room-actions { position: absolute; right: 0; top: calc(100% + 6px); z-index: 31; display: flex; flex-direction: column; align-items: stretch; width: min(264px, calc(100vw - 52px)); padding: 6px; gap: 3px; color: var(--text); background: var(--panel-strong); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.recent-room-actions .recent-room-icon-button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-height: 42px; border: 0; background: transparent; font-size: 13px; font-weight: 400; padding: 9px; text-align: left; border-radius: 7px; }
.recent-room-actions .recent-room-icon-button:hover { background: var(--panel); }
.recent-room-actions .button-icon { width: 17px; height: 17px; flex-shrink: 0; }
.recent-room-id { display: block; padding: 10px 9px 6px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; color: var(--muted); border-top: 1px solid var(--line); }
.recent-room-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; height: 100%; width: 100%; border-radius: 4px; }
.recent-room-main strong { display: block; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.recent-room-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; color: var(--muted); }
.recent-room-meta small { font-size: 12px; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }
.recent-room-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.recent-room-status button { min-height: 36px; }
.recent-room-empty, .recent-room-load-error { grid-column: 1 / -1; margin: 0; padding: 28px 0; line-height: 1.6; max-width: 65ch; color: var(--muted); font-size: 14px; }
.recent-room-load-error { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--red); }
.recent-room-skeleton { min-height: 180px; background: var(--panel-soft); border-radius: 14px; border: 1px solid var(--line); }
body:not(.is-lobby) .brand > .brand-mark, body:not(.is-lobby) .brand-copy > strong { display: none; }
body:not(.is-lobby) #roomLabel { font-size: 17px; font-weight: 600; max-width: min(50vw, 560px); }
.call-connection-summary { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.call-connection-summary::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--muted); }
.call-connection-summary[data-connected="true"]::before { background: var(--green); }
.app-layout, .app-layout.chat-collapsed { grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: minmax(0, 1fr); height: calc(var(--app-viewport-height, 100dvh) - var(--topbar-height, 72px)); min-height: 0; padding: 0; }
.app-layout:not(.chat-collapsed) { grid-template-columns: minmax(0, 1fr) var(--chat-panel-width, 380px); }
.stage { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 28px 12px; gap: 16px; }
.call-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 34px; flex-shrink: 0; }
.call-participant-slot { min-width: 0; flex: 1; }
.call-toolbar .participant-sidebar { padding: 0; border: 0; background: none; min-height: 0; overflow: visible; }
.call-toolbar #participantList { display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 0; }
.call-toolbar .participant-item { width: auto; height: auto; min-height: 34px; display: flex; gap: 8px; min-width: 0; }
.call-toolbar .participant-avatar { width: 28px; height: 28px; min-width: 28px; min-height: 28px; font-size: 11px; }
.call-toolbar .participant-status-dots { display: none; }
.participant-caption { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.participant-display-name { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.call-toolbar .participant-display-name { font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-toolbar .participant-mic-caption { display: none; }
.participant-mic-caption { color: var(--muted); font-size: 12px; line-height: 1.5; }
.participant-item.is-speaking .participant-mic-caption { color: var(--green); }
.participant-sidebar .participant-popover { position: fixed; transform: none; min-width: min(230px, calc(100vw - 24px)); max-width: min(290px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 24px)); overflow-y: auto; overscroll-behavior: contain; z-index: 65; text-align: left; }
.stage-view-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.stage-source-count { color: var(--muted); font-size: 12px; }
.stage-view-switch { display: flex; gap: 3px; border: 1px solid var(--line); background: var(--panel-soft); padding: 4px; border-radius: 10px; }
.stage-view-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 10px; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; }
.stage-view-switch button[aria-pressed="true"] { color: var(--text); background: var(--panel-strong); }
.stage-view-switch .button-icon { width: 15px; height: 15px; }
.grid-layout-icon { width: 14px; height: 14px; display: block; background: linear-gradient(currentColor, currentColor) left top / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) right top / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) left bottom / 5px 5px no-repeat, linear-gradient(currentColor, currentColor) right bottom / 5px 5px no-repeat; }
.stage-video-layout { flex: 1 1 0; height: auto; min-height: 0; gap: 16px; }
.stage.has-tile-strip .stage-video-layout { grid-template-columns: minmax(0, 1fr) clamp(210px, 23vw, 304px); }
#videoGrid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); height: 100%; min-height: 0; align-content: stretch; }
#videoGrid.grid-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#videoGrid.grid-layout.single-tile-layout { grid-template-columns: minmax(0, 1fr); }
#videoGrid > .video-tile:not(:fullscreen):not(.is-fullscreen) { position: relative; inset: auto; width: 100%; height: 100%; max-height: none; min-height: 0; aspect-ratio: auto; border-radius: 14px; overflow: hidden; }
.video-tile:not(:fullscreen):not(.is-fullscreen) video { object-fit: contain; }
.tile-strip-panel { border: 0; background: transparent; padding: 0; gap: 12px; min-height: 0; }
.tile-strip-header { display: flex; justify-content: space-between; padding: 0 3px; color: var(--muted); }
.tile-strip-header strong, #tileStripCount { font-size: 12px; font-weight: 400; }
.tile-strip-list { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; padding: 0; }
.tile-strip-list > .video-tile.is-pip:not(:fullscreen):not(.is-fullscreen) { position: relative; inset: auto; flex: 0 0 auto; width: 100%; height: auto; min-height: 132px; aspect-ratio: 16 / 10; border-radius: 12px; }
.tile-strip-list > .video-tile.is-pip.is-collapsed:not(:fullscreen):not(.is-fullscreen) { display: block; min-height: 48px; height: 48px; aspect-ratio: auto; align-self: start; }
.tile-strip-list > .video-tile.is-pip.is-collapsed > video { display: none; }
.tile-strip-list > .video-tile.is-pip.is-collapsed .tile-footer { position: absolute; inset: 0 44px 0 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 0; margin: 0; padding: 8px 12px; border: 0; background: transparent; backdrop-filter: none; }
.tile-strip-list > .video-tile.is-pip.is-collapsed .stage-focus-button { display: none; }
.tile-strip-list > .video-tile.is-pip.is-collapsed .hide-button { top: 50%; right: 4px; left: auto !important; width: 40px; height: 40px; transform: translateY(-50%); }
.tile-strip-list .video-tile.is-pip .tile-footer { margin: 5px; min-width: 0; }
.tile-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pin-tile-button { left: auto; right: 10px; top: 10px; }
.tile-strip-list .video-tile.is-pip .pin-tile-button { left: auto; right: 7px; }
.pin-tile-button[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.stage-focus-button { margin-left: auto; background: none; color: var(--text); border: 0; font-size: 12px; white-space: nowrap; padding: 5px 6px; min-height: 30px; }
.is-featured .stage-focus-button, .single-tile-layout .stage-focus-button { display: none; }
.voice-mode .call-toolbar { display: none; }
.voice-mode .stage-empty { gap: 24px; padding: 28px 20px; }
.voice-mode .stage-empty h2 { font-size: 22px; font-weight: 500; }
#stageCopyLinkButton { display: none !important; }
.stage-empty .participant-sidebar { order: 2; flex: 0 0 auto; height: auto; padding: 25px 0; border: 0; width: 100%; background: transparent; overflow: visible; }
.stage-empty #participantList { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 54px; padding: 0; margin: 0; overflow: visible; }
.stage-empty .participant-item { min-width: 0; width: 150px; height: auto; display: flex; flex-direction: column; gap: 24px; align-items: center; justify-content: flex-start; }
.stage-empty .participant-avatar { width: 104px; height: 104px; min-width: 104px; min-height: 104px; font-size: 32px; font-weight: 500; }
.stage-empty .participant-status-dots { display: none; }
.stage-empty .participant-avatar-face { background: var(--panel-strong); }
.stage-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; align-self: center; flex-shrink: 0; max-width: 100%; width: auto; margin: 0 0 13px; padding: 8px 0 18px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.stage > .stage-controls { position: relative; inset: auto; transform: none; row-gap: 28px; }
.stage-controls > .control-button, .stage-controls > .mobile-audio-output { position: relative; flex-shrink: 0; }
.stage-controls > .control-button::after { content: attr(data-caption); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1.2; font-weight: 400; color: var(--muted); white-space: nowrap; pointer-events: none; }
.stage-controls > #joinButton { min-width: 52px; width: 52px; height: 48px; padding: 0; font-size: 0; margin-left: 18px; }
.stage-controls > #joinButton::before { content: ""; width: 20px; height: 20px; background: currentColor; mask: url('/icons/ui/log-out.svg') center / contain no-repeat; }
.stage-controls > #joinButton::after { font-size: 11px; }
.more-actions-icon { font-size: 24px; line-height: 1; margin-top: -8px; }
.call-more-actions { position: absolute; right: 32px; bottom: calc(100% + 8px); z-index: 45; min-width: 230px; padding: 7px; border-radius: 12px; background: var(--panel-strong); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.call-more-actions > .control-button { display: flex; gap: 10px; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px; padding: 9px 10px; background: transparent; border: 0; }
.call-more-actions > .control-button::after { content: attr(aria-label); color: var(--text); font-size: 13px; line-height: 1.4; text-align: left; }
.call-more-actions > .control-button:hover { background: var(--panel); }
.icon-message-circle { --icon-url: url('/icons/ui/message-circle.svg'); }
.recent-rooms .section-heading .recent-room-count { padding: 0; background: none; border: 0; border-radius: 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.stage-controls > .control-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
.stage-controls > .control-button .control-icon, .stage-controls > .control-button .button-icon { width: 20px; height: 20px; }
.stage-controls > #joinButton { display: flex; align-items: center; justify-content: center; gap: 0; width: 44px; min-width: 44px; height: 44px; min-height: 44px; line-height: 0; color: var(--red); background: var(--danger-bg); border-color: var(--danger-line); }
.stage-controls > .control-button.is-media-off,
.stage-controls > #joinButton { background: rgba(47, 30, 35, 0.95); }
.stage-controls > #joinButton::before { display: block; position: static; width: 20px; height: 20px; flex: 0 0 20px; margin: 0; transform: none; }
.call-toolbar .participant-caption { gap: 3px; }
.participant-caption > .participant-status-dots { display: flex; min-width: 62px; position: static; justify-content: center; gap: 4px; transform: none; padding: 0; margin: 0; }
.participant-caption .participant-status-dot { width: 18px; height: 18px; min-width: 18px; padding: 0; border-width: 1px; }
.participant-caption .participant-status-dot .button-icon { width: 12px; height: 12px; }
.call-more-actions .control-icon { width: 20px; height: 20px; flex-shrink: 0; }
.screen-share-menu, .recording-menu { left: 50%; transform: translateX(-50%); }
.side-panel { position: relative; inset: auto; width: auto; height: auto; grid-column: 2; grid-row: 1; grid-template-rows: minmax(0, 1fr); margin: 22px 24px 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); gap: 0; overflow: visible; }
.app-layout.chat-collapsed .side-panel { display: grid; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.chat-panel-toggle { left: -40px; right: auto; top: 16px; bottom: auto; width: 40px; height: 44px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.app-layout.chat-collapsed .chat-panel-toggle { left: 4px; right: auto; top: 16px; bottom: auto; width: 36px; height: 72px; border: 1px solid var(--line); border-radius: 8px; }
.chat-panel { min-width: 0; min-height: 0; }
.chat-panel .section-heading h2 { font-size: 16px; font-weight: 600; }
.chat-panel .section-heading { min-height: 36px; gap: 10px; }
.chat-message { padding: 0; background: transparent; border: 0; }
.chat-messages { gap: 22px; padding: 18px 0; }
.chat-message-meta { margin-bottom: 7px; gap: 8px; }
.chat-message-meta strong { font-size: 12px; }
.chat-message-meta time { font-size: 11px; }
.chat-message p { font-size: 14px; line-height: 1.55; }
.chat-message.is-own-message { padding: 13px; background: var(--success-bg); border-radius: 11px; margin-left: 14px; }
.chat-message.is-own-message .chat-message-meta strong { color: var(--green); }
.chat-form { padding-top: 12px; border-top: 1px solid var(--line); }
.chat-input-row { gap: 5px; }
.chat-form #chatInput { font-size: 14px; min-width: 0; }
.call-connection-notice { flex-shrink: 0; padding: 11px 14px; color: var(--amber); background: var(--warning-bg); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.prejoin-kicker { display: none; }
.prejoin-card { border-radius: 16px; background: var(--panel-soft); }
body.is-prejoin { overflow-y: auto; }
.video-tile:is(:fullscreen, .is-fullscreen) .fullscreen-controls-dock .stage-controls { width: max-content; max-width: 100%; }

@media (max-width: 760px), (pointer: coarse) {
  .video-tile:is(:fullscreen, .is-fullscreen) .fullscreen-controls-dock .stage-controls { --mobile-call-control-size: 36px; gap: 22px 6px; min-height: 0; padding: 4px 0 18px; }
  .video-tile:is(:fullscreen, .is-fullscreen) .fullscreen-controls-dock .stage-controls > .control-button,
  .fullscreen-controls-dock .stage-controls > #joinButton,
  .video-tile:is(:fullscreen, .is-fullscreen) .fullscreen-controls-dock .stage-controls .mobile-audio-output > .control-button { width: 36px; min-width: 36px; height: 36px; min-height: 36px; border-radius: 9px; }
  .fullscreen-controls-dock .stage-controls > #joinButton { margin-left: 4px; padding: 0; font-size: 0; }
  .fullscreen-controls-dock .stage-controls .control-button .control-icon,
  .fullscreen-controls-dock .stage-controls .control-button .button-icon { width: 18px; height: 18px; }
  .fullscreen-controls-dock .stage-controls > #joinButton::before { width: 18px; height: 18px; flex-basis: 18px; }
  .fullscreen-controls-dock .stage-controls > .control-button::after,
  .fullscreen-controls-dock .stage-controls > #joinButton::after { font-size: 10px; }
}

@media (min-width: 761px) {
  .chat-resize-handle { display: block; }
  .app-layout:not(.chat-collapsed) .stage { padding-right: 52px; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .recent-room-card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  @starting-style { .call-more-actions:not([hidden]) { opacity: 0; transform: translateY(6px); } }
  .call-more-actions { transition: opacity 170ms ease-out, transform 170ms ease-out; }
}
@media (max-width: 1100px) {
  .room-lobby { padding: 40px 28px; }
  .stage { padding: 18px 22px 10px; }
  .call-toolbar { flex-wrap: wrap; gap: 12px; }
  .stage-view-tools { margin-left: auto; }
  .side-panel { margin: 18px 18px 18px 0; padding: 14px; }
  .chat-with-streams .tile-strip-panel { display: none; }
  .chat-with-streams .stage.has-tile-strip .stage-video-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .topbar { position: relative; flex-wrap: nowrap; height: 72px; min-height: 72px; padding: 10px 22px; gap: 12px; }
  .top-actions { flex: 0 0 auto; display: flex; width: auto; gap: 7px; }
  .top-actions .top-action-label { display: none; }
  .top-actions .ghost-button { width: 40px; min-height: 40px; padding: 0; }
  .app-layout, .app-layout.chat-collapsed { min-height: 0; height: calc(var(--app-viewport-height, 100dvh) - var(--topbar-height, 72px)); }
  .call-toolbar .participant-sidebar { padding: 0; }
  .room-lobby-form { grid-template-columns: minmax(0, 1fr) auto; }
  .recent-room-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body:not(.is-lobby):not(.is-prejoin) { overflow: hidden; }
  .topbar { height: calc(64px + env(safe-area-inset-top)); min-height: calc(64px + env(safe-area-inset-top)); padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
  .brand { flex: 1 1 auto; gap: 8px; }
  .brand-copy { min-width: 0; }
  body:not(.is-lobby) #roomLabel { font-size: 15px; max-width: 46vw; }
  .call-connection-summary { font-size: 11px; }
  .top-actions { gap: 4px; }
  body:not(.is-lobby) #friendsButton { display: none; }
  .top-actions .ghost-button { width: 36px; min-height: 40px; }
  .room-lobby { padding: 32px 20px; }
  .room-lobby-inner { gap: 25px; }
  .room-lobby-heading h1 { font-size: 30px; }
  .room-lobby-heading p { font-size: 14px; max-width: 36ch; }
  .room-lobby-form { grid-template-columns: 1fr; gap: 10px; }
  .lobby-room-input-wrap #lobbyRoomInput { min-height: 50px; font-size: 16px; }
  .room-lobby-form > button { min-height: 48px; }
  .recent-room-list { grid-template-columns: 1fr; gap: 12px; }
  .recent-room-card { grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 10px; padding: 12px 14px; }
  .recent-room-menu-trigger { width: 44px; height: 44px; }
  .app-layout, .app-layout.chat-collapsed, .app-layout:not(.chat-collapsed) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; max-width: 100%; width: 100%; height: calc(var(--app-viewport-height, 100dvh) - var(--topbar-height, 64px)); }
  .stage { grid-column: 1; grid-row: 1; height: 100%; min-height: 0; max-height: none; padding: 14px 14px max(8px, env(safe-area-inset-bottom)); gap: 12px; overflow: hidden; }
  .call-toolbar { gap: 12px; flex-shrink: 0; }
  .call-participant-slot { flex-basis: 100%; }
  .call-toolbar #participantList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; overflow: visible; }
  .call-toolbar .participant-item { min-height: 30px; }
  .call-toolbar .participant-avatar { width: 26px; height: 26px; min-width: 26px; min-height: 26px; }
  .call-toolbar .participant-display-name { max-width: 70px; font-size: 11px; }
  .stage-view-tools { width: 100%; justify-content: space-between; }
  .stage-view-switch button { min-height: 36px; padding: 7px 10px; }
  .stage.has-tile-strip .stage-video-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 116px; gap: 12px; }
  .stage.has-tile-strip #videoGrid { grid-column: 1; grid-row: 1; }
  .stage.has-tile-strip .tile-strip-panel { grid-column: 1; grid-row: 2; order: initial; }
  #videoGrid, #videoGrid.focus-layout { height: 100%; min-height: 0; max-height: none; }
  #videoGrid.grid-layout { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(210px, 1fr); overflow-y: auto; align-content: start; }
  .tile-strip-panel { min-height: 0; height: 116px; gap: 5px; }
  .tile-strip-header { min-height: 18px; }
  .tile-strip-list { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; gap: 8px; overflow: auto hidden; height: 91px; }
  .tile-strip-list > .video-tile.is-pip:not(:fullscreen):not(.is-fullscreen) { width: 120px; min-height: 0; height: 100%; border-radius: 9px; }
  .tile-strip-list > .video-tile.is-pip.is-collapsed:not(:fullscreen):not(.is-fullscreen) { width: 180px; }
  .tile-strip-list .video-tile.is-pip .tile-footer { font-size: 11px; min-height: 24px; padding: 4px 6px; margin: 0; border: 0; background: var(--panel); gap: 3px; }
  .tile-strip-list .tile-footer > span:last-of-type { display: none; }
  .tile-strip-list .stage-focus-button { font-size: 11px; padding: 2px; min-height: 24px; }
  .tile-strip-list .video-tile.is-pip .tile-action { width: 24px; height: 24px; }
  .tile-strip-list .video-tile.is-pip .pin-tile-button { display: none; }
  .tile-strip-list .video-tile.is-pip .hide-button { left: 33px; }
  .tile-strip-list .video-tile.is-collapsed .tile-footer > span:last-of-type { display: inline; }
  .tile-strip-list .video-tile.is-pip .screen-annotation-button { display: none; }
  .voice-mode .stage-empty { gap: 16px; padding: 24px 0; }
  .voice-mode .stage-empty h2 { font-size: 19px; }
  .stage-empty .participant-sidebar { padding: 20px 0; }
  .stage-empty #participantList { gap: 26px 24px; }
  .stage-empty .participant-item { width: calc((100% - 24px) / 2); max-width: 140px; gap: 15px; }
  .stage-empty .participant-avatar { width: 70px; height: 70px; min-width: 70px; min-height: 70px; font-size: 26px; }
  .stage-empty .participant-caption { gap: 7px; max-width: 100%; }
  .stage-empty .participant-display-name { font-size: 13px; }
  .stage-empty .participant-mic-caption { font-size: 11px; }
  .stage-controls { gap: 6px; padding: 6px 0 20px; margin: 0; min-height: 70px; transform: none; }
  .stage-controls > .control-button, .stage-controls > #joinButton { min-width: 44px; width: 44px; height: 44px; min-height: 44px; }
  .stage-controls > #joinButton { margin-left: 12px; }
  .stage-controls > .control-button::after { font-size: 11px; }
  .call-more-actions { right: 4px; min-width: 230px; max-width: calc(100vw - 32px); }
  .app-layout.mobile-chat-open .stage { display: flex; }
  .side-panel, .app-layout.mobile-chat-open .side-panel { position: absolute; inset: 0 0 84px; margin: 0; grid-column: 1; grid-row: 1; z-index: 30; padding: 15px; border-radius: 0; border: 0; background: var(--bg); height: auto; min-height: 0; }
  .app-layout { position: relative; }
  .app-layout.chat-collapsed .side-panel { display: block; inset: 0; pointer-events: none; }
  .app-layout .chat-panel-toggle, .app-layout.chat-collapsed .chat-panel-toggle,
  html.is-mobile-device .app-layout .chat-panel-toggle, html.is-mobile-device .app-layout.chat-collapsed .chat-panel-toggle { position: fixed; left: auto; right: 0; top: auto; bottom: calc(var(--call-controls-height, 70px) + 26px + env(safe-area-inset-bottom)); width: 46px; height: 48px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; pointer-events: auto; }
  .app-layout.mobile-chat-open .chat-panel-toggle, html.is-mobile-device .app-layout.mobile-chat-open .chat-panel-toggle { position: absolute; left: auto; right: 0; top: 15px; bottom: auto; }
  .mobile-chat-controls, .app-layout.mobile-chat-open .mobile-chat-controls { display: none; }
  .app-layout.mobile-chat-open .chat-panel .section-heading { padding-right: 40px; }
  .chat-panel { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .chat-messages { min-height: 0; overflow-y: auto; }
  .chat-form #chatInput { font-size: 16px; }
  .voice-mode .call-toolbar { display: none; }
}
@media (max-width: 350px) {
  .topbar { padding-inline: 12px; }
  .stage { padding-inline: 8px; }
  .stage-controls { gap: 4px; }
  .stage-controls > .control-button, .stage-controls > #joinButton { min-width: 44px; width: 44px; }
  .stage-empty .participant-avatar { width: 64px; height: 64px; min-width: 64px; min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .recent-room-card, .call-more-actions, .stage-view-switch button { transition: none; }
  .recent-room-card:hover { transform: none; }
}
