/* MilkyWay app shell — one stylesheet, compositor-friendly (transform/opacity animations only, no layout thrash).
   Low-end devices ([data-low-end]) and Data Saver drop blur/shadow effects. */
:root {
  /* Milky Way deep-space palette */
  --void: #03040d;          /* outer space */
  --midnight: #070a24;      /* midnight blue */
  --bg: #05061a;
  --fg: #f4f1ff;            /* starlight white */
  --muted: rgba(214, 214, 255, .64);
  --line: rgba(160, 150, 255, .16);
  --panel: #0d0f2e;
  --panel-2: #151845;
  --nebula: #9b5cff;        /* nebula purple */
  --nebula-deep: #5b21b6;
  --electric: #3d8bff;      /* electric blue */
  --starlight: #ffe7a3;     /* warm star glow */
  --accent: #b05cff;
  --accent-2: #4fb4ff;
  --galaxy: #8a6bff;
  --glow: 0 0 18px rgba(155, 92, 255, .45);
  --nav-h: calc(56px + env(safe-area-inset-bottom));
  --top-h: calc(52px + env(safe-area-inset-top));
  --ease: cubic-bezier(.2, .85, .25, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; overscroll-behavior: none; }
html { background: radial-gradient(140% 90% at 50% 0%, var(--midnight) 0%, var(--bg) 55%, var(--void) 100%) fixed var(--bg); }
body { background: transparent; }
body { font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Top bar & bottom nav --------------------------------------------------------------------------------- */
.topbar {
  position: fixed; z-index: 20; inset: 0 0 auto; height: var(--top-h); padding: env(safe-area-inset-top) 12px 0;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px 40px; align-items: center;
  background: linear-gradient(rgba(5,6,26,.6), transparent); pointer-events: none;
}
.topbar > * { pointer-events: auto; }
html[data-view="live"] .topbar { display: none; }
html[data-view="explore"] .topbar { display: none; }
.scope-tabs { grid-column: 2; display: flex; justify-content: center; gap: 20px; }
.scope-tabs button { font-weight: 700; font-size: 16px; color: var(--muted); padding: 8px 2px; position: relative; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.scope-tabs button[aria-selected="true"] { color: var(--fg); }
.scope-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--electric), var(--starlight), var(--nebula)); box-shadow: 0 0 8px rgba(255,231,163,.6); }
.live-entry { justify-self: start; font-weight: 800; font-size: 13px; letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.8); position: relative; }
.live-entry.has-live { border-color: var(--accent); background: var(--accent); animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 6px rgba(176, 92, 255, 0); } 0% { box-shadow: 0 0 0 0 rgba(176, 92, 255, .6); } }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; }
.mute-toggle { justify-self: end; }
.profile-search { justify-self: end; grid-column: 4; }
.mute-toggle svg { font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
html[data-muted] .mute-toggle .i-sound, html:not([data-muted]) .mute-toggle .i-muted { display: none; }
.bottombar {
  position: fixed; z-index: 20; inset: auto 0 0; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: linear-gradient(180deg, rgba(9,11,40,.94), rgba(4,5,18,.98)); border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 rgba(155,92,255,.12), 0 -12px 30px rgba(61,139,255,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-btn { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); padding: 6px 0; }
.nav-btn svg { font-size: 24px; }
.nav-btn[aria-current] { color: var(--fg); }
.nav-btn[aria-current] svg { color: var(--starlight); filter: drop-shadow(0 0 6px rgba(255,231,163,.55)); }
/* Center slot: a planet/globe with a clear plus sign */
.create-orb { position: relative; width: 46px; height: 46px; margin-top: -10px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.9);
  background: radial-gradient(circle at 32% 28%, #7fc4ff 0%, var(--electric) 28%, var(--nebula) 62%, var(--nebula-deep) 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 16px rgba(155,92,255,.6), 0 0 28px rgba(61,139,255,.35), inset -6px -8px 14px rgba(10,4,40,.55);
  transition: transform .18s var(--ease); }
.create-orb::after { content: ""; position: absolute; inset: -5px -9px; border-radius: 50%; border: 1.5px solid rgba(255,231,163,.55); transform: rotate(-22deg) scaleY(.38); pointer-events: none; }
.create-orb .create-globe { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.create-orb .create-plus { position: relative; font-size: 22px; color: #fff; filter: drop-shadow(0 0 3px rgba(7,10,36,.9)) drop-shadow(0 0 6px rgba(255,255,255,.5)); }
.nav-btn.create:active .create-orb { transform: scale(.92); }

/* ---- Milky Way atmosphere & watermark ------------------------------------------------------------------------ */
.cosmos-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("../galaxy-starfield.svg") 0 0 / 480px 560px repeat,
    radial-gradient(60% 40% at 15% 20%, rgba(155,92,255,.22), transparent 70%),
    radial-gradient(55% 35% at 85% 70%, rgba(61,139,255,.18), transparent 70%),
    radial-gradient(120% 30% at 50% 50%, rgba(255,231,163,.05), transparent 70%); }
/* Signature wordmark resting in the background, above the nav */
.cosmos-bg::after { content: "Milky Way"; position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + 22px); text-align: center;
  font: italic 400 clamp(26px, 8vw, 40px)/1 Georgia, "Times New Roman", serif; letter-spacing: .14em; color: rgba(214, 200, 255, .1);
  text-shadow: 0 0 24px rgba(155, 92, 255, .25); }
.brand-mark { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 3px); transform: translateX(-50%); pointer-events: none;
  font: 600 8.5px/1 Georgia, "Times New Roman", serif; letter-spacing: .48em; text-transform: uppercase; white-space: nowrap; padding-left: .48em;
  background: linear-gradient(90deg, #b9d8ff, var(--starlight) 50%, #d7b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .62;
  text-shadow: none; }
.scope-tabs { margin-top: 9px; }
/* Faint watermark in empty, loading and sheet spaces */
.sheet { isolation: isolate; }
.empty-card::before, .live-empty::before { content: ""; display: block; width: 74px; aspect-ratio: 1; margin: 0 auto 4px;
  background: url("../brand/milkyway-watermark-galaxy.webp") center / contain no-repeat; opacity: .5; filter: drop-shadow(0 0 14px rgba(155,92,255,.45)); }
.live-empty { align-content: center; justify-items: center; gap: 10px; display: grid; }
.sheet::after { content: ""; position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 64px; aspect-ratio: 1; z-index: -1; pointer-events: none;
  background: url("../brand/milkyway-watermark-galaxy.webp") center / contain no-repeat; opacity: .06; }

/* Universal MilkyWay watermark on every post, video, audio and LIVE view (display overlay; originals stay untouched). */
.mw-mark { position: absolute; z-index: 2; width: clamp(46px, 15vw, 64px); aspect-ratio: 1; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none;
  opacity: .55; filter: drop-shadow(0 1px 3px rgba(0, 10, 40, .55)); }
.mw-mark--post { left: 12px; top: calc(var(--top-h) + 10px); }
.mw-mark--live { left: 12px; top: calc(env(safe-area-inset-top) + 64px); width: clamp(42px, 13vw, 56px); }
[data-low-end] .mw-mark { filter: none; }

.net-banner { position: fixed; z-index: 30; top: calc(var(--top-h) + 4px); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px;
  background: rgba(13,15,46,.92); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }

/* ---- Views + virtual pager ---------------------------------------------------------------------------------- */
.view { position: fixed; inset: 0 0 var(--nav-h) 0; overflow: hidden; }
.vp { position: relative; height: 100%; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; contain: strict; }
.vp-track { position: absolute; inset: 0; will-change: transform; }
.vp-slide { position: absolute; inset: 0 auto auto 0; width: 100%; height: 100%; contain: strict; overflow: hidden; background: var(--void); }
@media (min-aspect-ratio: 4/5) {
  .feed-pager, .live-pager { width: min(100%, calc((100dvh - var(--nav-h)) * 9 / 16)); margin: 0 auto; }
}
.feed-pager, .live-pager { height: 100%; }
.feed-status, .live-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.explore-view { overflow-y: auto; overscroll-behavior: contain; padding: calc(env(safe-area-inset-top) + 22px) 14px calc(var(--nav-h) + 20px); background:
  radial-gradient(75% 34% at 0% 0%, rgba(155,92,255,.16), transparent 100%),
  radial-gradient(65% 30% at 100% 20%, rgba(61,139,255,.13), transparent 100%); }
.explore-scroll { display: grid; gap: 16px; width: min(100%, 820px); margin: 0 auto; }
.explore-heading { display: flex; align-items: end; justify-content: space-between; min-height: 48px; }
.explore-heading h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.03em; }
.explore-eyebrow { color: var(--starlight); font-size: 9px; font-weight: 800; letter-spacing: .24em; opacity: .8; }
.explore-search { width: 100%; min-height: 46px; border-radius: 15px; border: 1px solid var(--line); background: rgba(15,17,50,.88); color: var(--fg); padding: 0 14px; }
.explore-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tab { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.explore-tab[aria-selected="true"] { color: var(--fg); border-color: rgba(176,92,255,.65); background: linear-gradient(120deg, rgba(155,92,255,.24), rgba(61,139,255,.18)); box-shadow: 0 0 16px rgba(155,92,255,.13); }
.explore-section-title { margin: 5px 0 10px; font-size: 15px; letter-spacing: .01em; }
.explore-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.explore-tag { display: grid; gap: 2px; min-width: 90px; padding: 10px 12px; text-align: left; border: 1px solid rgba(160,150,255,.2); border-radius: 13px; background: linear-gradient(135deg, rgba(28,21,70,.85), rgba(13,20,55,.8)); }
.explore-tag b { color: #d7b8ff; }
.explore-tag small { color: var(--muted); font-size: 10px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.explore-post { position: relative; display: grid; place-items: center; aspect-ratio: .78; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #21164c, #0d1d46 70%, #251646); text-align: left; }
.explore-post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explore-post.is-text { padding: 12px; background: url("../galaxy-starfield.svg") 0 0 / 300px 350px, radial-gradient(90% 60% at 25% 15%, rgba(155,92,255,.45), transparent 75%), linear-gradient(160deg, #120a3d, #071024); }
.explore-post.is-video-fallback { background: radial-gradient(65% 45% at 50% 42%, rgba(91,74,158,.38), transparent 76%), linear-gradient(145deg, #17132d, #0a1020 70%, #171126); }
.explore-post.is-video::after { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(5,8,18,.48); box-shadow: 0 2px 12px rgba(0,0,0,.35); animation: explore-video-pulse 2.4s ease-in-out infinite; }
.explore-post.is-video::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-35%,-50%); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid rgba(255,255,255,.92); pointer-events: none; }
@keyframes explore-video-pulse { 50% { box-shadow: 0 0 18px rgba(155,92,255,.45); } }
@media (prefers-reduced-motion: reduce) { .explore-post.is-video::after { animation: none; } }
.explore-post.is-image-fallback { background: linear-gradient(145deg, #17132d, #0a1020 70%, #171126); }
.explore-post.is-text > span:first-of-type { position: relative; z-index: 1; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 5; -webkit-box-orient: vertical; font-size: 13px; font-weight: 650; text-shadow: 0 1px 5px rgba(0,0,0,.8); overflow-wrap: anywhere; }
.explore-post-author { position: absolute; z-index: 2; inset: 6px auto auto 6px; max-width: calc(100% - 12px); padding: 4px 6px; overflow: hidden; border-radius: 6px; background: rgba(5,8,18,.68); color: #fff; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.explore-post-caption { position: absolute; z-index: 2; inset: auto 0 0; padding: 24px 7px 7px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 10px; line-height: 1.25; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.explore-person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.explore-person > span:last-child { display: grid; gap: 3px; }
.explore-person small { font-size: 12px; }
.explore-sound { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.explore-sound p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.explore-sound audio { width: 100%; height: 38px; }
.explore-sound .link { justify-self: start; color: #d7b8ff; font-weight: 650; }
.explore-message { padding: 24px 10px; }

/* ---- Feed slide --------------------------------------------------------------------------------------------- */
.media { position: absolute; inset: 0; display: grid; place-items: center; background: var(--void); }
/* Media is pinned to the slide box: a large photo can never grow the grid row and render cropped or off-screen. */
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--void); }
.media img { cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.media-missing { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(50% 40% at 50% 45%, rgba(61,139,255,.12), transparent 100%), var(--void); }
.media-missing-icon { width: 68px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(214,200,255,.18); border-radius: 50%; color: rgba(214,200,255,.68); background: rgba(13,15,46,.7); box-shadow: 0 0 28px rgba(61,139,255,.12); }
.media-missing-icon svg { width: 28px; height: 28px; fill: currentColor; }
.media .text-card { position: absolute; inset: 0; }
.slide[data-fit="cover"] .media video, .slide[data-fit="cover"] .media img { object-fit: cover; }
.text-card { padding: 32px 28px; font-size: clamp(20px, 5.4vw, 30px); font-weight: 700; line-height: 1.25; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere;
  width: 100%; height: 100%; display: grid; place-items: center; background: url("../galaxy-starfield.svg") 0 0 / 480px 560px, radial-gradient(90% 60% at 25% 15%, rgba(155,92,255,.55) 0%, transparent 60%), radial-gradient(80% 60% at 85% 85%, rgba(61,139,255,.4) 0%, transparent 60%), linear-gradient(160deg, #120a3d 0%, var(--midnight) 50%, var(--void) 100%); }
.paused-badge { position: absolute; font-size: 72px; opacity: .8; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.shade { position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; }
/* Right-hand action rail: compact so it sits clear of the caption and never crowds small phones. */
.rail { position: absolute; right: 6px; bottom: 14px; display: grid; justify-items: center; gap: 10px; z-index: 2; }
.rail-author { position: relative; margin-bottom: 6px; cursor: pointer; }
.rail-author .avatar { --s: 40px; }
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--galaxy), #1d1546); font-weight: 700; font-size: calc(var(--s) * .42); color: #fff; border: 1.5px solid #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-plus { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); font-size: 12px; }
.rail-btn { display: grid; justify-items: center; gap: 2px; min-width: 40px; padding: 0; font-size: 11px; line-height: 1.1; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.rail-icon { width: 34px; height: 34px; display: grid; place-items: center; font-size: 27px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); transition: transform .18s var(--ease); }
@media (max-height: 700px), (max-width: 360px) {
  .rail { gap: 7px; bottom: 10px; }
  .rail-author .avatar { --s: 36px; }
  .rail-icon { width: 30px; height: 30px; font-size: 24px; }
  .rail-btn { font-size: 10.5px; }
}
.rail-btn:active .rail-icon { transform: scale(.86); }
.rail-btn.rail-like.on .rail-icon { color: var(--accent); animation: pop .32s var(--ease); }
.rail-btn.rail-save.on .rail-icon { color: var(--starlight); }
.rail-btn b:empty { display: none; }
@keyframes pop { 40% { transform: scale(1.28); } }
.meta { position: absolute; left: 12px; right: 62px; bottom: 16px; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.meta-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.meta-caption { margin: 0; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; cursor: pointer; }
.meta-caption.open { -webkit-line-clamp: 12; }
.progress { position: absolute; inset: auto 0 0; height: 2px; background: rgba(255,255,255,.18); }
.progress i { display: block; height: 100%; background: rgba(255,255,255,.85); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s linear; }
.slide:not([data-type="video"]) .progress { display: none; }
.burst { position: absolute; z-index: 3; font-size: 96px; color: var(--accent); pointer-events: none; transform: translate(-50%, -50%) rotate(var(--r)); animation: burst .8s var(--ease) forwards; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--r)) scale(.4); } 18% { opacity: 1; transform: translate(-50%,-50%) rotate(var(--r)) scale(1.15); }
  60% { opacity: 1; transform: translate(-50%,-60%) rotate(var(--r)) scale(1); } 100% { opacity: 0; transform: translate(-50%,-140%) rotate(var(--r)) scale(1.3); } }
.sound-hint { position: absolute; z-index: 5; top: calc(var(--top-h) + 8px); left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; font-size: 12.5px;
  background: rgba(0,0,0,.55); pointer-events: none; opacity: 0; transition: opacity .3s; }
.feed-view.is-muted .sound-hint { opacity: 1; animation: hintOut 5s 1 forwards; }
@keyframes hintOut { 80% { opacity: 1; } 100% { opacity: 0; } }

.skeleton-slide { position: absolute; inset: 0; background: linear-gradient(110deg, #070a24 30%, #141a4a 50%, #070a24 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-slide i, .skeleton-slide b, .skeleton-slide span { position: absolute; display: block; background: #1b2058; border-radius: 8px; }
.skeleton-slide i { right: 12px; bottom: 120px; width: 44px; height: 220px; border-radius: 22px; }
.skeleton-slide b { left: 12px; bottom: 52px; width: 40%; height: 16px; }
.skeleton-slide span { left: 12px; bottom: 24px; width: 65%; height: 14px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty-card { display: grid; gap: 14px; justify-items: center; color: var(--muted); }

.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 99px; font-weight: 700; background: rgba(255,255,255,.14); text-decoration: none; }
.pill-btn.hot { background: linear-gradient(135deg, var(--nebula), var(--electric)); box-shadow: var(--glow); }
.pill-btn.wide { width: 100%; padding: 13px; }
.pill-btn:disabled { opacity: .55; }

/* ---- LIVE --------------------------------------------------------------------------------------------------- */
.live-view { background: transparent; inset: 0 0 var(--nav-h) 0; }
/* Keep the controls low while clearing the device navigation inset, including Android WebViews that need the
   Capacitor-provided --safe-area-inset-bottom fallback. */
.live-slide {
  --live-sys-inset: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --live-lift: calc(4px + max(0px, var(--safe-area-inset-bottom, 0px) - env(safe-area-inset-bottom, 0px)));
}
.live-slide.host-stage { --live-lift: calc(4px + var(--live-sys-inset)); }
.live-slide { background: url("../galaxy-starfield.svg") 0 0 / 480px 560px, radial-gradient(120% 70% at 50% 0%, #2d1a78 0%, var(--midnight) 55%, var(--void) 100%); }
.live-audio { position: fixed; left: -2px; bottom: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.live-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; }
.live-cover-title { margin: 0; font-weight: 700; max-width: 80%; text-align: center; }
.live-badge, .live-tag { background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; }
.live-host-background { position: absolute; z-index: 0; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #2d1a78, var(--midnight)); }
.live-host-background img, .live-host-background video { display: block; width: 100%; height: 100%; object-fit: cover; }
.live-stage { position: absolute; inset: 0; }
.live-host-cell > .live-cover, .live-host-cell > .live-stage { z-index: 1; }
.live-stage .live-track { width: 100%; height: 100%; object-fit: cover; }
.live-track.mirror { transform: scaleX(-1); }
.live-guests { position: absolute; right: 10px; top: calc(80px + env(safe-area-inset-top)); display: grid; gap: 8px; z-index: 2; }
.live-guests .live-track { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.live-top { position: absolute; z-index: 3; inset: env(safe-area-inset-top) 0 auto; padding: 10px; display: flex; align-items: center; gap: 8px; }
.live-host { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border-radius: 99px; background: rgba(0,0,0,.35); max-width: 62%; cursor: pointer; }
.live-host > div { display: grid; min-width: 0; }
.live-host-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-tag { justify-self: start; font-size: 9px; padding: 1px 4px; }
.live-follow { background: var(--accent); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; }
.live-viewers { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.35); font-size: 12.5px; }
.live-close { font-size: 22px; background: rgba(0,0,0,.35); width: 34px; height: 34px; }
.host-stage .live-close { width: auto; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--accent); }
.live-comments { position: absolute; z-index: 2; left: 10px; right: 30%; bottom: calc(56px + var(--live-lift)); max-height: 34%; overflow-y: auto; display: grid; align-content: end; gap: 6px;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); touch-action: pan-y; }
.live-comments::-webkit-scrollbar { display: none; }
.live-comments p { margin: 0; justify-self: start; padding: 5px 10px; border-radius: 14px; background: rgba(0,0,0,.32); font-size: 13.5px; overflow-wrap: anywhere; animation: rise .22s var(--ease); }
.live-comments p b { color: #c9bfff; font-weight: 700; }
.live-comments p.mine b { color: var(--accent-2); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.live-hearts { position: absolute; z-index: 2; right: 18px; bottom: calc(60px + var(--live-lift)); width: 60px; height: 50%; pointer-events: none; }
.float-heart { position: absolute; bottom: 0; left: 18px; font-size: 28px; color: hsl(var(--hue) 95% 62%); animation: float var(--d) ease-out forwards; }
@keyframes float { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 15% { opacity: 1; transform: translate(0, -20px) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--x), -260px) scale(.8); } }
.live-gift-banner { position: absolute; z-index: 3; left: 10px; bottom: 45%; pointer-events: none; }
.gift-card { display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 99px; background: linear-gradient(90deg, rgba(155,92,255,.92), rgba(61,139,255,.78)); box-shadow: var(--glow);
  animation: giftIn .35s var(--ease); transition: opacity .25s, transform .25s; }
.gift-card.out { opacity: 0; transform: translateX(-20px); }
.gift-card-icon { font-size: 30px; width: 40px; height: 40px; display: grid; place-items: center; animation: giftPop .6s var(--ease); }
.gift-card small { display: block; font-size: 11.5px; opacity: .9; }
@keyframes giftIn { from { opacity: 0; transform: translateX(-60px); } }
@keyframes giftPop { 50% { transform: scale(1.5) rotate(-8deg); } }
.live-state { position: absolute; z-index: 4; left: 50%; top: 68%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 99px; background: rgba(0,0,0,.6); font-weight: 600; text-align: center; }
.live-bar { position: absolute; z-index: 3; inset: auto 0 0; padding: 10px 10px var(--live-lift); display: flex; gap: 8px; align-items: center; }
.live-form { flex: 1; min-width: 0; }
.live-input { width: 100%; height: 40px; border-radius: 99px; border: 0; padding: 0 16px; font: inherit; color: #fff; background: rgba(255,255,255,.16); outline: none; }
.live-input::placeholder { color: rgba(255,255,255,.65); }
.live-bar .icon-btn { background: rgba(0,0,0,.3); }
.live-bar .icon-btn.gift { color: #ffc93c; box-shadow: inset 0 0 0 1px rgba(255,201,60,.32); }
.live-bar .icon-btn.like { color: var(--accent); }
.live-bar .icon-btn.off { color: var(--accent); opacity: .7; }
.go-live-fab { position: absolute; z-index: 5; right: 12px; top: calc(56px + env(safe-area-inset-top)); }
.host-stage { position: fixed; inset: 0; z-index: 40; }
.live-state:has(> button) { background: none; padding: 0; }

/* ---- LIVE host controls, guests and moderation ---------------------------------------------------------------- */
.live-guests { grid-auto-flow: row; max-height: calc(100% - 230px); overflow-y: auto; scrollbar-width: none; }
.live-guest { position: relative; width: 96px; height: 128px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #2d1a78, var(--midnight)); display: grid; place-items: center; cursor: pointer; }
.live-guest-slot { border-style: dashed; border-color: rgba(255,255,255,.42); color: rgba(255,255,255,.86); background: rgba(17,12,52,.52); }
.live-slot-plus { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 25px; line-height: 1; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-slot-plus { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.live-guest .live-track { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.live-guest.has-video:not(.cam-off) .live-guest-avatar { visibility: hidden; }
.live-guest.cam-off .live-track { visibility: hidden; }
.live-guest-name { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.live-guest-mic { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; font-size: 13px; color: #ff6b8b; }
.audio-live .live-guests { left: 10px; right: 10px; top: calc(170px + env(safe-area-inset-top)); grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.audio-live .live-guest { width: auto; height: 96px; }
.audio-live .live-video-only { display: none; }

.live-tools { position: absolute; z-index: 3; right: 10px; bottom: calc(60px + var(--live-lift)); display: none; flex-direction: column; gap: 10px; }
.host-stage .live-tools, .live-slide.on-stage .live-tools { display: flex; }
.live-tools .icon-btn { background: rgba(0,0,0,.38); }
.live-tools .icon-btn.off { color: #ff6b8b; }
.live-tools .icon-btn.leave { color: #ff6b8b; }
.live-tools .icon-btn.locked { color: #ff6b8b; opacity: .7; box-shadow: inset 0 0 0 1.5px rgba(255,107,139,.6); }
/* Host-only controls on each guest box: mute / allow mic, back to audience, remove from LIVE. */
.live-guest-tools { position: absolute; z-index: 2; top: 4px; left: 4px; display: flex; gap: 4px; }
.live-guest-btn { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff; }
.live-guest-btn svg { width: 14px; height: 14px; fill: currentColor; }
.live-guest-btn.off, .live-guest-btn.danger { color: #ff6b8b; }
.live-guest-btn.armed { background: #ff3b5c; color: #fff; }
.live-guest-btn:disabled { opacity: .5; }
.live-guest:has(.live-guest-tools) .live-guest-mic { top: auto; bottom: 22px; }
.host-stage .live-hearts, .live-slide.on-stage .live-hearts { right: 64px; }
.host-stage .live-guests, .live-slide.on-stage .live-guests { right: 60px; }
.audio-live.host-stage .live-guests, .audio-live.on-stage .live-guests { right: 60px; }

.live-bar .icon-btn.has-badge { position: relative; }
.live-badge-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b6b; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.live-bar .stage-btn { color: var(--accent-2); }
.live-bar .stage-btn.pending { color: #ffc93c; animation: livePulse 1.6s ease-in-out infinite; }

/* ---- LIVE multi-guest grid (TikTok-style): host alone = full screen; with guests the stage splits into tiles ---- */
.live-grid { position: absolute; inset: 0; display: grid; grid-template: 1fr / 1fr; gap: 3px; transition: top .25s var(--ease), height .25s var(--ease); }
.live-host-cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.live-cell-name { display: none; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) {
  inset: auto 4px auto 4px; top: var(--grid-top); }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-guests { display: contents; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-host-cell,
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-guest {
  width: auto; height: auto; min-height: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(120% 90% at 50% 0%, #2d1a78, var(--midnight)); animation: tileIn .28s var(--ease); }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-cell-name,
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-guest-name {
  display: block; position: absolute; z-index: 1; left: 6px; right: auto; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 99px;
  background: rgba(0,0,0,.45); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-cover { gap: 6px; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-cover-avatar { transform: scale(.6); }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-cover-title,
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-cover .live-badge { display: none; }
/* Grid height per head count lives on the slide, so comments and the pinned comment can start right below the grid.
   Every template has exactly enough cells for its tiles (host spans included), so no tile spills into a hidden row. */
.live-slide { --grid-top: calc(60px + env(safe-area-inset-top)); --grid-h: 58%; }
.live-slide[data-tiles="2"] { --grid-h: min(52%, 68vw); }
.live-slide[data-tiles="3"] { --grid-h: min(58%, 92vw); }
.live-slide[data-tiles="4"] { --grid-h: min(58%, 100vw); }
.live-slide[data-tiles="5"], .live-slide[data-tiles="6"] { --grid-h: min(56%, 90vw); }
.live-slide[data-tiles="7"], .live-slide[data-tiles="8"], .live-slide[data-tiles="9"] { --grid-h: min(60%, 100vw); }
.live-slide[data-tiles="10"] { --grid-h: 60%; }
/* Always leave room for at least a few comments and the bottom bar under the grid. */
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) { height: min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift))); }
.live-grid[data-tiles="2"] { grid-template: 1fr / 1fr 1fr; }
.live-grid[data-tiles="3"] { grid-template: 1fr 1fr / 1fr 1fr; }
.live-grid[data-tiles="3"] .live-host-cell { grid-row: span 2; }
.live-grid[data-tiles="4"] { grid-template: 1fr 1fr / 1fr 1fr; }
.live-grid[data-tiles="5"] { grid-template: 1fr 1fr / repeat(3, 1fr); }
.live-grid[data-tiles="5"] .live-host-cell { grid-row: span 2; }
.live-grid[data-tiles="6"] { grid-template: 1fr 1fr / repeat(3, 1fr); }
.live-grid[data-tiles="7"] { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.live-grid[data-tiles="7"] .live-host-cell { grid-column: span 3; }
.live-grid[data-tiles="8"] { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.live-grid[data-tiles="8"] .live-host-cell { grid-column: span 2; }
.live-grid[data-tiles="9"] { grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.live-grid[data-tiles="10"] { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); }
.live-grid[data-tiles="10"] .live-host-cell { grid-column: span 2; grid-row: span 2; }
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-stage .live-track,
.live-slide:not(.audio-live) .live-grid:not([data-tiles="1"]) .live-guest .live-track { object-fit: cover; object-position: 50% 30%; }
/* Featured layout reserves one large host window and a vertical rail for up to eight guest seats. */
.live-slide .live-grid[data-layout="featured"]:not([data-tiles="1"]) {
  inset: auto 4px auto; top: var(--grid-top);
  height: min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift)));
  grid-template-columns: minmax(0, 2.2fr) minmax(52px, .8fr);
  grid-template-rows: repeat(var(--side-tiles, 4), minmax(0, 1fr));
}
.live-slide .live-grid[data-layout="featured"] .live-guests { display: contents; }
.live-slide .live-grid[data-layout="featured"] .live-host-cell { grid-column: 1; grid-row: 1 / -1; width: auto; height: auto; min-height: 0; }
.live-slide .live-grid[data-layout="featured"] .live-guest {
  grid-column: 2; width: auto; height: auto; min-width: 0; min-height: 0;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
}
.live-slide.has-host-background .live-host-cell .live-stage .live-track {
  position: absolute; left: 12%; top: 8%; width: 76%; height: 84%;
  border-radius: 14px; object-fit: cover; box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
/* With guests: comments fill the space between the grid and the bottom bar, never over the tiles. */
.live-slide.has-guests:not(.audio-live) .live-comments {
  top: calc(var(--grid-top) + min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift))) + 8px); max-height: none; }
.live-slide.has-guests:not(.audio-live) .live-pinned {
  top: calc(var(--grid-top) + min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift))) + 6px); bottom: auto; right: 10px; }
.live-slide.has-guests:not(.audio-live):has(.live-pinned:not([hidden])) .live-comments {
  top: calc(var(--grid-top) + min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift))) + 50px); }
.live-slide.has-guests:not(.audio-live) .live-gift-banner { bottom: auto; top: calc(var(--grid-top) + min(var(--grid-h), calc(100% - var(--grid-top) - 200px - var(--live-lift))) + 8px); }
.live-slide.has-guests:not(.audio-live) .mw-mark--live { opacity: .5; }
/* Stream controls turn into a row above the bar so the column never covers the bottom-right tile. */
.live-slide.has-guests:not(.audio-live) .live-tools { bottom: calc(52px + var(--live-lift)); flex-direction: row; right: 10px; gap: 8px; }
.live-slide.has-guests:not(.audio-live):is(.host-stage, .on-stage) .live-comments { bottom: calc(102px + var(--live-lift)); }
@keyframes tileIn { from { opacity: 0; transform: scale(.94); } }

/* Viewer: labelled "Request to join" pill, always in the bottom bar */
.live-join-btn { flex: 0 1 auto; min-width: 40px; height: 40px; display: inline-flex; align-items: center; gap: 6px; max-width: 46%;
  padding: 0 12px 0 10px; border-radius: 99px; font: inherit; font-size: 13px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--nebula), var(--electric)); box-shadow: var(--glow); border: 1px solid rgba(255,255,255,.25); }
.live-join-btn[hidden] { display: none; }
.live-join-btn .stage-icon { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.live-join-btn .stage-icon svg { width: 18px; height: 18px; fill: currentColor; }
.live-join-btn .stage-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-join-btn.pending { background: rgba(0,0,0,.55); color: #ffc93c; border-color: rgba(255,201,60,.55); animation: livePulse 1.6s ease-in-out infinite; }
.live-join-btn.invited { animation: livePulse 1.6s ease-in-out infinite; }
.live-join-btn.closed { background: rgba(0,0,0,.45); box-shadow: none; opacity: .75; }
.live-join-btn:disabled { opacity: .6; }
.live-join-btn:active { transform: scale(.97); }
.live-slide.can-request .live-form { flex: 1 1 90px; }
@media (max-width: 380px) {
  .live-join-btn { padding: 0 10px; font-size: 12px; }
  .live-slide.can-request .live-bar { gap: 6px; }
}
@media (max-width: 340px) { .live-join-btn .stage-label { display: none; } }

/* Host: real-time guest request panel */
.live-requests { position: absolute; z-index: 4; left: 10px; top: calc(64px + env(safe-area-inset-top)); width: min(300px, calc(100% - 84px));
  display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(20,14,60,.8); border: 1px solid rgba(176,92,255,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.35); animation: rise .22s var(--ease); }
.live-slide:has(.live-pinned:not([hidden])):not(.has-guests) .live-requests { top: calc(118px + env(safe-area-inset-top)); }
.live-requests-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.live-requests-head > span { width: 16px; height: 16px; color: var(--accent-2); display: grid; place-items: center; }
.live-requests-head svg { width: 16px; height: 16px; fill: currentColor; }
.live-requests-head small { margin-left: auto; opacity: .75; font-weight: 700; }
.live-request { display: flex; align-items: center; gap: 8px; min-width: 0; }
.live-request-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-req-btn { flex: none; height: 30px; border-radius: 99px; font: inherit; font-size: 12.5px; font-weight: 800; color: #fff; cursor: pointer; display: grid; place-items: center; }
.live-req-btn.approve { padding: 0 12px; background: linear-gradient(135deg, var(--nebula), var(--electric)); }
.live-req-btn.reject { width: 30px; background: rgba(255,255,255,.14); }
.live-req-btn.reject svg { width: 14px; height: 14px; fill: currentColor; }
.live-req-btn:disabled { opacity: .5; }
.live-requests-more { justify-self: start; font: inherit; font-size: 12px; font-weight: 700; color: var(--accent-2); padding: 2px 4px; cursor: pointer; }
.live-input:disabled { opacity: .6; }
button.live-viewers { color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }

.live-pinned { position: absolute; z-index: 3; left: 10px; right: 30%; top: calc(66px + env(safe-area-inset-top)); display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 10px; border-radius: 12px; background: rgba(20,14,60,.72); border: 1px solid rgba(176,92,255,.45); font-size: 13px; overflow-wrap: anywhere; backdrop-filter: blur(6px); }
.live-pinned > span:first-child { flex: none; font-size: 15px; color: #ffc93c; }
.live-pinned b { color: #c9bfff; flex: none; }
.live-unpin { margin-left: auto; flex: none; width: 22px; height: 22px; display: grid; place-items: center; font-size: 14px; border-radius: 50%; background: rgba(255,255,255,.12); }
.live-slide .mw-mark--live { top: calc(env(safe-area-inset-top) + 120px); }
.live-comments p.tappable { cursor: pointer; }
.live-comments p.tappable:active { background: rgba(176,92,255,.35); }

.lc-sheet .sheet-body { padding: 0 14px calc(16px + env(safe-area-inset-bottom)); }
.lc-section { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.lc-section:first-child { border-top: 0; padding-top: 0; }
.lc-section h3, .lc-label { margin: 0; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.lc-note { margin: 0; font-size: 13px; color: rgba(255,255,255,.58); }
.lc-person { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.lc-person.tappable { cursor: pointer; border-radius: 10px; padding: 2px 4px; margin: 0 -4px; }
.lc-person.tappable:hover { background: rgba(255,255,255,.05); }
.lc-person-name { flex: 1; min-width: 0; display: grid; }
.lc-person-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-person-name small { font-size: 11.5px; color: rgba(255,255,255,.55); }
.lc-person-actions { display: flex; gap: 6px; flex: none; align-items: center; }
.lc-person-actions .pill-btn, .lc-actions .pill-btn { padding: 7px 12px; font-size: 13px; }
.lc-more { width: 34px; height: 34px; font-size: 18px; background: rgba(255,255,255,.08); }
.lc-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(176,92,255,.25); color: #e3d4ff; }
.pill-btn.danger { background: rgba(255,59,107,.18); color: #ff8aa6; }
.pill-btn.danger.armed { background: #ff3b6b; color: #fff; }
.lc-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; cursor: pointer; }
.lc-switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.18); position: relative; transition: background .2s; cursor: pointer; }
.lc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lc-switch:checked { background: var(--accent); }
.lc-switch:checked::after { transform: translateX(18px); }
.lc-seg-3 { grid-template-columns: repeat(3, 1fr); }
.lc-seg-5 { grid-template-columns: repeat(5, 1fr); }
.lc-seg span { padding: 9px 4px; font-size: 13px; }
.lc-stepper { display: flex; align-items: center; gap: 16px; }
.lc-stepper .icon-btn { background: rgba(255,255,255,.1); font-size: 20px; font-weight: 700; }
.lc-stepper .icon-btn:disabled { opacity: .35; }
.lc-stepper b { font-size: 18px; min-width: 40px; text-align: center; }
.lc-inline { display: flex; gap: 8px; }
.lc-inline .field { flex: 1; min-width: 0; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border-radius: 99px; background: rgba(176,92,255,.2); border: 1px solid rgba(176,92,255,.4); font-size: 13px; }
.lc-chip span { font-size: 13px; display: grid; }
.lc-list { display: grid; gap: 4px; margin-top: 4px; }
.lc-person-head { display: grid; justify-items: center; gap: 6px; padding-bottom: 6px; }
.lc-quote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.05); border-radius: 0 10px 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.lc-actions { display: grid; gap: 8px; }
.lc-actions .pill-btn { width: 100%; padding: 12px; font-size: 14px; }
.lc-invite-text { margin: 0 0 6px; text-align: center; font-size: 15px; }

/* ---- Sheets, forms, toast ------------------------------------------------------------------------------------ */
.sheet-layer { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3,4,13,.62); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; inset: auto 0 0; max-height: 75dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 40%); border-radius: 16px 16px 0 0; border-top: 1px solid rgba(155,92,255,.35); box-shadow: 0 -10px 40px rgba(91,33,182,.25);
  padding: 0 14px calc(14px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .22s var(--ease); }
.sheet-layer.open .sheet-backdrop { opacity: 1; }
.sheet-layer.open .sheet { transform: none; }
@media (min-width: 720px) { .sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; } }
.sheet-grip { height: 22px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.share-sheet { max-height: min(70dvh, 520px); padding: 0 16px calc(18px + env(safe-area-inset-bottom)); }
.share-sheet .sheet-body { gap: 12px; }
.share-description { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.share-url { width: 100%; min-width: 0; font-size: 15px; }
.share-sheet button[hidden] { display: none; }
@media (min-width: 720px) { .sheet.share-sheet { left: 50%; right: auto; width: min(520px, calc(100vw - 32px)); margin-left: -260px; } }
.share-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.share-option { min-width: 0; min-height: 76px; display: grid; justify-items: center; align-content: center; gap: 6px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); color: inherit; text-decoration: none; }
.share-option:active { transform: scale(.97); }
.share-option-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--share-color, #6d68d8); color: #fff; font-size: 16px; font-weight: 800; }
.share-option-name { font-size: 12px; font-weight: 650; }
.share-option--whatsapp { --share-color: #198f50; }
.share-option--facebook { --share-color: #1877f2; }
.share-option--telegram { --share-color: #168fc4; }
.share-option--x { --share-color: #111; }
.share-option--sms { --share-color: #497c64; }
.sheet-grip::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.sheet-title { margin: 0 0 10px; font-size: 15px; text-align: center; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.stack { display: grid; gap: 12px; }
.field { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: #fff; padding: 0 14px; font: inherit; }
.link { color: var(--accent-2); text-decoration: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.segmented input:checked + span { border-color: var(--accent); background: rgba(155,92,255,.18); }
.comment-list { display: grid; gap: 14px; min-height: 30dvh; align-content: start; }
.comment { display: flex; gap: 10px; }
.comment p { margin: 2px 0; overflow-wrap: anywhere; }
.comment b { font-size: 13px; color: var(--muted); }
.comment.pending { opacity: .6; }
.comment-form { position: sticky; bottom: 0; display: flex; gap: 8px; padding-top: 8px; background: var(--panel); }
.gift-head { display: flex; justify-content: space-between; align-items: center; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.gift-item { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid transparent; transition: transform .15s; }
.gift-item:active { transform: scale(.94); }
.gift-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gift-item.sent { border-color: var(--accent); }
.gift-send { margin-top: 12px; }
.gift-icon { font-size: 30px; }
.gift-item small { font-size: 11px; text-align: center; line-height: 1.15; }
.gift-item em { font-style: normal; font-size: 11px; color: #ffc93c; }
.chat-list { display: grid; }
.chat-row { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 2px; text-decoration: none; border-bottom: 1px solid var(--line); }
.chat-text { flex: 1; min-width: 0; display: grid; }
.chat-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.chat-row.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--accent); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 10px; background: rgba(13,15,46,.95); border: 1px solid var(--line); box-shadow: var(--glow); font-size: 14px; max-width: 90vw; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 40px; text-align: center; }

/* ---- Device tiers -------------------------------------------------------------------------------------------- */
html[data-low-end] .rail-icon, html[data-low-end] .paused-badge { filter: none; }
html[data-low-end] .skeleton-slide { animation: none; }
html[data-low-end] .bottombar { backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-low-end] .create-orb, html[data-low-end] .gift-card, html[data-low-end] .toast { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Profile + composer ----------------------------------------------------------------------------------- */
.profile { display: grid; gap: 12px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-names { display: grid; gap: 2px; min-width: 0; }
.profile-names b { font-size: 18px; overflow-wrap: anywhere; }
.profile-bio { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 12.5px; color: var(--muted); }
.profile-stats b { display: block; font-size: 17px; color: var(--fg); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-actions .pill-btn { flex: 1; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.profile-grid > p { grid-column: 1 / -1; }
.profile-tile { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--panel-2); }
.profile-tile img, .profile-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-tile.text { display: grid; place-items: center; padding: 8px; background: linear-gradient(160deg, #120a3d, var(--midnight)); }
.profile-tile.text p { margin: 0; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.field.area { height: auto; min-height: 88px; padding: 10px 14px; resize: vertical; }
.compose-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; align-items: start; }
.compose-count { grid-column: 1 / -1; }
.compose-photo { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.compose-photo img, .compose-photo video { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; background: var(--void); }
.compose-photo-index { position: absolute; top: 5px; left: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.7); font-size: 11px; font-weight: 800; }
.compose-assist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.compose-assist .field { min-width: 0; }
.compose-audio-preview { display: flex; align-items: center; gap: 8px; min-width: 0; }
.compose-audio-preview audio { flex: 1; min-width: 0; max-width: 100%; height: 38px; }
.compose-preview img, .compose-preview video { width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; background: var(--void); }
.compose-preview .compose-photo img, .compose-preview .compose-photo video { max-height: none; object-fit: cover; }

/* ---- Profile grid tiles + post detail popup ------------------------------------------------------------------ */
.profile-tile { position: relative; cursor: pointer; outline: none; }
.profile-tile:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.profile-tile:active { opacity: .85; }
.profile-tile video { pointer-events: none; background: var(--void); }
.profile-tile .tile-badge { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 18px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); pointer-events: none; }
.profile-tile.missing { display: grid; place-items: center; }
.tile-missing { font-size: 26px; opacity: .45; }
.tile-more { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; font-weight: 800;
  background: rgba(0,0,0,.5); color: #fff; }
.pv-layer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: rgba(3,4,13,.97); outline: none; opacity: 0; transition: opacity .18s; }
.pv-layer.open { opacity: 1; }
.pv-frame { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.pv-media { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; touch-action: pan-y; }
/* Photos and videos fill the popup and scale to fit (never cropped, never larger than the screen). */
.pv-media img, .pv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.pv-media img { cursor: zoom-in; }
.pv-image { backface-visibility: hidden; will-change: transform, opacity; }
.pv-image-fade { animation: pvFade .3s ease both; }
.pv-image-zoom { animation: pvZoom .4s ease both; }
.pv-image-cinema { animation: pvCinema .35s ease both; }
.pv-image-slide { animation: pvSlide .32s cubic-bezier(.22,.7,.25,1) both; }
.pv-image-page { transform-origin: left center; animation: pvPageTurn .52s cubic-bezier(.2,.72,.24,1) both; }
@keyframes pvFade { from { opacity: .25; } to { opacity: 1; } }
@keyframes pvZoom { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes pvCinema { from { opacity: .4; transform: scale(1.015); } to { opacity: 1; transform: scale(1); } }
@keyframes pvSlide { from { opacity: .55; transform: translate3d(5%,0,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes pvPageTurn { from { opacity: .7; transform: rotateY(-72deg); } to { opacity: 1; transform: rotateY(0); } }
.pv-image-prev, .pv-image-next { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; background: rgba(0,0,0,.55); font-size: 27px; }
.pv-image-prev { left: 10px; }
.pv-image-next { right: 10px; }
.pv-image-prev:disabled, .pv-image-next:disabled { opacity: .35; }
.pv-image-count { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.68); font-size: 12px; }
.pv-slideshow-play { position: absolute; z-index: 3; right: 10px; bottom: 10px; padding: 7px 10px; font-size: 12px; background: rgba(0,0,0,.68); }
.pv-sound { display: grid; gap: 3px; }
.pv-sound:empty { display: none; }
.pv-sound audio { width: 100%; height: 38px; }
.slideshow-badge { position: absolute; z-index: 2; top: calc(env(safe-area-inset-top) + 10px); right: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(0,0,0,.62); font-size: 13px; }
.pv-media.loading::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--accent); animation: pvSpin .8s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }
.pv-media.zoomed { display: block; overflow: auto; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.pv-media.zoomed img { position: static; width: auto; height: auto; max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.pv-text { padding: 32px 28px; max-width: 560px; font-size: clamp(20px, 5.4vw, 28px); font-weight: 700; line-height: 1.3; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-close { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 10px); right: 10px; background: rgba(0,0,0,.45); }
.pv-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); font-size: 30px; line-height: 1; }
.pv-prev { left: 8px; }
.pv-next { right: 8px; }
.pv-layer .mw-mark { left: 12px; top: calc(env(safe-area-inset-top) + 12px); }
.pv-info { flex: none; display: grid; gap: 6px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); max-height: 38dvh; overflow-y: auto; border-top: 1px solid var(--line); background: var(--panel); }
.pv-caption { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pv-actions { display: flex; align-items: center; gap: 14px; }
.pv-act { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pv-act span { width: 24px; height: 24px; display: grid; place-items: center; font-size: 22px; }
.pv-act.on span { color: var(--accent); }
.pv-delete { margin-left: auto; padding: 8px 14px; font-size: 13px; }

/* ---- LIVE guest seats 1–8 ------------------------------------------------------------------------------------- */
.lc-seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lc-seat { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 84px; padding: 8px 4px; border-radius: 12px;
  background: var(--panel-2); border: 1px dashed rgba(255,255,255,.18); font-size: 12px; }
.lc-seat small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.7); }
.lc-seat.taken { border-style: solid; border-color: rgba(176,92,255,.55); background: rgba(176,92,255,.16); }
.lc-seat.locked { opacity: .55; }
.lc-seat-n { position: absolute; top: 4px; left: 6px; font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.55); }
.lc-seat-icon { font-size: 20px; line-height: 1; }
.lc-seat-mic { position: absolute; top: 4px; right: 6px; font-size: 13px; color: #ff6b8b; }
.live-state .live-retry { margin-left: 6px; padding: 5px 12px; font-size: 13px; }

/* ---- Online status ----------------------------------------------------------------------------------------- */
.presence-avatar { position: relative; display: inline-flex; flex: none; }
.presence-dot { position: absolute; right: 2%; bottom: 2%; width: 26%; min-width: 10px; max-width: 16px; aspect-ratio: 1; border-radius: 50%; background: #2bd67b; border: 2px solid var(--panel); box-shadow: 0 0 8px rgba(43,214,123,.7); transform: scale(0); transition: transform .2s var(--ease); }
.presence-avatar.online .presence-dot, .presence-dot.live { transform: none; }
.presence-dot.live { position: static; display: inline-block; width: 9px; min-width: 9px; border-width: 0; }
.presence-label { color: #2bd67b; font-weight: 600; }

/* ---- Nova menu & settings -------------------------------------------------------------------------------- */
.nova-sheet { max-height: 88dvh; }
.nova-menu { display: grid; gap: 6px; padding-bottom: 6px; }
.nova-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(155,92,255,.22), rgba(61,139,255,.14)); border: 1px solid var(--line); }
.nova-card .online-self .presence-dot { transform: none; }
.nova-card-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nova-card-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nova-online { justify-self: start; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--muted); }
.nova-online.on { background: rgba(43,214,123,.16); color: #2bd67b; }
.nova-active { display: flex; align-items: center; gap: 6px; font-size: 12px; text-align: right; }
.nova-section { margin: 12px 2px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nova-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: start; }
.nova-row:active { background: rgba(255,255,255,.1); }
.nova-row-icon { font-size: 20px; width: 26px; text-align: center; }
.nova-row-label { flex: 1; font-weight: 600; }
.nova-row-detail { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nova-row-go { color: var(--muted); font-size: 18px; }
[dir="rtl"] .nova-row-go svg { transform: scaleX(-1); }
.nova-toggle { padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.nova-toggle > span { display: grid; gap: 2px; }
.nova-back { justify-self: start; padding: 4px 0; font-weight: 600; }
.nova-seg { grid-template-columns: repeat(3, 1fr); }
.nova-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nova-stats.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .nova-stats.four { grid-template-columns: repeat(4, 1fr); } }
.nova-stats > div { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.nova-big { font-size: 22px; font-weight: 800; }
.nova-inline { display: flex; gap: 8px; }
.nova-inline .field { flex: 1; min-width: 0; }
.play-topups { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.play-topups > .nova-section { margin: 0; }
.play-topup-list { display: grid; gap: 8px; }
.play-topup-option { min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); text-align: left; }
.play-topup-option:disabled { opacity: .6; }
.play-topup-coins { font-weight: 700; }
.play-topup-price { color: var(--muted); font-weight: 650; }
.nova-list { display: grid; }
.nova-list-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.nova-list-row .gift-icon, .nova-kind { font-size: 24px; width: 32px; text-align: center; }
.nova-coins { font-style: normal; color: #ffc93c; font-weight: 700; }
.nova-likes { font-style: normal; display: inline-flex; align-items: center; gap: 4px; color: #ff6b9a; }
.nova-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nova-lang { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: start; }
.nova-lang.current { border-color: var(--accent); background: rgba(155,92,255,.18); }
.nova-signout { margin-top: 14px; }
.mw-studio-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel-2) 76%, transparent); }
.mw-studio-tabs button { min-height: 38px; padding: 6px 4px; border-radius: 10px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.15; }
.mw-studio-tabs button[aria-pressed="true"] { color: var(--fg); background: linear-gradient(135deg, rgba(61,139,255,.25), rgba(155,92,255,.28)); box-shadow: inset 0 0 0 1px rgba(176,92,255,.28); }
.mw-studio-hero { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 14px; overflow: hidden; border: 1px solid rgba(155,92,255,.26); border-radius: 18px; background: radial-gradient(120% 150% at 100% 0%, rgba(61,139,255,.2), transparent 60%), linear-gradient(135deg, rgba(155,92,255,.16), rgba(13,15,46,.78)); }
.mw-studio-mark { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 15px; color: #fff; font-size: 24px; background: linear-gradient(145deg, #5ca9ff, #9b5cff 68%, #e8adff); box-shadow: 0 8px 26px rgba(155,92,255,.3); }
.mw-studio-hero > div { min-width: 90px; flex: 1 1 90px; }
.mw-studio-refresh { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; color: var(--fg); font-size: 22px; }
.mw-studio-hero h2, .mw-studio-section-head h3 { margin: 0; font-size: 18px; }
.mw-studio-hero p { margin: 3px 0 0; font-size: 12px; }
.mw-studio-eyebrow { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.mw-studio-wallet { margin-inline-start: auto; flex: 0 0 auto; padding: 8px 10px; font-size: 11px; }
.mw-studio-content { display: grid; gap: 12px; padding-bottom: 12px; }
.mw-studio-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mw-studio-stat { min-width: 0; display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, color-mix(in srgb, var(--panel-2) 90%, transparent), color-mix(in srgb, var(--panel) 90%, transparent)); }
.mw-studio-stat small { color: var(--muted); font-size: 11px; }
.mw-studio-stat b { overflow-wrap: anywhere; font-size: 21px; }
.mw-studio-stat > span { font-size: 10px; }
.mw-studio-note, .mw-studio-panel { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel) 88%, transparent); }
.mw-studio-note p, .mw-studio-panel > p { margin: 5px 0 0; font-size: 12px; }
.mw-studio-actions, .mw-studio-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mw-studio-actions .pill-btn, .mw-studio-section-head .pill-btn { flex: 1 1 auto; }
.mw-studio-section-head h3 { margin-bottom: 3px; }
.mw-studio-section-head p { margin: 0; font-size: 12px; }
.mw-studio-post-list, .mw-studio-service-list, .mw-studio-inquiry-list { display: grid; gap: 8px; }
.mw-studio-post, .mw-studio-service-card, .mw-studio-inquiry { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--panel) 86%, transparent); }
.mw-studio-post { display: flex; align-items: center; gap: 10px; }
.mw-studio-post-copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.mw-studio-post-copy b { overflow-wrap: anywhere; font-size: 13px; }
.mw-studio-post-copy small { font-size: 11px; }
.mw-studio-post-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.mw-studio-post-actions .pill-btn { padding: 7px 9px; font-size: 11px; }
.mw-studio-live-indicator { display: grid; min-width: 38px; height: 26px; place-items: center; border-radius: 8px; color: var(--muted); background: var(--panel-2); font-size: 10px; font-weight: 800; }
.mw-studio-live-indicator.active { color: #fff; background: #e34570; }
.mw-studio-session-room { max-width: 105px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.mw-studio-panel { display: grid; gap: 10px; }
.mw-studio-panel h4, .mw-studio-service-card h4 { margin: 3px 0; font-size: 15px; }
.mw-studio-service-card p { margin: 5px 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mw-studio-service-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mw-studio-service-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mw-studio-price { display: inline-block; margin-top: 5px; color: var(--starlight); font-size: 12px; }
.mw-studio-service-form { display: grid; gap: 9px; }
.mw-studio-inquiry { display: grid; gap: 9px; }
.mw-studio-inquiry > p { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mw-studio-inquiry-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mw-studio-inquiry-head > div { display: grid; gap: 3px; }
.mw-studio-inquiry-head small { font-size: 11px; }
.mw-studio-inquiry-head select { width: auto; min-width: 112px; padding: 7px; }
.mw-profile-services { display: grid; gap: 10px; margin: 12px 0; }
.mw-profile-scheduled { position: absolute; inset: auto 5px 5px; padding: 4px; border-radius: 6px; color: #fff; background: rgba(91,33,182,.88); font-size: 9px; font-weight: 750; text-align: center; }
.mw-profile-services h3 { margin: 0; font-size: 15px; }
.mw-studio-service-request { display: grid; gap: 8px; flex: 1 1 100%; }
@media (max-width: 420px) {
  .mw-studio-tabs button { font-size: 10px; }
  .mw-studio-hero { flex-wrap: wrap; }
  .mw-studio-wallet { margin-inline-start: 56px; }
  .mw-studio-post { flex-wrap: wrap; }
  .mw-studio-post-actions { width: 100%; justify-content: flex-start; }
}
.nova-menu-btn svg { font-size: 16px; }

/* ---- Messages ---------------------------------------------------------------------------------------------- */
.inbox-sheet { max-height: 88dvh; }
.inbox-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox-active { margin: 0; font-size: 13px; }
.inbox-tools .pill-btn { padding: 8px 14px; font-size: 14px; }
.chat-row { text-align: start; }
.chat-sheet { height: 92dvh; max-height: 92dvh; }
.chat-sheet .sheet-body { flex: 1; gap: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-head .icon-btn { font-size: 20px; flex: none; }
.chat-head .icon-btn:hover { background: rgba(255,255,255,.08); }
[dir="rtl"] .chat-head .icon-btn:first-child svg { transform: scaleX(-1); }
.chat-who { flex: 1; min-width: 0; display: grid; }
.chat-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-call { color: var(--accent-2); }
.msg-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 12px 2px; }
.msg-empty { margin: auto; }
.msg { align-self: flex-start; max-width: 78%; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--panel-2); border: 1px solid var(--line); }
.msg.mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, var(--nebula-deep), var(--electric)); border-color: transparent; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; margin-top: 2px; font-size: 11px; opacity: .7; text-align: end; }
.msg.pending { opacity: .6; }
.msg.failed { border-color: #ff3b6b; }
.msg-form { display: flex; align-items: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.msg-input { flex: 1; height: auto; min-height: 44px; max-height: 120px; padding: 11px 14px; resize: none; line-height: 1.35; }
.msg-send { flex: none; height: 44px; }

/* ---- Calls --------------------------------------------------------------------------------------------------- */
.call-layer { position: fixed; inset: 0; z-index: 85; display: grid; grid-template-rows: 1fr auto; justify-items: center; background: radial-gradient(120% 80% at 50% 10%, #1b1660 0%, var(--bg) 60%, var(--void) 100%); opacity: 0; transition: opacity .25s; padding: env(safe-area-inset-top) 0 calc(28px + env(safe-area-inset-bottom)); }
.call-layer.open { opacity: 1; }
.call-layer.closing { opacity: .0; transition-delay: 1s; }
.call-remote { position: absolute; inset: 0; overflow: hidden; }
.call-remote video { width: 100%; height: 100%; object-fit: cover; }
.call-local { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 28vw; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); z-index: 2; }
.call-local:empty, .call-layer[data-mode="audio"] .call-local { display: none; }
.call-local video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.call-info { position: relative; z-index: 1; align-self: center; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 20px; }
.call-layer.has-video[data-state="connected"] .call-info { align-self: start; margin-top: calc(18px + env(safe-area-inset-top)); }
.call-layer.has-video[data-state="connected"] .call-info .avatar { display: none; }
.call-name { font-size: 24px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.call-status { color: var(--muted); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.call-error { max-width: min(440px, calc(100vw - 40px)); margin: 0; color: #ffd1db; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; text-shadow: 0 1px 6px rgba(0,0,0,.65); }
.call-retry { min-height: 40px; padding: 8px 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); }
.call-retry[hidden] { display: none; }
.call-layer[data-state="ringing"] .call-info .avatar, .call-layer[data-state="incoming"] .call-info .avatar { animation: call-pulse 1.6s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(155,92,255,.6); } 100% { box-shadow: 0 0 0 28px rgba(155,92,255,0); } }
.call-controls, .call-answer { position: relative; z-index: 1; display: flex; gap: 18px; justify-content: center; }
.call-layer[data-state="incoming"] .call-controls { display: none; }
.call-layer:not([data-state="incoming"]) .call-answer { display: none; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.call-btn.off { background: #fff; color: #111; }
.call-btn.end { background: #ff3b6b; color: #fff; }
.call-btn.end svg { transform: rotate(0deg); }
.call-btn.accept { background: #2bd67b; color: #fff; animation: call-pulse 1.4s ease-out infinite; }
html[data-low-end] .call-btn { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .call-btn.accept, .call-layer .avatar { animation: none !important; } }

/* Language picker on the sign-in sheet (guests can switch language before logging in). */
.auth-lang { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.auth-lang .field { flex: 1; min-height: 40px; }
.sheet.auth-sheet { max-height: min(88dvh, 760px); padding: 0 18px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
.auth-sheet .sheet-grip { height: 24px; flex: none; }
.auth-sheet .sheet-title { margin: 0 0 16px; font-size: 20px; font-weight: 750; }
.auth-sheet .sheet-body { gap: 12px; }
.auth-form { gap: 12px; padding: 0 2px; }
.auth-form .field { height: 44px; min-height: 44px; border-radius: 12px; }
.auth-field-wrap { min-width: 0; }
.auth-password-field { position: relative; min-width: 0; }
.auth-password-field .field { padding-right: 50px; }
.auth-password-toggle { position: absolute; inset: 0 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-submit { min-height: 48px; height: 48px; padding: 0 18px !important; border-radius: 12px; font-size: 15px; }
.auth-message { min-height: 0; margin: 0; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.auth-forgot { justify-self: end; padding: 0 2px; font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth-divider span { height: 1px; flex: 1; background: var(--line); }
.auth-divider b { font-weight: 500; }
.auth-google { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.055); font-weight: 650; }
.auth-google:disabled { opacity: .55; }
.auth-google-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; font-family: Arial, sans-serif; }
.auth-switch { padding: 2px 0; }
.auth-sheet .sheet-body > .auth-language-button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 4px; border-top: 1px solid var(--line); color: var(--muted); text-align: left; }
.auth-language-button > span:nth-child(2) { flex: 1; color: var(--fg); }
.auth-language-chevron { font-size: 18px; }
.sheet.language-sheet { max-height: min(70dvh, 560px); padding: 0 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
.language-sheet .sheet-title { margin: 0 0 14px; font-size: 18px; }
.language-options { gap: 6px; }
.language-option { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.045); text-align: left; }
.language-option[aria-pressed="true"] { border-color: rgba(155,92,255,.48); background: rgba(155,92,255,.16); color: #fff; }
.language-option-check { color: var(--accent-2); font-weight: 750; }
@media (min-width: 720px) {
  .sheet.auth-sheet { left: 50%; right: auto; width: min(440px, calc(100vw - 32px)); margin-left: -220px; border-radius: 22px; }
  .sheet.language-sheet { left: 50%; right: auto; width: min(420px, calc(100vw - 32px)); margin-left: -210px; border-radius: 22px; }
}

/* Go LIVE setup: a small TikTok-style bottom card. Each row is its own block in a single-column stack (head row,
   Video/Audio pills, guest chips, comment chips, Start) so nothing shares a line or overlaps. Heights are pinned with
   min/max-height too, so global button rules (e.g. a 44px min-height) can't inflate chips into their neighbours. */
.go-live-sheet { max-width: 380px; margin: 0 auto; max-height: calc(100dvh - 24px); padding: 0 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
@media (min-width: 720px) { .sheet.go-live-sheet { left: 50%; right: auto; width: 380px; margin-left: -190px; } }
.go-live-sheet .sheet-grip { height: 14px; flex: none; }
.go-live-sheet .sheet-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); }
.go-live-sheet .sheet-body { gap: 0; overflow-x: hidden; }
.go-live-sheet::after { display: none; }
.gl-form { display: flex; flex-direction: column; gap: 12px; flex: none; width: 100%; min-width: 0; margin: 0; }
.gl-form > * { position: relative; flex: none; min-width: 0; margin: 0; }
.gl-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.gl-head .avatar { flex: none; }
.go-live-sheet .gl-title { flex: 1 1 auto; width: auto; min-width: 0; height: 36px; min-height: 36px; margin: 0; padding: 0 14px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); color: inherit; font: inherit; font-size: 14px; font-weight: 600; outline: none; }
.go-live-sheet .gl-title:focus { border-color: rgba(254,44,85,.6); }
.gl-title::placeholder { color: rgba(255,255,255,.45); font-weight: 500; }
.gl-mode-row { display: flex; justify-content: center; width: 100%; }
.gl-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.07); }
.gl-group { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.gl-label { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.5); }
.gl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.go-live-sheet .gl-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 32px; min-height: 32px; max-height: 32px;
  margin: 0; padding: 0 6px; border-radius: 8px; font-size: 11.5px; font-weight: 700; line-height: 1.1; color: rgba(255,255,255,.65); background: rgba(255,255,255,.06);
  border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.go-live-sheet .gl-modes .gl-chip { height: 30px; min-height: 30px; max-height: 30px; padding: 0 12px; border-radius: 99px; }
.gl-chip > span { display: inline-flex; flex: none; }
.gl-chip svg { width: 14px; height: 14px; flex: none; fill: currentColor; }
.go-live-sheet .gl-chip.on { color: #fff; background: rgba(254,44,85,.16); border-color: rgba(254,44,85,.7); }
.go-live-sheet .gl-modes .gl-chip.on { background: #fff; color: #111; border-color: transparent; }
.gl-chip:active { transform: scale(.97); }
.gl-actions { width: 100%; padding-top: 4px; z-index: 1; }
.go-live-sheet .gl-start { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; min-height: 44px;
  margin: 0; padding: 0 20px; border-radius: 99px; font-size: 15px; font-weight: 800; line-height: 1; color: #fff; pointer-events: auto;
  background: linear-gradient(90deg, #fe2c55, #ff5e8a 50%, #8b5cf6); box-shadow: 0 4px 14px rgba(254,44,85,.3); }
.gl-start:active { transform: scale(.98); filter: brightness(.95); }
.gl-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: livePulse 1.6s ease-in-out infinite; }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .go-live-sheet :is(.gl-title, .gl-modes, .gl-chip) { background: rgba(0,0,0,.05); }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .go-live-sheet .gl-title { border-color: rgba(0,0,0,.12); }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .gl-title::placeholder { color: rgba(0,0,0,.4); }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .go-live-sheet :is(.gl-chip, .gl-label) { color: rgba(0,0,0,.6); }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .go-live-sheet .gl-chip.on { color: #c0103a; background: rgba(254,44,85,.1); }
html:is([data-mw-tone="light"],[data-mw-appearance="light"],[data-mw-appearance="sunlight"]) .go-live-sheet .gl-modes .gl-chip.on { background: #111; color: #fff; }

/* Wallet onboarding (phone number + account name before the wallet / gift coins). */
.wallet-setup-sheet { max-width: 440px; margin: 0 auto; }
.ws-form { display: grid; gap: 12px; }
.ws-intro { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(212,175,55,.12); font-size: 13px; line-height: 1.4; }
.ws-intro p { margin: 0; }
.ws-icon { font-size: 22px; flex: none; }
.ws-field { display: grid; gap: 5px; font-size: 12.5px; font-weight: 700; }
.ws-req { font-style: normal; color: #fe2c55; margin-left: 3px; }
.ws-note:empty { display: none; }

/* Who is online now (Nova menu). */
.nova-active { cursor: pointer; }
.nova-online-list .presence-avatar { flex: none; }

/* Owner admin panel. */
.admin-sheet .sheet-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.admin-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 4px 0; }
.admin-tabs button { padding: 8px 4px; border-radius: 10px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.admin-tabs button.on { background: var(--accent); color: #fff; }
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.admin-stats div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; gap: 2px; }
.admin-stats b { font-size: 22px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-row .chat-text { flex: 1; min-width: 0; }
.admin-row .chat-text b, .admin-row .chat-text span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row .pill-btn { flex: none; padding: 6px 12px; font-size: 12.5px; }
.admin-pill { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: rgba(255,255,255,.1); }
.admin-pill.bad { background: #b42318; }
.nova-admin-btn { background: linear-gradient(90deg, #d4af37, #f59e0b) !important; color: #1a1205 !important; font-weight: 800; }
/* Prominent gold Admin dashboard card at the top of the owner's Nova menu. */
.nova-admin-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: linear-gradient(120deg, #f7d774, #d4af37 45%, #f59e0b) !important; box-shadow: 0 6px 20px rgba(212,175,55,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.nova-admin-card:active { transform: scale(.99); }
.nova-admin-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; font-size: 20px; background: rgba(26,18,5,.14); }
.nova-admin-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nova-admin-text b { font-size: 15px; }
.nova-admin-text small { font-size: 11.5px; font-weight: 600; opacity: .75; }
.nova-admin-go svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Feed: sponsored slides and "Suggested for you" (woven between posts). */
.slide[data-kind] .rail, .slide[data-kind] .progress { display: none; }
.slide[data-kind="ad"] .meta { right: 12px; }
.ad-bar { margin-top: 10px; display: grid; gap: 8px; }
.ad-line { display: flex; align-items: center; justify-content: space-between; }
.ad-tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.22); }
.ad-hide { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.35); font-size: 13px; }
.ad-cta { height: 42px; border-radius: 8px; font-weight: 800; font-size: 14.5px; color: #fff; background: linear-gradient(90deg, #ff2d6f, #b05cff); text-align: left; padding: 0 14px; }
.slide[data-kind="suggest"] .meta { display: none; }
.suggest-card { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 80% at 50% 0%, rgba(176,92,255,.28), transparent 60%), var(--panel, #0b0a1f); }
.suggest-title { font-size: 18px; text-align: center; }
.suggest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; width: 100%; margin: 0 auto; }
.suggest-person { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: rgba(255,255,255,.06); text-align: center; min-width: 0; }
.suggest-person b, .suggest-person small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-person .pill-btn { margin-top: 6px; padding: 6px 18px; font-size: 13px; }
.suggest-face { border-radius: 50%; }
@media (min-width: 600px) { .suggest-grid { grid-template-columns: repeat(3, 1fr); } }
