/* =====================================================================================================================
   2026-11-14 (Claude Code) - Chats list in a familiar messenger style, following ALL themes. Owner screenshots (our Chat
   list + a phone messenger app): "1. consider all themes 2. message redesign the same messenger style"; then
   "user can add photo profile". Every colour comes from the theme colour (--btn-a), so each theme gets its own tint.
   Markup: messenger-list.js + renderSidebarList() in MessengerScreen.js. The old big title bar and the three big action
   tiles are hidden (their keys are now the small icons next to "Chats"; the tiles stay in the page because the icons
   press them). Remove this file's <link> in index.html to go back to the previous look.
   ===================================================================================================================== */
.lx-msg-shell {
  --m-base: var(--btn-a, #37627B);
  --m-bg: color-mix(in srgb, var(--m-base) 34%, #06090f);
  --m-surface: color-mix(in srgb, var(--m-base) 48%, #0a0e15);
  --m-raise: color-mix(in srgb, var(--m-base) 72%, #10151d);
  --m-line: color-mix(in srgb, var(--m-base) 35%, #EEF2F5);
  --m-ink: #F4F7FB;
  --m-mute: rgba(232, 238, 245, .68);
  --m-chip: rgba(255, 255, 255, .09);
  --m-acc: color-mix(in srgb, var(--m-base) 25%, #EEF3FA);
  --m-gold: #E8C77A;
  background: var(--m-bg) !important;
  border: 0.1px solid var(--m-line) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35) !important;
  color: var(--m-ink);
}
.lx-msg-shell .lx-msg-topbar { display: none !important; }
.lx-msg-shell .lx-msg-sidebar { background: transparent !important; border: 0 !important; }
.lx-msg-shell .lx-side-actions { display: none !important; }

/* header + search + active row */
.lx-fb-top { position: relative; padding: 14px 14px 2px; }
.lx-fb-head { display: flex; align-items: center; gap: 10px; }
.lx-fb-title { flex: 1 1 auto; margin: 0; font: 800 1.55rem/1.1 "Manrope", var(--sans, system-ui), sans-serif; letter-spacing: -.01em; color: var(--m-ink); }
.lx-fb-icons { display: flex; gap: 8px; }
.lx-fb-ic {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--m-chip); color: var(--m-ink); padding: 0;
}
.lx-fb-ic:hover { background: rgba(255, 255, 255, .16); }
.lx-fb-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-fb-search {
  margin-top: 12px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--m-chip); color: var(--m-mute); cursor: text;
}
.lx-fb-search svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lx-fb-search input {
  flex: 1 1 auto; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  color: var(--m-ink); font: 500 max(16px, .89rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif; padding: 0; min-height: 0;
}
.lx-fb-search input::placeholder { color: var(--m-mute); }
.lx-fb-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.lx-fb-active { display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lx-fb-active::-webkit-scrollbar { display: none; }
.lx-fb-person {
  position: relative; flex: 0 0 auto; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--m-ink); min-height: 0; box-shadow: none;
}
.lx-fb-pname { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 max(12px, .7rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-mute); }
.lx-fb-plus {
  position: absolute; top: 38px; right: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--m-acc); color: #0E1622; font: 800 16px/1 system-ui, sans-serif; border: 2px solid var(--m-bg);
}
.lx-fb-file { display: none; }
.lx-fb-menu {
  position: absolute; z-index: 30; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--m-raise);
  border: 0.1px solid var(--m-line); box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
.lx-fb-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--m-ink); font: 600 max(15px, .83rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif; text-align: left; cursor: pointer;
}
.lx-fb-menu button:hover { background: rgba(255, 255, 255, .08); }
.lx-fb-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* filter pills (the old tabs) */
.lx-msg-shell .lx-side-tabs { display: flex !important; gap: 8px; padding: 6px 14px 8px !important; border: 0 !important; background: none !important; overflow-x: auto; scrollbar-width: none; }
.lx-msg-shell .lx-side-tabs::-webkit-scrollbar { display: none; }
.lx-msg-shell .lx-side-tab {
  flex: 0 0 auto; padding: 8px 15px !important; min-height: 36px; border-radius: 999px !important; border: 0 !important;
  background: var(--m-chip) !important; color: var(--m-ink) !important; box-shadow: none !important;
  font: 700 max(13px, .78rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif !important;
}
.lx-msg-shell .lx-side-tab.is-active { background: var(--m-acc) !important; color: #0E1622 !important; }
.lx-msg-shell .lx-side-tab::after, .lx-msg-shell .lx-side-tab.is-active::after { display: none !important; }

/* conversation rows */
.lx-msg-shell .lx-conv-list { padding: 2px 6px 10px !important; gap: 2px; }
.lx-msg-shell .lx-conv-item {
  display: flex !important; align-items: center; gap: 12px; padding: 8px !important; border-radius: 14px !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; cursor: pointer;
}
.lx-msg-shell .lx-conv-item:hover { background: rgba(255, 255, 255, .05) !important; }
.lx-msg-shell .lx-conv-item.is-active { background: rgba(255, 255, 255, .08) !important; }
@media (max-width: 820px) { .lx-msg-shell .lx-conv-item.is-active:not(:hover) { background: transparent !important; } }
.lx-msg-shell .lx-conv-meta { flex: 1 1 auto; min-width: 0; }
.lx-msg-shell .lx-conv-title { display: flex !important; align-items: baseline; gap: 8px; }
.lx-conv-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 max(16px, .89rem)/1.3 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-ink); }
.lx-conv-time { flex: 0 0 auto; font: 500 max(12px, .7rem)/1 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-mute); }
.lx-msg-shell .lx-conv-sub { display: flex !important; align-items: center; gap: 8px; margin-top: 2px; }
.lx-conv-prev { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 max(13px, .78rem)/1.35 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-mute); }
.lx-conv-item.is-unread .lx-conv-name { font-weight: 800; }
.lx-conv-item.is-unread .lx-conv-prev { color: var(--m-ink); font-weight: 700; }
.lx-conv-item.is-unread .lx-conv-time { color: var(--m-gold); font-weight: 700; }
.lx-unread-dot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--m-gold); }
.lx-msg-shell .lx-quick-add-nearby { flex: 0 0 auto; padding: 6px 12px !important; min-height: 32px; border-radius: 999px !important;
  border: 0 !important; background: var(--m-acc) !important; color: #0E1622 !important; font: 700 13px/1 "Manrope", sans-serif !important; }
.lx-conv-empty { padding: 26px 18px; text-align: center; color: var(--m-mute); font: 500 max(14px, .78rem)/1.5 "Manrope", var(--sans, system-ui), sans-serif; }

/* round avatars: photo or initial, theme-tinted; green dot = online */
.lx-msg-shell .lx-avatar {
  position: relative; flex: 0 0 auto; width: 56px !important; height: 56px !important; min-width: 56px; border-radius: 50% !important;
  display: grid; place-items: center; overflow: visible; font: 700 1.3rem/1 "Manrope", var(--sans, system-ui), sans-serif; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--m-base) 70%, #fff 22%), color-mix(in srgb, var(--m-base) 85%, #000)) !important;
  border: 0 !important; box-shadow: none !important;
}
.lx-msg-shell .lx-avatar.is-group { font-size: 1.5rem; }
.lx-msg-shell .lx-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.lx-msg-shell .lx-avatar.has-photo { background: var(--m-raise) !important; }
.lx-msg-shell .lx-avatar .lx-presence-dot {
  position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%;
  background: #31C76A !important; border: 2.5px solid var(--m-bg) !important;
}
.lx-msg-shell .lx-avatar.lx-av-lg { width: 58px !important; height: 58px !important; min-width: 58px; }
.lx-msg-shell .lx-chat-header .lx-avatar { width: 40px !important; height: 40px !important; min-width: 40px; font-size: 1.05rem; }

