/* =====================================================================
   Phone layout polish: the office home cards and the chat screen.

   Scope: html.vo-phone (the Android app, any orientation) and html.vo-narrow
   (any window up to 760px wide, set by the index.html boot script). Desktop and
   wide web layouts never get these rules. Load this after office.css,
   nav-rail.css and android-phone.css.
   ===================================================================== */

/* Phone-only pieces stay hidden everywhere else. */
.vo-floor-heading,
.vo-chat-back,
.vo-day-sep { display: none; }

/* ---------- Brand palette on phones ---------- */
html:is(.vo-phone, .vo-narrow) {
  --vo-bg: #0a1124;
  --vo-bg-elev: #0e1730;
  --vo-panel: #0e1730;
  --vo-floor: #0a1124;
  --vo-floor-card: #121d3a;
  --vo-floor-card-empty: #0f1932;
  --vo-ink: #f3f5fa;
  --vo-muted: #9aa5bf;
  --vo-line: #22304f;
  --vo-accent: #4d8bff;
  --vo-accent-ink: #ffffff;
  --vo-accent-soft: rgba(77, 139, 255, 0.16);
  --vo-accent-hi: #6b9fff;
  --vo-link: #6b9fff;
  --vo-focus: #6b9fff;
  --vo-own: #4d8bff;
  --vo-input: #0a1124;
  --vo-msg: #121d3a;
  --vo-hover: rgba(243, 245, 250, 0.06);
  --vo-m-mine: #0b5cff;
  --vo-m-mint: #12b886;
  --vo-m-sun: #ffc83d;
  --vo-m-coral: #ff7a45;
  --vo-m-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"]:is(.vo-phone, .vo-narrow) {
  --vo-bg: #faf9f6;
  --vo-bg-elev: #ffffff;
  --vo-panel: #ffffff;
  --vo-floor: #f5f3ee;
  --vo-floor-card: #ffffff;
  --vo-floor-card-empty: #fdfcfa;
  --vo-ink: #0b1b3f;
  --vo-muted: #5b6680;
  --vo-line: #e6e2d8;
  --vo-accent: #0b5cff;
  --vo-accent-soft: rgba(11, 92, 255, 0.1);
  --vo-accent-hi: #0047d6;
  --vo-link: #0b5cff;
  --vo-focus: #0b5cff;
  --vo-own: #0b5cff;
  --vo-input: #ffffff;
  --vo-msg: #ffffff;
  --vo-hover: rgba(11, 27, 63, 0.05);
  --vo-m-card-shadow: 0 1px 2px rgba(11, 27, 63, 0.05), 0 8px 20px -14px rgba(11, 27, 63, 0.25);
}

html[data-theme="light"]:is(.vo-phone, .vo-narrow) .vo-shell {
  --ro-tile-line: #e6e2d8;
  --ro-tile-line-hi: #cfc9bb;
  --ro-chip: rgba(11, 27, 63, 0.05);
}

html:is(.vo-phone, .vo-narrow) body { background: var(--vo-bg); }

