/* ==========================================================================
   SultryCall — design system v2 ("Midnight")
   Loaded after app.css. It replaces the look (tokens, type, surfaces, every
   shared component) and adds the layouts app.css never had: a real desktop
   shell with a sidebar, wide pages, a split call screen, centred dialogs.

   Principles
   - One ink background, three flat surface steps, hairline borders. No murky
     translucent layers; colour is reserved for actions and status.
   - One accent (rose → ember) for the primary action on a screen. Gold = coins,
     mint = live / positive, red = destructive. Nothing else gets colour.
   - Arabic-first type (Readex Pro covers Arabic + Latin in one family).
   - Phone: content, bottom tabs. ≥1024px: sidebar + roomy content, hover and
     keyboard friendly. The camera is always the biggest thing on screen.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0b0a10;
  --s1: #13111a;
  --s2: #1b1825;
  --s3: #262232;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* legacy names used all over app.css → mapped onto the new palette */
  --wine-900: var(--bg);
  --wine-850: var(--s1);
  --wine-800: var(--s1);
  --wine-700: var(--s2);
  --wine-600: var(--s3);

  /* colour roles */
  --rose: #ff4f79;
  --rose-deep: #e23a65;
  --ember: #ff8552;
  --gold: #ffc65c;
  --gold-deep: #eda83a;
  --mint: #3fe0a5;
  --danger: #ff5c5c;
  --violet: #8b7bff;
  --on-hot: #1d0711;

  --text: #f5f2f8;
  --muted: #b4adc1;
  --faint: #847c93;

  --grad-hot: linear-gradient(135deg, #ff4f79 0%, #ff8552 100%);
  --grad-gold: linear-gradient(135deg, #ffd684 0%, #eda83a 100%);
  --glow-rose: 0 12px 30px -12px rgba(255, 79, 121, 0.65);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, 0.55);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --shell-max: 640px;
  --tabbar-h: 64px;
  --side-w: 264px;
  --content-max: 760px;

  --ff: "Readex Pro", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-display: var(--ff);
}

