.sender-flow { max-width: 720px; margin: 0 auto; }
.sender-landing {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; min-height: 50vh; text-align: center;
}
.sender-landing h1 { font-size: 24px; margin-bottom: 8px; }
.sender-landing p { color: var(--fg-muted); max-width: 400px; margin-bottom: 24px; }
.sender-landing form { display: flex; gap: 8px; max-width: 480px; width: 100%; }
.sender-landing input { flex: 1; padding: 10px 14px; font-size: 15px; border: 1px solid var(--border); border-radius: 6px; }
.context-pill {
  display: inline-block; background: var(--pill-bg); color: var(--pill-fg);
  padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500;
  margin-bottom: 16px;
}
.ephemerality-notice { margin-top: 24px; font-size: 11px; color: var(--fg-faint); }
.warning { color: var(--danger); font-weight: 500; }

/* Creator's note (Phase 1 + Phase 2). Plain text only — html/template
 * escapes special chars on the server, white-space: pre-wrap preserves line
 * breaks. accent-soft tint + left rule reads as "branded content from the
 * creator" rather than system chrome (yellow is reserved for system notices).
 * Themes automatically when the creator overrides --accent / --accent-soft. */
.creator-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  max-width: 440px;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.creator-note-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}
.creator-note-body { display: inline; }
/* Phase 2 banner: same palette, full-width (no max-width) since it sits
 * above the chat header. NOT dismissible — sender sees it every visit. */