/* ---------- Home: one column of room cards ---------- */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-frame {
  padding: 8px calc(16px + env(safe-area-inset-right)) 24px calc(16px + env(safe-area-inset-left));
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-meetings {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor { gap: 6px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-heading {
  display: block;
  grid-column: 1 / -1;
  margin: 14px 4px 0;
  color: var(--vo-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room {
  min-height: 0;
  gap: 10px;
  padding: 14px 56px 14px 16px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-floor-card);
  box-shadow: var(--vo-m-card-shadow);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--empty {
  min-height: 68px;
  justify-content: center;
  background: var(--vo-floor-card-empty);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--empty .vo-room__people:empty { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-skeleton__grid { grid-template-columns: minmax(0, 1fr); }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-skeleton__tile.wide { grid-column: auto; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--own {
  border-color: color-mix(in srgb, var(--vo-accent) 55%, var(--vo-line));
  background: color-mix(in srgb, var(--vo-accent) 6%, var(--vo-floor-card));
  box-shadow: var(--vo-m-card-shadow);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--selected:not(.vo-room--own) {
  border-color: var(--vo-accent);
  box-shadow: 0 0 0 1px var(--vo-accent);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__label {
  gap: 2px;
  padding-right: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__name {
  display: block;
  overflow: hidden;
  color: var(--vo-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--empty .vo-room__label { color: inherit; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__kind {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--vo-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

/* A mint dot marks rooms with people in them. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty) .vo-room__kind::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vo-m-mint);
}

/* Room menu: always visible, a full 40px tap target. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__menu {
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 12px;
  font-size: 18px;
  opacity: 1;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty) .vo-room__menu,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__booking ~ .vo-room__menu {
  top: 8px;
  margin-top: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__icon {
  top: 50%;
  right: 50px;
  margin-top: -8px;
  color: var(--vo-muted);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty) .vo-room__icon { top: 20px; margin-top: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock {
  top: 50%;
  right: 50px;
  margin-top: -6px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room-menu {
  top: auto;
  right: 8px;
  z-index: 6;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room-menu button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__booking {
  font-size: 12px;
  padding: 2px 8px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__people {
  gap: 10px 12px;
  margin-right: -40px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person { width: 60px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-avatar {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person__name,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person__caption {
  max-width: 60px;
  font-size: 11.5px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-tabs {
  padding: 6px calc(16px + env(safe-area-inset-right)) 6px calc(16px + env(safe-area-inset-left));
}

/* ---------- Chat: list screen and conversation screen ---------- */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-pane {
  background: var(--vo-bg);
  overflow-x: hidden;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tabs {
  flex: 0 0 auto;
  margin: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
  padding: 3px;
  border-radius: 12px;
  background: var(--ro-chip);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tabs button {
  min-height: 40px;
  font-size: 14px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tabs .vo-unread {
  background: var(--vo-m-coral);
}

/* List screen: the conversations fill the screen; no message pane under them. */
html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="list"] .vo-chat-list {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  padding: 0 0 12px;
  border-bottom: 0;
  overflow-y: auto;
}

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="list"] > :is(.vo-thread-bar, .vo-channel-bar, .vo-chat-messages, .vo-chat-compose, .vo-typing, .vo-attach-name) {
  display: none;
}

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="list"] .vo-dm-tool:not([data-new-group]) { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-list .vo-chat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 10px calc(16px + env(safe-area-inset-right)) 10px calc(16px + env(safe-area-inset-left));
  border: 0;
  border-bottom: 1px solid var(--vo-line);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-list .vo-chat-item.active { background: transparent; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-item-top { min-width: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-item-top strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-item[data-unread]:not([data-unread="0"]) .vo-chat-item-top strong { font-weight: 700; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-preview {
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.35;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-list .vo-unread {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: var(--vo-accent);
  font-size: 12px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-dm-tools { padding: 4px 16px 8px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-dm-tool {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tools { margin: 12px 16px 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tools summary { min-height: 40px; font-size: 14px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tools__row { flex-wrap: wrap; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-tools__row > * { min-width: 0; flex: 1 1 140px; }

/* Conversation screen: a header with a back arrow; the list and tabs step aside.
   The DM's own tools (huddle, knock, add people) stay, as a row under the header. */
html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-chat-tabs { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-chat-list {
  flex: 0 0 auto;
  max-height: none;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
  overflow: visible;
}

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-chat-list > :not(.vo-dm-tools),
html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-dm-tool[data-new-group] { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-dm-tools {
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
}

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] .vo-dm-tools:not(:has(.vo-dm-tool:not([data-new-group]))) { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-chat-pane[data-mview="conversation"] > :is(.vo-channel-bar, .vo-thread-bar) { order: -1; }

html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-channel-bar, .vo-thread-bar) {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: calc(6px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 6px calc(4px + env(safe-area-inset-left));
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
  font-size: 16px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-channel-bar > strong,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:is(.vo-phone, .vo-narrow) .vo-chat-back {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--vo-ink);
  cursor: pointer;
}

html:is(.vo-phone, .vo-narrow) .vo-chat-back .vo-glyph,
html:is(.vo-phone, .vo-narrow) .vo-chat-back svg { width: 22px; height: 22px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar .vo-icon-btn { width: 44px; height: 44px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-channel-manage summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-channel-manage__menu {
  right: 8px;
  left: 8px;
  width: auto;
  max-width: none;
}

/* ---------- Messages: bubbles grouped by sender ---------- */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-messages {
  padding: 8px calc(12px + env(safe-area-inset-right)) 12px calc(12px + env(safe-area-inset-left));
  overflow-x: hidden;
  background: var(--vo-bg);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-stack {
  gap: 0;
  min-width: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-day-sep {
  display: flex;
  justify-content: center;
  margin: 16px 0 6px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-day-sep span {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ro-chip);
  color: var(--vo-muted);
  font-size: 12px;
  font-weight: 600;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  width: fit-content;
  min-width: 64px;
  max-width: min(84%, 560px);
  margin: 10px 0 0;
  padding: 7px 12px 6px;
  border: 1px solid var(--vo-line);
  border-radius: 18px 18px 18px 6px;
  background: var(--vo-bg-elev);
  color: var(--vo-ink);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  box-shadow: none;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg:hover { background: var(--vo-bg-elev); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--cont {
  margin-top: 3px;
  border-top-left-radius: 6px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine {
  align-self: flex-end;
  border-color: transparent;
  border-radius: 18px 18px 6px 18px;
  background: var(--vo-m-mine);
  color: #ffffff;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine:hover { background: var(--vo-m-mine); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine.vo-msg--cont {
  border-top-left-radius: 18px;
  border-top-right-radius: 6px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine :is(a, .vo-mention) { color: #ffffff; text-decoration: underline; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg.bookmarked { box-shadow: 0 0 0 2px var(--vo-m-sun); }

/* Sender name on top (others only, first of a run); time small at the bottom. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg > .meta { display: contents; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg > .meta > strong {
  order: -1;
  margin-bottom: 1px;
  overflow: hidden;
  color: var(--vo-accent);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-msg--mine, .vo-msg--cont) > .meta > strong,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-sep { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg > .meta > :is(.vo-msg-time, span:not(.vo-msg-sep)) {
  order: 20;
  align-self: flex-end;
  margin-top: 1px;
  color: var(--vo-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine > .meta > :is(.vo-msg-time, span:not(.vo-msg-sep)) { color: rgba(255, 255, 255, 0.8); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg :is(img, video) { max-width: 100%; height: auto; border-radius: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-deleted { color: inherit; opacity: 0.7; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine :is(.vo-seen, .vo-msg-actions .vo-reply-link) { color: rgba(255, 255, 255, 0.85); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg .vo-seen { order: 21; align-self: flex-end; font-size: 11px; }

/* Touch: actions are hidden until the message is tapped, then sit just under it. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg .vo-msg-quick,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg .vo-msg-more {
  top: calc(100% + 4px);
  bottom: auto;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg .vo-msg-more { right: auto; left: 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg .vo-msg-quick { right: auto; left: 42px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine .vo-msg-more { right: 0; left: auto; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine .vo-msg-quick { right: 42px; left: auto; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg:not(.vo-msg--mine) .vo-msg-menu { right: auto; left: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-kebab,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-quick-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-bg-elev);
  color: var(--vo-ink);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg:not(.vo-msg--tap):not(.menu-open) :is(.vo-msg-kebab, .vo-msg-quick:not(.open)) {
  opacity: 0;
  pointer-events: none;
}

html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-msg--tap, .vo-msg.menu-open) :is(.vo-msg-kebab, .vo-msg-quick) {
  opacity: 1;
  pointer-events: auto;
}

html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-msg--tap, .vo-msg.menu-open) { margin-bottom: 46px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-menu button { min-height: 44px; font-size: 15px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-menu {
  max-width: calc(100vw - 32px);
  max-height: 50dvh;
  overflow-y: auto;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-edit,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-forward {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: min(260px, 70vw);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-edit .vo-input,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg-forward .vo-input { flex: 1 1 100%; min-width: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-root {
  margin: 4px 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-bg-elev);
  font-size: 15px;
  overflow-wrap: anywhere;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-earlier { min-height: 36px; margin: 4px auto 8px; border-radius: 999px; }

/* ---------- Composer: pinned to the bottom of the conversation ---------- */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-compose {
  flex: 0 0 auto;
  padding: 8px calc(10px + env(safe-area-inset-right)) 10px calc(10px + env(safe-area-inset-left));
  border-top: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row {
  align-items: flex-end;
  gap: 2px;
  min-height: 48px;
  padding: 4px;
  border: 1px solid var(--vo-line);
  border-radius: 24px;
  background: var(--vo-input);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Attach, emoji and poll: a tight group on the left (still 40px tall to tap). */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn:not(.primary) { width: 28px; min-width: 28px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn:not(.primary) + :is(.vo-icon-btn, .vo-react-wrap),
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-react-wrap + .vo-icon-btn:not(.primary) { margin-left: -2px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row > .vo-icon-btn:first-child { margin-left: 2px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-react-wrap { flex: 0 0 auto; margin: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn.primary { background: var(--vo-m-mine); color: #ffffff; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 128px;
  padding: 9px 6px;
  font-size: 16px;
  line-height: 1.35;
  resize: none;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-note { margin: 0 4px 6px; font-size: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-compose .vo-quote { min-height: 32px; margin-bottom: 6px; font-size: 13px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-typing { margin: 0; padding: 0 16px 6px; background: var(--vo-bg-elev); color: var(--vo-muted); font-size: 12px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-attach-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--vo-bg-elev);
  font-size: 13px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-attach-name span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* While typing, the keyboard takes the bottom of the screen: hand the tab bar's
   space to the conversation. */
html:is(.vo-phone, .vo-narrow) .vo-shell.m-chat:has(.vo-chat-compose textarea:focus) .vo-mobile-nav { display: none; }

/* =====================================================================
   Phone refinements: home order and tap targets, reply threads, and the
   call screen. Same scope as above (html.vo-phone / html.vo-narrow).
   ===================================================================== */

/* ---------- Home: offices first (yours, busy, then empty), then meeting rooms ---------- */
/* The two groups dissolve into one list so the cards can be re-ordered. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor { gap: 10px; }
html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-floor-privates, .vo-floor-meetings) { display: contents; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates > .vo-floor-heading { order: 1; margin-top: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor > .vo-room--lead,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates > .vo-room { order: 3; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor > .vo-room--lead.vo-room--empty,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates > .vo-room--empty { order: 4; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room.vo-room--own { order: 2; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-meetings > .vo-floor-heading { order: 5; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-meetings > .vo-room { order: 6; }

/* Empty offices are a slimmer row. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--empty:not(.vo-room--meeting) {
  min-height: 56px;
  padding-top: 9px;
  padding-bottom: 9px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person { width: 72px; }

/* Header buttons: 40px targets. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-btn,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-theme-btn {
  min-width: 40px;
  height: 40px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-bell__btn { width: 40px; height: 40px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-reception { min-height: 40px; }

/* "Add floors in the admin portal" placeholders are no use on a phone. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-tabs .vo-floor-slot:disabled { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-tabs :is(.vo-floor-tab, .vo-floor-slot) { min-height: 36px; }

/* The floating "Cookie settings" pill sat on top of the tab bar and the send button.
   Inside the app it steps aside (Settings > Privacy & cookies has the same choices); it stays on the sign-in pages. */
html:is(.vo-phone, .vo-narrow) body:has(.vo-shell, .vo-ain-app, .vo-page-tabs) .vo-consent-manage { display: none; }

/* ---------- Reply threads ---------- */
/* A thread reads from the top: original message first, replies under it. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-stack:has(> .vo-thread-root) {
  margin-top: 0;
  justify-content: flex-start;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-root { margin-top: 8px; }

/* Same plain back arrow as a channel or DM header. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar .vo-icon-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--vo-ink);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar .vo-icon-btn :is(.vo-glyph, svg) { width: 22px; height: 22px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-bar__title > span {
  overflow: hidden;
  color: var(--vo-muted);
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-thread-divider { margin: 6px 0 2px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-reply-link {
  min-height: 32px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Call: full screen ---------- */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: var(--vo-bg);
  box-shadow: none;
}

/* Header on one row: room name with the timer under it, layout switch, shrink. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-head { flex-wrap: nowrap; gap: 8px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-title {
  flex: 1 1 auto;
  flex-wrap: wrap;
  row-gap: 0;
  min-width: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-title strong { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-room {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: var(--vo-ink);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-meta { flex-basis: 100%; padding-left: 16px; font-size: 12.5px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-call="audio"] .vo-call-views { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-views { flex: 0 0 auto; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-views button { min-height: 36px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-size { width: 44px; height: 44px; border-radius: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-size svg { width: 18px; height: 18px; }

/* Body: people on top, then the roster and invites in their own scrolling sheet. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-body > div:first-child {
  flex: 1 1 58%;
  height: auto;
  min-height: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-side {
  flex: 0 1 auto;
  max-height: 40%;
  padding: 12px 14px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-bg-elev);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles.vo-filmstrip { flex: 0 0 84px; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-tile { border-radius: 16px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-screen-share video { max-height: 38dvh; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side h3 {
  margin: 0 0 4px;
  color: var(--vo-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* "No hands raised" is noise on a small screen; the list shows once someone raises one. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side h3:has(+ .vo-hand-queue > .hint:only-child),
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-hand-queue:has(> .hint:only-child) { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-roster { margin-bottom: 12px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-roster li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  font-size: 15px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-roster li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-roster li > .hint { flex: 0 0 auto; font-size: 12.5px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side [data-invite-meeting] {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #ffffff);
  opacity: 1;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side [data-invite-meeting]:disabled {
  background: var(--vo-line);
  color: var(--vo-muted);
}

/* Controls: one row across the bottom, 48px buttons, Leave at the end. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-actions { margin-top: 0; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-cluster {
  flex: 1 1 auto;
  justify-content: space-around;
  gap: 0;
  min-width: 0;
  border-radius: 18px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-btn {
  width: 48px;
  min-width: 44px;
  height: 48px;
  border-radius: 14px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-btn svg { width: 22px; height: 22px; }

/* Mic and camera: the icon and its small menu arrow sit together as one pill. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron) {
  width: 38px;
  min-width: 36px;
  padding: 0 0 0 4px;
  border-radius: 14px 0 0 14px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-chevron {
  width: 20px;
  min-width: 18px;
  height: 48px;
  padding: 0 4px 0 0;
  border-radius: 0 14px 14px 0;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-chevron svg { width: 14px; height: 14px; }

/* The Android app has the most buttons (share screen and sound output too). On a narrow
   phone they are a little narrower, so More is not pushed out of the bar. */
@media (max-width: 420px) {
  html.vo-phone .vo-call-overlay .vo-call-btn { width: 42px; min-width: 40px; }
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-btn.vo-call-hangup {
  flex: 0 0 auto;
  width: 56px;
  min-width: 52px;
  margin-left: 4px;
}

/* Background swatches: bigger targets, and the grid buttons keep their own shape. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu .vo-bg-grid { gap: 8px; padding: 0 6px 6px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu .vo-bg-grid .vo-bg-option { min-height: 0; padding: 0; border-radius: 10px; font-size: 13px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu .vo-call-menu-label { padding: 10px 12px 6px; font-size: 12px; }

/* Menus open as a sheet across the control bar instead of running off the edge. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-split { position: static; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu {
  right: 0;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 0;
  max-width: none;
  max-height: 50dvh;
  padding: 6px;
  border-radius: 16px;
  overflow-y: auto;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu button {
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 15px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu p { margin: 0; padding: 12px; color: var(--vo-muted); font-size: 14px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-reacts { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-reacts button {
  justify-content: center;
  width: auto;
  height: 44px;
  padding: 0;
  font-size: 22px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-react-burst {
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
}

/* Phone browsers cannot share their screen. The Android app (html.vo-phone) can: it
   captures the screen natively (native-screen-share.js), so it keeps the button. */
@media (hover: none) and (pointer: coarse) {
  html.vo-narrow:not(.vo-phone) .vo-call-overlay [data-share-screen] { display: none; }
}

/* Speaker view: the main tile fills the stage; no empty strip when you are alone. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-view="speaker"] .vo-speaker-main { display: grid; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles.vo-filmstrip:empty { display: none; }

/* Small call box, video: the preview keeps its height instead of collapsing to a line. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"][data-call="video"] .vo-call-stage {
  flex: 0 0 150px;
  height: 150px;
}

/* Room padlock: a 36px tap target left of the room menu. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock--btn {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 10px;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty) .vo-room__lock--btn,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__booking) .vo-room__lock--btn { top: 10px; margin-top: 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock) .vo-room__icon { right: 92px; }

/* The first-visit cookie banner covered the bottom tab bar. It sits just above it. */
@media (max-width: 760px) {
  body:has(.vo-mobile-nav) .vo-consent { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   Simpler phone office (Nov 2026)
   - Each room card shows one small round icon for what a tap does
     (camera/headset = join, bubble = message, house = your office,
     check = you're here, padlock = locked), instead of three look-alike icons.
   - Lock and unlock live in the room's ⋯ menu; the open padlocks and the
     decorative "meeting room" icon are gone on phones.
   - "Start meeting" hides while you are in a call (the call box has the controls).
   - Offices come first; meeting rooms move to the top only while a meeting is on.
   - Placeholder floor buttons and a single-floor tab bar are hidden.
   ===================================================================== */
.vo-room__cta { display: none; }

.vo-office-strip__home {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--vo-line);
  border-radius: 50%;
  background: var(--vo-floor-card, transparent);
  color: var(--vo-ink);
  line-height: 0;
  cursor: pointer;
}

.vo-office-strip__home svg { display: block; }
.vo-office-strip__home:hover { background: var(--vo-hover); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-strip__home { width: 36px; height: 36px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-strip__home svg { width: 18px; height: 18px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__icon,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock:not(.vo-room__lock--btn) { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__label { padding-right: 40px; min-width: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__cta {
  position: absolute;
  top: 50%;
  right: 54px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background: var(--vo-accent-soft);
  color: var(--vo-accent);
  line-height: 0;
  pointer-events: none;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__cta svg {
  display: block;
  width: 17px;
  height: 17px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty) .vo-room__cta,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__booking) .vo-room__cta { top: 11px; margin-top: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__cta--here {
  background: color-mix(in srgb, var(--vo-m-mint) 16%, transparent);
  color: var(--vo-m-mint);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__cta--locked {
  background: var(--vo-hover);
  color: var(--vo-muted);
}

/* Room ⋯ menu: draw the dots as a centred icon instead of a text glyph that sat low. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__menu {
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__menu::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, currentColor 1.6px, transparent 1.9px) 0 0 / 6px 4px repeat-x;
}

/* Office bar buttons: icon only, centred. Start meeting hides while a call is on. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-btn.primary {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  gap: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar :is(.vo-btn, .vo-theme-btn, .vo-bell__btn) .vo-bar-ico,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-bell__btn svg { display: block; margin: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-bar .vo-btn.primary:disabled { display: none; }

/* Home order: offices first; while a meeting is on (someone is in a meeting room),
   the meeting rooms move to the top. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor:has(.vo-floor-meetings > .vo-room:not(.vo-room--empty)) .vo-floor-meetings > .vo-floor-heading { order: -2; margin-top: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor:has(.vo-floor-meetings > .vo-room:not(.vo-room--empty)) .vo-floor-meetings > .vo-room { order: -1; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor:has(.vo-floor-meetings > .vo-room:not(.vo-room--empty)) .vo-floor-privates > .vo-floor-heading { margin-top: 14px; }

/* Floors: no dead "More floors" arrow, and no bar at all when there is only one floor. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-tabs .vo-floor-slot { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-tabs:not(:has(.vo-floor-tab ~ .vo-floor-tab)) { display: none; }

/* Upcoming meetings: one swipeable row instead of a stack that pushed the rooms off screen. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-cal-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 0 auto;
  padding-bottom: 2px;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-cal-strip::-webkit-scrollbar { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-cal-chip {
  flex: 0 0 auto;
  max-width: 76vw;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-cal-chip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bookings on a room card: at most two lines, and the ⋯ menu stays at the top right. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__booking {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-right: -40px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__booking) .vo-room__menu { top: 8px; margin-top: 0; }

/* ---------- Home: two offices per row (empty or with one person); your own office, meeting rooms and offices with two or more people stay full width ---------- */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor :is(.vo-floor-heading, .vo-room--own, .vo-room--meeting, .vo-room:not(.vo-room--empty):not(.vo-room--solo)) { grid-column: 1 / -1; }

/* The first office on the floor is pinned to column 1 on wider screens; on a phone it flows like the rest. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room--lead:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) { grid-column: auto; grid-row: auto; }

/* Half-width office cards: name on top, the ⋯ menu in the corner, people below. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) {
  min-height: 64px;
  padding: 12px 38px 12px 12px;
  gap: 8px;
  justify-content: flex-start;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__label { padding-right: 0; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__name { font-size: 14px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__kind { font-size: 12px; }

/* The whole card already opens the chat, so the small action icon steps aside here. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__cta { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__menu {
  top: 6px;
  right: 2px;
  width: 34px;
  height: 34px;
  margin-top: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__people {
  gap: 8px;
  margin-right: -26px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-person { width: 52px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-avatar { width: 40px; height: 40px; font-size: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) :is(.vo-person__name, .vo-person__caption) { max-width: 52px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__cta--locked {
  display: grid;
  top: 10px;
  right: 34px;
  width: 26px;
  height: 26px;
  margin-top: 0;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room--locked:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) { padding-right: 62px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__cta--locked svg { width: 14px; height: 14px; }

/* Other people's offices have no ⋯ menu, so the name can use the full card width. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting):not(:has(.vo-room__menu)) { padding-right: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room--locked:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting):not(:has(.vo-room__menu)) { padding-right: 40px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:not(:has(.vo-room__menu)) .vo-room__cta--locked { right: 8px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(:has(.vo-room__menu)) { padding-right: 16px; }

/* ---------- Pages with the bottom tab bar: the bar never scrolls away ---------- */
/* The window itself must not scroll; each page scrolls inside its own area. */
html:is(.vo-phone, .vo-narrow):has(.vo-page-tabs),
html:is(.vo-phone, .vo-narrow):has(.vo-page-tabs) body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Phone Calendar: title, week strip and footer stay put; only the day's events scroll. */
html:is(.vo-phone, .vo-narrow) .vo-page:has(> .vo-calm-page) { overflow: hidden; }

html:is(.vo-phone, .vo-narrow) .vo-page.vo-cal-page.vo-calm-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-bottom: 0.75rem;
}

html:is(.vo-phone, .vo-narrow) .vo-calm-page > :is(.vo-calm-head, .vo-calm-week, .vo-calm-foot) { flex: 0 0 auto; }

html:is(.vo-phone, .vo-narrow) .vo-calm-page > .vo-calm-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

html:is(.vo-phone, .vo-narrow) .vo-calm-list > .vo-calm-dayhead {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 0 6px;
  background: var(--vo-bg);
}
html:is(.vo-phone, .vo-narrow) .vo-calm-page > .vo-calm-monthwrap { flex: 0 0 auto; }

/* Offices with people in them stay full width (their avatars need the room). Without a ⋯ menu
   the small action icon sits in the corner. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(:has(.vo-room__menu)) .vo-room__cta { right: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:not(.vo-room--empty):not(:has(.vo-room__menu)) { padding-right: 56px; }

/* ---------- Call reactions on phones: the same menu as desktop ---------- */
/* The bar has no room for a separate hand button, so Reactions opens the desktop menu:
   Clap, Yes and Raise hand, then the emoji grid. It turns amber while your hand is up. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-split.vo-call-keep { display: flex; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-btn[data-raise-hand] { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay [data-more-menu] :is([data-more-hand], [data-react-clap], [data-react-yes]) { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-btn.has-hand { background: #fbbf24; color: #1f1300; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu.vo-call-react-menu {
  width: auto;
  transform: none;
  padding: 10px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-react-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-react-menu .vo-call-react-main button {
  min-height: 64px;
  font-size: 13px;
}

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-react-main button b { font-size: 26px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-react-menu .vo-call-reacts {
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
}

/* ---------- Home: show whole office names ---------- */
/* Names wrap (up to three lines, long emails break anywhere) instead of ending in "…". */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* ---------- Home: person names use the room they have ---------- */
/* The name under an avatar was cut at 60px ("Administ…") even with empty space beside it.
   Each person's label may grow up to a limit and only then ends in an ellipsis. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person {
  width: auto;
  min-width: 72px;
  max-width: 120px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-person :is(.vo-person__name, .vo-person__caption) {
  max-width: 120px;
}

/* Half-width cards have less room: a slightly smaller name, and a tighter limit. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-person {
  width: auto;
  min-width: 52px;
  max-width: 92px;
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) :is(.vo-person__name, .vo-person__caption) {
  max-width: 92px;
  font-size: 11px;
}

/* ---------- Home: the padlock sits at the top right of your office and meeting rooms ---------- */
/* One tap to lock or unlock, left of the ⋯ menu; the "you are here" mark moves over to make room. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock--btn {
  display: grid;
  place-items: center;
  top: 10px;
  right: 46px;
  width: 36px;
  height: 36px;
  margin-top: 0;
  opacity: 1;
  color: var(--vo-ink);
  background: color-mix(in srgb, var(--vo-ink) 7%, transparent);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock--btn[data-lock-room="locked"] {
  color: var(--vo-warn, #b54708);
  background: color-mix(in srgb, var(--vo-warn, #f59e0b) 18%, transparent);
}

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__lock--btn svg { width: 18px; height: 18px; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__cta { right: 92px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__label { padding-right: 96px; }

/* Meeting rooms have a little more top padding: line the padlock up with the mark and the ⋯. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting .vo-room__lock--btn { top: 15px; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-add { width: 44px; height: 44px; border-radius: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-add .vo-glyph { width: 20px; height: 20px; }

/* ---------- Home: person+ on your office and meeting rooms ---------- */
/* Left of the "you are here" / join mark, same row as the padlock and ⋯. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__invite {
  top: 10px;
  right: 138px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting .vo-room__invite { top: 15px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room__invite .vo-glyph { width: 19px; height: 19px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 142px; }

/* ---------- Room cards: information vs actions ---------- */
/* What a tap on the card does is information: a small text label at the bottom right, no button look.
   The buttons at the top right (invite, padlock, ⋯) share one bordered square style. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__cta {
  top: auto;
  bottom: 12px;
  right: 14px;
  margin-top: 0;
  width: auto;
  height: auto;
  min-height: 24px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta svg { width: 14px; height: 14px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta-text { display: inline; }

html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__menu {
  width: 36px;
  height: 36px;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  background: var(--vo-panel);
  color: var(--vo-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite { color: var(--vo-accent); right: 88px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn { right: 46px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn[data-lock-room="locked"] {
  color: var(--vo-warn, #b54708);
  border-color: color-mix(in srgb, var(--vo-warn, #f59e0b) 45%, var(--vo-line));
  background: color-mix(in srgb, var(--vo-warn, #f59e0b) 12%, var(--vo-panel));
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__menu { top: 10px; right: 4px; margin-top: 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting:has(.vo-room__lock--btn) .vo-room__menu { top: 15px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 132px; }

/* Meeting rooms are short: leave room under the buttons for the status label. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room--meeting { min-height: 96px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting .vo-room__cta { bottom: 10px; }
/* Cards with the invite/padlock/⋯ buttons (your own office when you are elsewhere, meeting rooms) must be tall
   enough that the status pill at the bottom never reaches the buttons at the top. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(:has(.vo-room__invite), :has(.vo-room__lock--btn), :has(.vo-room__menu)) { min-height: 96px; }

/* ---------- Home: the current-room title bar ---------- */
/* It sat right on the scrolling cards, so their text was cut mid-line just under it. Give it its
   own padding below and a hairline, so scrolling content disappears cleanly under it. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-office-strip {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-bg-elev, var(--vo-panel));
}

/* Phone cards: person+, the padlock and ⋯ sit closer together (2px apart). */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn { right: 42px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite { right: 80px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 124px; }

/* Phone: the "more offices" row comes after the office cards and before the meeting rooms. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates > .vo-room.vo-room--lazy { order: 7; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor-privates > .vo-floor-more { order: 8; grid-column: 1 / -1; }

/* ---------- Phone room cards, tidier ---------- */
/* Audio / video mark: the same tinted pill, icon only. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta--video .vo-room__cta-text,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta--audio .vo-room__cta-text { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta--video,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__cta--audio {
  min-width: 46px;
  justify-content: center;
  padding: 4px 14px;
}

/* Action buttons: icons only, no border or fill, smaller and closer together. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__menu {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn[data-lock-room="locked"] {
  border: 0;
  background: transparent;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite .vo-glyph,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn svg { width: 17px; height: 17px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__lock--btn) .vo-room__menu { top: 14px; right: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__lock--btn { top: 14px; right: 34px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__invite { top: 14px; right: 62px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting .vo-room__lock--btn,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting .vo-room__invite,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room--meeting:has(.vo-room__lock--btn) .vo-room__menu { top: 19px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 96px; }

/* Smaller names on every card. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__name { font-size: 13.5px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room:is(.vo-room--empty, .vo-room--solo):not(.vo-room--own):not(.vo-room--meeting) .vo-room__name { font-size: 12.5px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-room .vo-room__kind { font-size: 11.5px; }

/* Chat header (back arrow, name, Manage): one row at every width. A long name is cut with an
   ellipsis instead of wrapping onto the row below, where it sat on top of the Knock and Huddle buttons. */
html:is(.vo-phone, .vo-narrow) .vo-shell :is(.vo-channel-bar, .vo-thread-bar) {
  flex-wrap: nowrap;
  overflow: hidden;
  height: auto;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-channel-bar > strong { flex: 1 1 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-channel-bar > :is(details, button, .vo-channel-manage) { flex: 0 0 auto; }

/* ---------- Call screen refresh (phone, 2026-11-18) ----------
   Navy tiles with a round avatar and a name chip, one slim people bar with Invite, and a
   control bar of round buttons with a label under each. Leave is a red pill on the right,
   where every hang-up button in Collabiro sits. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-tile {
  border: 0;
  border-radius: 20px;
  background: #1b2233;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-tile-fallback { background: #1b2233; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-tile[data-speaking="true"] {
  outline: 0;
  box-shadow: inset 0 0 0 3px #22c55e;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-tile-name {
  left: 12px;
  right: auto;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  font-weight: 500;
}

/* People: the list and the big Invite button give way to one bar (with its own Invite, so
   the header's add-people button is not needed twice). */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"]:has(.vo-call-peoplebar-invite) .vo-call-add { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-side {
  border: 0;
  background: transparent;
  padding: 0;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side h3,
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-roster,
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-invite { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-side h3:has(+ .vo-hand-queue > li:not(.hint)) { display: block; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-peoplebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-surface, #fff);
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-faces { display: flex; flex: 0 0 auto; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-face {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid var(--vo-surface, #fff);
  border-radius: 50%;
  background: linear-gradient(145deg, #5b8cff, #2a5ce0);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-face:first-child { margin-left: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-face.more { background: #64748b; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-peoplebar-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--vo-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-peoplebar-invite {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-peoplebar-invite svg { width: 16px; height: 16px; }

/* Controls: round buttons with a label underneath; menu arrows become a small badge. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-actions {
  padding: 10px 8px 6px;
  border: 1px solid var(--vo-line);
  border-radius: 22px;
  background: var(--vo-surface, #fff);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-cluster {
  align-items: flex-start;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn {
  position: relative;
  width: 42px;
  min-width: 40px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #eef2f8;
  color: #1f2937;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.is-off { background: #fde8e8; color: #dc2626; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.is-on { background: var(--vo-accent); color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn::before {
  content: attr(data-lbl);
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  color: #5b6475;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-split { align-items: flex-start; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron) {
  width: 42px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron {
  position: relative;
  z-index: 1;
  margin: 26px 0 0 -16px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid var(--vo-surface, #fff);
  border-radius: 50%;
  background: #dfe5ef;
  color: #334155;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron svg { width: 12px; height: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup {
  width: 62px;
  min-width: 58px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 23px;
  background: #e5484d;
  color: #fff;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup::before { color: #b42318; font-weight: 600; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup svg { width: 24px; height: 24px; }

/* ---------- Call tiles on a phone held upright (2026-11-18) ----------
   Like Teams: one other person fills the stage, two stack one above the other, three to six
   share a two-column grid (with three, the first spans the top), more scroll in two columns.
   Your own video is the small portrait window in the corner (office.css). */
@media (orientation: portrait) {
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles:not(.vo-filmstrip) {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles:not(.vo-filmstrip):is([data-count="3"], [data-count="4"], [data-count="5"], [data-count="6"], [data-count="many"]) {
    grid-template-columns: 1fr 1fr;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles:not(.vo-filmstrip)[data-count="3"] > .vo-tile:first-child { grid-column: 1 / -1; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-participant-tiles:not(.vo-filmstrip)[data-count="many"] {
    grid-auto-rows: calc((100% - 16px) / 3);
    overflow-y: auto;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-self-view[data-mode="float"] { width: 28%; max-width: 132px; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-self-view[data-mode="float"] .vo-self-slot .vo-tile { aspect-ratio: 3 / 4; border-radius: 14px; }
  /* Speaker view: the small window sits above the strip of other people, not on it. */
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage[data-view="speaker"]:has(.vo-filmstrip:not(:empty)) .vo-self-view[data-mode="float"] { bottom: 104px; }
}

/* =====================================================================
   iPhone and iPad: html.vo-ios (vo-narrow.js, the iOS app and Safari).
   WebKit on iOS draws its own grey bezel on selects, inflates text in
   landscape, flashes a grey box on every tap, and covers the page with the
   keyboard instead of shrinking it. These rules even that out so the iPhone
   looks like the Android app.
   ===================================================================== */
html.vo-ios { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.vo-ios body { -webkit-tap-highlight-color: transparent; }
html.vo-ios :is(button, [role="button"], .vo-mobile-nav a, .vo-room) { -webkit-touch-callout: none; }

/* Selects: flat, with the same chevron the other platforms show. */
html.vo-ios select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  padding-right: 26px;
}
html.vo-ios[data-theme="dark"] select:not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Keyboard open: the app is as tall as the part of the screen above the keyboard,
   so the composer sits on the keyboard and the header stays in place. The tab bar
   steps aside while typing, and the home bar gap goes (the keyboard covers it). */
html.vo-ios.vo-kb-open:is(.vo-phone, .vo-narrow) :is(.vo-shell, .page.vo-app, .vo-ain-app) {
  height: var(--vo-app-h, 100dvh);
  max-height: var(--vo-app-h, 100dvh);
}
html.vo-ios.vo-kb-open:is(.vo-phone, .vo-narrow) .vo-mobile-nav { display: none; }
html.vo-ios.vo-kb-open:is(.vo-phone, .vo-narrow) .vo-ain-app { padding-bottom: 0; }

/* Bottom sheets (pick people, invite to a call, polls): clear of the home bar and
   the status bar, and above the keyboard while searching. */
html:is(.vo-phone, .vo-narrow) .vo-people-pick {
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top) - 16px));
}
html.vo-ios.vo-kb-open:is(.vo-phone, .vo-narrow) .vo-people-pick {
  top: auto;
  bottom: var(--vo-kb, 0px);
  padding-bottom: 12px;
  max-height: calc(var(--vo-app-h, 100dvh) - env(safe-area-inset-top) - 8px);
}

/* Small call box on phones: clear of the notch side when the phone is turned, and in
   landscape a smaller box on the right instead of a band over the whole office. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] {
  left: calc(8px + env(safe-area-inset-left));
  right: calc(8px + env(safe-area-inset-right));
}
@media (orientation: landscape) and (max-height: 520px) {
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] { left: auto; width: min(360px, 48vw); }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"][data-call="video"] .vo-call-stage { flex-basis: 96px; height: 96px; }
}

/* The Android and iPhone apps keep the phone layout when turned to landscape, where the
   window is wider than 760px and nav-rail.css's phone rules no longer match. Without
   these, the office showed two tab bars (its own and the pages' one) on top of each other,
   and other pages got the computer sidebar next to the tab bar. */
html.vo-phone .page.vo-app:has(.vo-office, .vo-signin, .vo-ain-app) > :is(.vo-page-tabs, .vo-page-more) { display: none; }
html.vo-phone .page.vo-app:has(> .vo-page-tabs):not(:has(.vo-office, .vo-signin, .vo-ain-app)) { grid-template-rows: auto minmax(0, 1fr) auto; }
html.vo-phone .page.vo-app > .vo-page-tabs { grid-row: auto; }
html.vo-phone .page.vo-app:has(> .vo-page-tabs):not(:has(.vo-office, .vo-signin, .vo-ain-app)) > .vo-sidebar,
html.vo-phone .page.vo-app:has(> .vo-page-tabs) .vo-topbar [data-sign-out] { display: none; }
html.vo-phone .page.vo-app:has(> .vo-page-tabs) .vo-topbar {
  padding-top: calc(0.6rem + env(safe-area-inset-top));
  padding-bottom: 0.6rem;
  padding-left: calc(1.25rem + env(safe-area-inset-left));
  padding-right: calc(1.25rem + env(safe-area-inset-right));
}
/* !important because nav-rail.css zeroes this padding with !important. */
html.vo-phone .page.vo-app:has(> .vo-page-tabs):not(:has(.vo-office, .vo-signin, .vo-ain-app)) article.content {
  padding-left: env(safe-area-inset-left) !important;
  padding-right: env(safe-area-inset-right) !important;
}

/* Phone home list: every row is as tall as its cards. The computer floor's
   "auto 1fr" rows (office.css) stayed on phones, where the room groups dissolve into one
   list, so one row took all the spare height: on the iPhone your own office was squashed
   (name hidden, people spilling over the edge) while the next row of offices grew very tall. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor {
  grid-template-rows: none;
  grid-auto-rows: auto;
  align-content: start;
  min-height: 0;
}

/* Call controls always fit in one row: the iPhone and Android apps add Sound, which pushed
   Leave out past the edge of the call box on wider phones. Buttons give up a little width
   instead. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-cluster > :is(.vo-call-btn, .vo-call-split) { flex: 0 1 auto; min-width: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-cluster .vo-call-btn { flex-shrink: 1; min-width: 30px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-cluster .vo-call-chevron { flex-shrink: 1; min-width: 14px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-actions { min-width: 0; max-width: 100%; }

/* Camera-off faces stay inside their tile: in the small call box the tile is short and wide,
   and the face (a share of the width) was bigger than the tile and cut off. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-tile-avatar {
  width: auto;
  height: clamp(36px, 58%, 72px);
  aspect-ratio: 1;
}

/* ---------- Phone screens from iPhone screenshots (2026-11-20, round 3) ---------- */

/* Inbox: the 48px icon rail down the left ate a seventh of a phone's width. On a phone held
   upright it becomes a strip of labelled tabs across the top of the conversation list, and it
   is hidden while a conversation is open (that view has its own back arrow). */
@media (max-width: 760px) {
  html .vo-ain {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  html .vo-ain > .vo-ain-side,
  html .vo-ain > .vo-ain-main { grid-column: 1; grid-row: 2; min-height: 0; }
  html .vo-ain.with-side .vo-ain-side { position: static; inset: auto; }
  html .vo-ain.with-side > .vo-ain-main { display: none; }
  html .vo-ain-rail {
    grid-column: 1; grid-row: 1;
    flex-direction: row; align-items: center; gap: 6px;
    padding: 8px 12px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 1px solid var(--vo-line);
    scrollbar-width: none;
  }
  html .vo-ain-rail::-webkit-scrollbar { display: none; }
  html .vo-ain-rail a.vo-ain-logo { flex: 0 0 auto; width: 30px; height: 30px; margin: 0 4px 0 0; }
  html .vo-ain-rail button {
    flex: 0 0 auto; width: auto; min-height: 36px; padding: 0 12px;
    flex-direction: row; gap: 6px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600;
  }
  html .vo-ain-rail button > .vo-glyph { width: 17px; height: 17px; }
  html .vo-ain-rail .vo-ain-rail-label { display: inline; font-size: 13.5px; font-weight: 600; }
  html .vo-ain-rail button.active { background: var(--vo-accent-soft); color: var(--vo-link, var(--vo-accent)); }
  html .vo-ain-rail .vo-ain-rail-count { position: static; }
  html .vo-ain-rail .vo-ain-rail-foot { display: none; }
  /* A conversation is open: full width, its header has the back arrow. */
  html .vo-ain:not(.with-side):has(.vo-ain-back-mobile) > .vo-ain-rail { display: none; }
  html .vo-ain:not(.with-side):has(.vo-ain-back-mobile) > .vo-ain-main { grid-row: 1 / -1; }
}

/* Bigger tap targets on phones: icon buttons were 28-32px, under Apple's 44pt guideline. */
@media (max-width: 760px) {
  html .vo-ain-iconbtn { width: 40px; height: 40px; min-width: 40px; display: inline-grid; place-items: center; }
  html .vo-ain-iconbtn :is(.vo-glyph, svg) { width: 20px; height: 20px; }
  html .vo-ain-iconbtn.vo-knock-btn { width: auto; min-height: 40px; }
  html .vo-ain-side-head { min-height: 52px; }
  html .vo-ain-compose .vo-ain-tools button,
  html .vo-ain-compose .vo-ain-tools .vo-attach { width: 40px; height: 40px; }
  html .vo-ain-compose .vo-ain-tools :is(.vo-glyph, svg) { width: 20px; height: 20px; }
  html .vo-ain-nav button { min-height: 44px; }
  html .vo-ain-row { min-height: 48px; }
  html .vo-bell__btn { width: 40px; height: 40px; border-radius: 12px; }
  html .vo-cal-x { width: 40px; height: 40px; }
  html .vo-notif__tool { min-width: 40px; min-height: 40px; }
  html .vo-ain-back-mobile { margin-left: -6px; }
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn:not(.primary) { width: 38px; min-width: 38px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn:not(.primary) + :is(.vo-icon-btn, .vo-react-wrap),
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-react-wrap + .vo-icon-btn:not(.primary) { margin-left: 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn :is(.vo-glyph, svg) { width: 21px; height: 21px; }

/* Composer + menu: a small popup with finger-sized rows. It opens above the message box,
   so neither the text being written nor the chat is covered or dimmed. */
@media (max-width: 760px) {
  /* Opens just above the message box (never over it), from the + button's left edge. */
  html .vo-compose-menu {
    position: absolute; left: -6px; right: auto; top: auto; bottom: calc(100% + 12px);
    width: auto; min-width: 210px; max-width: calc(100vw - 28px);
    padding: 5px; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    animation: vo-sheet-up 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  html .vo-pop .vo-pop-plus .vo-compose-menu { left: -6px; bottom: calc(100% + 12px); }
  /* Anchor both + menus to the whole message box, so they open above it and never cover it. */
  html .vo-chat-compose { position: relative; }
  html .vo-chat-compose .vo-compose-plus { position: static; }
  html .vo-chat-compose .vo-compose-menu { left: 0; bottom: calc(100% + 8px); }
  html .vo-ain-compose { position: relative; }
  html .vo-ain-compose .vo-ain-plus { position: static; }
  html .vo-compose-menu__item { min-height: 46px; gap: 11px; padding: 6px 10px; border-radius: 10px; }
  html .vo-compose-menu__ico { width: 30px; height: 30px; border-radius: 50%; background: var(--vo-hover); }
  html .vo-compose-menu__ico.attach { background: color-mix(in srgb, var(--vo-accent) 12%, transparent); }
  html .vo-compose-menu__ico.poll { background: rgba(22, 163, 74, 0.12); }
  html .vo-compose-menu__ico .vo-glyph { width: 16px; height: 16px; }
  html .vo-compose-menu__text strong { font-size: 14.5px; }
  html .vo-compose-menu__text small { font-size: 12px; }

  /* The Inbox composer's + menu: the same small popup. */
  html .vo-ain-plus__menu {
    position: absolute; left: 0; right: auto; top: auto; z-index: 61;
    bottom: calc(100% + 8px); width: auto; min-width: 190px;
    padding: 5px; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    animation: vo-sheet-up 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  html .vo-ain-compose .vo-ain-tools .vo-ain-plus__menu .vo-ain-plus__item { height: 46px; font-size: 14.5px; }
  html .vo-ain-plus__item .vo-glyph { width: 20px; height: 20px; }
  html .vo-ain-compose .vo-ain-tools .vo-ain-plus__btn { width: 40px; height: 40px; }
}

/* New event: iOS gives date fields a fixed native width and centred text, so they ran past
   the right edge; the title line got iOS's rounded field look. */
html.vo-ios .vo-evt-title { -webkit-appearance: none; appearance: none; border-radius: 0; box-shadow: none; }
html.vo-ios input.vo-input:is([type="datetime-local"], [type="date"], [type="time"]) {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  min-height: 44px; text-align: left;
}
html.vo-ios input.vo-input:is([type="datetime-local"], [type="date"], [type="time"])::-webkit-date-and-time-value { text-align: left; margin: 0; }
@media (max-width: 760px) {
  html .vo-evt-title { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }
  html .vo-evt-field .vo-input, .vo-evt select { min-height: 44px; }
  html .vo-evt-chip { min-height: 36px; padding: 0 0.9rem; }
  html .vo-evt-person { min-height: 38px; }
}

/* Expanded call on a phone: seven controls in one row were cramped and the menu arrows sat on
   top of the Mute and Camera buttons. Buttons scale with the screen (44-48px), the arrows
   are a small badge on the top corner, and Leave is the same round size, in red. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-actions { padding: 12px 10px 8px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-actions,
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-cluster {
  justify-content: space-between; gap: 2px;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-cluster { flex: 1 1 auto; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn,
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron) {
  width: clamp(40px, 11.6vw, 48px); min-width: 40px; height: clamp(40px, 11.6vw, 48px); margin-bottom: 20px;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn::before { font-size: 11px; top: calc(100% + 5px); }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron {
  margin: -4px 0 0 -14px; width: 18px; min-width: 18px; height: 18px;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron svg { width: 11px; height: 11px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup {
  width: clamp(40px, 11.6vw, 48px); min-width: 40px; height: clamp(40px, 11.6vw, 48px);
  margin-bottom: 20px; border-radius: 50%;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup svg { width: 22px; height: 22px; }

/* ---------- Round 3 follow-ups (2026-11-20) ---------- */

/* Inbox on a phone: the message box sits on the bottom edge. The page used to keep the
   home-bar gap below everything, which left an empty strip under the box. Now only the
   box clears the home bar, and the lists pad their own bottom. */
@media (max-width: 760px) {
  html .vo-ain-app { padding-bottom: 0; }
  html .vo-ain-side { padding-bottom: env(safe-area-inset-bottom); }
  html .vo-ain-main:not(:has(.vo-ain-compose)) { padding-bottom: env(safe-area-inset-bottom); }
  html .vo-ain-compose { margin: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 16px; }
  html.vo-kb-open .vo-ain-compose { margin-bottom: 6px; }
}

/* Inbox list: "New folder" is a labelled button, not a bare +. */
.vo-ain-newfolder {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px 0 10px; border: 1px dashed var(--vo-line); border-radius: 999px;
  background: transparent; color: var(--vo-muted); font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.vo-ain-newfolder .vo-glyph { width: 16px; height: 16px; }
.vo-ain-newfolder:hover { border-style: solid; border-color: var(--vo-accent); color: var(--vo-ink); background: var(--vo-accent-soft); }
.vo-ain-newfolder:focus-visible { outline: 2px solid var(--vo-focus); outline-offset: 2px; }
html .vo-ain-pins { align-items: center; }

/* Disappearing-messages picker in a conversation header: a pill with a timer icon,
   instead of a small native box. */
html select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none;
  max-width: 8rem; height: 34px; padding: 0 24px 0 28px;
  border: 1px solid var(--vo-line); border-radius: 999px;
  background-color: var(--vo-panel); color: var(--vo-ink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 9v4l2.5 1.5M9.5 2.5h5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 9px 50%, right 9px center;
  background-size: 15px 15px, 12px 12px;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  text-overflow: ellipsis; cursor: pointer;
}
html select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]):hover { background-color: var(--vo-hover); }
html select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]):focus-visible { outline: 2px solid var(--vo-focus); outline-offset: 2px; }
@media (max-width: 760px) {
  html select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]) { height: 36px; font-size: 13.5px; }
}

/* Drag handles (the "⋮⋮" before conversations and folders): only where dragging works, a
   mouse, and only on hover. Phones can't drag these, so the dots were just noise there. */
.vo-ain-drag { opacity: 0; transition: opacity .12s; }
:is(.vo-ain-row, .vo-ain-sec-title, .vo-ain-folder):hover > .vo-ain-drag,
:is(.vo-ain-row, .vo-ain-sec-title, .vo-ain-folder):hover .vo-ain-drag,
.vo-ain-drag:focus-visible { opacity: .55; }
@media (pointer: coarse), (max-width: 760px) {
  html .vo-ain-drag { display: none; }
}

/* New event sheet on a phone: Close / Create event sits on the bottom edge. The sheet's own
   home-bar padding let the bar stick above that gap, so the Notes field showed underneath it. */
html .vo-calm-page .vo-cal-drawer { padding-bottom: 0; }
html .vo-calm-page .vo-cal-drawer .vo-cal-row-actions {
  bottom: 0;
  margin-bottom: 0;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
  z-index: 2;
}

/* Conversation header on a phone: the action buttons stay on one row (scrolling sideways if
   they must) instead of dropping the last icon onto a second line. */
@media (max-width: 760px) {
  html .vo-ain-head .vo-ain-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  html .vo-ain-head .vo-ain-quick::-webkit-scrollbar { display: none; }
  html .vo-ain-head .vo-ain-quick > * { flex: 0 0 auto; }
}

/* Call box (compact) on a phone: every control gets a full tap area. The small device-menu
   arrows next to Mute and Camera were 14-20px wide, too small to hit, so the box drops them
   (expand the call to pick a microphone or camera) and the remaining buttons share the row
   evenly, each at least 40px wide and 44px tall. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-chevron { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-cluster { gap: 2px; justify-content: space-between; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-cluster > :is(.vo-call-btn, .vo-call-split) { flex: 1 1 0; min-width: 40px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-cluster .vo-call-btn,
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron) {
  width: 100%; min-width: 40px; height: 44px; padding: 0; border-radius: 12px;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-btn.vo-call-hangup { width: 56px; min-width: 52px; height: 44px; }
/* Expanded call: the arrow badge stays small to look at but takes taps from a 34px area. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
}

/* Room card corner buttons on a phone (invite, padlock, ⋯): one row of equal 40px buttons on
   the same top line. They were 22px, 36px and 40px at three different heights. */
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room :is(.vo-room__invite, .vo-room__lock--btn, .vo-room__menu) {
  top: 8px; margin-top: 0; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
}
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room .vo-room__menu { right: 8px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room .vo-room__lock--btn { right: 8px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room:has(.vo-room__menu) .vo-room__lock--btn { right: 50px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room .vo-room__invite { right: 8px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room:has(.vo-room__menu) .vo-room__invite,
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room:has(.vo-room__lock--btn) .vo-room__invite { right: 50px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room:has(.vo-room__menu):has(.vo-room__lock--btn) .vo-room__invite { right: 92px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room .vo-room__invite .vo-glyph { width: 19px; height: 19px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room .vo-room__lock--btn svg { width: 16px; height: 16px; }
html:is(.vo-phone, .vo-narrow) body .vo-shell .vo-room.vo-room.vo-room:has(.vo-room__invite):has(.vo-room__lock--btn):has(.vo-room__menu) .vo-room__label { padding-right: 132px; }

/* ---------- Inbox list on phones: design A (2026-11-20) ----------
   Search, filter chips, then every conversation with its last message, time and unread
   count; a pencil button for a new message and the app's bottom tab bar. Wider windows
   keep the sections and the rail (these elements are hidden there). */
.vo-ain-mlist, .vo-ain-tabbar { display: none; }
@media (max-width: 760px) {
  html .vo-ain.with-side .vo-ain-side { position: relative; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; background: var(--vo-panel); }
  html .vo-ain-side > :is(.vo-ain-pins, .vo-ain-nav, .vo-ain-sec) { display: none; }
  html .vo-ain-side-actions [title="Search"] { display: none; }
  html .vo-ain-side-head { padding: 6px 12px 2px 16px; }
  html .vo-ain-side-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
  html .vo-ain.with-side > .vo-ain-rail { display: none; }
  html .vo-ain.with-side > .vo-ain-side { grid-row: 1 / -1; }

  html .vo-ain-mlist { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  html .vo-ain-msearch {
    display: flex; align-items: center; gap: 8px; margin: 6px 16px 10px; padding: 0 12px; height: 42px;
    border-radius: 12px; background: var(--vo-hover); color: var(--vo-muted); flex: 0 0 auto;
  }
  html .vo-ain-msearch .vo-glyph { width: 18px; height: 18px; flex: 0 0 auto; }
  html .vo-ain-msearch input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--vo-ink);
    font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
  }
  html .vo-ain-mchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; flex: 0 0 auto; }
  html .vo-ain-mchips button {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border: 1px solid var(--vo-line); border-radius: 999px; background: var(--vo-panel); color: var(--vo-ink);
    font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  }
  html .vo-ain-mchips button.on { background: var(--vo-accent); border-color: var(--vo-accent); color: var(--vo-accent-ink, #fff); }
  html .vo-ain-mchips b, html .vo-ain-mchips i {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
    background: #ef4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 700;
  }
  html .vo-ain-mchips i { background: var(--vo-hover); color: var(--vo-muted); }
  html .vo-ain-mchips button.ai {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #c4b5fd; color: #6d28d9;
    box-shadow: 0 1px 6px rgba(124, 58, 237, 0.18);
  }
  html .vo-ain-mchips button.ai svg { color: #7c3aed; }
  html[data-theme="dark"] .vo-ain-mchips button.ai {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(139, 92, 246, 0.16)); border-color: rgba(167, 139, 250, 0.5); color: #ddd6fe;
  }
  html[data-theme="dark"] .vo-ain-mchips button.ai svg { color: #c4b5fd; }
  html .vo-ain-mchips button.on b { background: rgba(255, 255, 255, 0.25); }
  html .vo-ain-msec { padding: 10px 16px 4px; color: var(--vo-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
  html .vo-ain-mempty { margin: 28px 24px; color: var(--vo-muted); text-align: center; font-size: 14.5px; }

  html .vo-ain-mrow {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 8px 16px;
    border: 0; background: transparent; color: var(--vo-ink); font: inherit; text-align: left; cursor: pointer;
  }
  html .vo-ain-mrow:active, html .vo-ain-mrow.active { background: var(--vo-hover); }
  html .vo-ain-mav {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-size: 16px; font-weight: 700;
  }
  html .vo-ain-mav.hash { font-size: 21px; font-weight: 800; border-radius: 14px; }
  html .vo-ain-mav .vo-glyph { width: 22px; height: 22px; }
  html .vo-ain-mmid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  html .vo-ain-mtop, html .vo-ain-mbot { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  html .vo-ain-mtop strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
  html .vo-ain-mmute { flex: 0 0 auto; font-size: 12px; opacity: 0.7; }
  html .vo-ain-mtop time { margin-left: auto; flex: 0 0 auto; color: var(--vo-muted); font-size: 12.5px; }
  html .vo-ain-mbot > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vo-muted); font-size: 14.5px; }
  html .vo-ain-mbot b {
    flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
    background: var(--vo-accent); color: var(--vo-accent-ink, #fff); font-size: 12px; font-weight: 700;
  }
  html .vo-ain-mrow.unread strong { font-weight: 800; }
  html .vo-ain-mrow.unread .vo-ain-mtop time { color: var(--vo-accent); font-weight: 600; }
  html .vo-ain-mrow.unread .vo-ain-mbot > span { color: var(--vo-ink); }

  html .vo-ain-fab {
    position: sticky; bottom: 16px; align-self: flex-end; flex: 0 0 auto; margin: auto 16px 0 0;
    width: 56px; height: 56px; border: 0; border-radius: 18px; display: grid; place-items: center;
    background: var(--vo-accent); color: var(--vo-accent-ink, #fff); box-shadow: 0 10px 24px rgba(11, 92, 255, 0.35); cursor: pointer;
  }
  html .vo-ain-fab .vo-glyph { width: 24px; height: 24px; }
  html .vo-ain-mlist > :nth-last-child(2) { margin-bottom: 8px; }

  html .vo-ain-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); flex: 0 0 auto;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vo-line); background: var(--vo-panel);
  }
  html .vo-ain-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border-radius: 12px; color: var(--vo-muted); font-size: 11.5px; font-weight: 600; text-decoration: none;
  }
  html .vo-ain-tabbar a.active { color: var(--vo-accent); background: var(--vo-accent-soft); }
  html .vo-ain-side { padding-bottom: 0; }
  html.vo-kb-open .vo-ain-tabbar { display: none; }
}

/* ---------- Call stage while joining or alone (phones, 2026-11-20) ----------
   The stage used to be a blank box until the microphone and camera had started, and stayed
   plain while you were the only one there. It now says what is happening: "Joining the call…",
   then "Waiting for others to join" with your avatar and an Invite button. The small call box
   lays this out in one row; over your own video it shrinks to a pill along the top. */
.vo-call-waiting { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage-wrap { position: relative; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 16px 22px; text-align: center; color: var(--vo-ink);
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(91, 140, 255, 0.16), transparent 62%),
    linear-gradient(180deg, var(--vo-panel, #fff), var(--vo-bg-elev, #f6f7fb));
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting .vo-call-waiting-face {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 68px; height: 68px; margin: 0 0 10px; border: 0; border-radius: 50%;
  color: #fff; font-size: 23px; font-weight: 700;
  background: linear-gradient(145deg, #5b8cff, #2a5ce0);
  box-shadow: 0 0 0 6px rgba(91, 140, 255, 0.14), 0 10px 24px rgba(42, 92, 224, 0.22);
  animation: vo-call-wait-ring 2.4s ease-in-out infinite;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting-face.joining { background: var(--vo-accent-soft, #e8efff); color: var(--vo-accent); }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting-face.joining svg { width: 30px; height: 30px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting strong { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting-text { max-width: 290px; color: var(--vo-muted); font-size: 13.5px; line-height: 1.4; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting-invite {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; margin-top: 12px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--vo-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-waiting-invite :is(svg, .vo-glyph) { width: 16px; height: 16px; }
@keyframes vo-call-wait-ring {
  0%, 100% { box-shadow: 0 0 0 6px rgba(91, 140, 255, 0.14), 0 10px 24px rgba(42, 92, 224, 0.22); }
  50% { box-shadow: 0 0 0 12px rgba(91, 140, 255, 0.06), 0 10px 24px rgba(42, 92, 224, 0.22); }
}
@media (prefers-reduced-motion: reduce) {
  html .vo-call-overlay .vo-call-waiting-face { animation: none; }
}

/* Small call box: avatar, two lines of text and Invite in one row. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "face title btn" "face text btn";
  align-content: center; align-items: center; column-gap: 12px; row-gap: 2px; padding: 10px 14px; text-align: left;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-face { grid-area: face; width: 48px; height: 48px; margin: 0; font-size: 17px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-face.joining svg { width: 24px; height: 24px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting strong { grid-area: title; align-self: end; font-size: 15px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-text {
  grid-area: text; align-self: start; font-size: 12.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-invite { grid-area: btn; margin: 0; height: 38px; padding: 0 14px; }

/* Your own video is showing: just a pill along the top, so the picture stays visible. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage-wrap:has(:is(.vo-participant-tiles, .vo-speaker-main) .vo-tile video[data-ready="true"]) .vo-call-waiting {
  inset: 10px 10px auto 10px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 5px 5px 14px; border-radius: 999px; text-align: left;
  background: rgba(15, 23, 42, 0.62); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage-wrap:has(:is(.vo-participant-tiles, .vo-speaker-main) .vo-tile video[data-ready="true"]) .vo-call-waiting :is(.vo-call-waiting-face, .vo-call-waiting-text) { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage-wrap:has(:is(.vo-participant-tiles, .vo-speaker-main) .vo-tile video[data-ready="true"]) .vo-call-waiting strong { font-size: 13px; font-weight: 600; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage-wrap:has(:is(.vo-participant-tiles, .vo-speaker-main) .vo-tile video[data-ready="true"]) .vo-call-waiting-invite { height: 32px; margin: 0; padding: 0 12px; font-size: 13px; }

/* ---------- Chat composer on a phone (2026-11-20) ----------
   + sits on its own on the left, the message field is a rounded pill holding the emoji
   button, and Send is a round button on the right (like the messaging apps people know).
   The pill is drawn by ::before, so the + menu keeps anchoring to the whole composer. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row {
  position: relative; align-items: flex-end; gap: 6px; min-height: 44px; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row:focus-within { border: 0; box-shadow: none; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 46px; right: 46px; pointer-events: none;
  border: 1px solid var(--vo-line); border-radius: 22px; background: var(--vo-input);
  transition: border-color .15s, box-shadow .15s;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row:focus-within::before {
  border-color: color-mix(in srgb, var(--vo-accent) 55%, var(--vo-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vo-accent) 14%, transparent);
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row > :is(.vo-react-wrap, textarea, .vo-icon-btn) { position: relative; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-compose-plus > .vo-icon-btn {
  position: relative; width: 40px; min-width: 40px; height: 40px; margin: 2px 0; border-radius: 50%;
  background: var(--vo-hover); color: var(--vo-ink);
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-compose-plus > .vo-icon-btn :is(.vo-glyph, svg) { width: 22px; height: 22px; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-react-wrap { margin: 0 0 2px 0; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-react-wrap > .vo-icon-btn {
  width: 40px; min-width: 40px; height: 40px; margin: 0; background: transparent; color: var(--vo-muted);
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-chat-compose .vo-compose-row textarea {
  min-height: 44px; padding: 11px 12px 11px 0; border: 0; background: transparent; box-shadow: none;
  font-size: 16px; line-height: 22px;
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn.primary {
  width: 40px; min-width: 40px; height: 40px; margin: 2px 0; border-radius: 50%;
  background: var(--vo-accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--vo-accent) 30%, transparent);
}
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn.primary:disabled { background: var(--vo-hover); color: var(--vo-muted); box-shadow: none; opacity: 1; }
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-compose-row .vo-icon-btn.primary :is(.vo-glyph, svg) { width: 19px; height: 19px; }

/* ---------- Page titles on a phone: a calmer size (2026-11-20) ---------- */
@media (max-width: 760px) {
  html .vo-cast-top h1, html .vo-page-head h1 { margin: 0 0 2px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
  html .vo-cast-top .vo-cast-sub { font-size: 14px; line-height: 1.4; }
  html .vo-cast-empty { padding: 36px 20px; text-align: center; }
  html .vo-cast-empty > div { display: grid; gap: 4px; justify-items: center; }
  html .vo-cast-empty p { margin: 0; font-size: 14px; }
}

/* ---------- Conversation header on a phone: actions on their own row (2026-11-20) ----------
   With the name, Knock, Wave, Invite, Guest badge, the timer and people there was no room for
   one row, and the last buttons were cut off at the right edge. The title row keeps Back,
   the name and nothing else; the actions get the full width below it. */
@media (max-width: 760px) {
  html .vo-ain-head { flex-wrap: wrap; row-gap: 8px; column-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  html .vo-ain-head > div:not(.vo-ain-quick) { flex: 1 1 0; min-width: 0; }
  html .vo-ain-head > div:not(.vo-ain-quick) h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html .vo-ain-head .vo-ain-quick { flex: 1 0 100%; order: 3; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 6px; overflow: visible; }
  html .vo-ain-head .vo-ain-quick .vo-ain-person-actions { display: flex; align-items: center; gap: 4px; }
}
@media (max-width: 760px) {
  html .vo-ain-head .vo-ain-quick { gap: 0; }
  html .vo-ain-head .vo-ain-quick .vo-ain-person-actions { gap: 0; }
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn:not(.vo-knock-btn) { width: 36px; min-width: 36px; height: 40px; }
  html .vo-ain-head .vo-ain-quick .vo-knock-btn { padding: 0 12px; margin-right: 2px; gap: 6px; }
}
@media (max-width: 760px) {
  html .vo-ain-head .vo-ain-quick .vo-knock-btn { padding: 0 10px; }
  html .vo-ain-head .vo-ain-quick select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]) {
    width: 92px; max-width: 92px; padding: 0 20px 0 26px; background-position: 8px 50%, right 7px center; font-size: 12.5px;
  }
  html .vo-ain-head .vo-ain-quick .vo-ain-members > summary { padding-left: 4px; padding-right: 4px; }
}
@media (max-width: 760px) {
  html .vo-ain-head .vo-ain-quick .vo-ain-person-actions { margin: 0; padding: 0; }
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-ain-iconbtn:not(.vo-knock-btn) { width: 34px; min-width: 34px; }
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn { padding: 0 9px; gap: 5px; margin-right: 0; }
  html .vo-ain-head .vo-ain-quick .vo-ain-members > summary { padding: 0 2px; gap: 3px; }
}
/* Small call box: Invite is a round icon button so the title stays on one line. The full
   screen already has Invite in the bar under the stage, so the card doesn't repeat it. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-invite { width: 40px; height: 40px; padding: 0; font-size: 0; gap: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-invite :is(svg, .vo-glyph) { width: 19px; height: 19px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay:not([data-compact="true"]) .vo-call-stage-wrap:not(:has(.vo-tile video[data-ready="true"])) .vo-call-waiting-invite { display: none; }
@media (max-width: 760px) {
  /* Knock stays green but icon-only here, so "Timer off" fits without being cut. */
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn { width: 40px; min-width: 40px; padding: 0; }
  html .vo-ain-head .vo-ain-quick .vo-knock-btn > span { display: none; }
  html .vo-ain-head .vo-ain-quick select.vo-ain-timer-select.vo-ain-timer-select:not([multiple]):not([size]) { width: auto; max-width: 118px; }
}
/* Phone: the View menu drops down from the header at the right (not across the control bar). */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-viewpick .vo-call-view-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; width: min(280px, calc(100vw - 32px)); max-height: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-call="audio"] .vo-call-viewpick { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-viewbtn { height: 40px; padding: 0 8px; gap: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay :is(.vo-call-view-menu, .vo-call-audio-menu) button { min-height: 56px; }

/* Alone with your video as a small window or strip: it sits above the "Waiting" card. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-stage .vo-self-view { z-index: 4; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-menu.vo-call-more-menu { max-width: none; max-height: 70dvh; padding: 6px 10px 10px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-mtiles button { min-height: 72px; padding: 10px 4px; border-radius: 12px; font-size: inherit; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-mchips button { min-height: 42px; padding: 0 14px; border-radius: 999px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-mrows button { min-height: 52px; padding: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-menu-label { padding: 8px 4px 6px; font-size: 11.5px; }

/* Conversation header on a phone: Knock is a green pill beside the name (Umar, 2026-11-20);
   the actions row below keeps Wave, Invite, Guest badge, the timer, people and Later. */
.vo-ain-knock-top { display: none; }
@media (max-width: 760px) {
  html .vo-ain-head .vo-ain-knock-top {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 38px; padding: 0 14px 0 11px;
    border: 0; border-radius: 999px; background: linear-gradient(180deg, #22c55e, #16a34a); color: #fff;
    font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
  }
  html .vo-ain-head .vo-ain-knock-top:active { transform: scale(0.97); }
  html .vo-ain-head .vo-ain-knock-top :is(.vo-glyph, svg) { width: 18px; height: 18px; }
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn { display: none; }
  html .vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-ain-iconbtn:not(.vo-knock-btn) { width: 40px; min-width: 40px; }
  html .vo-ain-head .vo-ain-quick { justify-content: space-between; }
}

/* Inbox filter chips: one line (All, Unread, Threads, More); More opens the rest on extra
   lines, with AI Assistants last (Umar, 2026-11-20). */
@media (max-width: 760px) {
  html .vo-ain-mchips button.more { gap: 4px; padding: 0 12px 0 14px; color: var(--vo-muted); background: var(--vo-hover); border-color: transparent; }
  html .vo-ain-mchips button.more[aria-expanded="true"] { color: var(--vo-ink); }
}
/* Phones have Reactions on the bar (React button), so More starts at View / Your video. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-msec-reacts { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-msec-reacts + .vo-call-msec { margin-top: 0; padding-top: 0; border-top: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-more-menu .vo-call-mtiles.four button strong { font-size: 12px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay .vo-call-viewbtn { width: 40px; padding: 0; }

/* =====================================================================
   Call on a phone, full screen: design B, the floating dark dock (Umar chose it 2026-11-20).
   Video fills the screen on a dark background, the header floats over its top edge, and one
   dark glass pill floats at the bottom with Mic, Camera, Sound (phone apps), More and Leave.
   Share, raise hand, reactions, Invite, View and Your video are in More.
   ===================================================================== */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] {
  padding: 0; background: #0b1220; color: #fff;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 28px calc(14px + env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0));
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-room { color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-meta { color: #cbd5e1; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] :is(.vo-call-size, .vo-call-viewbtn) {
  border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-viewbtn .vo-call-viewico { color: #fff; }
/* Invite lives in More here (the people bar is gone). */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-add { display: none; }

html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-body { position: absolute; inset: 0; display: block; margin: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-body > .vo-call-stage-wrap { position: absolute; inset: 0; height: auto; border-radius: 0; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-side { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage {
  height: 100%; border: 0; border-radius: 0; background: #0b1220;
  padding: calc(72px + env(safe-area-inset-top)) 8px calc(100px + env(safe-area-inset-bottom));
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage .vo-tile { border-color: rgba(255, 255, 255, 0.08); border-radius: 18px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-self-view[data-mode="float"] { right: 14px; bottom: calc(108px + env(safe-area-inset-bottom)); }

/* Joining / waiting card on the dark stage. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-waiting {
  color: #fff; background: radial-gradient(90% 60% at 50% 40%, rgba(59, 130, 246, 0.22), transparent 70%), #0b1220;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-waiting-text { color: #cbd5e1; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-waiting-face.joining { background: rgba(255, 255, 255, 0.12); color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage-wrap:not(:has(:is(.vo-participant-tiles, .vo-speaker-main) .vo-tile video[data-ready="true"])) .vo-call-waiting-invite { display: inline-flex; }

/* The dock. */
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-call-actions {
  position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 7;
  width: min(360px, calc(100% - 28px)); margin: 0 auto; padding: 8px;
  border: 0; border-radius: 34px; background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-cluster { justify-content: space-between; gap: 6px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-in-more { display: none !important; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] :is(.vo-call-btn, .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron), .vo-call-btn.vo-call-hangup) {
  width: 52px; min-width: 52px; height: 52px; margin: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn::before { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-btn svg { width: 24px; height: 24px; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-call-btn.is-off { background: #fff; color: #0f172a; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-call-btn.is-on { background: var(--vo-accent); color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-call-btn.vo-call-hangup { background: #ef4444; color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-split { align-items: center; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-chevron {
  align-self: flex-start; margin: -2px 0 0 -16px; width: 18px; min-width: 18px; height: 18px;
  border: 2px solid #0f172a; background: #334155; color: #fff;
}
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-more-menu .vo-call-msec-phone { display: block; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-more-menu .vo-call-msec-phone + .vo-call-msec { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--vo-line); }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-menu { color: var(--vo-ink); }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-offer { position: absolute; left: 14px; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 7; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] :is(.vo-call-btn, .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron)).is-off { background: #fff; color: #0f172a; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] :is(.vo-call-btn, .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron)).is-on { background: var(--vo-accent); color: #fff; }
html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] :is(.vo-call-btn, .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron)).vo-call-hangup { background: #ef4444; color: #fff; }
@media (orientation: landscape) {
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage {
    padding: calc(64px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(92px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-self-view[data-mode="float"] {
    width: 150px; max-width: 150px; right: calc(16px + env(safe-area-inset-right)); bottom: calc(100px + env(safe-area-inset-bottom));
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="false"] .vo-self-view[data-mode="float"] .vo-self-slot .vo-tile { aspect-ratio: 4 / 3 !important; }
}

/* ---------- Small call box on phones: a dark card at the top of the list (design B) ---------- */
/* One card holds the whole call (room, timer, people, controls). vo-narrow.js sets --vo-call-top
   (where the list starts) and --vo-call-h (the card's height); the list gets matching top padding. */
@media (orientation: portrait) {
  html:is(.vo-phone, .vo-narrow):has(.vo-call-overlay[data-compact="true"]) .vo-shell .vo-floor-frame {
    padding-top: calc(var(--vo-call-h, 0px) + 16px);
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] {
    top: calc(var(--vo-call-top, 150px) + 10px);
    bottom: auto;
    background: #0b1220;
    color: #fff;
    border: 0;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.28);
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-room { color: #fff; font-size: 16px; font-weight: 700; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-meta { color: #9fb0d0; font-size: 12.5px; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] :is(.vo-call-size, .vo-call-viewbtn) {
    background: #26314d; border-color: transparent; color: #fff;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-actions {
    background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 10px;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-btn:not(.vo-call-hangup) {
    background: #26314d; color: #fff; border-color: transparent; border-radius: 14px;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-btn.is-off { background: #fff; color: #0b1220; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-btn.vo-call-hangup { background: #e5342b; color: #fff; }
  /* Simple round buttons, evenly spaced, the same icons as the full-screen call. */
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] .vo-call-actions,
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] .vo-call-cluster {
    background: transparent; border: 0; box-shadow: none; padding: 0; justify-content: space-between; gap: 0;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] .vo-call-cluster > :is(.vo-call-btn, .vo-call-split) { flex: 0 0 auto; min-width: 0; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] :is(.vo-call-btn, .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron), .vo-call-btn.vo-call-hangup) {
    width: 48px; min-width: 48px; height: 48px; padding: 0; border-radius: 50%;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay.vo-call-overlay[data-compact="true"] .vo-call-btn svg { width: 22px; height: 22px; }
  /* The room name is in the card already. */
  html:is(.vo-phone, .vo-narrow):has(.vo-call-overlay[data-compact="true"]) .vo-office-strip .vo-office-strip__room { display: none; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting {
    background: #16213a; color: #fff; border-color: transparent;
  }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-waiting-text { color: #9fb0d0; }
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-stage { background: #16213a; border-radius: 14px; }
  /* Your own picture is not shown in the small card; it is in the full-screen call. */
  html:is(.vo-phone, .vo-narrow) .vo-call-overlay[data-compact="true"] .vo-self-view { display: none; }
}

/* The room card for where you are says "You're here" already through its highlight and the call card. */
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-floor .vo-room .vo-room__cta.vo-room__cta--here { display: none !important; }