html { color-scheme: dark; }
body {
  font-family: var(--ff);
  background:
    radial-gradient(900px 520px at 85% -12%, rgba(139, 123, 255, 0.10), transparent 62%),
    radial-gradient(760px 460px at -5% -8%, rgba(255, 79, 121, 0.09), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(255, 79, 121, 0.35); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
strong, b { font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.85rem; }
.wordmark, .display { font-family: var(--ff); font-style: normal; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 1023.98px) { .desk-only { display: none !important; } }

/* ---------- shell (phone / tablet) ---------- */
#app { background: none; max-width: var(--shell-max); }
@media (min-width: 540px) { #app { box-shadow: none; border-inline: 1px solid var(--line); } }

.topbar {
  min-height: 60px; padding: 10px 16px; gap: 10px;
  background: rgba(11, 10, 16, 0.84); background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
.topbar .title { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--text); }
.brand-mark img { width: 28px; height: 28px; border-radius: 8px; }
.coin-pill { height: 38px; padding: 0 13px; gap: 7px; background: rgba(255, 198, 92, 0.09); border-color: rgba(255, 198, 92, 0.26); font-weight: 600; font-variant-numeric: tabular-nums; }
.bell-btn { width: 38px; height: 38px; background: var(--s2); border-color: var(--line); color: var(--text); margin: 0; }
.bell-btn svg { width: 19px; height: 19px; }
.bell-nb { background: var(--rose); border: 2px solid var(--bg); font-weight: 700; top: -5px; inset-inline-end: -5px; }

.tabbar {
  background: rgba(11, 10, 16, 0.90); background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid var(--line);
}
.tabbar a { color: var(--faint); font-size: 0.66rem; font-weight: 500; gap: 4px; }
.tabbar a svg { width: 23px; height: 23px; stroke-width: 1.9; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--rose); }
.tabbar a.on::before { top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; box-shadow: none; }
.tabbar .nb { background: var(--rose); border: 2px solid var(--bg); min-width: 18px; height: 18px; font-weight: 700; top: 6px; }
.tabbar.no-mobile { display: none; }
.scroll { padding-bottom: calc(var(--tabbar-h) + 24px); }
.pad { padding: 18px 16px 84px; }

/* ---------- buttons ---------- */
.btn {
  border-radius: 14px; padding: 12px 18px; font-weight: 600; font-size: 0.95rem; line-height: 1.3;
  background: var(--s2); color: var(--text); border: 1px solid var(--line-strong);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:active { transform: scale(0.975); }
.btn-hot { background: var(--grad-hot); color: var(--on-hot); border: 0; font-weight: 700; box-shadow: var(--glow-rose); }
.btn-gold { background: var(--grad-gold); color: #2b1900; border: 0; font-weight: 700; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-danger { background: rgba(255, 92, 92, 0.1); color: #ff9a9a; border-color: rgba(255, 92, 92, 0.28); }
.btn-lg { padding: 15px 22px; font-size: 1rem; border-radius: 16px; }
.btn-sm { padding: 8px 13px; font-size: 0.84rem; border-radius: 11px; }
@media (hover: hover) {
  .btn:hover { background: var(--s3); }
  .btn-hot:hover { background: var(--grad-hot); filter: brightness(1.07); }
  .btn-gold:hover { background: var(--grad-gold); filter: brightness(1.05); }
  .btn-ghost:hover { background: var(--s2); color: var(--text); }
  .btn-danger:hover { background: rgba(255, 92, 92, 0.16); }
}
.addfriend-btn { background: var(--grad-hot); color: var(--on-hot); font-weight: 700; padding: 8px 14px; }

/* ---------- forms ---------- */
.field label { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.input, textarea.input, select.input { background: var(--s2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; }
.input:focus { border-color: var(--rose); background: var(--s2); box-shadow: 0 0 0 4px rgba(255, 79, 121, 0.14); }
.seg { gap: 6px; }
.seg button { border-radius: 12px; background: var(--s2); border-color: var(--line-strong); font-weight: 600; }
.seg button.on { color: var(--on-hot); }
.wheel { background: var(--s2); }

/* ---------- surfaces ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.avatar { background: var(--s3); }
.badge { font-weight: 600; }
.badge-online { background: rgba(63, 224, 165, 0.14); }
.chip { background: var(--s2); border: 1px solid var(--line); padding: 7px 13px; font-weight: 500; border-radius: 999px; color: var(--text); }
.chip.on { background: var(--grad-hot); color: var(--on-hot); font-weight: 600; }
.divider { background: var(--line); }
.warn-box { background: rgba(255, 198, 92, 0.08); border-color: rgba(255, 198, 92, 0.26); color: #ffe0a3; border-radius: 14px; }
.list-item { padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background .15s; }
.conv { transition: background .15s; }
.stat { background: var(--s1); border-radius: 16px; transition: border-color .15s, background .15s; }
.stat .v { font-weight: 700; }
.empty { padding: 56px 20px; color: var(--muted); }
.empty .ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; background: var(--s2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 2rem; }
.spinner { border-color: var(--s3); border-top-color: var(--rose); }
@media (hover: hover) {
  .list-item[style*="cursor"]:hover, .conv:hover, .room-card:hover, .notif-row:hover { background: rgba(255, 255, 255, 0.035); }
  .stat:hover, .pkg:hover, .person:hover { border-color: var(--line-strong); }
  .person:hover img { transform: scale(1.03); }
}

/* people grid (explore) */
.grid { gap: 12px; }
.person { border-radius: 20px; background: var(--s2); }
.person img { transition: transform .35s ease; }
.person .rate { background: rgba(11, 10, 16, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; }

/* wallet */
.pkg { background: var(--s1); border-color: var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .15s, transform .12s; }
.pkg.feat { border-color: rgba(255, 198, 92, 0.55); background: linear-gradient(135deg, rgba(255, 198, 92, 0.1), rgba(255, 79, 121, 0.05)); }
.pkg:active { transform: scale(0.985); }
.pkg-grid { display: grid; gap: 10px; }

/* messages */
.bub.me, .lobby-row.mine .lobby-bubble { background: linear-gradient(135deg, #ff4f79, #ff7a59); color: #fff; }
.bub.them, .lobby-bubble { background: var(--s2); }
.composer { background: rgba(11, 10, 16, 0.92); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); padding: 10px 12px; }
.composer .chat-ta { border-radius: 18px; }

/* rooms list */
.room-card { background: var(--s1); border-radius: 16px; padding: 14px; transition: background .15s, border-color .15s; }

/* ---------- overlays ---------- */
.toast { background: var(--s3); border: 1px solid var(--line-strong); border-radius: 14px; padding: 11px 16px; font-weight: 500; font-size: 0.92rem; box-shadow: var(--shadow-pop); }
.sheet-backdrop { background: rgba(5, 4, 9, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.sheet {
  background: var(--s1); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0)); box-shadow: var(--shadow-pop);
  animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1);
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet h3 { font-size: 1.1rem; margin-bottom: 14px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.incoming, .push-modal { background: rgba(5, 4, 9, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.incoming .box { background: var(--s1); border: 1px solid var(--line-strong); border-radius: 28px; padding: 28px 24px; width: min(92vw, 380px); box-shadow: var(--shadow-pop); animation: popIn .25s ease; }
.push-card { background: var(--s1); border-color: var(--line-strong); border-radius: 24px; }
.push-prompt { background: var(--s2); border-color: var(--line-strong); border-radius: 18px; }
.gift-tray { background: var(--s1); border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; }
.gift { background: var(--s2); border-color: var(--line); border-radius: 14px; transition: transform .12s, border-color .15s; }
.gift:active { transform: scale(0.95); }
.support-fab { background: var(--s2); border: 1px solid var(--line-strong); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); opacity: 1; }
.next-flash { background: var(--s2); border-color: var(--line-strong); }

/* ---------- home ---------- */
.home-fill { gap: 10px; padding: 10px 12px 12px; }
.home-cols { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.home-rail { display: contents; }
.home-chips { order: -1; }
.rail-card { display: none; }
.promo-chip { background: var(--s2); border-color: var(--line); font-weight: 500; padding: 8px 13px; }
.promo-chip.gold { background: var(--grad-gold); color: #2b1900; font-weight: 700; }
.promo-chip.hot { border-color: rgba(255, 79, 121, 0.5); color: #ffb9c9; }
.guest-bar { background: var(--s1); border-color: var(--line-strong); }
.home-stage { border-radius: var(--r-xl); background: radial-gradient(120% 90% at 50% 20%, #221c2e, #0e0c14); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.5); }
.mode-seg { background: rgba(11, 10, 16, 0.6); border-color: rgba(255, 255, 255, 0.14); }
.mode-seg button { font-weight: 600; }
.mode-seg button.on { color: var(--on-hot); font-weight: 700; }
.stage-chip { background: rgba(11, 10, 16, 0.62); font-weight: 600; }
.callbtn { color: var(--on-hot); font-weight: 700; }
.callbtn.home-cta { width: 108px; height: 108px; font-size: 1.08rem; box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.13), 0 16px 36px rgba(255, 79, 121, 0.5); animation: ctaBreath 2.6s ease-in-out infinite; }
.callbtn.home-cta span { font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
@keyframes ctaBreath { 0%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.13), 0 16px 36px rgba(255, 79, 121, 0.5); } 50% { box-shadow: 0 0 0 13px rgba(255, 255, 255, 0.07), 0 16px 44px rgba(255, 79, 121, 0.62); } }
.callbtn.home-cta.busy { box-shadow: none; animation: none; background: rgba(11, 10, 16, 0.72); }
@media (prefers-reduced-motion: reduce) { .callbtn.home-cta { animation: none; } }
.gchip { background: var(--s2); border-color: var(--line-strong); border-radius: 14px; font-weight: 600; }
.gchip.on { color: var(--on-hot); }
.cfilter { background: var(--s2); border-color: var(--line-strong); border-radius: 14px; font-weight: 500; }
.duo-bottom-wrap .duo-panel { background: rgba(19, 17, 26, 0.86); border-color: var(--line-strong); padding: 14px; }
.tag { background: var(--s2); border-color: var(--line-strong); font-weight: 500; }
.tag.on { color: var(--on-hot); font-weight: 600; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--s3); border: 1px solid var(--line-strong); border-bottom-width: 2px; font-size: 0.74rem; font-weight: 600; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--text); }

/* ---------- call screen (shared) ---------- */
.callscreen { background: var(--bg); --dock: 108px; display: block; }
.callscreen.quick { --dock: 174px; }
.call-stage { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #000; }
.call-stage .remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: radial-gradient(120% 90% at 50% 20%, #221c2e, #0e0c14); }
.call-side { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.call-side > * { pointer-events: auto; }
.callscreen .local { top: 76px; width: 96px; height: 136px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.45); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.call-top { padding: 14px 14px 26px; gap: 10px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent); }
.call-top .avatar { width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.5); }
.call-top .n { font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.call-top .faint { color: rgba(255, 255, 255, 0.78); font-size: 0.78rem; }
.call-cost, .quick-timer { background: rgba(11, 10, 16, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; }
.quick-timer { font-weight: 700; min-width: 64px; text-align: center; }
.quick-timer.low { background: var(--rose-deep); }
.shared-chip { background: rgba(11, 10, 16, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 500; }
.call-bottom { padding: 18px 14px calc(16px + env(safe-area-inset-bottom, 0)); background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent); }
.call-actions { gap: 12px; }
.circle-btn { width: 54px; height: 54px; color: #fff; transition: transform .12s, background .15s; }
.circle-btn:active { transform: scale(0.93); }
.callscreen .circle-btn:not(.end):not(.next) { background: rgba(11, 10, 16, 0.58); border-color: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.circle-btn.off { background: #fff !important; color: #14121b !important; }
.circle-btn.end { width: 66px; height: 66px; background: var(--danger); box-shadow: 0 10px 26px rgba(255, 92, 92, 0.45); }
.circle-btn.next { color: var(--on-hot); box-shadow: var(--glow-rose); }
.extend-btn { background: var(--mint); color: #04261a; font-weight: 700; box-shadow: 0 8px 26px rgba(63, 224, 165, 0.35); }
.extend-btn.peer-voted { background: var(--gold); color: #2b1900; }
.extend-btn.voted { background: rgba(11, 10, 16, 0.6); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.call-chatpanel { position: absolute; inset-inline: 0; bottom: var(--dock); display: flex; flex-direction: column; gap: 8px; padding: 0 14px; pointer-events: none; }
.call-chatpanel > * { pointer-events: auto; }
.ccp-head { display: none; }
.call-chatpanel .call-chat { position: static; padding: 0; max-height: 30dvh; }
.call-chatbar { display: none; gap: 8px; align-items: center; }
.call-chatpanel.open .call-chatbar { display: flex; }
.call-chatbar .input { border-radius: 999px; background: rgba(11, 10, 16, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 10px 14px; }
.chat-bubble { background: rgba(11, 10, 16, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px; padding: 7px 12px; }
.chat-bubble.me { background: var(--rose-deep); color: #fff; }
.call-status { background: radial-gradient(120% 90% at 50% 30%, #221c2e, #0e0c14); }

/* duo */
.duoscreen { background: #000; }
.duo-grid { gap: 2px; }
.duo-tile { background: radial-gradient(120% 90% at 50% 20%, #221c2e, #0e0c14); }
.duo-label { background: rgba(11, 10, 16, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; }
.duo-tile.me::before, .duo-tile.mine::before { border-color: rgba(63, 224, 165, 0.9); }

/* ---------- landing ---------- */
.ld-screen { background: var(--bg); }
.ld-bg { background: linear-gradient(165deg, #121a33, #1c1030 55%, var(--bg)); }
.ld-bg::after { background: linear-gradient(180deg, transparent 55%, var(--bg) 96%); }
.ld-brand { font-family: var(--ff); font-style: normal; font-weight: 700; color: #fff; letter-spacing: -0.02em; font-size: 1.1rem; }
.ld-login { font-weight: 500; padding: 8px 14px; }
.ld-hero b { font-weight: 700; letter-spacing: -0.02em; }
[dir="rtl"] .ld-hero b { letter-spacing: 0; }
.ld-go { background: var(--grad-hot); color: var(--on-hot); font-weight: 700; }
.ld-go .f { background: rgba(0, 0, 0, 0.18); color: var(--on-hot); }
.ld-live { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.11); border-radius: 20px; }

/* ==========================================================================
   Tablet: dialogs become centred cards
   ========================================================================== */
@media (min-width: 720px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { max-width: 480px; border-radius: 24px; border-bottom: 1px solid var(--line-strong); padding: 22px; animation: popIn .22s ease; }
  .sheet::before { display: none; }
}

/* ==========================================================================
   Desktop (≥1024px): sidebar shell, wide content, split call screen
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --shell-max: none; }
  .mob-only { display: none !important; }
  #app { max-width: none; border: 0; }

  /* --- sidebar (the tab bar becomes the navigation rail) --- */
  .screen:has(> .tabbar) { padding-inline-start: var(--side-w); height: 100dvh; }
  .tabbar, .tabbar.no-mobile {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); height: auto; z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 22px 14px 16px;
    background: rgba(19, 17, 26, 0.70); background: color-mix(in srgb, var(--s1) 70%, transparent); border-top: 0; border-inline-end: 1px solid var(--line);
    overflow-y: auto;
  }
  .tabbar a { flex: none; flex-direction: row; justify-content: flex-start; gap: 13px; padding: 11px 14px; border-radius: 13px; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
  .tabbar a > div { display: grid; place-items: center; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a:hover { background: var(--s2); color: var(--text); }
  .tabbar a.on { background: var(--s2); color: var(--text); font-weight: 600; }
  .tabbar a.on::before { display: none; }
  .tabbar a.on svg, .tabbar a.on > span:first-child { animation: none; }
  .tabbar .nb { position: static; margin-inline-start: auto; order: 3; border: 0; }
  .tabbar a.nav-brand { padding: 4px 12px 20px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); gap: 10px; }
  .tabbar a.nav-brand:hover { background: none; }
  .tabbar a.nav-brand img { width: 32px; height: 32px; border-radius: 10px; }
  .nav-sep { height: 1px; background: var(--line); margin: 10px 12px; flex: none; }
  .nav-foot { margin-top: auto; padding-top: 16px; }
  .nav-wallet { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
  .nav-wallet .bal { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }
  .nav-wallet .faint { font-size: 0.76rem; }
  .tabbar .nav-wallet a.btn { justify-content: center; padding: 9px 12px; font-size: 0.86rem; font-weight: 700; color: var(--on-hot); border-radius: 11px; }
  .tabbar .nav-wallet a.btn:hover { background: var(--grad-hot); color: var(--on-hot); }

  /* --- content --- */
  .topbar { min-height: 72px; padding: 14px 36px; background: rgba(11, 10, 16, 0.80); background: color-mix(in srgb, var(--bg) 80%, transparent); }
  .topbar .title { font-size: 1.45rem; }
  .scroll { padding-inline: max(36px, calc((100% - var(--content-max)) / 2)); padding-bottom: 48px; }
  .screen.wide { --content-max: 1160px; }
  .pad { padding: 26px 0 40px; }
  .support-fab { bottom: 24px; inset-inline-end: 24px; width: 48px; height: 48px; }
  .toast-wrap { top: 22px; }
  .push-prompt { bottom: 24px; inset-inline-start: calc(var(--side-w) + 24px); inset-inline-end: auto; margin: 0; }
  .card { padding: 20px; }
  .list-item, .conv { border-radius: 12px; }

  /* people, rooms, wallet → grids */
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
  .stat-row { gap: 14px; }
  .gift-grid { grid-template-columns: repeat(5, 1fr); }

  /* chat-like pages keep a readable measure */
  .lobby-wrap, .thread { max-width: 860px; width: 100%; margin-inline: auto; border-inline: 1px solid var(--line); }

  /* --- home: stage + rail --- */
  .home-fill { padding: 20px 36px 28px; gap: 16px; }
  .home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; }
  .home-rail { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; }
  .home-chips { order: 0; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 0; }
  .rail-card { display: block; background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
  .rail-card h4 { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
  [dir="rtl"] .rail-card h4 { letter-spacing: 0; font-size: 0.86rem; }
  .rail-card .cfilter { margin-top: 8px; }
  .rail-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 0.9rem; color: var(--muted); }
  .rail-row + .rail-row { border-top: 1px solid var(--line); }
  .rail-steps { display: grid; gap: 10px; counter-reset: step; }
  .rail-steps li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
  .rail-steps li::before { counter-increment: step; content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; background: var(--s3); color: var(--text); margin-top: 1px; }
  .home-stage { border-radius: 32px; }
  .stage-top { padding: 20px 20px 40px; gap: 10px; }
  .mode-seg button { padding: 10px 20px; font-size: 0.92rem; }
  .mode-hint { font-size: 0.88rem; }
  .stage-bottom { padding: 70px 20px 26px; gap: 14px; }
  .stage-chips .filter-chip { display: none; }
  .callbtn.home-cta { width: 132px; height: 132px; font-size: 1.25rem; }
  .callbtn.home-cta span { font-size: 0.78rem; }
  .callbtn.home-cta.busy { width: 92px; height: 92px; }
  .duo-bottom-wrap { align-items: center; }
  .duo-bottom-wrap .duo-panel { max-width: 460px; }

  /* --- call: video stage + side column (your camera, chat) --- */
  .callscreen { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; padding: 20px; }
  .call-stage { position: relative; inset: auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--line); }
  .call-side { position: static; display: flex; flex-direction: column; gap: 16px; min-height: 0; pointer-events: auto; }
  .callscreen .local { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 22px; border: 0; box-shadow: 0 0 0 1px var(--line); flex: none; }
  .call-chatpanel { position: static; flex: 1; min-height: 0; padding: 0; gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; pointer-events: auto; }
  .ccp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-weight: 600; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
  .call-chatpanel .call-chat { flex: 1; max-height: none; padding: 14px; }
  .call-chatpanel .call-chat:empty::before { content: attr(data-empty); margin: auto; color: var(--faint); font-size: 0.86rem; text-align: center; }
  .call-chatbar, .call-chatpanel.open .call-chatbar { display: flex; padding: 10px; border-top: 1px solid var(--line); }
  .call-chatbar .input { background: var(--s2); }
  .chat-bubble { background: var(--s2); -webkit-backdrop-filter: none; backdrop-filter: none; max-width: 86%; }
  .call-top { padding: 20px 22px 40px; }
  .call-bottom { padding: 30px 20px 24px; }
  .circle-btn { width: 58px; height: 58px; }
  .circle-btn.end { width: 70px; height: 70px; }
  .call-actions .chat-toggle { display: none; }
  .gift-tray { inset-inline: 20%; border-radius: 24px; bottom: 20px; border: 1px solid var(--line-strong); }
  .callscreen.quick .local { top: auto; width: 100%; height: auto; }
  .swipe-hint { display: none; }

  /* duo: four tiles with air around them */
  .duo-grid { inset: 20px; gap: 12px; }
  .duo-tile { border-radius: 24px; }
  .duo-tile.me::before, .duo-tile.mine::before { border-radius: 24px; }
  .duo-top { padding: 34px 40px; }
  .duo-bottom { padding-bottom: 36px; }

  /* --- landing: hero on one side, live activity on the other --- */
  .ld-in { max-width: 1120px; padding: 0 36px 36px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: 56px; align-items: center; min-height: 100dvh; grid-template-rows: auto 1fr auto; }
  .ld-top { grid-column: 1 / -1; padding: 26px 0 0; }
  .ld-main { grid-column: 1; text-align: start; }
  .ld-aside { grid-column: 2; display: grid; gap: 14px; }
  .ld-foot { grid-column: 1 / -1; }
  .ld-hero { text-align: start; padding: 0; }
  .ld-hero b { font-size: clamp(2.2rem, 3.6vw, 3.3rem); line-height: 1.2; }
  .ld-hero span { font-size: 1.1rem; margin-top: 14px; }
  .ld-radar { margin: 34px 0 0; width: 260px; height: 260px; }
  .ld-steps { justify-content: flex-start; padding: 0; margin-top: 26px; gap: 8px; }
  .ld-steps div { font-size: 0.86rem; padding: 8px 14px; }
  .ld-live { margin: 0; padding: 16px 18px; }
  .ld-bg { height: 100%; }
  .ld-brand { font-size: 1.3rem; }
  .ld-login { font-size: 0.9rem; padding: 10px 18px; }
}

@media (min-width: 1440px) {
  :root { --side-w: 284px; }
  .home-cols { grid-template-columns: minmax(0, 1fr) 380px; }
  .callscreen { grid-template-columns: minmax(0, 1fr) 400px; }
}
.ld-points { display: block; margin-top: 10px; color: rgba(255,255,255,.62); font-size: .95rem; }

/* fixes after the first desktop pass */
.gchip.on .gchip-cost, .gchip.on .gchip-cost.free { color: inherit; opacity: 0.8; }
@media (min-width: 1024px) {
  .home-cols { grid-template-rows: minmax(0, 1fr); }
  .home-stage { min-height: 0; }
  /* landing preview: an illustrated quick call (no real people, no screenshots) */
  .ld-mock { padding: 14px; border-radius: 34px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); transform: rotate(1.5deg); }
  .lm-stage { position: relative; aspect-ratio: 4 / 3.3; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #2b3a67, #3d2a5c 60%, #5a2a4f); }
  .lm-person { position: absolute; inset: 0; }
  .lm-person i { position: absolute; left: 50%; top: 24%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.86); }
  .lm-person b { position: absolute; left: 50%; top: 56%; width: 58%; height: 70%; border-radius: 46% 46% 0 0; transform: translateX(-50%); background: rgba(255, 255, 255, 0.86); }
  .lm-person.a i, .lm-person.a b { background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)); }
  .lm-self { position: absolute; top: 60px; inset-inline-end: 16px; width: 24%; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #ff7a59, #ff4f79); border: 2px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
  .lm-top { position: absolute; top: 14px; inset-inline: 16px; display: flex; justify-content: space-between; align-items: center; }
  .lm-live, .lm-timer, .lm-chip { background: rgba(11, 10, 16, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 6px 13px; font-size: 0.82rem; font-weight: 600; color: #fff; }
  .lm-live { color: var(--mint); }
  .lm-chip { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .lm-plus { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; white-space: nowrap; background: var(--mint); color: #04261a; font-weight: 700; padding: 8px 20px 8px 9px; border-radius: 999px; box-shadow: 0 10px 30px rgba(63, 224, 165, 0.4); animation: extendUrge 1.6s ease-in-out infinite; }
  .lm-plus b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.14); font-size: 1.3rem; line-height: 1; }
  @keyframes extendUrgeC { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
  .lm-plus { animation-name: extendUrgeC; }
}
@media (prefers-reduced-motion: reduce) { .lm-plus { animation: none; } }
@media (min-width: 1024px) {
  /* The desktop shell is a fixed-height app frame: pages scroll inside it. */
  #app { height: 100dvh; min-height: 0; overflow-y: auto; }
  .screen { min-height: 0; }
}
.ld-hero b { text-wrap: balance; }
@media (min-width: 1024px) { .lm-chip { bottom: 82px; } .ld-hero b br { display: none; } }

/* phone call screen: keep your own camera clear of the header and chips */
@media (max-width: 1023.98px) {
  .callscreen .local, .callscreen.quick .local { top: 84px; }
  .shared-chip { align-self: flex-start; margin: 2px 14px 0; max-width: calc(100% - 140px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* mixed Arabic/Latin messages: each bubble takes the direction of its own text */
.chat-bubble, .bub-t2, .lobby-text, .ld-bub { unicode-bidi: plaintext; text-align: start; }
.person .live .badge { background: rgba(11, 10, 16, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--mint); }

/* back + icon-only buttons */
.back-btn { padding: 8px; border-radius: 12px; color: var(--text); }
.back-btn svg { width: 20px; height: 20px; display: block; }
[dir="rtl"] .back-btn svg { transform: scaleX(-1); }
.icon-btn { padding: 9px 11px; }
.icon-btn svg { width: 18px; height: 18px; display: block; }

@media (min-width: 1024px) {
  /* an element that is both the scroller and the padded body (sign-up, legal) */
  .scroll.pad { padding: 34px max(36px, calc((100% - var(--content-max)) / 2)) 56px; }
  /* screens without the sidebar (sign-up, suspended notice): a focused column */
  .screen:not(:has(> .tabbar)):not(.ld-screen) { --content-max: 540px; }
  .legal-body { --content-max: 760px; }
}
.sheet:has(.pf-ava) .tag-row { justify-content: center; }
.chat-bubble { align-self: flex-start; width: fit-content; } .chat-bubble.me { align-self: flex-end; }
.circle-btn.next svg { width: 26px; height: 26px; } [dir="rtl"] .circle-btn.next svg { transform: scaleX(-1); }

/* ---------- voice rooms ---------- */
.vr-screen { background: radial-gradient(110% 55% at 50% 0%, rgba(255, 79, 121, 0.14), transparent 70%), var(--bg); }
.vr-react-btn { background: var(--s2); border-color: var(--line); }
@media (min-width: 1024px) {
  .room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
  .room-list .room-card { margin: 0; }
  .room-list > .empty, .room-list > .spinner { grid-column: 1 / -1; }
  .screen.wide .vr-intro, .screen.wide .vr-intro + .row { max-width: 760px; }
  /* in a room: the mic stage on one side, the conversation on the other */
  .vr-screen:has(> .tabbar) { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .vr-screen > .vr-head { grid-column: 1 / -1; grid-row: 1; padding-inline: 28px; }
  .vr-screen > .vr-stage { grid-column: 1; grid-row: 2 / 5; border-bottom: 0; border-inline-end: 1px solid var(--line); padding: 26px 36px; overflow-y: auto; }
  .vr-screen > .vr-chat { grid-column: 2; grid-row: 2; padding: 16px; }
  .vr-screen > .vr-reacts { grid-column: 2; grid-row: 3; }
  .vr-screen > .composer { grid-column: 2; grid-row: 4; }
  .vr-screen:not(.live) .vr-seats { gap: 30px 12px; max-width: 760px; margin: 22px auto 10px; }
  .vr-screen:not(.live) .vr-seat .vr-av { width: 84px; height: 84px; }
  .vr-fx, .vr-banner { inset-inline-start: var(--side-w); }
  .vr-combo-wrap { inset-inline-end: 424px; bottom: 40px; }
}
.search-scene { border-radius: inherit; }

/* ---------- Me ---------- */
@media (min-width: 1024px) {
  .me-page { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1040px; margin-inline: auto; }
  .me-side { position: sticky; top: 26px; }
  .me-main > .card:first-child { margin-top: 0 !important; }
}
.vr-intro + .row .btn { white-space: nowrap; font-size: 0.9rem; padding-inline: 12px; }

/* ---------- camera & microphone ---------- */
.home-preview, .callscreen .local { transform: scaleX(-1); }       /* your own picture is a mirror, like every camera app */
.gear-btn { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(11, 10, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: auto; transition: background .15s, transform .12s; }
.gear-btn svg { width: 19px; height: 19px; }
.gear-btn:active { transform: scale(0.93); }
@media (hover: hover) { .gear-btn:hover { background: rgba(11, 10, 16, 0.85); } }
.stage-gear { position: absolute; z-index: 4; bottom: 14px; inset-inline-end: 14px; }
.home-stage.searching .stage-gear { opacity: 0; pointer-events: none; }
.stage-notice { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 90px 28px 150px; text-align: center; background: radial-gradient(120% 90% at 50% 20%, #221c2e, #0e0c14); }
.stage-notice .sn-ic { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line-strong); color: var(--muted); }
.stage-notice .sn-ic svg { width: 28px; height: 28px; }
.stage-notice p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; max-width: 380px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 38px; }
[dir="rtl"] select.input { background-position: 14px 50%, 20px 50%; }
.duo-top { gap: 10px; }

/* ---------- in-call emoji reactions ---------- */
.fly-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.fly-layer > * { pointer-events: none; }
.react-strip { position: absolute; z-index: 5; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.react-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(11, 10, 16, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .12s; padding: 0; }
.react-btn:active { transform: scale(1.25); }
@media (hover: hover) { .react-btn:hover { transform: scale(1.12); background: rgba(11, 10, 16, 0.75); } }
.react-fly { position: absolute; bottom: 22%; left: var(--x, 50%); font-size: 2.4rem; animation: reactUp 1.9s ease-out forwards; will-change: transform, opacity; }
@keyframes reactUp { 0% { transform: translate(0, 20px) scale(0.5); opacity: 0; } 15% { opacity: 1; transform: translate(0, 0) scale(1.15); } 100% { transform: translate(var(--drift, 0), -46vh) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .react-fly { animation-duration: 0.9s; } }
@media (min-width: 1024px) { .react-strip { inset-inline-start: 20px; gap: 10px; } .react-btn { width: 46px; height: 46px; font-size: 1.4rem; } .duoscreen .react-strip { inset-inline-start: 34px; } }
.sheet:focus { outline: none; }
/* call header: the name block shrinks (one line each) instead of wrapping under the buttons */
.call-top .tap { min-width: 0; flex: 0 1 auto; cursor: pointer; }
.call-top .tap .n, .call-top .tap .faint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* conversation starter + report-after-call */
.starter-chip { align-self: center; display: flex; gap: 8px; align-items: center; margin: 8px 14px 0; padding: 9px 14px; max-width: min(92%, 440px); border-radius: 16px; background: rgba(11, 10, 16, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9rem; font-weight: 500; line-height: 1.45; animation: popIn .35s ease; transition: opacity .6s ease, transform .6s ease; }
.starter-chip.out { opacity: 0; transform: translateY(-6px); pointer-events: none; }
@media (max-width: 1023.98px) { .starter-chip { align-self: flex-start; max-width: calc(100% - 140px); } }
.nf-report { padding: 8px 9px; color: var(--muted); }
.nf-report svg { width: 16px; height: 16px; display: block; }
.call-top .tap { min-width: 76px; flex: 1 1 auto; }
@media (max-width: 480px) { .addfriend-btn .af-label { display: none; } .addfriend-btn { padding: 8px 11px; } }

/* ---------- phone on its side (very short screens) ---------- */
@media (max-height: 480px) and (max-width: 1023.98px) {
  .home-chips, .mode-hint, .swipe-cue, .guest-bar .faint { display: none; }
  .topbar { min-height: 48px; padding-block: 6px; }
  .home-fill { padding: 6px 10px 8px; gap: 6px; }
  .stage-top { align-items: flex-start; padding: 8px; background: none; }
  .mode-seg button { padding: 6px 12px; font-size: 0.8rem; }
  .stage-bottom { flex-direction: row; justify-content: center; align-items: center; gap: 14px; padding: 0 60px 10px; background: none; }
  .callbtn.home-cta { width: 78px; height: 78px; font-size: 0.95rem; }
  .callbtn.home-cta span { display: none; }
  .callbtn.home-cta.busy { width: 64px; height: 64px; margin-top: 0; }
  .tabbar { --tabbar-h: 52px; height: 52px; }
  .tabbar a span:not(.nb) { display: none; }
  /* in a call: reactions move under your own camera so they clear the name and chips */
  .react-strip { top: auto; bottom: 10px; transform: none; inset-inline-start: auto; inset-inline-end: 12px; gap: 6px; }
  .react-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .callscreen .local, .callscreen.quick .local { top: 62px; width: 84px; height: 112px; }
  .call-top { padding: 8px 12px 14px; }
  .call-bottom { padding: 8px 12px 10px; }
  .circle-btn { width: 46px; height: 46px; }
  .circle-btn.end { width: 56px; height: 56px; }
  .extend-wrap { padding-bottom: 6px; }
  .extend-btn { padding: 6px 16px 6px 8px; font-size: 0.86rem; }
  .extend-btn b { width: 28px; height: 28px; font-size: 1.2rem; }
  .callscreen { --dock: 76px; } .callscreen.quick { --dock: 126px; }
  .call-chatpanel .call-chat { max-height: 34dvh; }
}

/* ---------- small laptops and tablets on their side: icon-only sidebar ---------- */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  :root { --side-w: 76px; }
  .tabbar, .tabbar.no-mobile { padding: 18px 10px 12px; align-items: stretch; }
  .tabbar a { justify-content: center; padding: 12px 0; position: relative; }
  .tabbar a > span:not(.nb) { display: none; }
  .tabbar a.nav-brand { padding: 2px 0 16px; }
  .tabbar .nb { position: absolute; top: 4px; inset-inline-end: 8px; margin: 0; }
  .nav-sep { margin: 8px 6px; }
  .nav-foot { display: none; }
  .home-cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .home-fill { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .callscreen { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; padding: 16px; }
  .vr-screen:has(> .tabbar) { grid-template-columns: minmax(0, 1fr) 340px; }
  .vr-combo-wrap { inset-inline-end: 364px; }
}