.creator-note-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
  font-size: 13px;
  color: var(--fg);
  line-height: 1.55;
}
.creator-note-banner .label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 2px;
}
.creator-note-banner .body { flex: 1; }
.creator-note-banner .creator-note-body {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-shell {
  display: flex; flex-direction: column;
  height: calc(100vh - 200px); min-height: 480px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: var(--shell-bg);
}
.chat-header { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.chat-header .who { font-weight: 600; font-size: 14px; }
.chat-header .meta { color: var(--fg-muted); font-size: 12px; margin-top: 4px; }
.chat-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.chat-header-row {
  display: flex; align-items: center; gap: 12px; margin-top: 6px;
}
.mute-toggle {
  font-size: 16px; line-height: 1;
  padding: 4px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 80ms ease;
}
.mute-toggle:hover { background: var(--code-bg); }
.return-hint { color: var(--fg-faint); font-size: 12px; }

/* Push notification opt-in toggle. Three states (initial/active/blocked)
 * match sender-push.js's setState(). Sits next to the existing .mute-toggle
 * in the chat header; uses a different icon (📱 vs 🔔) and labels to
 * distinguish cross-device push from in-tab audio/visual notifications. */
.push-toggle {
  font-size: 13px; line-height: 1;
  padding: 5px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 80ms ease, border-color 80ms ease, color 80ms ease;
  font-family: inherit;
  color: var(--fg-muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.push-toggle:hover { color: var(--fg); }
.push-toggle.primary {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.push-toggle.primary:hover { background: #243218; }
.push-toggle.active {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}
.push-toggle.blocked {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--fg-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* One-time banner shown after initiate succeeds. Sticky at the top of the
   chat surface so the sender sees it before sending anything. */
.return-link-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: #2a2310;
  border-bottom: 1px solid #6b541a;
  color: #f0d68a;
  font-size: 13px;
}
.return-link-banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0,0,0,0.4);
  padding: 2px 6px; border-radius: 3px;
  font-size: 12px;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.return-link-banner .link-button {
  font-size: 12px;
  color: #f0d68a;
}
.return-link-banner .link-button:hover { color: #ffe9b3; }

/* "This conversation has ended." banner shown when xmpp.js fires
 * room-destroyed (creator clicked Delete, account cascade-delete, etc.).
 * Mirrors the .return-link-banner palette so both top-of-chat banners read
 * as the same visual family. */
.chat-ended-banner {
  padding: 12px 16px;
  background: var(--bg-warn);
  border-bottom: 1px solid #6b541a;
  color: #f0d68a;
  font-size: 14px;
  text-align: center;
}
.chat-ended-banner .muted.small { display: block; margin-top: 2px; }

.chat-messages { flex: 1; padding: 16px 20px; overflow-y: auto; background: var(--chat-bg); }
.chat-msg { margin-bottom: 12px; max-width: 70%; }
.chat-msg.them { margin-right: auto; }
.chat-msg.me { margin-left: auto; text-align: right; }
.chat-msg .bubble {
  display: inline-block; padding: 8px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.4; text-align: left;
}
.chat-msg.them .bubble {
  background: var(--bubble-them-bg); color: var(--bubble-them-fg);
  border: 1px solid var(--bubble-them-border); border-bottom-left-radius: 4px;
}
.chat-msg.me .bubble {
  background: var(--bubble-me-bg); color: var(--bubble-me-fg); border-bottom-right-radius: 4px;
}
.chat-msg .meta { font-size: 10px; color: var(--fg-faint); margin-top: 3px; }
.chat-msg.system { text-align: center; max-width: 100%; }
.chat-msg.system .bubble {
  background: var(--bg-warn); color: #f0d68a; border: 1px solid #6b541a;
  font-size: 12px; border-radius: 4px;
}
.chat-input {
  padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px;
}
.chat-input textarea {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px;
  resize: none; min-height: 38px;
}

.creator-chat-page { max-width: 900px; margin: 0 auto; }
.creator-chat-page .chat-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.back-link { color: var(--fg-muted); text-decoration: none; font-size: 13px; }
.chat-meta-bar {
  padding: 8px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted); display: flex; gap: 16px;
}
.chat-meta-bar code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--code-bg); padding: 2px 6px; border-radius: 3px;
}

/* Peer presence — two layout variants share the same dot color/animation:
 *
 *   .peer-name     — inline, dot annotates the peer's name directly. Used on
 *                    sender side inside the .context-pill ("[with the ● Creator
 *                    online]"). Slack member-list pattern.
 *
 *   .presence-pill — pill format, sibling to the peer's name in the H1. Used
 *                    on creator side ("Chat with Alice [● Online]") because
 *                    the creator cares about reply-urgency and benefits from
 *                    the pill's visual weight.
 *
 * State class (.online / .idle / .away / .connecting / .reconnecting /
 * .offline) goes on whichever layout container is in use; the dot rules
 * below target either ancestor.
 *
 * Visual hierarchy: solid dots feel "present" (online, idle), hollow rings
 * feel "absent" (away, offline). Animations: pulse for "in progress"
 * (connecting/reconnecting), breathe for "alive but slow" (idle).
 * bewoke- prefix avoids collisions. */
.peer-name,
.presence-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.peer-name { gap: 5px; }
.presence-pill {
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  vertical-align: middle;
  margin-left: 6px;
  /* Pills read as labels, not sentence continuations — capitalize. */
  text-transform: capitalize;
}
.peer-name .dot,
.presence-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-faint);
  flex-shrink: 0;
}
.peer-name.online .dot,
.presence-pill.online .dot { background: #16a34a; }
.peer-name.idle .dot,
.presence-pill.idle .dot {
  background: #d97706;
  animation: bewoke-breathe 2.4s ease-in-out infinite;
}
.peer-name.away .dot,
.presence-pill.away .dot {
  background: transparent;
  border: 1.5px solid #d97706;
  width: 9px; height: 9px;
}
.peer-name.connecting .dot,
.presence-pill.connecting .dot {
  background: var(--fg-faint);
  animation: bewoke-pulse 1.2s ease-in-out infinite;
}
.peer-name.reconnecting .dot,
.presence-pill.reconnecting .dot {
  background: #d97706;
  animation: bewoke-pulse 1.2s ease-in-out infinite;
}
.peer-name.offline .dot,
.presence-pill.offline .dot {
  background: transparent;
  border: 1.5px solid var(--fg-faint);
  width: 9px; height: 9px;
}
.peer-name .aside {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: normal;
  margin-left: 2px;
}
@keyframes bewoke-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.75); }
}
@keyframes bewoke-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Inbox shell (/chats) — two-pane layout: link tabs on top, conversation
 * list + chat pane below. The conv-list shows all rooms for the active
 * link tab; selecting one mounts the chatRoom component in the chat-pane.
 * CSS variables --bg-selected / --bg-unread are defined in main.css.
 * .dot-pres here is a *different pattern* from the .peer-name/.presence-pill
 * dot above: those annotate a name inline, while .dot-pres is a standalone
 * 7px dot in the conv-list row (smaller because the row is denser). */
.inbox-shell { display: flex; flex-direction: column; height: calc(100vh - 60px); }
.inbox-tabs {
  display: flex; gap: 2px; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
}
.inbox-tab {
  padding: 10px 14px; font-size: 13px; color: var(--fg-muted);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0; border-bottom: 2px solid transparent;
}
.inbox-tab:hover { color: var(--fg); }
.inbox-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.inbox-tab .unread-pill {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: #dc2626; color: white; font-weight: 600;
}
.unread-pill[x-show="false"] { display: none; }
.inbox-mute-toggle {
  margin-left: auto; padding: 6px 10px; font-size: 14px; line-height: 1;
  border-bottom-color: transparent !important;
}
.inbox-mute-toggle:hover { border-bottom-color: transparent !important; }
.inbox-mute-toggle.active { border-bottom-color: transparent !important; }

