@import url("vo.css");

.vo-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, var(--vo-accent-soft), transparent 42%),
    var(--vo-bg);
  color: var(--vo-ink);
  font-family: var(--vo-font, Inter, sans-serif);
}

@media (max-width: 960px) {
  .vo-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(240px, 42%);
  }
}

.vo-cal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0;
}

.vo-cal-chip {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}

.vo-map-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--vo-floor);
}

.vo-office {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.vo-office-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  min-height: 52px;
  min-width: 0;
  padding: 0.4rem 0.9rem;
  background: var(--vo-bg-elev);
  border-bottom: 1px solid var(--vo-line);
  flex-shrink: 0;
}

.vo-office-bar__left,
.vo-office-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.vo-bar-ico { display: none; }

@media (max-width: 1600px) {
  .vo-bar-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vo-bar-ico { display: inline; font-size: 0.95rem; line-height: 1; }
  .vo-office-bar .vo-btn { padding: 0.4rem 0.55rem; }
  .vo-reception input { max-width: 6.5rem; }
}

.vo-office-bar a.vo-btn:hover {
  text-decoration: none;
}

.vo-office-bar__right {
  justify-content: flex-end;
}

.vo-office-bar__company {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.vo-reception {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
  border-radius: 999px;
  padding: 0.15rem 0.55rem 0.15rem 0.25rem;
  font-size: 0.8rem;
}

.vo-reception select,
.vo-reception input {
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  max-width: 9.5rem;
}

.vo-userchip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.vo-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
  color: var(--vo-ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.vo-icon-btn:hover { background: var(--vo-hover); }

.vo-map-toolbar {
  display: none;
}

.vo-guest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vo-guest-url {
  flex: 1 1 16rem;
  min-width: 0;
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  background: var(--vo-input);
  color: var(--vo-ink);
}

.vo-person--guest .vo-avatar {
  box-shadow: 0 0 0 2px var(--vo-info);
}

.vo-floor-frame {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.1rem 0.5rem;
}

.vo-floor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  min-height: 100%;
  min-width: 0;
}

.vo-floor-privates {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-content: start;
}

.vo-floor-meetings {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-content: start;
}

@media (max-width: 1500px) {
  .vo-floor {
    grid-template-columns: minmax(0, 1fr);
  }

  .vo-floor-privates,
  .vo-floor-meetings,
  .vo-room--lead {
    grid-column: 1;
    grid-row: auto;
  }
}

.vo-room {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid var(--vo-line);
  background: var(--vo-floor-card);
  color: var(--vo-ink);
  border-radius: 16px;
  box-shadow: var(--vo-shadow-sm);
  padding: 0.7rem 0.8rem 0.8rem;
  cursor: pointer;
  min-height: 108px;
}

.vo-room--lead {
  grid-column: 1;
  min-height: 150px;
}

.vo-room--empty {
  background: var(--vo-floor-card-empty);
}

.vo-room--empty .vo-room__label {
  color: var(--vo-muted);
}

.vo-room--own {
  border: 2px solid var(--vo-own);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vo-own) 22%, transparent);
}

.vo-room--selected:not(.vo-room--own) {
  border-color: var(--vo-focus);
}

.vo-room--meeting {
  min-height: 168px;
}

.vo-room__label {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1.4rem;
}

.vo-room__icon {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  color: var(--vo-muted);
}

.vo-room__lock {
  position: absolute;
  top: 0.42rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 0.9rem;
  line-height: 1;
}

.vo-room--locked .vo-room__label {
  padding-left: 1.15rem;
}

.vo-room__people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  align-items: flex-start;
}

.vo-room-menu {
  position: absolute;
  z-index: 8;
  right: 0.4rem;
  top: 1.6rem;
  background: var(--vo-panel, #fff);
  border: 1px solid var(--vo-line, #ccc);
  border-radius: 8px;
  padding: 0.25rem;
}

.vo-room__menu {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  font-size: 1rem;
}

.vo-voice {
  width: min(280px, 100%);
  display: block;
}

.vo-speech {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--vo-panel, #fff);
  border: 1px solid var(--vo-line, #ccc);
  border-radius: 8px;
  font-size: 11px;
  padding: 1px 6px;
  z-index: 6;
}

.vo-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 52px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.vo-inbound {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 7;
  width: max-content;
  max-width: 220px;
  padding: 0.4rem 0.55rem;
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  box-shadow: var(--vo-shadow);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  animation: vo-pop-in 180ms ease;
}

.vo-inbound strong {
  display: block;
  font-size: 0.72rem;
}

.vo-inbound::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--vo-panel);
  border-bottom: 0;
}

.vo-person__name,
.vo-person__caption {
  font-size: 0.65rem;
  line-height: 1.2;
  max-width: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.vo-person__caption { color: var(--vo-muted); }

.vo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--vo-floor-card);
}

.vo-hand-queue {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
}

.vo-react-burst {
  position: absolute;
  right: 1.5rem;
  bottom: 5.5rem;
  display: flex;
  gap: 0.35rem;
  font-size: 1.8rem;
  pointer-events: none;
}

.vo-cast-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 24rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
  color: var(--vo-ink);
  text-decoration: none;
}

.vo-person--talking .vo-avatar {
  box-shadow: 0 0 0 3px #12b76a;
  animation: vo-talk 1.1s ease-in-out infinite;
}

@keyframes vo-talk {
  0%, 100% { box-shadow: 0 0 0 2px #12b76a; }
  50% { box-shadow: 0 0 0 6px rgba(18, 183, 106, 0.35); }
}

.vo-avatar--available { background: #0f6e56; }
.vo-avatar--busy { background: #b54708; }
.vo-avatar--away { background: #667085; }
.vo-avatar--incall { background: #6941c6; }
.vo-avatar--dnd { background: #b42318; }

.vo-floor-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem 0.35rem;
  overflow-x: auto;
  flex-shrink: 0;
}

.vo-floor-tab,
.vo-floor-slot {
  flex: 0 0 auto;
  min-width: 88px;
  height: 28px;
  border-radius: 8px;
  border: 1px dashed var(--vo-line);
  background: color-mix(in srgb, var(--vo-panel) 70%, transparent);
  color: var(--vo-muted);
  font-size: 0.78rem;
}

.vo-floor-tab.active {
  border-style: solid;
  background: var(--vo-panel);
  color: var(--vo-ink);
  font-weight: 600;
}

.vo-floor-slot { min-width: 36px; font-weight: 700; }

.vo-dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem 0.7rem;
  background: var(--vo-bg-elev);
  border-top: 1px solid var(--vo-line);
  flex-shrink: 0;
}

.vo-dock__center,
.vo-dock__right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vo-dock__center {
  justify-content: center;
}

.vo-dock__right {
  justify-content: flex-end;
}

.vo-dock-btn {
  min-width: 42px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
  color: var(--vo-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 0.55rem;
  cursor: pointer;
}

.vo-dock-btn.danger {
  background: var(--vo-danger);
  color: #fff;
  border-color: transparent;
}

.vo-dock-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

a.vo-dock-btn {
  text-decoration: none;
  color: var(--vo-ink);
}

@media (max-width: 960px) {
  .vo-floor,
  .vo-floor-meetings {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
  }

  .vo-office-bar {
    grid-template-columns: 1fr;
  }
}

.vo-talk-ring {
  fill: none;
  stroke: #12b76a;
  stroke-width: 3;
  pointer-events: none;
  transform-origin: center;
  transform-box: fill-box;
  animation: vo-talk 0.9s ease-in-out infinite;
}

.vo-incall-badge {
  fill: #6941c6;
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
}

.vo-inzoom-badge {
  fill: #2d8cff;
  stroke: #fff;
  stroke-width: 1.5;
  pointer-events: none;
}

.vo-zoom-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 1rem;
}

.vo-zoom-url {
  flex: 1;
  min-width: 12rem;
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  background: var(--vo-input);
  color: var(--vo-ink);
}

.vo-pill-zoom {
  background: color-mix(in srgb, var(--vo-info) 18%, transparent);
  color: var(--vo-info);
}

.vo-avatar-caption {
  font-size: 11px;
  font-weight: 650;
  fill: var(--vo-ink);
  pointer-events: none;
}

@keyframes vo-talk {
  0%, 100% { stroke-opacity: 1; stroke-width: 3; }
  50% { stroke-opacity: 0.35; stroke-width: 5; }
}

.vo-status-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.vo-status-picker select,
.vo-status-picker input {
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  background: var(--vo-input);
  color: var(--vo-ink);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.vo-status-picker input {
  width: 11rem;
}

.vo-pill {
  border-radius: 999px;
  background: #f4ebff;
  color: #6941c6;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.vo-avatar-label {
  font-size: 10px;
  fill: #fff;
  font-weight: 700;
  pointer-events: none;
}

.vo-chat-pane {
  background: var(--vo-panel);
  border-left: 1px solid var(--vo-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.vo-shell.chat-closed {
  grid-template-columns: minmax(0, 1fr);
}

.vo-shell.chat-closed .vo-chat-column { display: none; }

.vo-chat-column {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.vo-chat-collapse {
  position: absolute;
  z-index: 4;
  top: 0.45rem;
  left: 0.35rem;
}

.vo-chat-tabs { padding-left: 1.7rem; }

.vo-chat-reopen { right: 0.8rem; top: 4.2rem; }

.vo-chat-tabs {
  display: flex;
  border-bottom: 1px solid var(--vo-line);
}

.vo-chat-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  color: var(--vo-muted);
}

.vo-chat-tabs button.active {
  color: var(--vo-link);
  box-shadow: inset 0 -2px 0 var(--vo-link);
}

.vo-chat-list {
  flex: 0 1 auto;
  max-height: 28%;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--vo-line);
}

.vo-chat-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--vo-line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vo-chat-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vo-chat-preview {
  color: var(--vo-muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vo-unread {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--vo-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.vo-chat-tabs .vo-unread {
  margin-left: 0.35rem;
}

.vo-earlier {
  align-self: center;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
}

.vo-chat-item.active,
.vo-chat-item:hover {
  background: var(--vo-hover);
}

.vo-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: column;
  /* flex-end here makes overflow past the top unscrollable; .vo-chat-stack's
     margin-top: auto keeps short chats pinned to the bottom instead. */
  justify-content: flex-start;
  background: var(--vo-bg);
}

.vo-chat-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: min-content;
  /* Without this the stack shrinks to the pane and overflows upward, out of scroll reach. */
  flex-shrink: 0;
}

.vo-msg {
  position: relative;
  max-width: 92%;
  background: var(--vo-msg);
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  padding: 0.3rem 0.45rem 0.35rem;
}

.vo-msg.bookmarked {
  border-color: var(--vo-focus);
}

.vo-quote, .vo-typing, .vo-upload-error, .vo-seen { display: block; font-size: 0.85rem; }
.vo-ain-drag { cursor: grab; opacity: .6; margin-right: .35rem; }
.vo-ain-row.muted { opacity: .55; }
.vo-ain-count.dim { opacity: .45; }
.vo-ain-menu { display: flex; flex-direction: column; background: var(--vo-panel, #fff); border: 1px solid var(--vo-line, #ddd); position: absolute; z-index: 5; }
.vo-switcher { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; display: flex; justify-content: center; padding-top: 12vh; }
.vo-switcher-panel { background: var(--vo-panel, #fff); width: min(32rem, 92vw); padding: 1rem; border-radius: 12px; }
.vo-switcher-panel button { display: flex; width: 100%; justify-content: space-between; background: transparent; border: 0; padding: .4rem; }
.vo-switcher-panel button.active { background: var(--vo-accent-soft); color: var(--vo-link); }
.vo-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 40; }
.vo-msg-deleted {
  color: var(--vo-muted);
  font-style: italic;
}

.vo-msg-more {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  z-index: 4;
}

.vo-msg-kebab {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--vo-bg-elev) 88%, transparent);
  color: var(--vo-ink);
  cursor: pointer;
  font: inherit;
}

.vo-msg-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 3;
  flex-direction: column;
  min-width: 13.5rem;
  padding: 0.25rem;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  box-shadow: var(--vo-shadow-sm);
}

/* Opens on a click of the ⋮ only (ChatMessageMenu). A hover menu closed while the mouse
   crossed the gap between the ⋮ and the menu, so options could not be picked. */
.vo-msg-more.open .vo-msg-menu {
  display: flex;
}

.vo-msg-menu {
  min-width: 15rem;
  max-width: min(20rem, calc(100vw - 16px));
}

.vo-msg-menu-group {
  display: flex;
  flex-direction: column;
}

.vo-msg-menu-sep {
  border: 0;
  border-top: 1px solid var(--vo-line);
  margin: 0.25rem 0.35rem;
}

.vo-msg-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  text-align: left;
  font: inherit;
  font-size: var(--vo-fs-sm);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}

.vo-msg-menu button > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-msg-menu button > .vo-glyph {
  flex: none;
  color: var(--vo-muted);
}

.vo-msg-menu button.on > .vo-glyph,
.vo-msg-menu button:hover > .vo-glyph {
  color: inherit;
}

.vo-msg-menu button small {
  flex: none;
  color: var(--vo-muted);
  font-size: 0.85em;
}

/* "Remind me" and "Forward Message" open their choices just below them, indented. */
.vo-msg-menu-parent > .vo-glyph:last-child {
  transition: transform 0.15s;
}

.vo-msg-menu-parent.expanded > .vo-glyph:last-child {
  transform: rotate(90deg);
}

.vo-msg-submenu {
  display: flex;
  flex-direction: column;
  margin: 0.1rem 0 0.2rem 1.6rem;
  padding-left: 0.4rem;
  border-left: 2px solid var(--vo-line);
  max-height: 14rem;
  overflow-y: auto;
}

.vo-msg-submenu-search {
  margin: 0.2rem 0.2rem 0.3rem;
}

.vo-msg-submenu-note {
  margin: 0.3rem 0.5rem;
  color: var(--vo-muted);
  font-size: var(--vo-fs-sm);
}

.vo-msg-submenu-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem 0.3rem 0.4rem;
}

.vo-msg-submenu-custom .vo-input {
  flex: 1 1 11rem;
  min-width: 0;
}

/* Phones dim the page behind the menu; desktops don't. */
.vo-msg-menu-scrim {
  display: none;
}

/* Quick reactions at the top of the menu: phones only (the desktop hover bar has them). */
.vo-msg-menu-react {
  display: none;
}

.vo-msg-menu button:hover,
.vo-msg-menu button.on {
  background: var(--vo-accent-soft);
  color: var(--vo-link);
}

.vo-msg-menu button.danger {
  color: var(--vo-danger);
}

.vo-msg-edit,
.vo-msg-forward {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.vo-msg .meta {
  font-size: 0.75rem;
  color: var(--vo-muted);
  margin-bottom: 0.15rem;
}

.vo-mention {
  background: var(--vo-accent-soft);
  color: var(--vo-ink);
  border-radius: 4px;
  padding: 0 0.15rem;
}

.vo-msg-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.vo-thread-bar,
.vo-channel-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-panel);
}

.vo-thread-root {
  margin: 0.5rem 0.75rem 0;
}

.vo-search-hits {
  border-top: 1px solid var(--vo-line);
}

.vo-search-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.vo-search-bar .vo-input {
  width: auto;
  flex: 1 1 14rem;
}

.vo-search-bar label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.vo-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border-top: 1px solid var(--vo-line);
  flex-shrink: 0;
  min-width: 0;
  background: var(--vo-panel);
}

.vo-compose-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.vo-chat-compose input,
.vo-chat-compose textarea,
.vo-ain-compose textarea.vo-compose-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-height: calc(1.35em * 6 + 1rem);
  resize: none;
  overflow: hidden;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: var(--vo-input);
  color: var(--vo-ink);
  font: inherit;
  line-height: 1.35;
}

.vo-icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--vo-hover);
  color: var(--vo-ink);
  cursor: pointer;
  flex: 0 0 auto;
}

.vo-icon-btn.primary {
  background: var(--vo-accent);
  color: #fff;
}

.vo-icon-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.vo-glyph {
  display: block;
}

