/* ============================================================
   ZerMor theme stylesheet — the ONE custom CSS file for this
   theme (owner rule 2026-11-17: all CSS lives here, in the real
   theme stylesheet; never a duplicate, override or global file).
   Sections keep the cascade order the features were built in.
   ============================================================ */


/* ---------------- mt-actions.css ---------------- */
/* ZerMor: post action row sizing.
   These are the exact rules the reference site applies to .post-actions, ported
   verbatim so both sites render the row identically: buttons keep their natural
   size grouped at the start of the row, 4px apart, 26px icons, counts beside the
   icons, and the counters sit together at the row's right end. */
.post-actions .action-btn{ font-size: 15px; padding-left: 10px; padding-right: 10px; gap: 6px; }
.post-actions .action-btn > span:not([aria-hidden="true"]), .post-actions .reaction-btn-name{ font-size: 15px; white-space: nowrap; }
.post-actions .reaction-btn{ gap: 6px; }
.post-actions .reaction-btn-name{ margin-inline-start: 0; }
.post-actions .action-btn > span[aria-hidden="true"], .post-actions .reaction-btn-icon > span, .post-actions .reaction-btn-icon .inline-emoji{ width: 26px; height: 26px; }
@media (max-width: 639px){
  .post-actions{ gap: 4px; }
  .post-actions .action-btn{ font-size: 13px; padding-left: 7px; padding-right: 7px; flex: 0 1 auto; min-width: 0; }
  .post-actions > .ms-auto{ flex: 0 0 auto; }
}
@media (max-width: 480px){
  .post-actions{ margin-left: 8px; margin-right: 8px; gap: 2px; }
  .post-actions .action-btn{ padding-left: 4px; padding-right: 4px; gap: 4px; }
  .post-actions .action-btn > span[aria-hidden="true"], .post-actions .reaction-btn-icon > span, .post-actions .reaction-btn-icon .inline-emoji{ width: 22px; height: 22px; }
  .post-actions > .ms-auto{ gap: 2px; }
  .post-actions > .ms-auto > *{ font-size: 12px; padding-left: 2px; padding-right: 2px; gap: 4px; }
  .post-actions > .ms-auto span[class*="icon-"]{ width: 16px; height: 16px; }
}
@media (max-width: 380px){
  .post-actions .action-btn > span[aria-hidden="true"], .post-actions .reaction-btn-icon > span, .post-actions .reaction-btn-icon .inline-emoji{ width: 20px; height: 20px; }
}


/* ---------------- mt-feed.css ---------------- */
/* ZerMor: Facebook-style full-width feed.
   The page caps its own width (max-w-7xl) and adds inline padding, which left a
   wide empty margin beside every post. Lifting that cap on pages that carry the
   feed stream lets the centre column take the leftover space, exactly as the
   reference layout does, and each post gets the Facebook card treatment. */
.site-content:has(.js_posts_stream) { max-width: none; padding-inline: 0; padding-top: 0; }

.site-content:has(.js_posts_stream) article.post {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .09);
}

/* phones keep a small side margin so the card edge never touches the screen */
@media (max-width: 639px) {
  .site-content:has(.js_posts_stream) { padding-inline: 12px; }
}

/* ZerMor: a feed reel post fills the whole screen between the top and
   bottom bars on every device — the media takes all the height the
   screen offers (any video height fits), the post header stays at the
   top and the action buttons sit at the bottom of the screen. The
   thumbnail fills its frame edge to edge: no empty or black area.
   Desktop has no bottom bar, so only the top bar comes off. */
article.post.mt-post-fit { display: flex; flex-direction: column; height: calc(100vh - 120px); height: calc(100dvh - 120px); }
.mt-post-fit .post-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.mt-post-fit .mt-feed-reel-wrap { flex: 1 1 auto; min-height: 0; }
.mt-post-fit .mt-feed-reel { height: 100%; }
/* ZerMor: tighter vertical spacing on every post (owner 2026-11-17) —
   less gap between posts, above and below the header, and around the
   action row. */
.js_posts_stream > ul { gap: 8px; }
article.post .post-header { padding-top: 10px; padding-bottom: 4px; }
article.post .post-stats { padding-top: 6px; padding-bottom: 4px; }
article.post .post-actions { padding-top: 2px; padding-bottom: 2px; }
@media (min-width: 1024px) {
  article.post.mt-post-fit { height: calc(100vh - 64px); height: calc(100dvh - 64px); }
}


/* reels viewer: the video fills the whole frame (object-cover,
   owner 2026-11-20), so the rail and the details block share one
   flat bottom anchor — no video-box vars (a stale --zm-reel-vh made
   the rail sink on the owner's phone). Owner 2026-11-24: the rail's
   bottom sits at the same offset from the bottom as the username. */
@media (max-width: 1023.5px) {
  .reel-container .mt-reel-rail {
    inset-inline-end: calc(100% - var(--zm-reel-vx, 0px) - var(--zm-reel-vw, 100%) + 0.5rem);
    bottom: calc(env(safe-area-inset-bottom) + 4.75rem);
  }
  /* the author name + caption sit at the frame's bottom edge, where
     the phone's white navigation bar covers them (owner 2026-11-21):
     lift the whole details block clear of that bar */
  .reel-container .zm-reel-details {
    padding-bottom: calc(env(safe-area-inset-bottom) + 4.75rem);
  }
}
.reel-container .zm-reel-details {
  right: auto;
  left: var(--zm-reel-vx, 0px);
  width: var(--zm-reel-vw, 100%);
}

/* icons the theme bundle does not contain (verified by grep in
   dist/assets/app-*.css) — same mask pattern the bundle itself
   uses. gift-filled: Tabler set. zm--comment-dots + zm--share-arrow:
   the TikTok rail glyphs (solid bubble with dots, solid curved
   arrow) from the FA6 solid set — Tabler has no filled share and
   no dotted comment glyph at all. */
.icon-\[tabler--gift-filled\]{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M11 14v8H7a3 3 0 0 1-3-3v-4a1 1 0 0 1 1-1zm8 0a1 1 0 0 1 1 1v4a3 3 0 0 1-3 3h-4v-8zM16.5 2a3.5 3.5 0 0 1 3.163 5H20a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2h-7V7h-2v5H4a2 2 0 0 1 2-2h.337A3.5 3.5 0 0 1 4 5.5C4 3.567 5.567 2 7.483 2c1.755-.03 3.312 1.092 4.381 2.934l.136.243c1.033-1.914 2.56-3.114 4.291-3.175zm-9 2a1.5 1.5 0 0 0 0 3h3.143C9.902 5.095 8.694 3.98 7.5 4m8.983 0c-1.18-.02-2.385 1.096-3.126 3H16.5a1.5 1.5 0 1 0-.017-3'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.icon-\[zm--comment-dots\]{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0M5.4 12a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0M10.2 12a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0M15 12a1.8 1.8 0 1 0 3.6 0a1.8 1.8 0 1 0-3.6 0'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.icon-\[zm--share-arrow\]{width:1em;height:1em;-webkit-mask-image:var(--svg);mask-image:var(--svg);--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='512' height='512'%3E%3Cpath fill='black' d='M307 34.8c-11.5 5.1-19 16.6-19 29.2v64H176C78.8 128 0 206.8 0 304c0 113.3 81.5 163.9 100.2 174.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5c-9.4-8.9-22.2-26.4-22.2-56.8c0-53 43-96 96-96h96v64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144a31.76 31.76 0 0 0-34.4-5.4'/%3E%3C/svg%3E");background-color:currentColor;display:inline-block;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}


/* ---------------- mt-mobile.css ---------------- */
/* ZerMor: Facebook-style mobile shell.
   Facebook's phone layout is a grey canvas with edge-to-edge white surfaces
   separated by thin gaps, and a slide-in drawer behind a hamburger. The theme
   ships a padded, carded desktop layout, so this file re-shapes it below the
   lg breakpoint only. Desktop is untouched. */

@media (max-width: 1023.98px) {

  /* grey canvas: white surfaces need something to read against */
  body { background-color: #f0f2f5; }
  :root[data-theme$="dark"] body, body.night-mode { background-color: #18191a; }

  /* feed goes edge to edge; the theme's own gutters are dropped */
  .site-content:has(.js_posts_stream) {
    padding-inline: 0 !important;
    padding-top: 0 !important;
    max-width: none !important;
  }

  /* one tight rhythm for the whole feed (owner 2026-11-20: the
     halved story gap applied globally, between every section and
     every post) — was Facebook's 8px, now 2.5px like the story gap */
  .site-content:has(.js_posts_stream) .js_posts_stream > ul { gap: 2.5px !important; }
  .site-content:has(.js_posts_stream) .flex.min-w-0.flex-1.flex-col { gap: 2.5px !important; }

  /* --- posts: full-bleed white surfaces --- */
  .site-content:has(.js_posts_stream) article.post {
    border-radius: 0 !important;
    border-inline-width: 0 !important;
    box-shadow: none !important;
  }
  :root[data-theme$="dark"] .site-content:has(.js_posts_stream) article.post,
  body.night-mode .site-content:has(.js_posts_stream) article.post { box-shadow: none !important; }

  /* --- composer --- */
  #publisher-trigger {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-inline: 12px !important;
  }

  /* --- stories: full-bleed rail, arrows are touch noise --- */
  .js_stories { padding-inline: 0; }
  .js_stories-strip { padding-inline: 12px !important; }
  .js_stories-prev, .js_stories-next { display: none !important; }
  /* story tray: bottom gap equals the top gap (owner 2026-11-20).
     REAL MODEL (found 2026-11-20 after several misses): the feed
     column gap is 8px on mobile (the Facebook-rhythm rule above)
     but 20px on desktop, so below-card space = strip py 4 + gap +
     this margin. Mobile: 4 + 8 - 7 = 5px = the top gap. The old
     -21/-18 pulls (tuned to the desktop 20px gap) OVERLAPPED the
     composer onto the card by 9px/6px on mobile — the owner's
     "story overflow karahi" reports. Desktop stays -19px
     (4 + 20 - 19 = 5, browser-verified 4px top / 5px bottom).
     HALVED (owner 2026-11-20 15:01 "uper neechay half kro gap"):
     strip py 4->2 everywhere. GLOBAL (15:02, same day): the feed
     column gap is now 2.5px at every width, so the tray pull is
     just -2px on both (2 + 2.5 - 2 = 2.5 below, 2 above). */
  .js_stories { margin-bottom: -2px; }
  /* publisher trigger: less white (owner 2026-11-20 "ye chota kro
     white km kro") — vertical padding 12px -> 6px on mobile */
  #publisher-trigger { padding-top: 6px; padding-bottom: 6px; }

  /* --- left sidebar: slide-in drawer, hidden until the hamburger opens it --- */
  #site-sidebar.overlay {
    display: none;
    position: fixed !important;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 60;
    width: 18rem;
    max-width: 84vw;
    height: 100dvh;
    padding-block: 0.75rem 6rem;
    overflow-y: auto;
    background-color: var(--color-base-100, #fff);
    box-shadow: 0 0 24px rgba(16, 24, 40, .18);
  }
  #site-sidebar.overlay:not(.hidden) { display: block; }
  :root[data-theme$="dark"] #site-sidebar.overlay, body.night-mode #site-sidebar.overlay { background-color: #242526; }

  /* the collapse control belongs to the desktop rail */
  #site-sidebar [data-overlay-minifier] { display: none !important; }

  /* dimming layer behind the drawer */
  .site-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, .5);
  }
  .site-sidebar-backdrop[hidden] { display: none; }

  /* Explore menu: horizontal two-column tile grid instead of
     one long vertical list (owner 2026-11-22) — the drawer is
     18rem wide, so the items pair up side by side like the
     Facebook menu; icon on top, label underneath. Covers the
     main list and the See More list (only while open —
     :not(.hidden) keeps the collapsed state collapsed). */
  #site-sidebar nav > ul.menu:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.25rem 0.6rem 0.6rem;
  }
  #site-sidebar nav > ul.menu > li {
    min-width: 0;
    display: flex;
    border-radius: 1rem;
    background: color-mix(in oklab, var(--color-base-content) 4.5%, transparent);
    overflow: hidden;
  }
  #site-sidebar nav > ul.menu > li > a {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 1rem;
    padding: 0.7rem 0.65rem;
  }
  #site-sidebar nav > ul.menu > li > a span.min-w-0 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }

  /* --- top + bottom bar buttons: the post action row's flat style ---
     no boxes, the post row's colour, 26px icons (owner 2026-11-17) */
  .site-topbar-icon {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: color-mix(in oklab, var(--color-base-content) 70%, transparent) !important;
  }
  .site-topbar-icon :is(span[class*="icon-"], i[class*="icon-"]) { width: 26px !important; height: 26px !important; }

  .js_site-bottom-bar a { color: color-mix(in oklab, var(--color-base-content) 70%, transparent) !important; }
  .js_site-bottom-bar a :is(span[class*="icon-"], i[class*="icon-"]) { width: 26px !important; height: 26px !important; }
  .js_site-bottom-bar a > span.bg-primary { background-color: var(--color-base-content) !important; }
  .js_site-bottom-bar a img { --tw-ring-color: var(--color-base-content) !important; }
}

/* ZerMor shop icon (owner 2026-11-20): custom professional storefront —
   scalloped awning, arched door, knob and step — one shape for the bottom
   bar and the menu (registry icon in functions-design.php) */