.inbox-body { flex: 1; display: grid; grid-template-columns: 320px 1fr; min-height: 0; }
.conv-list { border-right: 1px solid var(--border-soft); overflow-y: auto; }
.conv-item { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.conv-item:hover { background: var(--bg-soft); }
.conv-item.selected { background: var(--bg-selected); }
.conv-item.unread {
  background: var(--bg-unread);
  border-left: 3px solid var(--accent);
  padding-left: 13px;  /* compensate for added border-left */
}
.conv-item-top { display: flex; justify-content: space-between; align-items: baseline; }
.conv-item-name {
  font-size: 14px; font-weight: 600; color: var(--fg);
  display: flex; align-items: center; gap: 6px;
}
.conv-item.unread .conv-item-name { font-weight: 700; }
.conv-item.unread .conv-item-name::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  flex-shrink: 0;
}
.conv-item-name .dot-pres,
.chat-pane-meta .dot-pres {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fg-faint);
  display: inline-block;
}
.conv-item-name .dot-pres.online,
.chat-pane-meta .dot-pres.online { background: #16a34a; }
.conv-item-name .dot-pres.idle,
.chat-pane-meta .dot-pres.idle { background: #d97706; }
.conv-item-name .dot-pres.away,
.chat-pane-meta .dot-pres.away {
  background: transparent; border: 1.5px solid #d97706; width: 8px; height: 8px;
}
.conv-item-name .dot-pres.offline,
.chat-pane-meta .dot-pres.offline {
  background: transparent; border: 1.5px solid var(--fg-faint); width: 8px; height: 8px;
}
.conv-item-time { font-size: 11px; color: var(--fg-faint); }
.conv-item-unread-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 6px;
  min-width: 16px;
  text-align: center;
}
.conv-item-unread-badge[x-show="false"] { display: none; }
.conv-item-preview {
  font-size: 12px; color: var(--fg-muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-item-link-tag {
  display: inline-block; font-size: 10px; padding: 1px 6px;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 3px; color: var(--fg-muted); margin-top: 4px;
}
.empty-state, .empty-chat {
  padding: 40px 20px; text-align: center; color: var(--fg-muted); font-size: 13px;
}
.empty-chat h3 { margin: 0 0 8px; color: var(--fg); font-size: 16px; }

/* Chat pane (/chats right side) — Task 19. Every selector here is scoped to
 * `.chat-pane` so it ONLY affects the creator inbox. Without that scope, the
 * unscoped selectors would clobber the sender-side rules on the sender page
 * — see TestChatCSS_ChatPaneRulesAreScoped in css_test.go for the regression
 * that motivated the explicit scope. The bubble-background rules here use
 * `--accent-soft` / `--bg-soft` (NOT the themeable `--bubble-*-bg` variables
 * the sender side consumes), so creator-inbox bubble colors stay decoupled
 * from per-link custom CSS. */
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
/* Alpine's x-for wraps the chatRoom content in an extra <div> that breaks
 * the flex chain — without this rule, .chat-messages' flex:1 / overflow-y:auto
 * silently no-op because its parent isn't the flex container. See chats.html. */
.chat-pane-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-pane-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.chat-pane-title { font-size: 16px; font-weight: 600; color: var(--fg); }
.chat-pane-meta { font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chat-pane-meta .room-jid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; padding: 1px 5px;
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: 3px; cursor: pointer;
}
.chat-pane-meta .room-jid:hover { color: var(--fg); border-color: var(--border); }
.chat-pane-actions { display: flex; gap: 8px; }
.chat-pane .chat-messages { flex: 1; overflow-y: auto; padding: 12px 16px; }
.chat-pane .chat-msg.me .bubble { background: var(--bubble-me-bg); color: var(--bubble-me-fg); margin-left: 60px; }
.chat-pane .chat-msg.them .bubble { background: var(--bg-soft); margin-right: 60px; }
.chat-pane .chat-msg .bubble { padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.chat-pane .chat-msg .meta { font-size: 11px; color: var(--fg-faint); margin-top: 3px; }
.chat-pane .chat-input {
  padding: 10px 16px; border-top: 1px solid var(--border-soft);
  display: flex; gap: 8px;
}
.chat-pane .chat-input textarea {
  flex: 1; resize: none; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; min-height: 40px;
}
.mobile-back-btn { display: none; }

/* Mobile: collapse to single pane. List view shows by default; tapping
 * a conversation hides the list and shows the chat. chatInbox.mobileView
 * toggles between 'list' and 'chat'. */
@media (max-width: 720px) {
  .inbox-body { grid-template-columns: 1fr; }
  .inbox-shell.mobile-view-chat .conv-list { display: none; }
  .inbox-shell.mobile-view-list .chat-pane { display: none; }
  .inbox-shell.mobile-view-list .empty-chat { display: none; }
  .mobile-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; color: var(--accent);
    cursor: pointer; font-size: 14px; padding: 6px 10px;
  }
}

.chat-msg[data-nick-color] .bubble {
  border-left: 3px solid var(--nick-color, transparent);
}
.chat-msg.me[data-nick-color] .bubble {
  border-left: none;
}
.chat-msg .nick-avatar {
  display: inline-block;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--nick-color, var(--muted-bg));
  color: white;
  font-size: 11px;
  text-align: center;
  line-height: 20px;
  margin-right: 6px;
}
.chat-msg .bubble-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Conference-mode badge for the dashboard's conference link rows. */
.link-mode-badge.conference {
  background: var(--accent);
  color: white;
}
.link-mode-badge.direct {
  background: var(--muted-bg);
  color: var(--muted-text);
}
.link-mode-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 6px;
}

/* ========================================================================
 * Conference occupants popover (Option C from 2026-08-02 mockup).
 * Trigger chip in the chat header; click to open a popover with the full
 * occupant list + presence summary. Mobile-friendly: minimal footprint when
 * collapsed, full list one tap away.
 * ====================================================================== */

.chat-header .header-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-header .header-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-header .header-actions { display: flex; align-items: center; gap: 8px; }

.popover-region { position: relative; display: inline-block; }

/* Trigger chip: "●●● 5 here" */
.occupants-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.occupants-trigger:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.occupants-trigger:hover .trigger-avatar {
  border-color: var(--accent-soft);
}

/* Stacked avatars inside the trigger (top 3 by priority: creator first). */
.trigger-stack { display: flex; }
.trigger-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -6px;
  border: 1.5px solid var(--bg-soft);
  transition: border-color 120ms ease;
}
.trigger-avatar:first-child { margin-left: 0; }
.trigger-count { font-variant-numeric: tabular-nums; }