/* the open chat follows the theme too */
.lx-msg-shell .lx-msg-main { background: var(--m-bg) !important; }
.lx-msg-shell .lx-chat-header { background: var(--m-surface) !important; border-bottom: 0.1px solid var(--m-line) !important; }
.lx-msg-shell .lx-msg-row.is-theirs .lx-msg-bubble { background: var(--m-raise) !important; border: 0 !important; color: var(--m-ink) !important; }
.lx-msg-shell .lx-msg-row.is-mine .lx-msg-bubble { background: color-mix(in srgb, var(--m-base) 72%, #fff 18%) !important; color: #fff !important; }
.lx-msg-shell .lx-chat-composer { background: var(--m-surface) !important; border-top: 0.1px solid var(--m-line) !important; }
.lx-msg-shell .lx-composer-input { background: var(--m-chip) !important; border: 0 !important; border-radius: 999px !important; color: var(--m-ink) !important; }
.lx-msg-shell .lx-call-btn, .lx-msg-shell .lx-tool-btn:not(.lx-quick-add-nearby) { background: var(--m-chip) !important; border-color: transparent !important; color: var(--m-ink) !important; }
.lx-msg-shell .lx-send-btn { background: var(--m-acc) !important; color: #0E1622 !important; border: 0 !important; }
.lx-modal-card { background: color-mix(in srgb, var(--btn-a, #37627B) 48%, #0a0e15) !important;
  border: 0.1px solid color-mix(in srgb, var(--btn-a, #37627B) 35%, #EEF2F5) !important; }
/* names over bubbles only where they help: never on my own messages, never in a 1-to-1 chat (groups keep them) */
.lx-msg-shell .lx-msg-row.is-mine .lx-msg-sender,
.lx-msg-shell .lx-chat-stream.is-dm .lx-msg-sender { display: none !important; }
.lx-msg-shell .lx-msg-sender { color: var(--m-mute) !important; font-size: 12px !important; }

/* owner 2026-11-14: "don't keep more space for left and right side, because phone small screen — save space for text read
   and write". Phones: the Chat frame nearly touches the screen edges (4 px), and the list, messages and the typing box
   use small side gaps, so names, messages and the box get the width. Was 18 px to the frame, 33 px to the photos. */
@media (max-width: 820px) {
  body[data-route="messenger"] .app { padding-left: 4px !important; padding-right: 4px !important; }
  body[data-route="messenger"] #v-messenger { padding-left: 0 !important; padding-right: 0 !important; }
  .lx-msg-shell { border-radius: 16px !important; }
  .lx-fb-top { padding: 10px 8px 2px; }
  .lx-msg-shell .lx-side-tabs { padding: 6px 8px 6px !important; }
  .lx-msg-shell .lx-conv-list { padding: 2px 2px 8px !important; }
  .lx-msg-shell .lx-conv-item { padding: 7px 6px !important; gap: 10px; }
  .lx-msg-shell .lx-chat-header { padding: 6px 6px !important; }
  .lx-msg-shell[data-mobile-pane="chat"] .lx-chat-stream { padding: 8px 6px !important; }
  .lx-msg-shell .lx-msg-row { max-width: 88% !important; }
  .lx-msg-shell .lx-msg-bubble { padding: 8px 11px !important; }
  .lx-msg-shell .lx-chat-composer { padding: 6px 6px !important; }
}

/* owner 2026-11-14: "move UI chat up, very narrow, to under the logo". Phones: the Chat frame starts ~4 px under the logo row
   (was 21 px) and fills the screen down to the bottom bar in the list too (the list had ~80 px of empty space below). */
@media (max-width: 820px) {
  html body[data-route="messenger"] #brandHeader#brandHeader { margin-bottom: 0 !important; }
  html body[data-route="messenger"] #v-messenger#v-messenger { padding-top: 4px !important; padding-bottom: 0 !important; }
  html body[data-route="messenger"] { padding-bottom: 0 !important; }
  html body[data-route="messenger"] .app { padding-bottom: 0 !important; min-height: 0 !important; }
  /* frame = screen − logo row (~66 px) − bottom bar with the name ribbon (~90 px) */
  html body[data-route="messenger"] .lx-msg-shell,
  html body[data-route="messenger"] .lx-msg-shell[data-mobile-pane="chat"] {
    height: calc(100dvh - 156px) !important; min-height: 360px !important;
  }
  body[data-route="messenger"] .lx-msg-shell:not([data-mobile-pane="chat"]) { display: flex; flex-direction: column; }
  body[data-route="messenger"] .lx-msg-shell:not([data-mobile-pane="chat"]) .lx-msg-body { flex: 1 1 auto; min-height: 0; }
  body[data-route="messenger"] .lx-msg-shell:not([data-mobile-pane="chat"]) .lx-msg-sidebar { display: flex; flex-direction: column; min-height: 0; height: 100%; }
  body[data-route="messenger"] .lx-msg-shell:not([data-mobile-pane="chat"]) .lx-conv-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}

/* 2026-11-14 — Nearby "Show people near me" card + offline notice */
.lx-near-card {
  display: flex; align-items: center; gap: 12px; margin: 2px 4px 8px; padding: 12px; border-radius: 14px;
  background: var(--m-raise); border: 0.1px solid var(--m-line);
}
.lx-near-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.lx-near-txt strong { font: 700 max(15px, .83rem)/1.25 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-ink); }
.lx-near-txt small { font: 500 max(12.5px, .7rem)/1.4 "Manrope", var(--sans, system-ui), sans-serif; color: var(--m-mute); }
.lx-near-switch {
  flex: 0 0 auto; position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .18); transition: background .2s;
}
.lx-near-switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lx-near-switch[aria-checked="true"] { background: #31C76A; }
.lx-near-switch[aria-checked="true"] span { transform: translateX(20px); }
.lx-near-switch:disabled { opacity: .6; }
.lx-fb-offline:not([hidden]) {
  margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(232, 199, 122, .14); color: var(--m-ink);
  border: 0.1px solid rgba(232, 199, 122, .5); font: 600 max(13px, .74rem)/1.4 "Manrope", var(--sans, system-ui), sans-serif;
}
/* the old "Smart Outbox Queue (N waiting)" bar repeated the offline notice on the phone list — shown only inside a chat */
@media (max-width: 820px) { .lx-msg-shell:not([data-mobile-pane="chat"]) .lx-outbox-bar { display: none !important; } }

/* owner 2026-11-14 (photo of a cut preview "Chat in 65 languages! 🌍 Write in your own language — ever…": "set auto enter depend on
   the screen view"): the last-message line wraps to the screen width instead of being cut after one line — up to 3 lines,
   then "…" (a narrow phone shows more lines, a wide screen fewer); the unread dot stays on the first line */
/* 2026-11-14 later, owner (photo of a 3-line meeting invitation): "just one line like Facebook" → ONE line with "…" again */
.lx-msg-shell .lx-conv-sub { align-items: center !important; }
.lx-conv-prev { display: block; flex: 1 1 auto; min-width: 0; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }

/* 2026-11-14 friend requests (Accept / Decline) on top of Chats, and "Requested" on people I asked */
.lx-req-head { padding: 8px 10px 4px; color: var(--m-gold); font: 800 max(13px, .74rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif; letter-spacing: .02em; }
.lx-req-item { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 14px; background: rgba(232, 199, 122, .08); margin: 0 2px 6px; }
.lx-req-item .lx-conv-meta { flex: 1 1 auto; min-width: 0; }
.lx-req-btn { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--m-chip); color: var(--m-ink); font: 700 max(13px, .74rem)/1 "Manrope", var(--sans, system-ui), sans-serif; }
.lx-req-btn.is-yes { background: var(--m-acc); color: #0E1622; }
.lx-req-btn:disabled { opacity: .55; }
.lx-req-sent { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: var(--m-chip); color: var(--m-mute);
  font: 700 max(12.5px, .72rem)/1 "Manrope", var(--sans, system-ui), sans-serif; }

/* 2026-11-14 one-row composer in a messenger style + ＋ panel + meeting / poll / file cards (messenger-composer.js) */
.lx-msg-shell .lx-cx .lx-composer-tools { display: none !important; }
.lx-msg-shell .lx-cx { position: relative; }
.lx-msg-shell .lx-cx .lx-composer-row { display: flex !important; align-items: center; gap: 4px !important; }
.lx-cx-keys { display: flex; align-items: center; gap: 0; flex: 0 0 auto; }
.lx-cx-k { width: 38px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer; color: var(--m-acc); display: grid; place-items: center; border-radius: 50%; }
.lx-cx-k svg { width: 25px; height: 25px; }
.lx-cx-k:hover { background: rgba(255, 255, 255, .07); }
.lx-cx-k.is-rec { color: #F87171; }
.lx-cx-plus[aria-expanded="true"] svg { transform: rotate(45deg); transition: transform .15s; }
.lx-composer-row.is-typing .lx-cx-k:not(.lx-cx-plus) { display: none; }
.lx-cx-box { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; border-radius: 999px; background: var(--m-chip); padding: 0 4px 0 14px; }
.lx-msg-shell .lx-cx-box .lx-composer-input { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  min-height: 40px; padding: 0 !important; font-size: 16px !important; color: var(--m-ink) !important; outline: 0; }
.lx-cx-emo { flex: 0 0 auto; width: 32px; height: 32px; border: 0; padding: 0; background: none; color: var(--m-acc); cursor: pointer; display: grid; place-items: center; }
.lx-cx-emo svg { width: 24px; height: 24px; }
.lx-msg-shell .lx-cx #lxSendBtn { flex: 0 0 auto; width: 42px; height: 42px; min-height: 0; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center;
  background: var(--m-acc) !important; color: #0E1622 !important; font-size: 0; }
.lx-msg-shell .lx-cx #lxSendBtn svg { width: 22px; height: 22px; }
.lx-msg-shell .lx-cx #lxSendBtn.is-like { background: none !important; font-size: 26px; line-height: 1; }
.lx-cx-panel, .lx-cx-emopanel { margin: 0 0 8px; padding: 12px; border-radius: 16px; background: var(--m-raise); border: 0.1px solid var(--m-line); }
.lx-cx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.lx-cx-tile { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--m-ink); cursor: pointer; padding: 2px; min-width: 0;
  font: 600 max(12px, .7rem)/1.2 "Manrope", var(--sans, system-ui), sans-serif; text-align: center; }
.lx-cx-ti { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--c) 22%, rgba(255, 255, 255, .06)); }
.lx-cx-tile[data-off] { opacity: .45; }
.lx-cx-note { margin: 10px 2px 0; color: var(--m-mute); font: 500 max(12px, .7rem)/1.4 "Manrope", sans-serif; }
.lx-cx-emopanel { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.lx-cx-emopanel button { border: 0; background: none; font-size: 24px; line-height: 1; padding: 6px 0; cursor: pointer; border-radius: 10px; }
.lx-cx-emopanel button:hover { background: rgba(255, 255, 255, .08); }
.lx-cx-poll { display: grid; gap: 8px; }
.lx-cx-poll input { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0.1px solid var(--m-line); background: var(--m-chip); color: var(--m-ink); font: 500 16px Manrope, sans-serif; }
.lx-cx-row { display: flex; justify-content: flex-end; gap: 8px; }
.lx-cx-row button { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--m-chip); color: var(--m-ink); font: 700 14px Manrope, sans-serif; cursor: pointer; }
.lx-cx-row .lx-cx-go { background: var(--m-acc); color: #0E1622; }
.lx-meetcard, .lx-poll { display: grid; gap: 6px; min-width: min(240px, 62vw); }
.lx-meetcard span { color: var(--m-mute); font-size: .85em; }
.lx-meet-join { justify-self: start; min-height: 36px; padding: 0 22px; border-radius: 999px; border: 0; background: #31C76A; color: #06210f; font: 800 14px Manrope, sans-serif; cursor: pointer; }
.lx-poll-opt { position: relative; display: flex; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 0.1px solid var(--m-line); color: var(--m-ink); font: 600 14px Manrope, sans-serif; text-align: left;
  background: linear-gradient(90deg, rgba(232, 199, 122, .25) var(--p), rgba(255, 255, 255, .05) var(--p)); }
.lx-poll-opt.is-mine { border-color: var(--m-gold); }
.lx-poll small { color: var(--m-mute); }
.lx-filecard { display: flex; align-items: center; gap: 10px; color: var(--m-ink); text-decoration: none; min-width: min(220px, 60vw); }
.lx-file-ic { font-size: 28px; }
.lx-filecard small { display: block; color: var(--m-mute); }

/* 2026-11-14 owner: "screen on phone and tablet overlays the typing text with the footer" — phones AND tablets (≤ 1099 px):
   the chat is sized by fitChatToScreen() (messenger-composer.js) to end above the bottom bar; no page scroll; while typing
   on a touch screen (body.lx-kb) the bottom bar hides so the box stays above the keyboard; the floating AI key, which sat
   on the 👍 / Send key, is not shown on the Chat screen. */
@media (max-width: 1099px) {
  html body[data-route="messenger"] { padding-bottom: 0 !important; }
  html body[data-route="messenger"] .app { padding-bottom: 0 !important; min-height: 0 !important; }
  html body[data-route="messenger"] #v-messenger#v-messenger { padding-bottom: 0 !important; }
  html body[data-route="messenger"] #aiFloat { display: none !important; }
  html body.lx-kb #bottomNav, html body.lx-kb .name-ribbon { display: none !important; }
}
@media (max-width: 1099px) {   /* the inside (560 px minimum) was taller than the frame on a 768 px tablet → message box clipped */
  html body[data-route="messenger"] .lx-msg-shell { display: flex !important; flex-direction: column; }
  html body[data-route="messenger"] .lx-msg-shell .lx-msg-body { flex: 1 1 auto; min-height: 0 !important; height: auto !important; grid-template-rows: minmax(0, 1fr); }
  html body[data-route="messenger"] .lx-msg-shell .lx-msg-main,
  html body[data-route="messenger"] .lx-msg-shell .lx-msg-sidebar { min-height: 0 !important; height: auto !important; }
  html body[data-route="messenger"] .lx-msg-shell .lx-msg-main { display: flex; flex-direction: column; }
  html body[data-route="messenger"] .lx-msg-shell .lx-chat-stream { flex: 1 1 auto; min-height: 0 !important; overflow-y: auto; }
  html body[data-route="messenger"] .lx-msg-shell .lx-msg-sidebar { overflow-y: auto; }
}
/* 2026-11-14 owner ("← Chats" photo: "why can't I see the chat centre like before — friends, nearby, groups, global"):
   the rule above forced the chat open on phones, so "← Chats" and the Chat key showed the chat instead of the list.
   Phones show one pane at a time again: the chat centre (list), or the chat you opened. */
@media (max-width: 820px) {
  html body[data-route="messenger"] .lx-msg-shell[data-mobile-pane="list"] .lx-msg-main { display: none !important; }
  html body[data-route="messenger"] .lx-msg-shell[data-mobile-pane="chat"] .lx-msg-sidebar { display: none !important; }
  html body[data-route="messenger"] .lx-msg-shell[data-mobile-pane="list"] .lx-msg-body { grid-template-rows: minmax(0, 1fr); }
}

/* 2026-11-14 photos like a messenger: the picture alone (no bubble, no "Sent from RAM Camera" tag), rounded; tap → full screen */
.lx-msg-shell .lx-msg-ram-tag { display: none !important; }
.lx-msg-shell .lx-msg-row.is-media-only .lx-msg-bubble { background: none !important; padding: 0 !important; box-shadow: none !important; border: 0 !important; }
.lx-msg-shell .lx-msg-row.is-media-only .lx-tr-key { display: none; }
.lx-msg-shell .lx-msg-media { margin: 0 !important; max-width: min(260px, 66vw) !important; border-radius: 18px !important; overflow: hidden; }
.lx-msg-shell .lx-msg-media img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; cursor: zoom-in; }
/* 2026-11-14: photos load when scrolled to (lazy) and were 0 px tall until then — rows looked like an empty "name · time".
   A soft placeholder in photo shape until the picture arrives (then its own shape). */
.lx-msg-shell .lx-msg-media img { aspect-ratio: auto 3 / 4; background: color-mix(in srgb, var(--m-raise, #2a3542) 70%, transparent); }
.lx-viewer { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; }
.lx-viewer-bar { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; }
.lx-viewer-bar span { flex: 1; }
.lx-viewer-btn { min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  display: inline-grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font: 700 15px Manrope, system-ui, sans-serif; }
.lx-viewer-save { background: #F4F7FB; color: #0E1622; }
.lx-viewer img, .lx-viewer video { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
/* 2026-11-14 viewer = gallery of the chat's photos (‹ › / swipe, "3 / 7") */
.lx-viewer-count { flex: 1; text-align: center; color: #fff; font: 700 15px Manrope, system-ui, sans-serif; }
.lx-viewer-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lx-viewer-stage img, .lx-viewer-stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lx-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font: 400 34px/1 system-ui, sans-serif; display: grid; place-items: center; z-index: 2; }
.lx-viewer-nav.is-prev { left: 10px; } .lx-viewer-nav.is-next { right: 10px; }
.lx-viewer-nav[hidden] { display: none; }

/* 2026-11-14 chat header redesign (owner: "honest evaluate 10/10?" → 6/10 → "Yes, redesign it"): one slim row —
   ‹ · round picture · name / subtitle · small round icon keys in calm gold. Keys per chat (MessengerScreen.js):
   friend → voice · video · ⋯ (Remove friend); group → add member · group video call; Global / Lexi Help → none. */
.lx-msg-shell .lx-chat-header { display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
  gap: 6px !important; padding: 8px 8px 8px 10px !important; min-height: 60px; row-gap: 0 !important; }
.lx-msg-shell .lx-chat-peer { flex: 1 1 auto !important; min-width: 0; gap: 10px !important; }
.lx-msg-shell .lx-chat-peer-info { min-width: 0; }
.lx-msg-shell .lx-chat-peer-info h3 { font-size: 16px !important; font-weight: 700; line-height: 1.25; color: var(--m-ink) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-msg-shell .lx-chat-peer-info p { margin: 1px 0 0 !important; font-size: 12.5px !important; line-height: 1.3;
  color: color-mix(in srgb, var(--m-ink) 62%, transparent) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .lx-msg-shell .lx-mobile-back { width: 34px; height: 44px; min-height: 44px !important; padding: 0 !important; margin-left: -6px;
    justify-content: center; background: none !important; border: 0 !important; border-radius: 12px !important;
    color: color-mix(in srgb, #E9C46A 82%, var(--m-acc)) !important; }
}
.lx-msg-shell .lx-mobile-back svg { width: 26px; height: 26px; display: block; }
.lx-msg-shell .lx-chat-callbar { flex: 0 0 auto !important; gap: 2px !important; overflow: visible !important; }
.lx-msg-shell .lx-chat-callbar > .lx-call-btn, .lx-msg-shell .lx-more-wrap > .lx-call-btn {
  flex: 0 0 42px !important; width: 42px; height: 42px; min-height: 42px !important; padding: 0 !important; gap: 0 !important;
  border-radius: 50% !important; justify-content: center; background: transparent !important; border: 0 !important;
  color: color-mix(in srgb, #E9C46A 82%, var(--m-acc)) !important; font-size: 0 !important; transition: background .15s ease, transform .12s ease; }
.lx-msg-shell .lx-chat-callbar > .lx-call-btn:hover, .lx-msg-shell .lx-more-wrap > .lx-call-btn:hover,
.lx-msg-shell .lx-more-wrap > .lx-call-btn[aria-expanded="true"] { background: color-mix(in srgb, #E9C46A 14%, transparent) !important; }
.lx-msg-shell .lx-chat-callbar > .lx-call-btn:active { transform: scale(.92); }
.lx-msg-shell .lx-chat-callbar .lx-call-btn:focus-visible, .lx-msg-shell .lx-mobile-back:focus-visible { outline: 2px solid #E9C46A; outline-offset: 1px; }
.lx-msg-shell .lx-chat-callbar .lx-call-btn svg { width: 23px; height: 23px; display: block; }
.lx-msg-shell .lx-more-wrap { position: relative; display: inline-flex; }
.lx-msg-shell .lx-more-wrap[hidden], .lx-msg-shell .lx-more-menu[hidden] { display: none !important; }
.lx-msg-shell .lx-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 190px; padding: 6px;
  border-radius: 14px; background: var(--m-raise); border: 0.5px solid var(--m-line); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.lx-msg-shell .lx-more-menu .lx-unfriend-btn { display: flex; width: 100%; min-height: 44px; padding: 0 12px !important; border: 0 !important;
  border-radius: 10px !important; background: transparent !important; color: #F87171 !important; font-size: 15px !important;
  font-weight: 600; justify-content: flex-start; }
.lx-msg-shell .lx-more-menu .lx-unfriend-btn:hover { background: rgba(248,113,113,.12) !important; }
.lx-msg-shell .lx-more-menu .lx-unfriend-btn[hidden] { display: none !important; }

/* 2026-11-14 Edit / Copy / Delete a message (owner: "edit or delete a chat or photo, like Telegram") — messenger-actions.js.
   Hold a message (phone) or right-click (computer). The sheet sits on <body>, so it uses the theme's --btn-a, not --m-*. */
.lx-act-sheet { position: fixed; inset: 0; z-index: 9700; background: rgba(0,0,0,.45); display: flex; align-items: flex-end;
  justify-content: center; padding: 0 10px calc(env(safe-area-inset-bottom, 0px) + 10px); animation: lx-act-in .16s ease-out; }
@media (min-width: 821px) { .lx-act-sheet { align-items: center; padding: 20px; } }
.lx-act-card { width: min(420px, 100%); padding: 8px; border-radius: 20px; display: flex; flex-direction: column; gap: 2px;
  background: color-mix(in srgb, var(--btn-a, #37627B) 30%, #0f141b); border: 0.5px solid rgba(233,196,106,.32);
  box-shadow: 0 18px 44px rgba(0,0,0,.5); color: #F4F7FB; }
.lx-act-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 16px; border: 0;
  border-radius: 14px; background: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.lx-act-item svg { width: 22px; height: 22px; flex: 0 0 auto; color: #E9C46A; }
.lx-act-item:hover, .lx-act-item:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.lx-act-item.is-danger, .lx-act-item.is-danger svg { color: #F87171; }
.lx-act-item.is-danger.is-strong { background: rgba(248,113,113,.14); }
.lx-act-item.is-cancel { justify-content: center; margin-top: 4px; border-top: 0.5px solid rgba(255,255,255,.1); border-radius: 0 0 14px 14px;
  color: rgba(244,247,251,.75); }
.lx-act-q { margin: 8px 16px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; color: rgba(244,247,251,.75); }
.lx-act-q b { font-size: 17px; color: #F4F7FB; }
@keyframes lx-act-in { from { opacity: 0; } }
.lx-msg-shell .lx-msg-row.is-picked .lx-msg-bubble, .lx-msg-shell .lx-msg-row.is-picked .lx-msg-media {
  box-shadow: 0 0 0 2px rgba(233,196,106,.75) !important; }
.lx-msg-shell .lx-msg-media img { -webkit-touch-callout: none; }   /* hold = our menu, not the phone's image menu (Save is in the viewer) */
.lx-msg-shell .lx-msg-row { -webkit-user-select: none; user-select: none; }
.lx-msg-shell .lx-msg-text { -webkit-user-select: text; user-select: text; }
.lx-msg-edited { font-style: italic; opacity: .8; }
/* "Edit message" bar over the typing box */
.lx-msg-shell .lx-edit-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; margin: 0 0 6px;
  border-left: 3px solid #E9C46A; border-radius: 10px; background: color-mix(in srgb, var(--m-raise) 85%, transparent); }
.lx-msg-shell .lx-edit-bar[hidden] { display: none !important; }
.lx-msg-shell .lx-edit-ic svg { width: 20px; height: 20px; display: block; color: #E9C46A; }
.lx-msg-shell .lx-edit-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.lx-msg-shell .lx-edit-txt b { color: #E9C46A; font-size: 13.5px; }
.lx-msg-shell .lx-edit-txt span { color: color-mix(in srgb, var(--m-ink) 70%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-msg-shell .lx-edit-x { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--m-ink); cursor: pointer; }
.lx-msg-shell .lx-edit-x svg { width: 18px; height: 18px; }

/* 2026-11-14 voice recorder (owner: "record button — luxury first-class design, show a graphic, listen before send").
   messenger-voice.js — covers the typing row: 🗑 · ● time · live gold wave · ■  →  🗑 · ▶ · wave · time · ➤ */
.lx-msg-shell .lx-chat-composer { position: relative; }
.lx-msg-shell .lx-chat-composer.has-vrec > form { visibility: hidden; }
.lx-msg-shell .lx-vrec { position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%); min-height: 52px;
  display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--m-raise) 92%, #000); border: 0.5px solid rgba(233,196,106,.38);
  box-shadow: 0 6px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); animation: lx-vrec-in .18s ease-out; }
@keyframes lx-vrec-in { from { opacity: 0; transform: translateY(-50%) scale(.97); } }
.lx-msg-shell .lx-vrec-k { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; display: grid;
  place-items: center; cursor: pointer; transition: transform .12s ease, background .15s ease; }
.lx-msg-shell .lx-vrec-k[hidden] { display: none; }
.lx-msg-shell .lx-vrec-k:active { transform: scale(.92); }
.lx-msg-shell .lx-vrec-k svg { width: 22px; height: 22px; display: block; }
.lx-msg-shell .lx-vrec-k:focus-visible { outline: 2px solid #E9C46A; outline-offset: 2px; }
.lx-msg-shell .lx-vrec-k.is-ghost { background: transparent; color: color-mix(in srgb, var(--m-ink) 70%, transparent); }
.lx-msg-shell .lx-vrec-k.is-ghost:hover { color: #F87171; background: rgba(248,113,113,.1); }
.lx-msg-shell .lx-vrec-k.is-gold { color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37 60%, #B8912A);
  box-shadow: 0 4px 14px rgba(212,175,55,.35); }
.lx-msg-shell .lx-vrec-k.is-play { flex-basis: 38px; width: 38px; height: 38px; color: #E9C46A; background: rgba(233,196,106,.14); }
.lx-msg-shell .lx-vrec-mid { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lx-msg-shell .lx-vrec-wave { flex: 1 1 auto; min-width: 0; height: 30px; display: block; cursor: pointer; }
.lx-msg-shell .lx-vrec-time { flex: 0 0 auto; min-width: 36px; text-align: right; font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--m-ink); }
.lx-msg-shell .lx-vrec-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: #FF3B30;
  box-shadow: 0 0 0 0 rgba(255,59,48,.5); animation: lx-vrec-dot 1.2s ease-in-out infinite; }
.lx-msg-shell .lx-vrec.is-review .lx-vrec-dot { display: none; }
@keyframes lx-vrec-dot { 50% { box-shadow: 0 0 0 6px rgba(255,59,48,0); opacity: .55; } }
.lx-msg-shell .lx-vrec.is-recording [data-v="stop"] { animation: lx-vrec-ring 1.6s ease-in-out infinite; }
@keyframes lx-vrec-ring { 50% { box-shadow: 0 0 0 7px rgba(212,175,55,0), 0 4px 14px rgba(212,175,55,.35); } 0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.45), 0 4px 14px rgba(212,175,55,.35); } }
@media (prefers-reduced-motion: reduce) { .lx-msg-shell .lx-vrec-dot, .lx-msg-shell .lx-vrec.is-recording [data-v="stop"] { animation: none; } }

/* 2026-11-14 owner (photo): "no need to see this alert text, it can affect chat" — the offline notice is never shown */
.lx-msg-shell .lx-fb-offline { display: none !important; }

/* 2026-11-14 New Message / New Group / Add Members like Telegram (messenger-newchat.js). On <body> → theme via --btn-a.
   Phone: full screen. Computer: a card in the middle. */
.lx-nc { position: fixed; inset: 0; z-index: 9650; background: rgba(0,0,0,.5); display: flex; align-items: stretch; justify-content: center;
  animation: lx-act-in .16s ease-out; }
@media (min-width: 821px) { .lx-nc { align-items: center; padding: 24px; } }
.lx-nc-card { position: relative; width: 100%; max-width: 480px; display: flex; flex-direction: column; min-height: 0;
  background: color-mix(in srgb, var(--btn-a, #37627B) 26%, #0d1218); color: #F4F7FB;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 env(safe-area-inset-bottom, 0px); }
@media (min-width: 821px) { .lx-nc-card { height: min(720px, 88vh); border-radius: 22px; border: 0.5px solid rgba(233,196,106,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.55); padding-top: 10px; overflow: hidden; } }
.lx-nc-head { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.lx-nc-head h3 { flex: 1 1 auto; margin: 0; text-align: center; font-size: 17px; font-weight: 700; }
.lx-nc-title { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; }
.lx-nc-title h3 { margin: 0; font-size: 17px; font-weight: 700; }
.lx-nc-count { font-size: 12.5px; color: rgba(244,247,251,.6); }
.lx-nc-spacer { flex: 0 0 44px; }
.lx-nc-round { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #F4F7FB; cursor: pointer; }
.lx-nc-round svg { width: 20px; height: 20px; }
.lx-nc-search { display: flex; align-items: center; gap: 8px; margin: 2px 14px 8px; padding: 0 14px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,.08); color: rgba(244,247,251,.6); }
.lx-nc-search svg { width: 19px; height: 19px; flex: 0 0 auto; }
.lx-nc-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #F4F7FB; font: inherit; font-size: 16px; }
.lx-nc-search input::placeholder { color: rgba(244,247,251,.55); }
.lx-nc-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 22px 90px 14px; }
.lx-nc-act { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 0 6px; border: 0;
  border-bottom: 0.5px solid rgba(255,255,255,.08); background: transparent; color: #E9C46A; font: inherit; font-size: 17px;
  font-weight: 600; cursor: pointer; text-align: left; }
.lx-nc-act svg { width: 26px; height: 26px; flex: 0 0 auto; }
.lx-nc-letter { padding: 14px 6px 4px; font-size: 13px; font-weight: 700; color: rgba(244,247,251,.5); }
.lx-nc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 6px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lx-nc-row:hover:not(.is-static):not(:disabled), .lx-nc-row:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.lx-nc-row:disabled { cursor: default; opacity: .65; }
.lx-nc-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; border-bottom: 0.5px solid rgba(255,255,255,.07); padding-bottom: 8px; }
.lx-nc-txt b { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-nc-txt small { font-size: 13.5px; color: rgba(244,247,251,.55); }
.lx-nc-txt small.is-on { color: #E9C46A; }
.lx-nc-av { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--av, #37627B) 70%, #fff 12%), var(--av, #37627B));
  color: #fff; font-size: 19px; font-weight: 700; }
.lx-nc-av img { width: 100%; height: 100%; object-fit: cover; }
.lx-nc-av.is-sm { flex-basis: 26px; width: 26px; height: 26px; font-size: 12px; }
.lx-nc-av.is-lg { flex-basis: 64px; width: 64px; height: 64px; }
.lx-nc-av.is-group { background: linear-gradient(135deg, #F6E3A6, #D4AF37 60%, #B8912A); color: #1A1406; }
.lx-nc-av.is-group svg { width: 55%; height: 55%; }
.lx-nc-tick { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(244,247,251,.35); display: grid; place-items: center; color: transparent; }
.lx-nc-tick svg { width: 16px; height: 16px; }
.lx-nc-row[aria-checked="true"] .lx-nc-tick { border-color: transparent; color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }
.lx-nc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; max-height: 96px; overflow-y: auto; }
.lx-nc-chips[hidden] { display: none; }
.lx-nc-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 4px; border: 0; border-radius: 999px;
  background: rgba(233,196,106,.16); color: #F4F7FB; font: inherit; font-size: 14px; cursor: pointer; }
.lx-nc-chip > svg { width: 14px; height: 14px; opacity: .7; }
.lx-nc-index { position: absolute; right: 2px; top: 150px; bottom: 90px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.lx-nc-index button { min-width: 22px; min-height: 18px; padding: 0; border: 0; background: none; color: #E9C46A; font: inherit;
  font-size: 11.5px; font-weight: 700; cursor: pointer; }
.lx-nc-empty { margin: 22px 8px; text-align: center; font-size: 15px; color: rgba(244,247,251,.6); line-height: 1.5; }
.lx-nc-fab { position: absolute; right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); width: 58px; height: 58px; border-radius: 50%;
  border: 0; display: grid; place-items: center; cursor: pointer; color: #1A1406; opacity: .45;
  background: linear-gradient(135deg, #F6E3A6, #D4AF37 60%, #B8912A); box-shadow: 0 8px 22px rgba(212,175,55,.35); transition: opacity .15s, transform .12s; }
.lx-nc-fab.is-ready { opacity: 1; }
.lx-nc-fab:active { transform: scale(.94); }
.lx-nc-fab svg { width: 26px; height: 26px; }
.lx-nc-namebox { display: flex; align-items: center; gap: 14px; padding: 6px 16px 12px; }
.lx-nc-name { flex: 1; min-width: 0; height: 48px; border: 0; border-bottom: 2px solid #E9C46A; background: transparent; color: #F4F7FB;
  font: inherit; font-size: 18px; outline: none; }
.lx-nc-sub { margin: 4px 20px 4px; font-size: 13px; font-weight: 700; color: rgba(244,247,251,.5); text-transform: uppercase; letter-spacing: .04em; }
/* "New Group" row at the top of the Groups tab */
.lx-msg-shell .lx-nc-newgroup { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 6px 8px; border: 0;
  border-radius: 12px; background: transparent; color: #E9C46A; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; }
.lx-msg-shell .lx-nc-newgroup:hover { background: rgba(255,255,255,.05); }

/* 2026-11-14 alerts (messenger-push.js): a slim "Get alerts for new messages · Turn on · ✕" row (browsers, once) and the
   once-a-day "New LexiGlobal app 1.7 · Update" card for phones on the old Android app */
.lx-msg-shell .lx-alerts-row { display: flex; align-items: center; gap: 10px; margin: 2px 6px 6px; padding: 6px 6px 6px 10px; min-height: 48px;
  border-radius: 14px; background: color-mix(in srgb, #E9C46A 10%, transparent); border: 0.5px solid rgba(233,196,106,.3); }
.lx-msg-shell .lx-alerts-ic svg { width: 22px; height: 22px; display: block; color: #E9C46A; }
.lx-msg-shell .lx-alerts-txt { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--m-ink); }
.lx-msg-shell .lx-alerts-on { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }
.lx-msg-shell .lx-alerts-on:disabled { opacity: .6; }
.lx-msg-shell .lx-alerts-x { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent;
  color: color-mix(in srgb, var(--m-ink) 60%, transparent); cursor: pointer; font-size: 15px; }
.lx-upd { position: fixed; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); z-index: 9300;
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 18px; max-width: 520px; margin: 0 auto;
  background: color-mix(in srgb, var(--btn-a, #37627B) 30%, #0f141b); border: 0.5px solid rgba(233,196,106,.4);
  box-shadow: 0 14px 34px rgba(0,0,0,.45); color: #F4F7FB; animation: lx-act-in .2s ease-out; }
.lx-upd-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lx-upd-txt b { font-size: 15px; } .lx-upd-txt span { font-size: 13px; color: rgba(244,247,251,.7); }
.lx-upd-go { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: #1A1406; text-decoration: none; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }
.lx-upd-x { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: rgba(244,247,251,.7); font-size: 15px; cursor: pointer; }

/* 2026-11-14 full-screen incoming call (messenger-callui.js; owner: "tablet and phone, call — nothing, no signal": the ring was
   a thin bar hidden on phones). The old bar is only the on/off switch now, never shown. */
#lxIncomingCallBar { display: none !important; }
/* 2026-11-14 owner photo (phone): the All / Friends / Groups / Nearby pills were squashed under the list — every part of the
   Chats column could shrink. Only the list shrinks (and scrolls) now. */
.lx-msg-shell .lx-msg-sidebar > .lx-fb-top, .lx-msg-shell .lx-msg-sidebar > .lx-side-tabs,
.lx-msg-shell .lx-msg-sidebar > .lx-alerts-row { flex-shrink: 0 !important; }
.lx-msg-shell .lx-msg-sidebar > .lx-conv-list { flex: 1 1 auto; min-height: 0 !important; overflow-y: auto; }
.lx-ring { position: fixed; inset: 0; z-index: 9950; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12vh) 24px calc(env(safe-area-inset-bottom, 0px) + 9vh); color: #F4F7FB;
  background: radial-gradient(120% 70% at 50% 25%, color-mix(in srgb, var(--btn-a, #37627B) 55%, #0b1016), #06090d 75%);
  animation: lx-act-in .2s ease-out; }
.lx-ring-top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lx-ring-av { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; overflow: visible;
  background: linear-gradient(135deg, #F6E3A6, #D4AF37 60%, #B8912A); padding: 4px; }
.lx-ring-av > img, .lx-ring-av > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: #1b2430; color: #F4F7FB; font-size: 52px; font-weight: 700; }
.lx-ring-av::before, .lx-ring-av::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(233,196,106,.55);
  animation: lx-ring-wave 2s ease-out infinite; }
.lx-ring-av::after { animation-delay: 1s; }
@keyframes lx-ring-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.lx-ring-top h2 { margin: 10px 0 0; font-size: 28px; font-weight: 700; letter-spacing: .01em; max-width: 86vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-ring-top p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; color: rgba(244,247,251,.75); }
.lx-ring-top p svg { width: 18px; height: 18px; color: #E9C46A; }
.lx-ring-keys { display: flex; gap: 72px; }
.lx-ring-keys > div { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: rgba(244,247,251,.8); }
.lx-ring-k { width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.45); transition: transform .12s ease; }
.lx-ring-k:active { transform: scale(.93); }
.lx-ring-k svg { width: 32px; height: 32px; }
.lx-ring-k.is-no { background: #E5484D; }
.lx-ring-k.is-no svg { transform: rotate(135deg); }
.lx-ring-k.is-yes { background: #2FB463; animation: lx-ring-bounce 1.6s ease-in-out infinite; }
.lx-ring-k:focus-visible { outline: 3px solid #E9C46A; outline-offset: 3px; }
@keyframes lx-ring-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lx-ring-av::before, .lx-ring-av::after, .lx-ring-k.is-yes { animation: none; } }

/* 2026-11-14 Group info (messenger-groupinfo.js; owner: "only the owner or teacher adds members … the teacher removes the
   member"). Tap the group name in the chat header. */
.lx-msg-shell .lx-chat-peer.is-tappable .lx-chat-peer-info { cursor: pointer; }
.lx-gi-top { display: flex; align-items: center; gap: 14px; padding: 4px 18px 14px; }
.lx-gi-top b { display: block; font-size: 19px; }
.lx-gi-top small { font-size: 13.5px; color: rgba(244,247,251,.6); }
.lx-gi-rm { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(248,113,113,.5);
  background: transparent; color: #F87171; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lx-gi-rm.is-sure { background: rgba(248,113,113,.16); }
.lx-gi-more { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #E9C46A; cursor: pointer; }
.lx-gi-more svg { width: 20px; height: 20px; }
.lx-act-sheet.is-gi { z-index: 9700; }
.lx-gi-note { margin: 16px 8px 0; font-size: 13px; line-height: 1.5; color: rgba(244,247,251,.55); text-align: center; }

/* 2026-11-14 tappable links in messages (messenger-links.js); a LexiGlobal link opens inside the app */
.lx-msg-shell .lx-msg-text .lx-link { color: #F0D27A; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.lx-msg-shell .lx-msg-row.is-mine .lx-msg-text .lx-link { color: #FFF3C9; }

/* 2026-11-14 "● Class 001 is live · Sophal — Join" (messenger-liveclass.js): a class call reaches late phones too */
.lx-msg-shell .lx-live-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 6px 6px 6px 14px; min-height: 48px;
  border-radius: 14px; background: linear-gradient(135deg, rgba(246,227,166,.18), rgba(212,175,55,.12)); border: 0.5px solid rgba(233,196,106,.55);
  color: var(--m-ink); flex-shrink: 0; }
.lx-msg-shell .lx-live-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #34D3A0; animation: ml-live-pulse 1.6s ease-out infinite; }
@keyframes ml-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,160,.6); } 100% { box-shadow: 0 0 0 9px rgba(52,211,160,0); } }
.lx-msg-shell .lx-live-txt { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-msg-shell .lx-live-txt b { color: #F0D27A; }
.lx-msg-shell .lx-live-join { flex: 0 0 auto; min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: #1A1406; background: linear-gradient(135deg, #F6E3A6, #D4AF37); }
@media (prefers-reduced-motion: reduce) { .lx-msg-shell .lx-live-dot { animation: none; } }

/* 2026-11-14 owner: "select multiple then delete, like Telegram" (messenger-actions.js) — the header becomes the selection bar;
   my messages get a tick circle at the bubble's corner; others' messages fade (only the sender may delete) */
.lx-msg-shell .lx-chat-header { position: relative; }
.lx-sel-bar { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--m-surface, #18222E); border-radius: inherit; animation: lx-act-in .14s ease-out; }
.lx-sel-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.08); color: #F4F7FB; }
.lx-sel-x svg { width: 20px; height: 20px; }
.lx-sel-n { flex: 1 1 auto; min-width: 0; font: 700 17px/1.2 "Manrope", system-ui, sans-serif; color: #F4F7FB; }
.lx-sel-del { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(248,113,113,.55); background: rgba(248,113,113,.14); color: #FCA5A5; font: 700 15px/1 "Manrope", system-ui, sans-serif; }
.lx-sel-del svg { width: 20px; height: 20px; }
.lx-sel-del:disabled { opacity: .45; cursor: default; }
.lx-selecting .lx-msg-row.lx-selectable { position: relative; cursor: pointer; }
.lx-selecting .lx-msg-row.lx-selectable::before { content: ""; position: absolute; top: -7px; left: -7px; z-index: 3; width: 24px; height: 24px;
  box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(10,14,21,.78); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.lx-selecting .lx-msg-row.is-sel::before { border-color: #E9C46A; background: #E9C46A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8' fill='none' stroke='%230E1622' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.lx-selecting .lx-msg-row.is-sel .lx-msg-bubble, .lx-selecting .lx-msg-row.is-sel .lx-msg-media { outline: 2px solid #E9C46A; outline-offset: 2px; }
.lx-selecting .lx-msg-row:not(.lx-selectable) { opacity: .4; }

/* 2026-11-14 Group info: Leave group (everyone) / Delete group (teacher) at the bottom */
.lx-gi-exit { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 0.5px solid rgba(255,255,255,.1); }
.lx-nc-act.lx-gi-danger, .lx-nc-act.lx-gi-danger svg { color: #F87171 !important; }

/* 2026-11-14 Chats list: hold a group → Leave / Delete / Select several (messenger-listactions.js) */
.lx-conv-item.lx-going { display: none !important; }
.lx-conv-item.is-picked { background: rgba(255,255,255,.1) !important; }
.lx-lsel-bar { inset: 0 0 auto 0; min-height: 56px; padding: 8px 12px; border-radius: 16px 16px 0 0; flex-wrap: wrap; }
.lx-lsel-bar .lx-sel-del[hidden] { display: none; }
.lx-conv-list.lx-selecting .lx-conv-item.lx-selectable { position: relative; cursor: pointer; }
.lx-conv-list.lx-selecting .lx-conv-item.lx-selectable::before { content: ""; position: absolute; left: 8px; top: 8px; z-index: 3; width: 22px; height: 22px;
  box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(10,14,21,.78); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.lx-conv-list.lx-selecting .lx-conv-item.is-sel { background: rgba(233,196,106,.12) !important; }
.lx-conv-list.lx-selecting .lx-conv-item.is-sel::before { border-color: #E9C46A; background: #E9C46A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8' fill='none' stroke='%230E1622' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lx-conv-list.lx-selecting .lx-conv-item:not(.lx-selectable) { opacity: .4; }

/* 2026-11-14 owner: "make + and user easy to note" — each round key at the top of Chats has its name under it */
.lx-fb-icons { gap: 12px; align-items: flex-start; }
.lx-fb-ic { position: relative; margin-bottom: 15px; }
.lx-fb-lb { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 600 10.5px/1 "Manrope", system-ui, sans-serif; color: rgba(244,247,251,.78); }
/* the selection bar over the Chats header stays one line on phones */
.lx-lsel-bar { flex-wrap: nowrap !important; gap: 8px !important; padding: 8px 10px !important; }
.lx-lsel-bar .lx-sel-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.lx-lsel-bar .lx-sel-del { flex: none; padding: 0 12px; min-height: 38px; font-size: 14px; gap: 6px; }
.lx-lsel-bar .lx-sel-del svg { width: 18px; height: 18px; }