.icon-zm-shop { display: inline-block; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 6.8 H17.4 C18.7 6.8 19.65 7.7 19.8 9.2 L20.5 16.2 C20.72 19.25 19.25 21.55 16.5 21.57 H7.5 C4.75 21.55 3.28 19.25 3.5 16.2 L4.2 9.2 C4.35 7.7 5.3 6.8 6.6 6.8 Z'/%3E%3Cpath d='M8.5 6.7 L8.5 5.9 A3.5 3.5 0 0 1 15.5 5.9 L15.5 6.7'/%3E%3Cpath d='M8.3 10.3 A3.7 3.6 0 0 0 15.7 10.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 6.8 H17.4 C18.7 6.8 19.65 7.7 19.8 9.2 L20.5 16.2 C20.72 19.25 19.25 21.55 16.5 21.57 H7.5 C4.75 21.55 3.28 19.25 3.5 16.2 L4.2 9.2 C4.35 7.7 5.3 6.8 6.6 6.8 Z'/%3E%3Cpath d='M8.5 6.7 L8.5 5.9 A3.5 3.5 0 0 1 15.5 5.9 L15.5 6.7'/%3E%3Cpath d='M8.3 10.3 A3.7 3.6 0 0 0 15.7 10.3'/%3E%3C/svg%3E"); }

/* the hamburger only exists on the phone breakpoint */
.site-topbar-hamburger { display: none !important; }
@media (max-width: 1023.98px) { .site-topbar-hamburger { display: inline-flex !important; } }


/* ---------------- mt-gifts.css ---------------- */
/* ZerMor gifting panel + playback stage (owner spec 2026-11-17).
   TikTok-pattern dark bottom sheet, MT colours. Loaded via _head.tpl. */

#zm-gift-root { position: fixed; inset: 0; z-index: 1250; }
#zm-gift-root[hidden] { display: none; }
.zm-gift-scrim { position: absolute; inset: 0; background: rgba(8, 8, 14, .45); }
.zm-gift-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 54dvh; max-height: 620px;
  display: flex; flex-direction: column;
  background: #17171f; color: #f4f4f6;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  animation: zm-sheet-in .26s cubic-bezier(.2, .9, .25, 1);
}
@keyframes zm-sheet-in { from { transform: translateY(48px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) {
  .zm-gift-sheet { left: 50%; right: auto; transform: translateX(-50%); width: 520px; }
  @keyframes zm-sheet-in { from { transform: translate(-50%, 48px); opacity: .4; } to { transform: translateX(-50%); opacity: 1; } }
}
.zm-gift-head { display: flex; align-items: center; gap: 10px; padding: 2px 46px 8px 2px; }
.zm-gift-to { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; font-size: 14px; }
.zm-gift-to img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: #2a2a35; }
.zm-gift-to b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-gift-to span { color: rgba(244, 244, 246, .55); white-space: nowrap; }
.zm-gift-x {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 34px; height: 34px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 19px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.zm-gift-x:hover { background: rgba(255, 255, 255, .26); }
.zm-gift-error {
  margin: 0 2px 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 70, 85, .14); color: #ff8a94; font-size: 13px;
}
.zm-gift-note {
  margin: 0 2px 8px; padding: 0 2px; color: rgba(244, 244, 246, .55); font-size: 12px; line-height: 1.45;
}
.zm-gift-grid {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px;
}
.zm-grid-tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-content: start;
}
.zm-freq { margin-bottom: 2px; }
.zm-freq-head { font-size: 13px; font-weight: 600; color: rgba(244, 244, 246, .88); padding: 2px 2px 6px; }
.zm-freq-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.zm-freq-row::-webkit-scrollbar { display: none; }
.zm-freq-row .zm-tile { flex: 0 0 76px; padding-top: 4px; padding-bottom: 4px; }
/* the freq strip stays compact (owner order 2026-11-18: the gaps
   under the names and under the strip were too big) — one-line
   names here, no two-line reservation like the grid tiles keep */
.zm-freq-row .zm-tile-name { min-height: 0; -webkit-line-clamp: 1; }
.zm-gift-loading { grid-column: 1 / -1; text-align: center; color: rgba(244, 244, 246, .55); padding: 26px 0; font-size: 14px; }
.zm-tile {
  position: relative; border: 1.5px solid transparent; background: transparent;
  border-radius: 14px; padding: 8px 2px 7px; cursor: pointer; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font: inherit; -webkit-tap-highlight-color: transparent;
}
.zm-tile:active { transform: scale(.96); }
.zm-tile.is-selected { border-color: #0091d9; background: rgba(0, 145, 217, .10); }
.zm-tile-art { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.zm-tile-art img { max-width: 56px; max-height: 56px; object-fit: contain; }
.zm-tile-name { font-size: 11.5px; line-height: 1.25; text-align: center; color: rgba(244, 244, 246, .92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.zm-tile-coins { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: rgba(244, 244, 246, .75); }
.zm-coin { width: 11px; height: 11px; border-radius: 999px; display: inline-block;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #f5a400 70%); flex-shrink: 0; }
.zm-gift-sendbar {
  display: flex; align-items: center; gap: 8px; padding: 9px 2px 4px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.zm-gift-sendbar[hidden] { display: none; }
.zm-qty-label { font-size: 12.5px; color: rgba(244, 244, 246, .6); }
.zm-qty {
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff;
  min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
}
.zm-qty.is-active { background: #0091d9; border-color: #0091d9; font-weight: 700; }
.zm-qty-custom {
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff;
  width: 62px; height: 28px; padding: 0 6px; border-radius: 999px; font-size: 12.5px;
  text-align: center; outline: none; -moz-appearance: textfield; appearance: textfield;
}
.zm-qty-custom::placeholder { color: rgba(244, 244, 246, .45); font-size: 11.5px; }
.zm-qty-custom.is-active { border-color: #0091d9; background: rgba(0, 145, 217, .18); font-weight: 700; }
.zm-qty-custom::-webkit-outer-spin-button, .zm-qty-custom::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zm-gift-total { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
.zm-gift-send:disabled { opacity: .55; }
.zm-gift-foot {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding-top: 9px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .07);
}
/* the categories are MERGED into the foot section itself, on the
   same bottom row as Recharge (owner order 2026-11-18) — they take
   the row's free width and scroll sideways; the level and balance
   no longer share this row (they moved to the panel head), so the
   categories stay clearly visible */
.zm-gift-cats {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.zm-gift-cats::-webkit-scrollbar { display: none; }
.zm-gift-cats-list { display: contents; }
.zm-cat-pill {
  flex-shrink: 0; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  color: rgba(244, 244, 246, .9); padding: 6px 13px; border-radius: 999px;
  font-size: 12.2px; font-weight: 600; font-family: inherit;
}
.zm-cat-pill.is-active { background: #0091d9; border-color: #0091d9; color: #fff; }
.zm-gift-balance { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
/* the sender's gifter level + points to the next level and the coin
   balance, one compact line in the panel HEAD next to the target's
   name (owner order 2026-11-18, moved up from the panel foot) */
/* the level + points + balance sit BESIDE the username, on its
   own line (owner order 2026-11-18) — "Send gift to" becomes a
   small caption above, so the name and its meta share one line
   and nothing has to truncate */
.zm-gift-to-lines { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.zm-gift-caption { font-size: 11px; line-height: 1.25; color: rgba(244, 244, 246, .55); }
.zm-gift-mainline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zm-gift-mainline b { font-size: 15px; font-weight: 700; }
.zm-gift-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.zm-gift-meta .zm-gift-level { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.zm-gift-meta .zm-gift-pts { font-size: 11.5px; color: rgba(244, 244, 246, .8); white-space: nowrap; }
.zm-gift-meta .zm-gift-balance { font-size: 12.5px; color: #f4f4f6; }
.zm-gift-level { flex-shrink: 0; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: rgba(244, 244, 246, .65); }
.zm-gift-level:empty { display: none; }
/* account menu: language switcher on the Switch Accounts row
   (owner order 2026-11-18 — the empty right side of that row), so
   the language is one tap from the menu; the list expands inline
   and uses the site's own ?lang= links */
.zm-menu-row { display: flex; align-items: center; }
.zm-menu-row-main { flex: 1 1 auto; min-width: 0; }
.zm-lang-toggle { display: inline-flex; align-items: center; gap: .35rem; margin-inline-end: .5rem; padding: .35rem .55rem; border: 0; border-radius: 999px; background: var(--color-base-200); color: var(--color-base-content); font-size: .78rem; font-weight: 600; font-family: inherit; cursor: pointer; flex-shrink: 0; }
.zm-lang-flag { width: 1.05rem; height: 1.05rem; border-radius: .3rem; object-fit: cover; flex-shrink: 0; }
.zm-lang-code { max-width: 5.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-lang-panel { max-height: 13rem; overflow-y: auto; padding: .3rem .5rem .5rem; }
.zm-lang-item { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: .6rem; font-size: .85rem; color: var(--color-base-content); text-decoration: none; }
.zm-lang-item:hover { background: var(--color-base-200); }
.zm-lang-item .zm-lang-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-lang-check { opacity: .55; flex-shrink: 0; }

.zm-gift-recharge {
  display: flex; align-items: center; gap: 5px; text-decoration: none;
  background: rgba(255, 255, 255, .09); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}
/* light mode (owner order 2026-11-18): the Recharge font turns
   black — on a white pill, so it stays readable on the dark
   gift sheet */
:root:not([data-theme$="dark"]) .zm-gift-recharge { background: #fff; color: #000; }

/* ------------------------------ stage ------------------------------ */
#zm-gift-stage {
  position: fixed; inset: 0; z-index: 1260; display: flex; flex-direction: column;
  align-items: center; padding-top: calc(4.5dvh + env(safe-area-inset-top));
  pointer-events: none; transition: opacity .25s ease;
}
#zm-gift-stage[hidden] { display: none; }
#zm-gift-stage.is-out { opacity: 0; }
.zm-stage-id {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  animation: zm-id-in .5s cubic-bezier(.2, .9, .3, 1.35);
}
@keyframes zm-id-in { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.zm-stage-id img {
  width: 58px; height: 58px; border-radius: 999px; object-fit: cover;
  border: 2.5px solid #f5a400; background: #2a2a35; box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.zm-stage-id b { font-size: 16.5px; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
.zm-stage-id span { font-size: 12.5px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.zm-stage-id .zm-stage-count { font-size: 15px; font-weight: 800; color: #ffd34d; }
.zm-stage-anim { width: min(86vw, 400px); height: min(86vw, 400px); margin-top: 14px; }
.zm-stage-anim svg, .zm-stage-video, .zm-stage-img { width: 100%; height: 100%; object-fit: contain; }
.zm-stage-img { animation: zm-img-in 3s ease both; }
@keyframes zm-img-in { 0% { transform: scale(.3); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }


/* burst combo count: always visible while sending, pulses on each tap */
.zm-stage-id .zm-stage-count { background: rgba(0, 0, 0, .45); padding: 2px 12px; border-radius: 999px; font-size: 17px; line-height: 1.35; }
.zm-stage-count.zm-bump { animation: zm-bump .3s ease; }
@keyframes zm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }


/* ---------------- mt-chat.css ---------------- */
/* ZerMor chat — ported from MT Social (owner order 2026-11-17): message bubbles,
   WhatsApp voice-note player, upload ring, composer. Bars stay fixed (no :has hiding). */

/* chat message text, +2pt (owner 2026-11-13) */
.chat-message-bubble span.text {
  font-size: 15px;
}
/* the mic while a voice message is being recorded (composer + peer row) */
.mt-rec-blink {
  animation: mt-rec-blink 1.2s ease-in-out infinite;
}
@keyframes mt-rec-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

    /* voice-note player: ONE definition, final shape (owner 2026-11-20/21) —
       30px button, 16px icon, 18px gap, aligned to the waveform line */
    .mt-vn { display: flex; align-items: flex-start; gap: 18px; width: 100%; min-width: 0; padding: 2px 0; }
    .mt-vn-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
    .mt-vn-btn { flex: none; width: 30px; height: 30px; border: 0; border-radius: 9999px; background: rgba(0,145,217,.14); color: #0091d9; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
    .js_chat-color-me .mt-vn-btn { background: rgba(255,255,255,.25); color: #fff; }
    .mt-vn-btn:active { transform: scale(.94); }
    .mt-vn-btn svg { width: 20px; height: 20px; }
    .chat-message-bubble.mt-bubble-vn { flex-shrink: 0; }
    .mt-vn-btn .mt-vn-ic-pause { display: none; }
    .mt-vn-playing .mt-vn-btn .mt-vn-ic-pause { display: block; }
    .mt-vn-playing .mt-vn-btn .mt-vn-ic-play { display: none; }
    .mt-vn-track { position: relative; flex: 1 1 auto; height: 30px; cursor: pointer; touch-action: none; }
    .mt-vn-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .mt-vn-haswave .mt-vn-track::before { display: none; }
    .mt-vn-haswave .mt-vn-fill { background: transparent; }
    .mt-vn-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 5px; transform: translateY(-50%); border-radius: 9999px; background: rgba(127,127,127,.35); }
    .mt-vn-fill { position: absolute; left: 0; top: 50%; height: 5px; transform: translateY(-50%); width: 0%; border-radius: 9999px; background: #0091d9; }
    .mt-vn-fill::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; border-radius: 9999px; background: #0091d9; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
    .mt-vn-playing .mt-vn-fill::after { width: 15px; height: 15px; }
    .js_chat-color-me .mt-vn-fill { background: #fff; }
    .js_chat-color-me .mt-vn-fill::after { background: #fff; }
    .mt-vn-haswave .mt-vn-fill::after { box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 1px 3px rgba(0,0,0,.35); }
    .mt-vn-time { text-align: left; font-size: 11px; line-height: 1.25; font-variant-numeric: tabular-nums; opacity: .65; }
    .mt-vn-audio { display: none; }
    .mt-vn-stamp { font-size: 10px; line-height: 1; color: var(--color-base-content); opacity: .55; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .mt-stamp-row { margin-top: 2px; line-height: 1; }
    .text .mt-vn-stamp { margin-inline-start: 8px; }
    .js_chat-color-me .mt-vn-stamp { color: #fff; opacity: .8; }
    /* same box as the sticker/gif media (w-60): identical width and shrink
       behaviour, so the player's right edge aligns with the sticker's */
    .mt-vn-media { width: min(232px, 64vw) !important; }
    .js_voice-start { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    .js_composer[data-handle="chat"] .js_voice-start { width: 44px !important; height: 44px !important; min-width: 44px !important; border-radius: 9999px !important; background: linear-gradient(135deg, #00a86b 0%, #12beb4 55%, #0091d9 100%) !important; color: #fff !important; box-shadow: 0 2px 6px rgba(0,145,217,.45); display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; }
    .js_composer[data-handle="chat"] .js_voice-start > * { width: 22px !important; height: 22px !important; }
    .mt-vn { max-width: 100%; }
    .mt-vn-track { min-width: 0; }
    .mt-vn-cancel-armed .js_voice-timer { color: #ef4444 !important; }

    /* MT: attach tray (WhatsApp style) - the stock dropdown menu stays as
       hidden plumbing; the + button opens this tray instead */
    .js_composer[data-handle="chat"] .x-form-tools-attach .dropdown-menu { display: none !important; }
    .mt-tray { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); z-index: 45; background: #fff; border-radius: 22px; box-shadow: 0 14px 38px rgba(16,24,40,.22); padding: 16px 14px 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
    .mt-tray.open { opacity: 1; transform: none; pointer-events: auto; }
    .mt-tray-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
    .mt-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
    .mt-tile-ic { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: #eef2ff; }
    .mt-tile-ic span[class*="icon-"] { width: 26px !important; height: 26px !important; }
    .mt-tile-label { font-size: 12px; color: #374151; text-align: center; line-height: 1.15; }
    .mt-tray-recents-title { margin: 14px 2px 8px; font-size: 12px; font-weight: 600; color: #6b7280; }
    .mt-tray-recents { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
    .mt-tray-recents img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; flex: none; cursor: pointer; background: #f3f4f6; }
    .mt-tray-recents img.sel { outline: 3px solid #0091d9; outline-offset: -3px; opacity: .85; }
    .mt-tray-gallery { width: 58px; height: 58px; flex: none; border: 0; border-radius: 12px; background: #e8f9ee; color: #1da851; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; font: inherit; padding: 0; }
    .mt-tray-gallery-lb { font-size: 9px; font-weight: 600; line-height: 1; }

    /* MT: messages page full-bleed - no frame gaps, maximum screen use */
    .sg-offcanvas > .card { border: 0 !important; border-radius: 0 !important; }
    .panel-messages .chat-form { padding-top: 10px; padding-bottom: 6px; }

    .panel-messages .js_chat-call-start, .panel-messages .js_chat-profile-toggle { background: color-mix(in srgb, #0091d9 10%, #ffffff) !important; color: #0091d9 !important; }
    .panel-messages .js_delete-conversation, .panel-messages .js_leave-conversation { background: color-mix(in srgb, var(--color-error) 9%, #ffffff) !important; color: var(--color-error) !important; }
    :root[data-theme="dark"] .site-topbar-icon, :root[data-theme="dark"] .panel-messages .js_chat-call-start, :root[data-theme="dark"] .panel-messages .js_chat-profile-toggle { background: color-mix(in srgb, #0091d9 24%, transparent) !important; color: #38b9f1 !important; }

    .js_composer[data-handle="chat"] .js_emoji-menu-toggle, .js_composer[data-handle="chat"] .x-form-tools-attach .dropdown-toggle { color: #0091d9 !important; }
    /* MT: WhatsApp-clean chat composer - one white pill, actions inside,
       mic/send as a separate round button outside */
    .js_composer[data-handle="chat"] > .flex.items-end { gap: 8px; align-items: center; }
    .js_composer[data-handle="chat"] > .flex.items-end > div.grow { background: #ffffff !important; border-color: transparent !important; box-shadow: 0 1px 3px rgba(16,24,40,.14); border-radius: 9999px !important; padding-inline-start: 8px; padding-inline-end: 8px; }
    :root[data-theme$="-dark"] .js_composer[data-handle="chat"] > .flex.items-end > div.grow { background: var(--color-base-100) !important; border-color: var(--color-base-300) !important; box-shadow: none; }
    .js_composer[data-handle="chat"] > .flex.items-end > div.grow > textarea { order: 2; }
    .js_composer[data-handle="chat"] > .flex.items-end > div.grow > span { order: 1; }
    .js_composer[data-handle="chat"] .x-form-tools-attach { order: 3; align-self: center; flex: none; }
    .js_composer[data-handle="chat"] .x-form-tools-attach .dropdown-toggle { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; }
    .js_composer[data-handle="chat"] .x-form-tools-attach .dropdown-toggle > * { width: 24px !important; height: 24px !important; }
    .js_composer[data-handle="chat"] .js_composer-send { width: 44px !important; height: 44px !important; min-width: 44px !important; }
    .js_composer[data-handle="chat"] .js_composer-send > * { width: 22px !important; height: 22px !important; }

/* mt-chat-round-1813: chat composer, menus, attachments (owner 2026-11-13) */
/* send + voice-send buttons: MT azure, same blue as the chat header buttons */
.x-form[data-handle="chat"] .js_composer-send,
.x-form[data-handle="chat"] .js_voice-stop {
  --button-bg: #0091d9 !important;
  --button-bg-hover: #0aa0e8 !important;
  --button-bg-pressed: #007fb8 !important;
}
/* while an attachment uploads, send stays visibly off until it completes */
.chat-form .js_composer-send:disabled,
.chat-form .js_voice-stop:disabled { opacity: .35; }
/* emoji + attach (+) buttons match the mic/send button size */
.chat-form .js_emoji-menu-toggle { width: 2.75rem; height: 2.75rem; }
.chat-form .js_emoji-menu-toggle > span { width: 2rem; height: 2rem; }
.chat-form .x-form-tools-attach .dropdown-toggle { width: 2.75rem; height: 2.75rem; }
.chat-form .x-form-tools-attach .dropdown-toggle > span { width: 2rem; height: 2rem; }
.chat-form .js_voice-start > span, .chat-form .js_composer-send > span, .chat-form .js_voice-stop > span { width: 2rem; height: 2rem; }
/* dropdown menu icons: one uniform size everywhere */
.dropdown-menu .dropdown-item > span[class*="tabler--"] { width: 1.5rem; height: 1.5rem; }
/* chat attachment preview: box takes the media's own shape, no side bars */
.chat-attachments .js_upload-item:not([data-document]) .js_upload-media { aspect-ratio: auto; background: transparent; }
.chat-attachments .js_upload-item:not([data-document]) .js_upload-media > img,
.chat-attachments .js_upload-item:not([data-document]) .js_upload-media > video { width: 100%; height: auto; max-height: 18rem; object-fit: contain; }
/* messages page: gestures scroll only, no pinch zoom */
.sg-offcanvas { touch-action: pan-x pan-y; }

/* mt-longpress-actions: message actions hidden until long-press (touch) or hover (desktop) */
.chat-message-actions { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 2px; z-index: 5; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; }
.conversation.right .chat-message-actions { inset-inline-start: 2px; inset-inline-end: auto; }
li.mt-act-open .chat-message-actions,
.chat-message-actions:has(.dropdown.open),
.chat-message-actions:has(.reactions-container:not(.hidden)) { opacity: 1; visibility: visible; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  li.group\/msg:hover .chat-message-actions,
  li.group\/msg:focus-within .chat-message-actions { opacity: 1; visibility: visible; pointer-events: auto; }
}
.chat-conversations .chat-message-bubble { -webkit-touch-callout: none; }

/* mt-no-select: long-press must not start the browser's text selection (touch only) */
@media (pointer: coarse) {
  .chat-conversations .conversation-body { -webkit-user-select: none; user-select: none; }
}

/* mt-composer-text: chat input text 17px like the messages, centred in the pill */
.chat-form textarea.js_autosize { font-size: 17px; line-height: 24px; padding-top: 10px; padding-bottom: 10px; max-height: 8.75rem; overflow-y: auto; }

/* chat send button (owner 2026-11-20): smaller circle + icon, vertically
   centred in the composer row, with a clear gap from the input pill —
   it sat at 44px with a 32px icon, low in the row. Applies to every chat
   composer (messages page + chat boxes), not comments. */
div.js_composer[data-handle="chat"] .js_composer-send { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; align-self: center !important; justify-self: center !important; margin-inline-start: 6px; }
div.js_composer[data-handle="chat"] .js_composer-send > span { width: 17px !important; height: 17px !important; }
.chat-form div.grid:has(> .js_composer-send) { align-self: center !important; margin-inline-start: 6px; }

/* mt-meta-time: the stock relative-time row under a message duplicates the in-bubble stamp */
.chat-conversations .conversation-meta .time { display: none; }

/* mt-select: multi-select messages (WhatsApp logic) — selection bar + selected row */
.panel-messages:has(> .mt-sel-bar) { position: relative; }
.mt-sel-bar { position: absolute; top: 0; inset-inline: 0; z-index: 40; display: none; align-items: center; gap: 6px; height: 62px; padding: 0 10px; background: #101418; color: #fff; border-start-start-radius: 16px; border-start-end-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.mt-sel-bar.on { display: flex; }
.mt-sel-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: transparent; border: 0; flex: none; }
.mt-sel-btn:active { background: rgba(255, 255, 255, .14); }
.mt-sel-count { flex: 1; font-size: 16px; font-weight: 600; }
.panel-messages li.mt-selected { position: relative; background: rgba(0, 145, 217, .13); border-radius: 14px; }
.panel-messages li.mt-selected::before { content: ''; position: absolute; inset-inline-start: 5px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background-color: #0091d9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E"); background-size: 13px; background-position: center; background-repeat: no-repeat; z-index: 2; }

/* mt-msg-time: bubbles stay clean — the time shows only when the message is tapped */
.chat-conversations .mt-msg-time { display: none; }
.chat-conversations li.mt-show-time .mt-msg-time { display: inline; }
.chat-conversations li.mt-show-time .conversation-meta { display: flex !important; }

/* A selected product counts as composer content: show Send, rest the mic (mirrors the composer's own content state) */
.js_composer:has(.js_chat-product-bar:not(.hidden)) .js_voice-start { visibility: hidden; opacity: 0; rotate: 45deg; scale: .5; }
.js_composer:has(.js_chat-product-bar:not(.hidden)) .js_composer-send { visibility: visible; opacity: 1; rotate: 0deg; scale: 1; }

/* Product sheet (WhatsApp catalogue pattern, inside the chat panel) */
.mt-prod-sheet { position: absolute; inset: 0; z-index: 55; visibility: hidden; }
.mt-prod-sheet.open { visibility: visible; }
.mt-prod-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .2s ease; }
.mt-prod-sheet.open .mt-prod-backdrop { opacity: 1; }
.mt-prod-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84%; display: flex; flex-direction: column; background: #fff; color: #111827; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 34px rgba(16, 24, 40, .28); transform: translateY(102%); transition: transform .24s ease; overflow: hidden; }
.mt-prod-sheet.open .mt-prod-panel { transform: none; }
.mt-prod-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 10px 16px; border-bottom: 1px solid rgba(17, 24, 39, .08); flex: none; }
.mt-prod-title { flex: 1; font-size: 16px; font-weight: 600; }
.mt-prod-iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; flex: none; }
.mt-prod-iconbtn[hidden] { display: none; }
.mt-prod-iconbtn:active { background: rgba(127, 127, 127, .18); }
.mt-prod-list { overflow-y: auto; padding: 6px; }
.mt-prod-row { display: flex; width: 100%; align-items: center; gap: 12px; padding: 8px; border: 0; background: transparent; border-radius: 12px; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.mt-prod-row:active { background: rgba(127, 127, 127, .14); }
.mt-prod-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #e5e7eb; flex: none; }
.mt-prod-thumb--empty { display: inline-flex; align-items: center; justify-content: center; color: #6b7280; }
.mt-prod-rowinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mt-prod-rowname { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-prod-rowprice { font-size: 14px; font-weight: 600; color: #0091d9; }
.mt-prod-chevron { color: #9ca3af; flex: none; }
.mt-prod-loading, .mt-prod-empty { padding: 26px 18px; text-align: center; font-size: 14px; color: #6b7280; }
.mt-prod-view { display: flex; flex-direction: column; min-height: 0; }
.mt-prod-view[hidden] { display: none; }
.mt-prod-scroll { overflow-y: auto; }
.mt-prod-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e5e7eb; }
.mt-prod-info { padding: 14px 16px 6px; }
.mt-prod-name { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.mt-prod-price { margin-top: 3px; font-size: 15px; font-weight: 600; color: #0091d9; }
.mt-prod-desc { margin-top: 8px; font-size: 14px; line-height: 1.45; color: #4b5563; }
.mt-prod-send { margin: 12px 16px 16px; padding: 13px; border: 0; border-radius: 12px; background: #0091d9; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; flex: none; }
.mt-prod-send:active { opacity: .85; }
[data-theme$="-dark"] .mt-prod-panel { background: #101418; color: #f3f4f6; }
[data-theme$="-dark"] .mt-prod-head { border-bottom-color: rgba(255, 255, 255, .09); }
[data-theme$="-dark"] .mt-prod-desc { color: #9ca3af; }
[data-theme$="-dark"] .mt-prod-thumb { background: #1f2937; }
[data-theme$="-dark"] .mt-prod-img { background: #1f2937; }

/* Urdu language — reading text +2pt (owner order 2026-11-13: Nastaliq needs the extra size) */
html[data-lang^="ur"] .chat-message-bubble span.text {
  font-size: 17px;
}

/* Chat attachment upload ring — WhatsApp pattern, MT colours (owner order 2026-11-15).
   Sits on the clean preview inside chat upload cards; centre X is the real remove/cancel. */
.js_upload-ringwrap { position: absolute; inset-inline: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 8px 8px; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.js_upload-ringwrap[hidden] { display: none; }
.js_upload-cancel { position: relative; flex: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; color: #fff; }
.mt-upload-ring { width: 44px; height: 44px; display: block; transform: rotate(-90deg); }
.mt-upload-ring circle { fill: none; stroke-width: 3.5; }
.mt-upload-ring .mt-ring-bg { stroke: rgba(255,255,255,.35); }
.mt-upload-ring .mt-ring-fg { stroke: #0091d9; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .15s linear; }
.js_upload-ringwrap.mt-indeterminate .mt-upload-ring { animation: mt-upload-spin 1s linear infinite; }
.js_upload-ringwrap.mt-indeterminate .mt-ring-fg { stroke-dasharray: 34 85.4; stroke-dashoffset: 0; transition: none; }
@keyframes mt-upload-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.mt-upload-x { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mt-upload-meta { padding: 2px 8px; border-radius: 9999px; background: rgba(0,0,0,.55); font-size: 12.5px; font-weight: 500; color: #fff; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }


/* ---------------- mt-payments.css ---------------- */
/* ZerMor payments — wallet recharge packs, exchange rows, recharge button.
   Rules mirror MT Social's design system (same owner, same theme vars). */

.mt-coin-dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #f5a400 70%);
  flex: none;
  vertical-align: -0.1rem;
}

.mt-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.mt-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.25rem;
  border: 1.5px solid var(--color-base-300);
  border-radius: 0.9rem;
  background: var(--color-base-100);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mt-pack:hover {
  border-color: var(--color-primary);
}

.mt-pack.mt-pack-on {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 6%, var(--color-base-100));
}

.mt-pack-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-base-content);
}

.mt-pack-price {
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}

.mt-exchange-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-base-300);
  border-radius: 0.9rem;
  background: var(--color-base-100);
  text-align: start;
  cursor: pointer;
}

.mt-exchange-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.mt-exchange-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-base-content);
}

.mt-exchange-sub {
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}

.mt-recharge-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 9999px;
  background: linear-gradient(92deg, #00a86b 0%, #12beb4 55%, #0091d9 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.mt-recharge-btn:active {
  transform: scale(0.99);
}


/* ---------------- mt-friends.css ---------------- */
/* ZerMor Friends — Facebook-pattern people pages (owner spec 2026-11-17):
   left nav rail + big-photo people cards with stacked action buttons.
   Pattern follows Facebook; colours stay ZerMor's own theme tokens. */

/* ---- page layout (real CSS, owner 2026-11-20): the layout used to
   ride on Tailwind arbitrary-value classes (max-w-[1440px],
   lg:grid-cols-[264px_minmax(0,1fr)], lg:top-[76px]) that the
   pre-built bundle does not contain, so the rail and the content
   stacked at full width and the page broke responsively ---- */
.zm-fr-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 12px; overflow-x: clip; }
@media (min-width: 640px) { .zm-fr-wrap { padding-inline: 20px; } }
.zm-fr-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.zm-fr-rail { min-width: 0; }
@media (min-width: 1024px) {
  .zm-fr-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
  .zm-fr-rail { position: sticky; top: 76px; padding-top: 16px; }
}

/* ---- left nav rail ---- */
.zm-fr-nav-list { display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: none; max-width: 100%; min-width: 0; }
.zm-fr-nav-list::-webkit-scrollbar { display: none; }
.zm-fr-nav-item {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 8px 12px 8px 8px; border-radius: 12px; color: var(--color-base-content);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.zm-fr-nav-item:hover { background: color-mix(in oklab, var(--color-base-content) 6%, transparent); }
.zm-fr-nav-item.is-active { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.zm-fr-nav-ico {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--color-base-content) 10%, transparent);
  color: var(--color-base-content);
}
.zm-fr-nav-item.is-active .zm-fr-nav-ico { background: var(--color-primary); color: #fff; }
.zm-fr-nav-ico .iconify, .zm-fr-nav-ico span[class*="icon-"] { width: 20px; height: 20px; }
.zm-fr-nav-badge {
  margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--color-error, #e0245e); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.zm-fr-nav-badge.is-soft { background: color-mix(in oklab, var(--color-base-content) 14%, transparent); color: var(--color-base-content); }
@media (min-width: 1024px) {
  .zm-fr-nav-list { flex-direction: column; overflow: visible; padding: 8px 0; }
  .zm-fr-nav-item { padding: 8px 10px; }
}

/* ---- people card ---- */
.zm-fr-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  transition: box-shadow .18s ease;
}
.zm-fr-card:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.zm-fr-photo { display: block; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; background: var(--color-base-200); }
.zm-fr-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.zm-fr-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.zm-fr-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.zm-fr-name {
  font-weight: 700; font-size: 15.5px; line-height: 1.25; color: var(--color-base-content);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.zm-fr-name:hover { text-decoration: underline; }
.zm-fr-meta {
  display: flex; align-items: center; gap: 6px; min-height: 20px;
  font-size: 12.5px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zm-fr-stack { display: inline-flex; flex-shrink: 0; }
.zm-fr-stack img {
  width: 20px; height: 20px; border-radius: 999px; object-fit: cover;
  border: 2px solid var(--color-base-100); margin-inline-end: -7px;
}
.zm-fr-stack img:last-child { margin-inline-end: 0; }
.zm-fr-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.zm-fr-actions .button { justify-content: center; font-weight: 700; border-radius: 10px; }
/* the secondary card button (Remove / Delete / Unfriend …) gets a
   real button shape here: its colour rides on Tailwind arbitrary
   [--button-bg:...] classes the pre-built bundle does not contain,
   so without this it rendered as plain text (owner 2026-11-20) */
.zm-fr-actions .button:not(.button--primary) {
  background: color-mix(in oklab, var(--color-base-content) 8%, transparent);
  color: var(--color-base-content);
}
.zm-fr-actions .button:not(.button--primary):hover { background: color-mix(in oklab, var(--color-base-content) 14%, transparent); }

/* people grids: minimum 4 in a row at every width (owner 2026-11-17);
   real CSS grid here because the theme bundle is pre-built */
ul.zm-people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) { ul.zm-people-grid { gap: 12px; } }
@media (min-width: 1280px) { ul.zm-people-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1800px) { ul.zm-people-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* compact cards when the 4-across cells get narrow (phones) */
@media (max-width: 639.5px) {
  .zm-fr-body { padding: 6px 7px 8px; gap: 4px; }
  .zm-fr-name { font-size: 12px; }
  .zm-fr-meta { font-size: 10.5px; min-height: 15px; gap: 4px; }
  .zm-fr-stack img { width: 15px; height: 15px; margin-inline-end: -5px; }
  .zm-fr-actions { gap: 5px; padding-top: 2px; }
  .zm-fr-actions .button { font-size: 11.5px; padding: 6px 2px; min-height: 0; height: auto; border-radius: 8px; }
  .zm-fr-actions .button [class*="icon-"], .zm-fr-actions .button svg { display: none; }
}


/* ---------------- mt-shop.css ---------------- */
/* ZerMor Shop — TikTok-Shop pattern (owner spec 2026-11-17): pill search
   hero, category chips, dense product waterfall with square-photo cards.
   Pattern follows TikTok Shop; colours stay ZerMor's own theme tokens. */

/* ---- hero search ---- */
.zm-shop-hero { display: flex; align-items: center; gap: 5px; margin-top: 18px; }
.zm-shop-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px;
  height: 46px; padding: 0 4px 0 11px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--color-base-content) 14%, transparent);
  background: var(--color-base-100);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .04);
}
.zm-shop-search:focus-within {
  border-color: color-mix(in oklab, var(--color-primary) 55%, transparent);
}
.zm-shop-search > span:first-of-type { width: 18px; height: 18px; }
.zm-shop-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-size: 14px; color: var(--color-base-content);
}
.zm-shop-search input::placeholder { color: color-mix(in oklab, var(--color-base-content) 45%, transparent); }
.zm-shop-search-btn {
  flex-shrink: 0; height: 36px; padding: 0 9px; border: 0; border-radius: 999px;
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.zm-shop-hero-btn {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-base-content);
  background: color-mix(in oklab, var(--color-base-content) 6%, transparent);
}
.zm-shop-hero-btn:hover { background: color-mix(in oklab, var(--color-base-content) 11%, transparent); }

/* ---- shop tabs: one-row scrollable strip on mobile, labels never cut ---- */
@media (max-width: 639.5px) {
  .zm-shop-tabs {
    flex-wrap: nowrap; overflow-x: auto; max-width: 100%; min-width: 0;
    gap: 2px; scrollbar-width: none;
  }
  .zm-shop-tabs::-webkit-scrollbar { display: none; }
  .zm-shop-tabs .tab {
    flex: 0 0 auto; flex-direction: row; align-items: center;
    justify-content: flex-start; height: 46px; padding: 0 10px; gap: 6px;
    font-size: 13px;
  }
  .zm-shop-tabs .tab > span {
    max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap;
  }
}

/* ---- seller verification: slim notice card, not a loud block ---- */
.zm-shop-verify {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 12px; border-radius: 16px;
  background: color-mix(in oklab, var(--color-primary) 8%, var(--color-base-100));
  border: 1px solid color-mix(in oklab, var(--color-primary) 18%, transparent);
}
.zm-shop-verify-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 14%, transparent);
}
.zm-shop-verify-text {
  flex: 1; min-width: 0; margin: 0;
  font-size: 13.5px; font-weight: 500; line-height: 1.35;
  color: var(--color-base-content);
}
.zm-shop-verify-btn { flex-shrink: 0; }
@media (min-width: 640px) {
  .zm-shop-verify { margin-bottom: 8px; }
}

/* ---- category chips ---- */
.zm-shop-chips {
  display: flex; gap: 8px; margin-top: 16px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.zm-shop-chips::-webkit-scrollbar { display: none; }
.zm-shop-chip {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  color: var(--color-base-content);
  background: color-mix(in oklab, var(--color-base-content) 7%, transparent);
}
.zm-shop-chip:hover { background: color-mix(in oklab, var(--color-base-content) 12%, transparent); }
.zm-shop-chip.is-active { background: var(--color-base-content); color: var(--color-base-100); }

/* ---- product card ---- */
.zm-tts-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--color-base-300);
  background: var(--color-base-100); transition: box-shadow .18s ease;
}
.zm-tts-card:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.zm-tts-photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-base-200); }
.zm-tts-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.zm-tts-card:hover .zm-tts-photo img { transform: scale(1.05); }
.zm-tts-badge {
  position: absolute; top: 8px; inset-inline-start: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--color-warning); color: var(--color-warning-content, #3a2a00);
}
.zm-tts-soldout {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .12em;
}
.zm-tts-body { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px 11px; flex: 1; }
.zm-tts-title {
  font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--color-base-content);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none;
}
.zm-tts-title:hover { color: var(--color-primary); }
.zm-tts-meta { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: 12px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent); }
.zm-tts-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--color-warning); }
.zm-tts-rating strong { color: var(--color-base-content); font-weight: 700; }
.zm-tts-loc { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.zm-tts-tag {
  flex-shrink: 0; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700;
  background: color-mix(in oklab, var(--color-primary) 12%, transparent); color: var(--color-primary);
}
.zm-tts-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 2px; }
.zm-tts-price { font-size: 17px; font-weight: 800; color: var(--color-primary); white-space: nowrap; }
.zm-tts-stock { font-size: 11px; font-weight: 600; white-space: nowrap; }
.zm-tts-stock.is-in { color: var(--color-success); }
.zm-tts-stock.is-low { color: var(--color-warning); }
.zm-tts-stock.is-out { color: var(--color-error); }
.zm-tts-seller { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: color-mix(in oklab, var(--color-base-content) 65%, transparent); text-decoration: none; }
.zm-tts-seller img { width: 18px; height: 18px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.zm-tts-seller:hover { color: var(--color-primary); }


/* ---------------- mt-notifications.css ---------------- */
/* Notifications — Facebook panel pattern (owner 2026-11-17): big title,
   All/Unread chips, "New" section, large avatars with a coloured type
   badge, flowing name + message text, blue relative time, unread dot. */

.zm-ntf-panel { width: min(25rem, calc(100vw - 1rem)); border-radius: 1rem; }
.zm-ntf-head { padding: 16px 16px 4px; }
.zm-ntf-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.zm-ntf-chips { display: flex; gap: 6px; padding: 8px 16px 10px; }
.zm-ntf-chip {
  border: 0; cursor: pointer; border-radius: 999px; padding: 5px 14px;
  font-size: 14px; font-weight: 600; background: transparent; color: inherit;
  transition: background .15s ease, color .15s ease;
}
.zm-ntf-chip:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
.zm-ntf-chip.is-active {
  background: color-mix(in oklab, var(--color-primary) 16%, transparent);
  color: var(--color-primary);
}
.zm-ntf-body { padding: 0 8px 8px; scrollbar-width: thin; }
.zm-ntf-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px 6px;
}
.zm-ntf-section > span { font-size: 16px; font-weight: 700; }
.zm-ntf-section > a { font-size: 14px; color: var(--color-primary); }
.zm-ntf-section > a:hover { text-decoration: underline; }
.zm-ntf-none { padding: 18px 12px; text-align: center; font-size: 14px; opacity: .65; }
/* Gift chip on gift notifications: the actual gift art + grouped count */
.zm-ntf-gift { position: relative; flex: none; width: 38px; height: 38px; margin-inline-start: 2px; }
.zm-ntf-gift img { width: 100%; height: 100%; object-fit: contain; }
.zm-ntf-gift-count { position: absolute; right: -6px; bottom: -4px; padding: 0 5px; border-radius: 999px; background: #f5a400; color: #1a1a1a; font-size: 10.5px; font-weight: 800; line-height: 16px; }
/* Pinch-zoom lock, page level: pan gestures only — no pinch, no
   double-tap zoom — so the fixed bars and their buttons can never be
   shifted by a gesture. Components keep their own stricter rules. */
html, body { touch-action: pan-x pan-y; }

/* Small, graceful delete-all (owner: no big bar) */
.zm-ntf-delall { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #e0245e; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.zm-ntf-delall:hover { background: rgb(224 36 94 / .08); }
.zm-ntf-delall .icon-\[tabler--trash\] { width: 14px; height: 14px; }

.zm-ntf-body ul, .zm-ntf-scope ul { margin: 0; padding: 0; list-style: none; min-width: 0; }

.zm-ntf-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 8px; border-radius: 12px; text-decoration: none;
  color: inherit !important; transition: background .15s ease;
}
.zm-ntf-row:hover { background: color-mix(in oklab, var(--color-base-content) 6%, transparent); }
.zm-ntf-item.unread > .zm-ntf-row { background: color-mix(in oklab, var(--color-primary) 6%, transparent); }
.zm-ntf-item.unread > .zm-ntf-row:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }

.zm-ntf-avatar { position: relative; flex: 0 0 auto; }
.zm-ntf-avatar img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; display: block; }
.zm-ntf-badge {
  position: absolute; bottom: -2px; inset-inline-end: -2px;
  width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  border: 2px solid var(--color-base-100);
}
.zm-ntf-badge-icon { width: 14px; height: 14px; }
.zm-ntf-badge[data-icon="icon-[tabler--gift]"] { background: #0091d9; }
.zm-ntf-badge[data-icon="icon-[tabler--heart-handshake]"] { background: #0091d9; }
.zm-ntf-badge[data-icon="icon-[tabler--rss]"] { background: #f97316; }
.zm-ntf-badge[data-icon="icon-[tabler--hand-finger-right]"] { background: #f97316; }
.zm-ntf-badge[data-icon="icon-[tabler--message]"],
.zm-ntf-badge[data-icon="icon-[tabler--message-heart]"],
.zm-ntf-badge[data-icon="icon-[tabler--messages]"] { background: #00a86b; }
.zm-ntf-badge[data-icon="icon-[tabler--share-3]"] { background: #12beb4; }
.zm-ntf-badge[data-icon="icon-[tabler--currency-dollar]"] { background: #00a86b; }
.zm-ntf-badge[data-icon="icon-[tabler--circle-check]"] { background: #00a86b; }
.zm-ntf-badge[data-icon="icon-[tabler--eye]"] { background: #8b5cf6; }
.zm-ntf-badge[data-icon="icon-[tabler--calendar]"] { background: #ef4444; }
.zm-ntf-badge[data-icon="icon-[tabler--flag]"] { background: #ef4444; }
.zm-ntf-badge[data-icon="icon-[tabler--bell]"] { background: #64748b; }

.zm-ntf-main { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.35; }
.zm-ntf-text { display: block; overflow-wrap: break-word; }
.zm-ntf-name { font-weight: 700; }
.zm-ntf-msg { opacity: .85; }
.zm-ntf-time { display: block; margin-top: 2px; font-size: 13px; color: var(--color-primary); }
.zm-ntf-dot {
  flex: 0 0 auto; align-self: center;
  width: 12px; height: 12px; border-radius: 999px;
  background: var(--color-primary);
}
.zm-ntf-del {
  flex: 0 0 auto; align-self: center; border: 0; cursor: pointer;
  width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; opacity: .45; color: inherit;
}
.zm-ntf-del:hover { opacity: 1; color: var(--color-error); background: color-mix(in oklab, currentColor 8%, transparent); }

/* All / Unread filter state (chips) — applies to items loaded later too */
.zm-filter-unread li[data-id]:not(.unread) { display: none; }


/* ---------------- mt-profile.css ---------------- */
/* Profile — Facebook pattern (owner 2026-11-17): 900x600 cover shown at
   3:2, round avatar, bio line, text tabs with an underline, a "People you
   may know" carousel and a Posts header with List/Grid views. Colours stay
   ZerMor's own theme tokens. */

/* cover: the owner's cover art is 900x600 — display it at 3:2 (capped) */
div.profile-cover-wrapper.zm-cover { aspect-ratio: 3 / 2; max-height: 600px; }

/* round avatar with the white ring, like Facebook */
div.profile-avatar-wrapper.zm-avatar-round { border-radius: 999px; }

.zm-profile-bio { margin-top: 6px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }

/* tabs: text only, active tab underlined */
.zm-profile-nav ul > li > a > span:first-child,
.zm-profile-nav ul > li > button > span:first-child { display: none; }
.zm-profile-nav a[aria-current="page"] {
  background-color: transparent;
  box-shadow: inset 0 -3px 0 var(--color-primary);
  border-radius: 10px 10px 0 0;
}

/* people you may know carousel */
.zm-pymk {
  border-radius: 24px; border: 1px solid var(--color-base-300);
  background: var(--color-base-100); overflow: hidden;
}
.zm-pymk-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.zm-pymk-head h2 { font-size: 17px; font-weight: 700; }
.zm-pymk-head a { font-size: 14px; color: var(--color-primary); }
.zm-pymk-head a:hover { text-decoration: underline; }
.zm-pymk-row {
  display: flex; gap: 10px; overflow-x: auto; overscroll-x: contain;
  scroll-snap-type: x mandatory; padding: 2px 16px 16px; margin: 0;
  list-style: none; scrollbar-width: none;
}
.zm-pymk-row::-webkit-scrollbar { display: none; }
.zm-strip-card {
  flex: 0 0 200px; scroll-snap-align: start; min-width: 0; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--color-base-300);
  background: var(--color-base-100); display: flex; flex-direction: column;
}
@media (max-width: 640px) { .zm-strip-card { flex-basis: 168px; } }
.zm-strip-photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--color-base-200); }
.zm-strip-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.zm-strip-x {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.zm-strip-x:hover { background: rgba(0, 0, 0, .75); }
.zm-strip-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.zm-strip-name {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  font-weight: 700; font-size: 15px; color: var(--color-base-content); text-decoration: none;
}
.zm-strip-name > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-strip-actions { margin-top: auto; padding-top: 4px; }
.zm-strip-actions .button { justify-content: center; font-weight: 700; border-radius: 10px; }

/* posts header + list/grid views */
.zm-posts-head {
  border-radius: 24px; border: 1px solid var(--color-base-300);
  background: var(--color-base-100); overflow: hidden;
}
.zm-posts-head-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
}
.zm-posts-title { font-size: 17px; font-weight: 700; margin-inline-end: auto; }
.zm-posts-tool {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  background: color-mix(in oklab, var(--color-base-content) 7%, transparent);
}
.zm-posts-tool:hover { background: color-mix(in oklab, var(--color-base-content) 12%, transparent); }
.zm-posts-tool input { position: absolute; opacity: 0; pointer-events: none; }
.zm-posts-tool:has(input:checked) {
  background: color-mix(in oklab, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}
.zm-view-tabs { display: flex; border-top: 1px solid var(--color-base-300); }
.zm-view-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; font-size: 14px; font-weight: 600; cursor: pointer;
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}
.zm-view-tab input { position: absolute; opacity: 0; pointer-events: none; }
.zm-view-tab:has(> input:checked) {
  color: var(--color-primary);
  box-shadow: inset 0 -3px 0 var(--color-primary);
}

/* the sort/filter bar stays hidden on profiles until Filters is tapped */
.zm-profile-posts:not(:has(.zm-filter-toggle:checked)) .posts-filter { display: none; }

/* grid view (owner order 2026-11-19: professional + responsive):
   the full post cards never belonged in a grid — the profile stream
   now renders one square media tile per post (__feeds_post_tile.tpl,
   Facebook/Instagram pattern) and grid mode shows only the tiles in
   a tight 3-column gallery; list mode hides the tiles again. */
.zm-ptile { display: none; }
.zm-profile-posts:has(.zm-view-grid-radio:checked) .js_posts_stream > ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
}
.zm-profile-posts:has(.zm-view-grid-radio:checked) .js_posts_stream > ul > * { display: none; }
.zm-profile-posts:has(.zm-view-grid-radio:checked) .js_posts_stream > ul > .zm-ptile { display: block; }
.zm-profile-posts:has(.zm-view-grid-radio:checked) .js_posts_stream .see-more { margin-top: 3px; }
.zm-ptile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 6px; background: var(--color-base-200);
}
.zm-ptile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.zm-ptile-badge {
  position: absolute; top: 6px; inset-inline-end: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgb(0 0 0 / 0.55); color: #fff;
}
.zm-ptile-live {
  position: absolute; top: 6px; inset-inline-start: 6px;
  padding: 2px 7px; border-radius: 5px;
  background: var(--color-error, #e11d48); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.zm-ptile-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  padding: 10px; font-size: 12.5px; line-height: 1.45; font-weight: 600;
  color: var(--color-base-content);
}
.zm-ptile-meta {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; align-items: center; gap: 5px;
  padding: 16px 8px 6px; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
  opacity: 0; transition: opacity 0.15s ease;
}
@media (hover: hover) {
  .zm-ptile:hover .zm-ptile-meta { opacity: 1; }
  .zm-ptile:hover .zm-ptile-img { filter: brightness(0.92); }
}
@media (hover: none) {
  .zm-ptile-meta { opacity: 1; }
}


/* ---------------- mt-urdu.css ---------------- */
/* ZerMor — Urdu (ur_pk) typography: Jameel Noori Nastaleeq
   Scoped to [data-lang="ur_pk"] only, so Arabic and other RTL locales
   keep their naskh face. Desktop and mobile both inherit. */

@font-face {
  font-family: "Jameel Noori Nastaleeq";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/JameelNooriNastaleeq/jameel-noori-nastaleeq-kasheeda.woff2") format("woff2");
}

html[data-lang="ur_pk"] {
  --font-sans: "Jameel Noori Nastaleeq", "Vazirmatn", "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-lang="ur_pk"] body,
html[data-lang="ur_pk"] button,
html[data-lang="ur_pk"] input,
html[data-lang="ur_pk"] select,
html[data-lang="ur_pk"] textarea {
  font-family: "Jameel Noori Nastaleeq", "Vazirmatn", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Nastaliq sits lower and tighter than naskh: give it room to breathe
   and lift the size a touch so it reads at the same optical weight. */
html[data-lang="ur_pk"] body {
  font-size: 1.0625rem;
  line-height: 2.05;
}

html[data-lang="ur_pk"] button,
html[data-lang="ur_pk"] input,
html[data-lang="ur_pk"] select,
html[data-lang="ur_pk"] textarea {
  line-height: 1.9;
}

html[data-lang="ur_pk"] h1,
html[data-lang="ur_pk"] h2,
html[data-lang="ur_pk"] h3,
html[data-lang="ur_pk"] h4,
html[data-lang="ur_pk"] h5,
html[data-lang="ur_pk"] h6 {
  line-height: 1.85;
}


/* ---------------- admin (full-width forms) ---------------- */
/* ZerMor admin — sections use the full content width (owner order 2026-11-17).
   The admin form layouts were capped at 52rem/64rem and centred, which left
   large empty white areas on wide screens; they now stretch edge to edge. */
.admin-form-layout {
  max-width: none !important;
}


/* ---------------- homepage: Facebook mobile pattern ----------------
   (owner 2026-11-17: mobile home + stories like the Facebook app) */
.zm-wordmark {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--color-base-content); white-space: nowrap; line-height: 1;
}
@media (max-width: 767.5px) {
  /* composer: flat card, photo + video actions like the Facebook app
     (owner 2026-11-21: video bhi yahin se post ho sakay) */
  #publisher-trigger { box-shadow: none; }
  #publisher-trigger .button--icon-only { display: none; }
  #publisher-trigger .button--icon-only[data-url*="mode=photos"],
  #publisher-trigger .button--icon-only[data-url*="mode=video"] { display: inline-flex; }
}

/* ---------------- shop: Facebook Marketplace mobile grid ----------------
   (owner 2026-11-17: shop mobile view like the Marketplace app —
   edge-to-edge 2-column grid, "$price · Title" single line, Just listed pill) */
@media (max-width: 767.5px) {
  ul:has(> .zm-tts-card) {
    gap: 3px;
    margin-inline: -16px; /* page padding is 16px: bleed to the screen edges */
  }
  .zm-tts-card {
    position: relative;
    border: 0; border-radius: 0; box-shadow: none;
    background: transparent; overflow: visible;
  }
  .zm-tts-card:hover { box-shadow: none; }
  .zm-tts-card:hover .zm-tts-photo img { transform: none; }
  .zm-tts-body {
    flex-direction: row; flex-wrap: wrap; align-items: baseline;
    gap: 0; padding: 6px 2px 12px;
  }
  .zm-tts-price-row { display: contents; }
  .zm-tts-price {
    order: 1; font-size: 15px; font-weight: 700;
    color: var(--color-base-content);
  }
  .zm-tts-price::after { content: "\00B7"; margin-inline-start: 5px; font-weight: 400; }
  .zm-tts-title {
    order: 2; flex: 1 1 0; min-width: 0;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 14px; font-weight: 400; line-height: 1.3;
  }
  .zm-tts-meta, .zm-tts-stock { display: none; }
  .zm-tts-seller { display: contents; }
  .zm-tts-seller img, .zm-tts-seller .js_user-popover { display: none; }
  .zm-tts-seller .zm-tts-tag {
    position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3;
    background: #fff; color: #111; border-radius: 6px;
    padding: 3px 7px; font-size: 11px; font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  }
  .zm-tts-card:has(.zm-tts-badge) .zm-tts-seller .zm-tts-tag { top: 38px; }
  #market-products-title, #market-promoted-title, #market-search-title {
    font-size: 20px; font-weight: 800;
  }
}

/* ---------------- home feed modules: Facebook pattern ----------------
   (owner 2026-11-17: "People you may know" and "Reels" sections inside
   the home feed, between posts) */
.zm-feedmod-card {
  background: var(--color-base-100);
  border: 1px solid var(--color-base-300);
  border-radius: 12px; overflow: hidden;
}
.zm-feedmod-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 2px; }
.zm-feedmod-head h2 { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.zm-feedmod-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}
.zm-feedmod-x:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
/* suggestion cards as a 2-column grid (owner reference screenshot
   2026-11-19): centred round photo, name, meta line, one wide button,
   an X on the card that dismisses the person */
.zm-feedmod-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; padding: 10px 12px 14px; list-style: none; margin: 0;
}
.zm-feed-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden; padding: 18px 12px 12px;
  border: 1px solid var(--color-base-300); border-radius: 12px;
  background: var(--color-base-100);
}
.zm-feed-card-x {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}
.zm-feed-card-x:hover { background: color-mix(in oklab, var(--color-base-content) 8%, transparent); }
.zm-feed-card-photo {
  display: block; width: 104px; height: 104px; flex-shrink: 0;
  border-radius: 999px; overflow: hidden; background: var(--color-base-200);
}
.zm-feed-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-feed-card-body { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 0; flex: 1; width: 100%; text-align: center; }
.zm-feed-card-name {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%;
  font-size: 15.5px; font-weight: 600; color: var(--color-base-content); text-decoration: none;
}
.zm-feed-card-name > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-feed-card-meta {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 13px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}
.zm-feed-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; width: 100%; }
.zm-feed-card-actions .button { white-space: nowrap; justify-content: center; }
.zm-feedmod-seeall {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  padding: 11px; border-top: 1px solid var(--color-base-300);
  font-size: 14.5px; font-weight: 600; color: var(--color-base-content); text-decoration: none;
}
.zm-feedmod-seeall:hover { background: color-mix(in oklab, var(--color-base-content) 4%, transparent); }
.zm-reel-card {
  width: min(168px, 42vw); flex-shrink: 0; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden; background: #000;
}
.zm-reel-card a { position: relative; display: block; aspect-ratio: 9 / 15; }
.zm-reel-card img, .zm-reel-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-reel-views {
  position: absolute; bottom: 8px; inset-inline-start: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  color: #fff; font-size: 12.5px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

/* reels strip as a real swipe carousel (owner 2026-11-19): the next
   card always peeks past the edge and the edge itself fades out, so
   it is obvious more reels exist; on wider screens prev/next buttons
   do the same job. Buttons and fade switch off at the far end. */
.zm-reels-mod { position: relative; }
.zm-reels-row {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline-start: 12px;
  padding: 10px 12px 14px; list-style: none; margin: 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.zm-reels-row::-webkit-scrollbar { display: none; }
.zm-reels-mod::after {
  content: ""; position: absolute; top: 46px; bottom: 0; inset-inline-end: 0;
  width: 42px; pointer-events: none; z-index: 2;
  background: linear-gradient(to right, transparent, var(--color-base-100));
  transition: opacity 0.2s ease;
}
[dir="rtl"] .zm-reels-mod::after { background: linear-gradient(to left, transparent, var(--color-base-100)); }
.zm-reels-mod.is-end::after { opacity: 0; }
.zm-reels-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--color-base-100); color: var(--color-base-content);
  border: 1px solid var(--color-base-300);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
  transition: opacity 0.15s ease;
}
.zm-reels-nav--prev { inset-inline-start: 8px; }
.zm-reels-nav--next { inset-inline-end: 8px; }
.zm-reels-nav.is-off { opacity: 0; pointer-events: none; }
@media (min-width: 768px) {
  .zm-reels-nav { display: inline-flex; }
}

/* ---------------- friends: Facebook mobile list ----------------
   (owner 2026-11-17: on mobile the Friends page is the Facebook list —
   big round avatar, name, Add friend / Remove side by side; the card
   grid stays on larger screens. Solid primary action = Facebook button) */
@media (max-width: 767.5px) {
  ul.zm-people-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  ul.zm-people-grid > li.zm-fr-card {
    flex-direction: row; align-items: center; gap: 12px;
    border: 0; border-radius: 0; background: transparent;
    box-shadow: none; overflow: visible; padding: 8px 0;
  }
  ul.zm-people-grid > li.zm-fr-card:hover { box-shadow: none; }
  ul.zm-people-grid .zm-fr-photo {
    width: 78px; height: 78px; flex-shrink: 0;
    aspect-ratio: 1 / 1; border-radius: 999px;
  }
  ul.zm-people-grid .zm-fr-photo img { object-position: center; }
  ul.zm-people-grid .zm-fr-body { padding: 0; gap: 3px; }
  ul.zm-people-grid .zm-fr-name { font-size: 16.5px; }
  ul.zm-people-grid .zm-fr-meta { font-size: 13px; min-height: 0; }
  /* the two buttons stay small and ride up with the name + meta, so
     the whole text block aligns inside the DP's height (owner
     2026-11-20) */
  ul.zm-people-grid .zm-fr-actions { flex-direction: row; gap: 6px; padding-top: 0; margin-top: 0; }
  ul.zm-people-grid .zm-fr-actions .button {
    flex: 1 1 0; width: auto; height: auto; min-height: 30px;
    font-size: 13.5px; padding: 5px 6px; border-radius: 8px;
  }
}

/* ---------------- shop: product attributes + variations ---------------- */
.zm-prod-attrs {
  display: grid; grid-template-columns: 1fr; gap: 6px 18px;
  margin-top: 12px; padding: 12px 14px;
  border-radius: 12px; background: color-mix(in oklab, var(--color-base-content) 4%, transparent);
  font-size: 13.5px;
}
@media (min-width: 640px) { .zm-prod-attrs { grid-template-columns: 1fr 1fr; } }
.zm-prod-attrs > div { display: flex; gap: 8px; min-width: 0; }
.zm-prod-attrs dt { color: color-mix(in oklab, var(--color-base-content) 55%, transparent); flex-shrink: 0; }
.zm-prod-attrs dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.zm-var-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zm-var-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--color-base-300); background: var(--color-base-100);
  font-size: 13.5px; transition: border-color .15s ease, background .15s ease;
}
.zm-var-pill input { position: absolute; opacity: 0; pointer-events: none; }
.zm-var-pill:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
}
.zm-var-pill.is-out { opacity: .55; cursor: not-allowed; }
.zm-var-pill-label { font-weight: 600; }
.zm-var-pill-price { color: var(--color-primary); font-weight: 700; }
.zm-var-pill-out { font-size: 11.5px; font-weight: 700; color: var(--color-error); }
.zm-var-stock { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--color-warning); min-height: 0; }
.zm-var-stock:empty { display: none; }

/* ---------------- shop: seller center (Facebook Sell) ---------------- */
.zm-sell { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.zm-sell-create { display: flex; align-items: center; gap: 12px; }
.zm-sell-avatar { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.zm-sell-create-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 10px 18px; border-radius: 10px;
  background: var(--color-primary); color: var(--color-primary-content, #fff);
  font-size: 16.5px; font-weight: 700; text-decoration: none;
}
.zm-sell-create-btn:hover { filter: brightness(1.07); }
.zm-sell-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.zm-sell-chips::-webkit-scrollbar { display: none; }
.zm-sell-chips a {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 16px; border-radius: 999px;
  background: color-mix(in oklab, var(--color-base-content) 7%, transparent);
  color: var(--color-base-content); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.zm-sell-chip-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--color-error); color: #fff; font-size: 11.5px; font-weight: 700;
}
.zm-sell-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px; text-decoration: none;
  color: var(--color-base-content);
  border: 1px solid color-mix(in oklab, var(--color-warning) 45%, transparent);
  background: color-mix(in oklab, var(--color-warning) 9%, transparent);
}
.zm-sell-alert-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; flex-shrink: 0;
  background: color-mix(in oklab, var(--color-warning) 18%, transparent); color: var(--color-warning);
}
.zm-sell-alert-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.zm-sell-h { font-size: 19px; font-weight: 800; margin-top: 6px; }
.zm-sell-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1024px) { .zm-sell-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zm-sell-card {
  border: 1px solid var(--color-base-300); border-radius: 14px;
  background: var(--color-base-100); padding: 14px; min-width: 0;
}
.zm-sell-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.zm-sell-num { font-size: 27px; font-weight: 800; line-height: 1.1; }
.zm-sell-num-money { font-size: 21px; }
.zm-sell-ic { color: color-mix(in oklab, var(--color-base-content) 45%, transparent); flex-shrink: 0; }
.zm-sell-label { margin-top: 5px; font-size: 14px; font-weight: 600; }
.zm-sell-sub { font-size: 12.5px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent); }
.zm-sell-orders { border: 1px solid var(--color-base-300); border-radius: 14px; background: var(--color-base-100); padding: 16px; }

/* ---------------- shop: listings management rows ---------------- */
.zm-manage-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--color-base-300); border-radius: 14px;
  background: var(--color-base-100); padding: 10px 12px;
}
.zm-manage-thumb { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--color-base-200); }
.zm-manage-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-manage-main { flex: 1; min-width: 0; }
.zm-manage-name {
  display: block; font-weight: 600; font-size: 15px; color: var(--color-base-content);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.zm-manage-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; font-size: 13px; color: color-mix(in oklab, var(--color-base-content) 60%, transparent); }
.zm-manage-actions { display: flex; gap: 7px; flex-shrink: 0; }
@media (max-width: 480px) {
  .zm-manage-row { flex-wrap: wrap; }
  .zm-manage-actions { width: 100%; }
  .zm-manage-actions .button { flex: 1; }
}

/* ---------------- shop: product editor ---------------- */
.zm-editor { display: flex; flex-direction: column; gap: 14px; }
.zm-editor-card {
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--color-base-300); border-radius: 16px;
  background: var(--color-base-100); padding: 18px;
}
.zm-editor-title { font-size: 16.5px; font-weight: 800; }
.zm-editor-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.zm-var-row {
  display: flex; gap: 8px; align-items: flex-start;
  border: 1px solid var(--color-base-300); border-radius: 12px; padding: 10px;
}
.zm-var-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .zm-var-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.zm-editor-actions { display: flex; gap: 10px; justify-content: flex-end; }
.zm-editor-save { min-width: 180px; }
@media (max-width: 640px) {
  .zm-editor-actions { flex-direction: column-reverse; }
  .zm-editor-actions .button { width: 100%; }
  .zm-editor-row { grid-template-columns: 1fr auto; }
  .zm-editor-row .zm-attr-name { grid-column: 1 / -1; }
}

/* ---------------- profile v2: Facebook mobile header + weekly progress ----------------
   (owner screenshot 2026-11-17: centred avatar/name/stats on mobile,
   "Drop a thought..." bubble, Dashboard + Create, Weekly progress card) */
.zm-thought { display: none; }
@media (max-width: 639.5px) {
  div:has(> .profile-avatar-wrapper.zm-avatar-round) { justify-items: center; }
  .profile-avatar-wrapper.zm-avatar-round {
    margin-inline: auto; width: 10rem; height: 10rem; margin-top: -5rem;
  }
  section[aria-labelledby="profile-name"] .grid > div.min-w-0 { text-align: center; }
  section[aria-labelledby="profile-name"] .grid > div.min-w-0 > div.mt-1,
  section[aria-labelledby="profile-name"] .grid > div.min-w-0 > div.mt-2,
  section[aria-labelledby="profile-name"] .grid > div.min-w-0 > ul.mt-2,
  section[aria-labelledby="profile-name"] .grid > div.min-w-0 > div.mt-4 {
    justify-content: center;
  }
  section[aria-labelledby="profile-name"] .profile-buttons-wrapper { justify-content: center; }
  .zm-thought {
    display: inline-flex; position: absolute; z-index: 30;
    left: 50%; transform: translateX(-50%); bottom: calc(100% + 12px);
    padding: 8px 16px; border-radius: 999px; white-space: nowrap;
    background: var(--color-base-100); color: var(--color-base-content);
    font-size: 14.5px; font-weight: 500;
    box-shadow: 0 4px 18px rgb(0 0 0 / .18);
  }
  .zm-thought::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: -14px; width: 13px; height: 13px; border-radius: 999px;
    background: var(--color-base-100); box-shadow: 0 3px 8px rgb(0 0 0 / .12);
  }
}
.zm-progress {
  border: 1px solid var(--color-base-300); border-radius: 16px;
  background: var(--color-base-100); padding: 16px;
}
.zm-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zm-progress-head h2 { font-size: 19px; font-weight: 800; }
.zm-progress-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0;
  color: color-mix(in oklab, var(--color-base-content) 65%, transparent);
}
.zm-progress-x:hover { background: color-mix(in oklab, var(--color-base-content) 7%, transparent); }
.zm-progress-sub {
  margin-top: 2px; font-size: 14.5px;
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}
.zm-progress-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  text-align: start; padding: 13px 0 2px; margin-top: 11px;
  border-top: 1px solid var(--color-base-300);
  color: var(--color-base-content); text-decoration: none;
}
.zm-progress-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: color-mix(in oklab, var(--color-base-content) 6%, transparent);
}
.zm-progress-main { flex: 1; min-width: 0; }
.zm-progress-title { display: block; font-size: 15.5px; font-weight: 600; }
.zm-progress-count {
  display: block; font-size: 13px;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}
.zm-progress-chev { color: color-mix(in oklab, var(--color-base-content) 40%, transparent); flex-shrink: 0; }

/* ---------------- settings: Facebook Settings & privacy pattern ----------------
   (owner video 2026-11-17: grouped sections, account card, search settings,
   big clean rows — every row is a real settings page) */
.zm-settings-head h2 { font-size: 21px; font-weight: 800; padding: 2px 12px 10px; }
.zm-settings-account {
  display: flex; align-items: center; gap: 12px;
  margin: 0 4px 12px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in oklab, var(--color-base-content) 4%, transparent);
  color: var(--color-base-content); text-decoration: none;
}
.zm-settings-account img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.zm-settings-account-main { flex: 1; min-width: 0; }
.zm-settings-account-name { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-settings-account-sub { display: block; font-size: 13px; color: color-mix(in oklab, var(--color-base-content) 55%, transparent); }
.zm-settings-chev { color: color-mix(in oklab, var(--color-base-content) 40%, transparent); flex-shrink: 0; }
.zm-settings-search {
  display: flex; align-items: center; gap: 8px;
  margin: 0 4px 6px; padding: 0 14px; height: 40px; border-radius: 999px;
  background: color-mix(in oklab, var(--color-base-content) 6%, transparent);
  color: color-mix(in oklab, var(--color-base-content) 50%, transparent);
}
.zm-settings-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  font-size: 14.5px; color: var(--color-base-content);
}
.zm-settings-none {
  padding: 14px 12px; font-size: 14px;
  color: color-mix(in oklab, var(--color-base-content) 55%, transparent);
}
.zm-settings-nav .menu-title {
  font-size: 16.5px !important; font-weight: 800 !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: var(--color-base-content) !important;
  padding: 20px 12px 6px !important;
}
.zm-settings-nav .menu a,
.zm-settings-nav .collapse-toggle {
  min-height: 50px; padding: 9px 12px; border-radius: 12px;
  font-size: 15px; gap: 12px;
}
.zm-settings-nav .menu a { position: relative; padding-right: 30px; }
.zm-settings-nav .menu a::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 18px; height: 18px; transform: translateY(-50%);
  background: color-mix(in oklab, var(--color-base-content) 38%, transparent);
  -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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.zm-settings-nav .collapse ul a { min-height: 42px; font-size: 14px; }
.zm-settings-nav .menu a.menu-active {
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary) !important; font-weight: 600;
}

/* ---------------- unified plus menu (mobile) ---------------- */
/* ZerMor: the mobile (+) opens this bottom sheet (the flow the reference
   site uses) instead of the desktop dropdown, which slid off-screen on
   phones. Desktop keeps the topbar dropdown. */
.mt-plus-panel { position: fixed; inset: 0; z-index: 1200; display: none; }
.mt-plus-panel[hidden] { display: none; }
.mt-plus-panel.mt-open { display: block; }
.mt-plus-backdrop { position: absolute; inset: 0; background: rgba(8,10,14,.5); opacity: 0; transition: opacity .28s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mt-plus-panel.mt-open .mt-plus-backdrop { opacity: 1; }
.mt-plus-sheet { position: absolute; inset-inline: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; background: var(--color-base-100, #fff); color: var(--color-base-content, #16181c); border-radius: 26px 26px 0 0; box-shadow: 0 -18px 60px rgba(0,0,0,.35); padding-bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateY(102%); transition: transform .34s cubic-bezier(.2,.75,.25,1); overscroll-behavior: contain; }
.mt-plus-panel.mt-open .mt-plus-sheet { transform: none; }
.mt-plus-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
.mt-plus-body { padding: 4px 16px 10px; }
.mt-plus-group-title { font-size: 15px; font-weight: 700; margin: 16px 0 10px; }
.mt-plus-group-title:first-child { margin-top: 8px; }
.mt-plus-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9999px; background: color-mix(in srgb, #0091d9 10%, #ffffff); color: #0077b6; flex: none; text-decoration: none; border: 0; cursor: pointer; }
body[data-bs-theme="dark"] .mt-plus-ic { background: color-mix(in srgb, #0091d9 24%, transparent); color: #38b9f1; }
.mt-plus-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9999px; background: oklch(65.32% .2328 25.74); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.mt-plus-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px 6px; }
.mt-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 2px; border-radius: 16px; text-align: center; text-decoration: none; color: inherit; cursor: pointer; }
.mt-plus-tile-ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in oklab, currentColor 16%, transparent); transition: transform .15s ease; }
.mt-plus-tile:active .mt-plus-tile-ic { transform: scale(.92); }
.mt-plus-tile-l { font-size: 13px; font-weight: 600; line-height: 1.3; }
.mt-plus-all { display: block; margin-top: 14px; padding: 13px 4px 4px; border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent); font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .mt-plus-sheet, .mt-plus-backdrop { transition: none; } }


/* ---------------- reels: tabs, community grid, creators (TikTok pattern) ---------------- */
/* the reels viewer owns the whole phone screen; the page behind it must not scroll */
@media (max-width: 1023.98px) {
  #reels { position: fixed; inset: 0; z-index: 200; height: 100dvh; }
  body:has(#reels) { overflow: hidden; }
}
/* rail glyphs stay readable on any video */
.mt-reel-rail .mt-rail-btn { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }

/* reel rail = the TikTok rail (owner reference screenshot 2026-11-20,
   sizes MEASURED from it, not guessed): heart / comment / bookmark /
   share solid glyphs ~34px, button box 48x40, count ~12px sitting
   1px under its button, units on a ~57px pitch (rail gap 1.5px) */
.reel-container .mt-rail-btn { width: 48px; height: 40px; }
.reel-container .mt-rail-btn [class^="icon-"] { width: 34px; height: 34px; }
/* per-glyph optical sizes (owner 2026-11-20: "sb height width me
   equally bnaow" — boxes computed from MEASURED visible sizes on
   his phone screenshot so every glyph lands at ~32px in BOTH
   height and width: heart 29x26->38 box, comment 27x28->39,
   star 30x31->34, share 33x31->32, gift 30x35->36) */
.reel-container .mt-rail-btn .icon-\[tabler--heart-filled\] { width: 38px; height: 38px; }
.reel-container .mt-rail-btn .icon-\[zm--comment-dots\] { width: 39px; height: 39px; }
.reel-container .mt-rail-btn .icon-\[tabler--star-filled\] { width: 34px; height: 34px; }
.reel-container .mt-rail-btn .icon-\[zm--share-arrow\] { width: 32px; height: 32px; }
.reel-container .mt-rail-btn .icon-\[tabler--gift-filled\] { width: 36px; height: 36px; }
.reel-container .mt-reel-rail { gap: 1.5px; }
.reel-container .mt-reel-rail > .flex.flex-col { gap: 1px; }
.reel-container .mt-reel-rail span { font-size: 12px; line-height: 1.15; }

/* top tabs: Community / Following / For You */
.zm-reel-tab { position: relative; padding-bottom: 5px; color: #fff !important; opacity: .6; }
.zm-reel-tab--active { opacity: 1; }
.zm-reel-tab--active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 3px;
  border-radius: 99px; background: #fff; transform: translateX(-50%);
}

/* community: 2-column masonry of real posts/reels */
.zm-community-grid { columns: 2; column-gap: 8px; max-width: 72rem; margin-inline: auto; }
@media (min-width: 1024px) { .zm-community-grid { columns: 4; column-gap: 12px; } }
.zm-grid-card {
  break-inside: avoid; display: block; margin-bottom: 8px; overflow: hidden;
  border-radius: 12px; background: #1d1d21; color: #fff;
}
.zm-grid-card a { display: block; color: inherit; text-decoration: none; }
.zm-grid-thumb { position: relative; }
.zm-grid-thumb img { display: block; width: 100%; height: auto; }
.zm-grid-kind {
  position: absolute; top: 6px; inset-inline-end: 6px; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff;
}
.zm-grid-cap {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding: 8px 10px 0; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .92);
}
.zm-grid-meta { display: flex; align-items: center; gap: 6px; padding: 7px 10px 10px; }
.zm-grid-avatar { width: 20px; height: 20px; border-radius: 99px; object-fit: cover; flex: none; }
.zm-grid-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: rgba(255, 255, 255, .65); }
.zm-grid-likes { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* following: creators panel (dark variant of the profile strip cards) */
.zm-creators-panel { width: min(30rem, 100%); padding: 8px 16px 24px; color: #fff; }
.zm-creators-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.zm-create-circle {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 99px; background: var(--color-primary); color: #fff;
}
.zm-creators-head-text h2 { font-size: 17px; font-weight: 700; }
.zm-creators-head-text p { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.zm-creators-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.zm-creators-row::-webkit-scrollbar { display: none; }
.zm-creators-row .zm-strip-card { flex: 0 0 168px; background: #26262c; border-color: rgba(255, 255, 255, .08); }
.zm-creators-row .zm-strip-name { color: #fff; }
.zm-creators-row .zm-fr-meta { color: rgba(255, 255, 255, .55); }
.zm-creators-none { font-size: 13px; color: rgba(255, 255, 255, .6); }


/* ---------------- live room (TikTok pattern): seats, requests, notices ---------------- */
.zm-room { position: absolute; inset: 0; z-index: 40; pointer-events: none; color: #fff; }
.zm-room button { pointer-events: auto; }
.zm-room-head {
  position: absolute; top: calc(env(safe-area-inset-top) + 3.4rem); inset-inline-start: .75rem; inset-inline-end: .75rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.zm-host-chip {
  pointer-events: auto; display: flex; align-items: center; gap: 8px; min-width: 0;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); border-radius: 99px; padding: 4px 10px 4px 4px;
}
.zm-host-pic { width: 32px; height: 32px; border-radius: 99px; object-fit: cover; flex: none; background: #333; }
.zm-host-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.zm-host-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.zm-host-sub { font-size: 11px; color: rgba(255, 255, 255, .6); }
.zm-follow-btn {
  flex: none; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px;
  font-size: 12px; font-weight: 600; padding: 5px 12px;
}
.zm-room-head-end { display: flex; gap: 6px; }
/* every head button stays fully visible on narrow screens (owner
   order 2026-11-18): the host chip never crushes, and the Guests /
   People chips go icon-only before anything can slide off-screen */
.zm-host-chip { flex: none; }
.zm-host-name { display: block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  .zm-room-head { gap: 5px; inset-inline-start: .5rem; inset-inline-end: .5rem; }
  .zm-host-name { max-width: 72px; }
  .zm-room-head-end .zm-layout-btn span:last-child,
  .zm-room-head-end .zm-people-btn span:last-child { display: none; }
}
@media (max-width: 400px) {
  .zm-host-meta { display: none; }
}
.zm-chip-btn {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px);
  color: #fff; border-radius: 99px; font-size: 12px; font-weight: 600; padding: 7px 11px;
}
/* one size + one line for the room-head chips (owner orders
   2026-11-18: the LIVE pill, the viewer count, taps and close
   were all different heights, off one line, with uneven gaps —
   then: make them HALF the size) — every chip is 18px tall on the
   head's centre line with even gaps, the end group packs to the
   right, and the host chip shrinks to the same scale */
.zm-room-head { align-items: center; gap: 6px; }
.zm-room-head-end { gap: 6px; margin-inline-start: auto; }
.zm-room-head .zm-chip-btn { height: 18px; padding: 0 7px; gap: 4px; font-size: 10.5px; }
.zm-room-head .zm-room-end { height: 18px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border: 0; border-radius: 99px; background: #d92d20; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; cursor: pointer; }
.zm-room-head .zm-room-end [class*="icon-"] { width: 11px; height: 11px; }
.zm-room-head .zm-counter-moved {
  height: 18px; display: inline-flex; align-items: center; gap: 4px;
  padding: 0 7px; margin: 0; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; line-height: 1;
}
.zm-room-head .zm-chip-btn [class*="icon-"],
.zm-room-head .zm-counter-moved [class*="icon-"],
.zm-room-head .zm-counter-moved svg { width: 11px; height: 11px; }
.zm-room-head .zm-host-chip { padding: 3px 10px 3px 3px; gap: 7px; }
.zm-room-head .zm-host-pic { width: 28px; height: 28px; }
.zm-room-head .zm-host-name { font-size: 13.5px; }
.zm-room-head .zm-host-sub { font-size: 10.5px; }
.zm-room-head .zm-follow-btn { font-size: 10.5px; padding: 2px 8px; }
/* light / dark mode (owner order 2026-11-18): the Follow buttons
   are BLACK in light mode and invert to white in dark mode, and
   the head chips take a lighter glass in dark mode so the whole
   top row stays right in both modes (the stock LIVE / viewers
   pills already follow the theme on their own) */
:root[data-theme$="dark"] .zm-follow-btn,
:root[data-theme$="dark"] .zm-fc-follow { background: #fff; color: #000; border-color: transparent; }
:root[data-theme$="dark"] .zm-room-head .zm-chip-btn,
:root[data-theme$="dark"] .zm-room-head .zm-host-chip { background: rgba(255, 255, 255, .14); }
.zm-seats {
  position: absolute; top: calc(env(safe-area-inset-top) + 7.6rem); inset-inline-end: .75rem;
  display: grid; gap: 6px; max-height: none; overflow: visible; scrollbar-width: none;
}
.zm-seats::-webkit-scrollbar { display: none; }
.zm-seats.zm-flash { animation: zm-seat-flash 1s ease 2; }
@keyframes zm-seat-flash { 50% { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 12px; } }
.zm-seat {
  position: relative; width: 62px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden;
  background: #26262c; flex: none;
}
/* an empty seat on the host's stage shows the SAME dashed translucent
   cell the viewers see (owner orders 2026-11-18: first the opaque grey
   blocks were rejected, then the host asked to see his guest layout
   exactly like guests/viewers do) — .zm-seat-empty below carries the
   styling; the number stays soft so the plan reads without covering
   the host's picture */
/* host double-tap zoom: the tapped guest fills the stage (owner order
   2026-11-18) */
.zm-seat-zoom { position: absolute; inset: 0; z-index: 40; background: #000; overflow: hidden; }
.zm-seat-zoom[hidden] { display: none; }
.zm-seat-zoom-video { position: absolute; inset: 0; }
.zm-seat-zoom-video > div { width: 100% !important; height: 100% !important; }
.zm-seat-zoom-bar { position: absolute; top: .6rem; inset-inline-end: .6rem; z-index: 2; display: flex; align-items: center; gap: .5rem; }
.zm-seat-zoom-name { background: rgb(0 0 0 / .5); color: #fff; font-size: .8rem; font-weight: 600; padding: .3rem .65rem; border-radius: 99px; }
.zm-seat-zoom-x { width: 2rem; height: 2rem; border-radius: 99px; background: rgb(0 0 0 / .55); color: #fff; font-size: 1.15rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
/* the speaking guest's card carries a running blue strip in a 1pt
   stroke (owner order 2026-11-18): a full azure frame plus a bright
   segment that keeps travelling around the card's edge */
@property --zm-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.zm-seat-speaking { box-shadow: inset 0 0 0 1pt #0091d9; }
.zm-seat-speaking::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1pt; pointer-events: none;
  background: conic-gradient(from var(--zm-a), transparent 0deg, transparent 250deg, #0091d9 315deg, #8fd0ff 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: zm-run-strip 1.5s linear infinite;
}
@keyframes zm-run-strip { to { --zm-a: 360deg; } }
/* live comments: React/Reply merged onto the author's line, and the
   avatar-to-name gap halved (owner orders 2026-11-18) — the host
   page's live list carries .js_live-comments */
.js_live-comments .comment { gap: .3125rem; }
/* the visible gap between a live comment's DP and its text is the
   row gap PLUS the bubble's own left padding (owner order
   2026-11-18: that gap a little less) — the bubble padding
   shrinks in the live list only */
.js_live-comments .comment-inner { padding: 2px 10px 3px 8px; line-height: 1.28; }
/* denser live rows, so the zone fits the maximum number of
   comments (owner order 2026-11-18: the between-comments gap is
   still too big) — the bubble's vertical padding and the author
   line's height are what made each row tall */
.js_live-comments .comment-author { line-height: 1.15; }
/* the live composer stays ONE line and centre-aligned (owner
   order 2026-11-18, fullscreen report): the stock comment
   textarea autosizes taller as a comment grows and the form
   bottom-aligns its items, so in the live scopes the box is
   locked to the 38px pill, the text scrolls sideways instead
   of wrapping, and the whole row centres on one line */
.js_live-comments .js_comment-form,
.zm-live-comments .js_comment-form { align-items: center; }
.js_live-comments .js_comment-form textarea.js_post-comment,
.zm-live-comments .js_comment-form textarea.js_post-comment {
  height: 38px !important; min-height: 38px; max-height: 38px !important;
  white-space: nowrap; overflow-x: auto; overflow-y: hidden;
  line-height: 20px; padding-top: 9px; padding-bottom: 9px;
}
/* the username and the DP sit on ONE centre line (owner order
   2026-11-18: the username rendered lower than the DP, and the
   comment text lower still) — the whole text block centres
   against the DP instead of hanging from its top */
.js_live-comments .comment { align-items: center; }
.js_live-comments .comment-data { display: flex; flex-wrap: wrap; align-items: flex-start; position: relative; }
.js_live-comments .comment-inner-wrapper { order: 1; flex: 1 1 0%; min-width: 0; }
.js_live-comments .comment-actions { order: 2; flex: 0 0 auto; margin: 0 2rem 0 .5rem; padding: .55rem 0 0; }
.js_live-comments .comment-btn { position: absolute; top: 0; inset-inline-end: 0; float: none; margin: 0; }
/* the author's line NEVER wraps (owner correction 2026-11-18): name,
   badge and the level pill stay on the SAME line, with React + Reply
   right after them — the name alone shrinks (ellipsis) when a line is
   truly too narrow, and the "..." button floats at the corner so it
   can never push onto a line of its own and open a gap */
.js_live-comments .comment-author { flex-wrap: nowrap; }
.js_live-comments .comment-author > a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js_live-comments .comment-author .zm-lvl { flex: none; }
.js_live-comments .js_replies-toggle, .js_live-comments .comment-replies { order: 4; flex-basis: 100%; }
/* a long name + React + Reply + time is wider than the row, and the
   whole actions line wrapped under the bubble (owner: only short
   names merged). flex-basis on the time item did NOT shrink the
   actions' intrinsic width (nested flex sizing), so the time is taken
   out of the flow entirely: it hangs just under React/Reply, and the
   actions shrink to React+Reply width, which fits beside every name */
.js_live-comments .comment-actions { position: relative; }
.js_live-comments .comment-actions li:has(> .js_moment) { position: absolute; top: calc(100% + .2rem); inset-inline-start: 0; white-space: nowrap; }
/* live comment composer: ONE single line only, full width (owner order
   2026-11-18 — the autosized textarea wrapped its own placeholder into
   a tall narrow box); the !important height beats the autosize script's
   inline height, and nowrap keeps even long text on the one line */
.zm-live-comments .js_comment-form { width: 100%; }
.zm-live-comments .js_comment-form textarea.js_autosize {
  height: 38px !important; max-height: 38px !important; overflow-y: auto; white-space: nowrap;
}
/* freehand guest cards (owner order 2026-11-18): the host drags any
   guest's card anywhere inside the camera preview. Only host tiles
   carry the remove button, so only they get the grab cursor and the
   touch-drag behaviour; once a card is free the grid stops clipping
   so the card can travel the whole preview */
.zm-seat:has(> .zm-seat-x) { cursor: grab; touch-action: none; }
.zm-seats:has(.zm-seat-free) { overflow: visible; }
.zm-seat.zm-free-drag { cursor: grabbing; box-shadow: 0 10px 28px rgb(0 0 0 / .55); outline: 2px solid rgb(255 255 255 / .8); outline-offset: 1px; }
@media (min-width: 640px) { .zm-seat { width: 74px; } }
.zm-seat-pic {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%);
  width: 34px; height: 34px; border-radius: 99px; object-fit: cover;
}
/* blurred stage fill (owner order 2026-11-18): the host's own picture,
   stretched and blurred behind the sharp full frame — the whole preview
   area is covered, no black bands, and the real frame is never cropped.
   The LIVE + viewer-count bar already floats over the stage top, in
   front of the host, and the comments panel meets the preview at a
   hairline seam — the camera gets the maximum space. */
/* no comments filter inside a live (owner order 2026-11-18): the
   "Most Recent" row steals a line of the comments zone — comments
   take that space too */
.zm-live-comments .comments-filter { display: none !important; }
/* the stage box clips anything outside its own section; the stage
   takes the camera's own aspect (set inline by JS, capped at 60% of
   the screen height), so cover here shows the full frame — no
   blurred bands, no empty area (owner orders 2026-11-18) */
#js_live-video { position: relative; overflow: hidden; }
body.zm-live-onair #js_live-video video { object-fit: cover !important; }
.zm-seat-video { position: absolute; inset: 0; }
.zm-seat-video > div { width: 100% !important; height: 100% !important; }
.zm-seat-video video { width: 100% !important; height: 100% !important; object-fit: cover; }
.zm-seat-bar {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 3px;
  padding: 8px 5px 3px; font-size: 9.5px; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
}
.zm-seat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.zm-seat-mic { margin-inline-start: auto; flex: none; opacity: .85; }
.zm-seat-you { flex: none; background: var(--color-primary); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.zm-seat-hosttag { flex: none; background: #d92d20; color: #fff; border-radius: 4px; padding: 0 3px; font-weight: 700; }
.zm-quick-gift { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #f5a400; cursor: pointer; padding: 0; flex: none; }
.zm-quick-gift img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; display: block; }
.zm-qg-pop { animation: zmQgPop .35s ease; }
@keyframes zmQgPop { 0% { box-shadow: 0 0 0 0 rgba(245,164,0,.55); } 100% { box-shadow: 0 0 0 12px rgba(245,164,0,0); } }
/* live comments: the always-on React/Reply/time row under each
   comment is gone (owner orders 2026-11-18) — tapping the
   author's DP or NAME opens that user's profile sheet below
   instead. Normal post comments keep their row; only the live
   list is scoped. */
.js_live-comments .comment-actions { display: none !important; }
/* profile sheet from a live comment (owner order 2026-11-18):
   HALF SCREEN, the same shape as the gift panel — picture, name,
   username, followers / following / level, bio, and real Follow
   and Message actions, closable from inside, live untouched */
.zm-user-sheet { position: fixed; inset: 0; z-index: 1300; }
.zm-user-sheet[hidden] { display: none; }
.zm-user-scrim { position: absolute; inset: 0; background: rgba(8, 8, 14, .45); }
.zm-user-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 50dvh; max-height: 560px; background: #17171f; color: #f4f4f6; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); padding: 20px 18px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto; animation: zm-sheet-in .26s cubic-bezier(.2, .9, .25, 1); }
.zm-user-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .09); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.zm-user-body { display: flex; flex-direction: column; align-items: center; text-align: center; }
.zm-user-pic { width: 78px; height: 78px; border-radius: 999px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .16); background: #2a2a35; }
.zm-user-name { font-size: 17.5px; font-weight: 700; margin-top: 9px; line-height: 1.25; }
.zm-user-verified { color: #0091d9; font-size: 14px; }
.zm-user-uname { font-size: 13px; color: rgba(244, 244, 246, .6); margin-top: 1px; }
.zm-user-stats { display: flex; justify-content: center; gap: 30px; margin: 15px 0 3px; }
.zm-user-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.zm-user-stats b { font-size: 16.5px; }
.zm-user-stats span { font-size: 11px; color: rgba(244, 244, 246, .55); }
.zm-user-bio { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: rgba(244, 244, 246, .85); white-space: pre-line; word-break: break-word; max-width: 420px; }
.zm-user-actions { display: flex; gap: 10px; width: 100%; max-width: 420px; margin-top: 18px; }
.zm-user-follow { flex: 1; height: 42px; border: 0; border-radius: 999px; background: #0091d9; color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.zm-user-msg { flex: 1; height: 42px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.zm-user-gift { flex: 1; height: 42px; border: 0; border-radius: 999px; background: #00a86b; color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.zm-user-loading { padding: 30px 0; color: rgba(244, 244, 246, .6); font-size: 14px; }
/* the site's own chat box is hidden on small screens by the
   theme; over a live it opens as a bottom panel instead, so a
   viewer can message from the profile sheet without leaving */
body.zm-live-onair .chat-box { display: flex !important; inset-inline: 0 !important; width: 100% !important; max-width: 100% !important; height: min(62dvh, 560px); z-index: 1350; }
.zm-seat-x {
  position: absolute; top: 3px; inset-inline-end: 3px; z-index: 3; width: 18px; height: 18px; border-radius: 99px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.zm-seat-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1.5px dashed rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .85);
  font-size: 10px; font-weight: 600; cursor: pointer;
}
.zm-seat-plus { font-size: 18px; font-weight: 400; line-height: 1; }
.zm-pending {
  position: absolute; top: calc(env(safe-area-inset-top) + 7.6rem); inset-inline-start: .75rem;
  display: flex; flex-direction: column; gap: 6px; width: 248px; max-width: 72vw;
  max-height: 174px; overflow-y: auto; scrollbar-width: none;
}
.zm-pending::-webkit-scrollbar { display: none; }
.zm-pend-card {
  pointer-events: auto; display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); border-radius: 12px; padding: 7px 8px;
}
.zm-pend-card img { width: 34px; height: 34px; border-radius: 99px; object-fit: cover; flex: none; }
.zm-pend-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.zm-pend-meta b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-pend-timer { font-size: 11.5px; color: var(--color-warning, #f5a400); font-variant-numeric: tabular-nums; font-weight: 700; }
.zm-pend-ok { background: var(--color-primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 6px 9px; flex: none; }
.zm-pend-no { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 6px 9px; flex: none; }
.zm-notices {
  position: absolute; bottom: 8.6rem; inset-inline-start: .75rem; width: min(60%, 320px);
  display: flex; flex-direction: column; gap: 5px;
}
.zm-notice {
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); border-radius: 10px;
  padding: 6px 10px; font-size: 12.5px; line-height: 1.35; color: #fff;
  transition: opacity .4s ease; animation: zm-notice-in .25s ease;
}
.zm-notice.out { opacity: 0; }
@keyframes zm-notice-in { from { opacity: 0; transform: translateY(4px); } }
.zm-follow-card {
  pointer-events: auto; position: absolute; bottom: 8.6rem; inset-inline-end: .75rem; width: 248px; max-width: 62vw;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); border-radius: 14px; padding: 9px 10px;
}
.zm-fc-pic { width: 34px; height: 34px; border-radius: 99px; object-fit: cover; flex: none; }
.zm-fc-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.zm-fc-follow { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; font-size: 12px; font-weight: 700; padding: 6px 10px; flex: none; }
.zm-fc-x { color: rgba(255, 255, 255, .7); flex: none; display: flex; }
.zm-mybar {
  pointer-events: auto; position: absolute; bottom: 4.4rem; inset-inline-start: .75rem;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 1.5rem);
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); border-radius: 99px; padding: 6px 8px 6px 12px;
  font-size: 12.5px;
}
.zm-wait-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--color-warning, #f5a400); animation: zm-pulse 1.2s ease infinite; flex: none; }
@keyframes zm-pulse { 50% { opacity: .35; } }
.zm-mybar-btn {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .14); color: #fff;
  border-radius: 99px; font-size: 12px; font-weight: 600; padding: 6px 11px; flex: none;
}
.zm-mybar-btn.on { background: var(--color-primary); }
.zm-mybar-btn.danger { background: rgba(220, 38, 38, .85); }
.zm-room-bar {
  position: absolute; bottom: .75rem; inset-inline: .75rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.zm-bar-input {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; text-align: start;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .85);
  border-radius: 99px; font-size: 13px; padding: 10px 14px;
}
.zm-bar-btn {
  flex: none; width: 40px; height: 40px; border-radius: 99px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); color: #fff;
}
.zm-sheet {
  pointer-events: auto; position: absolute; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center;
}
.zm-sheet-card {
  width: 100%; background: #1d1d21; border-radius: 18px 18px 0 0; padding: 20px 18px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px; text-align: center;
}
@media (min-width: 640px) {
  .zm-sheet { align-items: center; }
  .zm-sheet-card { width: 360px; border-radius: 18px; }
}
.zm-sheet-card h3 { font-size: 16px; font-weight: 700; }
.zm-sheet-card p { font-size: 13px; color: rgba(255, 255, 255, .65); line-height: 1.45; }
.zm-sheet-request { background: var(--color-primary); color: #fff; border-radius: 12px; font-weight: 700; font-size: 14px; padding: 12px; }
.zm-sheet-spot { background: rgba(255, 255, 255, .1); color: #fff; border-radius: 12px; font-weight: 600; font-size: 13.5px; padding: 11px; }
.zm-sheet-close { color: rgba(255, 255, 255, .6); font-size: 13px; padding: 4px; }
.zm-layout-pop {
  pointer-events: auto; position: absolute; top: calc(env(safe-area-inset-top) + 7.6rem); inset-inline-end: .75rem; z-index: 6;
  width: min(284px, 88vw); background: #1d1d21; border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.zm-lp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
.zm-stepper { display: inline-flex; align-items: center; gap: 10px; }
.zm-stepper button {
  width: 26px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.zm-seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px; gap: 2px; }
.zm-seg button { border-radius: 99px; padding: 4px 11px; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.zm-seg button.on { background: var(--color-primary); color: #fff; font-weight: 700; }

/* ---------------- share sheet (TikTok pattern, all posts) ---------------- */
.zm-share-root { position: fixed; inset: 0; z-index: 1200; }
.zm-share-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.zm-share-sheet {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 82dvh; overflow-y: auto;
  background: #1d1d21; color: #f4f4f6; border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  animation: zm-sheet-up .22s ease;
}
@media (min-width: 640px) {
  .zm-share-sheet { inset-inline: auto; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 430px; border-radius: 20px; animation: none; }
}
@keyframes zm-sheet-up { from { transform: translateY(24px); opacity: .6; } }
.zm-share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.zm-share-head b { font-size: 16px; }
.zm-share-x { color: rgba(255, 255, 255, .75); display: flex; padding: 4px; }
.zm-share-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .65); margin: 6px 0 8px; }
.zm-share-people { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.zm-share-people::-webkit-scrollbar { display: none; }
.zm-share-person { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.zm-share-pimg { position: relative; display: block; }
.zm-share-pimg img { width: 50px; height: 50px; border-radius: 99px; object-fit: cover; display: block; }
.zm-share-person.on .zm-share-pimg img { outline: 2.5px solid var(--color-primary); outline-offset: 2px; }
.zm-share-check {
  position: absolute; bottom: -2px; inset-inline-end: -2px; width: 18px; height: 18px; border-radius: 99px;
  background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid #1d1d21;
}
.zm-share-pname { font-size: 11px; color: rgba(255, 255, 255, .85); max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-share-none { font-size: 13px; color: rgba(255, 255, 255, .55); padding: 8px 2px; }
.zm-share-send {
  width: 100%; background: var(--color-primary); color: #fff; border-radius: 12px;
  font-weight: 700; font-size: 14px; padding: 11px; margin: 2px 0 6px;
}
.zm-share-actions {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 6px;
}
.zm-share-actions::-webkit-scrollbar { display: none; }
.zm-share-act { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.zm-share-aicon {
  width: 50px; height: 50px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.zm-share-alabel { font-size: 11px; color: rgba(255, 255, 255, .85); text-align: center; line-height: 1.2; }
.zm-share-toast {
  margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 8px 10px;
}

/* live studio sheet + seat grid numbers + seating list (2026-11-17) */
.zm-studio { position: absolute; inset: 0; z-index: 46; pointer-events: none; }
.zm-studio[hidden] { display: none; }
.zm-studio-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .45); pointer-events: auto; opacity: 0; transition: opacity .26s ease; }
.zm-studio.open .zm-studio-scrim { opacity: 1; }
.zm-studio-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 84%); background: #17181c; color: #fff; display: flex; flex-direction: column; transform: translateX(-106%); transition: transform .26s ease; pointer-events: auto; box-shadow: 12px 0 32px rgb(0 0 0 / .45); }
[dir="rtl"] .zm-studio-panel { transform: translateX(106%); }
.zm-studio.open .zm-studio-panel { transform: none; }
.zm-studio-head { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; padding: .9rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); flex: none; }
.zm-studio-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; }
.zm-studio-done { flex: none; margin: 0 1rem 1rem; padding: .7rem; border: 0; border-radius: .7rem; background: var(--color-primary, #0091d9); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; }
.zm-people { position: absolute; inset: 0; z-index: 47; pointer-events: none; }
.zm-people[hidden] { display: none; }
.zm-people .zm-side-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .45); pointer-events: auto; }
.zm-people .zm-side-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 88%); background: #17181c; color: #fff; display: flex; flex-direction: column; pointer-events: auto; box-shadow: 12px 0 32px rgb(0 0 0 / .45); }
.zm-side-head { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; padding: .9rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .08); flex: none; }
.zm-side-head-btns { display: inline-flex; gap: .4rem; }
.zm-side-head-btns button { background: rgb(255 255 255 / .12); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 999px; font-size: 15px; line-height: 1; cursor: pointer; }
.zm-people-list { flex: 1; overflow-y: auto; padding: .6rem; display: flex; flex-direction: column; gap: .45rem; }
.zm-people-note { font-size: .85rem; color: rgb(255 255 255 / .6); text-align: center; padding: 1rem .5rem; }
.zm-person { display: flex; gap: .55rem; align-items: flex-start; background: rgb(255 255 255 / .05); border-radius: .8rem; padding: .55rem .6rem; }
.zm-person > img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; flex: none; }
.zm-person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.zm-person-name { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-person-badges { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.zm-person-badge { font-size: .62rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; }
.zm-person-badge-warn { background: #b91c1c; }
.zm-person-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.zm-mod-btn { background: rgb(255 255 255 / .12); border: 0; color: #fff; font-size: .7rem; font-weight: 700; padding: .32rem .55rem; border-radius: 999px; cursor: pointer; }
.zm-mod-btn-danger { background: #b91c1c; }
.zm-mod-timeout { display: inline-flex; gap: .3rem; align-items: center; }
.zm-mod-dur { background: #23242a; color: #fff; border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; font-size: .7rem; padding: .28rem .3rem; }
.zm-studio-x { background: rgb(255 255 255 / .12); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 999px; font-size: 17px; line-height: 1; cursor: pointer; }
.zm-studio-lab { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: rgb(255 255 255 / .75); }
.zm-studio-lab select { background: #23242a; color: #fff; border: 1px solid rgb(255 255 255 / .14); border-radius: .55rem; padding: .5rem .6rem; font-size: .9rem; width: 100%; }
.zm-studio-row { display: flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 600; color: rgb(255 255 255 / .75); }
.zm-studio-row > span { width: 6.2rem; flex-shrink: 0; }
.zm-studio-row input[type="range"] { flex: 1; accent-color: var(--color-primary, #0091d9); }
.zm-studio-row output { width: 2rem; text-align: end; font-size: .75rem; color: #fff; }
.zm-seat-numonly { align-items: center; justify-content: center; }
.zm-seat-num { font-size: 1.05rem; font-weight: 800; color: rgb(255 255 255 / .55); }
.zm-lp-guests { display: flex; flex-direction: column; gap: .45rem; margin-top: .35rem; }
.zm-lp-none { font-size: .78rem; color: rgb(255 255 255 / .6); margin: 0; }
.zm-lp-guest { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }
.zm-lp-guest > span { flex: 1; min-width: 4rem; }
.zm-rm-dur { background: #23242a; color: #fff; border: 1px solid rgb(255 255 255 / .16); border-radius: .5rem; font-size: .72rem; padding: .3rem .35rem; max-width: 8.2rem; }
.zm-rm-btn { background: #b91c1c; color: #fff; border: 0; font-size: .72rem; font-weight: 700; padding: .38rem .6rem; border-radius: .5rem; cursor: pointer; }
.zm-lp-guest img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.zm-lp-guest span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-lp-guest select { background: #23242a; color: #fff; border: 1px solid rgb(255 255 255 / .16); border-radius: .45rem; padding: .28rem .4rem; font-size: .8rem; }

/* ==== gifter level badges 1-100: every tier richer than the last ==== */
.zm-lvl { display: inline-flex; align-items: center; gap: .15rem; font-size: .6rem; font-weight: 800; letter-spacing: .02em; line-height: 1; padding: .22rem .42rem; border-radius: 999px; color: #fff; border: 1px solid rgb(255 255 255 / .25); text-shadow: 0 1px 1px rgb(0 0 0 / .35); vertical-align: middle; white-space: nowrap; position: relative; overflow: hidden; }
.zm-lvl-t0 { background: linear-gradient(135deg, #7d8aa0, #4b5a70); }
.zm-lvl-t1 { background: linear-gradient(135deg, #c98a4b, #8a5a2b); border-color: rgb(255 214 150 / .5); }
.zm-lvl-t2 { background: linear-gradient(135deg, #f3f4f6, #9aa5b1); color: #33404f; text-shadow: none; border-color: rgb(255 255 255 / .7); }
.zm-lvl-t3 { background: linear-gradient(135deg, #ffd964, #d97706); border-color: rgb(255 236 170 / .8); box-shadow: 0 0 6px rgb(245 164 0 / .45); }
.zm-lvl-t4 { background: linear-gradient(135deg, #fda4af, #e11d63); border-color: rgb(255 205 215 / .7); box-shadow: 0 0 7px rgb(244 63 94 / .5); }
.zm-lvl-t5 { background: linear-gradient(135deg, #4ade80, #059669); border-color: rgb(167 243 208 / .7); box-shadow: 0 0 8px rgb(16 185 129 / .55); }
.zm-lvl-t6 { background: linear-gradient(135deg, #7cc4ff, #1d4ed8); border-color: rgb(191 219 254 / .7); box-shadow: 0 0 9px rgb(59 130 246 / .6); }
.zm-lvl-t7 { background: linear-gradient(135deg, #d8b4fe, #7c3aed); border-color: rgb(233 213 255 / .75); box-shadow: 0 0 10px rgb(168 85 247 / .65); }
.zm-lvl-t8 { background: linear-gradient(135deg, #fda4af, #be123c 55%, #881337); border-color: rgb(255 228 230 / .8); box-shadow: 0 0 11px rgb(225 29 72 / .7); }
.zm-lvl-t9 { background: linear-gradient(120deg, #f59e0b, #ef4444, #8b5cf6, #06b6d4, #22c55e, #f59e0b); background-size: 220% 100%; border-color: rgb(255 255 255 / .8); box-shadow: 0 0 12px rgb(245 158 11 / .65); animation: zm-lvl-shine 3.2s linear infinite; }
.zm-lvl-t10 { background: linear-gradient(120deg, #f59e0b, #ef4444, #8b5cf6, #06b6d4, #22c55e, #f59e0b); background-size: 220% 100%; border-color: #ffe27a; box-shadow: 0 0 14px rgb(245 164 0 / .9), 0 0 26px rgb(139 92 246 / .5); animation: zm-lvl-shine 2.4s linear infinite; }
.zm-lvl-t10::before { content: "👑"; font-size: .62rem; text-shadow: none; }
@keyframes zm-lvl-shine { to { background-position: 220% 0; } }

/* ==== gift lines inside the live comments stream ==== */
.zm-gift-line { display: flex; align-items: center; gap: .45rem; margin: .3rem 0; padding: .32rem .55rem; border-radius: 999px; background: rgb(0 0 0 / .42); backdrop-filter: blur(6px); color: #fff; font-size: .78rem; width: fit-content; max-width: 100%; }
.zm-gl-pic { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; flex: none; }
.zm-gl-gift { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; }
.zm-gl-text { min-width: 0; }

/* ==== one composer: reply mode chip ==== */
.zm-reply-chip { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #23242a; color: #fff; font-size: .78rem; padding: .45rem .7rem; border-radius: .6rem; margin-bottom: .45rem; }
.zm-reply-chip button { background: rgb(255 255 255 / .14); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 999px; line-height: 1; cursor: pointer; flex: none; }
.zm-reply-chip--float { position: absolute; inset-inline-start: .75rem; bottom: 4.4rem; z-index: 42; margin: 0; box-shadow: 0 8px 22px rgb(0 0 0 / .45); }

/* ==== setup sliders: one real style everywhere (pre-live + studio) ==== */
.zm-set-row { --zm-track: rgb(0 0 0 / .16); }
body[data-bs-theme="dark"] .zm-set-row { --zm-track: rgb(255 255 255 / .2); }
.zm-set-row input[type="range"] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--color-primary, #0091d9) var(--zm-fill, 100%), var(--zm-track) var(--zm-fill, 100%)); outline: none; cursor: pointer; }
.zm-set-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 999px; background: #fff; border: 2px solid var(--color-primary, #0091d9); box-shadow: 0 1px 5px rgb(0 0 0 / .4); cursor: pointer; }
.zm-set-row input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 999px; background: #fff; border: 2px solid var(--color-primary, #0091d9); box-shadow: 0 1px 5px rgb(0 0 0 / .4); cursor: pointer; }
.zm-set-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--zm-track); }
.zm-set-row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--color-primary, #0091d9); }
.zm-cat-select { background: var(--color-base-100, #fff); color: var(--color-base-content, #111); border: 1px solid var(--color-base-300, #d4d4d8); border-radius: .65rem; padding: .55rem .7rem; font-size: .92rem; }

/* ==== host on air (phone): one clean full-screen room, nothing wasted ==== */
@media (max-width: 1023.98px) {
  body.zm-live-onair .zm-live-heading,
  body.zm-live-onair #js_live-settings,
  body.zm-live-onair footer { display: none !important; }
  /* the room fills the screen edge to edge — the page's own padding is
     exactly the side/top/bottom gaps the owner marked (2026-11-17) */
  body.zm-live-onair main.site-content { padding: 0 !important; }
  /* the stage height already reserves the bars exactly; the body's stock
     4.75rem bottom padding only adds a scrollable black strip */
  body.zm-live-onair { padding-bottom: 0 !important; }
  .zm-room--page .zm-room-head { top: calc(env(safe-area-inset-top) + .6rem) !important; }
  /* one full-viewport column (owner's red-box order 2026-11-18):
     stage on top at exactly the camera's own height, comments fill
     the middle, the room bar is fixed at the very bottom — nothing
     floats mid-screen and no dead space opens below */
  body.zm-live-onair #js_live-layout { margin-top: 0 !important; display: flex !important; flex-direction: column; height: 100svh !important; gap: 0 !important; }
  body.zm-live-onair #js_live-layout > section { flex: none; width: 100%; }
  body.zm-live-onair #js_live-layout > div { flex: 1 1 auto; min-height: 0; gap: 0 !important; display: flex; flex-direction: column; }
  /* the comments section fills its own zone under the stage — never
     inside the stage's clipped video box again (owner 2026-11-18) */
  body.zm-live-onair #js_live-layout > section#live-comments { flex: 1 1 auto; min-height: 0; }
  body.zm-live-onair #live-comments .slimScrollDiv { flex: 1 1 auto; min-height: 0; height: auto !important; display: flex; flex-direction: column; }
  body.zm-live-onair .zm-stage-card { border: 0 !important; border-radius: 0 !important; background: #000 !important; }
  /* the HOST's on-air stage is the Go Live SETUP's design (owner
     order 2026-11-20 05:01): full-screen camera, transparent UI
     top to bottom — replacing the 45.5svh stage the sample
     unification had set earlier the same day. */
  body.zm-live-onair .zm-stage-full { height: 100dvh !important; min-height: 0 !important; border-radius: 0 !important; }
  .zm-room--page .zm-notices { bottom: auto; top: 4.2rem; }
  /* the room under the stage: comments get their own solid block
     underneath the 45.5% stage — no overlay, no dead strip below */
  body.zm-live-onair #js_live-video { height: 100% !important; bottom: auto !important; }
  body.zm-live-onair .zm-seats { max-height: none !important; }
  /* the Go Live SETUP preview uses the SAME stage size as the
     on-air stage (owner order 2026-11-20): what the host sees
     before going live is exactly what comes on air — no jump */
  body.zm-live-fs:not(.zm-live-onair) .zm-stage-full { height: 45.5svh !important; }
  /* the SETUP stage before Go Live is the full-screen preview of
     the setup's own :has() design below (stage fixed inset-0, its
     box 100dvh) — owner order 2026-11-20: transparent top to
     bottom, no black, no white; the camera fills the whole screen
     and every setup control floats over it. (A 45.5svh shrink here
     was tried and reverted the same day: it left a black band
     under the preview.) */
  /* bottom bar (owner order 2026-11-17): composer fixed at the bottom
     left, People / Gift / Share alongside it — one row at the very
     bottom of the screen, comments floating transparently above it */
  body.zm-live-onair .zm-room-bar { position: fixed !important; bottom: 0 !important; inset-inline: 0 !important; padding: .5rem .6rem !important; }
  /* the rail is anchored by its top edge (its old centred top edge
     sat at ~12%) so the buttons moved here from the bottom bar
     stack BELOW the End button instead of pushing the rail's own
     buttons up into the room head (owner order 2026-11-18) */
  body.zm-live-onair #js_live-stream-buttons { top: 15% !important; bottom: auto !important; height: auto !important; padding: 0 !important; transform: none !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; }
  body.zm-live-onair #js_live-stream-buttons .button { width: 2.55rem !important; height: 2.55rem !important; min-height: 2.55rem !important; }
  body.zm-live-onair .zm-mybar { bottom: calc(40% + .55rem) !important; }
  .zm-live-comments { position: absolute !important; top: 0 !important; bottom: auto !important; inset-inline: 0 !important; height: 100dvh !important; max-height: none !important; z-index: 34; display: flex !important; flex-direction: column; min-height: 0; margin-bottom: 0; padding-top: 3.4rem; padding-bottom: 4.6rem; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: hidden !important; pointer-events: none !important; }
  .zm-live-comments ul.js_live-comments, .zm-live-comments .card-header .button { pointer-events: auto; }
  body.zm-live-onair #js_live-layout { position: relative; }
  .zm-live-comments .card-header { background: transparent; border-bottom: 1px solid rgb(255 255 255 / .14); padding: .45rem .8rem; color: #fff; pointer-events: none; }
  .zm-live-comments .card-title { color: #fff; font-size: .85rem; }
  .zm-live-comments .card-header .button { border-radius: 999px; padding: .25rem .6rem; font-size: .72rem; }
  .zm-live-comments ul.js_live-comments { overflow-y: auto; padding: .35rem .6rem; display: flex; flex-direction: column; gap: .15rem; flex: 1 1 auto; min-height: 0; max-height: none !important; height: auto !important; }
  .zm-live-comments ul.js_live-comments > :first-child { margin-top: auto; }
  .zm-live-comments .comment-inner { background: transparent !important; backdrop-filter: none; color: #fff; border-radius: .9rem; padding: .3rem .6rem; }
  .zm-live-comments .comment-author a { color: #fff !important; font-size: .8rem; }
  .zm-live-comments .comment-text, .zm-live-comments .comment-inner p { color: #fff; font-size: .85rem; }
  .zm-live-comments .comment-avatar-picture { width: 28px !important; height: 28px !important; }
  .zm-live-comments .comment-actions, .zm-live-comments .comment-meta, .zm-live-comments .js_moment { color: rgb(255 255 255 / .65); opacity: 1; font-size: .68rem; }
  /* the composer is ONE pill that follows the light/dark mode
     (owner order 2026-11-18): a light surface with dark text in
     light mode, a dark translucent surface with white text in
     dark mode; the bar around it stays transparent over the
     video in both modes */
  .zm-room-formwrap { flex: 1 1 auto; width: auto; min-width: 0; border-top: 0 !important; padding: 0 !important; background: rgb(255 255 255 / .92) !important; border: 1px solid rgb(0 0 0 / .08); border-radius: 99px; }
  body[data-bs-theme="dark"] .zm-room-formwrap { background: rgb(0 0 0 / .45) !important; border: 0; }
  .zm-room-formwrap form, .zm-room-formwrap .comment { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .zm-room-formwrap .comment { gap: .3rem !important; }
  .zm-room-formwrap .comment-avatar { display: none; }
  /* the input stays ONE line everywhere (owner order 2026-11-18):
     fixed height, no wrap, no resize, no growth — the pill's
     shape can never break into multiple lines */
  .zm-room-formwrap textarea { background: transparent !important; color: #111 !important; border: 0 !important; border-radius: 99px !important; height: 38px !important; min-height: 38px !important; max-height: 38px !important; line-height: 22px !important; padding-top: 8px !important; padding-bottom: 8px !important; white-space: nowrap !important; overflow: hidden !important; resize: none !important; }
  body[data-bs-theme="dark"] .zm-room-formwrap textarea { color: #fff !important; }
  .zm-room-formwrap textarea::placeholder { color: rgb(0 0 0 / .45); }
  body[data-bs-theme="dark"] .zm-room-formwrap textarea::placeholder { color: rgb(255 255 255 / .6); }
  /* the comment box takes the bar's full width (owner order
     2026-11-18): the composer and its data column stretch edge to
     edge now that the round buttons live in the right rail */
  .zm-room-formwrap .comment-data { flex: 1 1 auto !important; min-width: 0; }
  .zm-room-formwrap .x-form { width: 100%; }
  .zm-room-formwrap .x-form textarea { width: 100% !important; }
}
.zm-lp-set { background: var(--color-primary, #0091d9); color: #fff; border: 0; font-weight: 700; font-size: .85rem; padding: .6rem; border-radius: .65rem; cursor: pointer; width: 100%; }

/* reels: clearance under the floating tab bar (real classes — the theme
   bundle only generates utilities its build scanned for) */
@media (max-width: 1023.98px) {
  .zm-reels-top-pad { padding-top: calc(env(safe-area-inset-top) + 5.25rem); }
  .zm-reels-unmute-pos { top: calc(env(safe-area-inset-top) + 4.75rem); }
}

/* messages page: the conversation card meets the bottom bar — no dead strip below the composer.
   The stock shell height and the body padding both reserve 4.75rem for a 3.5rem bar; on this
   fixed-height page the extra 20px showed as an empty strip. */
@media (max-width: 1023.98px) {
  body:has(.panel-messages) { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)) !important; }
  body:has(.panel-messages) .site-shell { height: calc(100dvh - 3.5rem - env(safe-area-inset-bottom)) !important; }
}

/* ===== Live round 3 (owner orders 2026-11-17 21:46) ===== */
/* the room layer is pointer-events:none so the video stays tappable, but
   the interactive zones inside it must take real clicks — without this the
   moved comment form could not be typed in and panel selects/sliders died */
.zm-room select, .zm-room input, .zm-room textarea { pointer-events: auto; }
.zm-room-bar, .zm-live-comments, .zm-layout-pop, .zm-studio-scrim, .zm-studio-panel, .zm-side-scrim, .zm-side-panel { pointer-events: auto; }
/* pre-live setup tabs: Camera / Sound / Beauty */
.zm-setup-tabs { display: flex; gap: 6px; }
.zm-setup-tab { flex: 1 1 0; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--color-base-300); background: var(--color-base-200); color: var(--color-base-content); font-size: 13px; font-weight: 700; cursor: pointer; }
.zm-setup-tab[data-active="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
/* a joined guest's mic / camera / leave, merged into the room bar's
   row: the pill becomes a plain row segment, mic + camera go icon-only
   so the whole row fits one line */
.zm-room.zm-onstage .zm-bar-guests { display: none; }
/* the live control cluster — sound, fullscreen and a joined guest's
   Mic / Camera / Leave stage — rides on the RIGHT side of the stage
   as a vertical rail on the camera preview (owner order
   2026-11-18); centred at 42% of the room's height — lower than the
   stage's middle at the owner's word, so the rail's top buttons
   stay clear of the room head's End pill */
.zm-rail { position: absolute; inset-inline-end: .55rem; top: 42%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 46; pointer-events: auto; }
.zm-rail:empty { display: none; }
.zm-rail .zm-mybar { position: static !important; background: transparent; backdrop-filter: none; padding: 0; max-width: 7rem; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.zm-rail .zm-mybar-btn { height: 40px; border-radius: 999px; }
.zm-rail .zm-mybar-btn[data-zm-mic], .zm-rail .zm-mybar-btn[data-zm-cam] { font-size: 0; width: 40px; padding: 0; justify-content: center; }
/* sound + fullscreen on the rail: same round dark look as their
   neighbours, with the pressed state kept visible */
.zm-rail .js_live-sound, .zm-rail .js_live-fullscreen { background: rgb(0 0 0 / .45) !important; color: #fff !important; border: 0 !important; width: 40px; height: 40px; min-height: 40px; border-radius: 999px; flex: none; }
.zm-rail .js_live-sound[aria-pressed="true"] { background: #fff !important; color: #111 !important; }
/* host move mode: the guest seats layout can be dragged anywhere on
   the stage while armed (owner order 2026-11-17) */
.zm-room.zm-moving .zm-seats { outline: 2px dashed rgb(255 255 255 / .75); outline-offset: 4px; cursor: move; touch-action: none; z-index: 45; pointer-events: auto; }
/* the drag handle riding on the guest layout itself: hold it and shift
   the layout anywhere — the drag clamps at the stage edges */
.zm-seats-handle { position: absolute; top: 4px; inset-inline-end: 4px; z-index: 6; width: 26px; height: 26px; border-radius: 999px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgb(0 0 0 / .45); cursor: move; touch-action: none; opacity: .92; }
.zm-bar-move.on { background: var(--color-primary) !important; }
/* moderation as an icon-only round button inside the room bar */
.zm-room-bar .zm-mod-btn { width: 40px; height: 40px; min-height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; border: 0; padding: 0; flex: none; }
.zm-room-bar .zm-mod-btn .icon-\[tabler--shield-check\] { width: 20px; height: 20px; }

/* announcements ticker (feed header running text) */
/* no edge fade/blur on the ticker (owner order 2026-11-19): the text
   runs clean and fully visible from edge to edge */
.zm-ticker { min-width: 0; overflow: hidden; }
.zm-ticker-track { display: inline-flex; align-items: center; white-space: nowrap; direction: ltr; animation: zm-ticker-scroll 30s linear infinite; will-change: transform; }
.zm-ticker:hover .zm-ticker-track, .zm-ticker:active .zm-ticker-track { animation-play-state: paused; }
.zm-ticker-item { font-size: 13px; font-weight: 700; color: var(--color-base-content); padding-inline-end: 2.75rem; }
.zm-ticker-item b { font-weight: 700; opacity: 1; }
@keyframes zm-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* in RTL languages (Urdu, Arabic) the ticker track lays out
   right-to-left and scrolls the other way, mirroring the LTR run */
[dir="rtl"] .zm-ticker-track { direction: rtl; animation-name: zm-ticker-scroll-rtl; }
@keyframes zm-ticker-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
/* the ticker always runs (owner order 2026-11-20: the running text must show) */

/* live room ticker band (owner 2026-11-20, B3): the running band
   as the room bar's FIRST ROW, directly above the buttons —
   announcements + live gift alerts, the same band the PK sample
   proved; it reuses the feed ticker's motion. Scoped under the bar
   so it wins over the feed ticker's own flex rule, and its text is
   white — the room always sits on the dark video (the feed item
   colour is the theme's dark text, unreadable there) */
.zm-room-bar .zm-room-ticker { flex: 1 1 100%; order: -1; width: 100%; padding: .34rem .5rem; border-top: 1px solid color-mix(in oklab, currentColor 12%, transparent); }
.zm-room-ticker .zm-ticker-item { font-size: 11.5px; padding-inline-end: 2.25rem; color: #fff; }
.zm-room-ticker[hidden] { display: none; }

.zm-mention { color: #00a86b; font-weight: 700; }
.zm-bar-rose { font-size: 19px; line-height: 1; }

/* ticker hardening: never wrap, never spill (responsive) */
.zm-ticker { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; }
.zm-ticker-track { display: flex; width: max-content; max-width: none; flex-wrap: nowrap; }
.zm-ticker-item { display: inline-block; white-space: nowrap; }

/* pre-live title/description split: 30% title, 70% description (owner order) */
.zm-live-td-row > .zm-td-title { flex: 0 0 calc(30% - 0.375rem); }
.zm-live-td-row > .zm-td-desc { flex: 0 0 calc(70% - 0.375rem); }

/* pre-live title/description: one line, EQUAL field heights (owner order) */
.zm-live-td-row { align-items: stretch !important; }
.zm-live-td-row .input, .zm-live-td-row textarea.textarea { height: 2.75rem !important; min-height: 2.75rem !important; }
.zm-live-td-row textarea.textarea { resize: none; overflow: hidden; line-height: 1.3; padding-top: .68rem; }

/* stream controls: vertical TRANSPARENT rail on the right edge of the stage —
   white icons only, no pill, no circles, no background (owner order) */
#js_live-stream-buttons { inset-inline-start: auto !important; inset-inline-end: .6rem !important; top: 50% !important; bottom: auto !important; transform: translateY(-50%); background: none !important; padding: 0 !important; z-index: 48 !important; }
#js_live-stream-buttons > * { flex-direction: column !important; align-items: center !important; gap: .5rem !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important; margin: 0 !important; width: auto !important; }
#js_live-stream-buttons .dropdown { --placement: left; }
#js_live-stream-buttons .button { background: transparent !important; box-shadow: none !important; border: 0 !important; color: #fff !important; width: 2.75rem !important; height: 2.75rem !important; min-height: 2.75rem !important; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
#js_live-stream-buttons .button:hover { background: rgb(255 255 255 / .16) !important; }
#js_live-stream-buttons .button[aria-pressed="true"] { background: #fff !important; color: #17171c !important; filter: none; }
#js_live-stream-buttons .button:disabled { background: transparent !important; color: rgb(255 255 255 / .45) !important; }
#js_live-stream-buttons #js_live-end { background: transparent !important; color: #ff5c5c !important; }

/* discovery cards: guests on stage, previewed on the card (owner order) */
/* live discovery: no columns switcher and no "Live Now" heading
   (owner order 2026-11-18, superseding the viewer's-choice switcher);
   the grid is fixed responsive — 2 lives per row on mobile, then
   3 and 4 as the screen widens */
.zm-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .zm-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .zm-live-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zm-live-media { aspect-ratio: 3 / 4; }
/* discovery toolbar: one line — search 50%, countries 25%, categories 25% */
.zm-live-tools { display: flex; align-items: stretch; gap: .5rem; }
/* /live discovery layout columns in real CSS: the template's
   lg:grid-cols-[15rem_minmax(0,1fr)] arbitrary class is not in the
   pre-built bundle, so on desktop the categories rail stacked
   below the lives instead of sitting beside them */
@media (min-width: 1024px) {
  .zm-live-layout { grid-template-columns: 15rem minmax(0, 1fr); }
}
/* /live listing sits FLUSH under the topbar on phones (owner
   2026-11-20: the band above the tabs must go): the theme <main>
   adds pt-4 on mobile — the listing pulls up by exactly that */
@media (max-width: 639.5px) {
  .zm-live-listing { margin-top: -1rem; }
}
.zm-live-tools .zm-tool-search { flex: 2 1 0; min-width: 0; }
.zm-live-tools .zm-tool-half { flex: 1 1 0; min-width: 0; }
/* live card identity: only the host's DP on the card (owner order),
   guests (when on stage) sit in the same top row next to it */
.zm-card-top { position: absolute; top: .55rem; inset-inline-start: .55rem; display: flex; align-items: center; gap: .45rem; z-index: 2; pointer-events: none; }
.zm-card-dp { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; border: 2px solid rgb(255 255 255 / .9); background: #26262c; }
.zm-card-name { color: #fff; font-size: .82rem; font-weight: 700; line-height: 1; text-shadow: 0 1px 6px rgb(0 0 0 / .55); white-space: nowrap; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.zm-card-guests { display: flex; align-items: center; pointer-events: none; }
.zm-card-guests img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; border: 2px solid rgb(255 255 255 / .85); margin-inline-start: -8px; background: #26262c; }
.zm-card-guests img:first-child { margin-inline-start: 0; }
.zm-card-guests img:nth-child(n+7) { display: none; }

/* ==== live full screen (owner order 2026-11-17) ====
   while a live room is on screen (body.zm-live-fs, set by zmlive.js)
   the site top bar and bottom bar hide — the stage owns the screen */
body.zm-live-fs .site-topbar,
body.zm-live-fs .js_site-bottom-bar { display: none !important; }
body.zm-live-fs { padding-bottom: 0 !important; }
body.zm-live-fs main.site-content { padding-bottom: 0 !important; }

/* live names must be white in BOTH modes (owner order 2026-11-17): the
   theme's author links carry an !important utility colour, and layered
   !important beats unlayered !important regardless of specificity — so
   these overrides live in the base layer, which outranks utilities for
   !important. This holds wherever live comments overlay the (always
   dark) video: the LIGHTBOX live, and the PAGE comments zone too —
   it sat in its own block only briefly on 2026-11-20 before the
   owner ordered it back over the video, fully transparent. */
@layer base {
  @media (max-width: 1023.98px) {
  }
  .zm-live-comments .comment-author a { color: #fff !important; }
}

/* watch view (YouTube layout): player + channel/actions/description/
   comments in the main column, Up next rail beside it on desktop and
   below on mobile */
.zm-watch { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) {
  .zm-watch { grid-template-columns: minmax(0, 1fr) 380px; }
}
.zm-watch-post { background: transparent; box-shadow: none; }
.zm-watch-stage { background: #000; border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 9; }
.zm-watch-stage video, .zm-watch-stage .plyr { width: 100%; height: 100%; }
.zm-watch-title { font-size: 1.08rem; font-weight: 700; line-height: 1.35; margin-top: .9rem; overflow-wrap: anywhere; }
.zm-watch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .7rem; }
.zm-watch-channel { display: flex; align-items: center; gap: .65rem; min-width: 0; margin-inline-end: auto; }
.zm-watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.zm-watch-desc { margin-top: .9rem; background: var(--color-base-200); border-radius: .9rem; padding: .7rem .9rem; font-size: .86rem; line-height: 1.45; }
.zm-watch-desc-text { margin-top: .25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.zm-watch-comments { margin-top: 1.1rem; }
.zm-watch-rail-title { font-size: 1rem; font-weight: 700; margin-bottom: .7rem; }
.zm-watch-next-list { display: flex; flex-direction: column; gap: .8rem; }
.zm-watch-next { display: flex; gap: .6rem; min-width: 0; }
.zm-watch-next-thumb { position: relative; flex: none; width: 168px; max-width: 42vw; aspect-ratio: 16 / 9; border-radius: .7rem; overflow: hidden; background: var(--color-base-300); }
.zm-watch-next-thumb img, .zm-watch-next-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-watch-next-dur { position: absolute; bottom: .3rem; inset-inline-end: .3rem; background: rgb(0 0 0 / .7); color: #fff; border-radius: .35rem; padding: .05rem .35rem; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zm-watch-next-dur:empty { display: none; }
.zm-watch-next-meta { display: flex; flex-direction: column; min-width: 0; padding-top: .1rem; }
.zm-watch-next-title { font-size: .86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zm-watch-next-sub { font-size: .74rem; color: var(--color-base-content); opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* live comments sit 1px apart (owner order 2026-11-18): the list gap
   and the stock bottom padding inside each comment both collapse on
   the host section */
.zm-live-comments ul.js_live-comments { gap: 1px; }
.zm-live-comments .comment .comment-data { padding-bottom: 0; }

/* joining a live shows ONLY the camera video (owner orders
   2026-11-20): everything else in the live lightbox is removed —
   the stock post panel (author header, actions, comments,
   composer, even its close button), the counter row over the
   video's top (OFFLINE/LIVE pill + eye count), the centre status
   pill (Loading), the sound/fullscreen controls and the
   reactions layer. When the host sends no video the join view
   is a plain blank screen; when it does, only the video shows. */
.lightbox[data-live-post-id] .lightbox-data {
  position: absolute !important; top: 0; inset-inline-end: 0; z-index: 60;
  width: auto !important; height: auto !important; max-height: none !important;
  background: transparent !important; overflow: visible !important;
}
.lightbox[data-live-post-id] .lightbox-data > * { display: none !important; }
.lightbox[data-live-post-id] .lightbox-preview { flex: 1 1 auto !important; }
.lightbox[data-live-post-id] .lightbox-preview > div:has(#js_live-counter-status) { display: none !important; }
.lightbox[data-live-post-id] #js_live-status { display: none !important; }
.lightbox[data-live-post-id] .js_live-controls { display: none !important; }
.lightbox[data-live-post-id] .js_live-reactions { display: none !important; }

/* the join view fills the WHOLE screen (owner 2026-11-20 14:13):
   no inset card, no rounded corners — the shell's p-2/sm:p-4
   padding and the inner card's rounded-box collapse for live */
.lightbox[data-live-post-id] { padding: 0 !important; }
.lightbox[data-live-post-id] > div { border-radius: 0 !important; max-width: none !important; }

/* host earnings chip (owner order 2026-11-18): one small pill in the
   room head with this live's gift count + coins; the breakdown opens
   under it, compact — biggest gifter first, never filling the screen */
.zm-earn-chip { display: inline-flex; align-items: center; gap: .3rem; background: rgb(0 0 0 / .45); color: #fff; border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; padding: .3rem .6rem; font-size: .72rem; font-weight: 700; line-height: 1; cursor: pointer; }
.zm-earn-chip[hidden] { display: none; }
.zm-earn-pop { position: absolute; top: 3.6rem; inset-inline-start: .6rem; z-index: 75; width: min(19rem, calc(100vw - 1.2rem)); max-height: 46svh; overflow-y: auto; background: rgb(16 18 24 / .97); color: #fff; border: 1px solid rgb(255 255 255 / .14); border-radius: .9rem; padding: .5rem .6rem; box-shadow: 0 12px 32px rgb(0 0 0 / .5); }
.zm-earn-pop[hidden] { display: none; }
.zm-earn-gifter { display: flex; align-items: center; gap: .45rem; padding: .35rem 0 .15rem; font-size: .8rem; font-weight: 700; }
.zm-earn-ava { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; flex: none; }
.zm-earn-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-earn-coins { flex: none; color: #f5c542; font-variant-numeric: tabular-nums; }
.zm-earn-row { display: flex; align-items: center; gap: .45rem; padding: .12rem 0 .12rem 1.7rem; font-size: .76rem; }
.zm-earn-gimg { width: 20px; height: 20px; object-fit: contain; flex: none; }
.zm-earn-x { flex: 1 1 auto; }

/* ============================================================
   Go Live setup — TikTok pattern (owner order 2026-11-18).
   Pre-live only: while #js_live-settings is visible, the stage
   is a full-screen preview, the settings card chrome vanishes
   and the setup lives in fixed overlays (top bar, tool grid,
   title card, bottom sheets). On-air the section is slid up by
   live.js, the :has() scopes stop matching and the room layout
   takes over untouched.
   ============================================================ */
body:has(#js_live-settings.zm-golive:not([style*="display: none"])) {
  overflow: hidden;
}
#js_live-layout:has(#js_live-settings.zm-golive:not([style*="display: none"])) > section:first-child {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  border-radius: 0;
}
#js_live-layout:has(#js_live-settings.zm-golive:not([style*="display: none"])) > section:first-child > div {
  height: 100dvh;
  min-height: 0;
  aspect-ratio: auto;
}
#js_live-settings.zm-golive {
  border: 0;
  background: transparent;
  box-shadow: none;
}
#js_live-settings.zm-golive .card-body {
  padding: 0;
}
#js_live-settings.zm-golive fieldset {
  gap: 0;
}
/* top bar */
.zm-go-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 0;
  pointer-events: none;
}
.zm-go-x {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
}
/* bottom stack: grid + card */
.zm-go-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.zm-go-bottom > * {
  pointer-events: auto;
}
.zm-go-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 4px;
  width: min(100%, 576px);
  margin: 0 auto;
  padding: 0 16px 14px;
}
.zm-go-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.zm-go-ic {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .45));
}
/* title + go live card — fully transparent (owner order 2026-11-20:
   no black panel; the card's controls float on the camera picture) */
.zm-go-card {
  width: min(calc(100% - 20px), 556px);
  margin: 0 auto calc(env(safe-area-inset-bottom, 0px) + 10px);
  padding: 14px 14px 11px;
  border-radius: 20px;
  background: transparent;
  color: #fff;
}
.zm-go-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zm-go-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, .15);
}
.zm-go-title {
  flex: 1 1 0%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
}
.zm-go-title::placeholder {
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
}
.zm-go-title.is-invalid {
  box-shadow: 0 2px 0 0 #fb2c4d;
}
.zm-go-desc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.zm-go-desc {
  margin-top: 10px;
}
.zm-go-desc .textarea {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  color: #fff;
}
.zm-go-desc .textarea::placeholder {
  color: rgba(255, 255, 255, .45);
}
.zm-go-desc-count {
  display: block;
  text-align: end;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}
.zm-go-start {
  margin-top: 12px;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
}
.zm-go-modes {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.zm-go-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, .65);
  font-size: 13.5px;
  font-weight: 500;
}
.zm-go-mode[data-active="true"] {
  color: #fff;
  font-weight: 700;
}
.zm-go-note {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
}
/* sheets */
.zm-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, .45);
}
.zm-sheet {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: block;
  max-height: 50dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(100%, 576px);
  margin: 0 auto;
  padding: 8px 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
  border-radius: 24px 24px 0 0;
  background: var(--color-base-200, #f1f1f4);
  color: var(--color-base-content, #1f2430);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  animation: zm-sheet-in .22s ease-out;
}
@keyframes zm-sheet-in {
  from { transform: translateY(26px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}
.zm-sheet-head {
  position: sticky;
  top: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 10px;
  background: var(--color-base-200, #f1f1f4);
  font-size: 17px;
  font-weight: 700;
}
.zm-sheet-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-base-100, #fff);
}
.zm-sheet-card {
  background: var(--color-base-100, #fff);
  border-radius: 16px;
  padding: 4px 14px;
  margin-bottom: 12px;
}
.zm-srow {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--color-base-300, #e4e4e9);
}
.zm-srow:last-child {
  border-bottom: 0;
}
button.zm-srow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: start;
  padding-top: 11px;
  padding-bottom: 11px;
}
.zm-srow:has(> .zm-srow-head) {
  padding-top: 0;
  padding-bottom: 0;
}
.zm-srow-head .zm-srow-label {
  font-size: 15.5px;
  font-weight: 600;
}
.zm-srow-ic {
  width: 22px;
  height: 22px;
  flex: none;
}
.zm-srow-value {
  margin-inline-start: auto;
  font-size: 14.5px;
  font-weight: 500;
  color: color-mix(in oklab, currentColor 50%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38%;
}
.zm-srow-chev {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .4;
}
.zm-srow.open .zm-srow-chev {
  transform: rotate(90deg);
}
.zm-srow-body {
  padding: 2px 0 12px;
}
.zm-golive #js_live-options > label,
.zm-golive #js_live-options > div > label {
  padding-inline: 2px;
}

/* on-air: every setup overlay (now at body level) hides */
body.zm-onair .zm-go-top,
body.zm-onair .zm-go-bottom,
body.zm-onair .zm-sheet,
body.zm-onair .zm-sheet-backdrop,
body.zm-onair .zm-beauty-wrap {
  display: none !important;
}
/* sheet rows: the label gives way, the value never truncates first */
.zm-srow-head .zm-srow-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zm-srow-value {
  flex: none;
  max-width: 45%;
}

/* ============================================================
   Beauty panel — dark panel + master slider (owner order
   2026-11-18, TikTok pattern). The slider floats over the
   preview directly above the panel; tools are round buttons in
   a scroll row; the selected tool wears a white ring, a tool
   with a value wears the dot under its name.
   ============================================================ */
.zm-beauty-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(100%, 576px);
  margin: 0 auto;
}
.zm-beauty-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 18px 10px;
}
.zm-beauty-val {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.zm-beauty-range {
  flex: 1 1 0%;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, #fff var(--zm-fill, 0%), rgba(255, 255, 255, .35) var(--zm-fill, 0%));
  outline: none;
}
.zm-beauty-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.zm-beauty-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.zm-beauty-compare {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, .5));
}
.zm-beauty {
  background: rgba(11, 11, 13, .97);
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 10px 4px calc(env(safe-area-inset-bottom, 0px) + 12px);
  animation: zm-sheet-in .22s ease-out;
}
.zm-beauty-tabs {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 2px 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.zm-beauty-tabs::-webkit-scrollbar { display: none; }
.zm-beauty-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: rgba(255, 255, 255, .55);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.zm-beauty-sep {
  flex: none;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .18);
}
.zm-beauty-tab {
  position: relative;
  flex: none;
  padding-bottom: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.zm-beauty-tab[data-active="true"] {
  color: #fff;
}
.zm-beauty-tab[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 26px;
  height: 2.5px;
  border-radius: 99px;
  background: #fff;
}
.zm-beauty-reset {
  margin-inline-start: auto;
  flex: none;
  display: inline-flex;
  color: rgba(255, 255, 255, .65);
  padding: 2px;
}
.zm-beauty-tools {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 8px 2px;
  scrollbar-width: none;
}
.zm-beauty-tools::-webkit-scrollbar { display: none; }
.zm-btool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: none;
  width: 64px;
  color: #fff;
}
.zm-btool-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}
.zm-btool-ic svg {
  width: 26px;
  height: 26px;
}
.zm-btool.active .zm-btool-ic {
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 2px #fff;
}
.zm-btool-name {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}
.zm-btool-dot {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: #fff;
}
.zm-beauty-filters {
  padding: 6px 16px 2px;
}
.zm-beauty-filters .label-text {
  color: rgba(255, 255, 255, .85);
}
.zm-beauty-filters output {
  color: rgba(255, 255, 255, .75);
}
.zm-beauty-fnote {
  padding-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

/* ============================================================
   Voice chat mode (owner order 2026-11-18): an audio-only live.
   The stage is the host's avatar stage — never a black box, never
   a camera. Camera-only controls leave the screen entirely in
   this mode; nothing is left behind as a dead button.
   ============================================================ */
.zm-voice-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background: #101418;
  color: #fff;
  text-align: center;
}
body.zm-mode-voice .zm-voice-stage {
  display: flex;
}
.zm-voice-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: blur(28px);
  transform: scale(1.25);
}
.zm-voice-avatar {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 0 10px rgba(18, 190, 180, .25), 0 18px 44px rgba(0, 0, 0, .5);
}
.zm-voice-name {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.zm-voice-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}
/* camera-only controls are gone in voice mode */
body.zm-mode-voice [data-zmgo-flip],
body.zm-mode-voice [data-zmbeauty-open],
body.zm-mode-voice #cam-btn,
body.zm-mode-voice #screen-btn,
body.zm-mode-voice .zm-set-row:has(#zm-set-zoom),
body.zm-mode-voice [data-zmdual-wrap] {
  display: none !important;
}

/* the room's voice stage (viewers + watch): the host's avatar
   stage inside the room layer, under the room's own head/bar */
.zm-room-voice {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  background: #101418;
  text-align: center;
  pointer-events: none;
}
.zm-room-voice[hidden] {
  display: none;
}
.zm-room-voice-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  filter: blur(28px);
  transform: scale(1.25);
}
.zm-room-voice-pic {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 0 0 10px rgba(18, 190, 180, .25), 0 18px 44px rgba(0, 0, 0, .5);
  background: #333;
}
.zm-room-voice-name {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.zm-room-voice-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .75);
}
/* on-air the room renders the voice stage; the setup one steps aside */
body.zm-onair #zm-voice-stage {
  display: none !important;
}

/* the live stage's own background stays plain black; the picture
   itself fills the stage (the FX canvas draw and the SDK's cover
   fit do the filling — no letterbox rule lives here) */
#js_live-video { background: #000; }

/* ==== the live ROOM's sheet is its own surface (owner order
   2026-11-18) ====
   The golive setup sheets reuse the .zm-sheet names with a light
   theme card, which leaked into the room's guest-request sheet:
   the card went white while the sheet's own text stayed white —
   white on white, and the sheet lost its full-overlay shape.
   Every room-sheet rule is therefore scoped to .zm-room and is
   complete: a full-screen scrim with ONE theme-surface card —
   light card + dark text in light mode, dark card + light text
   in dark mode, via the theme's own base colours. */
.zm-room .zm-sheet { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; width: auto; max-height: none; margin: 0; padding: 0; overflow: visible; border-radius: 0; background: rgb(0 0 0 / .55); box-shadow: none; animation: none; }
.zm-room .zm-sheet[hidden] { display: none !important; }
.zm-room .zm-sheet-card { width: 100%; margin: 0; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; text-align: center; border-radius: 18px 18px 0 0; background: var(--color-base-100, #fff); color: var(--color-base-content, #1f2430); }
.zm-room .zm-sheet-card h3 { color: inherit; }
.zm-room .zm-sheet-card p { color: color-mix(in srgb, var(--color-base-content, #1f2430) 65%, transparent); }
.zm-room .zm-sheet-spot { background: var(--color-base-200, #ececf1); color: var(--color-base-content, #1f2430); }
.zm-room .zm-sheet-close { color: color-mix(in srgb, var(--color-base-content, #1f2430) 60%, transparent); }
@media (min-width: 640px) {
  .zm-room .zm-sheet { align-items: center; }
  .zm-room .zm-sheet-card { width: 360px; border-radius: 18px; }
}

/* ================= PK battles (owner order 2026-11-18) =================
   The battle layer lives inside the room, over the stage: a score
   strip with the real gift points on top, the 4:30 clock, the
   challenge/result cards, the opponent tile for team battles and a
   points chip on every player's seat. All in this one stylesheet. */
.zm-pk { position: absolute; top: 3.3rem; inset-inline: .5rem; z-index: 47; pointer-events: none; }
.zm-pk-banner, .zm-pk-strip, .zm-pk-result { pointer-events: auto; }
.zm-pk-banner { display: flex; align-items: center; gap: .5rem; background: rgba(10, 10, 16, .8); border-radius: 14px; padding: .5rem .6rem; font-size: 13px; color: #fff; backdrop-filter: blur(6px); }
.zm-pk-banner img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.zm-pk-banner span { flex: 1; min-width: 0; }
.zm-pk-strip { display: flex; align-items: center; gap: .5rem; background: rgba(10, 10, 16, .72); border-radius: 14px; padding: .35rem .6rem; color: #fff; backdrop-filter: blur(6px); }
.zm-pk-side { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.zm-pk-side-opp { justify-content: flex-end; text-align: right; }
.zm-pk-side img, .zm-pk-player img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.zm-pk-pname { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7rem; }
.zm-pk-pts { font-size: 20px; font-weight: 800; color: #ffd34d; font-variant-numeric: tabular-nums; }
.zm-pk-player { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.zm-pk-player b { color: #ffd34d; font-size: 15px; font-variant-numeric: tabular-nums; }
.zm-pk-vs { opacity: .5; }
.zm-pk-timer { margin-inline-start: auto; background: #d92d20; color: #fff; font-weight: 800; font-size: 13px; padding: .15rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; flex: none; }
.zm-pk-strip .zm-pk-timer { margin-inline-start: 0; }
.zm-pk-strip > .zm-pk-timer:last-child { margin-inline-start: auto; }
.zm-pk-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 4px; background: rgba(255, 255, 255, .15); }
.zm-pk-bar-me { background: #0091d9; transition: width .6s ease; }
.zm-pk-bar-opp { background: #f5a400; transition: width .6s ease; }
.zm-pk-act { background: #d92d20; color: #fff; border: 0; border-radius: 999px; padding: .35rem .85rem; font-weight: 700; font-size: 12.5px; cursor: pointer; flex: none; }
.zm-pk-act-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.zm-pk-result { background: rgba(10, 10, 16, .85); border-radius: 16px; padding: .7rem .8rem; color: #fff; backdrop-filter: blur(6px); }
.zm-pk-result-title { font-size: 16px; font-weight: 800; text-align: center; }
.zm-pk-result-scores { display: flex; gap: .6rem; justify-content: center; align-items: center; font-size: 22px; margin-top: .2rem; }
.zm-pk-result-scores b { color: #ffd34d; font-variant-numeric: tabular-nums; }
.zm-pk-result-row { display: flex; justify-content: space-between; padding: .25rem .4rem; font-size: 13.5px; }
.zm-pk-result-row b { color: #ffd34d; font-variant-numeric: tabular-nums; }
.zm-pk-result-row.win { color: #ffd34d; font-weight: 700; }
.zm-pk-result-foot { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-top: .55rem; font-size: 12px; flex-wrap: wrap; }
.zm-pk-opp { position: absolute; top: 0; inset-inline-end: 0; width: 50%; height: 100%; z-index: 25; pointer-events: none; background: #000; }
.zm-pk-opp-video { position: absolute; inset: 0; }
.zm-pk-opp-video video { width: 100%; height: 100%; object-fit: cover; }
.zm-pk-split #js_live-video { width: 50% !important; }
.zm-pk-chip { position: absolute; top: 4px; inset-inline-start: 4px; z-index: 6; background: rgba(0, 0, 0, .68); color: #ffd34d; font-size: 11px; font-weight: 800; padding: .05rem .4rem; border-radius: 999px; pointer-events: none; font-variant-numeric: tabular-nums; }
.zm-pk-sheet { pointer-events: auto; position: absolute; inset: 0; z-index: 61; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; }
.zm-pk-card { text-align: start; max-height: 78%; overflow-y: auto; }
@media (min-width: 640px) { .zm-pk-sheet { align-items: center; } }
.zm-pk-modes { display: flex; gap: .4rem; flex-wrap: wrap; }
.zm-pk-modes button { flex: 1; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; border-radius: 999px; padding: .4rem .3rem; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.zm-pk-modes button.on { background: #0091d9; border-color: #0091d9; }
.zm-pk-note { font-size: 12px; opacity: .75; margin: 0; }
.zm-pk-hosts, .zm-pk-solo { display: flex; flex-direction: column; gap: 2px; }
.zm-pk-host-row { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-size: 13.5px; color: #fff; }
.zm-pk-host-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.zm-pk-host-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: start; }
.zm-pk-host-name small { opacity: .65; font-size: 11.5px; }
.zm-pk-host-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: #0091d9; flex: none; }
.zm-pk-busy { font-size: 11.5px; opacity: .7; flex: none; }
.zm-pk-empty { font-size: 12.5px; opacity: .8; padding: .4rem 0; }
.zm-pk-start { width: 100%; margin-top: .5rem; }
.zm-pk-sheet-close { background: transparent; border: 0; color: #fff; opacity: .8; padding: .4rem; cursor: pointer; font-size: 13.5px; }

/* viewers rows + battle layering (owner order 2026-11-18, 6.35):
   the watchers of a live as DPs under the host's video — display
   only, no audio/video, a feature separate from guests. During a
   team battle each side's viewers sit under their own video half.
   The host's stream buttons ride ABOVE the battle layer so the
   opponent's video can never cover them. */
.zm-viewers { position: absolute; bottom: 3.5rem; inset-inline-start: .5rem; z-index: 44; display: flex; align-items: center; gap: 3px; pointer-events: none; max-width: calc(100% - 1rem); }
.zm-viewers[hidden] { display: none; }
.zm-viewers-opp { inset-inline-start: calc(50% + .5rem); max-width: calc(50% - 1rem); }
.zm-room.zm-pk-on .zm-viewers:not(.zm-viewers-opp) { max-width: calc(50% - 1rem); }
.zm-viewer-wrap { position: relative; flex: none; }
.zm-viewer-dp { width: min(33px, calc(9.8vw - 5px)); height: min(33px, calc(9.8vw - 5px)); border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); object-fit: cover; background: #333; display: block; }
.zm-viewer-rb { position: absolute; right: 0; bottom: -2px; width: 46%; aspect-ratio: 1; border-radius: 50%; background: #d92d20; color: #fff; font-size: 8px; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; line-height: 1; }
.zm-viewers-more { background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .85); flex: none; }
/* battle seat stacks (owner 2026-11-20): guests ON the videos —
   column of five over a bottom row of three at the video's right
   edge, tile size + position set from the video's real box */
.zm-bstack { position: absolute; z-index: 31; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.zm-bstack[hidden] { display: none; }
.zm-bcol { display: flex; flex-direction: column; gap: 4px; }
.zm-brow { display: flex; gap: 4px; }
.zm-bseat { position: relative; width: var(--btile, 40px); height: var(--btile, 40px); border-radius: 10px; overflow: hidden; flex: none; pointer-events: auto; cursor: pointer; background: #222; }
.zm-bseat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-bseat-nm { position: absolute; left: 0; right: 0; bottom: 0; font-size: 8px; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); padding: 5px 3px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.zm-bseat-plus { position: absolute; top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; color: #d92d20; font-size: 11px; font-weight: 900; line-height: 14px; text-align: center; }

/* PK streaks + battle End button (owner order 2026-11-18, 6.36) */
.zm-pk-fire { color: #ffb020; font-weight: 800; font-size: 11.5px; white-space: nowrap; flex: none; }
.zm-pk-end { padding: .3rem .6rem; }
.zm-pk-result-streak { text-align: center; color: #ffb020; font-weight: 800; font-size: 13px; margin-top: .25rem; }

/* PK strip slim + bar effects (owner order 2026-11-18, 6.38): no
   names/DPs in the strip (the hosts are already on their videos) —
   points, timer and the bar only. The bar shows the gap with
   effects: the leading side glows, the trailing side dims, the
   widths glide, and a centre pill shows the difference pointing
   at the leader. */
.zm-pk-strip-min { justify-content: center; gap: .9rem; }
.zm-pk-strip-min .zm-pk-pts { animation: zmPkPop .45s ease; }
.zm-pk-pts.lead { text-shadow: 0 0 14px rgba(255, 211, 77, .65); }
@keyframes zmPkPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.zm-pk-bar { position: relative; display: block; overflow: visible; }
.zm-pk-bar-track { display: flex; height: 100%; border-radius: inherit; overflow: hidden; }
.zm-pk-bar-track > span { transition: width .7s cubic-bezier(.22, .8, .3, 1); }
.zm-pk-bar.lead-me .zm-pk-bar-me { box-shadow: 0 0 12px rgba(0, 145, 217, .95); filter: brightness(1.18); }
.zm-pk-bar.lead-me .zm-pk-bar-opp { filter: saturate(.5) brightness(.75); }
.zm-pk-bar.lead-opp .zm-pk-bar-opp { box-shadow: 0 0 12px rgba(245, 164, 0, .95); filter: brightness(1.15); }
.zm-pk-bar.lead-opp .zm-pk-bar-me { filter: saturate(.5) brightness(.75); }
.zm-pk-diff { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 800; line-height: 1; padding: .28rem .5rem; border-radius: 999px; color: #fff; white-space: nowrap; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.zm-pk-diff.diff-me { background: #0091d9; }
.zm-pk-diff.diff-opp { background: #f5a400; color: #17171c; }
.zm-pk-solo-bar { display: flex; height: .5rem; border-radius: 999px; overflow: hidden; margin-top: .3rem; background: rgba(255, 255, 255, .12); }
.zm-pk-seg { transition: width .7s cubic-bezier(.22, .8, .3, 1); min-width: 2px; }
.zm-pk-seg.lead { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 0 10px rgba(255, 255, 255, .35); filter: brightness(1.2); }

/* PK bar-only strip + square battle videos (owner order 2026-11-18,
   6.39): the strip is just the bar — scores inside its ends, the gap
   pill in its centre — with the timer below it. During a team battle
   each host's video preview is a SQUARE with the camera fitted
   inside it, responsively (half the stage width, capped by the
   stage height), clear of the strip above and the controls around.
   The battle layer floats over video, so it keeps its dark glass in
   both light and dark mode; text on it is white/gold with shadow,
   readable on either theme. */
.zm-pk-bar { height: 9px; margin-top: 14px; }
.zm-pk-bar-me { background: linear-gradient(90deg, #0091d9, #12beb4); }
.zm-pk-bar-opp { background: linear-gradient(90deg, #ff7847, #f5a400); }
.zm-pk-bar-pts { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; background: rgba(0, 0, 0, .55); padding: .22rem .45rem; border-radius: 999px; animation: zmPkPop .45s ease; }
.zm-pk-bar-pts.pts-me { inset-inline-start: .3rem; }
.zm-pk-bar-pts.pts-opp { inset-inline-end: .3rem; }
.zm-pk-bar-pts.lead { color: #ffd34d; }
.zm-pk-diff { z-index: 3; }
.zm-pk-under { position: relative; display: flex; align-items: center; justify-content: center; margin-top: .35rem; min-height: 1.55rem; }
.zm-pk-under .zm-pk-end { position: absolute; inset-inline-start: 0; }
/* battle layer (owner 2026-11-20, the sample as-is): the leading
   side BURNS inside the bar, the match clock rides the bar's top
   centre, the challenge pill centres under the bar, each side's
   top-4 gifts sit under its own video, WIN marks the winner */
.zm-pk-burn { position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 240, 160, .95), rgba(255, 150, 40, .85) 55%, rgba(255, 70, 20, .9)); mix-blend-mode: screen; opacity: calc(.35 + var(--burn, .5) * .65); animation: zmPkBurn .5s ease-in-out infinite alternate; }
.zm-pk-burn.burn-me { inset-inline-start: 0; border-radius: 3px 0 0 3px; }
.zm-pk-burn.burn-opp { inset-inline-end: 0; border-radius: 0 3px 3px 0; }
@keyframes zmPkBurn { from { filter: brightness(1) saturate(1.1); } to { filter: brightness(1.45) saturate(1.5); } }
.zm-pk-clock { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); z-index: 4; background: #111; color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; padding: .18rem .55rem; border-radius: 999px; line-height: 1; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.zm-pk-challenge { display: flex; align-items: center; gap: .6rem; width: max-content; max-width: calc(100% - 1rem); margin: .4rem auto 0; background: rgb(0 145 217 / .9); color: #fff; font-size: 12px; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.zm-pk-challenge[hidden] { display: none; }
.zm-pk-challenge.boost { background: linear-gradient(90deg, #f5a400, #ff7847); color: #231300; }
.zm-pk-challenge .zm-ch-time { font-variant-numeric: tabular-nums; opacity: .92; }
.zm-topgifts { position: absolute; bottom: 6.4rem; inset-inline-start: .5rem; z-index: 44; display: flex; gap: .3rem; pointer-events: none; }
.zm-topgifts[hidden] { display: none; }
.zm-topgifts-opp { inset-inline-start: auto; inset-inline-end: .5rem; }
.zm-room.zm-pk-on .zm-topgifts:not(.zm-topgifts-opp) { max-width: calc(50% - 1rem); }
.zm-topgift { width: 26px; height: 26px; border-radius: 8px; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; animation: zmPkPop .45s ease; }
.zm-topgift img { width: 22px; height: 22px; object-fit: contain; }
.zm-win-badge { position: absolute; top: .6rem; inset-inline-start: .6rem; z-index: 46; background: linear-gradient(135deg, #ffd34d, #f5a400); color: #231300; font-weight: 900; font-size: 13px; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 10px; box-shadow: 0 3px 12px rgba(0, 0, 0, .45); animation: zmPkPop .45s ease; pointer-events: none; }
.zm-pk-solo-bar { height: .85rem; }
.zm-pk-split #js_live-video { width: 50% !important; height: auto !important; aspect-ratio: 1 / 1; max-height: calc(100% - 5.6rem); margin-top: 5.6rem; }
.zm-pk-opp { top: 5.6rem; height: auto; aspect-ratio: 1 / 1; max-height: calc(100% - 5.6rem); }
.zm-pk-sec-t { font-weight: 800; font-size: 12.5px; margin: .65rem 0 .15rem; opacity: .85; }
.zm-pk-board-row { display: flex; align-items: center; gap: .5rem; padding: .28rem 0; }
.zm-pk-board-row img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.zm-pk-rank { width: 1.05rem; text-align: center; font-weight: 800; color: #ffd34d; flex: none; }
.zm-pk-board-bar { flex: 1; height: .35rem; background: rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; }
.zm-pk-board-bar span { display: block; height: 100%; background: #0091d9; }
.zm-pk-board-row b { font-size: 12.5px; flex: none; }

/* PK sheet close (owner order 2026-11-18, 6.40): a real × button in
   a sticky header — always reachable however far the card scrolls —
   plus tap-the-backdrop to close. The bottom Cancel stays too. */
.zm-pk-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: inherit; padding-bottom: .25rem; }
.zm-pk-head h3 { margin: 0; }
.zm-pk-x { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; }
.zm-pk-x:active { background: rgba(255, 255, 255, .3); }

/* PK sheet theme fix (owner report 2026-11-18, 6.42): the sheet
   card follows the app theme (white in light mode, dark surface
   in dark mode) but the PK sheet's inner rules were written
   white-on-dark, so in light mode the mode chips, host names,
   busy text and close controls were white on white — the
   "missing options". Sheet colours now come from the card's own
   ink (which flips with the theme), with mid-grey translucent
   surfaces that read on both. The sticky head takes the card's
   own background so scrolled content never shows through it. */
.zm-pk-sheet .zm-pk-host-row { color: inherit; }
.zm-pk-sheet .zm-pk-modes button { color: inherit; border-color: rgba(127, 127, 127, .45); background: rgba(127, 127, 127, .10); }
.zm-pk-sheet .zm-pk-modes button.on { background: #0091d9; border-color: #0091d9; color: #fff; }
.zm-pk-sheet .zm-pk-act-ghost { background: rgba(127, 127, 127, .18); color: inherit; }
.zm-pk-sheet .zm-pk-sheet-close { color: inherit; }
.zm-pk-sheet .zm-pk-x { background: rgba(127, 127, 127, .20); color: inherit; }
.zm-pk-sheet .zm-pk-board-bar { background: rgba(127, 127, 127, .25); }
.zm-pk-head { background: var(--color-base-100, #fff); }

/* LIVE History on profiles (owner order 2026-11-18, 6.46): a
   host's ended lives — date chip, title, time range, likes —
   collapsed until the head is tapped. Colours come from the
   theme's own surfaces, so light and dark both read correctly. */
.zm-live-history { background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 16px; padding: 6px 14px; }
.zm-live-history [hidden] { display: none !important; }
.zm-lh-head { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0; cursor: pointer; background: none; border: 0; color: inherit; }
.zm-lh-head-title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 15px; }
.zm-lh-chevron { transition: transform .25s ease; opacity: .6; }
.zm-live-history.zm-lh-open .zm-lh-chevron { transform: rotate(180deg); }
.zm-lh-row { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--color-base-300, #e4e4e9); }
.zm-lh-date { flex: none; width: 3.4rem; padding: .35rem 0; border-radius: 12px; background: rgba(127, 127, 127, .12); display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.zm-lh-mon { font-size: 11px; font-weight: 700; color: #d92d20; text-transform: uppercase; }
.zm-lh-day { font-size: 19px; font-weight: 800; }
.zm-lh-main { min-width: 0; }
.zm-lh-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-lh-meta { font-size: 12.5px; opacity: .65; }

/* Fan Club + Gift Gallery cards on profiles (owner order
   2026-11-18, 6.47): the reference's two cards, real data —
   theme surfaces so light and dark both read correctly. */
.zm-live-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.zm-live-cards [hidden] { display: none !important; }
.zm-lc-card { background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 16px; padding: 12px 14px; }
.zm-lc-top { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; padding: 0; color: inherit; text-align: start; }
button.zm-lc-top { cursor: pointer; }
.zm-lc-ic { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.zm-lc-ic-fan { background: rgba(217, 45, 32, .12); color: #d92d20; }
.zm-lc-ic-gal { background: rgba(245, 164, 0, .16); color: #b97e04; }
.zm-lc-title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; }
.zm-lc-sub { display: flex; align-items: center; gap: .3rem; margin-top: .45rem; font-size: 12.5px; opacity: .65; }
.zm-lc-btn { flex: none; background: #d92d20; color: #fff; border: 0; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.zm-lc-btn-on { background: rgba(127, 127, 127, .18); color: inherit; }
.zm-lc-chev { opacity: .6; transition: transform .25s ease; }
.zm-lc-gallery.zm-lc-open .zm-lc-chev { transform: rotate(180deg); }
.zm-lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .5rem; margin-top: .6rem; }
.zm-lc-gift { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: 10.5px; text-align: center; }
.zm-lc-gift img { width: 44px; height: 44px; object-fit: contain; }
.zm-lc-gift b { color: #b97e04; }
.zm-lc-none { font-size: 12.5px; opacity: .65; }

/* Monetization page + wallet management (owner order
   2026-11-18, 6.47). Theme surfaces, both modes. */
.zm-mon-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.zm-mon-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.zm-mon-card { background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: .25rem; }
.zm-mon-label { font-size: 12px; opacity: .65; font-weight: 600; }
.zm-mon-value { font-size: 22px; font-weight: 800; }
.zm-mon-note, .zm-mon-link { font-size: 12px; opacity: .75; }
.zm-mon-link { color: var(--color-primary, #0091d9); opacity: 1; font-weight: 600; }
.zm-mon-explain { margin: 1.1rem 0; font-size: 13.5px; opacity: .75; max-width: 46rem; }
.zm-mon-list { display: flex; flex-direction: column; gap: .7rem; }
.zm-mon-post { background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 16px; padding: 12px 14px; display: flex; gap: 1rem; align-items: flex-start; }
.zm-mon-post-main { flex: 1; min-width: 0; }
.zm-mon-post-text { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zm-mon-post-meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: 12px; opacity: .65; margin-top: .3rem; }
.zm-mon-reasons { margin: .45rem 0 0; padding-inline-start: 1.1rem; font-size: 12.5px; opacity: .85; }
.zm-mon-verdict { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.zm-verdict { border-radius: 999px; padding: .22rem .7rem; font-size: 12px; font-weight: 700; }
.zm-verdict-organic { background: rgba(0, 168, 107, .15); color: #00a86b; }
.zm-verdict-review { background: rgba(245, 164, 0, .18); color: #b97e04; }
.zm-verdict-fake { background: rgba(217, 45, 32, .13); color: #d92d20; }
.zm-verdict-nodata { background: rgba(127, 127, 127, .15); }
.zm-mon-score { font-size: 12px; opacity: .65; font-weight: 700; }
.zm-wm-ul { list-style: none; margin: 0; padding: 0; }
.zm-wm-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; border-bottom: 1px solid var(--color-base-300, #e4e4e9); font-size: 13.5px; }
.zm-wm-row:last-child { border-bottom: 0; }
.zm-wm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-wm-date { font-size: 12px; opacity: .6; flex: none; }
.zm-wm-amt { flex: none; color: #00a86b; }
.zm-wm-neg { color: #d92d20; }
.zm-wm-none { padding: .9rem 1rem; font-size: 13px; opacity: .65; }
.zm-wm-status { flex: none; border-radius: 999px; padding: .1rem .55rem; font-size: 11px; font-weight: 700; background: rgba(245, 164, 0, .18); color: #b97e04; }
.zm-wm-st-paid { background: rgba(0, 168, 107, .15); color: #00a86b; }

/* Chat goes FULL screen (owner's word 2026-11-19, 6.53 —
   he tried both arrangements and chose this): on the
   messages page (mobile) the top bar AND the bottom bar
   are removed, and every space the theme reserves for
   them is handed to the chat, so the chat owns the whole
   screen. Chat only, mobile only — every other section
   keeps its bars, and the conversation header (user +
   call buttons) stays, as he ordered. 6.54: the two
   give-backs carry !important because an older messages
   rule (from when the bottom bar existed) reserves
   3.5rem + safe-area at the bottom with !important —
   with the bar gone that reserve was the empty strip
   under the composer; now the composer sits at the very
   bottom of the screen and stays there (the message
   list scrolls above it). */
@media (max-width: 1023.98px) {
  body:has(.js_live-messages-alt) header.site-topbar { display: none; }
}
@media (max-width: 767.98px) {
  /* open conversation only: no bottom bar, composer at the very bottom.
     The list view (.sg-offcanvas.active) keeps the bottom bar (owner 2026-11-20). */
  body:has(.js_live-messages-alt):has(.sg-offcanvas:not(.active)) .js_site-bottom-bar { display: none; }
  body:has(.js_live-messages-alt):has(.sg-offcanvas:not(.active)) { padding-bottom: 0 !important; }
  body:has(.js_live-messages-alt):has(.sg-offcanvas:not(.active)) .site-shell { height: 100dvh !important; }
}}}
}

/* Video play button — professional face (owner order
   2026-11-19, 6.55/6.56): Plyr's big centre play control is
   the same real button everywhere a video plays (feed,
   chat, watch, profile) — only its paint changes here,
   never its function, and never its display or opacity
   (Plyr itself hides it while the video plays). A true
   68px circle: frosted dark glass, a BOLD 3px ring (he
   asked for the lines thicker), a sharp clean triangle in
   place of the soft stock glyph, a soft shadow, and a
   gentle grow on hover / press on tap. */
.plyr__control--overlaid {
  width: 68px !important;
  height: 68px !important;
  padding: 0 !important;
  background: rgba(16, 19, 26, .45) !important;
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
  border: 3px solid rgba(255, 255, 255, .96) !important;
  border-radius: 50% !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}
.plyr__control--overlaid svg { display: none !important; }
.plyr__control--overlaid::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 28px;
  transform: translate(-50%, -50%);
  margin-left: 3px;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.plyr__control--overlaid:hover, .plyr__control--overlaid:focus-visible {
  background: rgba(16, 19, 26, .62) !important;
  transform: translate(-50%, -50%) scale(1.07) !important;
}
.plyr__control--overlaid:active {
  transform: translate(-50%, -50%) scale(.96) !important;
}

/* Chat composer pinned to the screen bottom (owner order
   2026-11-19, 6.57 — his screenshot still showed a gap
   under the composer): instead of trusting the page's
   height chain, the composer's own wrapper is taken out
   of the flow on the messages page (mobile) and fixed to
   the viewport's bottom edge, so no height or padding
   rule anywhere can leave a strip under it. The message
   list gets bottom padding so the last messages scroll
   clear of it. The conversation header at the top is not
   touched. */
@media (max-width: 767.98px) {
  body:has(.js_live-messages-alt) .sg-offcanvas-mainbar .panel-messages > .shrink-0 {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--color-base-100, #fff);
    padding-bottom: env(safe-area-inset-bottom);
  }
  body:has(.js_live-messages-alt) .panel-messages .chat-conversations {
    padding-bottom: 0.75rem;
  }
  /* 6.61 (owner order 2026-11-19): the conversation header —
     user head/DP with the call buttons — is pinned to the top
     of the screen the same way the composer is pinned to the
     bottom, so it can never be pushed away by the page layout
     again. The panel gets matching top padding so the first
     messages start below it; the list scrolls between the two
     fixed bars. */
  body:has(.js_live-messages-alt) .sg-offcanvas-mainbar .panel-messages > .h-18 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
  }
  body:has(.js_live-messages-alt) .sg-offcanvas-mainbar .panel-messages {
    padding-top: 4.5rem;
  }
  /* 6.62 (owner order 2026-11-19): the conversation panel itself
     is pinned to the screen (top to bottom), and its bottom
     padding reserves exactly the composer's strip — the message
     list therefore ends immediately above the fixed composer
     and the white gap under the last message is gone. */
  body:has(.js_live-messages-alt) .sg-offcanvas-mainbar .panel-messages {
    position: fixed;
    inset: 0;
    z-index: 30;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
  /* 6.59: the scroll lock (6.58) broke this layout and is
     removed; the only scroll guard kept is on the list
     itself — its scroll no longer chains to the page,
     which is what made the browser bars shift the area.
     overscroll-behavior changes no layout. */
  body:has(.js_live-messages-alt) .panel-messages .chat-conversations {
    overscroll-behavior: contain;
  }
}

}

/* a live in the feed is a reels-style card, not a post (owner
   2026-11-20): the article sheds its post frame (its header,
   stats, actions and comments are not rendered at all) and the
   card is only the host's video preview — a LIVE now pill, the
   host's name, and the viewers count where a reel shows views */
article.post.zm-post-livepreview { background: #000; overflow: hidden; }
.zm-live-card { position: relative; aspect-ratio: 9 / 16; width: 100%; overflow: hidden; background: linear-gradient(165deg, #083049 0%, #0a5d8a 48%, #0d7a6f 100%); color: #fff; cursor: pointer; }
.zm-lp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zm-lp-poster.is-blur { transform: scale(1.12); opacity: .82; filter: blur(.85rem); }
.zm-live-card.is-ended .zm-lp-poster { opacity: .45; }
.zm-live-card.is-ended .zm-lp-tap { display: none; }
.zm-lp-video { position: absolute; inset: 0; }
.zm-lp-video video { width: 100% !important; height: 100% !important; object-fit: cover; }
.zm-lp-tap { position: absolute; inset-inline: 0; bottom: 4.9rem; display: flex; align-items: center; gap: .75rem; padding-inline: 1rem; font-size: 1.05rem; font-weight: 600; text-shadow: 0 1px 8px rgb(0 0 0 / .45); pointer-events: none; }
.zm-lp-line { flex: 1; height: 1px; background: rgb(255 255 255 / .35); }
.zm-lp-tap-t { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.zm-lp-bars { display: inline-flex; gap: 3px; }
.zm-lp-bars i { width: 3px; height: 14px; background: currentColor; border-radius: 2px; }
.zm-lp-meta { position: absolute; inset-inline: 0; bottom: 0; padding: 1rem; pointer-events: none; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.zm-lp-row { display: flex; align-items: center; gap: .6rem; }
.zm-lp-live { background: var(--color-error); color: #fff; font-size: .8rem; font-weight: 700; padding: .28rem .6rem; border-radius: .45rem; }
.zm-lp-viewers { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; }
.zm-lp-name { margin-top: .45rem; font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* home Live section (owner 2026-11-20): on the homepage a live is NOT
   a full-size feed card — lives gather under a "Live" heading as a
   row of reel-style cards, each showing the host's DP and username
   so the host is identifiable at a glance (same DP confusion) */
.zm-home-live { margin: 0 0 10px; }
.zm-home-live-h { font-size: 1.05rem; font-weight: 800; margin: 2px 2px 8px; }
.zm-home-live-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.zm-home-live-row::-webkit-scrollbar { display: none; }
/* a live post never paints full-size in the homepage stream: its slot
   stays hidden from the first paint and core.js moves the card into
   the Live row above as a mini card (owner 2026-11-20) */
#zm-home-live ~ .js_posts_stream li:has(.zm-live-card) { display: none; }
.zm-live-card--mini { flex: 0 0 auto; width: 148px; border-radius: 14px; }
@media (min-width: 768px) { .zm-live-card--mini { width: 168px; } }
.zm-live-card--mini .zm-lp-tap { display: none; }
.zm-live-card--mini .zm-lp-meta { padding: .55rem .6rem; }
.zm-live-card--mini .zm-lp-live { font-size: .68rem; padding: .18rem .45rem; }
.zm-live-card--mini .zm-lp-viewers { font-size: .78rem; }
.zm-live-card--mini .zm-lp-name { display: none; }
.zm-lp-id { display: none; }
.zm-live-card--mini .zm-lp-id { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; }

/* mini card head (owner 2026-11-20): the DP + username sit in the
   HEAD of the card, not the bottom — the meta becomes a full-height
   column, identity first (top), LIVE + viewers last (bottom) */
.zm-live-card--mini .zm-lp-meta { top: 0; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(to bottom, rgb(0 0 0 / .38), transparent 34%); }
.zm-live-card--mini .zm-lp-id { order: -1; margin-top: 0; }
.zm-lp-id img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; border: 1.5px solid rgb(255 255 255 / .85); flex: none; }
.zm-lp-id span { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* story strip vertical padding halved 4px -> 2px (owner 2026-11-20:
   gaps above and below the story card halved, ~5px -> ~2.5px) */
.js_stories-strip { padding-top: 2px !important; padding-bottom: 2px !important; }

/* Go Live page = the join-side single sample, duplicated full-screen
   (owner order 2026-11-20, frontend phase — wiring comes later) */
.zm-live-sample-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1000; background: #000; }

/* ticker gaps removed (owner 2026-11-20, measured on the live page):
   the strip carried 12px of inner padding on each side and sat in the
   toolbar's 12px row gaps — the running text now starts right at the
   white buttons' edges instead of being cut inside the gray strip */
.zm-ticker:not(.zm-room-ticker) { padding-inline: 0 !important; margin-inline: -0.75rem; }

/* the ticker stays in its toolbar place (owner 2026-11-20: the full-width row below was rejected — "same jageh rakho") */

/* grouped ended-lives (owner 2026-11-20): consecutive ended-live
   posts of one author merge into ONE card, their stages shown as a
   reels-style row of portrait tiles (built by zm_group_live_posts
   in core.js) */
.zm-live-tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.zm-live-tiles::-webkit-scrollbar { display: none; }
.zm-live-tile { flex: 0 0 auto; width: 148px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; position: relative; background: #0a0a0f; }
@media (min-width: 768px) { .zm-live-tile { width: 168px; } }
.zm-live-tile .post-media { height: 100%; margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.zm-live-tile .post-media > div { aspect-ratio: auto !important; height: 100%; }

/* reels comments panel (owner 2026-11-20): comments list on top,
   the comment composer pinned at the panel's bottom — the shared
   comments template keeps its stock order everywhere else */
#reels-comments .js_reels-comments-body { display: flex; flex-direction: column; overflow: hidden; }
#reels-comments .lightbox-post { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#reels-comments .post-footer { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#reels-comments .post-comments { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 0.25rem; padding-bottom: 0; }
#reels-comments .js_reels-comments-filter-slot .comments-filter { margin: 0; }
#reels-comments .post-comments .js_comments { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#reels-comments .post-comments .js_comment-form { order: 99; flex: none; margin-top: 0.5rem; padding: 0.5rem 0 0.75rem; border-top: 1px solid color-mix(in oklab, var(--color-base-content) 10%, transparent); }
#reels-comments .post-comments .js_comment-disabled-msg { order: 98; flex: none; }

/* post action buttons (owner 2026-11-20): like / comment /
   share / gift / star / views icons on every post — 20px -> 21.5px,
   then +2px more the same evening -> 23.5px */
.post-actions span[class*="icon-["],
.post-actions .inline-emoji { width: 23.5px !important; height: 23.5px !important; }

/* the same 2.5px rhythm on desktop feeds (owner's global gap) */
.site-content:has(.js_posts_stream) .flex.min-w-0.flex-1.flex-col { gap: 2.5px !important; }
.site-content:has(.js_posts_stream) .js_posts_stream > ul { gap: 2.5px !important; }

/* story tray on desktop: bottom gap equals the top gap too
   (measured ~5px vs ~14px after a first -10px pull at a wide
   viewport, pixel-scanned; the mobile rule
   above pulls it in by 21px under 767.5px) */
@media (min-width: 767.5px) {
  .js_stories { margin-bottom: -2px; }
}

/* Call preview window: freehand drag + pinch (no page gesture stealing);
   when swapped, the remote video inside keeps its true orientation */
.video-call-stream-local { touch-action: none; user-select: none; -webkit-user-select: none; }
.video-call-stream-local.zm-pip-swapped > video { scale: 1 1 !important; transform: none !important; }

/* Beauty panel (shared ZMBeauty engine UI — video calls) */
.zmb-panel { background: rgb(23 23 23 / .92); color: #fff; border-radius: 1.25rem; padding: 1rem; box-shadow: 0 18px 50px rgb(0 0 0 / .45); outline: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(18px); }
.zmb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.zmb-title { font-weight: 700; font-size: .95rem; }
.zmb-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.zmb-switch input { opacity: 0; width: 0; height: 0; }
.zmb-switch span { position: absolute; inset: 0; border-radius: 999px; background: rgb(255 255 255 / .25); transition: .2s; cursor: pointer; }
.zmb-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; }
.zmb-switch input:checked + span { background: #0091d9; }
.zmb-switch input:checked + span::before { transform: translateX(20px); }
.zmb-tools { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .55rem; scrollbar-width: none; }
.zmb-tools::-webkit-scrollbar { display: none; }
.zmb-chip { flex: none; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .08); color: #fff; border-radius: 999px; padding: .32rem .7rem; font-size: .78rem; cursor: pointer; }
.zmb-chip.on { background: #0091d9; border-color: transparent; font-weight: 600; }
.zmb-slider-row { display: flex; align-items: center; gap: .6rem; }
.zmb-tool-name { width: 92px; flex: none; font-size: .8rem; color: rgb(255 255 255 / .85); }
.zmb-slider { flex: 1; accent-color: #0091d9; }
.zmb-val { width: 30px; text-align: right; font-size: .8rem; font-variant-numeric: tabular-nums; }
.zmb-note { margin-top: .55rem; font-size: .68rem; color: rgb(255 255 255 / .5); }

.video-call-stream-local.zm-cam-back:not(.zm-pip-swapped) > video { scale: 1 1 !important; transform: none !important; }

.zm-flip-hold { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 6; pointer-events: none; }

/* 7.90 feed reel cards: inline autoplay — badge hides while playing, speaker toggle */
.mt-feed-reel .zm-reel-badge { transition: opacity .25s ease; }
.mt-feed-reel.zm-playing .zm-reel-badge { opacity: 0; }
/* feed photo slot: a reserved 4/5 skeleton box (base-200) until the
   photo lands, then the slot releases to the photo's natural ratio,
   so the final layout is exactly the classic full-width photo and a
   fast scroll never meets a collapsed white post */
.zm-photo-slot { position: relative; aspect-ratio: 4 / 5; }
.zm-photo-slot > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.zm-photo-slot.zm-img-done { aspect-ratio: auto; }
.zm-photo-slot.zm-img-done > img { position: static; height: auto; object-fit: fill; }
/* ---------------- guest landing ("/" for visitors) ---------------- */
.zm-landing { color: var(--color-base-content); }
.zm-landing a:focus-visible, .zm-landing button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.zm-land-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.zm-land-hero { padding: 3rem 0 2.5rem; text-align: center; background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 14%, var(--color-base-100)), color-mix(in oklab, var(--color-accent) 10%, var(--color-base-100))); }
.zm-land-h1 { font-size: 2rem; line-height: 1.15; font-weight: 800; margin: 0 auto 1rem; max-width: 44rem; }
.zm-land-sub { font-size: 1.0625rem; line-height: 1.6; color: var(--color-base-content); opacity: .75; margin: 0 auto 1.5rem; max-width: 40rem; }
.zm-land-cta { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.zm-land-lang { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; }
.zm-land-lang-label { font-size: .875rem; opacity: .7; }
.zm-land-section { padding: 2.5rem 0; }
.zm-land-h2 { font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0 0 1.5rem; }
.zm-land-h3 { font-size: 1.125rem; font-weight: 700; margin: 2rem 0 1rem; }
.zm-land-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.zm-land-card { background: var(--color-base-100); border: 1px solid var(--color-base-300); border-radius: 1rem; padding: 1.25rem; }
.zm-land-card h3 { font-size: 1rem; font-weight: 700; margin: .75rem 0 .375rem; display: flex; align-items: center; gap: .5rem; }
.zm-land-card p { margin: 0; font-size: .9375rem; line-height: 1.55; opacity: .75; }
.zm-land-ic { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 12%, var(--color-base-100)); }
.zm-land-age { font-size: .6875rem; font-weight: 700; padding: .125rem .45rem; border-radius: 999px; color: var(--color-error); border: 1px solid var(--color-error); }
.zm-land-preview-sec { background: var(--color-base-200); }
.zm-land-posts { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.zm-land-post { display: block; background: var(--color-base-100); border: 1px solid var(--color-base-300); border-radius: 1rem; overflow: hidden; color: inherit; }
.zm-land-post-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--color-base-300); }
.zm-land-post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zm-land-play { position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .45); color: #fff; }
.zm-land-post-meta { display: flex; flex-direction: column; gap: .125rem; padding: .75rem 1rem; font-size: .875rem; }
.zm-land-post-meta span { opacity: .7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zm-land-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.zm-land-reel { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 1rem; overflow: hidden; background: #000; color: #fff; }
.zm-land-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zm-land-reel-author { position: absolute; inset-inline: .5rem; bottom: .5rem; font-size: .75rem; font-weight: 600; text-shadow: 0 1px 4px rgb(0 0 0 / .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-land-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.zm-land-product { display: block; background: var(--color-base-100); border: 1px solid var(--color-base-300); border-radius: 1rem; overflow: hidden; color: inherit; }
.zm-land-product-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--color-base-300); }
.zm-land-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zm-land-product-meta { display: flex; flex-direction: column; gap: .125rem; padding: .75rem 1rem; font-size: .875rem; }
.zm-land-product-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zm-land-price { font-weight: 700; color: var(--color-primary); }
.zm-land-stock { font-size: .75rem; }
.zm-land-stock.is-in { color: var(--color-success); }
.zm-land-stock.is-out { color: var(--color-error); }
.zm-land-note { text-align: center; margin: 1.5rem 0 0; font-size: .9375rem; opacity: .7; }
.zm-land-dating { text-align: center; max-width: 36rem; margin-inline: auto; background: var(--color-base-100); border: 1px solid var(--color-base-300); border-radius: 1rem; padding: 1.75rem 1.25rem; }
.zm-land-dating p { line-height: 1.6; opacity: .8; }
.zm-land-notice { display: inline-block; margin-top: .75rem; padding: .5rem 1rem; border-radius: .75rem; border: 1px solid var(--color-error); color: var(--color-error); font-weight: 700; opacity: 1 !important; }
.zm-land-why { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.zm-land-why-item { text-align: center; padding: 1.25rem 1rem; }
.zm-land-why-item i { color: var(--color-primary); }
.zm-land-why-item h3 { font-size: 1rem; font-weight: 700; margin: .625rem 0 .375rem; }
.zm-land-why-item p { margin: 0; font-size: .9375rem; line-height: 1.55; opacity: .75; }
.zm-land-final { text-align: center; background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary) 14%, var(--color-base-100)), color-mix(in oklab, var(--color-accent) 10%, var(--color-base-100))); }
@media (min-width: 640px) {
  .zm-land-grid { grid-template-columns: repeat(2, 1fr); }
  .zm-land-posts { grid-template-columns: repeat(2, 1fr); }
  .zm-land-why { grid-template-columns: repeat(2, 1fr); }
  .zm-land-h1 { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .zm-land-grid { grid-template-columns: repeat(3, 1fr); }
  .zm-land-posts { grid-template-columns: repeat(4, 1fr); }
  .zm-land-products { grid-template-columns: repeat(4, 1fr); }
  .zm-land-why { grid-template-columns: repeat(4, 1fr); }
  .zm-land-hero { padding: 4.5rem 0 3.5rem; }
  .zm-land-h1 { font-size: 3rem; }
}
.zm-reel-snd { position: absolute; bottom: .55rem; inset-inline-end: .55rem; z-index: 3; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.zm-reel-snd .zm-ic-off { display: none; }
.zm-reel-snd.zm-snd-off .zm-ic-off { display: block; }
.zm-reel-snd.zm-snd-off .zm-ic-on { display: none; }

/* feed posts are ALWAYS fully rendered (owner order 2026-11-21):
   a content-visibility skip was tried for smoothness (7.93) and
   removed the same night — on a fast fling the browser could not
   render the skipped posts in time and the screen flashed white
   before the posts appeared. Posts must stay with the scroll. */

/* 7.95 — public (logged-out) page polish: the topbar Sign Up button
   wears the brand gradient (green -> teal -> azure, the logo colours)
   instead of the stock violet, so the guest header matches the site */
.site-topbar a[href$="/signup"] {
  background: linear-gradient(92deg, #00a86b, #12beb4 52%, #0091d9) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 6px 16px rgba(0, 145, 217, .28);
}

/* ---- chat composer extras (owner reference 2026-11-21): pill layout,
   azure icons and the gradient voice button live in the composer block
   above; these two rules only add what that block does not cover ---- */
.x-form[data-handle="chat"] .zm-comp-emoji button > span { width: 1.375rem; height: 1.375rem; }
.x-form[data-handle="chat"] .zm-comp-plus:hover { background: color-mix(in oklab, #0091d9 10%, transparent); }
/* live history (owner order 2026-11-22): session cards, tabs,
   detail rows — the full record of every live */
.zm-lh-tabs { display: flex; gap: .5rem; margin: 0 0 1rem; }
.zm-lh-tab { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--color-base-300, #e4e4e9); color: var(--color-base-content, #222); font-weight: 700; font-size: .9rem; text-decoration: none; }
.zm-lh-tab.on { background: #fe2c55; border-color: #fe2c55; color: #fff; }
.zm-lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.zm-lh-card { display: flex; flex-direction: column; gap: .5rem; background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 18px; padding: 16px; box-shadow: 0 1px 3px rgb(0 0 0 / .05); text-decoration: none; color: var(--color-base-content, #222); }
.zm-lh-card:hover { border-color: #fe2c55; }
.zm-lh-card .zm-lh-date { display: block; width: auto; flex: none; padding: 0; border-radius: 0; background: transparent; font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .55; }
.zm-lh-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.zm-lh-dur { flex: 0 0 auto; font-size: .74rem; font-weight: 800; color: #fe2c55; background: rgb(254 44 85 / .09); padding: .18rem .6rem; border-radius: 999px; white-space: nowrap; }
.zm-lh-title { font-weight: 800; font-size: 1rem; }
.zm-lh-stats { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; font-weight: 700; }
.zm-lh-stats span { background: var(--color-base-200, #f3f3f6); padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.zm-lh-owner { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.zm-lh-owner img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.zm-lh-owner-meta { display: flex; flex-direction: column; }
.zm-lh-owner-name { font-weight: 800; font-size: 1.05rem; }
.zm-lh-owner-sub { font-size: .82rem; opacity: .6; }
.zm-lh-range { font-size: .88rem; font-weight: 700; opacity: .75; }
.zm-profile-live-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .16rem .6rem; border-radius: 999px; background: #fe2c55; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.zm-plb-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.zm-lh-coins { font-size: .9rem; font-weight: 700; color: #00a86b; }
.zm-lh-bal { font-size: .82rem; opacity: .75; }
.zm-lh-host { display: flex; align-items: center; gap: .5rem; font-weight: 800; }
.zm-lh-host img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.zm-lh-empty { background: var(--color-base-100, #fff); border: 1px dashed var(--color-base-300, #e4e4e9); border-radius: 16px; padding: 16px; font-size: .92rem; opacity: .85; }
.zm-lh-dhead { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.zm-lh-dhead img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.zm-lh-dtitle { font-weight: 800; font-size: 1.15rem; }
.zm-lh-dsub { font-size: .85rem; opacity: .7; }
.zm-lh-h { font-weight: 800; font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.zm-lh-rows { display: flex; flex-direction: column; gap: .45rem; }
.zm-lh-row { display: flex; align-items: center; gap: .7rem; background: var(--color-base-100, #fff); border: 1px solid var(--color-base-300, #e4e4e9); border-radius: 14px; padding: 9px 12px; }
.zm-lh-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.zm-lh-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.zm-lh-row-main small, .zm-lh-row-end small { opacity: .65; font-size: .78rem; }
.zm-lh-row-end { display: flex; flex-direction: column; align-items: flex-end; }
/* create-story plus: one solid logo colour (owner order 2026-11-22) */
.js_story-create .bg-primary { background-color: #0091D9 !important; }

/* live card v2 (owner order 2026-11-23): preview top / info bottom */
.zm-lc-prev { position: absolute; inset-inline: 0; top: 0; height: 57%; display: flex; overflow: hidden; background: #000; }
.zm-lc-full { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.zm-lc-ended-img { filter: grayscale(45%); }
.zm-lc-half { flex: 1 1 0; min-width: 0; height: 100%; overflow: hidden; }
.zm-lc-half img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.zm-lc-split .zm-lc-half:first-child { border-inline-end: 2px solid #000; }
.group:hover .zm-lc-full, .group:hover .zm-lc-half img { transform: scale(1.05); }
.zm-lc-info { position: absolute; inset-inline: 0; bottom: 0; height: 43%; background: #000; display: flex; flex-direction: column; justify-content: center; gap: .32rem; padding: .5rem .6rem; }
.zm-lc-tap { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.zm-lc-tap::before, .zm-lc-tap::after { content: ""; flex: 1; height: 1px; background: rgb(255 255 255 / .25); }
.zm-lc-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.zm-lc-bars i { display: block; width: 3px; background: #fff; }
.zm-lc-bars i:nth-child(1) { height: 6px; }
.zm-lc-bars i:nth-child(2) { height: 11px; }
.zm-lc-bars i:nth-child(3) { height: 8px; }
.zm-lc-pills { display: flex; align-items: center; gap: .4rem; min-height: 1.35rem; }
.zm-lc-live { background: #fe2c55; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; padding: .32rem .5rem; border-radius: .375rem; white-space: nowrap; }
.zm-lc-tag { background: #fff; color: #111; font-size: .72rem; font-weight: 600; line-height: 1; padding: .32rem .5rem; border-radius: .375rem; white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }
.zm-lc-endedpill { background: #3f3f46; color: #e4e4e7; font-size: .72rem; font-weight: 700; line-height: 1; padding: .32rem .5rem; border-radius: .375rem; white-space: nowrap; }
.zm-lc-streak { color: #fbbf24; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.zm-lc-views { margin-inline-start: auto; color: rgb(255 255 255 / .75); font-size: .72rem; display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.zm-lc-name { color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zm-lc-title { color: rgb(255 255 255 / .92); font-size: .8rem; display: flex; align-items: center; gap: .35rem; min-width: 0; }
.zm-lc-flame { color: #f59e0b; font-size: 1rem; flex: none; }
.zm-lc-title-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* instant-navigation progress bar (zm-prefetch.js, 2026-11-23) */
#zmNavBar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; opacity: 0; pointer-events: none; background: linear-gradient(90deg, #0091d9, #12beb4, #8dc63f); transition: opacity .25s ease; }

/* Bottom bar hard pin (owner order 2026-11-23): the bar must sit
   at the bottom of the screen on EVERY page, exactly in place,
   however often the page is refreshed — no other rule may un-fix
   it, and its own compositing layer keeps Android from flickering
   or repainting it while the page scrolls. (It is still removed
   where the owner himself ordered it away: an open chat
   conversation and a fullscreen live.) */
.js_site-bottom-bar {
  position: fixed !important;
  inset-inline: 0 !important;
  bottom: 0 !important;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Bottom-bar discs (owner 2026-11-24): the theme's error red read as
   salmon, not red — the Watch and Go Live discs get pure red. */
.js_site-bottom-bar .zm-bar-disc { background-color: #ff0000; }

/* Theme primary (owner order 2026-11-24): the theme bundle's violet primary
   (#523ae2 light / #7c69f2 dark) read as pink across the site — own chat
   bubbles, primary buttons and active states all follow it. Replaced
   everywhere by the ZerMor azure-cyan, the voice play button's colour.
   HeroUI buttons (Add Friend, Confirm, …) paint from their own --accent
   variable, NOT --color-primary — it carries the same violet and is
   replaced here too. */
:root { --color-primary: #0091d9; }
:root[data-theme$="dark"] { --color-primary: #0091d9; }
.heroui { --accent: #0091d9; --accent-foreground: #fff; }
[data-theme$="dark"] .heroui { --accent: #0091d9; }

/* ---------------- home feed density on desktop (owner 2026-11-24) ----
   In the home newsfeed on wide screens, reel, video and product posts
   all go four to a row (reels/videos were first paired two to a row;
   the owner then ordered four the same night: "inko aik row me 4 kar
   do"), so no post renders zoomed to the full column width; "People
   you may know" shows its four cards in a single row. Mobile and
   every other stream keep the classic single column. */
@media (min-width: 1024px) {
  /* Paired rows. A measured-span masonry was tried on 2026-11-24 and
     reverted the same night: late-loading post images changed item
     heights after measuring and posts overlapped on the live feed.
     Do not re-add it without a proof on a full real-data replica. */
  .js_posts_stream[data-get="newsfeed"] > ul { flex-direction: row; flex-wrap: wrap; }
  .js_posts_stream[data-get="newsfeed"] > ul > li { flex: 0 0 100%; min-width: 0; }
  .js_posts_stream[data-get="newsfeed"] > ul > li:has(> article.zm-post-reel),
  .js_posts_stream[data-get="newsfeed"] > ul > li:has(> article.zm-post-video) { flex-basis: calc(25% - 6px); }
  .js_posts_stream[data-get="newsfeed"] > ul > li:has(> article.zm-post-product) { flex-basis: calc(25% - 6px); }
  .js_posts_stream[data-get="newsfeed"] article.post.mt-post-fit { height: auto; }
  .zm-feedmod-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* People page inside the site shell (owner 2026-11-24): with the
   sidebars present the cards area is narrower, so the grid stays
   4 across on desktop (his 4-in-a-row rule) and widens to 5 only
   on very wide screens. */
@media (min-width: 1280px) {
  .zm-fr-wrap ul.zm-people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 2200px) {
  .zm-fr-wrap ul.zm-people-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* People shell on mid-width screens: below 1600px the right rail
   would crush the people cards, so on this page it steps aside
   until the screen is wide enough for all three columns. */
@media (max-width: 1599.5px) {
  .zm-shell-people > aside.w-80 { display: none; }
}

/* Homepage mockup cards (owner 2026-11-24): a 9/16 reel poster at feed
   width is taller than the screen, so only the picture showed and the
   author row fell below the bottom bar. Cap the poster so the whole
   card — poster + play icon + username — fits between the top and
   bottom bars, like feed posts sat before the mockups. The width must
   stay a definite 100%: with an auto width the browser keeps the
   aspect ratio by shrinking the box sideways when the height clamps,
   which left a black strip beside the poster (owner screenshot). */
@media (max-width: 1023.5px) {
  article.zm-post-mockup > a > span:first-child {
    width: 100%;
    max-height: calc(100dvh - 12rem);
  }
}

/* Kids Mode (Step 1, owner 2026-11-24): preset kid avatar colours + picker */
.zm-kid-av { color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; flex-shrink: 0; }
.zm-kid-av-azure { background: #0091d9; }
.zm-kid-av-teal { background: #12beb4; }
.zm-kid-av-green { background: #00a86b; }
.zm-kid-av-lime { background: #8dc63f; }
.zm-kid-av-gold { background: #f5a400; }
.zm-kid-av-violet { background: #7c5cfc; }
input.zm-kid-av-pick { position: absolute; opacity: 0; pointer-events: none; }
.zm-kid-av-pickwrap input:checked + .zm-kid-av { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* Educators kids shell (Step 2, owner 2026-11-24): standalone chrome,
   big touch targets, bottom nav — no site navigation inside */
.zm-kids-body { background: var(--color-base-200); }
.zm-kids-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--color-base-100); border-bottom: 1px solid rgba(127, 127, 127, .25); }
.zm-kids-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; color: var(--color-primary); }
.zm-kids-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.zm-kids-exitlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: inherit; opacity: .75; padding: 8px 6px; }
.zm-kids-main { max-width: 880px; margin: 0 auto; padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
.zm-kids-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 0 4px; }
.zm-kids-hello h1 { font-size: 24px; font-weight: 800; margin: 0; }
.zm-kids-hello p { opacity: .7; margin: 0; }
.zm-kids-h { font-size: 19px; font-weight: 800; margin: 18px 0 10px; }
.zm-kids-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .zm-kids-grid { grid-template-columns: repeat(3, 1fr); } }
.zm-kids-card { display: flex; flex-direction: column; gap: 3px; background: var(--color-base-100); border-radius: 16px; overflow: hidden; padding-bottom: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: inherit; }
.zm-kids-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.zm-kids-card-ph { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; background: var(--color-base-300); color: var(--color-primary); }
.zm-kids-card-title { font-weight: 700; font-size: 15px; line-height: 1.3; padding: 8px 10px 0; }
.zm-kids-card-sub { font-size: 12.5px; opacity: .65; padding: 0 10px; }
.zm-kids-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 38px 16px; opacity: .85; }
.zm-kids-video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16 / 9; }
.zm-kids-lesson-meta { opacity: .65; font-size: 13.5px; margin: 10px 0 6px; }
.zm-kids-lesson-text { font-size: 16px; line-height: 1.65; }
.zm-kids-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--color-primary); padding: 6px 0; }
.zm-kids-exitbox { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 16px; }
.zm-kids-exitrow { display: flex; gap: 8px; align-items: center; }
.zm-kids-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--color-base-100); border-top: 1px solid rgba(127, 127, 127, .25); padding-bottom: env(safe-area-inset-bottom); }
.zm-kids-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 8px; font-size: 12px; font-weight: 700; color: inherit; opacity: .6; min-height: 58px; justify-content: center; }
.zm-kids-nav a.zm-on { opacity: 1; color: var(--color-primary); }

/* Educators kids shell (Step 3): stars, tasks, completion */
.zm-kids-stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #f5a400; font-size: 15px; }
.zm-kids-done { color: var(--color-success, #00a86b); font-weight: 700; }
.zm-kids-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.zm-kids-task { display: flex; align-items: center; gap: 12px; background: var(--color-base-100); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.zm-kids-check { width: 44px; height: 44px; flex-shrink: 0; border-radius: 9999px; border: 2.5px solid var(--color-primary); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.zm-kids-task.zm-task-done .zm-kids-check { background: var(--color-primary); }
.zm-kids-task-title { font-size: 16.5px; font-weight: 600; flex: 1; }
.zm-kids-task.zm-task-done .zm-kids-task-title { text-decoration: line-through; opacity: .6; }
.zm-kids-complete { margin-top: 18px; display: flex; justify-content: center; }
.zm-kids-donebig { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--color-success, #00a86b); }

/* Educators (Step 4): kids exams + certificate */
.zm-kids-card-btn { margin: 8px 10px 0; }
.zm-kids-q { border: 1px solid rgba(127, 127, 127, .3); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: var(--color-base-100); }
.zm-kids-q legend { font-weight: 700; font-size: 16px; padding: 0 6px; }
.zm-kids-opt { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; font-size: 15.5px; }
.zm-kids-opt:active { background: var(--color-base-200); }
.zm-kids-opt input { width: 22px; height: 22px; accent-color: var(--color-primary); flex-shrink: 0; }
.zm-kids-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 16px; }
.zm-kids-score { font-size: 46px; font-weight: 800; line-height: 1; margin: 0; }
.zm-kids-trophy { color: #f5a400; }
.zm-cert-body { background: var(--color-base-200); margin: 0; }
.zm-cert-wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px 48px; }
.zm-cert { background: #fff; color: #1a1a1a; border: 3px solid #0091d9; border-radius: 18px; padding: 40px 30px; text-align: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.zm-cert-head { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #0091d9; }
.zm-cert-brand { font-size: 26px; font-weight: 800; }
.zm-cert-sub { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: .7; }
.zm-cert-title { font-size: 30px; font-weight: 800; margin: 22px 0 8px; }
.zm-cert-line { opacity: .65; margin: 10px 0 2px; }
.zm-cert-name { font-size: 32px; font-weight: 800; color: #0091d9; margin: 4px 0; }
.zm-cert-exam { font-size: 21px; font-weight: 700; margin: 4px 0; }
.zm-cert-meta { opacity: .75; margin: 10px 0 0; }
.zm-cert-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid #e2e2e2; margin-top: 26px; padding-top: 14px; font-size: 12.5px; opacity: .8; }
.zm-cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.zm-cert-invalid { border-color: #d33; }
@media print {
  .zm-cert-actions { display: none; }
  .zm-cert-wrap { padding: 0; }
  .zm-cert { box-shadow: none; }
}

/* Educators — Netflix-style shelves and tiles (2026-11-24) */
.zm-nx-tabs { display: flex; gap: .5rem; margin-top: 1rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.zm-nx-tabs::-webkit-scrollbar { display: none; }
.zm-nx-tabs .btn { flex: 0 0 auto; border-radius: 999px; }
.zm-nx-chips { display: flex; gap: .45rem; margin-top: 1rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.zm-nx-chips::-webkit-scrollbar { display: none; }
.zm-nx-chips .btn { flex: 0 0 auto; border-radius: 999px; }
.zm-nx-shelf { margin-top: 1.5rem; }
.zm-nx-shelf-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .55rem; }
.zm-nx-shelf-title { font-size: 1.05rem; font-weight: 700; }
.zm-nx-shelf-link { font-size: .8rem; color: #0091d9; }
.zm-nx-row { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -.75rem; padding: .1rem .75rem .45rem; }
.zm-nx-row::-webkit-scrollbar { display: none; }
.zm-nx-card { flex: 0 0 auto; width: 62vw; max-width: 248px; scroll-snap-align: start; text-decoration: none; color: var(--color-base-content, inherit); display: block; }
.zm-nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.zm-nx-grid .zm-nx-card { width: auto; max-width: none; }
.zm-nx-examcard { display: block; }
@media (min-width: 1024px) {
  .zm-nx-card { width: 236px; }
  .zm-nx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.zm-nx-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: .8rem; overflow: hidden; background: #1b1b21; }
.zm-nx-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-nx-tile { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: #fff; background: linear-gradient(135deg, hsl(var(--hue, 210) 62% 44%), hsl(var(--hue, 210) 68% 22%)); }
.zm-nx-tile-exam { background: linear-gradient(135deg, #0091d9, #0a4d8f); }
.zm-nx-tile-course { background: linear-gradient(135deg, #12beb4, #065f56); }
.zm-nx-tile-subj { font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .92; }
.zm-nx-level { position: absolute; top: .45rem; inset-inline-start: .45rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .64rem; font-weight: 600; padding: .16rem .45rem; border-radius: 999px; }
.zm-nx-play { position: absolute; bottom: .45rem; inset-inline-end: .45rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; }
.zm-nx-play::after { content: ''; border-style: solid; border-width: .32rem 0 .32rem .55rem; border-color: transparent transparent transparent #fff; margin-inline-start: .12rem; }
.zm-nx-title { display: block; margin-top: .45rem; font-weight: 600; font-size: .92rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
.zm-nx-meta { display: block; font-size: .75rem; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* connection banner (zm-prefetch.js): branded offline/online bar */
.zm-netbar {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%;
  transform: translate(-50%, -16px); z-index: 12000;
  display: flex; align-items: center; gap: 8px;
  max-width: min(92vw, 430px); padding: 8px 14px; border-radius: 999px;
  background: #3d2b00; color: #ffd97a; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.zm-netbar.show { opacity: 1; transform: translate(-50%, 0); }
.zm-netbar .zm-netbar-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #f5a400; flex: none;
  animation: zm-netbar-pulse 1.2s ease-in-out infinite;
}
.zm-netbar.is-online { background: #06351f; color: #7be2ae; }
.zm-netbar.is-online .zm-netbar-dot { background: #00a86b; animation: none; }
@keyframes zm-netbar-pulse { 50% { opacity: .35; } }

/* live exam room (educators hub) */
.zm-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff0000; display: inline-block;
  animation: zm-netbar-pulse 1.2s ease-in-out infinite;
}
.zm-lx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.zm-lx-tile, .zm-lx-teacher, .zm-lx-me {
  position: relative; border-radius: 12px; overflow: hidden; background: #000;
}
.zm-lx-video { aspect-ratio: 4 / 3; width: 100%; }
.zm-lx-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.zm-lx-tilebar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; background: var(--color-base-100); font-size: 12px;
}
.zm-lx-name { font-weight: 600; }
.zm-lx-stage { display: grid; grid-template-columns: 1fr 180px; gap: 10px; align-items: start; }
.zm-lx-stage .zm-lx-name {
  position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 12px;
  background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 999px;
}
.zm-lx-remove { margin-left: auto; }
@media (max-width: 640px) {
  .zm-lx-stage { grid-template-columns: 1fr 120px; }
  .zm-lx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