/* Popover container — anchored below the trigger, right-aligned to its edge. */
.occupants-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 14px 16px 12px;
  z-index: 50;
}
.occupants-popover::before {
  /* Pointer arrow back up to the trigger. */
  content: '';
  position: absolute;
  top: -7px; right: 28px;
  width: 12px; height: 12px;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Alpine enter/leave transition classes — opacity + translateY. */
.popover-enter { opacity: 0; transform: translateY(-4px); }
.popover-leave { opacity: 0; transform: translateY(-4px); }

.popover-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.popover-title { font-size: 13px; font-weight: 600; }
.popover-close {
  background: none; border: none; cursor: pointer;
  color: var(--fg-faint);
  font-size: 16px; line-height: 1; padding: 2px 4px;
  border-radius: 4px;
}
.popover-close:hover { color: var(--fg); background: var(--bg-soft); }

.popover-summary {
  font-size: 11px;
  color: var(--fg-muted);
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.summary-chip { display: inline-flex; align-items: center; gap: 4px; }
.summary-dot { width: 6px; height: 6px; border-radius: 50%; }
.summary-dot.online { background: var(--online-color, #16a34a); }
.summary-dot.idle   { background: var(--idle-color,   #d97706); }
.summary-dot.away   { background: transparent; border: 1.5px solid var(--away-color, #d97706); }

.popover-list {
  max-height: 280px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.popover-occupant {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 4px;
  border-radius: 4px;
}
.popover-occupant.offline { opacity: 0.55; }

.popover-avatar-wrap { position: relative; display: inline-block; flex-shrink: 0; }
.popover-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.popover-presence {
  position: absolute; bottom: -1px; right: -1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-soft);
}
.popover-presence.online { background: #16a34a; }
.popover-presence.idle   { background: #d97706; }
.popover-presence.away   { background: transparent; border-color: #d97706; }
.popover-presence.offline { background: transparent; border-color: #6a6a6f; }

.popover-occupant-info { flex: 1; min-width: 0; }
.popover-occupant-name {
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  line-height: 1.2;
}
.popover-occupant-status {
  font-size: 10px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.creator-tag {
  font-size: 9px;
  background: var(--bg-warn);
  color: #f0d68a;
  border: 1px solid #6b541a;
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.you-tag {
  font-size: 10px;
  color: var(--fg-faint);
  font-weight: 400;
}