.vo-upload-error {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  color: var(--vo-danger, #b42318);
}

.vo-upload-error button {
  min-height: 32px;
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
  color: var(--vo-ink);
  border-radius: 8px;
  padding: 0 0.55rem;
  cursor: pointer;
}

/* Composer + menu: Photo or file, Poll (more can be added). */
.vo-compose-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.vo-compose-plus { position: relative; flex: 0 0 auto; display: flex; }
.vo-compose-plus .vo-icon-btn.open { background: var(--vo-hover); }
.vo-compose-plus .vo-icon-btn .vo-glyph { transition: transform .15s; }
.vo-compose-plus .vo-icon-btn.open .vo-glyph { transform: rotate(45deg); }
.vo-compose-scrim { position: fixed; inset: 0; z-index: 60; }
.vo-compose-menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 61; min-width: 190px;
  display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--vo-line); border-radius: 14px;
  background: var(--vo-bg-elev, var(--vo-panel)); box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
}
.vo-compose-menu__item {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; margin: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--vo-ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.vo-compose-menu__item:hover { background: var(--vo-hover); }
.vo-compose-menu { min-width: 0; padding: 4px; }
.vo-compose-menu__item { gap: 10px; min-height: 0; padding: 7px 10px; }
.vo-compose-menu__ico { flex: 0 0 auto; display: grid; place-items: center; width: 16px; height: 16px; }
.vo-compose-menu__ico .vo-glyph { width: 16px; height: 16px; }
.vo-compose-menu__ico.attach { color: var(--vo-accent); }
.vo-compose-menu__ico.poll { color: #16a34a; }
.vo-compose-menu__text { display: flex; flex-direction: column; gap: 0; min-width: 0; line-height: 1.2; }
.vo-compose-menu__text strong { font-size: 13.5px; font-weight: 600; }
.vo-compose-menu__text small { font-size: 11.5px; color: var(--vo-muted); white-space: nowrap; }

.vo-attach {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.vo-attach input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.vo-attach-name {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: var(--vo-muted);
}

.vo-msg-preview {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  display: block;
  margin-top: 0.4rem;
}

.vo-msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
  align-items: center;
}

.vo-react,
.vo-react-add {
  border: 1px solid var(--vo-line);
  background: var(--vo-hover);
  color: var(--vo-ink);
  border-radius: 999px;
  min-width: 32px;
  min-height: 32px;
  padding: 0 0.45rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.vo-react.mine {
  background: var(--vo-accent-soft);
  border-color: var(--vo-focus);
}

.vo-react-wrap {
  position: relative;
}

.vo-emoji-picker {
  position: fixed;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(8, 1.7rem);
  gap: 0.15rem;
  padding: 0.4rem;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  box-shadow: var(--vo-shadow);
}

.vo-emoji {
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 6px;
}

.vo-emoji:hover {
  background: var(--vo-hover);
}

.vo-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  background: var(--vo-accent);
  color: #fff;
}

.vo-btn.secondary {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-btn.danger {
  background: var(--vo-danger);
}

.vo-zoom-advanced {
  margin: 0.35rem 1rem 0;
  color: var(--vo-muted);
  font-size: var(--vo-fs-sm);
}

.vo-zoom-advanced summary {
  cursor: pointer;
}

.vo-call-overlay {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 4.75rem;
  top: 4.25rem;
  width: auto;
  max-width: none;
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: var(--vo-radius-lg);
  box-shadow: var(--vo-shadow);
  padding: 0.85rem 1rem 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vo-call-head,
.vo-call-views {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vo-call-room {
  margin-left: 0.5rem;
  color: var(--vo-muted);
  font-size: var(--vo-fs-sm);
}

.vo-call-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.75rem;
  min-height: 0;
  flex: 1;
  margin-top: 0.65rem;
  overflow: hidden;
}

.vo-call-side {
  border-left: 1px solid var(--vo-line);
  padding-left: 0.75rem;
  overflow: auto;
}

.vo-call-side h3 {
  margin: 0 0 0.4rem;
  font-size: var(--vo-fs-sm);
}

.vo-call-roster {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.vo-call-roster li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--vo-line);
}

.vo-call-roster li[data-speaking="true"] {
  color: var(--vo-ok);
}

.vo-call-roster li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vo-roster-icons { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: var(--vo-muted); }
.vo-roster-icons svg { width: 18px; height: 18px; }
.vo-roster-icons svg.on { color: var(--vo-ok); }
.vo-roster-icons svg.off { color: var(--vo-danger); }

/* Invite: one button that opens the people picker, and a nudge when you are alone. */
.vo-call-invite { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.vo-call-alone {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--vo-accent-soft);
  color: var(--vo-ink);
  font-size: 13px;
  line-height: 1.4;
}
.vo-call-invite-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.vo-call-invite-btn .vo-glyph { width: 16px; height: 16px; }

.vo-call-device {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--vo-fs-xs);
  color: var(--vo-muted);
  min-width: 8rem;
}

.vo-call-body > div:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.vo-call-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
  min-height: 0;
}

.vo-call-overlay[data-view="speaker"] .vo-speaker-main {
  flex: 1;
  min-height: 0;
}

.vo-call-overlay[data-view="speaker"] .vo-speaker-main .vo-tile,
.vo-call-overlay[data-view="speaker"] .vo-speaker-main .vo-tile video,
.vo-call-overlay[data-view="speaker"] .vo-speaker-main .vo-tile-fallback {
  min-height: 0;
  height: 100%;
}

.vo-filmstrip {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}
/* Speaker view: the talker takes the stage, everyone else is a short row of small tiles under
   them. The row used to share the height equally (flex: 1 from .vo-participant-tiles), so with
   three people Speaker looked the same as Gallery. */
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-view="speaker"] .vo-participant-tiles.vo-filmstrip {
  flex: 0 0 clamp(76px, 18vh, 140px);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-view="speaker"] .vo-participant-tiles.vo-filmstrip > .vo-tile {
  flex: 0 1 auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.vo-screen-share video {
  width: 100%;
  max-height: 200px;
  border-radius: 10px;
  background: #000;
  object-fit: contain;
}

/* ---------- Remote control of a shared screen (remote-control.js) ---------- */
.vo-screen-box { position: relative; }
.vo-rc-bar {
  position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; pointer-events: none;
}
.vo-rc-bar > * { pointer-events: auto; }
.vo-rc-note {
  padding: 5px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.86); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.vo-rc-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  line-height: 1.2; color: #fff; background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.vo-rc-btn svg { width: 14px; height: 14px; }
.vo-rc-btn:focus-visible { outline: 2px solid var(--vo-focus, #6b9fff); outline-offset: 2px; }
.vo-rc-ask { background: var(--vo-accent, #4d8bff); color: var(--vo-accent-ink, #fff); }
.vo-rc-ask:hover { filter: brightness(1.08); }
.vo-rc-ghost:hover { background: rgba(30, 41, 59, 0.95); }
.vo-rc-stop { background: #dc2626; color: #fff; }
.vo-rc-stop:hover { background: #b91c1c; }

/* Controlling someone's screen: their screen fills the window. */
.vo-rc-view {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: #05080f; color: #fff;
}
.vo-rc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; background: #111827; border-bottom: 2px solid #dc2626;
}
.vo-rc-title { display: flex; flex-direction: column; min-width: 0; }
.vo-rc-title strong { font-size: 14px; }
.vo-rc-title span { font-size: 12px; color: #cbd5e1; }
.vo-rc-head .vo-rc-btn { font-size: 13px; padding: 8px 14px; flex: none; }
.vo-rc-surface { flex: 1; min-height: 0; display: flex; padding: 6px; }
.vo-rc-surface video {
  flex: 1; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain;
  background: #000; outline: none; cursor: default; touch-action: none;
}
.vo-rc-surface video::-webkit-media-controls { display: none !important; }
.vo-rc-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.vo-rc-head .vo-rc-tools .vo-rc-btn { padding: 7px 12px; font-size: 12.5px; }
.vo-rc-head .vo-rc-ghost { background: #1f2937; }
.vo-rc-head .vo-rc-ghost:hover { background: #334155; }
.vo-rc-title span.vo-rc-flash { color: #86efac; }
.vo-rc-keys-wrap { position: relative; }
.vo-rc-menu {
  display: flex; flex-direction: column; gap: 2px; min-width: 220px; max-height: 60vh; overflow: auto;
  padding: 6px; border-radius: 12px; background: #111827; color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); border: 1px solid rgba(148, 163, 184, 0.25);
}
.vo-rc-menu[hidden] { display: none; }
.vo-rc-keys { position: absolute; right: 0; top: calc(100% + 6px); z-index: 3; }
.vo-rc-bar .vo-rc-menu { position: absolute; left: 0; bottom: calc(100% + 6px); }
.vo-rc-menu-head { padding: 6px 10px 4px; font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.vo-rc-btn.vo-rc-menu-item {
  width: 100%; justify-content: flex-start; border-radius: 8px; box-shadow: none;
  background: transparent; padding: 8px 10px; font-weight: 500;
}
.vo-rc-btn.vo-rc-menu-item:hover, .vo-rc-btn.vo-rc-menu-item:focus-visible { background: #1f2937; }
/* Actual size: their pixels one to one, scroll to see the rest. */
.vo-rc-surface.vo-rc-actual { display: block; overflow: auto; }
.vo-rc-surface.vo-rc-actual video { flex: none; display: block; max-width: none; max-height: none; object-fit: fill; }
/* The hidden box that brings up a phone's keyboard (16px so iPhone doesn't zoom). */
.vo-rc-typer {
  position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0;
  font-size: 16px; border: 0; padding: 0; resize: none; pointer-events: none;
}
@media (max-width: 720px) {
  .vo-rc-head { flex-wrap: wrap; padding: 6px 10px; }
  .vo-rc-title span { display: none; }
  .vo-rc-title span.vo-rc-flash { display: block; }
  .vo-rc-title { width: 100%; }
  .vo-rc-tools { justify-content: flex-start; width: 100%; }
}

/* ---------- Drawing on a shared screen (annotate.js) ---------- */
.vo-rc-surface { position: relative; }
.vo-ink-layer {
  position: absolute; left: 0; top: 0; z-index: 1; display: none;
  pointer-events: none; touch-action: none;
}
.vo-ink-bar {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.vo-ink-bar > * { pointer-events: auto; }
.vo-ink-note {
  padding: 5px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.86); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.3;
}
.vo-ink-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  line-height: 1.2; color: #fff; background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.vo-ink-btn svg { width: 15px; height: 15px; flex: none; }
.vo-ink-btn:focus-visible { outline: 2px solid var(--vo-focus, #6b9fff); outline-offset: 2px; }
.vo-ink-draw { background: var(--vo-accent, #4d8bff); color: var(--vo-accent-ink, #fff); }
.vo-ink-draw:hover { filter: brightness(1.08); }
.vo-ink-stop { background: #dc2626; color: #fff; }
.vo-ink-stop:hover { background: #b91c1c; }

/* The drawing view: the share fills the window, tools along the top. */
.vo-ink-view {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: #05080f; color: #fff;
}
.vo-ink-head {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: #111827; border-bottom: 2px solid var(--vo-accent, #4d8bff);
}
.vo-ink-title { display: flex; flex-direction: column; min-width: 0; flex: 0 1 260px; }
.vo-ink-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-ink-title span { font-size: 12px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-ink-tools {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.vo-ink-group {
  display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.vo-ink-tool {
  width: 34px; height: 34px; padding: 0; border-radius: 9px; background: transparent; box-shadow: none;
  color: #e2e8f0;
}
.vo-ink-tool svg { width: 19px; height: 19px; }
.vo-ink-tool:hover { background: rgba(255, 255, 255, 0.1); }
.vo-ink-tool[aria-pressed="true"] { background: var(--vo-accent, #4d8bff); color: var(--vo-accent-ink, #fff); }
.vo-ink-colors { gap: 4px; padding: 3px 6px; }
.vo-ink-color {
  width: 24px; height: 24px; padding: 0; border-radius: 50%; background: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.vo-ink-color[aria-pressed="true"] { box-shadow: 0 0 0 2px #111827, 0 0 0 4px #fff; }
.vo-ink-allow { background: transparent; box-shadow: none; padding: 6px 10px; border-radius: 9px; }
.vo-ink-allow:hover { background: rgba(255, 255, 255, 0.1); }
.vo-ink-allow[aria-pressed="true"] { background: #16a34a; }
.vo-ink-done { background: var(--vo-accent, #4d8bff); color: var(--vo-accent-ink, #fff); padding: 8px 18px; font-size: 13px; flex: none; }
.vo-ink-surface { position: relative; flex: 1; min-height: 0; display: flex; padding: 6px; }
.vo-ink-surface video {
  flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000;
}
.vo-ink-surface video::-webkit-media-controls { display: none !important; }
.vo-ink-pad {
  position: absolute; inset: 0; z-index: 2; cursor: crosshair; touch-action: none; outline: none;
}
.vo-ink-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1001;
  padding: 8px 14px; border-radius: 999px; background: rgba(15, 23, 42, 0.92); color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
html:is(.vo-phone, .vo-narrow) .vo-ink-head { flex-wrap: wrap; padding: max(8px, env(safe-area-inset-top)) 8px 8px; }
html:is(.vo-phone, .vo-narrow) .vo-ink-title { flex: 1 1 auto; }
html:is(.vo-phone, .vo-narrow) .vo-ink-tools { order: 3; flex-basis: 100%; justify-content: flex-start; }
html:is(.vo-phone, .vo-narrow) .vo-ink-btn.vo-ink-draw span { display: none; }

.vo-participant-tiles {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0.55rem;
}

.vo-tile {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid var(--vo-line);
}

.vo-tile[data-speaking="true"] {
  outline: 2px solid var(--vo-ok);
}

.vo-tile video,
.vo-tile-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Call video never shows the browser's own player (play button, controls, poster), and
   stays see-through until its first frame, so the avatar shows instead of a black box. */
.vo-call-stage video { pointer-events: none; }
.vo-call-stage video::-webkit-media-controls,
.vo-call-stage video::-webkit-media-controls-panel,
.vo-call-stage video::-webkit-media-controls-overlay-play-button,
.vo-call-stage video::-webkit-media-controls-start-playback-button,
.vo-call-stage video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}
.vo-tile video { transition: opacity 0.18s ease; }
.vo-tile video[data-ready="false"] { opacity: 0; }

.vo-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.65rem 0.45rem;
  color: #fff;
  font-size: 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.vo-remote-audio {
  display: none;
}

.vo-call-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
  margin-top: 0.55rem;
  position: relative;
  z-index: 2;
}

/* Phone app: offer to turn on the floating call controls over other apps. */
.vo-call-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.14);
  font-size: 0.82rem;
  position: relative;
  z-index: 2;
}

.vo-call-offer > span {
  flex: 1 1 12rem;
  min-width: 0;
}

.vo-call-offer .vo-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}

.vo-call-cluster {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.vo-call-split { position: relative; display: flex; align-items: center; }

.vo-call-btn,
.vo-call-chevron {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vo-hover);
  color: var(--vo-ink);
  cursor: pointer;
  padding: 0;
}

.vo-call-btn svg,
.vo-call-chevron svg { width: 20px; height: 20px; }

.vo-call-chevron { width: 22px; min-width: 22px; height: 40px; border-radius: 0 999px 999px 0; margin-left: -8px; background: transparent; }
.vo-call-split > .vo-call-btn { border-radius: 999px 0 0 999px; }

.vo-call-btn.is-off { background: var(--vo-danger); color: #fff; }
.vo-call-btn.is-on { background: var(--vo-accent); color: var(--vo-accent-ink, #fff); }

/* Leave sits at the end of the button row, in red. */
.vo-call-btn.vo-call-hangup {
  width: 52px;
  min-width: 52px;
  margin-left: 0.25rem;
  background: var(--vo-danger, #b42318);
  color: #fff;
}

.vo-call-btn.vo-call-hangup svg { width: 24px; height: 24px; }

.vo-call-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 5;
  min-width: 12rem;
  max-width: 16rem;
  padding: 0.3rem;
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  box-shadow: var(--vo-shadow);
}

.vo-call-menu button {
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
}

.vo-call-menu button.checked::before { content: "✓ "; }
.vo-call-reacts { display: grid; grid-template-columns: repeat(4, 2rem); min-width: 0; }
.vo-call-reacts button { width: 2rem; justify-content: center; padding: 0.25rem; }
.vo-call-more-wrap { display: none; }

@media (max-width: 860px) {
  .vo-call-optional { display: none; }
  .vo-call-more-wrap { display: flex; }
}

.vo-toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 50;
  width: min(360px, calc(100vw - 2rem));
}

.vo-toast {
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  box-shadow: var(--vo-shadow);
  padding: 0.85rem 1rem;
}

.vo-toast--link { cursor: pointer; }

.vo-toast h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.vo-toast p {
  margin: 0 0 0.75rem;
  color: var(--vo-muted);
  font-size: 0.9rem;
}

.vo-toast-actions {
  display: flex;
  gap: 0.5rem;
}

.vo-toast-meta {
  margin: -0.35rem 0 0.75rem;
  color: var(--vo-muted);
  font-size: 0.8rem;
}

.vo-empty {
  color: var(--vo-muted);
  padding: 1rem;
  font-size: 0.92rem;
}

.vo-cal-page {
  max-width: none;
}

.vo-cal-zone {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--vo-fs-sm);
  color: var(--vo-muted);
}

.vo-cal-zone .vo-input {
  width: auto;
  min-width: 10rem;
}

.vo-cal-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vo-cal-toolbar,
.vo-cal-views,
.vo-cal-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.vo-cal-range {
  font-weight: 600;
  margin: 0 0.5rem;
}

.vo-cal-hint {
  color: var(--vo-warn);
  font-size: var(--vo-fs-sm);
}

.vo-cal-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.vo-cal-dow {
  font-size: var(--vo-fs-xs);
  color: var(--vo-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem;
}

.vo-cal-mday {
  position: relative;
  min-height: 7.5rem;
  text-align: left;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: var(--vo-radius-sm);
  color: var(--vo-ink);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
}

.vo-cal-mday.muted { opacity: 0.45; }
.vo-cal-mday.today,
.vo-cal-dayhead.today {
  outline: 1px solid var(--vo-focus);
}

.vo-cal-more {
  border: 0;
  background: transparent;
  color: var(--vo-link);
  font-size: 0.7rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.vo-cal-popover {
  position: absolute;
  z-index: 5;
  left: 0.3rem;
  right: 0.3rem;
  top: 1.6rem;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  box-shadow: var(--vo-shadow);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vo-cal-popover button {
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  text-align: left;
  font-size: 0.75rem;
}

.vo-cal-pill {
  font: inherit;
  font-size: 0.7rem;
  text-align: left;
  color: var(--vo-ink);
  background: var(--vo-accent-soft);
  border: 0;
  border-radius: 6px;
  padding: 0.15rem 0.3rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.vo-cal-mday:hover {
  background: color-mix(in srgb, var(--vo-link) 8%, var(--vo-panel));
}

.vo-cal-board {
  border: 1px solid var(--vo-line);
  border-radius: var(--vo-radius);
  background: var(--vo-panel);
  overflow: hidden;
}

.vo-cal-board-head,
.vo-cal-board-body {
  display: grid;
}

.vo-cal-board-head {
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-panel);
}

.vo-cal-board-scroll {
  max-height: calc(100vh - 220px);
  overflow: auto;
}

.vo-cal-gutter {
  color: var(--vo-muted);
  font-size: var(--vo-fs-xs);
}

.vo-cal-gutter div {
  padding: 0 0.35rem;
  box-sizing: border-box;
}

.vo-cal-col {
  position: relative;
  border-left: 1px solid var(--vo-line);
  min-width: 0;
  cursor: pointer;
}

.vo-cal-slot {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
}

.vo-cal-slot:hover {
  background: color-mix(in srgb, var(--vo-link) 12%, transparent);
}

.vo-cal-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  border-top: 1px solid var(--vo-line);
  pointer-events: none;
}

.vo-cal-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 2px;
  background: #e5484d;
  z-index: 3;
  pointer-events: none;
}

.vo-cal-now::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5484d;
}

.vo-cal-draft {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 1;
  background: var(--vo-accent-soft);
  border: 1px dashed var(--vo-focus);
  border-radius: 6px;
  pointer-events: none;
}

.vo-cal-grid {
  display: grid;
  grid-template-columns: 4rem repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.vo-cal-grid[data-calendar-week="False"] {
  grid-template-columns: 4rem minmax(0, 1fr);
}

.vo-cal-hours {
  display: grid;
  grid-template-rows: 2.4rem repeat(14, 3.2rem);
  color: var(--vo-muted);
  font-size: var(--vo-fs-xs);
}

.vo-cal-daycol {
  display: grid;
  grid-template-rows: 2.4rem repeat(14, 3.2rem);
  min-width: 0;
}

.vo-cal-dayhead {
  font-weight: 600;
  font-size: var(--vo-fs-sm);
}

.vo-cal-slot {
  border-top: 1px solid var(--vo-line);
  min-height: 3.2rem;
  padding: 0.15rem;
}

.vo-cal-event {
  position: absolute;
  left: 4px;
  right: 4px;
  z-index: 2;
  overflow: hidden;
  background: var(--vo-accent-soft);
  border-left: 3px solid var(--vo-focus);
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  font-size: 0.75rem;
  cursor: grab;
}

.vo-cal-resize {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
}

.vo-cal-event span {
  display: block;
  color: var(--vo-muted);
}

.vo-cal-agenda {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vo-cal-agenda-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.vo-cal-drawer {
  margin-top: 1.25rem;
  max-width: 640px;
}

.vo-cal-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vo-cal-rsvp-line {
  font-size: var(--vo-fs-xs);
  color: var(--vo-muted);
}

@media (max-width: 800px) {
  .vo-cal-grid { grid-template-columns: 3rem minmax(0, 1fr); }
  .vo-cal-2 { grid-template-columns: 1fr; }
  .vo-call-body { grid-template-columns: 1fr; }
  .vo-call-side { border-left: 0; padding-left: 0; }
}

.vo-cast-page {
  max-width: 960px;
  padding: 1.25rem 1.5rem 2.5rem;
}

.vo-cast-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.vo-cast-head h1 {
  margin: 0 0 0.25rem;
}

.vo-cast-stage-wrap {
  position: relative;
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--vo-line);
}

.vo-cast-stage-wrap canvas,
.vo-cast-player video,
.vo-cast-preview {
  width: 100%;
  display: block;
  max-height: 420px;
  background: #0b1220;
  object-fit: contain;
}

.vo-cast-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

.vo-cast-controls,
.vo-cast-player-bar,
.vo-cast-react {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.vo-cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.vo-cast-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.vo-cast-card img,
.vo-cast-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #111827;
}

.vo-cast-thumb {
  display: grid;
  place-items: center;
  color: var(--vo-muted);
  font-size: 0.8rem;
}

.vo-cast-meta {
  color: var(--vo-muted);
  font-size: var(--vo-fs-xs);
}

.vo-cast-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--vo-muted);
  font-size: var(--vo-fs-sm);
}

.vo-cast-comments {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vo-cast-comment {
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.vo-cast-react button.mine {
  outline: 2px solid var(--vo-focus);
}

.vo-ain-app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--vo-bg);
  color: var(--vo-ink);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.page.vo-app .vo-ain-app,
.page.vo-app .vo-ain {
  height: 100%;
  min-height: 0;
}

.vo-ain {
  display: grid;
  grid-template-columns: 76px 272px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.vo-ain-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.35rem;
  background: var(--vo-bg-elev);
  border-right: 1px solid var(--vo-line);
}

.vo-ain-rail a.vo-ain-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: url("../brand/collabiro-icon.png") center / contain no-repeat;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

html[data-theme="dark"] .vo-ain-rail a.vo-ain-logo {
  background-image: url("../brand/collabiro-icon-white.png");
}

.vo-ain-rail button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.2rem 0.15rem;
  overflow: hidden;
}

.vo-ain-rail-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-ain-rail-count {
  font-size: 0.62rem;
  line-height: 1;
  color: var(--vo-accent-ink, #fff);
  background: var(--vo-accent);
  border-radius: 999px;
  padding: 0.05rem 0.3rem;
}

.vo-ain-rail button.active,
.vo-ain-rail button:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-ain-rail .vo-ain-rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.vo-ain-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--vo-panel);
  border-right: 1px solid var(--vo-line);
}

.vo-ain-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.5rem;
}

.vo-ain-side-head h1 {
  font-size: 1.15rem;
  margin: 0;
}

.vo-ain-side-actions {
  display: flex;
  gap: 0.25rem;
}

.vo-ain-iconbtn {
  border: 0;
  background: transparent;
  color: var(--vo-muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.vo-ain-iconbtn:hover { background: var(--vo-hover); color: var(--vo-ink); }
.vo-ain-iconbtn { position: relative; z-index: 7; pointer-events: auto; }

.vo-ain-pins {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.75rem;
  overflow-x: auto;
}

.vo-ain-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #7c5cbf;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

.vo-ain-pin.hash { background: #5b8def; border-radius: 10px; }

.vo-ain-nav {
  display: flex;
  flex-direction: column;
  padding: 0 0.4rem 0.5rem;
}

.vo-ain-ico {
  width: 1.15rem;
  text-align: center;
  color: var(--vo-muted);
  flex-shrink: 0;
}

.vo-ain-bots {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.vo-ain-bots .vo-ain-av {
  margin-left: -0.4rem;
  border: 2px solid var(--vo-panel);
}

.vo-ain-bots .vo-ain-av:first-child { margin-left: 0; }

.vo-ain-more {
  margin-left: 0.2rem;
  color: var(--vo-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.vo-ain-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.vo-ain-av.sm {
  width: 22px;
  height: 22px;
  font-size: 0.58rem;
}

.vo-ain-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-ain-chev {
  width: 0.8rem;
  color: var(--vo-muted);
}

.vo-ain-nav button,
.vo-ain-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  color: var(--vo-ink);
  font: inherit;
  cursor: pointer;
}

.vo-ain-nav button:hover,
.vo-ain-row:hover,
.vo-ain-nav button.active {
  background: var(--vo-hover);
}

.vo-ain-count {
  margin-left: auto;
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
  border-radius: 999px;
  min-width: 1.15rem;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  text-align: center;
}

.vo-ain-sec {
  padding: 0.35rem 0.4rem 0.15rem;
  min-height: 0;
  overflow: auto;
}

.vo-ain-sec-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.vo-ain-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--vo-bg);
}

.vo-ain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
}

.vo-ain-head h2 { margin: 0; font-size: 1.05rem; }
.vo-ain-sub { color: var(--vo-muted); font-size: 0.78rem; }

.vo-ain-tabs {
  display: flex;
  gap: 1.1rem;
  padding: 0.15rem 1.1rem;
  border-bottom: 1px solid var(--vo-line);
}

.vo-ain-tabs button {
  border: 0;
  background: transparent;
  padding: 0.55rem 0;
  color: var(--vo-muted);
  font-weight: 600;
  cursor: pointer;
}

.vo-ain-tabs button.active {
  color: var(--vo-link);
  box-shadow: inset 0 -2px 0 var(--vo-link);
}

.vo-ain-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.25rem 0.5rem;
}

.vo-ain-day {
  text-align: center;
  color: var(--vo-muted);
  font-size: 0.78rem;
  margin: 0.75rem 0;
}

.vo-ain-msg {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  position: relative;
}

.vo-ain-msg:hover { background: var(--vo-hover); }

.vo-ain-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6d5cae;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.vo-ain-msg-top { display: flex; align-items: baseline; gap: 0.5rem; }
.vo-ain-msg-top time { color: var(--vo-muted); font-size: 0.75rem; }

.vo-ain-timer,
.vo-ain-expiry {
  color: var(--vo-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.vo-time {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.vo-time-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.45rem;
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  background: var(--vo-panel);
}

.vo-ain-upcoming {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}

.vo-ain-timer-select {
  max-width: 8.5rem;
  font-size: 0.75rem;
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
}

.vo-quote {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  text-align: left;
  width: 100%;
  margin: 0.2rem 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-left: 3px solid var(--vo-focus);
  border-radius: 0 8px 8px 0;
  background: var(--vo-panel);
  color: inherit;
  cursor: pointer;
}

.vo-msg-highlight {
  outline: 2px solid var(--vo-focus);
  border-radius: 8px;
}

.vo-ain-quote {
  border-left: 3px solid var(--vo-focus);
  background: var(--vo-panel);
  padding: 0.35rem 0.55rem;
  border-radius: 0 8px 8px 0;
  margin: 0.3rem 0;
  color: var(--vo-muted);
  font-size: 0.85rem;
}

.vo-ain-hover {
  position: absolute;
  right: 0.35rem;
  top: 0.25rem;
  display: flex;
  opacity: 0;
  pointer-events: none;
  gap: 0.2rem;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  padding: 0.15rem;
  box-shadow: var(--vo-shadow-sm);
  z-index: 6;
}

.vo-ain-hover .vo-ain-iconbtn.on {
  color: var(--vo-link);
}

.vo-ain-msg-top {
  padding-right: 8.5rem;
  min-width: 0;
}

.vo-ain-msg-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vo-ain-msg {
  overflow-wrap: anywhere;
}

.vo-ain-msg:hover .vo-ain-hover,
.vo-ain-msg:focus-within .vo-ain-hover,
.vo-ain-hover.open {
  opacity: 1;
  pointer-events: auto;
}

.vo-ain-quick {
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem 0;
}

.vo-ain-quick button {
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--vo-ink);
}

.vo-ain-compose {
  margin: 0.55rem 1.1rem 1rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
  padding: 0.45rem 0.55rem 0.55rem;
}

.vo-ain-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.vo-ain-tools button {
  border: 0;
  background: transparent;
  color: var(--vo-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.vo-ain-tools button:hover { background: var(--vo-hover); color: var(--vo-ink); }

.vo-ain-compose textarea {
  width: 100%;
  border: 0;
  resize: none;
  min-height: 64px;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.35rem 0.25rem;
}

.vo-ain-compose textarea:focus { outline: none; }

.vo-ain-sendrow {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.vo-ain-empty {
  color: var(--vo-muted);
  padding: 2rem 1rem;
  text-align: center;
}

.vo-ain-list item,
.vo-ain-file {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--vo-line);
}

@media (max-width: 860px) {
  .vo-ain { grid-template-columns: 48px minmax(0, 1fr); }
  .vo-ain-side { display: none; }
  .vo-ain.with-side .vo-ain-side { display: flex; position: absolute; inset: 0 0 0 48px; z-index: 4; }
}
.vo-pop {
  position: absolute;
  top: 4.5rem;
  left: 1.25rem;
  z-index: 8;
  width: min(380px, calc(100% - 2rem));
  max-height: min(560px, calc(100% - 6rem));
  display: flex;
  flex-direction: column;
  background: var(--vo-panel);
  color: var(--vo-ink);
  border: 1px solid var(--vo-line);
  border-radius: 18px;
  box-shadow: var(--vo-shadow);
  overflow: hidden;
  animation: vo-pop-in 180ms ease;
}

@keyframes vo-pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.vo-pop-head,
.vo-pop-quick,
.vo-pop-fmt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vo-pop-head {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--vo-line);
}

.vo-pop-who {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
}

.vo-pop-who strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-pop-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  cursor: pointer;
}

.vo-pop-icon:hover {
  background: var(--vo-hover);
}

.vo-pop-tools .vo-pop-icon[data-knock] {
  width: auto;
  padding: 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.vo-pop-log {
  flex: 1 1 auto;
  min-height: 180px;
  overflow: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.vo-pop-msg {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.55rem;
  position: relative;
}

.vo-pop-msg .vo-msg-more {
  top: 0;
  right: 0;
}

.vo-pop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  font-size: var(--vo-fs-xs);
  color: var(--vo-muted);
}

.vo-pop-meta strong {
  color: var(--vo-ink);
  font-size: var(--vo-fs-sm);
}

.vo-pop-via {
  color: var(--vo-muted);
}

.vo-pop-today {
  position: absolute;
  top: -0.2rem;
  left: 2.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
}

.vo-pop-react {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: var(--vo-fs-sm);
}

.vo-pop-quick {
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--vo-line);
}

.vo-pop-chip {
  border: 1px solid var(--vo-line);
  background: var(--vo-hover);
  color: var(--vo-ink);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font: inherit;
  font-size: var(--vo-fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.vo-pop-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vo-pop-compose {
  padding: 0.45rem 0.75rem 0.75rem;
  border-top: 1px solid var(--vo-line);
}

.vo-pop-fmt {
  margin-bottom: 0.35rem;
}

.vo-pop-compose .vo-input {
  width: 100%;
}

/* =====================================================================
   Office skin (Roam-style): slim title bar, dense room tiles with round
   avatars and status dots, floating dock, quiet chat column.
   Scoped to .vo-shell so the calendar / AInbox pages keep their layout.
   ===================================================================== */

.vo-shell {
  --ro-primary: var(--vo-accent);
  --ro-primary-ink: var(--vo-accent-ink);
  --ro-tile: var(--vo-floor-card);
  --ro-tile-hover: color-mix(in srgb, var(--vo-floor-card) 92%, #fff);
  --ro-tile-line: rgba(255, 255, 255, 0.06);
  --ro-tile-line-hi: rgba(255, 255, 255, 0.18);
  --ro-chip: rgba(255, 255, 255, 0.06);
  --ro-seg-active: color-mix(in srgb, var(--vo-panel) 85%, #fff);
  --ro-glass: color-mix(in srgb, var(--vo-bg-elev) 82%, transparent);
  --ro-dock-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
  --ro-live: #22c55e;
  --ro-busy: #f59e0b;
  --ro-away: #94a3b8;
  --ro-call: #8b5cf6;
  --ro-dnd: #ef4444;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  background: var(--vo-bg);
}

html[data-theme="light"] .vo-shell {
  --ro-tile-hover: #fbfcfe;
  --ro-tile-line: rgba(15, 23, 42, 0.08);
  --ro-tile-line-hi: rgba(15, 23, 42, 0.22);
  --ro-chip: rgba(15, 23, 42, 0.05);
  --ro-seg-active: #fff;
  --ro-glass: rgba(255, 255, 255, 0.86);
  --ro-dock-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
}

@media (max-width: 960px) {
  .vo-shell {
    grid-template-columns: 1fr;
  }
}

.vo-shell * {
  scrollbar-width: thin;
  scrollbar-color: var(--ro-tile-line-hi) transparent;
}

/* ---------- title bar ---------- */

.vo-shell .vo-office-bar {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 52px;
  padding: env(safe-area-inset-top) calc(0.75rem + env(safe-area-inset-right)) 0 calc(0.9rem + env(safe-area-inset-left));
  background: var(--vo-bg-elev);
  border-bottom: 1px solid var(--vo-line);
}

.vo-shell .vo-office-bar__left,
.vo-shell .vo-office-bar__right {
  flex-wrap: nowrap;
  gap: 0.2rem;
}

.vo-shell .vo-office-bar__left {
  flex: 1 1 auto;
}

.vo-shell .vo-office-bar__right {
  flex: 0 0 auto;
}

.vo-shell .vo-office-bar__company {
  flex: 0 1 auto;
  margin: 0 0.35rem 0 0;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.vo-office-bar__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 20px;
  margin: 0 0.35rem;
  background: var(--vo-line);
}

.vo-shell .vo-bar-ico {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.vo-shell .vo-bar-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vo-shell .vo-office-bar .vo-btn.secondary,
.vo-shell .vo-office-bar .vo-theme-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vo-muted);
  transition: background 0.12s, color 0.12s;
}

.vo-shell .vo-office-bar .vo-btn.secondary:hover,
.vo-shell .vo-office-bar .vo-theme-btn:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
  filter: none;
}

.vo-shell .vo-office-bar [data-map-bubbles="on"] {
  color: var(--vo-ink);
}

.vo-shell .vo-office-bar .vo-btn.primary {
  height: 34px;
  padding: 0 0.95rem 0 0.75rem;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--ro-primary);
  color: var(--ro-primary-ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.vo-shell .vo-office-bar .vo-btn.primary .vo-bar-label {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

.vo-shell .vo-office-bar .vo-btn.primary:disabled {
  opacity: 0.38;
  cursor: default;
  filter: none;
}

.vo-shell .vo-reception {
  position: relative;
  height: 36px;
  margin-left: 0.4rem;
  padding: 0 0.7rem 0 0.2rem;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ro-chip);
  font-size: 0.8rem;
}

.vo-shell .vo-reception:hover,
.vo-shell .vo-reception:focus-within {
  border-color: var(--vo-line);
}

.vo-shell .vo-userchip {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  aspect-ratio: 1;
  background: var(--vo-accent);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.vo-shell .vo-reception::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ro-live);
  box-shadow: 0 0 0 2px var(--vo-bg-elev);
}

.vo-shell .vo-reception[data-status="Busy"]::after,
.vo-shell .vo-reception[data-status="KnockRequired"]::after { background: var(--ro-busy); }
.vo-shell .vo-reception[data-status="Away"]::after { background: var(--ro-away); }
.vo-shell .vo-reception[data-status="DoNotDisturb"]::after { background: var(--ro-dnd); }

.vo-shell .vo-reception select {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.vo-shell .vo-reception select option {
  background: var(--vo-panel);
  color: var(--vo-ink);
}

.vo-shell .vo-reception input {
  max-width: 8.5rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--vo-line);
  color: var(--vo-muted);
  outline: none;
}

.vo-shell .vo-reception input:focus {
  color: var(--vo-ink);
}

.vo-shell .vo-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ro-call) 18%, transparent);
  color: var(--ro-call);
  font-size: 0.72rem;
  font-weight: 650;
  white-space: nowrap;
}

/* ---------- sub-header strip ---------- */

.vo-office-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.7rem 1.1rem 0;
  font-size: 0.78rem;
  color: var(--vo-muted);
}

.vo-office-strip__room {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--vo-ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.vo-office-strip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ro-live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ro-live) 22%, transparent);
}

.vo-office-strip p[data-room-panel] {
  margin: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ro-chip);
}

.vo-shell .vo-guest-links {
  margin: 0;
  gap: 0.4rem;
}

.vo-shell .vo-guest-links .hint {
  display: none;
}

.vo-shell .vo-guest-links .vo-btn,
.vo-shell .vo-zoom-advanced summary {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--ro-chip);
  color: var(--vo-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.vo-shell .vo-guest-links .vo-btn.danger {
  background: color-mix(in srgb, var(--ro-dnd) 16%, transparent);
  color: var(--ro-dnd);
}

.vo-shell .vo-guest-links .vo-btn:hover,
.vo-shell .vo-zoom-advanced summary:hover {
  color: var(--vo-ink);
  filter: none;
}

.vo-shell .vo-guest-url {
  flex: 0 1 15rem;
  height: 26px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.vo-shell .vo-zoom-advanced {
  margin: 0;
  font-size: 0.78rem;
}

.vo-shell .vo-zoom-advanced summary {
  list-style: none;
}

.vo-shell .vo-zoom-advanced summary::-webkit-details-marker {
  display: none;
}

.vo-shell .vo-zoom-advanced[open] {
  flex-basis: 100%;
  order: 10;
  padding: 0.5rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
}

.vo-shell .vo-zoom-advanced[open] .vo-zoom-bar {
  padding: 0.45rem 0 0.4rem;
}

.vo-shell .vo-cal-strip {
  padding: 0.6rem 1.1rem 0;
  gap: 0.4rem;
}

.vo-shell .vo-cal-chip {
  gap: 0.6rem;
  padding: 0.3rem 0.35rem 0.3rem 0.75rem;
  border: 1px solid var(--ro-tile-line);
  border-radius: 12px;
  background: var(--ro-tile);
  font-size: 0.78rem;
}

.vo-shell .vo-cal-chip .hint {
  display: block;
  color: var(--vo-muted);
  font-size: 0.7rem;
}

.vo-shell .vo-cal-chip .vo-btn {
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--ro-live);
  color: #fff;
  font-size: 0.75rem;
}

/* ---------- floor ---------- */

.vo-shell .vo-map-pane {
  background: var(--vo-floor);
}

.vo-shell .vo-floor-frame {
  padding: 0.75rem 1.1rem 1rem;
}

.vo-shell .vo-floor {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
  min-height: 0;
  align-content: start;
}

.vo-shell .vo-room--lead {
  grid-column: 1;
  grid-row: 1;
}

.vo-shell .vo-floor-privates {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}

.vo-shell .vo-floor-meetings {
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}

@media (max-width: 1100px) {
  .vo-shell .vo-floor {
    grid-template-columns: minmax(0, 1fr);
  }

  .vo-shell .vo-floor-privates,
  .vo-shell .vo-floor-meetings,
  .vo-shell .vo-room--lead {
    grid-column: 1;
    grid-row: auto;
  }
}

.vo-shell .vo-room {
  gap: 0.65rem;
  min-height: 118px;
  padding: 0.7rem 0.75rem 0.8rem;
  border: 1px solid var(--ro-tile-line);
  border-radius: 14px;
  background: var(--ro-tile);
  box-shadow: none;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

html[data-theme="light"] .vo-shell .vo-room {
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.vo-shell .vo-room:hover {
  border-color: var(--ro-tile-line-hi);
  background: var(--ro-tile-hover);
}

.vo-shell .vo-room:focus-visible {
  outline: 2px solid var(--vo-own);
  outline-offset: 2px;
}

.vo-shell .vo-room--empty {
  background: var(--vo-floor-card-empty);
}

.vo-shell .vo-room--private {
  min-height: 132px;
}

.vo-shell .vo-room--lead {
  min-height: 150px;
}

.vo-shell .vo-room--meeting {
  min-height: 196px;
}

.vo-shell .vo-room--own {
  border: 1px solid color-mix(in srgb, var(--vo-own) 65%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vo-own) 30%, transparent);
}

.vo-shell .vo-room--selected:not(.vo-room--own) {
  border-color: var(--ro-tile-line-hi);
  box-shadow: inset 0 0 0 1px var(--ro-tile-line-hi);
}

.vo-shell .vo-room__label {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  padding-right: 3rem;
  font-size: inherit;
}

.vo-shell .vo-room__name {
  overflow: hidden;
  color: var(--vo-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-shell .vo-room__kind {
  overflow: hidden;
  color: var(--vo-muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-shell .vo-room__menu {
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--vo-muted);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s;
}

.vo-shell .vo-room:hover .vo-room__menu,
.vo-shell .vo-room:focus-visible .vo-room__menu {
  opacity: 1;
}

.vo-shell .vo-room__menu:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

@media (hover: none) {
  .vo-shell .vo-room__menu { opacity: 1; }
}

/* Hovering an empty room on desktop: a round message button in the middle of the card,
   with its own tooltip. Hidden on touch screens and phone layouts. */
.vo-room__hover-chat { display: none; }

@media (hover: hover) and (pointer: fine) {
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__hover-chat {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--vo-ink) 9%, var(--ro-tile));
    color: var(--vo-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s, background 0.12s, color 0.12s;
  }

  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__hover-chat .vo-glyph { width: 18px; height: 18px; }

  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room:hover .vo-room__hover-chat {
    opacity: 1;
    pointer-events: auto;
  }

  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__hover-chat:hover {
    background: color-mix(in srgb, var(--vo-ink) 15%, var(--ro-tile));
    color: var(--vo-ink);
  }

  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__hover-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--vo-panel);
    color: var(--vo-ink);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14), 0 0 0 1px var(--ro-tile-line);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
  }

  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__hover-chat:hover .vo-room__hover-tip { opacity: 1; }

  /* Hovering a room with people in it: you, see-through, where you would appear. */
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room:hover .vo-ghost { display: flex; }
}

.vo-ghost {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 56px;
  opacity: 0.45;
  pointer-events: none;
}

.vo-shell .vo-ghost .vo-avatar::after { display: none; }

.vo-shell .vo-room__icon {
  top: 0.75rem;
  right: 2.2rem;
  opacity: 0.8;
}

.vo-shell .vo-room-menu {
  top: 2rem;
  right: 0.5rem;
  padding: 0.25rem;
  border-radius: 10px;
  box-shadow: var(--vo-shadow);
}

.vo-shell .vo-room-menu button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vo-ink);
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.vo-shell .vo-room-menu button:hover {
  background: var(--vo-hover);
}

.vo-shell .vo-room__booking {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ro-busy) 16%, transparent);
  color: var(--ro-busy);
  font-size: 0.68rem;
  font-weight: 600;
}

.vo-shell .vo-room__people {
  gap: 0.6rem 0.55rem;
}

.vo-shell .vo-person {
  width: 56px;
  gap: 0.3rem;
}

.vo-shell .vo-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: linear-gradient(140deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--ro-tile);
  transition: transform 0.15s;
}

.vo-shell .vo-person:nth-child(6n + 2) .vo-avatar { background: linear-gradient(140deg, #ec4899, #f43f5e); }
.vo-shell .vo-person:nth-child(6n + 3) .vo-avatar { background: linear-gradient(140deg, #14b8a6, #0ea5e9); }
.vo-shell .vo-person:nth-child(6n + 4) .vo-avatar { background: linear-gradient(140deg, #f59e0b, #ef4444); }
.vo-shell .vo-person:nth-child(6n + 5) .vo-avatar { background: linear-gradient(140deg, #8b5cf6, #d946ef); }
.vo-shell .vo-person:nth-child(6n) .vo-avatar { background: linear-gradient(140deg, #10b981, #84cc16); }

.vo-shell .vo-person:hover .vo-avatar {
  transform: translateY(-1px) scale(1.04);
}

.vo-shell .vo-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ro-tile);
  background: var(--ro-live);
}

.vo-shell .vo-avatar--busy::after { background: var(--ro-busy); }
.vo-shell .vo-avatar--away::after { background: var(--ro-away); }
.vo-shell .vo-avatar--incall::after { background: var(--ro-call); }
.vo-shell .vo-avatar--dnd::after { background: var(--ro-dnd); }
.vo-shell .vo-avatar--away { filter: grayscale(0.6); opacity: 0.8; }

.vo-shell .vo-person--guest .vo-avatar {
  box-shadow: 0 0 0 2px var(--ro-tile), 0 0 0 4px var(--ro-busy);
}

.vo-shell .vo-person--talking .vo-avatar {
  animation: ro-talk 1.1s ease-in-out infinite;
}

@keyframes ro-talk {
  0%, 100% { box-shadow: 0 0 0 2px var(--ro-tile), 0 0 0 4px var(--ro-live); }
  50% { box-shadow: 0 0 0 2px var(--ro-tile), 0 0 0 8px color-mix(in srgb, var(--ro-live) 35%, transparent); }
}

.vo-shell .vo-person__name,
.vo-shell .vo-person__caption {
  max-width: 56px;
}

.vo-shell .vo-person__name {
  color: var(--vo-ink);
  font-size: 0.66rem;
  font-weight: 500;
}

.vo-shell .vo-person__caption {
  margin-top: -0.2rem;
  font-size: 0.6rem;
}

.vo-shell .vo-speech {
  padding: 2px 7px;
  border-radius: 9px;
  box-shadow: var(--vo-shadow-sm);
}

/* ---------- floors + floating dock ---------- */

.vo-shell .vo-floor-tabs {
  min-height: 62px;
  gap: 0.3rem;
  padding: 0 1.1rem;
  border-top: 1px solid var(--vo-line);
  background: var(--vo-bg-elev);
}

.vo-shell .vo-floor-tab,
.vo-shell .vo-floor-slot {
  height: 30px;
  min-width: 0;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.vo-shell .vo-floor-tab:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-shell .vo-floor-tab.active {
  background: var(--ro-chip);
  color: var(--vo-ink);
  font-weight: 600;
}

.vo-shell .vo-floor-slot {
  width: 30px;
  padding: 0;
  opacity: 0.6;
}

.vo-shell .vo-floor-slot:disabled {
  cursor: default;
}

.vo-shell .vo-floor-slot + .vo-floor-slot[disabled] {
  display: none;
}

.vo-shell .vo-dock {
  position: absolute;
  left: 50%;
  bottom: 9px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  transform: translateX(-50%);
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--ro-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--ro-dock-shadow);
}

.vo-shell .vo-dock > div:empty {
  display: none;
}

.vo-shell .vo-dock__center,
.vo-shell .vo-dock__right {
  gap: 0.2rem;
}

.vo-shell .vo-dock__right {
  padding-left: 0.3rem;
  border-left: 1px solid var(--vo-line);
}

.vo-shell .vo-dock-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-ink);
  font-size: 0.7rem;
  transition: background 0.12s;
}

.vo-shell .vo-dock-btn svg {
  width: 18px;
  height: 18px;
}

.vo-shell .vo-dock-btn:hover:not(:disabled) {
  background: var(--vo-hover);
}

.vo-shell .vo-dock-btn:disabled {
  opacity: 0.35;
}

.vo-shell .vo-dock-btn.danger {
  background: var(--ro-dnd);
  color: #fff;
}

.vo-shell .vo-dock-btn.danger:disabled {
  background: transparent;
  color: var(--vo-muted);
}

@media (max-width: 960px) {
  .vo-shell .vo-dock {
    position: static;
    transform: none;
    justify-content: center;
    margin: 0 auto 0.5rem;
  }

  .vo-shell .vo-floor-tabs {
    min-height: 46px;
  }

  .vo-shell .vo-reception input,
  .vo-shell .vo-office-bar__company {
    display: none;
  }
}

/* ---------- chat column ---------- */

.vo-shell .vo-chat-pane {
  background: var(--vo-bg-elev);
  border-left: 1px solid var(--vo-line);
}

.vo-shell .vo-chat-collapse {
  top: 0.6rem;
  left: 0.55rem;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  font-size: 1.1rem;
}

.vo-shell .vo-chat-collapse:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-shell .vo-chat-tabs {
  gap: 2px;
  margin: 0.55rem 0.7rem 0.4rem 2.6rem;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: var(--ro-chip);
}

.vo-shell .vo-chat-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  color: var(--vo-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.vo-shell .vo-chat-tabs button:hover {
  color: var(--vo-ink);
}

.vo-shell .vo-chat-tabs button.active {
  background: var(--ro-seg-active);
  color: var(--vo-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.vo-shell .vo-unread {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  background: var(--ro-dnd);
  color: #fff;
  font-size: 0.66rem;
}

.vo-shell .vo-chat-list {
  max-height: 34%;
  padding: 0.15rem 0.45rem 0.45rem;
  border-bottom: 1px solid var(--vo-line);
}

.vo-shell .vo-chat-item {
  gap: 0.05rem;
  padding: 0.42rem 0.6rem;
  border: 0;
  border-radius: 8px;
  color: var(--vo-ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.vo-shell .vo-chat-item strong {
  font-weight: 600;
}

.vo-shell .vo-chat-item.active {
  background: var(--ro-chip);
}

.vo-shell .vo-chat-item .hint {
  color: var(--vo-muted);
  font-size: 0.72rem;
}

.vo-shell .vo-chat-preview {
  font-size: 0.74rem;
}

.vo-chat-tools {
  margin: 0.2rem 0.15rem 0;
}

.vo-chat-tools summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 7px;
  color: var(--vo-muted);
  font-size: 0.74rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.vo-chat-tools summary::-webkit-details-marker {
  display: none;
}

.vo-chat-tools summary::before {
  content: "+";
  font-size: 0.95rem;
  line-height: 1;
}

.vo-chat-tools[open] summary::before {
  content: "\2212";
}

.vo-chat-tools summary:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-chat-tools__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem 0.2rem;
}

.vo-chat-tools__row {
  display: flex;
  gap: 0.4rem;
}

.vo-chat-tools__row .vo-input {
  min-width: 0;
}

.vo-shell .vo-chat-pane .vo-input {
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

.vo-shell .vo-chat-pane .vo-btn.secondary {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--ro-chip);
  font-size: 0.78rem;
}

.vo-shell .vo-thread-bar,
.vo-shell .vo-channel-bar {
  padding: 0.5rem 0.8rem;
  background: transparent;
  font-size: 0.86rem;
}

.vo-shell .vo-chat-messages {
  gap: 0.1rem;
  padding: 0.6rem 0.45rem;
  background: transparent;
}

.vo-shell .vo-msg {
  max-width: 100%;
  padding: 0.45rem 2.2rem 0.45rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.45;
}

.vo-shell .vo-msg:hover,
.vo-shell .vo-msg.menu-open {
  background: var(--vo-hover);
}

.vo-shell .vo-msg.bookmarked {
  box-shadow: inset 2px 0 0 var(--ro-busy);
}

.vo-shell .vo-msg .meta {
  margin-bottom: 0.1rem;
  font-size: 0.7rem;
}

.vo-shell .vo-msg-kebab {
  width: 26px;
  height: 26px;
  background: var(--vo-panel);
  color: var(--vo-muted);
  opacity: 0;
  transition: opacity 0.12s;
}

.vo-shell .vo-msg:hover .vo-msg-kebab,
.vo-shell .vo-msg-more.open .vo-msg-kebab {
  opacity: 1;
}

.vo-shell .vo-msg-actions {
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.vo-shell .vo-react-add {
  height: 22px;
  padding: 0 0.5rem;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
  background: transparent;
  color: var(--vo-muted);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.vo-shell .vo-react-add:hover {
  color: var(--vo-ink);
  border-color: var(--ro-tile-line-hi);
}

.vo-shell .vo-msg-preview {
  border-radius: 10px;
}

.vo-shell .vo-chat-compose {
  gap: 0.3rem;
  padding: 0.45rem 0.6rem 0.7rem;
  border-top: 0;
  background: transparent;
}

.vo-shell .vo-compose-row {
  align-items: flex-end;
  gap: 0.15rem;
  padding: 0.3rem;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-input);
  transition: border-color 0.12s;
}

.vo-shell .vo-compose-row:focus-within {
  border-color: var(--ro-tile-line-hi);
}

.vo-shell .vo-chat-compose input,
.vo-shell .vo-chat-compose textarea {
  align-self: center;
  padding: 0.4rem 0.35rem;
  border: 0;
  background: transparent;
  font-size: 0.86rem;
  outline: none;
}

.vo-shell .vo-compose-row .vo-icon-btn {
  border-radius: 9px;
  background: transparent;
  color: var(--vo-muted);
}

.vo-shell .vo-compose-row .vo-icon-btn:hover:not(:disabled) {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-shell .vo-compose-row .vo-icon-btn.primary {
  background: var(--ro-primary);
  color: var(--ro-primary-ink);
}

.vo-shell .vo-compose-row .vo-icon-btn.primary:hover:not(:disabled) {
  background: var(--ro-primary);
  color: var(--ro-primary-ink);
  filter: brightness(1.08);
}

.vo-shell .vo-compose-row .vo-icon-btn.primary:disabled {
  opacity: 0.3;
}

.vo-shell .vo-chat-compose .vo-quote {
  border: 0;
  border-radius: 8px;
  background: var(--ro-chip);
  color: var(--vo-muted);
  text-align: left;
  font-size: 0.74rem;
  padding: 0.3rem 0.55rem;
}

.vo-shell .vo-typing {
  margin: -0.4rem 0.9rem 0.5rem;
  color: var(--vo-muted);
  font-size: 0.72rem;
}

.vo-shell .vo-chat-compose .vo-upload-error {
  margin: 0 0.2rem;
  font-size: 0.74rem;
}

.vo-shell .vo-empty {
  font-size: 0.8rem;
}

/* ---------- calendar ---------- */

.vo-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--vo-hover);
}

.vo-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.vo-seg button:hover {
  color: var(--vo-ink);
}

.vo-seg button.active {
  background: var(--vo-panel);
  color: var(--vo-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.vo-seg button:has(svg) {
  padding: 0 0.45rem;
}

.vo-page.vo-cal-page {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 1.1rem 1.5rem 1.25rem;
}

.vo-cal-page .vo-cal-head {
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0;
}

.vo-cal-title {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.vo-cal-title h1 {
  margin: 0;
  font-size: 1.45rem;
}

.vo-cal-page .vo-cal-range {
  margin: 0;
  color: var(--vo-muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.vo-cal-page .vo-cal-toolbar {
  gap: 0.5rem;
}

.vo-cal-page .vo-cal-zone {
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.2rem 0 0.6rem;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  background: var(--vo-panel);
}

.vo-cal-page .vo-cal-zone .vo-input {
  min-width: 0;
  max-width: 11rem;
  padding: 0 0.3rem;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  outline: none;
}

.vo-cal-page .vo-btn {
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.vo-cal-page .vo-btn.primary {
  gap: 0.35rem;
  padding: 0 1rem 0 0.8rem;
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
}

.vo-cal-ghost {
  border: 1px solid var(--vo-line) !important;
  background: var(--vo-panel) !important;
  color: var(--vo-ink) !important;
}

.vo-cal-import {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
}

.vo-cal-import input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.vo-cal-sub {
  margin: -0.15rem 0 0;
  color: var(--vo-muted);
  font-size: 0.78rem;
}

.vo-cal-page .vo-cal-board {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 320px;
  border-radius: 14px;
  box-shadow: var(--vo-shadow-sm);
}

.vo-cal-page .vo-cal-board-scroll {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
}

.vo-cal-page .vo-cal-dayhead {
  padding: 0.6rem 0.6rem 0.55rem;
  color: var(--vo-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-left: 1px solid var(--vo-line);
}

.vo-cal-page .vo-cal-dayhead.today {
  outline: 0;
  color: var(--vo-accent);
  box-shadow: inset 0 -2px 0 var(--vo-accent);
}

.vo-cal-page .vo-cal-gutter div {
  padding: 0 0.5rem;
  text-align: right;
  transform: translateY(-0.55em);
  font-size: 0.7rem;
}

.vo-cal-page .vo-cal-gutter div:first-child {
  visibility: hidden;
}

.vo-cal-page .vo-cal-event {
  left: 3px;
  right: 3px;
  padding: 0.25rem 0.45rem;
  border-left: 3px solid var(--vo-accent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--vo-accent) 16%, var(--vo-panel));
  color: var(--vo-ink);
  font-size: 0.74rem;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.vo-cal-page .vo-cal-event strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-cal-page .vo-cal-event span[data-cal-rsvp]:empty {
  display: none;
}

.vo-cal-page .vo-cal-month {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-line);
}

.vo-cal-page .vo-cal-dow {
  padding: 0.5rem 0.6rem;
  background: var(--vo-panel);
  border-bottom: 1px solid var(--vo-line);
  font-weight: 600;
}

.vo-cal-page .vo-cal-mday {
  min-height: 6.5rem;
  margin: 0 0 1px 1px;
  border: 0;
  border-radius: 0;
}

.vo-cal-page .vo-cal-mday > span:first-child {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 600;
}

.vo-cal-page .vo-cal-mday.today {
  outline: 0;
}

.vo-cal-page .vo-cal-mday.today > span:first-child {
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
}

.vo-cal-page .vo-cal-agenda-row {
  padding: 0.85rem 1rem;
  border-radius: 12px;
}

.vo-cal-page .vo-cal-agenda-row .vo-btn {
  height: 30px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
}

.vo-cal-scrim {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(15, 23, 42, 0.35);
  animation: vo-fade-in 140ms ease;
}

.vo-cal-page .vo-cal-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(440px, 100vw);
  max-width: none;
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  overflow: auto;
  border-radius: 16px 0 0 16px;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.25);
  animation: vo-drawer-in 180ms ease;
}

.vo-cal-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -1.25rem 0.75rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--vo-line);
  background: var(--vo-panel);
}

.vo-cal-drawer-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.vo-cal-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
}

.vo-cal-x:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-cal-drawer .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.vo-cal-drawer .form-check {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.vo-cal-drawer .form-check:hover {
  background: var(--vo-hover);
}

.vo-cal-drawer [data-weekdays] .form-check {
  display: inline-flex !important;
}

.vo-cal-drawer .vo-cal-row-actions {
  position: sticky;
  bottom: -1.25rem;
  margin: 0.5rem -1.25rem -1.25rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--vo-line);
  background: var(--vo-panel);
}

@keyframes vo-drawer-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes vo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 800px) {
  .vo-page.vo-cal-page {
    padding: 0.9rem 1rem;
  }

  .vo-cal-page .vo-cal-drawer {
    border-radius: 0;
  }
}

/* ---------- call overlay + control bar ---------- */

.vo-call-overlay {
  border-radius: 18px;
}

.vo-call-head .vo-call-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.vo-call-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.vo-call-head .vo-call-room {
  margin-left: 0;
}

.vo-call-head .vo-seg.vo-call-views {
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.vo-call-overlay .vo-call-actions {
  margin-top: 0.75rem;
}

.vo-call-overlay .vo-call-cluster {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-bg-elev);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.vo-call-overlay .vo-call-btn,
.vo-call-overlay .vo-call-chevron {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  color: var(--vo-ink);
  transition: background 0.12s, color 0.12s;
}

.vo-call-overlay .vo-call-btn:hover,
.vo-call-overlay .vo-call-chevron:hover,
.vo-call-overlay .vo-call-btn[aria-expanded="true"],
.vo-call-overlay .vo-call-chevron[aria-expanded="true"] {
  background: var(--vo-hover);
}

.vo-call-overlay .vo-call-split {
  border-radius: 12px;
}

.vo-call-overlay .vo-call-split:has(> .vo-call-chevron):hover {
  background: var(--vo-hover);
}

.vo-call-overlay .vo-call-split > .vo-call-btn {
  border-radius: 12px;
}

.vo-call-overlay .vo-call-split > .vo-call-btn:has(~ .vo-call-chevron) {
  width: 38px;
  min-width: 38px;
  border-radius: 12px 0 0 12px;
}

.vo-call-overlay .vo-call-chevron {
  width: 20px;
  min-width: 20px;
  margin-left: 0;
  border-radius: 0 12px 12px 0;
  color: var(--vo-muted);
}

.vo-call-overlay .vo-call-chevron svg {
  width: 14px;
  height: 14px;
}

.vo-call-overlay .vo-call-split:has(> .vo-call-chevron) .vo-call-btn:hover,
.vo-call-overlay .vo-call-split:has(> .vo-call-chevron) .vo-call-chevron:hover {
  background: transparent;
}

.vo-call-overlay .vo-call-btn.is-off {
  background: color-mix(in srgb, var(--vo-danger) 14%, transparent);
  color: var(--vo-danger);
}

.vo-call-overlay .vo-call-btn.is-on {
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
}

.vo-call-overlay .vo-call-btn.vo-call-hangup,
.vo-call-overlay .vo-call-btn.vo-call-hangup:hover {
  width: 52px;
  min-width: 52px;
  background: var(--vo-danger, #b42318);
  color: #fff;
}

.vo-call-overlay .vo-call-btn.vo-call-hangup:hover {
  filter: brightness(1.08);
}

/* Camera menu: background effects as a grid of swatches under the camera list. */
.vo-call-menu:has(.vo-bg-picker) { min-width: 15rem; }

.vo-call-menu .vo-bg-picker {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--vo-line);
}

.vo-call-menu .vo-call-menu-label {
  padding: 0.3rem 0.5rem 0.4rem;
  color: var(--vo-muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vo-bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 0.3rem 0.3rem;
}

.vo-call-menu .vo-bg-grid .vo-bg-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid var(--vo-line);
  border-radius: 8px;
  background-color: var(--vo-hover);
  background-size: cover;
  background-position: center;
  color: var(--vo-ink);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.vo-call-menu .vo-bg-grid .vo-bg-option svg { width: 18px; height: 18px; }
.vo-call-menu .vo-bg-grid .vo-bg-option[aria-checked="true"] { border-color: var(--vo-accent); box-shadow: 0 0 0 1px var(--vo-accent); }
.vo-call-menu .vo-bg-grid .vo-bg-option:disabled { cursor: progress; opacity: 0.7; }
.vo-call-menu .vo-bg-grid .vo-bg-blur {
  background-image: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--vo-ink) 35%, transparent) 0 28%, transparent 29%),
    linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #0f172a;
}
.vo-call-menu .vo-bg-grid .vo-bg-blur span { backdrop-filter: blur(2px); padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); }
.vo-call-menu .vo-bg-grid .vo-bg-upload { border-style: dashed; color: var(--vo-muted); }

.vo-call-overlay .vo-call-menu {
  bottom: calc(100% + 10px);
  padding: 0.3rem;
  border-radius: 12px;
}

.vo-call-overlay .vo-call-menu button {
  font-size: 0.82rem;
}

.vo-call-overlay .vo-call-menu button:not(.vo-bg-option):hover {
  background: var(--vo-hover);
}

.vo-call-overlay .vo-call-menu .vo-bg-option:hover { border-color: var(--vo-muted); }
.vo-call-overlay .vo-call-menu .vo-bg-option[aria-checked="true"]:hover { border-color: var(--vo-accent); }

.vo-call-overlay .vo-call-reacts {
  grid-template-columns: repeat(4, 2.25rem);
  gap: 2px;
}

.vo-call-overlay .vo-call-reacts button {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.15rem;
}

/* ---------- AInbox composer ---------- */

.vo-ain-compose {
  margin: 0.5rem 1.1rem 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.vo-ain-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.vo-ain-box:focus-within {
  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);
}

.vo-ain-compose .vo-ain-box textarea.vo-compose-input {
  width: 100%;
  min-height: 46px;
  max-height: min(calc(1.4em * 14 + 1rem), 45vh);
  padding: 0.7rem 0.85rem 0.3rem;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: transparent;
  font-size: 0.92rem;
  line-height: 1.4;
}

.vo-ain-box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.4rem 0.4rem;
}

.vo-ain-compose .vo-ain-tools {
  flex-wrap: nowrap;
  align-items: center;
  gap: 1px;
  min-width: 0;
  overflow-x: auto;
}

.vo-ain-compose .vo-ain-tools button,
.vo-ain-compose .vo-ain-tools .vo-attach {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
}

.vo-ain-compose .vo-ain-tools button:hover,
.vo-ain-compose .vo-ain-tools .vo-attach:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-ain-tools__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  margin: 0 0.25rem;
  background: var(--vo-line);
}

.vo-ain-compose .vo-ain-sendrow {
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
}

.vo-ain-sched {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
}

.vo-ain-sched:hover,
.vo-ain-sched.on {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-ain-send {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.85rem 0 0.7rem;
  border: 0;
  border-radius: 9px;
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.12s, opacity 0.12s;
}

.vo-ain-send:hover:not(:disabled) {
  filter: brightness(1.08);
}

.vo-ain-send:disabled {
  opacity: 0.4;
  cursor: default;
}

.vo-ain-file-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  max-width: calc(100% - 1.2rem);
  margin: 0.55rem 0.6rem 0;
  padding: 0.25rem 0.3rem 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--vo-hover);
  font-size: 0.78rem;
}

.vo-ain-file-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-ain-file-chip button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
}

.vo-ain-compose [data-schedule-when] {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--vo-accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.vo-ain-compose [data-schedule-when] button {
  border: 0;
  background: transparent;
  color: var(--vo-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.vo-ain-compose [data-schedule-presets] {
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0 0;
}

.vo-ain-compose [data-schedule-presets] .vo-input {
  width: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.vo-ain-quick button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.vo-ain-quick button:hover {
  border-color: color-mix(in srgb, var(--vo-accent) 40%, var(--vo-line));
}

/* ---------- chat popup ---------- */

.vo-pop {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.vo-pop .vo-pop-head {
  gap: 0.5rem;
  padding: 0.6rem 0.6rem 0.6rem 0.85rem;
}

.vo-pop .vo-pop-who {
  justify-content: flex-start;
  gap: 0.6rem;
}

.vo-pop .vo-pop-who .vo-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.vo-pop-who__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.vo-pop-who__text strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-pop-who__text span {
  color: var(--vo-muted);
  font-size: 0.72rem;
}

.vo-pop .vo-pop-tools {
  display: flex;
  gap: 2px;
}

.vo-pop .vo-pop-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--vo-muted);
}

.vo-pop .vo-pop-icon:hover:not(:disabled) {
  color: var(--vo-ink);
}

.vo-pop .vo-pop-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

.vo-pop .vo-pop-quick {
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
}

.vo-pop .vo-pop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  background: var(--vo-panel);
  color: var(--vo-ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.vo-pop .vo-pop-chip:hover:not(:disabled) {
  background: var(--vo-hover);
}

.vo-pop .vo-pop-compose {
  padding: 0.4rem 0.6rem 0.65rem;
}

.vo-pop .vo-pop-fmt {
  gap: 1px;
  margin-bottom: 0.3rem;
}

.vo-pop .vo-pop-fmt .vo-pop-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 0.8rem;
}

.vo-pop .vo-compose-row {
  align-items: flex-end;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-input);
}

.vo-pop .vo-compose-row:focus-within {
  border-color: color-mix(in srgb, var(--vo-accent) 55%, var(--vo-line));
}

.vo-pop .vo-compose-row textarea {
  align-self: center;
  border: 0;
  background: transparent;
  outline: none;
}

.vo-pop .vo-compose-row .vo-icon-btn.primary {
  border-radius: 9px;
}

/* ---------- threads + channel manage ---------- */

.vo-thread-bar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.vo-thread-bar__title span {
  color: var(--vo-muted);
  font-size: 0.72rem;
}

.vo-thread-root {
  margin: 0.15rem 0.15rem 0;
  padding: 0.65rem 0.75rem 0.6rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
  font-size: 0.86rem;
}

.vo-thread-root__label {
  margin-bottom: 0.2rem;
  color: var(--vo-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vo-thread-root .meta {
  margin-bottom: 0.15rem;
  color: var(--vo-muted);
  font-size: 0.72rem;
}

.vo-thread-root .meta strong,
.vo-msg .meta strong {
  color: var(--vo-ink);
  font-weight: 600;
}

.vo-thread-root img,
.vo-thread-root video {
  max-width: 100%;
  border-radius: 10px;
}

.vo-thread-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.6rem 0.2rem 0.2rem;
  color: var(--vo-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.vo-thread-divider::before,
.vo-thread-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vo-line);
}

.vo-msg.vo-msg--reply {
  margin-left: 0.9rem;
  border-left: 2px solid var(--vo-line);
  border-radius: 0 10px 10px 0;
}

.vo-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 22px;
  padding: 0 0.5rem 0 0.4rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vo-accent) 12%, transparent);
  color: var(--vo-accent);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.vo-reply-link:hover {
  background: color-mix(in srgb, var(--vo-accent) 20%, transparent);
}

.vo-reply-link .vo-glyph {
  width: 13px;
  height: 13px;
}

.vo-channel-bar {
  position: relative;
  justify-content: space-between;
}

.vo-channel-manage summary {
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  color: var(--vo-muted);
  font-size: 0.74rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.vo-channel-manage summary::-webkit-details-marker {
  display: none;
}

.vo-channel-manage summary:hover,
.vo-channel-manage[open] summary {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-channel-manage__menu {
  position: absolute;
  right: 0.6rem;
  top: calc(100% + 4px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: min(270px, calc(100% - 1.2rem));
  padding: 0.75rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow);
}

.vo-channel-manage__menu label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--vo-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.vo-channel-manage__row {
  display: flex;
  gap: 0.35rem;
}

.vo-channel-manage__row .vo-input {
  min-width: 0;
}

.vo-channel-manage__menu .vo-btn.danger {
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--vo-danger) 12%, transparent);
  color: var(--vo-danger);
  font-size: 0.78rem;
}

/* ---------- reply quote ---------- */

.vo-quote {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  margin: 0.15rem 0 0.3rem;
  padding: 0.35rem 0.6rem;
  border: 0;
  border-left: 3px solid color-mix(in srgb, var(--vo-accent) 70%, transparent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--vo-accent) 7%, var(--vo-panel));
  font: inherit;
  text-align: left;
}

.vo-quote:hover {
  background: color-mix(in srgb, var(--vo-accent) 12%, var(--vo-panel));
}

.vo-quote__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.vo-quote__who {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--vo-muted);
  font-size: 0.7rem;
}

.vo-quote__who strong {
  color: var(--vo-ink);
  font-weight: 600;
}

.vo-quote__who .vo-glyph {
  width: 12px;
  height: 12px;
  transform: scaleY(-1);
}

.vo-quote__line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.vo-quote__text {
  overflow: hidden;
  color: var(--vo-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-quote__text.muted {
  color: var(--vo-muted);
  font-style: italic;
}

.vo-quote__file {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.1rem 0.45rem 0.1rem 0.35rem;
  overflow: hidden;
  border: 1px solid var(--vo-line);
  border-radius: 6px;
  background: var(--vo-panel);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-quote__file .vo-glyph {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--vo-muted);
}

.vo-quote__tag {
  flex: 0 0 auto;
  color: var(--vo-muted);
  font-size: 0.68rem;
}

/* Long URLs and tokens must wrap instead of widening chat bubbles. */
.vo-pop-log { overflow-x: hidden; }
.vo-pop-msg > div,
.vo-msg,
.vo-thread-root,
.vo-ain-msg { min-width: 0; overflow-wrap: anywhere; }

/* ---------- AInbox: icons, lists, filters, hover bar ---------- */

.vo-ain-rail button {
  flex-direction: column;
  gap: 0.2rem;
}

.vo-ain-rail button > .vo-glyph {
  width: 18px;
  height: 18px;
}

.vo-ain-rail-label {
  font-size: 0.62rem;
  font-weight: 600;
}

.vo-ain-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.vo-ain-iconbtn:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-ain-iconbtn.on {
  color: var(--vo-accent);
}

.vo-ain-iconbtn.primary {
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
}

.vo-ain-iconbtn.primary:hover {
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
  filter: brightness(1.08);
}

.vo-ain-iconbtn.danger:hover {
  background: color-mix(in srgb, var(--vo-danger) 12%, transparent);
  color: var(--vo-danger);
}

.vo-ain-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  color: var(--vo-muted);
}

.vo-ain-head {
  align-items: center;
}

.vo-ain-head .vo-ain-sub {
  margin: 0.1rem 0 0;
}

.vo-ain-head-actions,
.vo-ain-head .vo-ain-quick {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

/* hover toolbar on a message */
.vo-ain-msg {
  position: relative;
}

.vo-ain-msg .vo-ain-hover {
  top: -0.85rem;
  right: 0.75rem;
  gap: 1px;
  padding: 2px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  transition: opacity 0.1s;
}

.vo-ain-msg .vo-ain-hover .vo-ain-iconbtn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.vo-ain-msg .vo-ain-hover .vo-glyph {
  width: 16px;
  height: 16px;
}

.vo-ain-msg-top {
  padding-right: 0;
}

.vo-msg-toolbar .vo-emoji-picker {
  position: absolute;
  top: 1.4rem;
  right: 0.75rem;
  z-index: 8;
}

/* tabs inside a conversation */
.vo-ain-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.vo-ain-tabs button .vo-glyph {
  width: 14px;
  height: 14px;
}

/* generic list rows (saved, later, directories, threads) */
.vo-ain-list,
.vo-ain-filelist {
  gap: 0.35rem;
}

.vo-ain-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
  color: var(--vo-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.vo-ain-item:hover {
  border-color: color-mix(in srgb, var(--vo-accent) 35%, var(--vo-line));
  box-shadow: var(--vo-shadow-sm);
}

.vo-ain-item-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.vo-ain-item-main strong,
.vo-ain-item-main .vo-ain-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-ain-item-end {
  color: var(--vo-accent);
}

.vo-ain-item-open {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vo-ain-av.hash {
  background: color-mix(in srgb, var(--vo-accent) 14%, var(--vo-panel));
  color: var(--vo-accent);
  font-weight: 700;
}

.vo-ain-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
}

.vo-ain-log h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0.35rem;
  color: var(--vo-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vo-ain-log h3:first-child {
  margin-top: 0;
}

.vo-ain-log h3 span {
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--vo-hover);
  letter-spacing: 0;
}

/* files and links */
.vo-ain-filters {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem 0.25rem;
}

.vo-ain-filters .vo-seg {
  align-self: flex-start;
}

.vo-ain-filters .vo-seg button {
  gap: 0.35rem;
}

.vo-ain-filters .vo-seg button .vo-glyph {
  width: 14px;
  height: 14px;
}

.vo-ain-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.vo-ain-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.6rem;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  background: var(--vo-panel);
  color: var(--vo-muted);
  transition: border-color 0.12s;
}

.vo-ain-field:focus-within {
  border-color: color-mix(in srgb, var(--vo-accent) 55%, var(--vo-line));
}

.vo-ain-field .vo-glyph {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.vo-ain-field select,
.vo-ain-field input {
  min-width: 0;
  max-width: 12rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.vo-ain-field--date input {
  max-width: 8.5rem;
}

.vo-ain-range-dash {
  color: var(--vo-muted);
}

.vo-ain-filelist .vo-ain-file {
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-panel);
}

.vo-ain-filelist .vo-ain-file:hover {
  border-color: color-mix(in srgb, var(--vo-accent) 35%, var(--vo-line));
}

.vo-ain-filetype {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--vo-accent) 10%, var(--vo-panel));
  color: var(--vo-accent);
}

.vo-ain-filetype.is-image {
  background: color-mix(in srgb, #10b981 14%, var(--vo-panel));
  color: #059669;
}

.vo-ain-filetype .vo-glyph {
  width: 18px;
  height: 18px;
}

.vo-ain-file-main {
  flex: 1 1 auto;
  min-width: 0;
}

.vo-ain-file-main strong,
.vo-ain-file-main a {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-ain-more-btn,
.vo-ain-back {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.35rem;
  margin: 0.25rem auto;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
  background: var(--vo-panel);
  color: var(--vo-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.vo-ain-back {
  align-self: flex-start;
  margin: 0 0 0.25rem;
}

.vo-ain-more-btn:hover,
.vo-ain-back:hover {
  color: var(--vo-ink);
}

/* composer surroundings */
.vo-ain-actionbar {
  gap: 2px;
  padding: 0.45rem 1.1rem 0;
}

.vo-ain-actionbar .vo-ain-iconbtn {
  border: 1px solid var(--vo-line);
  background: var(--vo-panel);
}

.vo-ain-replybar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 1.1rem 0;
  padding: 0.3rem 0.3rem 0.3rem 0.65rem;
  border-left: 3px solid var(--vo-accent);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--vo-accent) 8%, var(--vo-panel));
  color: var(--vo-muted);
  font-size: 0.8rem;
}

.vo-ain-replybar > span {
  flex: 1 1 auto;
}

.vo-ain-replybar strong {
  color: var(--vo-ink);
}

/* upcoming events in the sidebar */
.vo-ain-upcoming > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.5rem;
}

.vo-ain-upcoming-actions {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}

.vo-ain-upcoming-actions .vo-ain-iconbtn {
  width: 26px;
  height: 26px;
}

/* ---------- chat popup as a balloon over the clicked person ---------- */

.vo-pop[data-anchored] {
  position: fixed;
  z-index: 40;
  overflow: visible;
  max-height: min(480px, calc(100vh - 16px));
  max-height: min(480px, calc(100dvh - 16px));
}

.vo-pop[data-anchored] > .vo-pop-head {
  border-radius: 16px 16px 0 0;
}

.vo-pop[data-anchored] > :last-child {
  border-radius: 0 0 16px 16px;
}

.vo-pop[data-anchored]::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--vo-panel);
  border: 1px solid var(--vo-line);
  transform: rotate(45deg);
  z-index: 1;
  pointer-events: none;
}

/* The diamond's center is the arrow offset, so its point aims at the avatar center. */
.vo-pop[data-anchored="below"]::before,
.vo-pop[data-anchored="above"]::before {
  left: var(--vo-tip-x, 50%);
  margin-left: -7px;
}

.vo-pop[data-anchored="below"]::before {
  top: -7px;
  border-right: 0;
  border-bottom: 0;
}

.vo-pop[data-anchored="above"]::before {
  bottom: -7px;
  border-top: 0;
  border-left: 0;
}

.vo-pop[data-anchored="right"]::before,
.vo-pop[data-anchored="left"]::before {
  top: var(--vo-tip-y, 50%);
  margin-top: -7px;
}

.vo-pop[data-anchored="right"]::before {
  left: -7px;
  border-top: 0;
  border-right: 0;
}

.vo-pop[data-anchored="left"]::before {
  right: -7px;
  border-bottom: 0;
  border-left: 0;
}

.vo-pop[data-anchored="below"] { animation: vo-balloon-down 160ms ease; }
.vo-pop[data-anchored="above"] { animation: vo-balloon-up 160ms ease; }
.vo-pop[data-anchored="right"] { animation: vo-balloon-right 160ms ease; }
.vo-pop[data-anchored="left"] { animation: vo-balloon-left 160ms ease; }

@keyframes vo-balloon-down {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes vo-balloon-up {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes vo-balloon-right {
  from { opacity: 0; transform: translateX(-6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes vo-balloon-left {
  from { opacity: 0; transform: translateX(6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* "Today" separator in the chat popup: its own centred row, not on top of the sender name. */
.vo-pop .vo-pop-today {
  position: static;
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 0 0.15rem;
  color: var(--vo-muted);
  font-size: 0.66rem;
}

/* Icon buttons inside the older pill rows keep their square size. */
.vo-ain-quick .vo-ain-iconbtn,
.vo-ain-row-actions .vo-ain-iconbtn,
.vo-ain-head .vo-ain-iconbtn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  font-size: inherit;
}

.vo-ain-iconbtn .vo-glyph {
  flex: none;
  width: 16px;
  height: 16px;
}

.vo-ain-actionbar .vo-ain-iconbtn {
  border-radius: 999px;
}

/* Locked-room badge sits in the top-right corner, beside the menu, not over the name. */
.vo-shell .vo-room__lock {
  top: 0.62rem;
  right: 2.1rem;
  left: auto;
  font-size: 0.8rem;
}

.vo-shell .vo-room--locked .vo-room__label {
  padding-left: 0;
  padding-right: 4rem;
}

.vo-shell .vo-room--locked {
  border-style: dashed;
}

.vo-seen {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  color: var(--vo-muted);
  font-size: 0.7rem !important;
}

.vo-seen .vo-glyph {
  width: 13px;
  height: 13px;
  color: var(--vo-accent);
}

/* Hover actions beside the message menu: reaction + reply sit left of the three dots. */
.vo-msg-quick {
  position: absolute;
  top: 0.3rem;
  right: 2.15rem;
  z-index: 4;
  display: flex;
  gap: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}

.vo-msg:hover .vo-msg-quick,
.vo-msg:focus-within .vo-msg-quick,
.vo-msg-quick.open {
  opacity: 1;
  pointer-events: auto;
}

.vo-msg-quick-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--vo-panel);
  color: var(--vo-muted);
  cursor: pointer;
}

.vo-msg-quick-btn:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

.vo-msg-quick .vo-emoji-picker {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 8;
}

.vo-shell .vo-msg {
  padding-right: 4.4rem;
}

/* @ mention picker above the chat composer */
.vo-chat-compose { position: relative; }
.vo-mention-pick {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 4px); z-index: 30;
  margin: 0; padding: 4px; list-style: none;
  background: var(--vo-panel); color: var(--vo-ink);
  border: 1px solid var(--vo-line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.vo-mention-pick button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: 7px; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vo-mention-pick button:hover, .vo-mention-pick button.active { background: var(--vo-accent-soft, rgba(99,102,241,.12)); }
.vo-mention-pick__av {
  flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #fff; background: var(--vo-accent, #6366f1);
}
.vo-mention-pick__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-mention-pick__sub { margin-left: auto; font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* AInbox sidebar: room chats get a small icon link instead of "Room Open room" text */
.vo-ain-roomlink {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 6px; color: var(--vo-muted, currentColor); opacity: .7;
}
.vo-ain-roomlink:hover { opacity: 1; background: var(--vo-accent-soft, rgba(99,102,241,.12)); color: var(--vo-accent, inherit); }
.vo-ain-roomlink svg { width: 14px; height: 14px; }
.vo-ain-row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* AInbox Threads: one card per thread with where, root message and reply count */
.vo-ain-threads { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.vo-ain-thread {
  display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 760px;
  padding: 12px 14px; text-align: left; font: inherit; color: var(--vo-ink); cursor: pointer;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.vo-ain-thread:hover { border-color: var(--vo-accent); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.vo-ain-thread.unread { border-left: 3px solid var(--vo-accent); }
.vo-ain-thread__where { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--vo-muted); }
.vo-ain-thread__where .vo-glyph { width: 13px; height: 13px; }
.vo-ain-thread__where time { margin-left: auto; font-weight: 400; }
.vo-ain-thread__root { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.vo-ain-thread__root .vo-ain-av { flex: 0 0 32px; width: 32px; height: 32px; }
.vo-ain-thread__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vo-ain-thread__body strong { font-size: 14px; }
.vo-ain-thread__text {
  font-size: 14px; line-height: 1.4; color: var(--vo-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vo-ain-thread__foot { display: flex; align-items: center; gap: 6px; padding-left: 42px; font-size: 12px; font-weight: 600; color: var(--vo-accent); }
.vo-ain-thread__foot .vo-glyph { width: 13px; height: 13px; }
.vo-ain-thread__foot .vo-ain-count { margin-left: 4px; width: auto; padding: 0 7px; }
.vo-ain-threads .vo-ain-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 0; color: var(--vo-muted); }
.vo-ain-threads .vo-ain-empty .vo-glyph { width: 28px; height: 28px; }

/* AInbox thread view: header, original message, reply divider */
.vo-ain-threadhead { display: flex; align-items: center; gap: 8px; padding: 4px 0 10px; }
.vo-ain-threadhead strong { font-size: 15px; }
.vo-ain-threadroot {
  margin: 0 0 4px; padding: 12px 14px; border-radius: 12px;
  background: var(--vo-accent-soft); border: 1px solid var(--vo-line);
}
.vo-ain-threaddiv { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--vo-muted); }
.vo-ain-threaddiv::after { content: ""; flex: 1; height: 1px; background: var(--vo-line); }
.vo-ain-av { color: #fff; }

/* Magicasts page: header with search + New recording, collapsible recorder, library grid */
.vo-cast-page { max-width: 1120px; }
.vo-cast-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.vo-cast-top h1 { margin: 0 0 4px; font-size: 24px; }
.vo-cast-sub { margin: 0; color: var(--vo-muted); font-size: 14px; }
.vo-cast-top__actions { display: flex; align-items: center; gap: 10px; }
.vo-cast-search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; min-width: 240px;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 10px; color: var(--vo-muted);
}
.vo-cast-search:focus-within { border-color: var(--vo-accent); }
.vo-cast-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--vo-ink); font: inherit; font-size: 14px; }
.vo-cast-new { display: inline-flex; align-items: center; gap: 8px; height: 38px; }
.vo-cast-recdot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.vo-cast-stopsq { width: 10px; height: 10px; border-radius: 2px; background: currentColor; display: inline-block; margin-right: 6px; }
.vo-cast-error {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
  padding: 8px 8px 8px 14px; border-radius: 10px; font-size: 14px;
  background: color-mix(in srgb, var(--vo-danger) 12%, transparent); color: var(--vo-danger);
  border: 1px solid color-mix(in srgb, var(--vo-danger) 35%, transparent);
}
.vo-cast-recorder {
  margin-bottom: 24px; padding: 14px; border-radius: 16px;
  background: var(--vo-panel); border: 1px solid var(--vo-line); box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.vo-cast-recorder[hidden], .vo-cast-stage-wrap[hidden], .vo-cast-recorder .vo-cast-stage-wrap[hidden] { display: none; }
.vo-cast-recorder__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vo-cast-recorder__state { flex: 1; min-width: 160px; }
.vo-cast-recorder__actions { display: flex; align-items: center; gap: 8px; }
.vo-cast-toggles { display: flex; gap: 6px; }
.vo-cast-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--vo-line); background: transparent; color: var(--vo-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vo-cast-toggle.on { background: var(--vo-accent-soft); color: var(--vo-accent); border-color: transparent; }
.vo-cast-toggle:disabled { opacity: .55; cursor: default; }
.vo-cast-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #ef4444; }
.vo-cast-live .vo-cast-recdot { animation: vo-cast-pulse 1.2s ease-in-out infinite; box-shadow: none; }
.vo-cast-live.paused { color: var(--vo-muted); }
.vo-cast-live.paused .vo-cast-recdot { animation: none; background: var(--vo-muted); }
@keyframes vo-cast-pulse { 50% { opacity: .3; } }
.vo-cast-recorder .vo-cast-stage-wrap canvas, .vo-cast-recorder .vo-cast-preview { max-height: 56vh; border-radius: 12px; }
.vo-cast-savebar { display: flex; gap: 8px; margin-top: 12px; }
.vo-cast-savebar .vo-input { flex: 1; }
.vo-cast-library h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.vo-cast-count-chip { padding: 1px 8px; border-radius: 999px; background: var(--vo-accent-soft); color: var(--vo-accent); font-size: 12px; }
.vo-cast-library .vo-cast-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vo-cast-library .vo-cast-card { max-width: none; padding: 0; gap: 0; overflow: hidden; border-radius: 14px; transition: box-shadow .15s, border-color .15s; }
.vo-cast-library .vo-cast-card:hover { border-color: var(--vo-accent); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.vo-cast-card__media { position: relative; display: block; }
.vo-cast-library .vo-cast-card img, .vo-cast-library .vo-cast-thumb { border-radius: 0; }
.vo-cast-library .vo-cast-thumb .vo-glyph { width: 28px; height: 28px; opacity: .6; }
.vo-cast-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .15s;
}
.vo-cast-card:hover .vo-cast-play { opacity: 1; }
.vo-cast-dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 600; }
.vo-cast-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.vo-cast-card__title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vo-cast-card__title a { flex: 1; min-width: 0; color: var(--vo-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-cast-card__tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.vo-cast-card:hover .vo-cast-card__tools, .vo-cast-card:focus-within .vo-cast-card__tools { opacity: 1; }
.vo-cast-card__tools .danger:hover { color: var(--vo-danger); }
.vo-cast-rename { display: flex; gap: 4px; align-items: center; }
.vo-cast-rename .vo-input { flex: 1; min-width: 0; height: 32px; }
.vo-cast-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 0; color: var(--vo-muted); border: 1px dashed var(--vo-line); border-radius: 14px; }
.vo-cast-empty .vo-glyph { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .vo-cast-top__actions { width: 100%; }
  .vo-cast-search { flex: 1; min-width: 0; }
}
.vo-cast-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.6); font-size: 14px; pointer-events: none; }
.vo-cast-idle .vo-glyph { width: 32px; height: 32px; }

/* Replay recorder: mode picker, stage with live HUD, problem cards, controls */
.vo-cast-rhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.vo-cast-rhead h2 { margin: 0; font-size: 16px; }
.vo-cast-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.vo-cast-mode {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px; text-align: left;
  border: 1px solid var(--vo-line); background: transparent; color: var(--vo-ink); font: inherit; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.vo-cast-mode:hover:not(:disabled) { border-color: var(--vo-accent); }
.vo-cast-mode.on { border-color: var(--vo-accent); background: var(--vo-accent-soft); box-shadow: inset 0 0 0 1px var(--vo-accent); }
.vo-cast-mode:disabled { cursor: default; }
.vo-cast-mode:disabled:not(.on) { opacity: .5; }
.vo-cast-mode__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--vo-hover); color: var(--vo-muted); }
.vo-cast-mode.on .vo-cast-mode__icon { background: var(--vo-accent); color: #fff; }
.vo-cast-mode__text { display: flex; flex-direction: column; min-width: 0; }
.vo-cast-mode__text strong { font-size: 14px; white-space: nowrap; }
.vo-cast-mode__text small { color: var(--vo-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vo-cast-problem {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px 8px 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--vo-danger) 9%, var(--vo-panel)); border: 1px solid color-mix(in srgb, var(--vo-danger) 35%, transparent);
}
.vo-cast-problem.warn { background: color-mix(in srgb, var(--vo-warn) 12%, var(--vo-panel)); border-color: color-mix(in srgb, var(--vo-warn) 40%, transparent); }
.vo-cast-problem__icon {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--vo-danger); color: #fff; font-weight: 700; font-size: 15px; line-height: 1;
}
.vo-cast-problem.warn .vo-cast-problem__icon { background: var(--vo-warn); }
.vo-cast-problem__body { flex: 1; min-width: 0; }
.vo-cast-problem__body strong { display: block; font-size: 14px; color: var(--vo-ink); }
.vo-cast-problem__body p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--vo-muted); }
.vo-cast-problem__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vo-cast-problem__actions .vo-btn { height: 32px; font-size: 13px; }

.vo-cast-recorder.is-live .vo-cast-stage-wrap { box-shadow: 0 0 0 2px #ef4444; }
.vo-cast-recorder .vo-cast-stage-wrap { display: flex; justify-content: center; min-height: 220px; }
.vo-cast-recorder .vo-cast-stage-wrap canvas { width: 100%; height: auto; max-height: 56vh; object-fit: contain; border-radius: 0; }
.vo-cast-hud {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px;
  border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(4px);
}
.vo-cast-hud .vo-cast-live { color: #fca5a5; }
.vo-cast-clock { font-variant-numeric: tabular-nums; }
.vo-cast-size { --used: 0; position: relative; width: 48px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.vo-cast-size span { position: absolute; inset: 0 auto 0 0; width: calc(var(--used) * 100%); background: #fff; }
.vo-cast-idle strong { color: #fff; font-size: 16px; }
.vo-cast-idle span { max-width: 340px; text-align: center; padding: 0 16px; }
.vo-cast-idle .vo-glyph { width: 36px; height: 36px; }
.vo-cast-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: vo-cast-spin .8s linear infinite; }
.vo-cast-idle .vo-cast-spinner { flex: 0 0 auto; box-sizing: border-box; max-width: none; padding: 0; aspect-ratio: 1; }
@keyframes vo-cast-spin { to { transform: rotate(360deg); } }

.vo-cast-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.vo-cast-controls__main { display: flex; align-items: center; gap: 8px; }
.vo-cast-mic {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--vo-line); background: transparent; color: var(--vo-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vo-cast-mic.on { color: var(--vo-ink); }
.vo-cast-mic:not(.on) { color: var(--vo-danger); border-color: color-mix(in srgb, var(--vo-danger) 40%, transparent); }
.vo-cast-mic:disabled { opacity: .55; cursor: default; }
.vo-cast-level { --level: 0; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.vo-cast-level i { width: 3px; border-radius: 2px; background: var(--vo-ok); height: calc(3px + var(--level) * 11px); opacity: calc(.35 + var(--level)); transition: height .08s; }
.vo-cast-level i:nth-child(2), .vo-cast-level i:nth-child(3) { height: calc(3px + var(--level) * 14px); }
.vo-cast-mic:not(.on) .vo-cast-level { display: none; }
.vo-cast-record, .vo-cast-stop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; font-weight: 600; }
.vo-cast-hint { margin: 10px 0 0; color: var(--vo-muted); font-size: 12px; }
.vo-cast-savebar { flex-wrap: wrap; }
.vo-cast-savebar .vo-input { min-width: 200px; }
.vo-cast-savebar__btns { display: flex; gap: 8px; }
.vo-cast-progress { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--vo-line); overflow: hidden; }
.vo-cast-progress span { display: block; height: 100%; background: var(--vo-accent); transition: width .2s; }

@media (max-width: 640px) {
  .vo-cast-recorder { padding: 12px; border-radius: 14px; }
  .vo-cast-modes { gap: 6px; }
  .vo-cast-mode { flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; text-align: center; }
  .vo-cast-mode__text strong { font-size: 13px; white-space: normal; }
  .vo-cast-mode__text small { display: none; }
  .vo-cast-recorder .vo-cast-stage-wrap canvas { max-height: 52vh; }
  .vo-cast-controls { flex-direction: column-reverse; align-items: stretch; }
  .vo-cast-controls__main { width: 100%; }
  .vo-cast-controls__main .vo-btn { flex: 1; height: 48px; font-size: 15px; }
  .vo-cast-mic { justify-content: center; }
  .vo-cast-hint { text-align: center; }
  .vo-cast-savebar { flex-direction: column; }
  .vo-cast-savebar__btns .vo-btn { flex: 1; height: 44px; }
}

/* People picker dialog (new group / add people) */
.vo-people-scrim { position: fixed; inset: 0; z-index: 900; background: rgba(15,23,42,.38); }
.vo-people-pick {
  position: fixed; z-index: 901; left: 50%; top: 12vh; transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px)); max-height: 76vh; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 16px; background: var(--vo-panel); color: var(--vo-ink);
  border: 1px solid var(--vo-line); box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.vo-people-pick header { display: flex; align-items: center; justify-content: space-between; }
.vo-people-pick h3 { margin: 0; font-size: 16px; }
.vo-people-hint { margin: 0; font-size: 13px; color: var(--vo-muted); }
.vo-people-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vo-people-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px;
  background: var(--vo-accent-soft); color: var(--vo-accent); font-size: 13px; font-weight: 600;
}
.vo-people-chip button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.vo-people-chip .vo-glyph { width: 12px; height: 12px; }
.vo-people-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--vo-line); border-radius: 10px; color: var(--vo-muted); }
.vo-people-search:focus-within { border-color: var(--vo-accent); }
.vo-people-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--vo-ink); font: inherit; font-size: 14px; }
.vo-people-list { flex: 1; min-height: 120px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.vo-people-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vo-people-list button:hover { background: var(--vo-hover, var(--vo-accent-soft)); }
.vo-people-list button.on { background: var(--vo-accent-soft); }
.vo-people-av { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.vo-people-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vo-people-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-people-main span { font-size: 12px; color: var(--vo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-people-check { flex: 0 0 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; border: 1.5px solid var(--vo-line); color: #fff; }
.vo-people-list button.on .vo-people-check { background: var(--vo-accent); border-color: var(--vo-accent); }
.vo-people-check .vo-glyph { width: 13px; height: 13px; }
.vo-people-empty { padding: 20px 8px; text-align: center; color: var(--vo-muted); font-size: 13px; }
.vo-people-error { margin: 0; font-size: 13px; color: var(--vo-danger); }
.vo-people-pick footer { display: flex; justify-content: flex-end; gap: 8px; }

/* Group conversations in AInbox: people avatar, member stack and menu */
.vo-ain-av.group { background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-ain-av.group .vo-glyph { width: 15px; height: 15px; }
.vo-ain-members { position: relative; }
.vo-ain-members > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 4px;
  border: 1px solid var(--vo-line); border-radius: 999px; cursor: pointer; color: var(--vo-ink);
}
.vo-ain-members > summary::-webkit-details-marker { display: none; }
.vo-ain-stack { display: inline-flex; }
.vo-ain-stack .vo-ain-av { width: 24px; height: 24px; font-size: 10px; border: 2px solid var(--vo-panel); }
.vo-ain-stack .vo-ain-av + .vo-ain-av { margin-left: -8px; }
.vo-ain-members-count { font-size: 12px; font-weight: 700; }
.vo-ain-members-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 260px; padding: 6px;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.vo-ain-members-menu ul { margin: 0 0 4px; padding: 0 0 4px; list-style: none; max-height: 220px; overflow-y: auto; border-bottom: 1px solid var(--vo-line); }
.vo-ain-members-menu li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px; }
.vo-ain-members-menu li .vo-ain-av { width: 24px; height: 24px; font-size: 10px; flex: 0 0 24px; }
.vo-ain-members-menu > button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--vo-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.vo-ain-members-menu > button:hover { background: var(--vo-accent-soft); }
.vo-ain-members-menu > button.danger { color: var(--vo-danger); }
.vo-ain-members-rename { display: flex; gap: 4px; padding: 4px; }
.vo-ain-members-rename .vo-input { flex: 1; min-width: 0; height: 32px; }

/* Office chat DMs tab: New group / Add people bar and group marker */
.vo-dm-tools { display: flex; gap: 6px; padding: 6px 2px 8px; }
.vo-dm-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--vo-line); background: transparent; color: var(--vo-ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.vo-dm-tool:hover { border-color: var(--vo-accent); color: var(--vo-accent); }
.vo-dm-tool .vo-glyph { width: 14px; height: 14px; }
/* Knock is how a call starts: green everywhere it appears (DM bar, chat popup, Inbox header). */
.vo-knock-btn,
.vo-knock-btn:is(.vo-dm-tool, .vo-pop-icon, .vo-pop-chip, .vo-ain-iconbtn) { border-color: #16a34a; background: #16a34a; color: #fff; }
.vo-knock-btn:hover:not(:disabled),
.vo-knock-btn:is(.vo-dm-tool, .vo-pop-icon, .vo-pop-chip, .vo-ain-iconbtn):hover:not(:disabled) { border-color: #15803d; background: #15803d; color: #fff; }
.vo-knock-btn:disabled { opacity: .45; }
.vo-dm-groupicon { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--vo-accent); }
.vo-dm-groupicon .vo-glyph { width: 14px; height: 14px; }

/* AInbox sidebar row: "more" button on hover and a proper context menu */
.vo-ain-row { position: relative; }
.vo-ain-row .vo-ain-row-name { flex: 1; }
.vo-ain-more {
  margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  color: var(--vo-muted); opacity: 0; transition: opacity .12s, background .12s;
}
.vo-ain-row:hover .vo-ain-more, .vo-ain-row:focus-within .vo-ain-more, .vo-ain-more.open { opacity: 1; }
.vo-ain-more:hover, .vo-ain-more.open { background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-ain-more .vo-glyph { width: 15px; height: 15px; }
.vo-ain-menu {
  position: absolute; right: 6px; top: calc(100% - 2px); z-index: 60; width: 220px; padding: 6px;
  display: flex; flex-direction: column; gap: 1px; cursor: default; text-align: left;
  background: var(--vo-panel); color: var(--vo-ink); border: 1px solid var(--vo-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); font-size: 13px; font-weight: 500;
}
.vo-ain-menu-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.vo-ain-menu-item:hover { background: var(--vo-accent-soft); }
.vo-ain-menu-item .vo-glyph { width: 15px; height: 15px; color: var(--vo-muted); flex: 0 0 15px; }
.vo-ain-menu-item.on { color: var(--vo-accent); font-weight: 600; }
.vo-ain-menu-item.on .vo-glyph { color: var(--vo-accent); }
.vo-ain-menu-sep { height: 1px; margin: 4px 2px; background: var(--vo-line); }
.vo-ain-menu-label { padding: 4px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vo-muted); }
.vo-ain-menu-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 6px 4px; }
.vo-ain-menu-chips span {
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--vo-line); font-size: 12px; font-weight: 600; cursor: pointer;
}
.vo-ain-menu-chips span:hover { border-color: var(--vo-accent); color: var(--vo-accent); }

/* Room card lock icon */
.vo-shell .vo-room__lock { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--vo-warn, #b54708); background: color-mix(in srgb, var(--vo-warn, #f59e0b) 16%, transparent); }

/* Floor area: loading skeleton, empty and error states */
.vo-floor-skeleton { position: relative; display: flex; align-items: stretch; }
.vo-floor-skeleton__grid {
  flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(120px, 1fr); gap: 14px; min-height: 360px;
}
.vo-floor-skeleton__tile {
  border-radius: 16px; border: 1px solid var(--vo-line);
  background: linear-gradient(100deg, var(--vo-panel) 30%, color-mix(in srgb, var(--vo-panel) 70%, var(--vo-line)) 50%, var(--vo-panel) 70%);
  background-size: 300% 100%; animation: vo-skeleton 1.4s ease-in-out infinite;
}
.vo-floor-skeleton__tile.wide { grid-column: span 2; }
@keyframes vo-skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* Just the blue Collabiro mark with its hopping dots, centred over the skeleton (no text pill). */
.vo-floor-skeleton__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.vo-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--vo-accent-soft); border-top-color: var(--vo-accent); animation: vo-spin .8s linear infinite; }
@keyframes vo-spin { to { transform: rotate(360deg); } }
.vo-floor-state { display: grid; place-items: center; }
.vo-floor-state__card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 380px; padding: 28px 28px 24px; text-align: center;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.vo-floor-state__card h3 { margin: 4px 0 0; font-size: 17px; color: var(--vo-ink); }
.vo-floor-state__card p { margin: 0 0 8px; font-size: 14px; color: var(--vo-muted); overflow-wrap: anywhere; }
.vo-floor-state__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-floor-state__icon.danger { background: color-mix(in srgb, var(--vo-danger) 14%, transparent); color: var(--vo-danger); }
@media (prefers-reduced-motion: reduce) { .vo-floor-skeleton__tile, .vo-spinner { animation: none; } }

/* Formatted message text: inline code and links */
.vo-inline-code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--vo-ink) 8%, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.vo-msg-link { color: var(--vo-link, var(--vo-accent)); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* One-time prompt to enable desktop notifications */
.vo-shell .vo-notify-prompt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 1.1rem 0; padding: 8px 10px 8px 14px;
  border-radius: 12px; background: var(--vo-accent-soft); color: var(--vo-ink); font-size: 13px;
}
.vo-shell .vo-notify-prompt svg { color: var(--vo-accent); flex: 0 0 16px; }
.vo-shell .vo-notify-prompt span { flex: 1; min-width: 200px; }
.vo-shell .vo-notify-prompt .vo-btn { height: 30px; padding: 0 12px; font-size: 13px; }

/* AInbox composer hosts the @ picker */
.vo-ain-box { position: relative; }

/* Huddle button: green while a huddle is live */
.vo-dm-tool.live { border-color: var(--vo-ok, #16a34a); color: var(--vo-ok, #16a34a); background: color-mix(in srgb, var(--vo-ok, #16a34a) 10%, transparent); }
.vo-dm-tool:disabled { opacity: .6; cursor: default; }

/* Profile photos sit on top of the initials avatar */
.vo-avatar, .vo-ain-av { position: relative; }
.vo-av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* Account page */
.vo-account { max-width: 720px; padding: 1.25rem 1.5rem 2.5rem; }
.vo-account h1 { margin: 0 0 16px; font-size: 24px; }
.vo-account-card { margin-bottom: 16px; padding: 18px 20px; border-radius: 16px; background: var(--vo-panel); border: 1px solid var(--vo-line); }
.vo-account-photo { display: flex; gap: 18px; align-items: flex-start; }
.vo-account-photo h2 { margin: 2px 0 4px; font-size: 16px; }
.vo-account-av {
  position: relative; flex: 0 0 5.25rem; width: 5.25rem; height: 5.25rem; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 26px; font-weight: 700; background: linear-gradient(140deg, var(--vo-accent), #8b5cf6);
}
.vo-account-sub { margin: 0 0 12px; color: var(--vo-muted); font-size: 13px; }
.vo-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vo-account-actions label.vo-btn { position: relative; overflow: hidden; cursor: pointer; }
.vo-account-actions label.vo-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vo-account-msg { margin: 10px 0 0; font-size: 13px; color: var(--vo-ok, #16a34a); }
.vo-account-msg.error { color: var(--vo-danger); }
.vo-account-facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.vo-account-facts dt { color: var(--vo-muted); }
.vo-account-facts dd { margin: 0; color: var(--vo-ink); }

/* Poll card in chat */
.vo-poll { max-width: 420px; margin: 4px 0; padding: 12px; border-radius: 14px; background: var(--vo-panel); border: 1px solid var(--vo-line); }
.vo-poll__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; color: var(--vo-ink); }
.vo-poll__head strong { font-size: 14px; line-height: 1.35; }
.vo-poll__icon { flex: 0 0 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-poll__options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vo-poll__option {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; overflow: hidden;
  border: 1px solid var(--vo-line); border-radius: 10px; background: transparent; color: var(--vo-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.vo-poll__option:hover { border-color: var(--vo-accent); }
.vo-poll__option.mine { border-color: var(--vo-accent); }
.vo-poll__bar { position: absolute; inset: 0 auto 0 0; background: var(--vo-accent-soft); transition: width .25s ease; z-index: 0; }
.vo-poll__check, .vo-poll__text, .vo-poll__count { position: relative; z-index: 1; }
.vo-poll__check { flex: 0 0 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--vo-line); color: #fff; }
.vo-poll__option.mine .vo-poll__check { background: var(--vo-accent); border-color: var(--vo-accent); }
.vo-poll__text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vo-poll__count { font-weight: 700; color: var(--vo-muted); }
.vo-poll__meta { margin: 8px 0 0; font-size: 12px; color: var(--vo-muted); }

/* =====================================================================
   Phones (<= 760px): one pane at a time with a bottom tab bar, a two-row
   icon header, and no duplicated dock shortcuts.
   ===================================================================== */
.vo-mobile-nav { display: none; }

@media (max-width: 760px) {
  .vo-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100dvh;
    max-height: 100dvh;
  }

  .vo-shell.m-office .vo-chat-column { display: none; }
  .vo-shell.m-chat .vo-map-pane { display: none; }
  .vo-shell.m-chat.chat-closed .vo-chat-column { display: flex; }
  .vo-shell .vo-chat-column { grid-row: 1; min-height: 0; display: flex; flex-direction: column; }
  .vo-shell .vo-chat-column > .vo-chat-pane { flex: 1; }
  .vo-shell .vo-chat-collapse,
  .vo-shell [data-chat-reopen] { display: none; }
  .vo-shell .vo-chat-pane { border-left: 0; }
  .vo-shell .vo-chat-list { max-height: 38%; min-height: 96px; }

  .vo-mobile-nav {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4px calc(4px + env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) calc(4px + env(safe-area-inset-left));
    background: var(--vo-bg-elev);
    border-top: 1px solid var(--vo-line);
    z-index: 20;
  }
  .vo-mobile-nav > a,
  .vo-mobile-nav > button {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 52px; border: 0; border-radius: 10px; background: transparent;
    color: var(--vo-muted); font: inherit; font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .vo-mobile-nav > .active { color: var(--vo-accent); background: var(--vo-accent-soft); }
  .vo-mobile-nav__badge {
    position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--vo-danger, #ef4444); color: #fff; font-size: 10px; line-height: 18px; text-align: center;
  }

  /* Header: brand row, then a sideways-scrolling row of icon buttons. */
  .vo-shell .vo-office-bar {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: calc(8px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) 8px calc(10px + env(safe-area-inset-left));
    height: auto; min-height: 0;
  }
  .vo-shell .vo-office-bar__left,
  .vo-shell .vo-office-bar__right {
    width: 100%; min-width: 0; flex-wrap: nowrap; gap: 6px;
  }
  .vo-shell .vo-office-bar__right {
    overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding-bottom: 2px;
  }
  .vo-shell .vo-office-bar__right::-webkit-scrollbar { display: none; }
  .vo-shell .vo-office-bar__company { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--vo-ink); }
  .vo-shell .vo-office-bar__sep { display: none; }
  .vo-shell .vo-office-bar .vo-bar-label { display: none; }
  .vo-shell .vo-office-bar .vo-btn,
  .vo-shell .vo-office-bar .vo-theme-btn { flex: 0 0 auto; min-width: 38px; height: 38px; padding: 0 10px; justify-content: center; }
  .vo-shell .vo-reception { flex: 0 0 auto; }
  .vo-shell .vo-reception input { display: none; }

  .vo-shell .vo-office-strip { padding: 6px 10px 0; }
  .vo-shell .vo-notify-prompt { margin: 8px 10px 0; }

  /* Floor: two room columns, dock shows only the call controls. */
  .vo-shell .vo-floor-frame { padding: 10px; }
  .vo-shell .vo-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vo-shell .vo-floor-skeleton__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 280px; }
  .vo-shell .vo-floor-skeleton__tile.wide { grid-column: span 2; }
  .vo-shell .vo-dock__right { display: none; }
  .vo-shell .vo-dock { margin: 0 auto 6px; }
  .vo-shell .vo-floor-tabs { padding: 0 10px; overflow-x: auto; flex-wrap: nowrap; }

  /* Popups and dialogs fit the screen. */
  .vo-shell .vo-pop,
  .vo-shell .vo-pop[data-anchored] { left: 8px !important; right: 8px !important; width: auto !important; max-width: none; }
  .vo-people-pick { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; }
  .vo-mention-pick { left: 4px; right: 4px; }
}

@media (max-width: 380px) {
  .vo-shell .vo-floor { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  /* Shorter empty rooms; 16px text in fields so iOS doesn't zoom on focus. */
  .vo-shell .vo-room { min-height: 5.25rem; }
  .vo-shell textarea,
  .vo-shell input:not([type=checkbox]):not([type=radio]),
  .vo-shell select,
  .vo-ain-app textarea,
  .vo-ain-app input:not([type=checkbox]):not([type=radio]),
  .vo-people-pick input { font-size: 16px; }
}

/* AInbox on phones: list overlay with a back arrow, wrapping header */
.vo-ain-back-mobile { display: none; }
@media (max-width: 860px) {
  .vo-ain { position: relative; }
  .vo-ain.with-side .vo-ain-side { width: auto; border-right: 0; overflow-y: auto; background: var(--vo-bg-elev); z-index: 40; }
  .vo-ain-back-mobile { display: inline-grid; flex: 0 0 auto; }
  .vo-ain-head { flex-wrap: wrap; gap: 8px; align-items: center; padding-left: 10px; padding-right: 10px; }
  .vo-ain-head > div:first-of-type { flex: 1 1 180px; min-width: 0; }
  .vo-ain-head > .vo-ain-quick { flex: 1 1 100%; }
  .vo-ain-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
  .vo-ain-head .vo-ain-quick { flex-wrap: wrap; justify-content: flex-start; }
  .vo-ain-tabs { overflow-x: auto; }
  .vo-ain-threads, .vo-ain-log { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 760px) {
  .vo-mobile-nav { grid-template-columns: repeat(5, 1fr); }
  .vo-mobile-more {
    position: fixed; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 60; min-width: 200px;
    display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
    background: var(--vo-panel); border: 1px solid var(--vo-line); box-shadow: 0 16px 40px rgba(0,0,0,.2);
  }
  .vo-mobile-more > a, .vo-mobile-more > button {
    display: block; padding: 12px 14px; border: 0; border-radius: 9px; background: transparent;
    color: var(--vo-ink); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer;
  }
  .vo-mobile-more > a:hover, .vo-mobile-more > button:hover { background: var(--vo-accent-soft); }
}
.vo-mobile-more { display: none; }
@media (max-width: 760px) { .vo-shell .vo-mobile-more, .vo-mobile-more { display: flex; } }

/* Quiet note under the chat box: the person or room you're writing to is locked. */
.vo-compose-note {
  display: flex; align-items: center; gap: 5px; margin: 0 0 4px 2px;
  font-size: 11px; line-height: 1.3; color: var(--vo-muted); opacity: .85;
}
.vo-compose-note svg { flex: 0 0 11px; }
.vo-compose-note--pop { margin: 0 12px 4px; }

/* ── Activity bell (every page) ─────────────────────────────────────────── */
.vo-bell { position: relative; display: inline-flex; }
.vo-bell__btn {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--vo-line); border-radius: 9px; background: var(--vo-panel); color: var(--vo-ink); cursor: pointer;
}
.vo-bell__btn:hover { background: var(--vo-hover); }
.vo-bell__btn:focus-visible { outline: 2px solid var(--vo-focus); outline-offset: 2px; }
.vo-bell__btn .vo-glyph { width: 17px; height: 17px; }
.vo-bell__badge {
  position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--vo-danger, #ef4444); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--vo-panel);
}
.vo-bell__scrim { position: fixed; inset: 0; z-index: 1190; }
.vo-bell__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200; width: 380px; max-height: min(560px, calc(100vh - 90px));
  display: flex; flex-direction: column; background: var(--vo-panel); color: var(--vo-ink);
  border: 1px solid var(--vo-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22); overflow: hidden;
}
.vo-bell__panel:focus { outline: none; }
.vo-bell__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 8px 16px; }
.vo-bell__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.vo-bell__tools { display: flex; gap: 2px; }
.vo-bell__tool {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--vo-muted); cursor: pointer; text-decoration: none;
}
.vo-bell__tool:hover, .vo-bell__tool.active { background: var(--vo-hover); color: var(--vo-ink); }
.vo-bell__tool:disabled { opacity: 0.4; cursor: default; background: transparent; }
.vo-bell__pause {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 12px 8px; padding: 8px 10px;
  border: 1px solid var(--vo-line); border-radius: 10px; background: var(--vo-bg); font-size: 12.5px;
}
.vo-bell__pause span { width: 100%; color: var(--vo-muted); }
.vo-bell__pause button, .vo-bell__paused button {
  border: 1px solid var(--vo-line); border-radius: 999px; padding: 3px 10px; background: var(--vo-panel);
  color: var(--vo-ink); font-size: 12px; cursor: pointer;
}
.vo-bell__pause button:hover, .vo-bell__paused button:hover { border-color: var(--vo-accent); color: var(--vo-accent); }
.vo-bell__paused {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 7px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--vo-warn) 14%, transparent); font-size: 12.5px;
}
.vo-bell__paused span { flex: 1; }
/* On a narrow phone the filter row scrolls sideways instead of wrapping. */
.vo-bell__filters {
  display: flex; flex-shrink: 0; align-self: flex-start; max-width: calc(100% - 24px); margin: 0 12px 6px;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.vo-bell__filters::-webkit-scrollbar { display: none; }
.vo-bell__filters button { flex-shrink: 0; white-space: nowrap; padding: 0 0.6rem; }
.vo-bell__list { flex: 1; overflow-y: auto; padding: 2px 6px 6px; }
/* Read rows are plain; unread rows get an accent tint, an accent edge, a bold title and a dot.
   Hover only on real pointers, so a tapped row on a phone does not stay grey. */
.vo-bell__item {
  position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: start; gap: 10px; width: 100%;
  margin: 0 0 2px; padding: 9px 8px 9px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit;
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vo-bell__item:focus { outline: none; }
.vo-bell__item:focus-visible { outline: 2px solid var(--vo-focus); outline-offset: -2px; }
.vo-bell__item.unread { background: color-mix(in srgb, var(--vo-accent) 10%, transparent); }
.vo-bell__item.unread::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--vo-link, var(--vo-accent));
}
@media (hover: hover) {
  .vo-bell__item:hover { background: color-mix(in srgb, var(--vo-ink) 5%, transparent); }
  .vo-bell__item.unread:hover { background: color-mix(in srgb, var(--vo-accent) 15%, transparent); }
}
.vo-bell__item:active { background: color-mix(in srgb, var(--vo-ink) 8%, transparent); }
.vo-bell__item.unread:active { background: color-mix(in srgb, var(--vo-accent) 18%, transparent); }
.vo-bell__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.vo-bell__icon--accent { background: color-mix(in srgb, var(--vo-accent) 15%, transparent); color: var(--vo-accent); }
.vo-bell__icon--warm { background: color-mix(in srgb, var(--vo-warn) 16%, transparent); color: var(--vo-warn); }
.vo-bell__icon--warn { background: color-mix(in srgb, var(--vo-danger) 13%, transparent); color: var(--vo-danger); }
.vo-bell__icon--good { background: color-mix(in srgb, var(--vo-ok) 15%, transparent); color: var(--vo-ok); }
.vo-bell__icon--muted { background: var(--vo-hover); color: var(--vo-muted); }
.vo-bell__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vo-bell__text strong { font-size: 13px; font-weight: 400; line-height: 1.35; color: color-mix(in srgb, var(--vo-ink) 82%, var(--vo-muted)); }
.vo-bell__item.unread .vo-bell__text strong { font-weight: 650; color: var(--vo-ink); }
.vo-bell__detail {
  font-size: 12.5px; color: var(--vo-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vo-bell__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; }
.vo-bell__meta time { font-size: 11.5px; color: var(--vo-muted); white-space: nowrap; }
.vo-bell__item.unread .vo-bell__meta time { color: var(--vo-link, var(--vo-accent)); font-weight: 600; }
.vo-bell__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--vo-link, var(--vo-accent)); }
.vo-bell__empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 24px; margin: 0;
  color: var(--vo-muted); text-align: center; font-size: 12.5px;
}
.vo-bell__empty .vo-glyph { width: 26px; height: 26px; opacity: 0.6; }
.vo-bell__empty strong { color: var(--vo-ink); font-size: 14px; }
.vo-bell__foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px 10px; border-top: 1px solid var(--vo-line); font-size: 12.5px; }
.vo-bell__foot a { color: var(--vo-link); text-decoration: none; }
.vo-bell__foot a:hover { text-decoration: underline; }
/* In the office bar the bell matches the other bar buttons. */
.vo-office-bar .vo-bell__btn { height: 32px; width: 32px; }

@media (max-width: 760px) {
  .vo-bell__panel {
    position: fixed; top: 56px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 140px);
  }
}

/* ── Notification settings (Account page) ───────────────────────────────── */
.vo-notify-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 12px 0; }
.vo-notify-toggle {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--vo-line);
  border-radius: 10px; background: var(--vo-panel); cursor: pointer;
}
.vo-notify-toggle:hover { border-color: color-mix(in srgb, var(--vo-accent) 45%, var(--vo-line)); }
.vo-notify-toggle input { flex: 0 0 16px; margin: 3px 0 0; accent-color: var(--vo-accent); width: 16px; height: 16px; }
.vo-notify-toggle span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.vo-notify-toggle small { color: var(--vo-muted); font-size: 12px; }
.vo-settings-sub { font-size: 0.95rem; margin: 18px 0 4px; scroll-margin-top: 16px; }
/* Settings: a home list of categories (Android-style) and one page per category. */
.vo-settings { max-width: 760px; }
.vo-settings-search { position: relative; display: flex; align-items: center; margin: 4px 0 16px; }
.vo-settings-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--vo-muted); pointer-events: none; }
.vo-settings-search input { width: 100%; box-sizing: border-box; padding: 12px 40px 12px 42px; border-radius: 999px; border: 1px solid var(--vo-line); background: var(--vo-input); color: var(--vo-ink); font: inherit; font-size: 15px; }
.vo-settings-search input:focus { outline: 2px solid var(--vo-accent); outline-offset: 1px; }
.vo-settings-search input::-webkit-search-cancel-button { display: none; }
.vo-settings-search-clear { position: absolute; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--vo-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.vo-settings-search-clear:hover { background: var(--vo-bg-elev); }
.vo-settings-list { list-style: none; margin: 0 0 16px; padding: 4px 0; border-radius: 16px; background: var(--vo-panel); border: 1px solid var(--vo-line); }
.vo-settings-list li + li { border-top: 1px solid var(--vo-line); }
.vo-settings-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--vo-ink); text-decoration: none; min-height: 48px; }
.vo-settings-row:hover { background: var(--vo-bg-elev); text-decoration: none; }
button.vo-settings-row { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.vo-settings-signout .vo-settings-row strong { color: var(--vo-danger, #d92d20); }
.vo-settings-row:hover * { text-decoration: none; }
.vo-settings-row:focus-visible { outline: 2px solid var(--vo-accent); outline-offset: -2px; }
.vo-settings-ico { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-settings-ico svg { width: 20px; height: 20px; }
.vo-settings-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vo-settings-text strong { font-weight: 600; font-size: 15px; }
.vo-settings-text small { color: var(--vo-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-settings-chev { color: var(--vo-muted); font-size: 22px; line-height: 1; }
.vo-settings-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
.vo-settings-head h1 { margin: 0; }
.vo-settings-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 4px 8px 4px 2px; border-radius: 8px; color: var(--vo-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.vo-settings-back svg { width: 18px; height: 18px; }
.vo-settings-back:hover { background: var(--vo-bg-elev); }
[data-settings-page][data-settings-view="section"] .vo-account-card:only-of-type > h2:first-child { display: none; }
.vo-settings #email { scroll-margin-top: 16px; }
.vo-settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.vo-settings-actions .vo-account-sub { margin: 0; }
[data-email-frequency] { scroll-margin-top: 16px; }
@media (max-width: 520px) {
  .vo-settings-actions .vo-btn { width: 100%; }
}
.vo-notify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.vo-notify-state { font-size: 12.5px; color: var(--vo-muted); }
.vo-notify-state.ok { color: var(--vo-ok); }
.vo-notify-state.bad { color: var(--vo-danger); }

/* Settings > Permissions (phone app): one row per permission, state or action on the right. */
.vo-perm-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--vo-line); border-radius: 12px; overflow: hidden; }
.vo-perm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; }
.vo-perm-row + .vo-perm-row { border-top: 1px solid var(--vo-line); }
.vo-perm-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.vo-perm-text small { color: var(--vo-muted); font-size: 12.5px; line-height: 1.35; }
.vo-perm-row .vo-btn { flex: 0 0 auto; white-space: nowrap; }
.vo-perm-state { flex: 0 0 auto; font-size: 13px; color: var(--vo-muted); white-space: nowrap; }
.vo-perm-state.ok { color: var(--vo-ok); font-weight: 600; }

/* DM person actions (wave, knock, invite, guest badge) live in the conversation header,
   grouped and set apart from the conversation tools by a thin divider. */
.vo-ain-person-actions {
  display: inline-flex; align-items: center; gap: 2px;
  padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--vo-line);
}
@media (max-width: 760px) {
  .vo-ain-head .vo-ain-quick { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
  .vo-ain-person-actions .vo-ain-iconbtn { width: 30px; height: 30px; }
}
.vo-ain-head .vo-ain-person-actions .vo-ain-iconbtn { border-color: transparent; background: transparent; border-radius: 9px; }
.vo-ain-head .vo-ain-person-actions .vo-ain-iconbtn:hover { background: var(--vo-hover); }

/* Phones: chat gets the whole screen. A call keeps running while you chat; its window
   and buttons step aside (no overlap) and the Office tab shows a green dot to go back. */
@media (max-width: 760px) {
  body:has(.vo-shell.m-chat) .vo-call-overlay { display: none; }
  .vo-shell .vo-pop,
  .vo-shell .vo-pop[data-anchored] { z-index: 30; }
  .vo-mobile-nav__live {
    position: absolute; top: 7px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 2px var(--vo-bg-elev);
  }
}

/* Phones: the bottom dock only held desktop shortcuts (hidden there), so drop it. */
@media (max-width: 760px) {
  .vo-shell .vo-dock { display: none; }
}

/* ---------- Incoming knock / meeting call card ---------- */
.vo-toast.vo-ring {
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  animation: vo-ring-in 200ms ease;
}
@keyframes vo-ring-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.vo-ring__top { display: flex; align-items: center; gap: 12px; }
.vo-ring__avatar {
  position: relative; flex: 0 0 auto; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--vo-accent-soft); color: var(--vo-accent); font-weight: 700; font-size: 16px;
}
.vo-ring__avatar .vo-glyph { width: 22px; height: 22px; }
.vo-ring:not(.vo-ring--out) .vo-ring__avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--vo-accent); opacity: 0;
  animation: vo-ring-pulse 1.6s ease-out infinite;
}
@keyframes vo-ring-pulse {
  0% { opacity: 0.7; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.25); }
}
.vo-ring__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vo-ring__who strong { font-size: 16px; color: var(--vo-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-ring__who > span:last-child { color: var(--vo-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.vo-ring__kicker {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vo-accent);
}
.vo-ring__kicker .vo-glyph { width: 12px; height: 12px; }
.vo-ring__time {
  flex: 0 0 auto; align-self: flex-start; padding: 2px 8px; border-radius: 999px;
  background: var(--vo-bg-elev, rgba(0,0,0,.05)); color: var(--vo-muted); font-size: 12px; font-variant-numeric: tabular-nums;
}
.vo-toast .vo-ring__note { margin: 10px 0 0; font-size: 13px; }
.vo-ring__bar { height: 3px; margin: 12px 0 10px; border-radius: 3px; background: var(--vo-line); overflow: hidden; }
.vo-ring__bar > span { display: block; height: 100%; background: var(--vo-accent); transition: width 0.5s linear; }
.vo-ring--out .vo-ring__bar { margin-bottom: 0; }
.vo-ring__link {
  border: 0; background: none; padding: 0; margin: 0 0 10px; cursor: pointer;
  color: var(--vo-link, var(--vo-accent)); font: inherit; font-size: 13px;
}
.vo-ring__input { width: 100%; margin: 0 0 10px; }
.vo-ring__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vo-ring__actions > :only-child { grid-column: 1 / -1; }
.vo-ring__btn {
  min-height: 42px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px;
}
.vo-ring__btn.accept { background: #16a34a; color: #fff; }
.vo-ring__btn.accept:hover { background: #15803d; }
.vo-ring__btn.decline { background: transparent; color: var(--vo-ink); border-color: var(--vo-line); }
.vo-ring__btn.decline:hover { background: var(--vo-bg-elev, rgba(0,0,0,.05)); }

/* Phones: the stack sits at the bottom, above the tab bar, full width. */
@media (max-width: 760px) {
  .vo-toast-stack {
    top: auto; left: 8px; right: 8px; width: auto;
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .vo-ring__btn { min-height: 48px; font-size: 15px; }
}

/* "Tap to turn on sound" (phones block call audio until a tap). */
.vo-sound-unlock {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 70;
  padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #16a34a; color: #fff; font: 600 14px/1.2 system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* "Reconnecting to the call…" while a call gets its connection back. */
.vo-call-reconnecting {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 71;
  padding: 9px 16px; border-radius: 999px; pointer-events: none;
  background: #b45309; color: #fff; font: 600 14px/1.2 system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

/* ---------- Office chat popup: bubbles, grouped messages, photos ---------- */
.vo-pop .vo-pop-log { gap: 2px; padding: 12px 14px; }
.vo-pop .vo-avatar { position: relative; }
.vo-pop .vo-pop-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.vo-pop .vo-pop-day .vo-pop-today {
  position: static; margin: 0; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--vo-line); background: var(--vo-bg-elev); color: var(--vo-muted);
  font-size: 11px; font-weight: 600;
}
.vo-pop .vo-pop-msg {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px; align-items: end; margin-top: 8px;
}
.vo-pop .vo-pop-msg.grouped { margin-top: 0; }
.vo-pop .vo-pop-msg > .vo-avatar { width: 28px; height: 28px; font-size: 10px; align-self: start; }
.vo-pop .vo-pop-msg.grouped > .vo-avatar { visibility: hidden; height: 0; }
.vo-pop .vo-pop-msg.grouped .vo-pop-meta { display: none; }
.vo-pop .vo-pop-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.vo-pop .vo-pop-meta { margin: 0 0 3px 2px; gap: 6px; }
.vo-pop .vo-pop-meta strong { font-size: 12px; font-weight: 700; }
.vo-pop .vo-pop-meta > span:last-child { font-size: 11px; }
.vo-pop .vo-pop-text {
  max-width: 100%; padding: 7px 11px; border-radius: 4px 14px 14px 14px;
  background: var(--vo-bg-elev, #f1f5f9); color: var(--vo-ink);
  font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
}
.vo-pop .vo-pop-msg.grouped .vo-pop-text { border-radius: 14px; }
/* Your own messages: right side, accent bubble, no photo. */
.vo-pop .vo-pop-msg.mine { grid-template-columns: minmax(0, 1fr); }
.vo-pop .vo-pop-msg.mine > .vo-avatar { display: none; }
.vo-pop .vo-pop-msg.mine .vo-pop-body { align-items: flex-end; }
.vo-pop .vo-pop-msg.mine .vo-pop-meta strong { display: none; }
.vo-pop .vo-pop-msg.mine .vo-pop-text {
  background: var(--vo-accent); color: #fff; border-radius: 14px 4px 14px 14px;
}
.vo-pop .vo-pop-msg.mine.grouped .vo-pop-text { border-radius: 14px; }
.vo-pop .vo-pop-msg .vo-msg-more { top: 2px; }
.vo-pop .vo-pop-msg.mine .vo-msg-more { right: auto; left: 0; }
/* Popup message menu. The ⋮ only appeared on .vo-msg:hover, and popup rows are .vo-pop-msg,
   so it stayed invisible. The menu also opened on hover with a 4px gap below the ⋮, so moving
   the mouse to an option closed it. Now: ⋮ shows on hover (or keyboard focus), the menu opens on click
   and stays open until a click elsewhere, and it opens upward near the bottom (fitMenu). */
.vo-shell .vo-pop-msg:hover .vo-msg-kebab,
.vo-shell .vo-pop-msg .vo-msg-kebab:focus-visible { opacity: 1; }
.vo-pop .vo-msg-more:not(.open):hover .vo-msg-menu { display: none; }
.vo-pop .vo-pop-msg.mine .vo-msg-menu { right: auto; left: 0; }
/* fitMenu places the open menu (fixed, next to the ⋮). The ⋮ gets its own strip beside the
   bubble so it no longer sits on top of the message text. */
.vo-pop .vo-msg-more .vo-msg-menu { z-index: 70; }
.vo-pop .vo-pop-msg.theirs .vo-pop-body { padding-right: 30px; }
.vo-pop .vo-pop-msg.mine .vo-pop-body { padding-left: 30px; }
.vo-pop .vo-msg-kebab { width: 26px; height: 26px; }
.vo-pop .vo-pop-react { margin-top: 3px; }
.vo-pop .vo-empty { margin: auto; text-align: center; color: var(--vo-muted); font-size: 13px; }
.vo-pop-skel { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: auto 0; }
.vo-pop-skel span {
  display: block; height: 36px; border-radius: 14px;
  background: linear-gradient(100deg, var(--vo-panel) 30%, color-mix(in srgb, var(--vo-panel) 70%, var(--vo-line)) 50%, var(--vo-panel) 70%);
  background-size: 300% 100%; animation: vo-skeleton 1.4s ease-in-out infinite;
}
.vo-pop-skel span:nth-child(1) { width: 72%; }
.vo-pop-skel span:nth-child(2) { width: 46%; margin-left: auto; }
.vo-pop-skel span:nth-child(3) { width: 64%; }
@media (prefers-reduced-motion: reduce) { .vo-pop-skel span { animation: none; } }
/* A small popup doesn't need the formatting toolbar; Enter sends, Shift+Enter adds a line. */
.vo-pop .vo-pop-fmt { display: none; }
.vo-pop .vo-pop-compose { padding-top: 8px; }
.vo-pop .vo-pop-who .vo-avatar { width: 36px; height: 36px; }
.vo-pop .vo-pop-who__text span { font-size: 12px; }
/* Status dot only on the person in the header; message photos stay clean. */
.vo-shell .vo-pop .vo-pop-msg .vo-avatar::after { display: none; }
.vo-shell .vo-pop .vo-avatar--offline::after { background: #94a3b8; }
.vo-shell .vo-pop .vo-pop-who .vo-avatar--away { filter: none; opacity: 1; }
.vo-pop .vo-pop-chip[data-chat] { display: none; }
/* Their messages get a visible bubble (bg-elev matched the panel, so text floated loose). */
.vo-pop .vo-pop-msg.theirs .vo-pop-text { background: color-mix(in srgb, var(--vo-ink) 7%, var(--vo-panel)); }
/* Action chips and composer: one even rhythm, no resize grip in the message box. */
.vo-pop .vo-pop-quick { padding: 8px 12px; gap: 6px; scrollbar-width: none; }
/* The quick row scrolls sideways, so as a flex item its minimum height is 0. With a long
   conversation the popup hit its max-height and squeezed this row, cutting off the tops of
   Wave / Knock / Invite. The header, chips and composer keep their height; only the log shrinks. */
.vo-pop > .vo-pop-head,
.vo-pop > .vo-pop-quick,
.vo-pop > .vo-pop-compose { flex-shrink: 0; }
.vo-pop .vo-pop-quick::-webkit-scrollbar { display: none; }
.vo-pop .vo-pop-chip { height: 30px; line-height: 1; }
.vo-pop .vo-pop-compose { padding: 0 12px 12px; border-top: 0; }
.vo-pop .vo-compose-row { align-items: center; padding: 4px 4px 4px 10px; }
.vo-pop .vo-compose-row textarea {
  flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 7px 0; resize: none;
  font-size: 14px; line-height: 20px; box-shadow: none;
}
.vo-pop .vo-compose-row .vo-icon-btn.primary { flex: 0 0 auto; width: 34px; height: 34px; }

/* ---------- Call as a compact box at the bottom right ---------- */
.vo-call-meta { color: var(--vo-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vo-call-size {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--vo-line); border-radius: 9px; background: transparent; color: var(--vo-ink); cursor: pointer;
}
.vo-call-size:hover { background: var(--vo-bg-elev); }
.vo-call-size svg { width: 16px; height: 16px; }

.vo-call-overlay[data-compact="true"] {
  top: auto; left: auto; right: 16px; bottom: 16px;
  width: 380px; max-width: calc(100vw - 32px); height: auto; min-height: 0;
  padding: 12px; gap: 10px; border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}
.vo-call-overlay[data-compact="true"] .vo-call-head { flex-wrap: nowrap; gap: 8px; }
.vo-call-overlay[data-compact="true"] .vo-call-title { flex: 1; min-width: 0; flex-wrap: wrap; row-gap: 0; }
.vo-call-overlay[data-compact="true"] .vo-call-title strong { display: none; }
.vo-call-overlay[data-compact="true"] .vo-call-room {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; color: var(--vo-ink); font-size: 14px;
}
.vo-call-overlay[data-compact="true"] .vo-call-meta { flex-basis: 100%; padding-left: 16px; }
.vo-call-overlay[data-compact="true"] .vo-call-views,
.vo-call-overlay[data-compact="true"] .vo-call-side,
.vo-call-overlay[data-compact="true"] .vo-call-optional { display: none; }
/* Audio: no stage at all. Video: a small preview strip. */
.vo-call-overlay[data-compact="true"] .vo-call-body { display: block; min-height: 0; flex: 0 0 auto; }
/* The stage is a flex item with a zero basis, so a height alone collapsed it to a line and
   the box showed no video. A fixed basis keeps the preview; audio calls get a short row of
   name tiles so you can see who is in the call and who is talking. */
.vo-call-overlay[data-compact="true"][data-call="video"] .vo-call-stage { flex: 0 0 170px; height: 170px; min-height: 0; }
.vo-call-overlay[data-compact="true"][data-call="audio"] .vo-call-stage { flex: 0 0 72px; height: 72px; min-height: 0; }
.vo-call-overlay[data-compact="true"][data-call="audio"] .vo-participant-tiles { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.vo-call-overlay[data-compact="true"][data-call="audio"] .vo-tile-fallback { font-size: 1rem; align-content: start; padding-top: 12px; }
.vo-call-overlay[data-compact="true"][data-call="audio"] .vo-tile-name { padding: 0.9rem 0.45rem 0.3rem; font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-call-overlay[data-compact="true"] .vo-call-actions { padding: 0; justify-content: space-between; gap: 8px; }
.vo-call-overlay[data-compact="true"] .vo-call-menu { bottom: calc(100% + 6px); top: auto; }

/* With the chat column open, the box sat on top of the message box, so you could not type
   in the room chat during a call. It now floats over the floor, just left of the chat. */
@media (min-width: 961px) {
  .vo-shell:not(.chat-closed) ~ .vo-call-overlay[data-compact="true"] { right: calc(360px + 16px); }
}

@media (max-width: 760px) {
  .vo-call-overlay[data-compact="true"] {
    right: 8px; left: 8px; width: auto; max-width: none;
    bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* ---------- Phones: feel instant ---------- */
/* No 300ms double-tap-zoom wait before a tap counts, and no grey tap flash. */
html, body, button, a, [role="button"], .vo-room, .vo-chat-item { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) and (pointer: coarse) {
  /* Immediate press feedback, so a tap visibly lands even while data is loading. */
  button:active, a:active, .vo-room:active, .vo-chat-item:active, .vo-mobile-nav > *:active {
    transform: scale(0.97); filter: brightness(0.94); transition: transform 60ms ease, filter 60ms ease;
  }
  /* Blur effects and entrance animations are slow to draw on phones. */
  .vo-shell .vo-dock, .vo-shell [class*="glass"] { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .vo-pop, .vo-toast.vo-ring { animation-duration: 120ms; }
  /* Comfortable tap targets. */
  .vo-dm-tool, .vo-chat-tabs button { min-height: 40px; }
  .vo-chat-item { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 760px) {
  /* Chat screen: list takes less room, conversation gets more; smooth momentum scrolling. */
  .vo-shell .vo-chat-list { max-height: 34%; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .vo-shell .vo-chat-log, .vo-shell .vo-chat-messages { overscroll-behavior: contain; }
  .vo-shell .vo-dm-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 6px 8px; }
  .vo-shell .vo-dm-tools::-webkit-scrollbar { display: none; }
  .vo-shell .vo-dm-tool { flex: 0 0 auto; white-space: nowrap; }
  .vo-dm-bar { padding: 8px 12px; border-bottom: 1px solid var(--vo-line); font-size: 15px; }
  .vo-ring__close {
    flex: 0 0 auto; align-self: flex-start; width: 28px; height: 28px; border: 0; border-radius: 8px;
    background: transparent; color: var(--vo-muted); cursor: pointer;
  }
}
.vo-ring__close {
  flex: 0 0 auto; align-self: flex-start; width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: var(--vo-muted); cursor: pointer; font-size: 13px;
}
.vo-ring__close:hover { background: var(--vo-bg-elev); color: var(--vo-ink); }
@media (max-width: 760px) {
  /* Header: theme, lobby and exit live in the More menu on phones; the status picker
     takes the room so the row no longer runs off the edge. */
  .vo-shell .vo-office-bar__right > [title="Dark mode"],
  .vo-shell .vo-office-bar__right > [title="Lobby"],
  .vo-shell .vo-office-bar__right > [title="Exit"] { display: none !important; }
  .vo-shell .vo-office-bar__right { overflow: visible; }
  .vo-shell .vo-reception { flex: 1 1 auto; min-width: 0; }
  .vo-shell .vo-reception select { min-width: 0; width: 100%; text-overflow: ellipsis; }
  /* Room names: two lines instead of "DemoTwo's Offi…". */
  .vo-shell .vo-room__label { padding-right: 1.6rem; }
  .vo-shell .vo-room__name {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.25; font-size: 0.86rem;
  }
}

/* ---------- Account vs Settings pages ---------- */
.vo-account-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vo-account-switch { color: var(--vo-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.vo-account-switch:hover { text-decoration: underline; }
.vo-account-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.vo-account-tabs a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--vo-line);
  color: var(--vo-ink); font-size: 13px; font-weight: 600; text-decoration: none;
}
.vo-account-tabs a:hover { background: var(--vo-bg-elev); }
.vo-account-card[id] { scroll-margin-top: 16px; }
.vo-account-form { display: grid; gap: 12px; max-width: 420px; margin: 8px 0 14px; }
.vo-account-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--vo-muted); }
.vo-account-form .vo-input { width: 100%; }
.vo-account-card h2 + .vo-account-form { margin-top: 4px; }
.vo-theme-choice { display: inline-flex; margin-top: 4px; }
.vo-theme-choice button { min-width: 88px; }
@media (max-width: 760px) {
  .vo-shell .vo-office-bar__right > [title="Settings"] { display: none !important; }
  .vo-account-form { max-width: none; }
}

/* Account & Settings scroll on their own: the app layout clips the page area (other pages
   like AInbox scroll inside themselves), which left everything below the fold unreachable.
   The scroll area is full width (scrollbar at the window edge); the cards stay 720px wide. */
.vo-page.vo-account {
  max-width: none; height: 100%; min-height: 0; box-sizing: border-box;
  overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.vo-page.vo-account > * { max-width: 720px; }

/* ---------- Settings › AI tools / MCP ---------- */
.vo-mcp h3 { margin: 0; font-size: 15px; }
.vo-mcp-url {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; padding: 10px 12px;
  border: 1px solid var(--vo-line); border-radius: 12px; background: var(--vo-bg);
}
.vo-mcp-label { color: var(--vo-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.vo-mcp-url code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.vo-mcp-copy { flex: 0 0 auto; height: 32px; padding: 0 12px; font-size: 13px; }
.vo-mcp-box { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--vo-line); border-radius: 14px; }
.vo-mcp-box-head p { margin: 2px 0 10px; }
.vo-mcp-form { display: grid; gap: 10px; }
.vo-mcp-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--vo-muted); }
.vo-mcp-form label small { font-weight: 400; }
.vo-mcp-form .vo-input { width: 100%; }
.vo-mcp-form--inline { grid-template-columns: minmax(0, 1fr) 150px auto; align-items: end; }
.vo-mcp-form .vo-btn { height: 38px; white-space: nowrap; }
.vo-mcp-secret {
  display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.10); border: 1px solid rgba(245, 158, 11, 0.35); font-size: 13px;
}
.vo-mcp-secret-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vo-mcp-secret-row > span { min-width: 64px; color: var(--vo-muted); font-weight: 600; }
.vo-mcp-secret-row code {
  flex: 1 1 240px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--vo-panel);
  border: 1px solid var(--vo-line); overflow-wrap: anywhere; font-size: 12.5px;
}
.vo-mcp details summary { cursor: pointer; color: var(--vo-accent); font-size: 13px; font-weight: 600; }
.vo-mcp details pre {
  margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--vo-bg); border: 1px solid var(--vo-line);
  font-size: 12px; overflow-x: auto; white-space: pre;
}
.vo-mcp-list-title { margin: 18px 0 6px !important; }
.vo-mcp-list { border: 1px solid var(--vo-line); border-radius: 12px; overflow: hidden; }
.vo-mcp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.vo-mcp-row + .vo-mcp-row { border-top: 1px solid var(--vo-line); }
.vo-mcp-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vo-mcp-row-main strong { font-size: 14px; }
.vo-mcp-row-main .vo-account-sub { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.vo-mcp-row .vo-btn { flex: 0 0 auto; height: 32px; padding: 0 12px; font-size: 13px; }
.vo-mcp-pill {
  flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; background: var(--vo-bg-elev, rgba(0,0,0,.06));
  color: var(--vo-muted); font-size: 12px; font-weight: 700;
}
.vo-mcp-pill.ok { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.vo-mcp-empty { margin: 0; padding: 12px 14px; color: var(--vo-muted); font-size: 13px; }
.vo-mcp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin: 12px 0 14px; }
.vo-mcp-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-width: 0; min-height: 78px; padding: 8px 10px;
  border: 1px solid var(--vo-line); border-radius: 12px; background: var(--vo-panel);
  color: inherit; text-align: left; cursor: pointer;
}
.vo-mcp-tile.open { border-color: var(--vo-accent); box-shadow: inset 0 0 0 1px var(--vo-accent); }
.vo-mcp-mark {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--vo-bg); border: 1px solid var(--vo-line);
  font-size: 10px; font-weight: 700; letter-spacing: -0.02em;
}
.vo-mcp-tile-name { font-size: 12px; font-weight: 650; line-height: 1.25; }
.vo-mcp-tile-hint { font-size: 11px; color: var(--vo-muted); font-weight: 600; }
.vo-mcp-tile-state { font-size: 11px; font-weight: 700; color: #16a34a; }
.vo-mcp-steps { margin: 0 0 12px; padding-left: 1.2rem; font-size: 13.5px; }
.vo-mcp-steps li { margin: 4px 0; }
.vo-mcp-box details { margin: 0 0 12px; }
.vo-mcp-box .vo-mcp-form + .vo-mcp-form { margin-top: 12px; }
@media (max-width: 760px) {
  .vo-mcp-form--inline { grid-template-columns: minmax(0, 1fr); }
  .vo-mcp-row { flex-wrap: wrap; }
}

/* ---------- Bell panel on pages with the sidebar ----------
   The page area clips anything outside it, so a panel opening leftwards from the top-bar bell
   was cut off behind the sidebar. Pin it to the window's top-right corner instead. */
@media (min-width: 761px) {
  .vo-topbar .vo-bell__panel { position: fixed; top: 58px; right: 16px; z-index: 1200; }
}

.vo-account .vo-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ---------- AInbox › Activity ---------- */
.vo-act-filters { display: flex; gap: 6px; padding: 4px 20px 10px; flex-wrap: wrap; }
.vo-act-filters button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid var(--vo-line); border-radius: 999px; background: transparent;
  color: var(--vo-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vo-act-filters button:hover { background: var(--vo-bg-elev); color: var(--vo-ink); }
.vo-act-filters button.active { background: var(--vo-accent-soft); border-color: transparent; color: var(--vo-accent); }
.vo-act-filter-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--vo-accent);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.vo-act-list { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 16px; }
.vo-act-day {
  position: sticky; top: 0; z-index: 1; padding: 12px 8px 6px; background: var(--vo-bg);
  color: var(--vo-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.vo-act-row { position: relative; display: flex; align-items: center; gap: 8px; border-radius: 12px; }
.vo-act-row:hover { background: var(--vo-panel); box-shadow: 0 1px 0 var(--vo-line); }
.vo-act-main {
  flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding: 10px 8px;
  border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vo-act-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--vo-accent-soft); color: var(--vo-accent);
}
.vo-act-ico .vo-glyph, .vo-act-ico svg { width: 17px; height: 17px; }
.vo-act-row[data-kind="mention"] .vo-act-ico { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.vo-act-row[data-kind="reaction"] .vo-act-ico { background: rgba(234, 179, 8, 0.15); color: #ca8a04; }
.vo-act-row[data-kind="huddle"] .vo-act-ico,
.vo-act-row[data-kind^="cal-"] .vo-act-ico { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.vo-act-row[data-kind="knock"] .vo-act-ico { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.vo-act-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vo-act-head { color: var(--vo-muted); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.vo-act-row.unread .vo-act-head { color: var(--vo-ink); font-weight: 600; }
.vo-act-detail {
  color: var(--vo-muted); font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-left: 8px; border-left: 2px solid var(--vo-line);
}
.vo-act-time { flex: 0 0 auto; padding-top: 2px; color: var(--vo-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vo-act-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--vo-accent); }
.vo-act-join {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 0; border-radius: 9px; background: #16a34a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.vo-act-join .vo-glyph, .vo-act-join svg { width: 15px; height: 15px; }
.vo-act-empty {
  margin: 48px auto; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--vo-muted); text-align: center; font-size: 13px;
}
.vo-act-empty .vo-glyph, .vo-act-empty svg { width: 28px; height: 28px; color: var(--vo-accent); }
.vo-act-empty strong { color: var(--vo-ink); font-size: 15px; }
@media (max-width: 860px) {
  .vo-act-filters { padding: 4px 10px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .vo-act-list { padding: 0 4px 12px; }
}

/* The reason a call menu has no devices to list (blocked, none found, in use). */
.vo-call-menu p { margin: 0; padding: 0.4rem 0.5rem; color: var(--vo-muted); font-size: 0.82rem; line-height: 1.35; }

/* ── Room padlock (owners and admins) ─────────────────────────────────────
   Sits in the top-right corner beside the room menu. Locked rooms always show it;
   an unlocked padlock shows on your own office and on hover elsewhere. */
.vo-shell .vo-room__lock--btn { cursor: pointer; transition: opacity 0.12s, background 0.12s, color 0.12s; }
.vo-shell .vo-room__lock--btn.is-open { color: var(--vo-muted); background: transparent; opacity: 0; }
.vo-shell .vo-room--own .vo-room__lock--btn.is-open,
.vo-shell .vo-room:hover .vo-room__lock--btn.is-open,
.vo-shell .vo-room:focus-visible .vo-room__lock--btn.is-open,
.vo-shell .vo-room__lock--btn:focus-visible { opacity: 1; }
.vo-shell .vo-room__lock--btn:hover { background: var(--vo-hover); color: var(--vo-ink); }
.vo-shell .vo-room:has(.vo-room__lock) .vo-room__icon { right: 3.6rem; }
@media (hover: none) {
  .vo-shell .vo-room__lock--btn.is-open { opacity: 1; }
}

/* ---------- Notifications page (/notifications) ---------- */
.vo-notif { max-width: 820px; margin: 0 auto; padding: 24px 24px 40px; }
.vo-notif__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 8px 12px; flex-wrap: wrap; }
.vo-notif__head h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--vo-ink); }
.vo-notif__sub { margin: 4px 0 0; color: var(--vo-muted); font-size: 13.5px; }
.vo-notif__tools { display: flex; align-items: center; gap: 6px; }
.vo-notif__tool {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid var(--vo-line); border-radius: 10px; background: var(--vo-panel);
  color: var(--vo-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.vo-notif__tool:hover:not(:disabled) { border-color: var(--vo-accent); color: var(--vo-accent); }
.vo-notif__tool.active { background: var(--vo-accent-soft); border-color: transparent; color: var(--vo-accent); }
.vo-notif__tool:disabled { opacity: 0.5; cursor: default; }
.vo-notif__tool--icon { width: 34px; padding: 0; justify-content: center; }
.vo-notif__tool .vo-glyph, .vo-notif__tool svg { width: 16px; height: 16px; }
.vo-notif__banner { margin: 0 8px 10px; }
.vo-notif__filters { padding: 4px 8px 10px; }
.vo-notif__list { padding: 0 0 16px; }
.vo-notif__loading { padding: 24px 8px; color: var(--vo-muted); }
.vo-notif__count { color: var(--vo-accent); font-weight: 600; }
.vo-notif__read {
  flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--vo-muted); cursor: pointer; opacity: 0; transition: opacity 0.12s;
}
.vo-act-row:hover .vo-notif__read, .vo-notif__read:focus-visible { opacity: 1; }
.vo-notif__read:hover { background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-notif__read .vo-glyph, .vo-notif__read svg { width: 15px; height: 15px; }
.vo-act-row[data-kind="reply"] .vo-act-ico { background: rgba(234, 88, 12, 0.12); color: #ea580c; }
.vo-act-row[data-kind="event"] .vo-act-ico { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.vo-act-row[data-kind^="cast-"] .vo-act-ico { background: rgba(147, 51, 234, 0.12); color: #9333ea; }
.vo-act-row[data-kind="unread"] .vo-act-ico { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
@media (max-width: 760px) {
  .vo-notif { padding: 12px 8px 24px; }
  .vo-notif__head { align-items: center; padding: 0 8px 8px; }
  .vo-notif__head h1 { font-size: 22px; }
  .vo-notif__tool span { display: none; }
  .vo-notif__tool { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .vo-notif__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 4px 8px 8px; }
  .vo-notif__filters button { flex: 0 0 auto; }
  /* Touch has no hover: keep the mark-read check visible on unread rows. */
  .vo-notif__read { opacity: 1; }
}
@media (hover: none) { .vo-notif__read { opacity: 1; } }
/* Notifications list as one card (2026-12-04): the rows sat straight on the grey page
   background with only a hover tint, which looked unfinished. The list is now a panel
   card with day sections, row dividers and a soft tint on unread rows; phones show it
   edge to edge. Scoped to .vo-notif so the Inbox Activity tab keeps its own look. */
.vo-notif .vo-notif__list {
  gap: 0; margin: 2px 8px 0; padding: 0; overflow: clip;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px -12px rgba(15, 23, 42, 0.12);
}
.vo-notif .vo-act-day {
  padding: 10px 18px 8px; background: color-mix(in srgb, var(--vo-panel) 92%, var(--vo-bg));
  border-bottom: 1px solid var(--vo-line); letter-spacing: 0.06em;
}
.vo-notif .vo-act-row + .vo-act-day { border-top: 1px solid var(--vo-line); }
.vo-notif .vo-act-row { gap: 4px; padding-right: 12px; border-radius: 0; transition: background-color 0.12s; }
.vo-notif .vo-act-row + .vo-act-row { border-top: 1px solid color-mix(in srgb, var(--vo-line) 70%, transparent); }
.vo-notif .vo-act-row:hover { box-shadow: none; background: transparent; }
.vo-notif .vo-act-row.unread { background: color-mix(in srgb, var(--vo-accent) 5%, var(--vo-panel)); }
@media (hover: hover) {
  .vo-notif .vo-act-row:hover { background: var(--vo-hover); }
  .vo-notif .vo-act-row.unread:hover { background: color-mix(in srgb, var(--vo-accent) 9%, var(--vo-panel)); }
}
.vo-notif .vo-act-main { gap: 14px; padding: 14px 8px 14px 18px; align-items: flex-start; }
.vo-notif .vo-act-main:focus-visible { outline: 2px solid var(--vo-accent); outline-offset: -2px; border-radius: 10px; }
.vo-notif .vo-act-ico { width: 38px; height: 38px; }
.vo-notif .vo-act-text { gap: 3px; padding-top: 1px; }
.vo-notif .vo-act-head { font-size: 14px; color: var(--vo-ink); font-weight: 500; overflow-wrap: break-word; }
.vo-notif .vo-act-row.unread .vo-act-head { font-weight: 650; }
.vo-notif .vo-act-detail { padding-left: 0; border-left: 0; font-size: 13px; -webkit-line-clamp: 2; }
.vo-notif .vo-act-time { padding-top: 3px; min-width: 44px; text-align: right; }
.vo-notif .vo-act-dot { width: 8px; height: 8px; margin: 0 4px 0 6px; }
.vo-notif .vo-notif__count { font-weight: 600; white-space: nowrap; }
.vo-notif .vo-act-join { margin-left: 4px; }
/* Rows without a mark-read button keep the same slot, so times and dots line up. */
.vo-notif__read-slot { flex: 0 0 30px; }
.vo-notif__dot-slot { flex: 0 0 auto; width: 8px; margin: 0 4px 0 6px; }
.vo-notif .vo-notif__list > .vo-loader, .vo-notif .vo-act-empty { margin: 40px auto; }
.vo-notif .vo-act-filters button { background: var(--vo-panel); }
.vo-notif .vo-act-filters button.active { background: var(--vo-accent); border-color: var(--vo-accent); color: #fff; }
.vo-notif .vo-act-filters button.active .vo-act-filter-count { background: #fff; color: var(--vo-accent); }
.vo-notif .vo-notif__head { align-items: center; padding-bottom: 14px; }
@media (max-width: 760px) {
  /* Phones: one plain white page (the warm grey app background made the list look boxed in). */
  .vo-notif { min-height: 100%; background: var(--vo-panel); }
  .vo-notif .vo-notif__head { flex-wrap: nowrap; align-items: flex-start; }
  .vo-notif .vo-notif__head > div:first-child { flex: 1; min-width: 0; }
  .vo-notif .vo-notif__tools { flex: 0 0 auto; gap: 4px; padding-top: 2px; }
  .vo-notif .vo-notif__tool { width: 40px; height: 40px; border-radius: 50%; }
  .vo-notif .vo-notif__list { margin: 2px -8px 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: none; }
  .vo-notif .vo-act-main { gap: 12px; padding: 13px 6px 13px 16px; }
  .vo-notif .vo-act-row { padding-right: 8px; }
  .vo-notif .vo-act-day { padding: 9px 16px 7px; }
}
/* Phone calendar: week strip on top, the selected day's events as cards below.
   Rendered only on phone-sized screens (Calendar.razor sets _phone from cal-phone.js). */
.vo-page.vo-cal-page.vo-calm-page {
  gap: 0.75rem;
  padding: 0.75rem 16px calc(1.25rem + env(safe-area-inset-bottom));
}

.vo-calm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vo-calm-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vo-calm-title h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.vo-calm-month {
  color: var(--vo-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.vo-calm-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.vo-calm-today {
  height: 40px;
  padding: 0 0.95rem;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
  background: var(--vo-panel);
  color: var(--vo-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.vo-calm-add {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
  box-shadow: var(--vo-shadow-sm);
}

.vo-calm-week {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-panel);
  touch-action: pan-y;
}

.vo-calm-nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-muted);
}

.vo-calm-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.vo-calm-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 0 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.vo-calm-dow {
  color: var(--vo-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vo-calm-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.vo-calm-dots {
  display: flex;
  gap: 3px;
  height: 5px;
}

.vo-calm-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--vo-accent);
}

.vo-calm-day.today .vo-calm-dow,
.vo-calm-day.today .vo-calm-num {
  color: var(--vo-accent);
}

.vo-calm-day.today .vo-calm-num {
  box-shadow: inset 0 0 0 2px var(--vo-accent);
}

.vo-calm-day.selected {
  background: var(--vo-accent-soft);
}

.vo-calm-day.selected .vo-calm-num {
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
  box-shadow: none;
}

.vo-calm-day.selected .vo-calm-dow {
  color: var(--vo-ink);
}

.vo-calm-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1 0 auto;
  min-height: 40vh;
  touch-action: pan-y;
}

.vo-calm-dayhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.vo-calm-dayhead h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.vo-calm-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--vo-hover, var(--vo-accent-soft));
  color: var(--vo-ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.vo-calm-badge.today {
  background: var(--vo-accent);
  color: var(--vo-accent-ink);
}

.vo-calm-count {
  margin-left: auto;
  color: var(--vo-muted);
  font-size: 0.82rem;
}

.vo-calm-loading {
  color: var(--vo-muted);
}

.vo-calm-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 1px dashed var(--vo-line);
  border-radius: 16px;
  background: var(--vo-panel);
}

.vo-calm-empty p {
  margin: 0 0 0.4rem;
  color: var(--vo-muted);
  font-size: 0.9rem;
}

.vo-calm-events {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vo-calm-event {
  overflow: hidden;
  border: 1px solid var(--vo-line);
  border-left: 4px solid var(--vo-accent);
  border-radius: 14px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow-sm);
}

.vo-calm-event.now {
  border-color: var(--vo-ok, var(--vo-accent));
  border-left-color: var(--vo-ok, var(--vo-accent));
}

.vo-calm-event.past {
  opacity: 0.62;
  border-left-color: var(--vo-line);
}

.vo-calm-event-main {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.vo-calm-event-main:active {
  background: var(--vo-hover, var(--vo-accent-soft));
}

.vo-calm-time {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.vo-calm-time strong {
  font-size: 1rem;
}

.vo-calm-time span {
  color: var(--vo-muted);
  font-size: 0.82rem;
}

.vo-calm-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.vo-calm-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vo-calm-meta {
  max-width: 100%;
  overflow: hidden;
  color: var(--vo-muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vo-calm-tag {
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--vo-accent-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.vo-calm-tag.live {
  background: color-mix(in srgb, var(--vo-ok, #16a34a) 18%, transparent);
  color: var(--vo-ok, #16a34a);
}

.vo-calm-tag.rsvp-pending {
  background: color-mix(in srgb, var(--vo-warn, #d97706) 18%, transparent);
  color: var(--vo-warn, #d97706);
}

.vo-calm-tag.rsvp-declined {
  background: color-mix(in srgb, var(--vo-danger) 14%, transparent);
  color: var(--vo-danger);
}

.vo-calm-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.9rem 0.8rem calc(0.9rem + 3.4rem + 0.75rem);
}

.vo-calm-event-actions .vo-btn {
  height: 36px;
  padding: 0 1.1rem;
  border-radius: 999px;
}

.vo-calm-rsvp {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
}

.vo-calm-rsvp button {
  height: 34px;
  padding: 0 0.8rem;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  font-size: 0.84rem;
}

.vo-calm-rsvp button + button {
  border-left: 1px solid var(--vo-line);
}

.vo-calm-rsvp button.on {
  background: var(--vo-accent-soft);
  color: var(--vo-accent);
  font-weight: 600;
}

.vo-calm-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--vo-line);
}

.vo-calm-foot .vo-cal-zone {
  flex: 1 1 auto;
}

.vo-calm-foot .vo-cal-zone .vo-input {
  max-width: none;
  width: 100%;
}

.vo-calm-page .vo-cal-drawer {
  width: 100vw;
  border-radius: 0;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

.vo-calm-page .vo-cal-drawer .vo-cal-2 {
  grid-template-columns: 1fr;
}

/* Phone calendar: week / full-month switch and the month grid. */
.vo-calm-viewbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--vo-line);
  border-radius: 50%;
  background: var(--vo-panel);
  color: var(--vo-ink);
}

.vo-calm-viewbtn svg { display: block; }

.vo-calm-viewbtn.active {
  border-color: var(--vo-accent);
  background: var(--vo-accent-soft);
  color: var(--vo-accent);
}

.vo-calm-monthwrap {
  padding: 4px 6px 8px;
  border: 1px solid var(--vo-line);
  border-radius: 16px;
  background: var(--vo-panel);
  touch-action: pan-y;
}

.vo-calm-monthnav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  text-align: center;
}

.vo-calm-monthnav .vo-calm-nav { width: 36px; height: 36px; }
.vo-calm-monthnav strong { font-size: 0.95rem; }

.vo-calm-monthgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 2px;
}

.vo-calm-mdow {
  padding: 2px 0 4px;
  color: var(--vo-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.vo-calm-mday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 42px;
  padding: 2px 0 3px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
}

.vo-calm-mday .vo-calm-num { width: 30px; height: 30px; font-size: 0.9rem; }
.vo-calm-mday.muted { color: var(--vo-muted); opacity: 0.55; }
.vo-calm-mday.today .vo-calm-num { color: var(--vo-accent); box-shadow: inset 0 0 0 2px var(--vo-accent); }
.vo-calm-mday.selected .vo-calm-num { background: var(--vo-accent); color: var(--vo-accent-ink); box-shadow: none; }

/* ---------- Chat UI review (Inbox, chat panel, popup) ---------- */

/* Line breaks typed with Shift+Enter, and "- " lists, keep their lines everywhere. */
.vo-msg-text,
.vo-pop .vo-pop-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Image previews: no button frame around the picture, zoom cursor instead. */
.vo-lightbox-open {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.vo-lightbox-open .vo-msg-preview {
  max-width: min(100%, 420px);
  object-fit: contain;
}

.vo-lightbox {
  z-index: 200;
  display: grid;
  place-items: center;
  margin: 0;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  border: 0;
  cursor: zoom-out;
}

.vo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Voice notes and files in the popup bubble column. */
.vo-pop .vo-pop-file {
  max-width: 100%;
  margin-top: 4px;
}

.vo-pop .vo-pop-file .vo-voice { width: min(260px, 100%); }
.vo-pop .vo-pop-file .vo-msg-preview { max-height: 200px; }
.vo-pop .vo-pop-msg.mine .vo-pop-file { align-self: flex-end; }

/* Phones and narrow windows: the Inbox rail is 48px wide, too narrow for labels like
   "Activity", so it shows icons (the button title names them) with their counts. */
@media (max-width: 860px) {
  .vo-ain-rail { gap: 0.3rem; padding: 0.6rem 0.25rem; }
  .vo-ain-rail .vo-ain-rail-label { display: none; }
  .vo-ain-rail button { min-height: 40px; }
  .vo-ain-rail .vo-ain-rail-foot { display: none; }
}

/* Phones: the composer keeps attach, emoji, schedule and Send in view. Formatting is still
   typed as markdown (**bold**, _italic_); the toolbar for it didn't fit and scrolled off. */
@media (max-width: 760px) {
  .vo-ain-compose { margin: 0.4rem 0.6rem 0.6rem; }
  .vo-ain-compose .vo-ain-tools [data-fmt] { display: none; }
  .vo-ain-compose .vo-ain-tools { overflow: visible; }
}

html.vo-phone .vo-ain-compose .vo-ain-tools [data-fmt] { display: none; }
html.vo-phone .vo-ain-compose .vo-ain-tools { overflow: visible; }

/* Conversation header: the huddle and "save for later" icons had the pill border of the
   older quick-action chips, unlike the icons beside them. */
.vo-ain-head .vo-ain-quick .vo-ain-iconbtn {
  border: 0;
  background: transparent;
  justify-content: center;
}

.vo-ain-head .vo-ain-quick .vo-ain-iconbtn:hover {
  background: var(--vo-hover);
  color: var(--vo-ink);
}

/* Voice notes: a fixed player width, so a bubble that sizes to its content (popup, phone
   chat) doesn't squeeze the player down to its menu button. */
.vo-voice {
  width: 260px;
  max-width: 100%;
}

.vo-pop .vo-pop-file .vo-voice { width: 240px; }

/* Your own messages sit on the accent colour: links, file names and code stay readable. */
.vo-pop .vo-pop-msg.mine .vo-pop-text :is(a, .vo-mention) {
  color: inherit;
  text-decoration: underline;
}

.vo-pop .vo-pop-msg.mine .vo-ain-sub,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine .vo-ain-sub,
html:is(.vo-phone, .vo-narrow) .vo-shell .vo-msg--mine .hint {
  color: inherit;
  opacity: 0.85;
}

/* ---------- Call: raised hands and reactions ---------- */

.vo-call-stage-wrap { position: relative; }

/* A badge with the turn number on each raised hand's video tile. CallOverlay turns it on
   per person (data-identity is the user id). */
.vo-call-stage .vo-tile::after {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbbf24;
  color: #1f1300;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  animation: vo-hand-pop 0.25s ease-out;
}

/* The small call box has no side list: a strip of raised hands over the video. */
.vo-hand-strip {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  max-width: calc(100% - 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  pointer-events: none;
}

.vo-call-overlay[data-compact="true"] .vo-hand-strip { display: flex; }

.vo-hand-strip li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: vo-hand-pop 0.25s ease-out;
}

.vo-hand-strip li.mine { background: #fbbf24; color: #1f1300; }

.vo-hand-queue { list-style: none; padding-left: 0; }
.vo-hand-queue li { padding: 2px 0; }

@keyframes vo-hand-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Raise hand is a "you're waiting" state: amber, not the blue of camera/share. */
.vo-call-overlay .vo-call-btn[data-raise-hand].is-on {
  background: #fbbf24;
  color: #1f1300;
}

/* Reactions float up from the bottom left with the sender's name. */
.vo-call-overlay .vo-react-burst {
  position: absolute;
  left: 16px;
  right: auto;
  top: auto;
  bottom: 88px;
  z-index: 30;
  display: block;
  width: 200px;
  height: 0;
  font-size: inherit;
  pointer-events: none;
}

.vo-react-float {
  position: absolute;
  bottom: 0;
  left: calc(var(--lane, 0) * 42px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  animation: vo-react-rise 3.2s ease-out forwards;
}

.vo-react-float b {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vo-react-float small {
  max-width: 110px;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes vo-react-rise {
  0% { transform: translateY(16px) scale(0.5); opacity: 0; }
  10% { transform: translateY(0) scale(1.15); opacity: 1; }
  18% { transform: translateY(-6px) scale(1); }
  75% { opacity: 1; }
  100% { transform: translateY(-200px); opacity: 0; }
}

.vo-call-overlay[data-compact="true"] .vo-react-burst { bottom: 70px; }
.vo-call-overlay[data-compact="true"] .vo-react-float b { font-size: 28px; }

@media (prefers-reduced-motion: reduce) {
  .vo-react-float { animation: vo-react-fade 3.2s linear forwards; }
  @keyframes vo-react-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* Reaction menu: Clap, Yes and Raise hand first, then the other emoji. */
.vo-call-overlay .vo-call-react-menu {
  z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  min-width: 0;
  max-width: none;
  width: max-content;
  padding: 8px;
}

.vo-call-react-main {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 6px;
  margin-bottom: 6px;
}

.vo-call-overlay .vo-call-react-menu .vo-call-react-main button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  padding: 7px 4px 6px;
  border-radius: 12px;
  background: var(--vo-hover);
  color: var(--vo-ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.vo-call-react-main button b { font-size: 22px; line-height: 1.1; font-weight: 400; }

.vo-call-overlay .vo-call-react-menu .vo-call-react-main button:hover {
  background: color-mix(in srgb, var(--vo-accent) 14%, var(--vo-hover));
}

.vo-call-overlay .vo-call-react-menu .vo-call-react-main button.on {
  background: #fbbf24;
  color: #1f1300;
}

.vo-call-overlay .vo-call-react-menu .vo-call-reacts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.vo-call-overlay .vo-call-react-menu .vo-call-reacts button {
  width: auto;
  height: 38px;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
}

.vo-call-menu-ico {
  display: inline-block;
  width: 1.5em;
  margin-right: 0.35rem;
  text-align: center;
}

.vo-call-menu button.on { background: #fef3c7; color: #92400e; }

/* The small call box keeps Raise hand and Reactions on wide screens (it had only mic,
   camera, share and leave). Phones use the More menu, which lists them too. */
@media (min-width: 861px) {
  html:not(.vo-phone) .vo-call-overlay[data-compact="true"] .vo-call-btn.vo-call-keep { display: inline-flex; }
  html:not(.vo-phone) .vo-call-overlay[data-compact="true"] .vo-call-split.vo-call-keep { display: flex; }
  html:not(.vo-phone) .vo-call-overlay[data-compact="true"] .vo-call-react-menu { left: auto; right: -40px; transform: none; }
}

/* Call menus sit above the raised-hands strip and floating reactions. */
.vo-call-overlay .vo-call-menu { z-index: 40; }

/* Phone header: the status select was capped at 9.5rem inside a wider pill, so its arrow
   sat in the middle of the box. It fills the pill, with the arrow at the right edge. */
@media (max-width: 760px) {
  .vo-shell .vo-reception select {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding-right: 4px;
  }
}

html.vo-phone .vo-shell .vo-reception select {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  padding-right: 4px;
}

/* ---------- Poll dialog ---------- */
.vo-poll-dialog { overflow-y: auto; }
.vo-poll-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.vo-poll-field .vo-input, .vo-poll-option .vo-input { width: 100%; }
.vo-poll-options { display: flex; flex-direction: column; gap: 8px; }
.vo-poll-option { display: flex; align-items: center; gap: 6px; }
.vo-poll-add {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 6px 10px;
  border: 1px dashed var(--vo-line); border-radius: 9px; background: transparent; color: var(--vo-accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vo-poll-add .vo-glyph { width: 14px; height: 14px; }
.vo-poll-multi { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vo-muted); }
@media (max-width: 760px) {
  .vo-poll-dialog input:not([type=checkbox]) { font-size: 16px; }
}
html.vo-phone .vo-poll-dialog input:not([type=checkbox]) { font-size: 16px; }

/* Add people in the call header: the accent colour, so it reads as the way to bring others in. */
.vo-call-add { color: var(--vo-accent); border-color: color-mix(in srgb, var(--vo-accent) 40%, var(--vo-line)); background: var(--vo-accent-soft); }
.vo-call-add:hover { background: color-mix(in srgb, var(--vo-accent) 16%, transparent); }
.vo-call-add .vo-glyph { width: 18px; height: 18px; }

/* ---------- People picker with presence (call invites) ---------- */
.vo-people-sep {
  padding: 10px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--vo-muted);
}
.vo-people-av { position: relative; }
.vo-people-dot {
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: #9aa3b2; border: 2px solid var(--vo-panel);
}
.vo-people-dot[data-status="available"] { background: #22c55e; }
.vo-people-dot[data-status="busy"], .vo-people-dot[data-status="knockrequired"] { background: #f59e0b; }
.vo-people-dot[data-status="away"] { background: #94a3b8; }
.vo-people-dot[data-status="donotdisturb"] { background: #ef4444; }
.vo-people-dot[data-status="incall"] { background: #8b5cf6; }
.vo-people-list button:disabled { opacity: 0.55; cursor: not-allowed; }
.vo-people-list button[data-person-status="offline"] .vo-people-av { filter: saturate(0.6); }
.vo-people-list button { min-height: 52px; padding: 8px; }
.vo-people-av { flex: 0 0 38px; height: 38px; font-size: 14px; }
.vo-people-check { flex: 0 0 22px; height: 22px; border-radius: 50%; }
@media (max-width: 760px) {
  .vo-people-list { min-height: 200px; }
  .vo-people-list button { min-height: 56px; }
}

/* ---------- Room card: invite people to a call ---------- */
.vo-room__invite {
  position: absolute;
  top: 0.5rem;
  right: 3.9rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--vo-accent);
  background: var(--vo-accent-soft);
  cursor: pointer;
}
.vo-room__invite:hover { background: color-mix(in srgb, var(--vo-accent) 18%, transparent); }
.vo-room__invite .vo-glyph { width: 15px; height: 15px; }
/* Wide screens: the invite button takes the meeting rooms' decorative people icon spot, and the
   name keeps clear of the buttons. */
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__icon { display: none; }
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 6rem; }

/* Wide screens: person+ looks like the padlock (no background) and both sit closer to the right edge. */
.vo-shell .vo-room .vo-room__invite {
  top: 0.55rem;
  right: 2.5rem;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--vo-muted);
  background: transparent;
}
.vo-shell .vo-room .vo-room__invite:hover { color: var(--vo-ink); background: var(--vo-hover); }
.vo-shell .vo-room .vo-room__lock--btn { right: 0.7rem; }
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 4.3rem; }

/* Names under avatars use the room there is, up to a limit, before ending in an ellipsis. */
.vo-shell .vo-person {
  width: auto;
  min-width: 56px;
  max-width: 120px;
}
.vo-shell .vo-person__name,
.vo-shell .vo-person__caption {
  max-width: 120px;
}

/* Room names wrap onto up to two lines instead of ending in an ellipsis. */
.vo-shell .vo-room__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

/* Video player (CastPlayer.razor + vo-video-player.js): Replays and video files in messages */
.vo-player {
  --p-accent: var(--vo-accent);
  position: relative; overflow: hidden; border-radius: 14px; background: #05080f; color: #fff;
  outline: none; user-select: none; -webkit-user-select: none; isolation: isolate;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
}
.vo-player:focus-visible { box-shadow: 0 0 0 3px var(--vo-focus); }
.vo-player__video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: contain; background: #05080f; cursor: pointer; }
.vo-player.is-full { border-radius: 0; display: flex; align-items: center; }
.vo-player.is-full .vo-player__video { max-height: none; height: 100vh; aspect-ratio: auto; }
.vo-player.is-playing:not(.show-controls) { cursor: none; }
.vo-player.is-playing:not(.show-controls) .vo-player__video { cursor: none; }

.vo-player__big {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; padding: 0 0 0 4px; border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--p-accent) 92%, transparent); color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); transition: transform .15s, opacity .2s;
}
.vo-player__big:hover { transform: scale(1.06); }
.vo-player.is-playing .vo-player__big, .vo-player:not(.has-source) .vo-player__big { opacity: 0; pointer-events: none; }

.vo-player__spinner {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: vo-cast-spin .8s linear infinite; display: none;
}
.vo-player.is-loading.is-playing .vo-player__spinner, .vo-player:not(.has-source) .vo-player__spinner { display: block; }

.vo-player__flash {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(0,0,0,.45); opacity: 0; pointer-events: none;
}
.vo-player__flash.show { animation: vo-player-flash .5s ease-out; }
@keyframes vo-player-flash { from { opacity: 1; transform: scale(.8); } to { opacity: 0; transform: scale(1.25); } }
.vo-player__flash::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; }
.vo-player__flash[data-kind="play"]::after { width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; transform: translateX(3px); }
.vo-player__flash[data-kind="pause"]::after { width: 18px; height: 22px; border-left: 6px solid #fff; border-right: 6px solid #fff; box-sizing: border-box; }
.vo-player__flash[data-kind="back"]::after { content: "−10"; width: auto; height: auto; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }
.vo-player__flash[data-kind="fwd"]::after { content: "+10"; width: auto; height: auto; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; }

.vo-player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.35) 60%, transparent);
  transition: opacity .25s, transform .25s;
}
.vo-player.is-playing:not(.show-controls) .vo-player__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }

.vo-player__seek { position: relative; height: 18px; margin: 0 6px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.vo-player__track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; transition: height .12s; }
.vo-player__seek:hover .vo-player__track, .vo-player.is-seeking .vo-player__track, .vo-player__seek:focus-visible .vo-player__track { height: 6px; }
.vo-player__buffered, .vo-player__played, .vo-player__hover { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.vo-player__buffered { background: rgba(255,255,255,.35); }
.vo-player__hover { background: rgba(255,255,255,.2); }
.vo-player__played { background: var(--p-accent); z-index: 1; }
.vo-player__thumb {
  position: absolute; top: 50%; left: 0; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-accent) 60%, transparent); transform: scale(0); transition: transform .12s;
}
.vo-player__seek:hover .vo-player__thumb, .vo-player.is-seeking .vo-player__thumb, .vo-player__seek:focus-visible .vo-player__thumb { transform: scale(1); }
.vo-player__tip {
  position: absolute; bottom: 22px; left: 0; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px;
  background: rgba(0,0,0,.85); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .1s;
}
.vo-player__seek:hover .vo-player__tip, .vo-player.is-seeking .vo-player__tip { opacity: 1; }

.vo-player__row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.vo-player__grow { flex: 1; }
.vo-player__btn {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 8px;
  background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
}
.vo-player__btn:hover { background: rgba(255,255,255,.14); }
.vo-player__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.vo-player__btn[hidden] { display: none; }
.vo-player .i-pause, .vo-player .i-muted, .vo-player .i-exit { display: none; }
.vo-player.is-playing .i-play { display: none; }
.vo-player.is-playing .i-pause { display: block; }
.vo-player.is-muted .i-vol { display: none; }
.vo-player.is-muted .i-muted { display: block; }
.vo-player.is-full .i-full { display: none; }
.vo-player.is-full .i-exit { display: block; }
.vo-player__speed { min-width: 44px; }

.vo-player__vol { display: flex; align-items: center; }
.vo-player__volume {
  --fill: 100%; width: 0; opacity: 0; margin: 0; height: 4px; border-radius: 4px; cursor: pointer; transition: width .2s, opacity .2s, margin .2s;
  -webkit-appearance: none; appearance: none; background: linear-gradient(to right, #fff var(--fill), rgba(255,255,255,.3) var(--fill));
}
.vo-player__vol:hover .vo-player__volume, .vo-player__volume:focus-visible { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.vo-player__volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vo-player__volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }

.vo-player__time { margin-left: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: rgba(255,255,255,.92); }
.vo-player__sep { margin: 0 4px; opacity: .6; }

.vo-player__menuwrap { position: relative; }
.vo-player__menu {
  position: absolute; right: 0; bottom: 42px; min-width: 128px; padding: 6px; border-radius: 10px;
  background: rgba(17,24,39,.96); box-shadow: 0 12px 30px rgba(0,0,0,.4); display: flex; flex-direction: column;
}
.vo-player__menu[hidden] { display: none; }
.vo-player__menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: #fff; font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.vo-player__menu button:hover { background: rgba(255,255,255,.1); }
.vo-player__menu button[aria-checked="true"] { color: color-mix(in srgb, var(--p-accent) 55%, #fff); font-weight: 700; }
.vo-player__menu button[aria-checked="true"]::after { content: "✓"; }

/* Recording preview: smaller frame inside the recorder card */
.vo-player.vo-player--preview .vo-player__video { max-height: 56vh; }

@media (max-width: 640px) {
  .vo-player { border-radius: 12px; }
  .vo-player__bar { padding: 22px 6px 4px; }
  .vo-player__btn { min-width: 34px; height: 34px; }
  .vo-player__skip, .vo-player__volume { display: none; }
  .vo-player__time { font-size: 12px; margin-left: 4px; }
  .vo-player__big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vo-player__track { height: 5px; }
  .vo-player__thumb { transform: scale(1); }
}
@media (hover: none) {
  .vo-player__thumb { transform: scale(1); }
}

/* Never let the browser's own video UI show through (Android draws a grey play glyph). */
.vo-player__video::-webkit-media-controls,
.vo-player__video::-webkit-media-controls-overlay-play-button,
.vo-player__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Full screen inside the Android app (its web view cannot), and wherever the browser refuses */
.vo-player.is-window-full {
  position: fixed; inset: 0; z-index: 10000; border-radius: 0; box-shadow: none; margin: 0 !important;
  width: auto !important; max-width: none !important; display: flex; align-items: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.vo-player.is-window-full .vo-player__video { width: 100%; height: 100%; max-height: none !important; aspect-ratio: auto; }
.vo-player.is-window-full .vo-player__bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
html.vo-player-window-full, html.vo-player-window-full body { overflow: hidden; }

/* A video file in a message: smaller frame, fewer buttons */
.vo-player.vo-player--inline {
  width: 360px; max-width: min(100%, calc(100vw - 96px)); margin-top: .4rem; border-radius: 12px; box-shadow: 0 4px 14px rgba(15, 23, 42, .14);
}
.vo-player--inline:not(.is-full) .vo-player__video { aspect-ratio: auto; min-height: 140px; max-height: 240px; }
.vo-player--inline:not(.is-full) .vo-player__bar { padding: 22px 4px 2px; }
.vo-player--inline:not(.is-full) .vo-player__btn { min-width: 32px; height: 32px; padding: 0 4px; }
.vo-player--inline:not(.is-full) .vo-player__skip,
.vo-player--inline:not(.is-full) .vo-player__volume { display: none; }
.vo-player--inline:not(.is-full) .vo-player__time { font-size: 12px; margin-left: 2px; }
.vo-player--inline:not(.is-full) .vo-player__big { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.vo-player--inline:not(.is-full) .vo-player__menu { bottom: 38px; }
.vo-pop .vo-pop-file .vo-player--inline { width: 260px; }
.vo-player.vo-player--inline.is-window-full { width: auto; border-radius: 0; box-shadow: none; }
.vo-pop .vo-pop-file .vo-player--inline:not(.is-full) .vo-player__video { max-height: 200px; }
.vo-pop .vo-pop-file .vo-player--inline:not(.is-full) .vo-player__time .vo-player__sep,
.vo-pop .vo-pop-file .vo-player--inline:not(.is-full) .vo-player__time [data-p="duration"] { display: none; }

/* Audio player (VoAudioPlayer.razor + vo-audio-player.js): voice notes and audio files */
.vo-audio {
  --a-played: var(--vo-accent);
  --a-rest: color-mix(in srgb, var(--vo-muted) 42%, transparent);
  display: flex; align-items: center; gap: 10px; width: 260px; min-width: 0; max-width: min(100%, calc(100vw - 96px));
  margin-top: .3rem; padding: 6px 8px 6px 6px; border: 1px solid var(--vo-line); border-radius: var(--vo-radius-pill);
  background: var(--vo-bg-elev); color: var(--vo-ink); user-select: none; -webkit-user-select: none;
}
html[data-theme="dark"] .vo-audio, :root:not([data-theme="light"]) .vo-audio { --a-played: var(--vo-accent-hi); }
.vo-audio audio { display: none; }
.vo-audio__play {
  position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 0 2px;
  border: 0; border-radius: 50%; background: var(--vo-accent); color: var(--vo-accent-ink); cursor: pointer;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--vo-accent) 35%, transparent); transition: transform .12s, filter .12s;
}
.vo-audio__play:hover { filter: brightness(1.08); }
.vo-audio__play:active { transform: scale(.94); }
.vo-audio__play:focus-visible, .vo-audio__speed:focus-visible { outline: 2px solid var(--vo-focus); outline-offset: 2px; }
.vo-audio .i-pause { display: none; }
.vo-audio.is-playing .vo-audio__play { padding: 0; }
.vo-audio.is-playing .i-play { display: none; }
.vo-audio.is-playing .i-pause { display: block; }
.vo-audio__spin {
  position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--vo-accent);
  animation: vo-cast-spin .8s linear infinite; display: none;
}
.vo-audio.is-loading .vo-audio__spin { display: block; }
.vo-audio__wave { position: relative; flex: 1 1 auto; min-width: 60px; height: 30px; cursor: pointer; touch-action: none; outline: none; border-radius: 6px; }
.vo-audio__wave:focus-visible { box-shadow: 0 0 0 2px var(--vo-focus); }
.vo-audio__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vo-audio__time {
  flex: none; min-width: 34px; text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--vo-muted);
}
.vo-audio.is-playing .vo-audio__time { color: var(--vo-ink); }
.vo-audio.is-error .vo-audio__time { color: var(--vo-danger); min-width: auto; }
.vo-audio__speed {
  flex: none; min-width: 38px; height: 24px; padding: 0 7px; border: 1px solid var(--vo-line); border-radius: var(--vo-radius-pill);
  background: transparent; color: var(--vo-muted); font: inherit; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
}
.vo-audio__speed:hover { background: var(--vo-hover); color: var(--vo-ink); }
.vo-audio.is-fast .vo-audio__speed { border-color: transparent; background: var(--vo-accent-soft); color: var(--a-played); }
@media (hover: none) { .vo-audio__play { width: 40px; height: 40px; } .vo-audio__speed { height: 28px; } }

/* Watch page around the player */
.vo-cast-watch { max-width: 1040px; }
.vo-cast-watch .vo-cast-head { align-items: center; }
.vo-cast-watch .vo-cast-head h1 { font-size: 24px; letter-spacing: -0.01em; }
.vo-cast-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: var(--vo-muted); font-size: 13px; }
.vo-cast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.vo-cast-actions .vo-btn { height: 36px; }
.vo-cast-iconbtn { display: inline-flex; align-items: center; gap: 8px; }
.vo-cast-iconbtn .vo-glyph { width: 16px; height: 16px; }
.vo-cast-watch .vo-cast-actions { margin-top: 14px; }
.vo-cast-watch .vo-cast-react { margin: 0; gap: 6px; }
.vo-cast-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--vo-line); background: var(--vo-panel); color: var(--vo-ink); font: inherit; font-size: 15px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.vo-cast-pill:hover { border-color: var(--vo-accent); }
.vo-cast-pill:active { transform: scale(.96); }
.vo-cast-pill b { font-size: 13px; font-weight: 600; color: var(--vo-muted); }
.vo-cast-pill.mine { background: var(--vo-accent-soft); border-color: var(--vo-accent); }
.vo-cast-pill.mine b { color: var(--vo-accent); }

.vo-cast-share, .vo-cast-discuss {
  margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--vo-panel); border: 1px solid var(--vo-line);
}
.vo-cast-share__head { display: flex; align-items: center; gap: 14px; }
.vo-cast-share__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-cast-share__icon .vo-glyph { width: 18px; height: 18px; }
.vo-cast-share.is-public .vo-cast-share__icon { background: color-mix(in srgb, var(--vo-ok) 16%, transparent); color: var(--vo-ok); }
.vo-cast-share__text { flex: 1; min-width: 0; }
.vo-cast-share__text h2, .vo-cast-discuss h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.vo-cast-share__text p { margin: 2px 0 0; color: var(--vo-muted); font-size: 13px; }
.vo-cast-share__head .vo-btn { flex: none; height: 38px; }
.vo-cast-share__link { display: flex; gap: 8px; margin-top: 14px; }
.vo-cast-share__link .vo-input { flex: 1; min-width: 0; font-family: var(--vo-mono); font-size: 13px; background: var(--vo-bg); }
.vo-cast-share__opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--vo-line); }
.vo-cast-share__opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--vo-muted); }
.vo-cast-share__opts label:first-child { flex: 1; min-width: 180px; }
.vo-cast-share__opts label:nth-child(2) .vo-input { width: 120px; }
.vo-cast-share__opts small { font-weight: 400; }

.vo-cast-compose { display: flex; gap: 8px; margin: 12px 0; }
.vo-cast-compose .vo-input { flex: 1; min-width: 0; }
.vo-cast-discuss .vo-cast-comments { margin: 0; gap: 12px; }
.vo-cast-discuss .vo-cast-comment { display: flex; gap: 10px; padding: 0; border: 0; background: transparent; }
/* A comment opened from a notification. */
.vo-cast-discuss .vo-cast-comment.vo-cast-comment--focus { outline: 2px solid var(--vo-focus); outline-offset: 4px; border-radius: 10px; }
.vo-cast-comment__av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--vo-accent-soft); color: var(--vo-accent); font-weight: 700; font-size: 13px; }
.vo-cast-comment__who { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.vo-cast-comment__who span { color: var(--vo-muted); font-size: 12px; }
.vo-cast-discuss .vo-cast-comment p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
.vo-cast-discuss .vo-cast-comment > div { flex: 1; min-width: 0; }
.vo-cast-discuss .vo-cast-comment p { overflow-wrap: anywhere; white-space: pre-wrap; }
.vo-cast-comment__who strong { overflow-wrap: anywhere; }
.vo-cast-at { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--vo-line); background: var(--vo-bg); color: var(--vo-muted); font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.vo-cast-at .vo-glyph { width: 14px; height: 14px; }
.vo-cast-at.on { border-color: var(--vo-accent); background: var(--vo-accent-soft); color: var(--vo-accent); }
.vo-cast-at:disabled { cursor: default; opacity: .7; }
.vo-cast-time { display: inline-flex; align-items: center; margin-right: 8px; padding: 1px 8px; border: 0; border-radius: 999px; background: var(--vo-accent-soft); color: var(--vo-accent); font: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; vertical-align: 1px; }
.vo-cast-time:hover { background: var(--vo-accent); color: #fff; }
.vo-player__marker { position: absolute; top: 50%; z-index: 2; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 1.5px rgba(0,0,0,.45); pointer-events: none; }
.vo-cast-guest { flex: none; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--vo-line); color: var(--vo-muted); font-size: 11px; font-style: normal; font-weight: 600; }
.vo-cast-comment__del { flex: none; opacity: 0; transition: opacity .12s; }
.vo-cast-comment:hover .vo-cast-comment__del, .vo-cast-comment__del:focus-visible { opacity: 1; }
html.vo-phone .vo-cast-comment__del, html.vo-narrow .vo-cast-comment__del { opacity: 1; }
@media (hover: none) { .vo-cast-comment__del { opacity: 1; } }
.vo-cast-compose--guest .vo-cast-compose__name { flex: 0 0 180px; }
.vo-cast-lock { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; padding: 32px 16px; border-radius: 14px; background: var(--vo-panel); border: 1px solid var(--vo-line); text-align: center; }
.vo-cast-lock h2 { margin: 6px 0 0; font-size: 17px; }
.vo-cast-lock .vo-cast-sub { margin: 0; }
.vo-cast-lock__row { display: flex; gap: 8px; width: min(100%, 380px); margin-top: 10px; }
.vo-cast-lock__row .vo-input { flex: 1; min-width: 0; }
.vo-cast-lock__error { margin: 4px 0 0; color: var(--vo-danger, #dc2626); font-size: 13px; font-weight: 600; }
.vo-cast-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.vo-cast-confirm span { flex: 1; min-width: 0; }
.vo-cast-confirm .vo-btn { height: 30px; padding: 0 12px; font-size: 13px; }
@media (max-width: 640px) {
  .vo-cast-compose { flex-wrap: wrap; }
  .vo-cast-compose .vo-cast-at { order: 3; }
  .vo-cast-compose .vo-btn { order: 4; margin-left: auto; }
  .vo-cast-compose > .vo-input:not(.vo-cast-compose__name) { flex: 1 1 100%; }
  .vo-cast-compose--guest .vo-cast-compose__name { flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .vo-cast-share__head { flex-wrap: wrap; }
  .vo-cast-share__head .vo-btn { width: 100%; justify-content: center; }
  .vo-cast-share__link { flex-direction: column; }
  .vo-cast-share__opts label:nth-child(2) .vo-input { width: 100%; }
  .vo-cast-share__opts > * { flex: 1 1 100%; }
  .vo-cast-watch .vo-cast-actions .vo-player__grow { display: none; }
}

/* Hover tip for text that is cut off. */
.vo-trunc-tip {
  position: fixed;
  z-index: 2000;
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
  pointer-events: none;
}

/* Wide screens: the padlock is always shown (not only on hover), so it and person+ always sit
   together at the right edge of the card. */
.vo-shell .vo-room .vo-room__lock--btn.is-open { opacity: 1; }

/* ---------- Lobby button (office bar, left of the actions) ---------- */
.vo-lobby-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  margin-left: 0.2rem;
  padding: 0 0.8rem 0 0.65rem;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
  background: var(--vo-panel);
  color: var(--vo-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.vo-lobby-btn:hover { background: var(--vo-hover); }
.vo-lobby-btn .vo-lobby-ico { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .vo-lobby-btn { display: none; }
}
html.vo-phone .vo-lobby-btn { display: none; }

/* The bar's two halves never overlap. The company name gives way first (it truncates), then
   the custom status box and the Start meeting label go at medium widths, and if the actions
   still do not fit beside the name and Lobby they drop to a second row instead of sliding
   over the Lobby button. */
@media (min-width: 761px) {
  html:not(.vo-phone) .vo-shell .vo-office-bar { flex-wrap: wrap; row-gap: 6px; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
  html:not(.vo-phone) .vo-shell .vo-office-bar__left { flex: 1 1 auto; min-width: min-content; }
  html:not(.vo-phone) .vo-shell .vo-office-bar__company { max-width: 14rem; }
  html:not(.vo-phone) .vo-shell .vo-office-bar__right { flex: 0 1 auto; margin-left: auto; }
}
/* Widths below are for the office with the chat column open (window minus rail and chat). */
@media (max-width: 1360px) {
  .vo-shell:not(.chat-closed) .vo-reception input { display: none; }
}
@media (max-width: 1000px) {
  .vo-shell .vo-reception input { display: none; }
}
@media (min-width: 961px) and (max-width: 1240px) {
  .vo-shell:not(.chat-closed) .vo-office-bar .vo-btn.primary { padding: 0 0.75rem; }
  .vo-shell:not(.chat-closed) .vo-office-bar .vo-btn.primary .vo-bar-label { display: none; }
}
@media (min-width: 961px) and (max-width: 1160px) {
  html:not(.vo-phone) .vo-shell:not(.chat-closed) .vo-office-bar__company { max-width: 8rem; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .vo-shell:not(.chat-closed) .vo-office-bar__company { display: none; }
}

/* Cards with no buttons (other people's offices) use the full width for the name; cards with
   buttons keep only the space those buttons take. */
.vo-shell .vo-room:not(:has(.vo-room__invite, .vo-room__lock, .vo-room__menu)) .vo-room__label { padding-right: 0; }

/* People picker search: a filled, taller box with a clear button. */
.vo-people-search {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 8px 0 14px;
  gap: 10px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--vo-hover, #eef1f6);
  color: var(--vo-muted);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.vo-people-search:focus-within {
  border-color: var(--vo-accent);
  background: var(--vo-panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vo-accent) 16%, transparent);
}
.vo-people-search .vo-glyph { width: 18px; height: 18px; flex: 0 0 auto; }
.vo-people-search input { font-size: 15px; -webkit-appearance: none; appearance: none; }
.vo-people-search input::-webkit-search-cancel-button { display: none; }
.vo-people-search input::placeholder { color: var(--vo-muted); opacity: 0.85; }
.vo-people-clear {
  display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--vo-muted); cursor: pointer;
}
.vo-people-clear:hover { background: color-mix(in srgb, var(--vo-ink) 8%, transparent); color: var(--vo-ink); }
.vo-people-clear .vo-glyph { width: 14px; height: 14px; }

/* Wide screens: person+ sits right next to the padlock (2px apart). */
.vo-shell .vo-room .vo-room__invite { right: calc(0.7rem + 24px); }
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 3.6rem; }

/* ---------- Loading indicator (VoLoader.razor) ----------
   The Collabiro mark with its three dots hopping in a wave, like someone typing.
   The startup splash (#vo-boot in app.css) uses the same vo-loader-hop motion. */
.vo-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 12px;
  color: var(--vo-muted);
  text-align: center;
}
.vo-loader__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #0055fb;
  overflow: visible;
}
.vo-loader__text { font-size: 0.9rem; }
.vo-loader--inline {
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0;
  text-align: start;
}
.vo-loader--inline .vo-loader__mark { width: 20px; height: 20px; }
.vo-loader--inline .vo-loader__text { font-size: inherit; }
.vo-loader__dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: vo-loader-hop 1.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.vo-loader__dot:nth-of-type(2) { animation-delay: 0.14s; }
.vo-loader__dot:nth-of-type(3) { animation-delay: 0.28s; }
@keyframes vo-loader-hop {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-130%); }
}
@media (prefers-reduced-motion: reduce) {
  .vo-loader__dot { animation-duration: 2.4s; }
}
.vo-floor-skeleton__label.vo-loader { padding: 0; }
.vo-floor-skeleton__label .vo-loader__mark { width: 64px; height: 64px; }
.vo-cal-loading-anchor { position: relative; height: 0; z-index: 5; }
.vo-cal-loading.vo-loader {
  position: absolute; top: 120px; left: 50%; transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--vo-panel); border: 1px solid var(--vo-line); box-shadow: 0 8px 24px rgba(0,0,0,.08);
  color: var(--vo-ink); font-size: 14px; font-weight: 600;
}
.vo-ain-loading.vo-loader { padding: 8px 14px; font-size: 0.88rem; }

/* Wide screens: the ⋯ menu is always shown (not only on hover) and has its own spot at the right
   edge, with the padlock and person+ beside it, so nothing overlaps. */
.vo-shell .vo-room .vo-room__menu { opacity: 1; right: 0.5rem; width: 24px; }
.vo-shell .vo-room .vo-room__lock--btn { right: calc(0.5rem + 26px); }
.vo-shell .vo-room .vo-room__invite { right: calc(0.5rem + 52px); }
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__label { padding-right: 5.6rem; }

/* Wide screens: office cards keep their usual height (they used to take it from the tall card in
   the same row), so the floor looks the same whichever office is first. */
@media (min-width: 761px) {
  html:not(.vo-phone) .vo-shell .vo-floor-privates > .vo-room--private:not(.vo-room--lead) { min-height: 133px; }
}

/* Cards with buttons keep the name on one line (cut short only as much as the buttons need, the full
   name shows in a tip on hover), so every card keeps the same height. */
.vo-shell .vo-room:has(.vo-room__invite) .vo-room__name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- New / edit event form (Calendar.razor, .vo-evt) ----------
   A big title line, then one row per topic with an icon in the left column
   (when, room, repeats and reminder, people, notes), and a sticky action bar. */
.vo-cal-page .vo-cal-drawer.vo-evt { width: min(480px, 100vw); display: flex; flex-direction: column; gap: 0; }
.vo-evt .vo-cal-drawer-head { margin-bottom: 0.25rem; }
.vo-evt-title {
  width: 100%;
  margin: 0.35rem 0 0.6rem;
  padding: 0.55rem 0.1rem;
  border: 0;
  border-bottom: 2px solid var(--vo-line);
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  outline: none;
}
.vo-evt-title::placeholder { color: var(--vo-muted); font-weight: 600; }
.vo-evt-title:focus { border-bottom-color: var(--vo-accent); }
.vo-evt-sec {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--vo-line);
}
.vo-evt-sec:last-of-type { border-bottom: 0; }
.vo-evt-ico { margin-top: 1.45rem; color: var(--vo-muted); }
.vo-evt-sec[aria-label="Attendees"] .vo-evt-ico,
.vo-evt-sec[aria-label="Notes"] .vo-evt-ico { margin-top: 0.15rem; }
.vo-evt-main { display: grid; gap: 0.65rem; min-width: 0; }
.vo-evt-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.vo-evt-field { display: grid; gap: 0.3rem; min-width: 0; margin: 0; }
.vo-evt-field > span, .vo-evt-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--vo-muted);
}
.vo-evt-label { display: flex; justify-content: space-between; align-items: baseline; }
.vo-evt-count { text-transform: none; letter-spacing: 0; font-weight: 500; }
.vo-evt-field .vo-input { width: 100%; min-width: 0; }
.vo-evt-chips, .vo-evt-days, .vo-evt-people { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vo-evt-chip, .vo-evt-day, .vo-evt-person {
  border: 1px solid var(--vo-line);
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.vo-evt-chip { padding: 0.28rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.vo-evt-day { width: 34px; height: 34px; border-radius: 50%; font-size: 0.8rem; font-weight: 700; }
.vo-evt-chip:hover, .vo-evt-day:hover, .vo-evt-person:hover { background: var(--vo-hover); }
.vo-evt-chip.on, .vo-evt-day.on, .vo-evt-person.on {
  border-color: var(--vo-accent);
  background: var(--vo-accent-soft);
  color: var(--vo-ink);
}
.vo-evt-day.on { background: var(--vo-accent); color: var(--vo-accent-ink); }
.vo-evt-chip:focus-visible, .vo-evt-day:focus-visible, .vo-evt-person:focus-visible { outline: 2px solid var(--vo-accent); outline-offset: 2px; }
.vo-evt-person {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.22rem 0.65rem 0.22rem 0.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.vo-evt-av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--vo-line);
  color: var(--vo-ink);
  font-size: 0.68rem;
  font-weight: 700;
}
.vo-evt-person.on .vo-evt-av { background: var(--vo-accent); color: var(--vo-accent-ink); }
.vo-evt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-evt-tick { color: var(--vo-accent); flex: 0 0 auto; }
.vo-evt-rsvp { margin: 0; font-size: 0.8rem; color: var(--vo-muted); }
.vo-evt-notes { width: 100%; resize: vertical; min-height: 4.5rem; }
.vo-evt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto !important; }
.vo-evt-spacer { flex: 1 1 auto; }
.vo-evt-danger { color: var(--vo-danger); }
.vo-evt .vo-cal-hint { margin: 0; }

/* Phone: full-screen sheet that slides up, with the times stacked. */
.vo-calm-page .vo-cal-drawer.vo-evt { width: 100vw; animation: vo-sheet-up 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.vo-calm-page .vo-evt-when { grid-template-columns: 1fr; }
.vo-calm-page .vo-evt-actions .vo-btn.primary { flex: 1 1 auto; }
@media (max-width: 520px) {
  .vo-evt-when { grid-template-columns: 1fr; }
}
@keyframes vo-sheet-up {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .vo-calm-page .vo-cal-drawer.vo-evt { animation: none; }
}

/* Marker and button after the first offices; the rest load as it scrolls into view. */
.vo-floor-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}

/* ---------- Message area: a softer backdrop, a clearer thread, calmer rows ---------- */
/* A faint accent haze at the top fading into the page colour, instead of one flat fill. */
.vo-ain-log,
.vo-shell .vo-chat-messages {
  background:
    radial-gradient(120% 220px at 50% 0%, color-mix(in srgb, var(--vo-accent) 5%, transparent), transparent 70%),
    var(--vo-bg);
}

/* Inside a thread: a slightly tinted lane, the replies sit under a thin connector line. */
.vo-ain-log:has(.vo-ain-threadroot) {
  background:
    radial-gradient(120% 220px at 50% 0%, color-mix(in srgb, var(--vo-accent) 8%, transparent), transparent 70%),
    color-mix(in srgb, var(--vo-accent) 2.5%, var(--vo-bg));
}
.vo-ain-threadroot {
  background: var(--vo-panel);
  border-color: color-mix(in srgb, var(--vo-accent) 28%, var(--vo-line));
  border-left: 3px solid var(--vo-accent);
  box-shadow: var(--vo-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}
.vo-ain-threaddiv ~ .vo-ain-msg {
  margin-left: 14px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--vo-accent) 22%, var(--vo-line));
  border-radius: 0 10px 10px 0;
}

/* Rows: a gentler, rounded hover. */
.vo-ain-msg:hover { background: color-mix(in srgb, var(--vo-ink) 4%, transparent); border-radius: 10px; }
.vo-ain-threaddiv ~ .vo-ain-msg:hover { border-radius: 0 10px 10px 0; }

/* Day label: a small pill between two hairlines. */
.vo-ain-day {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vo-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.vo-ain-day::before,
.vo-ain-day::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--vo-line) 70%, transparent); }

/* Messages keep their line breaks (pre-wrap), but cards inside a message (polls, cast links) lay out
   normally; stray whitespace in their markup was showing as a big empty gap. */
.vo-msg-text :is(.vo-poll, .vo-cast-card, .vo-pop-file) { white-space: normal; }

/* ---------- Knock card, refined ---------- */
.vo-toast.vo-ring {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--vo-accent) 26%, var(--vo-line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--vo-accent) 7%, var(--vo-panel)) 0, var(--vo-panel) 96px);
}
.vo-ring--out.vo-toast {
  background: var(--vo-panel);
  border-color: var(--vo-line);
}
.vo-ring__who strong { font-size: 17px; letter-spacing: -0.01em; }
.vo-ring__who > span:last-child { line-height: 1.35; }
.vo-ring__avatar { background: color-mix(in srgb, var(--vo-accent) 14%, var(--vo-panel)); }
/* The status note is a quiet chip, not a loose line of text. */
.vo-toast .vo-ring__note {
  display: inline-flex;
  align-items: center;
  margin: 10px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--vo-hover);
  color: var(--vo-muted);
  font-size: 12px;
  font-weight: 600;
}
.vo-ring__bar { height: 4px; margin: 12px 0 8px; }
.vo-ring__link { margin: 0 0 12px; font-weight: 600; }
.vo-ring__actions { gap: 10px; }
.vo-ring__btn { min-height: 46px; border-radius: 14px; }
.vo-ring__btn.accept { background: linear-gradient(180deg, #1fb257, #16a34a); box-shadow: 0 6px 14px rgba(22, 163, 74, 0.28); }
.vo-ring__btn.decline { background: var(--vo-panel); }
@media (max-width: 760px) {
  .vo-ring__btn { min-height: 50px; font-size: 16px; }
}

/* Sender's "Knock sent" card: room between the countdown bar and the Cancel button. */
.vo-ring--out .vo-ring__bar { margin: 14px 0 14px; }
.vo-ring--out .vo-ring__actions { margin-top: 2px; }

/* Busy is red, Come in is green. */
.vo-ring__btn.decline[data-knock-busy] {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.26);
}
.vo-ring__btn.decline[data-knock-busy]:hover { background: #b91c1c; }

/* Message area: clean surfaces, no grey-blue tint. A soft white glow at the top of the page colour;
   a thread is plain white so the original message and replies stand out. */
.vo-ain-log,
.vo-shell .vo-chat-messages {
  background:
    radial-gradient(120% 200px at 50% 0%, color-mix(in srgb, var(--vo-panel) 85%, transparent), transparent 75%),
    var(--vo-bg);
}
.vo-ain-log:has(.vo-ain-threadroot) {
  background: var(--vo-panel);
}
.vo-ain-threadroot {
  background: color-mix(in srgb, var(--vo-accent) 5%, var(--vo-panel));
}

/* Inbox rail counts: the number sits in the middle of its pill. */
.vo-ain-rail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  box-sizing: border-box;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Inbox header actions: Knock stays a visible green button (a transparent-button rule had hidden
   it, leaving a gap), and every button is the same size with the same 4px gap. */
.vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn {
  background: #16a34a;
  color: #fff;
}
.vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn:hover { background: #15803d; color: #fff; }
.vo-ain-head .vo-ain-quick,
.vo-ain-head .vo-ain-quick .vo-ain-person-actions { gap: 4px; }
.vo-ain-head .vo-ain-quick .vo-ain-iconbtn { width: 32px; height: 32px; flex: 0 0 auto; }

/* Composer: more room to the right of Send and below the box. */
.vo-ain-box-foot { padding: 0.3rem 0.55rem 0.55rem 0.4rem; }
.vo-ain-compose { margin-bottom: 1.1rem; }
@media (max-width: 760px) {
  .vo-ain-compose { margin: 0.5rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom)); }
  .vo-ain-box-foot { padding: 0.35rem 0.7rem 0.7rem 0.45rem; }
}
html.vo-phone .vo-ain-compose { margin: 0.5rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom)); }
html.vo-phone .vo-ain-box-foot { padding: 0.35rem 0.7rem 0.7rem 0.45rem; }

/* Composer "+" menu (Attach a file, Create a poll). Phones only: wide screens keep the two buttons. */
.vo-ain-plus { display: none; position: relative; flex: 0 0 auto; }
.vo-ain-compose .vo-ain-tools .vo-ain-plus__btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--vo-hover); color: var(--vo-ink);
}
.vo-ain-plus__btn[aria-expanded="true"] { background: var(--vo-accent); color: var(--vo-accent-ink, #fff); }
.vo-ain-plus__menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 190px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--vo-panel); border: 1px solid var(--vo-line); border-radius: 14px; box-shadow: var(--vo-shadow);
}
.vo-ain-compose .vo-ain-tools .vo-ain-plus__menu .vo-ain-plus__item {
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: 44px; min-width: 0; padding: 0 12px;
  border: 0; border-radius: 10px; background: transparent; color: var(--vo-ink); font: inherit; font-size: 15px; font-weight: 600;
  text-align: left; cursor: pointer; white-space: nowrap;
}
.vo-ain-plus__item:hover, .vo-ain-plus__item:active { background: var(--vo-hover); }
.vo-ain-plus__item .vo-glyph { width: 18px; height: 18px; color: var(--vo-muted); }
.vo-ain-plus__item input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
@media (max-width: 760px) {
  .vo-ain-plus { display: block; }
  .vo-ain-compose .vo-ain-tools .vo-attach,
  .vo-ain-compose .vo-ain-tools [data-create-poll] { display: none; }
}
html.vo-phone .vo-ain-plus { display: block; }
html.vo-phone .vo-ain-compose .vo-ain-tools .vo-attach,
html.vo-phone .vo-ain-compose .vo-ain-tools [data-create-poll] { display: none; }

/* Chat popup + menu: Wave, Emoji, Attachment (RoamChatPopup). */
.vo-pop .vo-pop-plus > .vo-icon-btn { width: 32px; height: 32px; color: var(--vo-muted); }
.vo-pop .vo-pop-plus > .vo-icon-btn:hover,
.vo-pop .vo-pop-plus > .vo-icon-btn.open { color: var(--vo-ink); }
.vo-pop .vo-pop-plus .vo-compose-menu { left: -4px; bottom: calc(100% + 10px); }
.vo-compose-menu__ico.wave { color: #f59e0b; }
.vo-compose-menu__ico.emoji { color: #eab308; }
.vo-pop-upload { margin: 6px 4px 0; font-size: 12px; color: var(--vo-muted); }
.vo-pop-upload.error { color: var(--vo-danger); }

/* Voice note recorder (knock follow-up): a full-width live waveform, WhatsApp style.
   vo-voice.js sizes the drawing surface to this box and the screen's pixel ratio. */
.vo-voice-recorder canvas[data-voice-wave] {
  display: block;
  width: 100%;
  height: 48px;
  margin: 8px 0 4px;
  border-radius: 10px;
  background: var(--vo-accent-soft, rgba(37, 99, 235, 0.12));
}

/* Message area: neutral backdrop, no blue-gray tint. */
.vo-ain-log,
.vo-shell .vo-chat-messages,
.vo-ain-log:has(.vo-ain-threadroot) {
  background: var(--vo-panel);
}
.vo-ain-threadroot {
  background: color-mix(in srgb, var(--vo-ink) 3%, var(--vo-panel));
  border-color: var(--vo-line);
}
.vo-ain-threaddiv ~ .vo-ain-msg { border-left-color: var(--vo-line); }

/* Prolonged messages: the editors grow with the text (up to ~45% of the screen) before scrolling. */
.vo-chat-compose textarea { max-height: min(calc(1.35em * 14 + 1rem), 45vh); }

/* Inbox column: one clean surface behind the header, tabs and composer (no cream strips). */
.vo-ain-main { background: var(--vo-panel); }

/* Inbox header: Knock leads the action row on the left, with its label. */
.vo-ain-head .vo-ain-quick { justify-content: flex-start; }
.vo-ain-head .vo-ain-quick .vo-ain-person-actions { margin-right: auto; }
.vo-ain-head .vo-ain-quick .vo-ain-iconbtn.vo-knock-btn {
  width: auto; padding: 0 12px 0 10px; gap: 6px; border-radius: 10px;
  display: inline-flex; align-items: center; font-weight: 600; font-size: 13px;
}
.vo-ain-head .vo-ain-quick .vo-knock-btn span { line-height: 1; }

/* Rail count pill: equal padding all round, number centred. */
.vo-ain-rail .vo-ain-rail-count {
  min-width: 22px; height: 20px; padding: 0 7px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; line-height: 1; letter-spacing: 0; text-align: center;
}

/* ---------- Call tiles: round avatar when the camera is off, mic icon on the name ---------- */
.vo-tile-avatar {
  display: grid;
  place-items: center;
  width: clamp(48px, 34%, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b8cff, #2a5ce0);
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vo-tile-avatar[data-hue="1"], .vo-call-face[data-hue="1"] { background: linear-gradient(145deg, #8b7bff, #5a46e0); }
.vo-tile-avatar[data-hue="2"], .vo-call-face[data-hue="2"] { background: linear-gradient(145deg, #1fbf8f, #0f8a66); }
.vo-tile-avatar[data-hue="3"], .vo-call-face[data-hue="3"] { background: linear-gradient(145deg, #f5a14a, #d9741c); }
.vo-tile-avatar[data-hue="4"], .vo-call-face[data-hue="4"] { background: linear-gradient(145deg, #2cc5d6, #12899a); }
.vo-tile-avatar[data-hue="5"], .vo-call-face[data-hue="5"] { background: linear-gradient(145deg, #f472b6, #c2378a); }
.vo-tile[data-speaking="true"] .vo-tile-avatar { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35); }
.vo-tile-name { display: flex; align-items: center; gap: 6px; }
.vo-tile-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-tile-muted { flex: 0 0 auto; width: 14px; height: 14px; color: #ff7a7f; }

/* The phone's people bar (mobile.css shows it). */
.vo-call-peoplebar { display: none; }

/* ---------- Call: your own video in a small window (2026-11-18) ----------
   Once someone else is in the call, your tile leaves the grid for a small window in the
   bottom corner, mirrored like a mirror. It carries no buttons or text: how it shows (window,
   round icon, grid, strip or hidden) is picked only in the call's More menu > Your video.
   Hiding only stops drawing your preview here, your camera still goes to the others. */
.vo-call-stage { position: relative; }
.vo-participant-tiles.vo-filmstrip:empty { display: none; }
.vo-tile[data-local="true"] video { transform: scaleX(-1); }

.vo-self-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: clamp(110px, 20%, 220px);
}
.vo-self-view[hidden] { display: none; }
.vo-self-view .vo-self-slot .vo-tile {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.vo-self-view .vo-tile-name { padding: 0.9rem 0.45rem 0.3rem; font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-self-view .vo-tile-avatar { width: 38%; font-size: 0.95rem; }
.vo-self-view .vo-tile::after { display: none !important; }

/* "Icon": just a small round bubble of your face in the corner, no name or signal. */
.vo-self-view[data-mode="icon"] { width: 76px; }
.vo-self-view[data-mode="icon"] .vo-self-slot .vo-tile { aspect-ratio: 1 / 1 !important; border: 2px solid rgba(255, 255, 255, 0.85) !important; border-radius: 50% !important; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.vo-self-view[data-mode="icon"] .vo-tile video { object-fit: cover; }
.vo-self-view[data-mode="icon"] :is(.vo-tile-name, .vo-tile-signal, .vo-tile-mute) { display: none !important; }
.vo-self-view[data-mode="icon"] .vo-tile-avatar { width: 62%; }

/* Small call box: a smaller self window. */
.vo-call-overlay[data-compact="true"] .vo-self-view { right: 6px; bottom: 6px; width: 30%; max-width: 96px; }
.vo-call-overlay[data-compact="true"] .vo-self-view[data-mode="icon"] { width: 52px; }
.vo-call-overlay[data-compact="true"] .vo-self-view .vo-tile-name { display: none; }
/* "In a strip": your tile in its own row under everyone, so it covers nobody's video. */
.vo-self-view[data-mode="strip"] {
  position: static;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: auto;
}
.vo-self-view[data-mode="strip"] .vo-self-slot .vo-tile { width: auto; height: clamp(72px, 16vh, 120px); aspect-ratio: 16 / 9; border-width: 1px; box-shadow: none; }
/* Others' video turned off to save data: a small camera-off mark under the avatar. */
.vo-tile[data-paused="true"] .vo-tile-fallback::after {
  content: ""; position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 999px; background: rgba(0, 0, 0, 0.5) center / 15px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18M10 6h4a2 2 0 0 1 2 2v2.5l4-2.5v8M16 16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vo-self-view .vo-tile[data-paused="true"] .vo-tile-fallback::after { display: none; }
/* The camera menu's "Your video" choices (computers; phones have them in More). */
.vo-call-menu:has(> .vo-self-picker) { max-width: none; }
.vo-call-menu .vo-self-picker { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid var(--vo-line); }
@media (max-width: 860px) { .vo-call-menu .vo-self-picker { display: none; } }
.vo-call-menu [data-self-view].on { font-weight: 700; }
.vo-call-menu [data-self-view].on::after { content: "✓"; margin-left: auto; padding-left: 12px; }
/* Computer gallery: 16:9 tiles as large as fit, centred (size from livekit-bridge.js). */
.vo-participant-tiles[data-fit="true"]:not(.vo-filmstrip) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 9px;
}
.vo-participant-tiles[data-fit="true"]:not(.vo-filmstrip) > .vo-tile {
  flex: 0 0 var(--vo-tile-w, 320px);
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Settings > Calls & video: video quality choices as cards with a line of explanation. */
.vo-quality-list { display: grid; gap: 8px; margin-top: 12px; }
.vo-quality-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  background: var(--vo-bg-elev, transparent);
  cursor: pointer;
}
.vo-quality-option.on { border-color: var(--vo-accent); box-shadow: inset 0 0 0 1px var(--vo-accent); }
.vo-quality-option input { margin-top: 3px; accent-color: var(--vo-accent); }
.vo-quality-option span { display: grid; gap: 2px; min-width: 0; }
.vo-quality-option small { color: var(--vo-muted); font-size: 0.85rem; line-height: 1.35; }
/* Settings > Calls & video > Ringtone (phone apps): the same cards, one line each. */
.vo-ringtone-list { margin-top: 8px; }
.vo-ringtone-list .vo-quality-option { align-items: center; padding: 10px 14px; }
.vo-ringtone-list .vo-quality-option input { margin-top: 0; }
.vo-ringtone-list .vo-quality-option span { flex: 1 1 auto; overflow-wrap: anywhere; }
.vo-ringtone-playing { color: var(--vo-accent) !important; font-weight: 600; white-space: nowrap; }
.vo-ringtone-more { margin-top: 10px; }
.vo-ringtone-more > summary { cursor: pointer; color: var(--vo-accent); font-weight: 600; padding: 6px 0; }

/* Replay: waiting for the screen or camera to start. A soft gradient with the mode's icon
   in a pulsing ring and a line on what to tap, instead of a spinner on a plain black box. */
.vo-cast-waiting {
  gap: 8px;
  padding: 20px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
    linear-gradient(180deg, #111a2e 0%, #0b1220 100%);
  border-radius: inherit;
}
.vo-cast-waiting strong { font-size: 16px; line-height: 1.3; text-align: center; }
.vo-cast-waiting > span:not(.vo-cast-pulse) { color: rgba(255, 255, 255, 0.68); font-size: 13.5px; line-height: 1.4; }
.vo-cast-pulse {
  position: relative;
  display: grid; place-items: center;
  width: 60px; height: 60px; max-width: none; padding: 0 !important; margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.22);
  color: #fff;
  flex: 0 0 auto;
}
.vo-cast-pulse::before,
.vo-cast-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.55);
  animation: vo-cast-ring 1.8s ease-out infinite;
}
.vo-cast-pulse::after { animation-delay: 0.9s; }
.vo-cast-idle .vo-cast-pulse .vo-glyph { width: 28px; height: 28px; }
@keyframes vo-cast-ring {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vo-cast-pulse::before, .vo-cast-pulse::after { animation: none; opacity: 0.5; }
}
/* The ready state ("Record your screen and camera") gets the same look, so the box isn't a
   plain black rectangle before recording either. */
.vo-cast-idle:not(.vo-cast-waiting) {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 60%),
    linear-gradient(180deg, #111a2e 0%, #0b1220 100%);
}
.vo-cast-idle:not(.vo-cast-waiting) > .vo-glyph {
  box-sizing: content-box; width: 28px; height: 28px; padding: 14px; margin-bottom: 4px;
  border-radius: 50%; background: rgba(59, 130, 246, 0.22); color: #fff;
}
.vo-cast-idle:not(.vo-cast-waiting) > span { color: rgba(255, 255, 255, 0.68); font-size: 13.5px; line-height: 1.4; }

/* ---------- Call: View button and its menu; rich menu rows (2026-11-20) ----------
   "Gallery | Speaker" read as two unexplained words. It is now one "View" button showing the
   current layout, which opens a small menu where each choice has an icon and a line saying
   what it does. The Sound menu uses the same rows (Speaker, Phone, Headset, Bluetooth). */
.vo-call-viewpick { position: relative; flex: 0 0 auto; }
.vo-call-viewbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 10px;
  border: 1px solid var(--vo-line); border-radius: 12px; background: var(--vo-panel); color: var(--vo-ink);
  font: inherit; cursor: pointer;
}
.vo-call-viewbtn:hover, .vo-call-viewbtn.is-on { background: var(--vo-hover); }
.vo-call-viewbtn .vo-call-viewico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--vo-accent); }
.vo-call-viewbtn-text { display: grid; line-height: 1.1; text-align: left; font-size: 13px; font-weight: 650; }
.vo-call-viewbtn-text small { color: var(--vo-muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.vo-call-viewbtn-chev { width: 14px; height: 14px; color: var(--vo-muted); }
.vo-call-viewpick .vo-call-view-menu { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; min-width: 15.5rem; z-index: 30; }
/* The view button's quick grid (layout + your video) and the camera menu's "Your video" row:
   small icon buttons, one tap each, with a one-word caption. */
.vo-call-viewpick .vo-call-viewgrid { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; min-width: 0; max-width: none; width: max-content; padding: 4px 6px 4px; z-index: 30; }
.vo-call-menu .vo-icon-row { display: flex; gap: 2px; padding: 0 0 4px; }
.vo-call-menu .vo-icon-row button {
  flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 50px; height: 46px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; text-align: center;
}
.vo-call-menu .vo-icon-row button:hover { background: var(--vo-hover); }
.vo-call-menu .vo-icon-row button svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--vo-muted); background: none; }
.vo-call-menu .vo-icon-row button small { font-size: 10.5px; font-weight: 600; line-height: 1; color: var(--vo-muted); }
/* The chosen one: accent colour on a soft tint, no outline. */
.vo-call-menu .vo-icon-row button[aria-checked="true"] { background: color-mix(in srgb, var(--vo-accent) 12%, transparent); }
.vo-call-menu .vo-icon-row button[aria-checked="true"] :is(svg, small) { color: var(--vo-accent); }
.vo-call-menu .vo-icon-row button::before, .vo-call-menu .vo-icon-row button::after { content: none !important; }
.vo-call-menu .vo-icon-row .vo-icon-sep { align-self: center; width: 1px; height: 28px; margin: 0 4px; background: var(--vo-line); }
/* Others' video: one on/off button, marked only while it is off (the unusual state). */
.vo-call-menu .vo-icon-row button[data-incoming-video-toggle][aria-checked="true"] { background: transparent; }
.vo-call-menu .vo-icon-row button[data-incoming-video-toggle][aria-checked="true"] :is(svg, small) { color: var(--vo-muted); }
.vo-call-menu .vo-icon-row button[data-incoming-video-toggle][data-off="true"] { background: color-mix(in srgb, var(--vo-accent) 12%, transparent); }
.vo-call-menu .vo-icon-row button[data-incoming-video-toggle][data-off="true"] :is(svg, small) { color: var(--vo-accent); }

.vo-call-menu :is(.vo-call-view-menu, .vo-call-audio-menu) button,
.vo-call-view-menu button, .vo-call-audio-menu button { align-items: center; gap: 12px; padding: 8px 10px; }
.vo-call-view-menu button svg, .vo-call-audio-menu button svg {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--vo-hover); color: var(--vo-ink);
}
.vo-call-view-menu button > span, .vo-call-audio-menu button > span { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.vo-call-view-menu button strong, .vo-call-audio-menu button strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-call-view-menu button small, .vo-call-audio-menu button small { color: var(--vo-muted); font-size: 12px; }
.vo-call-view-menu button.checked::before, .vo-call-audio-menu button.checked::before { content: none; }
.vo-call-view-menu button.checked, .vo-call-audio-menu button.checked { background: color-mix(in srgb, var(--vo-accent) 9%, transparent); }
.vo-call-view-menu button.checked svg, .vo-call-audio-menu button.checked svg { background: var(--vo-accent); color: #fff; }
.vo-call-view-menu button.checked::after, .vo-call-audio-menu button.checked::after {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-left: auto;
  background: var(--vo-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vo-call-overlay[data-compact="true"] .vo-call-viewpick { display: none; }

/* ---------- Call More menu: grouped sections (2026-11-20) ---------- */
.vo-call-menu.vo-call-more-menu { min-width: 19rem; max-width: 22rem; padding: 6px 8px 8px; }
.vo-call-more-menu .vo-call-msec + .vo-call-msec { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--vo-line); }
.vo-call-more-menu .vo-call-menu-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0; padding: 8px 4px 6px; color: var(--vo-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.vo-call-more-menu .vo-call-menu-label span { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.vo-call-more-menu .vo-call-mchips { display: flex; gap: 8px; }
.vo-call-more-menu .vo-call-mchips button {
  flex: 0 0 auto; width: auto; justify-content: center; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--vo-line); border-radius: 999px; background: var(--vo-panel); font-size: 14px; font-weight: 600;
}
.vo-call-more-menu .vo-call-mchips button:first-child { flex: 1 1 auto; }
.vo-call-more-menu .vo-call-mchips button span { font-size: 18px; line-height: 1; }
.vo-call-more-menu .vo-call-mchips button.on { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.vo-call-more-menu .vo-call-mtiles { display: grid; gap: 8px; }
.vo-call-more-menu .vo-call-mtiles.two { grid-template-columns: 1fr 1fr; }
.vo-call-more-menu .vo-call-mtiles.four { grid-template-columns: repeat(4, 1fr); }
.vo-call-more-menu .vo-call-mtiles.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vo-call-more-menu .vo-call-mtiles button {
  display: grid; justify-items: center; align-content: center; gap: 3px; width: auto; min-height: 72px; padding: 10px 4px;
  border: 1px solid var(--vo-line); border-radius: 12px; background: var(--vo-panel); text-align: center;
}
.vo-call-more-menu .vo-call-mtiles button svg { width: 24px; height: 24px; color: var(--vo-muted); }
.vo-call-more-menu .vo-call-mtiles button strong { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.vo-call-more-menu .vo-call-mtiles button small { color: var(--vo-muted); font-size: 11px; }
.vo-call-more-menu .vo-call-mtiles button.checked {
  border-color: var(--vo-accent); background: color-mix(in srgb, var(--vo-accent) 9%, var(--vo-panel));
  box-shadow: 0 0 0 1px var(--vo-accent) inset; color: var(--vo-accent);
}
.vo-call-more-menu .vo-call-mtiles button.checked svg { color: var(--vo-accent); }
.vo-call-more-menu .vo-call-mtiles button.checked::before { content: none; }
.vo-call-more-menu .vo-call-mrows { display: grid; gap: 2px; }
.vo-call-more-menu .vo-call-mrows button { align-items: center; gap: 12px; padding: 6px 6px; }
.vo-call-more-menu .vo-call-mrows button svg { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--vo-hover); color: var(--vo-ink); }
.vo-call-more-menu .vo-call-mrows button > span { display: grid; gap: 1px; min-width: 0; }
.vo-call-more-menu .vo-call-mrows button strong { font-size: 14px; font-weight: 600; }
.vo-call-more-menu .vo-call-mrows button small { color: var(--vo-muted); font-size: 12px; }
/* View button: icon only, the same size as the header's other square buttons (Umar). */
.vo-call-viewbtn { width: 40px; height: 40px; padding: 0; justify-content: center; }
.vo-call-viewbtn .vo-call-viewico { width: 21px; height: 21px; }

.vo-call-more-menu .vo-call-msec-phone { display: none; }
.vo-call-more-menu .vo-call-mtiles.three { grid-template-columns: repeat(3, 1fr); }
.vo-call-more-menu .vo-call-memoji { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
.vo-call-more-menu .vo-call-memoji button { flex: 1 1 0; width: auto; justify-content: center; min-height: 42px; padding: 0; border-radius: 12px; background: var(--vo-hover); font-size: 20px; }

/* ---------- Guest link bar ---------- */
.vo-shell .vo-guest-links { flex-wrap: nowrap; gap: 8px; align-items: center; min-width: 0; }
.vo-shell .vo-guest-new {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px;
  border: 1px solid var(--vo-line); border-radius: 999px; background: var(--vo-panel);
  color: var(--vo-ink); font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.vo-shell .vo-guest-new svg, .vo-shell .vo-guest-field > svg { width: 15px; height: 15px; flex: none; }
.vo-shell .vo-guest-new:hover { border-color: var(--vo-accent); color: var(--vo-accent); }
.vo-shell .vo-guest-field {
  display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; max-width: 26rem;
  height: 32px; padding: 0 3px 0 10px; border: 1px solid var(--vo-line); border-radius: 999px;
  background: var(--vo-panel); color: var(--vo-muted);
}
.vo-shell .vo-guest-field .vo-guest-url {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--vo-ink); font-size: 0.78rem; text-overflow: ellipsis;
}
.vo-shell .vo-guest-field .vo-guest-url:focus { outline: none; }
.vo-shell .vo-guest-copy {
  flex: none; height: 26px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--vo-accent); color: #fff; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.vo-shell .vo-guest-revoke {
  flex: none; border: 0; background: transparent; padding: 4px 6px; color: var(--vo-muted);
  font-size: 0.76rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.vo-shell .vo-guest-revoke:hover { color: #b42318; }

/* Plan limits: the upgrade prompt and the "comes with a higher plan" notes. */
.vo-plan-prompt { z-index: 1201; }
.vo-people-scrim:has(+ .vo-plan-prompt) { z-index: 1200; }
.vo-plan-prompt-text { margin: 0; font-size: 14px; line-height: 1.45; }
.vo-plan-prompt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vo-plan-prompt-actions .vo-btn { text-decoration: none; }
.vo-plan-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; padding: 8px 12px;
  border-radius: 10px; background: var(--vo-accent-soft); color: var(--vo-ink); font-size: 13px; line-height: 1.4;
}
.vo-plan-note a { color: var(--vo-accent); font-weight: 600; white-space: nowrap; }
.vo-plan-usage, .vo-plan-features { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.vo-plan-usage li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.vo-plan-usage li span { color: var(--vo-muted); }
.vo-plan-features li { font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.vo-plan-features li.off { color: var(--vo-muted); }
.vo-plan-features li small { margin-left: auto; font-weight: 600; color: var(--vo-accent); }

/* ---- Chat formatting toolbar (ChatFormatBar.razor, chat-format.js) ----
   Under the chat box in the chat panel, thread replies, chat popups and call chat, and in the
   Inbox's tool row. Desktop: always shown, with tooltips naming the shortcut. Phones: shown
   while the box is focused, as one scrolling strip, so it never covers the keyboard or Send. */
.vo-fmt {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.vo-chat-compose .vo-fmt,
.vo-pop-compose .vo-fmt { padding: 3px 2px 0; }
.vo-fmt__tools {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.vo-fmt__end {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}
.vo-fmt .vo-fmt__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vo-muted);
  cursor: pointer;
}
.vo-fmt .vo-fmt__btn:hover:not(:disabled),
.vo-fmt .vo-fmt__btn.on { background: var(--vo-hover); color: var(--vo-ink); }
.vo-fmt .vo-fmt__btn:disabled { opacity: 0.45; cursor: default; }
.vo-fmt .vo-fmt__btn .vo-glyph { width: 16px; height: 16px; }
.vo-fmt__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--vo-line);
}
.vo-fmt__more { position: relative; display: inline-flex; }
.vo-fmt__extra { display: none; }
.vo-fmt__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 30;
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow);
  transform: translateX(-50%);
}

/* Tooltip: the shortcut's keys on top, the name below. */
.vo-fmt-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid var(--vo-line);
  border-radius: 10px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow);
  color: var(--vo-ink);
  font: 500 13px/1.2 var(--vo-font, inherit);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
.vo-fmt__tools > .vo-fmt__btn:first-child .vo-fmt-tip { left: 0; transform: none; }
.vo-fmt-tip--end { right: 0; left: auto; transform: none; }
.vo-fmt-tip__keys { display: flex; gap: 3px; }
.vo-fmt-tip kbd {
  padding: 3px 6px;
  border: 1px solid var(--vo-line);
  border-radius: 5px;
  background: var(--vo-hover);
  color: var(--vo-muted);
  font: 500 11px/1 var(--vo-font, inherit);
}
.vo-mac-keys .vo-fmt-tip kbd.vo-fmt-mod { font-size: 0; }
.vo-mac-keys .vo-fmt-tip kbd.vo-fmt-mod::after { content: "\2318"; font-size: 11px; }
@media (hover: hover) {
  .vo-fmt .vo-fmt__btn:hover:not(:disabled) > .vo-fmt-tip { display: flex; }
  .vo-fmt .vo-fmt__btn.on > .vo-fmt-tip { display: none; }
}

/* Recording a voice note: discard, live waveform, timer, send. */
.vo-fmt__rec {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 1px 2px;
}
.vo-fmt__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vo-danger, #dc2626);
  animation: vo-fmt-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes vo-fmt-pulse { from { opacity: 1; } to { opacity: 0.35; } }
.vo-fmt__wave { flex: 1 1 auto; min-width: 40px; width: 100%; height: 24px; }
.vo-fmt__time { flex: 0 0 auto; color: var(--vo-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vo-fmt .vo-fmt__send {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vo-accent);
  color: #fff;
  cursor: pointer;
}
.vo-fmt .vo-fmt__send:disabled { opacity: 0.6; }
.vo-fmt__error { flex: 1 0 100%; margin: 2px 4px 0; color: var(--vo-danger, #dc2626); font-size: 12px; }

/* Inbox: the toolbar sits inline in the tool row, before attach, poll and emoji. */
.vo-fmt--inline { flex: 0 1 auto; flex-wrap: nowrap; }
.vo-fmt--inline .vo-fmt__tools { flex: 0 1 auto; }
.vo-fmt--inline .vo-fmt__end { margin-left: 0; }
.vo-fmt--inline.recording { flex: 1 1 auto; }
.vo-ain-compose .vo-ain-tools:has(.vo-fmt) { overflow: visible; }
.vo-ain-compose .vo-ain-tools .vo-fmt .vo-fmt__btn { width: 30px; height: 30px; border-radius: 8px; }

/* Phones: only while typing, one scrolling strip, bigger targets, extras inline. */
html:is(.vo-phone, .vo-narrow) [data-fmt-scope]:not(:focus-within) .vo-fmt:not(.recording):not(:has(.vo-fmt__error)) { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-fmt { flex-wrap: nowrap; }
html:is(.vo-phone, .vo-narrow) .vo-fmt__tools {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
html:is(.vo-phone, .vo-narrow) .vo-fmt__tools::-webkit-scrollbar { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-fmt .vo-fmt__btn { width: 34px; height: 34px; }
html:is(.vo-phone, .vo-narrow) .vo-fmt .vo-fmt__btn .vo-glyph { width: 18px; height: 18px; }
html:is(.vo-phone, .vo-narrow) .vo-fmt__more { display: none; }
html:is(.vo-phone, .vo-narrow) .vo-fmt__extra { display: contents; }
html:is(.vo-phone, .vo-narrow) .vo-fmt-tip { display: none !important; }
html:is(.vo-phone, .vo-narrow) .vo-fmt--inline { flex: 1 1 auto; }
html:is(.vo-phone, .vo-narrow) .vo-fmt--inline .vo-fmt__tools { flex: 1 1 0; }
html:is(.vo-phone, .vo-narrow) .vo-ain-compose .vo-ain-tools .vo-fmt .vo-fmt__btn { width: 34px; height: 34px; }

/* ---- Formatted messages (ChatMessageBody) ---- */
.vo-md {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  white-space: normal;
}
.vo-md-p,
.vo-md-quote,
.vo-md-list > li,
.vo-md-table :is(th, td) { white-space: pre-wrap; overflow-wrap: anywhere; }
.vo-md-list { margin: 0; padding-left: 1.45em; }
.vo-md-list > li + li { margin-top: 1px; }
.vo-md-quote {
  margin: 0;
  padding: 1px 0 1px 10px;
  border-left: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  color: color-mix(in srgb, currentColor 85%, transparent);
}
.vo-md-code {
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre;
}
.vo-md .vo-md-code code { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; }
.vo-md-table-wrap { max-width: 100%; overflow-x: auto; }
.vo-md-table { border-collapse: collapse; font-size: 0.92em; }
.vo-md-table :is(th, td) {
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  text-align: left;
  vertical-align: top;
}
.vo-md-table th { background: color-mix(in srgb, currentColor 7%, transparent); font-weight: 600; }

/* The Windows app's own screen share picker (ScreenSharePicker.razor) */
.vo-people-scrim.vo-share-scrim { z-index: 10010; }
.vo-people-pick.vo-share-pick { z-index: 10011; top: 8vh; width: min(760px, calc(100vw - 32px)); max-height: 84vh; outline: none; }
.vo-share-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--vo-line); align-self: flex-start; }
.vo-share-tabs button {
  padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--vo-muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vo-share-tabs button.is-on { background: var(--vo-panel); color: var(--vo-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vo-share-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
  min-height: 180px; overflow-y: auto; padding: 2px;
}
.vo-share-empty { grid-column: 1 / -1; align-self: center; text-align: center; }
.vo-share-pick footer { align-items: center; }
.vo-share-mode {
  margin-right: auto; display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 10px; background: var(--vo-soft, rgba(127, 127, 127, 0.12));
}
.vo-share-mode-label { font-size: 12.5px; color: var(--vo-muted, #64748b); padding: 0 8px 0 6px; }
.vo-share-mode button {
  border: 0; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 8px; cursor: pointer;
}
.vo-share-mode button.is-on { background: var(--vo-accent, #4d8bff); color: var(--vo-accent-ink, #fff); }
.vo-share-card {
  display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid transparent; border-radius: 12px;
  background: transparent; color: var(--vo-ink); font: inherit; text-align: left; cursor: pointer; min-width: 0;
}
.vo-share-card:hover { background: var(--vo-accent-soft); }
.vo-share-card.is-on { border-color: var(--vo-accent); background: var(--vo-accent-soft); }
.vo-share-card:focus-visible { outline: 2px solid var(--vo-accent); outline-offset: 2px; }
.vo-share-thumb {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  background: #0f172a; color: #94a3b8; border: 1px solid var(--vo-line);
}
.vo-share-thumb img { width: 100%; height: 100%; object-fit: contain; }
.vo-share-thumb img.vo-share-thumb-icon { width: 48px; height: 48px; }
.vo-share-thumb svg { width: 40px; height: 40px; }
.vo-share-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.vo-share-name img { width: 16px; height: 16px; flex: none; }
.vo-share-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A message shown the moment Send is pressed, before the server has it. */
.vo-msg--sending, .vo-pop-msg.sending, .vo-ain-msg.sending, .vo-guest-msg.sending { opacity: 0.6; }
.vo-msg--failed, .vo-pop-msg.failed, .vo-ain-msg.failed { opacity: 1; }
.vo-send-state { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--vo-muted, #6b7280); margin-top: 2px; }
.vo-send-state.failed { color: #c0392b; }
.vo-send-state button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }

/* Inbox: the message ⋮ menu sits last in the hover bar, as one of its icon buttons. While it is
   open the bar stays visible and above the composer, so the placed menu (or the phone bottom
   sheet) is not covered. */
.vo-ain-hover .vo-msg-more {
  position: static;
}

/* The bar's quick reaction buttons are z-index 7; the open menu (and the phone sheet and scrim
   inside it) must stack above them, or the emoji row is drawn over the menu items. */
.vo-ain-hover .vo-msg-more.open {
  z-index: 20;
}

.vo-ain-hover .vo-msg-kebab {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vo-muted);
  opacity: 1;
}

.vo-ain-hover .vo-msg-kebab:hover,
.vo-ain-hover .vo-msg-more.open .vo-msg-kebab {
  background: var(--vo-accent-soft);
  color: var(--vo-link);
}

.vo-ain-msg .vo-ain-hover.open {
  z-index: 210;
}

/* ---------- Chat panel messages on wide screens: bubbles grouped by sender ----------
   The side chat showed every message as the same flat row, so runs of messages blurred together.
   Now, like the chat popup and the phone layout: a photo, name and time start each person's run,
   follow-ups sit tight under it, your own messages are accent bubbles on the right, days get a
   divider, and files sit under the text bubble. Phones (html.vo-phone / .vo-narrow) keep the
   bubble rules in mobile.css. Colours come from theme tokens, so light and dark both work. */
.vo-msg-av { display: none; }

:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-chat-stack { gap: 0; }

:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-day-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 8px 6px;
  color: var(--vo-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-day-sep::before,
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-day-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vo-line);
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-day-sep span {
  padding: 2px 10px;
  border: 1px solid var(--vo-line);
  border-radius: 999px;
  background: var(--vo-panel);
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-chat-stack > .vo-day-sep:first-child,
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-earlier + .vo-day-sep { margin-top: 6px; }

/* A row: the gutter on the left holds their photo; the content stacks (name, bubble, file, reactions). */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0 28px 0 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.875rem;
  line-height: 1.42;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--cont { margin-top: 2px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg:hover,
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.menu-open { background: transparent; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine {
  align-items: flex-end;
  padding: 0 8px 0 52px;
}

:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-av {
  position: absolute;
  top: 1px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name and time on the first message of a run; your own runs show just the time. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg > .meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  margin: 0 2px 3px;
  font-size: 0.72rem;
  line-height: 1.25;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg > .meta strong {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-sep,
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine > .meta strong { display: none; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-time { font-variant-numeric: tabular-nums; }

/* Follow-ups: no header. Hovering one of theirs shows its time in the photo gutter. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--cont > .meta { display: none; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--theirs.vo-msg--cont:hover > .meta {
  position: absolute;
  top: 9px;
  left: 0;
  display: block;
  width: 46px;
  margin: 0;
  text-align: center;
  font-size: 0.62rem;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--theirs.vo-msg--cont:hover > .meta > :not(.vo-msg-time) { display: none; }

/* The bubble. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 6px 11px 7px;
  border: 1px solid color-mix(in srgb, var(--vo-ink) 7%, transparent);
  border-radius: 4px 16px 16px 16px;
  background: color-mix(in srgb, var(--vo-ink) 6%, var(--vo-panel));
  color: var(--vo-ink);
  overflow-wrap: anywhere;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--cont .vo-msg-bubble { border-radius: 16px; border-top-left-radius: 6px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble {
  border-color: transparent;
  border-radius: 16px 4px 16px 16px;
  background: var(--vo-accent);
  color: var(--vo-accent-ink, #fff);
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine.vo-msg--cont .vo-msg-bubble { border-radius: 16px; border-top-right-radius: 6px; }

/* Polls and replay cards are cards already; they don't get a bubble around them. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble:is(.vo-msg-bubble--card, :has(> .vo-msg-text > :is(.vo-poll, .vo-cast-card))) {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
}

:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble--deleted {
  border: 1px dashed var(--vo-line);
  background: transparent;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble--deleted {
  border-color: var(--vo-line);
  background: transparent;
  color: var(--vo-muted);
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble--deleted .vo-msg-deleted { font-size: 0.82rem; }

/* Links, mentions, code and quoted blocks stay readable on the accent bubble. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble :is(a, .vo-msg-link) { color: inherit; text-decoration: underline; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-mention {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble :is(pre, code, .vo-md-code) { max-width: 100%; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble pre { overflow-x: auto; white-space: pre-wrap; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble :is(pre, code, .vo-md-code) {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-md-quote { border-left-color: rgba(255, 255, 255, 0.55); color: inherit; }

/* Reply quote: a tinted strip at the top of the bubble. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble .vo-quote {
  width: 100%;
  margin: 1px 0 5px;
  padding: 4px 8px;
  border-left-width: 3px;
  border-radius: 4px 8px 8px 4px;
  background: color-mix(in srgb, var(--vo-accent) 10%, var(--vo-panel));
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote {
  border-left-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote:hover { background: rgba(255, 255, 255, 0.24); }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote :is(.vo-quote__who, .vo-quote__who strong, .vo-quote__text, .vo-quote__text.muted, .vo-quote__tag) { color: inherit; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote__who { opacity: 0.85; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote__file {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-bubble .vo-quote__file .vo-glyph { color: inherit; }

/* Files, images and voice notes: their own card under the text, on the same side. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-file { align-items: flex-end; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-bubble + .vo-msg-file { margin-top: 4px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file .vo-msg-preview {
  max-width: min(100%, 260px);
  max-height: 220px;
  margin: 0;
  border: 1px solid var(--vo-line);
  border-radius: 12px;
  object-fit: cover;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file .vo-voice { width: min(260px, 100%); }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file :is(a.vo-btn, .hint, .vo-ain-sub) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file a.vo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-file .vo-ain-sub { color: var(--vo-muted); font-size: 0.72rem; }

/* Reactions, thread link, seen and send state: small and on the bubble's side. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-reactions { gap: 4px; margin-top: 4px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--mine .vo-msg-reactions { justify-content: flex-end; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-react {
  min-width: 0;
  min-height: 24px;
  padding: 0 8px;
  gap: 4px;
  border-color: var(--vo-line);
  background: var(--vo-panel);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-react:hover { border-color: color-mix(in srgb, var(--vo-ink) 25%, var(--vo-line)); }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-react.mine {
  border-color: color-mix(in srgb, var(--vo-accent) 55%, transparent);
  background: var(--vo-accent-soft);
  color: var(--vo-link, var(--vo-accent));
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-actions { margin-top: 4px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-seen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px 2px 0;
  color: var(--vo-muted);
  font-size: 0.7rem;
}

:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-send-state {
  gap: 6px;
  margin: 3px 2px 0;
  font-size: 0.72rem;
  line-height: 1.3;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-send-state.failed { color: var(--vo-danger); font-weight: 600; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-send-state.failed > span::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--vo-danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  vertical-align: -2px;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-send-state.failed button {
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--vo-danger) 45%, transparent);
  border-radius: 999px;
  text-decoration: none;
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-send-state.failed button:hover { background: color-mix(in srgb, var(--vo-danger) 12%, transparent); }

/* Sending: only the bubble fades, the status line stays legible. Not sent: a red edge on the bubble. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.vo-msg--sending { opacity: 1; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--sending :is(.vo-msg-bubble, .vo-msg-file) { opacity: 0.7; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--failed .vo-msg-bubble { box-shadow: 0 0 0 2px var(--vo-danger); }

/* Bookmarked and jumped-to messages mark the bubble, not the whole row. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.bookmarked { box-shadow: none; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.bookmarked .vo-msg-bubble { box-shadow: 0 0 0 2px var(--ro-busy, #f59e0b); }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.vo-msg-highlight { outline: 0; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.vo-msg-highlight :is(.vo-msg-bubble, .vo-msg-file) { box-shadow: 0 0 0 2px var(--vo-focus); border-radius: 16px; }

/* Thread replies are bubbles too; the original message card stays above them. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg.vo-msg--reply { margin-left: 0; border-left: 0; border-radius: 0; }

/* Hover tools float over the top corner of the row as one small bar: react, reply, then the ⋮. */
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-more { top: -12px; right: 6px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-quick { top: -12px; right: 32px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--first .vo-msg-more,
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg--first .vo-msg-quick { top: -4px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-quick {
  padding: 1px;
  border: 1px solid var(--vo-line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.12));
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-quick-btn { width: 24px; height: 24px; background: transparent; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-kebab {
  width: 26px;
  height: 28px;
  border: 1px solid var(--vo-line);
  border-radius: 8px;
  background: var(--vo-panel);
  box-shadow: var(--vo-shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.12));
}
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg:hover .vo-msg-kebab { border-radius: 0 8px 8px 0; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg:not(:has(.vo-msg-quick)) .vo-msg-kebab { border-radius: 8px; }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg-kebab:hover { color: var(--vo-ink); }
:root:not(.vo-phone, .vo-narrow) .vo-chat-pane .vo-msg:not(.vo-msg--mine) .vo-msg-menu { right: 0; }

/* Call buttons answer the finger at once: the button dips while it is pressed, before the
   call has carried the tap out (the new state then shows on release). */
.vo-call-btn,
.vo-call-chevron { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.vo-call-btn:active,
.vo-call-chevron:active { transform: scale(0.9); filter: brightness(0.9); transition: transform 0s, filter 0s; }

/* ---------- Call stage fixes from the 2026-12-01 call test ----------
   1. Screen share on a computer: the shared screen was capped at 200px high, so a 1080p
      screen showed as a small letterboxed strip while camera tiles took the rest (and the
      last camera tile was cut off under the controls). Now the screen takes the stage and
      the cameras sit in a short row under it (livekit-bridge.js fits the tiles to that row). */
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage:has(> .vo-screen-share:not([hidden])) .vo-screen-share {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  gap: 0.5rem;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage:has(> .vo-screen-share:not([hidden])) .vo-screen-box {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage:has(> .vo-screen-share:not([hidden])) .vo-screen-share video {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="false"] .vo-call-stage:has(> .vo-screen-share:not([hidden])) .vo-participant-tiles {
  flex: 0 0 clamp(72px, 17vh, 140px);
}
/* 2. Small call box on a computer: your own floating video covered the right-hand person's
      tile and name. Their tiles now leave room for it on the right. */
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="true"] .vo-call-stage:has(> .vo-self-view:is([data-mode="float"], [data-mode="icon"]):not([hidden])) .vo-participant-tiles:not(:empty) {
  margin-right: calc(min(30%, 96px) + 8px);
}
/* 3. Small audio call box: the 72px name tiles had a 48px avatar with 2.1rem letters, so the
      circle and initials were cut off by the name bar. Smaller avatar, sized to the tile. */
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="true"][data-call="audio"] .vo-tile-avatar {
  width: 32px;
  font-size: 0.78rem;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay[data-compact="true"][data-call="audio"] .vo-tile-fallback { padding-top: 8px; }
/* 4. Small call box: the raised-hands pills sat over the top-right video tile, so on a phone
      "✋ 1. Sam" looked like it belonged to whoever's tile was under it. They now take their
      own line under the videos (each tile still shows its own ✋ badge). */
.vo-call-overlay[data-compact="true"] .vo-hand-strip {
  position: static;
  justify-content: flex-start;
  max-width: none;
  margin: 6px 0 0;
}

/* Message receipts (ChatReceipt): Sent, Delivered, Seen, Listened, Watched under my own messages. */
.vo-receipt { display: flex; align-items: center; gap: 4px; width: fit-content; margin-top: 2px; font-size: 0.74rem; line-height: 1.2; color: var(--vo-muted, #6b7280); }
.vo-receipt svg { flex: none; }
.vo-receipt.is-read svg { color: var(--vo-link, #2563eb); }
.vo-pop-msg .vo-receipt, .vo-msg--mine .vo-receipt { margin-left: auto; }

/* Inbox: edit a sent message in place, "(edited)" marker, folder rename/delete */
.vo-ain-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-width: 720px; }
.vo-ain-edit textarea { width: 100%; min-height: 56px; resize: vertical; font: inherit; }
.vo-ain-edit__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vo-ain-edit__row .vo-btn { padding: 4px 12px; min-height: 30px; }
.vo-ain-edited { font-size: 11px; color: var(--vo-muted); margin-left: 6px; }
.vo-ain-folder-head { cursor: default; }
.vo-ain-folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-ain-folder-input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.9rem; padding: 2px 6px; border-radius: 6px;
  border: 1px solid var(--vo-accent); background: var(--vo-panel); color: var(--vo-ink); outline: none;
}
.vo-ain-folder-btn {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; padding: 0;
  background: transparent; color: var(--vo-muted); cursor: pointer; opacity: 0; transition: opacity .12s, background .12s;
}
.vo-ain-folder-btn .vo-glyph { width: 14px; height: 14px; }
.vo-ain-folder-head:hover .vo-ain-folder-btn, .vo-ain-folder-btn:focus-visible { opacity: 1; }
.vo-ain-folder-btn:hover { background: var(--vo-accent-soft); color: var(--vo-accent); }
@media (hover: none) { .vo-ain-folder-btn { opacity: 1; } }

/* Inbox: typing line, upload state, file drop, group picture */
.vo-ain-typing { display: flex; align-items: center; gap: 6px; margin: 0 0 4px 4px; font-size: 12px; color: var(--vo-muted); }
.vo-ain-typing-dots { display: inline-flex; gap: 3px; }
.vo-ain-typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--vo-muted); animation: vo-ain-typing 1.2s infinite ease-in-out; }
.vo-ain-typing-dots i:nth-child(2) { animation-delay: .15s; }
.vo-ain-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vo-ain-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .vo-ain-typing-dots i, .vo-ain-file-spin { animation: none; } }
.vo-ain-file-chip em { font-style: normal; color: var(--vo-muted); white-space: nowrap; }
.vo-ain-file-chip.uploading { padding-right: 0.6rem; color: var(--vo-accent); }
.vo-ain-file-spin { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; border: 2px solid var(--vo-accent-soft); border-top-color: var(--vo-accent); animation: vo-ain-spin .8s linear infinite; }
@keyframes vo-ain-spin { to { transform: rotate(360deg); } }
.vo-ain-drop-hint { display: none; }
.vo-ain-main.vo-ain-dragging .vo-ain-box { border-color: var(--vo-accent); border-style: dashed; box-shadow: 0 0 0 3px var(--vo-accent-soft); }
.vo-ain-main.vo-ain-dragging .vo-ain-drop-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px; position: absolute; inset: 0; z-index: 5;
  border-radius: inherit; background: color-mix(in srgb, var(--vo-panel) 92%, var(--vo-accent)); color: var(--vo-accent);
  font-size: 13px; font-weight: 600; pointer-events: none;
}
.vo-ain-members-photo {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 8px;
  color: var(--vo-ink); font-size: 13px; cursor: pointer; overflow: hidden;
}
.vo-ain-members-photo:hover { background: var(--vo-accent-soft); }
.vo-ain-members-photo input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.vo-ain-members-photo .vo-glyph, .vo-ain-members-menu > button .vo-glyph { width: 15px; height: 15px; }
.vo-ain-sec-title .vo-ain-count { margin-left: auto; }
.vo-ain-mav { position: relative; overflow: hidden; }

/* Quick reactions in the message hover bar */
.vo-quick-react { display: inline-flex; align-items: center; gap: 1px; padding-right: 3px; margin-right: 2px; border-right: 1px solid var(--vo-line); }
.vo-ain-msg .vo-ain-hover .vo-quick-react__btn { font-size: 16px; line-height: 1; padding: 0; transition: transform .1s; }
.vo-ain-msg .vo-ain-hover .vo-quick-react__btn:hover { transform: scale(1.2); background: var(--vo-accent-soft); }
@media (prefers-reduced-motion: reduce) { .vo-ain-msg .vo-ain-hover .vo-quick-react__btn:hover { transform: none; } }
/* Phones have room for four quick reactions next to the other actions. */
@media (max-width: 760px) { .vo-quick-react__btn:nth-child(n+5) { display: none; } }
html.vo-phone .vo-quick-react__btn:nth-child(n+5) { display: none; }

/* Still sending: a small clock where the ticks will go (ChatSendStatus), like WhatsApp. */
.vo-send-state[data-send-state="sending"] { width: fit-content; }
.vo-pop-msg .vo-send-state[data-send-state="sending"], .vo-msg--mine .vo-send-state[data-send-state="sending"] { margin-left: auto; }

/* ---------- Side bar chat: a list that is never squashed, and a draggable divider ---------- */
/* The list used to shrink with the (much taller) message log, leaving rows cut in half.
   It now keeps its own height: up to a third of the panel by default, or whatever the
   person dragged it to (chat-split.js sets --vo-chat-list-h). */
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-list {
  flex: 0 0 auto;
  border-bottom: 0;
  scrollbar-width: thin;
}
html.vo-chat-list-sized:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-list {
  height: var(--vo-chat-list-h);
  min-height: 64px;
  max-height: calc(100% - 260px);
}
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-list .vo-chat-item { flex: none; min-width: 0; }
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-item-top { min-width: 0; }
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-item-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-chat-preview { display: block; max-width: 100%; }

.vo-chat-split {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  height: 10px;
  cursor: row-resize;
  touch-action: none;
  outline: none;
}
.vo-chat-split::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--vo-line);
  transition: background 0.12s, height 0.12s;
}
.vo-chat-split > span {
  position: relative;
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: var(--vo-line);
  transition: background 0.12s, width 0.12s;
}
.vo-chat-split:hover::before,
.vo-chat-split:focus-visible::before,
html.vo-chat-splitting .vo-chat-split::before { height: 2px; margin-top: -0.5px; background: var(--vo-accent, #2563eb); }
.vo-chat-split:hover > span,
.vo-chat-split:focus-visible > span,
html.vo-chat-splitting .vo-chat-split > span { width: 40px; background: var(--vo-accent, #2563eb); }
html.vo-chat-splitting, html.vo-chat-splitting * { cursor: row-resize !important; user-select: none !important; }
/* Phones show the list and the conversation as separate screens: nothing to resize. */
html:is(.vo-phone, .vo-narrow) .vo-chat-split { display: none; }

/* Hide chat / Show chat: panel icons with an arrow showing where the panel goes. */
@media (min-width: 761px) {
  html:not(.vo-phone) .vo-shell .vo-chat-collapse { display: grid; place-items: center; }
}
.vo-shell .vo-chat-collapse svg { width: 17px; height: 17px; }

/* ---------- Room card ⋯ menu (VoRoomCard MenuItems) ----------
   A popover under the ⋯ button: one row per action, each with an icon, a label and a short
   hint, so the list can grow without redesign. Phones show it as a bottom sheet (mobile.css). */
.vo-shell .vo-room-menu-scrim { display: none; }
.vo-shell .vo-room .vo-room-menu {
  /* Opens from the card's left edge towards the map's middle, so it is never cut by the map's edge. */
  top: 2.3rem;
  left: 0.5rem;
  right: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-panel);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
  text-align: left;
  cursor: default;
  animation: vo-room-menu-in 0.14s ease-out;
}
@keyframes vo-room-menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.vo-shell .vo-room-menu__head { display: none; }
/* Cards clip their content; while the menu is open the card lets it hang out and sits on top. */
.vo-shell .vo-room:has(> .vo-room-menu) { overflow: visible; z-index: 30; }
.vo-shell .vo-room .vo-room-menu .vo-room-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.vo-shell .vo-room .vo-room-menu .vo-room-menu__item:hover,
.vo-shell .vo-room .vo-room-menu .vo-room-menu__item:focus-visible { background: var(--vo-hover); outline: none; }
.vo-shell .vo-room-menu__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--vo-accent) 10%, transparent);
  color: var(--vo-accent);
}
.vo-shell .vo-room-menu__icon .vo-glyph { width: 17px; height: 17px; }
.vo-shell .vo-room-menu__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vo-shell .vo-room-menu__label { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.vo-shell .vo-room-menu__hint { font-size: 0.74rem; line-height: 1.3; color: var(--vo-muted); }
.vo-shell .vo-room-menu__item.is-danger .vo-room-menu__icon { background: color-mix(in srgb, var(--vo-danger, #dc2626) 10%, transparent); color: var(--vo-danger, #dc2626); }
.vo-shell .vo-room-menu__item.is-danger .vo-room-menu__label { color: var(--vo-danger, #dc2626); }

/* ---------- Status picker (OfficeShell header) ----------
   A styled list instead of the browser's own select: a coloured dot, the status, what it does
   and a tick on the current one. A popover under the pill; a bottom sheet on phones (mobile.css). */
.vo-shell .vo-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.vo-shell .vo-status-btn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-shell .vo-status-btn__chev { flex: 0 0 auto; color: var(--vo-muted); transition: transform 0.15s; }
.vo-shell .vo-status-btn[aria-expanded="true"] .vo-status-btn__chev { transform: rotate(180deg); }
.vo-shell .vo-status-scrim { display: none; }
.vo-shell .vo-status-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 292px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border: 1px solid var(--vo-line);
  border-radius: 14px;
  background: var(--vo-panel);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
  animation: vo-room-menu-in 0.14s ease-out;
}
.vo-shell .vo-status-menu__head {
  padding: 6px 10px 6px;
  color: var(--vo-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vo-shell .vo-status-menu__grip { display: none; }
.vo-shell .vo-status-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vo-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vo-shell .vo-status-opt:hover,
.vo-shell .vo-status-opt:focus-visible { background: var(--vo-hover); outline: none; }
.vo-shell .vo-status-opt.is-on { background: color-mix(in srgb, var(--vo-accent) 8%, transparent); }
.vo-shell .vo-status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ro-live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ro-live) 18%, transparent);
}
.vo-shell .vo-status-dot:is([data-status="Busy"], [data-status="KnockRequired"]) { background: var(--ro-busy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ro-busy) 18%, transparent); }
.vo-shell .vo-status-dot[data-status="Away"] { background: var(--ro-away); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ro-away) 18%, transparent); }
.vo-shell .vo-status-dot[data-status="DoNotDisturb"] { background: var(--ro-dnd); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ro-dnd) 18%, transparent); }
.vo-shell .vo-status-opt__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.vo-shell .vo-status-opt__label { font-size: 0.84rem; font-weight: 600; line-height: 1.3; }
.vo-shell .vo-status-opt__hint { font-size: 0.74rem; line-height: 1.3; color: var(--vo-muted); }
.vo-shell .vo-status-opt__check { flex: 0 0 auto; color: var(--vo-accent); }
@media (max-width: 760px) {
  .vo-shell .vo-status-btn { flex: 1 1 auto; justify-content: space-between; }
}

/* ---------- Room hover: free seats ----------
   Desktop hover on a room with people (or the lounge, always): grey circles for the free
   seats beside the people there; hovering one shows your initials, a click sits you down
   (or knocks). Empty meeting rooms and offices show the chat circle in the first seat's
   place instead. Phones and touch screens show neither. */
.vo-seat-slot { display: none; }
@media (hover: hover) and (pointer: fine) {
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room:hover .vo-seat-slot {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 48px;
    cursor: pointer;
    animation: vo-seat-in 0.14s ease-out both;
  }
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-seat-slot::before {
    content: "";
    grid-area: 1 / 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--vo-ink) 6%, var(--ro-tile, var(--vo-panel)));
    transition: background 0.12s, box-shadow 0.12s;
  }
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-seat-slot:hover::before {
    background: color-mix(in srgb, var(--vo-accent) 14%, var(--ro-tile, var(--vo-panel)));
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--vo-accent) 45%, transparent);
  }
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-seat-slot__me {
    grid-area: 1 / 1;
    position: relative;
    color: var(--vo-accent);
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.12s;
  }
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-seat-slot:hover .vo-seat-slot__me { opacity: 1; }

  /* The empty-room chat circle sits where the first person would, not in the card's middle. */
  html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room__people > .vo-room__hover-chat {
    position: relative;
    left: auto;
    top: auto;
    width: 48px;
    height: 48px;
    margin: 0 4px;
  }
}
@keyframes vo-seat-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

/* Desktop ⋯ menu, compact: one line per action, the hint moves to the row's tooltip.
   Phones keep the roomier bottom sheet with hints (mobile.css). */
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room .vo-room-menu {
  top: 2.2rem;
  min-width: 0;
  padding: 4px;
  gap: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14), 0 1px 3px rgba(15, 23, 42, 0.06);
}
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room .vo-room-menu .vo-room-menu__item {
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 7px;
  white-space: nowrap;
}
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room-menu__icon {
  width: auto;
  height: auto;
  background: none;
}
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room-menu__item.is-danger .vo-room-menu__icon { background: none; }
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room-menu__icon .vo-glyph { width: 15px; height: 15px; }
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room-menu__label { font-size: 0.8rem; font-weight: 500; }
html:not(.vo-phone):not(.vo-narrow) .vo-shell .vo-room-menu__hint { display: none; }

/* Phone chat button on someone else's empty office (VoRoomCard PhoneChatText). */
.vo-room__phone-chat { display: none; }

/* People on room cards line up with the card's title: avatar and name start at the left
   edge instead of the avatar being centred over a long name (web and phones). */
.vo-shell .vo-room .vo-person { align-items: flex-start; text-align: left; }
.vo-shell .vo-room .vo-person :is(.vo-person__name, .vo-person__caption) { text-align: left; }

/* Custom rooms from the Admin Portal: their colour tints the card. */
.vo-shell .vo-room[style*="--vo-room-tint"] {
  border-color: var(--vo-room-tint);
  background: color-mix(in srgb, var(--vo-room-tint) 14%, var(--vo-panel));
}

/* =====================================================================
   Files shared in meetings: the call's Files panel, file cards and the
   Meeting files page (MeetingFilesPanel, MeetingFileCard, /meeting-files).
   ===================================================================== */
.vo-call-files-btn { position: relative; }
.vo-call-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--vo-danger); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; pointer-events: none;
}
.vo-mf-panel {
  position: fixed; z-index: 60; top: 5rem; right: 1.75rem; bottom: 6rem; width: min(380px, calc(100vw - 2rem));
  display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; overflow: hidden;
  background: var(--vo-panel); color: var(--vo-ink); border: 1px solid var(--vo-line);
  border-radius: 16px; box-shadow: var(--vo-shadow);
}
.vo-mf-head { display: flex; align-items: center; gap: 0.5rem; }
.vo-mf-head > div { flex: 1; min-width: 0; }
.vo-mf-head h3 { margin: 0; font-size: 1rem; }
.vo-mf-head small { color: var(--vo-muted); }
.vo-mf-all { font-size: 0.8rem; color: var(--vo-link); text-decoration: none; white-space: nowrap; }
.vo-mf-all:hover { text-decoration: underline; }
.vo-mf-close, .vo-mf-iconbtn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--vo-muted); cursor: pointer;
}
.vo-mf-close svg, .vo-mf-iconbtn svg { width: 18px; height: 18px; }
.vo-mf-close:hover, .vo-mf-iconbtn:hover, .vo-mf-iconbtn.is-on { background: var(--vo-hover); color: var(--vo-ink); }
.vo-mf-iconbtn.has-link { color: var(--vo-accent-hi); }
.vo-mf-iconbtn.danger:hover, .vo-mf-iconbtn.danger.is-on { color: var(--vo-danger); }
.vo-mf-iconbtn:disabled { opacity: 0.5; cursor: default; }
.vo-mf-share { display: grid; gap: 0.5rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--vo-line); }
.vo-mf-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--vo-hover); }
.vo-mf-seg button { border: 0; border-radius: 8px; padding: 0.35rem 0.5rem; background: transparent; color: var(--vo-muted); font: inherit; font-size: 0.85rem; cursor: pointer; }
.vo-mf-seg button.on { background: var(--vo-panel); color: var(--vo-ink); font-weight: 600; box-shadow: var(--vo-shadow-sm, 0 1px 3px rgba(0,0,0,.15)); }
.vo-mf-pick { position: relative; gap: 0.4rem; cursor: pointer; overflow: hidden; }
.vo-mf-pick svg { width: 18px; height: 18px; }
.vo-mf-pick.is-disabled { opacity: 0.55; cursor: default; }
.vo-mf-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.vo-mf-input:disabled { cursor: default; }
.vo-mf-hint { color: var(--vo-muted); font-size: 0.78rem; }
.vo-mf-error { margin: 0; padding: 0.45rem 0.6rem; border-radius: 8px; font-size: 0.82rem; color: var(--vo-danger); background: color-mix(in srgb, var(--vo-danger) 10%, transparent); }
.vo-mf-empty { margin: 0.5rem 0; color: var(--vo-muted); font-size: 0.88rem; }
.vo-mf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; overflow-y: auto; min-height: 0; flex: 1; align-content: start; }
.vo-mf-card { border: 1px solid var(--vo-line); border-radius: 12px; background: var(--vo-bg-elev); }
.vo-mf-card.is-open { border-color: color-mix(in srgb, var(--vo-accent) 45%, var(--vo-line)); }
.vo-mf-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.4rem 0.5rem 0.55rem; }
.vo-mf-icon {
  display: grid; place-items: center; width: 38px; height: 44px; flex: none; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: #fff; background: #64748b;
}
.vo-mf-icon[data-kind="PDF"] { background: #dc2626; }
.vo-mf-icon[data-kind="DOC"] { background: #2563eb; }
.vo-mf-icon[data-kind="XLS"] { background: #16a34a; }
.vo-mf-icon[data-kind="PPT"] { background: #ea580c; }
.vo-mf-icon[data-kind="IMG"] { background: #7c3aed; }
.vo-mf-icon[data-kind="VID"] { background: #db2777; }
.vo-mf-icon[data-kind="AUD"] { background: #0891b2; }
.vo-mf-icon[data-kind="ZIP"] { background: #a16207; }
.vo-mf-main {
  flex: 1; min-width: 0; display: grid; gap: 1px; padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.vo-mf-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; }
.vo-mf-main:hover .vo-mf-name { color: var(--vo-link); text-decoration: underline; }
.vo-mf-meta, .vo-mf-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vo-muted); font-size: 0.75rem; }
.vo-mf-who { display: flex; align-items: center; gap: 3px; }
.vo-mf-who svg { width: 13px; height: 13px; flex: none; }
.vo-mf-linked { display: inline-flex; align-items: center; gap: 2px; color: var(--vo-accent-hi); }
.vo-mf-actions { display: flex; gap: 2px; flex: none; }
.vo-mf-sheet { display: grid; gap: 0.55rem; margin: 0 0.55rem 0.55rem; padding: 0.65rem; border-radius: 10px; background: var(--vo-hover); }
.vo-mf-sheet--danger { background: color-mix(in srgb, var(--vo-danger) 8%, transparent); }
.vo-mf-sheet-title { margin: 0; font-weight: 600; font-size: 0.88rem; overflow-wrap: anywhere; }
.vo-mf-sheet-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vo-mf-sheet-actions .vo-btn { min-height: 34px; padding: 0.3rem 0.85rem; }
.vo-mf-choice { display: grid; gap: 0.35rem; }
.vo-mf-choice label { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 8px; background: var(--vo-panel); cursor: pointer; }
.vo-mf-choice label.is-disabled { opacity: 0.6; cursor: default; }
.vo-mf-choice input { margin-top: 0.2rem; accent-color: var(--vo-accent); }
.vo-mf-choice span { display: grid; gap: 1px; font-size: 0.85rem; }
.vo-mf-choice small { color: var(--vo-muted); font-size: 0.75rem; }
.vo-mf-field { display: grid; gap: 0.25rem; font-size: 0.82rem; }
.vo-mf-field small { color: var(--vo-muted); }
.vo-mf-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.vo-mf-linkbox { display: flex; gap: 0.4rem; }
.vo-mf-linkbox .vo-input { flex: 1; min-width: 0; font-size: 0.8rem; }
.vo-mf-people { display: grid; gap: 0.35rem; }
.vo-mf-people ul { list-style: none; margin: 0; padding: 0.25rem; max-height: 180px; overflow-y: auto; border: 1px solid var(--vo-line); border-radius: 8px; background: var(--vo-panel); }
.vo-mf-people li label { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.4rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.vo-mf-people li label:hover { background: var(--vo-hover); }
.vo-mf-people input { accent-color: var(--vo-accent); }
.vo-mf-toast {
  position: fixed; z-index: 61; right: 1.75rem; bottom: 6.5rem; display: flex; align-items: center; gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem)); padding: 0.55rem 0.8rem; border: 1px solid var(--vo-line); border-radius: 12px;
  background: var(--vo-panel); color: var(--vo-ink); box-shadow: var(--vo-shadow); font: inherit; font-size: 0.85rem; cursor: pointer;
  animation: vo-mf-in 0.18s ease-out;
}
.vo-mf-toast svg { width: 18px; height: 18px; flex: none; color: var(--vo-accent-hi); }
.vo-mf-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-mf-toast strong { color: var(--vo-link); }
@keyframes vo-mf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vo-mf-toast { animation: none; } }
.vo-call-overlay--embedded ~ .vo-mf-panel { top: 4.5rem; }

/* The Meeting files page. */
.vo-mf-page { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.vo-mf-page h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.vo-mf-page > p { margin: 0 0 1rem; color: var(--vo-muted); }
.vo-mf-page .vo-mf-list { overflow: visible; }
.vo-mf-group { margin: 1.1rem 0 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--vo-muted); text-transform: none; }
.vo-mf-more { margin-top: 1rem; }

/* The public share-link page (files/{token}). */
.vo-mf-public { max-width: 460px; margin: 3rem auto; padding: 1.5rem; display: grid; gap: 0.9rem; justify-items: center; text-align: center; border: 1px solid var(--vo-line); border-radius: 18px; background: var(--vo-panel); }
.vo-mf-public .vo-mf-icon { width: 56px; height: 66px; font-size: 13px; border-radius: 10px; }
.vo-mf-public h1 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
.vo-mf-public p { margin: 0; color: var(--vo-muted); }
.vo-mf-public form { display: grid; gap: 0.5rem; width: 100%; }
.vo-mf-public .vo-mf-sheet-actions { justify-content: center; }

/* ---------- Call connection quality: signal bars, slow-internet notice, mute ---------- */
/* Three bars like a phone's signal. Level 3 excellent (all green), 2 good (two green),
   1 weak (one amber), 0 lost (red, none lit), unknown (all dim while it is measured). */
.vo-tile-bars, .vo-roster-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.vo-tile-bars i, .vo-roster-signal i {
  display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: 0.28;
}
.vo-tile-bars i:nth-child(1), .vo-roster-signal i:nth-child(1) { height: 5px; }
.vo-tile-bars i:nth-child(2), .vo-roster-signal i:nth-child(2) { height: 8px; }
.vo-tile-bars i:nth-child(3), .vo-roster-signal i:nth-child(3) { height: 12px; }
[data-level="3"] > .vo-tile-bars i, .vo-roster-signal[data-level="3"] i,
[data-level="2"] > .vo-tile-bars i:nth-child(-n+2), .vo-roster-signal[data-level="2"] i:nth-child(-n+2),
[data-level="1"] > .vo-tile-bars i:nth-child(1), .vo-roster-signal[data-level="1"] i:nth-child(1) { opacity: 1; }
[data-level="3"] > .vo-tile-bars, .vo-roster-signal[data-level="3"],
[data-level="2"] > .vo-tile-bars, .vo-roster-signal[data-level="2"] { color: #22c55e; }
[data-level="1"] > .vo-tile-bars, .vo-roster-signal[data-level="1"] { color: #f59e0b; }
[data-level="0"] > .vo-tile-bars, .vo-roster-signal[data-level="0"] { color: #ef4444; }
.vo-roster-signal[data-level="unknown"] { color: var(--vo-muted); }

.vo-tile-signal {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 52px);
  padding: 4px 6px; border-radius: 7px; color: #fff;
  background: rgba(0, 0, 0, 0.45); pointer-events: auto;
}
.vo-tile-signal[data-level="unknown"] > .vo-tile-bars { color: rgba(255, 255, 255, 0.9); }
.vo-tile-signal b { font: 600 11.5px/1.1 system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-tile-signal b:empty { display: none; }
.vo-tile[data-weak="true"] .vo-tile-signal { background: rgba(127, 29, 29, 0.82); }
.vo-self-view .vo-tile-signal { top: 5px; left: 5px; padding: 3px 4px; }
.vo-self-view .vo-tile-signal b { display: none; }

/* Mute someone else: top right of their tile, on hover (always on touch screens). */
.vo-tile-mute {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px;
  border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 600 12px/1 system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.15s ease, background 0.15s ease;
}
.vo-tile-mute svg { width: 15px; height: 15px; }
.vo-tile:hover .vo-tile-mute, .vo-tile-mute:focus-visible { opacity: 1; }
.vo-tile-mute:hover { background: #dc2626; }
.vo-tile-mute:disabled { cursor: progress; opacity: 0.6; }
.vo-tile-mute[hidden] { display: none; }
@media (hover: none) { .vo-tile-mute { opacity: 0.92; } }
.vo-call-overlay[data-compact="true"] .vo-tile-signal b { font-size: 0; }
.vo-call-overlay[data-compact="true"] .vo-tile-signal b::after { content: attr(data-short); font-size: 11px; }
.vo-call-overlay[data-compact="true"] .vo-tile-mute { height: 24px; padding: 0 7px; }
/* A tile's badges (its Mute button is z-index 3) stay inside the tile: before, they showed
   through the call's menus (More, microphone, camera) when a menu opened over the video. */
.vo-tile { isolation: isolate; }

/* Your own internet is slow: a notice at the top that stays until it is better (or dismissed). */
.vo-call-weak {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 71;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(560px, calc(100vw - 24px));
  padding: 8px 8px 8px 14px; border-radius: 14px;
  background: #92400e; color: #fff; font: 14px/1.25 system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.vo-call-weak[data-level="0"] { background: #991b1b; }
.vo-call-weak > .vo-tile-bars { color: #fff; flex: 0 0 auto; }
.vo-call-weak[data-level="1"] > .vo-tile-bars i:nth-child(1) { opacity: 1; }
.vo-call-weak-text { display: grid; gap: 1px; min-width: 0; }
.vo-call-weak-text strong { font-weight: 650; }
.vo-call-weak-text small { font-size: 12.5px; opacity: 0.92; }
.vo-call-weak-video {
  flex: 0 0 auto; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  background: transparent; color: #fff; font: 600 12.5px/1.1 system-ui, sans-serif; cursor: pointer;
}
.vo-call-weak-video:hover { background: rgba(255, 255, 255, 0.14); }
.vo-call-weak-video[hidden] { display: none; }
.vo-call-weak-close {
  flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.vo-call-weak-close:hover { background: rgba(255, 255, 255, 0.16); }

/* "Umar muted your microphone" and similar short notices. */
.vo-call-toast {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 72;
  max-width: min(480px, calc(100vw - 24px)); padding: 10px 16px; border-radius: 12px; pointer-events: none;
  background: #111827; color: #fff; font: 600 14px/1.3 system-ui, sans-serif; text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* People list: name, signal bars, mic/camera icons, Mute. */
.vo-call-roster li > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-call-roster li > .vo-roster-signal { flex: 0 0 auto; }
.vo-roster-mute, .vo-call-muteall {
  flex: 0 0 auto; padding: 3px 9px; border: 1px solid var(--vo-line); border-radius: 999px;
  background: transparent; color: inherit; font: 600 12px/1.2 system-ui, sans-serif; cursor: pointer;
}
.vo-roster-mute:hover, .vo-call-muteall:hover { border-color: var(--vo-danger); color: var(--vo-danger); }
.vo-call-people-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* People menu in the conversation header on phones (2026-12-06): the menu hung from the
   people button and ran off the right edge. It now hangs from the whole action row, lined up
   with its right edge, so it always stays on screen; long names end with an ellipsis. */
@media (max-width: 860px) {
  html .vo-ain-head .vo-ain-quick { position: relative; }
  html .vo-ain-head .vo-ain-quick .vo-ain-members { position: static; }
  html .vo-ain-head .vo-ain-quick .vo-ain-members-menu {
    left: auto; right: 0; top: calc(100% + 6px);
    width: min(280px, 100%); max-width: calc(100vw - 16px); box-sizing: border-box;
  }
}
.vo-ain-members-menu li { min-width: 0; }
.vo-ain-members-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vo-ain-members-menu > button, .vo-ain-members-photo { min-width: 0; }

/* Call header on computers: the title on the left, and View, Add people and Shrink together as
   one group of matching buttons on the right (space-between used to spread them across). */
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head { justify-content: flex-start; gap: 6px; }
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head > .vo-call-title { margin-right: auto; }
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head :is(.vo-call-viewbtn, .vo-call-size) {
  width: 34px; height: 34px; padding: 0; border: 1px solid var(--vo-line); border-radius: 9px;
  background: transparent; color: var(--vo-ink); justify-content: center;
}
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head :is(.vo-call-viewbtn, .vo-call-size):hover,
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head .vo-call-viewbtn.is-on { background: var(--vo-hover); }
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head .vo-call-viewbtn .vo-call-viewico { width: 18px; height: 18px; color: var(--vo-ink); }
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head .vo-call-add { color: var(--vo-ink); border-color: var(--vo-line); background: transparent; }
html:not(.vo-phone):not(.vo-narrow) .vo-call-overlay .vo-call-head .vo-call-add:hover { background: var(--vo-hover); }

/* Your own window: tap it to see yourself bigger, the corner button makes it small again. */
.vo-self-view[data-mode="float"], .vo-self-view[data-mode="icon"] { cursor: zoom-in; transition: width 0.18s ease; }
.vo-self-view[data-large="true"] { cursor: default; }
.vo-self-shrink {
  position: absolute; top: 6px; right: 6px; z-index: 6; display: none; place-items: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer;
}
.vo-self-shrink svg { width: 15px; height: 15px; }
.vo-self-view[data-large="true"] .vo-self-shrink { display: grid; }
.vo-call-overlay .vo-self-view.vo-self-view[data-large="true"] { width: clamp(240px, 42%, 520px) !important; max-width: none !important; }
/* Big, the round icon becomes a normal window. */
.vo-self-view[data-large="true"][data-mode="icon"] .vo-self-slot .vo-tile { aspect-ratio: 16 / 9 !important; border-radius: 12px !important; }
.vo-self-view[data-large="true"][data-mode="icon"] .vo-tile-name { display: flex !important; }
.vo-self-view[data-large="true"][data-mode="icon"] .vo-tile-signal { display: inline-flex !important; }

/* People list: someone's mic icon is their mute button (no separate "Mute" button). */
.vo-roster-micbtn {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--vo-muted); cursor: pointer;
}
.vo-roster-micbtn svg { width: 18px; height: 18px; }
.vo-roster-micbtn svg.on { color: var(--vo-ok); }
.vo-roster-micbtn:hover:not(:disabled) { background: color-mix(in srgb, var(--vo-danger) 12%, transparent); color: var(--vo-danger); }
.vo-roster-micbtn:hover:not(:disabled) svg { color: var(--vo-danger); }
.vo-roster-micbtn:disabled { cursor: progress; opacity: 0.6; }
.vo-call-menu .vo-icon-row button small { white-space: nowrap; }
.vo-call-menu .vo-icon-row button[data-incoming-video-toggle] { width: auto !important; min-width: 50px; padding: 4px 8px; }

/* People list: fixed columns on the right (signal, sharing + camera, mic) so every row's icons
   line up, whatever each person has on. */
.vo-call-roster li { justify-content: flex-start; gap: 8px; }
.vo-call-roster li > span:first-child { flex: 1 1 auto; }
.vo-call-roster .vo-roster-icons { width: 44px; justify-content: flex-end; }
.vo-call-roster .vo-roster-mic { flex: 0 0 28px; width: 28px; height: 28px; display: inline-grid; place-items: center; color: var(--vo-muted); }
.vo-call-roster .vo-roster-mic svg { width: 18px; height: 18px; }
.vo-call-roster .vo-roster-mic svg.on { color: var(--vo-ok); }
.vo-call-roster .vo-roster-mic svg.off { color: var(--vo-danger); }
.vo-call-roster .vo-roster-micbtn { margin-left: 0; }
/* Tighter: icons close together (signal, camera, mic). */
.vo-call-roster li { gap: 4px; }
.vo-call-roster li > span:first-child { margin-right: 6px; }
.vo-call-roster .vo-roster-icons { width: auto; min-width: 22px; gap: 4px; }
.vo-call-roster .vo-roster-mic { flex-basis: 24px; width: 24px; height: 24px; }

/* Phone apps, native call engine: cameras and shared screens are drawn by the phone under a
   see-through page (livekit-bridge.js reportNativeLayout). The page backgrounds behind them
   go clear (the phone paints the same colours) and their <video> elements stay empty. */
[data-vo-see-through="true"] {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
video[data-native="true"] { background: transparent !important; }

/* ---- Test call (Settings › Calls & video › Start test call) ----
   The stage shows the test's steps (CallOverlay TestCard) on a dark panel in every theme, like
   the phone call screen. The bars in .vo-test-meter are moved by call-echo-test.js. */
.vo-call-overlay[data-test="true"] .vo-call-stage-wrap { min-height: 280px; }
.vo-call-overlay[data-test="true"] :is(.vo-call-optional, .vo-call-side, .vo-call-in-more, .vo-call-add, .vo-call-peoplebar, .vo-hand-strip) { display: none !important; }
.vo-call-overlay[data-test="true"] .vo-call-body { grid-template-columns: minmax(0, 1fr); }
/* Camera off: no window of your own over the steps. */
.vo-call-overlay[data-test="true"][data-call="audio"] .vo-self-view { display: none !important; }
.vo-test-card {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 28px 24px; text-align: center; color: #fff;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(91, 140, 255, 0.18), transparent 62%), #121c31;
}
.vo-test-copy { display: flex; flex-direction: column; align-items: center; max-width: 340px; }
.vo-test-copy strong { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.vo-test-text { margin-top: 8px; color: #a9b6cf; font-size: 13.5px; line-height: 1.5; }
@property --vo-test-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.vo-test-ring {
  flex: 0 0 auto;
  position: relative; display: grid; place-items: center;
  width: 112px; height: 112px; border-radius: 50%;
  background: conic-gradient(#4f86ff 0 var(--vo-test-p), #26334d var(--vo-test-p) 100%);
  transition: --vo-test-p 1s linear;
}
.vo-test-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #121c31; }
.vo-test-ring.is-wait { background: #26334d; animation: vo-test-wait 1.6s ease-in-out infinite; }
.vo-test-face {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 80px; height: 80px; border-radius: 50%; aspect-ratio: 1;
  color: #fff; font-size: 26px; font-weight: 700;
  background: linear-gradient(145deg, #5b8cff, #2a5ce0);
}
.vo-test-face svg { width: 32px; height: 32px; }
.vo-test-face--play {
  background: linear-gradient(145deg, #22c55e, #0f9d58);
  box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.18), 0 0 0 20px rgba(34, 197, 94, 0.08);
  animation: vo-test-pulse 1.2s ease-in-out infinite;
}
.vo-test-face--done { width: 64px; height: 64px; background: rgba(79, 134, 255, 0.18); color: #8fb0ff; }
.vo-test-face--done.is-warn { background: rgba(249, 115, 22, 0.18); color: #fdba74; }
.vo-test-meter { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: 14px; }
.vo-test-meter i { display: block; width: 4px; height: 4px; border-radius: 2px; background: #22c55e; transition: height 0.08s linear; }
.vo-test-steps { display: flex; gap: 6px; margin-top: 16px; }
.vo-test-steps i { display: block; width: 22px; height: 4px; border-radius: 2px; background: #334155; }
.vo-test-steps i.on { background: #4f86ff; }
.vo-test-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.vo-test-btn {
  min-width: 124px; height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.1);
}
.vo-test-btn--end { background: #3b74ff; }
.vo-test-btn:hover { filter: brightness(1.12); }
.vo-test-btn:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }
@keyframes vo-test-wait { 50% { opacity: 0.6; } }
@keyframes vo-test-pulse { 50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0.22), 0 0 0 24px rgba(34, 197, 94, 0.06); } }
@media (prefers-reduced-motion: reduce) {
  .vo-test-ring.is-wait, .vo-test-face--play { animation: none; }
}

/* Camera on in a test call: your video takes the stage (tap your own window to make it big)
   and the test shrinks to one slim strip along the top of the stage (your own window floats at
   the bottom). */
.vo-test-card.is-mini {
  inset: 8px 8px auto 8px; z-index: 3;
  flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start;
  padding: 8px 10px; text-align: left; border-radius: 12px;
  background: rgba(13, 21, 38, 0.88); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}
.vo-test-card.is-mini .vo-test-ring { width: 34px; height: 34px; }
.vo-test-card.is-mini .vo-test-ring::before { inset: 3px; }
.vo-test-card.is-mini .vo-test-face { width: 26px; height: 26px; font-size: 10px; box-shadow: none; animation: none; }
.vo-test-card.is-mini .vo-test-face svg { width: 15px; height: 15px; }
.vo-test-card.is-mini .vo-test-copy { flex: 1 1 160px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: none; }
.vo-test-card.is-mini .vo-test-copy strong { font-size: 13.5px; }
.vo-test-card.is-mini .vo-test-text,
.vo-test-card.is-mini .vo-test-steps { display: none; }
.vo-test-card.is-mini .vo-test-meter { height: 16px; margin: 0; }
.vo-test-card.is-mini .vo-test-actions { margin: 0 0 0 auto; gap: 6px; }
.vo-test-card.is-mini .vo-test-btn { min-width: 0; height: 30px; padding: 0 12px; font-size: 12.5px; }
