:root {
  box-sizing: border-box;
  color-scheme: dark;
  --bg: #0e1621;
  --panel: #17212b;
  --panel2: #3a1544;
  --text: #f5f5f5;
  --mute: #708499;
  --line: #0d141c;
  --p: #6c5cff;
  --wine: #3a1544;
  --neon: linear-gradient(90deg, #ee2a7b 0%, #9b2ad4 52%, #6228d7 100%);
  --neon-chat: linear-gradient(90deg, #c41f6e 0%, #7a24c4 50%, #4a1cb0 100%);
  --in: #3a1544;
  --out: linear-gradient(90deg, #c41f6e 0%, #7a24c4 50%, #4a1cb0 100%);
  --o: #8f83ff;
  --s: #ee2a7b;
  --danger: #e53935;
  --rail: 76px;
  --dock: 42px;
  --dock-gap: 6px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #d7e0e8;
  --panel: #fff;
  --panel2: #f4f4f5;
  --text: #222222;
  --mute: #707579;
  --line: #e6e6e6;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/rubik-400-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/rubik-400-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/rubik-600-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/rubik-600-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rubik-600-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rubik-600-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body {
  height: 100%;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button:focus, button:focus-visible, a:focus, a:focus-visible { outline: none; }
button { cursor: pointer; transition: transform .14s cubic-bezier(.2, .85, .3, 1.25), background-color .14s ease, color .14s ease; }
button:active:not(:disabled) { transform: scale(.94); }
.ib:active:not(:disabled), .nav button:active:not(:disabled), .send:active:not(:disabled), .tab-back:active:not(:disabled), .back:active:not(:disabled) { transform: scale(.86); }
.chat, .person, .person-hit, .share-person, .tab, .person-open {
  transition: background-color .14s ease, color .14s ease;
}
.chat:active:not(:disabled),
.person:active:not(:disabled),
.person-hit:active:not(:disabled),
.share-person:active:not(:disabled),
.tab:active:not(:disabled),
.person-open:active:not(:disabled) {
  transform: none;
}
.chat.tap-press { transform: none; }
::placeholder { color: var(--mute); }
::selection { background: var(--p); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.app {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100dvh - var(--dock) - max(var(--dock-gap), env(safe-area-inset-bottom)));
  margin-left: 0;
  overflow: hidden;
  background: var(--panel);
}
.bottom-nav {
  position: fixed;
  z-index: 47;
  left: var(--dock-gap);
  right: var(--dock-gap);
  bottom: max(var(--dock-gap), env(safe-area-inset-bottom));
  height: var(--dock);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a0b24 0%, #3a1240 42%, #24143f 100%);
  border: 1px solid rgba(238, 42, 123, .45);
  box-shadow: 0 8px 24px rgba(98, 40, 215, .28);
}
.bottom-nav button {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f6c3d6;
  display: grid;
  place-items: center;
  height: 34px;
  padding: 0;
}
.bottom-nav button svg { width: 24px; height: 24px; display: block; }
.bottom-nav button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bottom-nav button.on {
  color: #fff;
  background: linear-gradient(135deg, #ee2a7b 0%, #9b2ad4 52%, #6228d7 100%);
  box-shadow: 0 3px 12px rgba(238, 42, 123, .4);
}
:root[data-theme="light"] .bottom-nav {
  background: linear-gradient(90deg, #fff6fb 0%, #fff 46%, #f4edff 100%);
  border-top-color: rgba(238, 42, 123, .28);
  box-shadow: 0 -8px 20px rgba(238, 42, 123, .08);
}
:root[data-theme="light"] .bottom-nav button { color: #c43b78; }
:root[data-theme="light"] .bottom-nav button.on { color: #fff; background: linear-gradient(135deg, #ee2a7b 0%, #9b2ad4 52%, #6228d7 100%); }
body:has(.app.waves-mode) .bottom-nav,
body:has(#gate:not([hidden])) .bottom-nav,
body:has(#boot:not([hidden])) .bottom-nav { left: 0; }
body:has(.app.waves-mode) .bottom-nav,
body:has(#gate:not([hidden])) .bottom-nav,
body:has(#boot:not([hidden])) .bottom-nav { display: none; }
body.keyboard-on .bottom-nav { display: none; }
body.keyboard-on .app.open .main { animation: none !important; }
body.keyboard-on .app.open .chat-live {
  padding-bottom: calc(56px + var(--kb-inset, 0px)) !important;
  overflow: hidden !important;
}
body.keyboard-on .app.open .bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: var(--kb-inset, 0px) !important;
  margin: 0 !important;
  padding-bottom: 8px !important;
  z-index: 50;
}
body.keyboard-on .overlay {
  padding-bottom: var(--kb-inset, 0px) !important;
  align-items: flex-end;
  align-content: end;
  place-items: end center;
}
body.keyboard-on .overlay .modal,
body.keyboard-on .overlay .comment-card {
  max-height: calc(100dvh - var(--kb-inset, 0px) - 8px);
  margin-bottom: 0;
  animation: none;
}
body.keyboard-on .overlay .comment-card {
  height: min(68dvh, calc(100dvh - var(--kb-inset, 0px) - 8px));
  padding-bottom: 12px;
}
body.keyboard-on .wave-share {
  padding-bottom: var(--kb-inset, 0px);
}
body.keyboard-on .wave-share-card {
  max-height: min(78vh, calc(100dvh - var(--kb-inset, 0px) - 8px));
  padding-bottom: 14px;
}
body.keyboard-on .wave-editor {
  padding-bottom: var(--kb-inset, 0px);
}
body.keyboard-on .ig-share {
  padding-bottom: calc(16px + var(--kb-inset, 0px));
}
body.keyboard-on:not(:has(.app.open)) .side {
  padding-bottom: var(--kb-inset, 0px);
}
.app.reading { grid-template-columns: 400px minmax(0, 1fr) 300px; }
.app.waves-mode {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
}
.side {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1848 0%, #12102e 100%);
}
button.rail-toggle { display: grid; }
.rail-toggle .rail-lines { display: none; }
.rail-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(6, 5, 24, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
body.rail-open .rail-backdrop { opacity: 1; pointer-events: auto; }
.top { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 12px; position: relative; z-index: 4; overflow: visible; flex: none; }
#logo { flex: none; display: flex; line-height: 0; }
#logo svg { display: block; }
.brand {
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -.4px;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  padding: 2px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(90deg, #fff 20%, #ee2a7b 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .brand { background: none; color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.ib {
  border: 0;
  background: transparent;
  color: #c9c4ff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
}
.ib svg { display: block; }
.ib:hover { background: rgba(108, 92, 255, .24); color: #fff; }
:root[data-theme="light"] .ib { color: #5b4fd4; }
:root[data-theme="light"] .ib:hover { background: rgba(108, 92, 255, .16); color: #3d2ea8; }
.head #call,
.head #more {
  background: var(--neon-chat);
  color: #fff;
}
.head #call:hover,
.head #more:hover {
  background: var(--neon-chat);
  color: #fff;
  filter: brightness(1.06);
}
:root[data-theme="light"] .head #call,
:root[data-theme="light"] .head #more {
  color: #fff;
}
.search-row { display: flex; gap: 8px; align-items: center; margin: 0 16px 10px; flex: none; }
.search {
  flex: 1;
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--panel2);
  color: var(--text);
  font-size: 14px;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.search:focus { border-color: var(--p); box-shadow: 0 0 0 3px rgba(124, 92, 255, .28); }
.scan { color: #efeaff; }
:root[data-theme="light"] .scan { color: #5b4fd4; }
.stories {
  display: flex;
  gap: 14px;
  padding: 16px 16px 8px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: none;
}
.st {
  flex: 0 0 72px;
  width: 72px;
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  background: none;
  border: 0;
  padding: 0;
  overflow: visible;
}
.pl { position: relative; width: 62px; height: 62px; margin: 4px auto 6px; }
.pl .av { position: absolute; inset: 4px; width: auto; height: auto; font-size: 18px; }
.pl::after {
  content: "";
  position: absolute;
  inset: -6px -2px;
  border: 2px solid var(--o);
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(.38);
  pointer-events: none;
}
.pl.fresh::after { animation: orbit-burn 2.2s ease-in-out infinite; }
.pl.seen::after { border-color: var(--line); animation: none; filter: none; }
.pl.empty::after { display: none; }
.plus {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  transform: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--p);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  z-index: 3;
  padding: 0;
  display: grid;
  place-items: center;
}
.av {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: none;
  position: relative;
  overflow: visible;
  background-color: #2a2068;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.av.on::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  background: #3ddc84;
  border: 2px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 18, 63, .35);
  animation: online-dot 1.8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.pl .av.on::after { right: -2px; bottom: -2px; top: auto; width: 11px; height: 11px; }
.chat.on .av.on::after, .chat:hover .av.on::after { border-color: var(--panel2); }
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 0 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto;
  min-width: max-content;
  border: 0;
  background: var(--wine);
  color: #f0d0dc;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tab.on { background: var(--neon); color: #fff; box-shadow: 0 6px 16px rgba(238, 42, 123, .35); }
.tab.drop { outline: 2px solid var(--s); color: var(--text); }
.list { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: hidden; overscroll-behavior: none; touch-action: pan-y; }
.list.can-scroll,
#list.folder-live .folder-page {
  scrollbar-width: thin;
  scrollbar-color: var(--wine) transparent;
}
.list.can-scroll::-webkit-scrollbar,
#list.folder-live .folder-page::-webkit-scrollbar {
  width: 5px;
}
.list.can-scroll::-webkit-scrollbar-track,
#list.folder-live .folder-page::-webkit-scrollbar-track {
  background: transparent;
}
.list.can-scroll::-webkit-scrollbar-thumb,
#list.folder-live .folder-page::-webkit-scrollbar-thumb {
  background: var(--wine);
  border-radius: 99px;
}
.list button, .list a, .list textarea, .list input,
.feed-card, .feed-card *, .post-box, .post-box *,
.my-post, .post-body, button.chat, button.who-row,
.app button, .app a, .app textarea,
.app input:not([type="range"]):not([type="file"]) {
  touch-action: pan-y;
}
#list.folder-live { position: relative; overflow: hidden; touch-action: none; overscroll-behavior: none; }
#list.folder-live .folder-strip { position: absolute; left: 0; top: 0; display: flex; height: 100%; will-change: transform; }
#list.folder-live .folder-page { height: 100%; overflow-x: clip; overflow-y: auto; flex: none; min-width: 0; overscroll-behavior: none; touch-action: none; }
.list.can-scroll { overflow-y: auto; overflow-x: clip; }
.chat {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.chat { -webkit-tap-highlight-color: transparent; }
.chat.on { background: transparent; }
@media (hover: hover) {
  .chat:hover { background: linear-gradient(90deg, rgba(124, 92, 255, .28), transparent 80%); }
}
.chat .av { width: 50px; height: 50px; font-size: 18px; }
.ci { flex: 1; min-width: 0; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.nm { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm { font-size: 11px; color: var(--mute); flex: none; }
.pv, .feed-card p, .wave-caption, .story-body, .mine-copy p, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]) {
  font-weight: 700;
  letter-spacing: .012em;
}
.pv { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chat .row .pv { flex: 1; }
.chat .ticks { flex: none; margin-left: 8px; color: var(--mute); font-size: 13px; letter-spacing: -.08em; line-height: 1; }
.chat .ticks.read { color: var(--s); }
.pv-circle, .chat .pv video {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  background: #111;
  pointer-events: none;
}
.pv.draft { color: var(--o); }
.bd {
  background: var(--s);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 7px;
  flex: none;
  animation: badge-burn 1.6s ease-out infinite;
}
.pin, .mute {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  margin-right: 4px;
  color: var(--mute);
}
.mute svg { display: block; width: 20px; height: 20px; }
.nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  width: var(--rail);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-right: 1px solid rgba(238, 42, 123, .45);
  background: linear-gradient(180deg, #1a0b24 0%, #3a1240 46%, #24143f 100%);
  box-shadow: 10px 0 28px rgba(98, 40, 215, .22);
  overflow: hidden;
  box-sizing: border-box;
  bottom: calc(var(--dock) + max(var(--dock-gap), env(safe-area-inset-bottom)));
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
  transform: translate3d(-105%, 0, 0);
}
body.rail-open .nav { transform: translate3d(0, 0, 0); }
body:has(.app.waves-mode) .nav,
body:has(#gate:not([hidden])) .nav,
body:has(#boot:not([hidden])) .nav { display: none; }
.nav button {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: #f6c3d6;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.nav button svg { width: 26px; height: 26px; display: block; }
.nav button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav button span.nav-count {
  position: absolute;
  top: 4px;
  right: 2px;
  left: auto;
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 4px;
  overflow: visible;
  clip: auto;
  border-radius: 999px;
  background: #ff5470;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  z-index: 1;
}
.note-row { align-items: stretch; }
.note-open {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}
.note-row.is-new { background: rgba(108, 92, 255, .18); }
.report-row { display: grid; gap: 6px; margin: 10px 12px; padding: 12px; border-radius: 16px; background: var(--panel2); }
.report-row p { margin: 0; }
.report-row .row { display: flex; flex-wrap: wrap; gap: 8px; }
.report-media {
  border: 0;
  padding: 0;
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.report-media.round { border-radius: 50%; }
.report-media img, .report-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.report-media .report-play { color: #fff; font-size: 28px; }
.report-circle { width: 168px; }
.report-circle .circle-slot,
.report-circle .circle-wrap { width: 168px; height: 168px; }
.report-voice { width: min(100%, 280px); }
.report-voice audio { width: 100%; }
.report-view { display: grid; gap: 12px; justify-items: center; }
.report-view video { width: min(100%, 360px); max-height: 70vh; border-radius: 16px; background: #000; }
.report-view.round video { width: min(100%, 280px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.my-post.report-focus { outline: 2px solid var(--p); outline-offset: 4px; border-radius: 14px; }
.note-mute {
  flex: none;
  align-self: center;
  border: 0;
  border-radius: 8px;
  min-height: 0;
  margin: 0;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(108, 92, 255, .16);
  color: #efeaff;
}
.note-mute:hover { background: rgba(108, 92, 255, .26); }
:root[data-theme="light"] .note-mute { background: rgba(108, 92, 255, .12); color: #3d2ea8; }
.nav button.on {
  color: #fff;
  background: linear-gradient(135deg, #ee2a7b 0%, #9b2ad4 52%, #6228d7 100%);
  box-shadow: 0 3px 12px rgba(238, 42, 123, .4);
}
:root[data-theme="light"] .nav {
  background: linear-gradient(180deg, #fff6fb 0%, #fff 46%, #f4edff 100%);
  border-right-color: rgba(238, 42, 123, .28);
  box-shadow: 8px 0 20px rgba(238, 42, 123, .08);
}
:root[data-theme="light"] .nav button { color: #c43b78; }
:root[data-theme="light"] .nav button.on { color: #fff; background: linear-gradient(135deg, #ee2a7b 0%, #9b2ad4 52%, #6228d7 100%); }

.main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  position: relative;
  background: var(--bg);
}
.main > .head { display: none; }
.main:has(#chat-live:not([hidden])) > .head { display: flex; }
.app.waves-mode .main > .head { display: none !important; }
.chat-live, .cover { display: flex; flex-direction: column; min-height: 0; flex: 1; height: 100%; max-height: 100%; overflow: hidden; background: var(--bg); }
.head, .pinbar, .insearch, .replybar, .rec, .readonly, .pickbar, .bar { flex: none; }
.head {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 58px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  padding: 8px 10px;
  box-sizing: border-box;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative;
  top: auto;
  z-index: 12;
  flex-shrink: 0;
  overflow: visible;
  transform: none;
  transition: none;
}
.head .ib { width: 40px; height: 40px; }
.head #more { font-size: 26px; line-height: 1; letter-spacing: .08em; }
.head-user { margin-right: 8px; }
.head .av { width: 42px; height: 42px; font-size: 16px; }
.head-user {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: inherit;
}
.head-user:hover .nm { color: var(--s); }
.head-txt { flex: 1; min-width: 0; }
.back { display: none; }
.live { color: var(--s); font-weight: 700; }
.typing { font-size: 12px; color: var(--s); font-weight: 650; }
.pinbar, .insearch, .replybar, .rec, .readonly, .pickbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pinbar {
  margin: 6px 10px 4px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(238, 42, 123, .45);
  border-bottom: 1px solid rgba(238, 42, 123, .45);
  border-radius: 999px;
  background: linear-gradient(90deg, #1a0b24 0%, #3a1240 42%, #24143f 100%);
  box-shadow: 0 8px 24px rgba(98, 40, 215, .28);
}
.replybar {
  margin: 4px 10px 6px;
  padding: 4px 4px 4px 6px;
  min-height: 32px;
  height: auto;
  max-height: 140px;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  background: var(--wine);
  box-shadow: none;
  gap: 6px;
  align-items: center;
  overflow: hidden;
}
.pinbar {
  margin: 4px 12px 2px;
  padding: 2px 4px 2px 10px;
  min-height: 30px;
  height: 30px;
  box-sizing: border-box;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(98, 40, 215, .2);
}
:root[data-theme="light"] .pinbar {
  background: linear-gradient(90deg, #fff6fb 0%, #fff 46%, #f4edff 100%);
  border-color: rgba(238, 42, 123, .28);
  box-shadow: 0 6px 16px rgba(238, 42, 123, .1);
}
:root[data-theme="light"] .replybar {
  background: var(--wine);
  border: 0;
  box-shadow: none;
}
.rec {
  border: 0;
  background: var(--panel);
  box-shadow: none;
}
.pinbar button, .replybar button, .insearch button, .rec button, .pickbar button {
  border: 0;
  background: var(--panel2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
}
.pinbar span, .replybar span { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replybar b, .pinbar b, .pickbar b { display: block; color: var(--o); font-size: 12px; }
.pin-jump {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent !important;
  color: inherit;
  text-align: left !important;
  justify-content: flex-start;
  padding: 0 8px 0 0 !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pinbar button.pin-jump {
  text-align: left !important;
  background: transparent !important;
  padding: 0 8px 0 0;
  max-width: none;
  white-space: nowrap;
  line-height: 1.2;
}
.pinbar .pin-jump b,
.pinbar b {
  display: inline;
  flex: none;
  font-size: 11px;
}
.pinbar .pin-jump span {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 12px;
}
.pin-x, .replybar #reply-x {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}
.pinbar .pin-x {
  width: 26px;
  height: 26px;
  font-size: 13px;
  background: transparent;
}
.pickbar {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  max-height: calc(52px + env(safe-area-inset-bottom));
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pickbar::-webkit-scrollbar { display: none; }
.pickbar b { flex: 0 0 auto; min-width: 0; white-space: nowrap; color: var(--text); font-size: 14px; }
.pickbar button { flex: 0 0 auto; white-space: nowrap; }
.pickbar button.danger { color: var(--danger); }
.m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  position: relative;
}
.reply-hint {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  transform: scale(var(--reply-p, 0));
  opacity: var(--reply-p, 0);
  pointer-events: none;
  z-index: 2;
}
.reply-hint svg { width: 16px; height: 16px; display: block; }
.m-row .m { align-self: center; }
.m-row.mine { justify-content: flex-end; }
.m-row.mine .m { margin-left: 0; }
.m-row:not(.mine) .m { margin-right: 0; }
.m-row .pick-mark {
  position: static;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #9a94c4;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}
.m-row.picked .pick-mark::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #6c5cff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.st.picked .pl, .story-card.picked .pl { box-shadow: 0 0 0 3px #6c5cff; border-radius: 50%; }
.pw-row { position: relative; display: block; }
.pw-row input { padding-right: 44px; }
.pw-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mute);
  display: grid;
  place-items: center;
  padding: 0;
}
.pw-eye .slash { display: none; }
.pw-eye.on .slash { display: block; }
.replybar div, .pin-jump { min-width: 0; flex: 1; }
.insearch input, .profile-view input:not([type="checkbox"]), .profile-view textarea, .profile-view select, .modal input:not([type="checkbox"]), .modal textarea, .modal select {
  width: 100%;
  border: 0;
  background: var(--panel2);
  border-radius: 12px;
  padding: 10px 12px;
  outline: 0;
}
.msgs {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  overflow-anchor: none;
  overscroll-behavior: none;
  touch-action: pan-y;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}
.msgs.can-scroll { overflow-y: auto; overflow-x: clip; touch-action: pan-y; }
.msgs[data-wall]:not([data-wall="feed"]) {
  background-attachment: local;
}
.msgs[data-wall="orbit"] {
  background-color: #120818;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='30' r='1.2' opacity='.42'/%3E%3Ccircle cx='80' cy='18' r='1.5' opacity='.32'/%3E%3Ccircle cx='140' cy='44' r='1' opacity='.5'/%3E%3Ccircle cx='200' cy='22' r='1.3' opacity='.38'/%3E%3Ccircle cx='40' cy='110' r='1' opacity='.3'/%3E%3Ccircle cx='110' cy='90' r='1.4' opacity='.4'/%3E%3Ccircle cx='170' cy='130' r='1' opacity='.35'/%3E%3Ccircle cx='230' cy='100' r='1.2' opacity='.45'/%3E%3Ccircle cx='60' cy='180' r='1.1' opacity='.4'/%3E%3Ccircle cx='130' cy='200' r='1.5' opacity='.28'/%3E%3Ccircle cx='210' cy='190' r='1' opacity='.5'/%3E%3Ccircle cx='90' cy='240' r='1.2' opacity='.34'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ee2a7b' stroke-opacity='.28' stroke-width='1.4'%3E%3Cellipse cx='198' cy='68' rx='50' ry='17' transform='rotate(-24 198 68)'/%3E%3Cellipse cx='198' cy='68' rx='32' ry='10' transform='rotate(-24 198 68)'/%3E%3C/g%3E%3Ccircle cx='198' cy='68' r='8' fill='%23ee2a7b' fill-opacity='.4'/%3E%3Ccircle cx='52' cy='210' r='18' fill='none' stroke='%236228d7' stroke-opacity='.32' stroke-width='1.4'/%3E%3Ccircle cx='52' cy='210' r='5' fill='%23ee2a7b' fill-opacity='.22'/%3E%3C/svg%3E"),
    radial-gradient(circle at 16% 10%, rgba(249, 206, 52, .16), transparent 26%),
    radial-gradient(circle at 90% 88%, rgba(98, 40, 215, .32), transparent 40%),
    linear-gradient(180deg, #1a0b24, #120818);
  background-size: 260px 260px, auto, auto, auto;
}
.msgs[data-wall="dusk"] {
  background-color: #140814;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='30' cy='40' r='1.2' opacity='.45'/%3E%3Ccircle cx='90' cy='24' r='1' opacity='.35'/%3E%3Ccircle cx='150' cy='60' r='1.4' opacity='.4'/%3E%3Ccircle cx='220' cy='36' r='1.1' opacity='.5'/%3E%3Ccircle cx='50' cy='120' r='1' opacity='.3'/%3E%3Ccircle cx='180' cy='110' r='1.3' opacity='.38'/%3E%3Ccircle cx='70' cy='200' r='1.2' opacity='.42'/%3E%3Ccircle cx='200' cy='190' r='1' opacity='.34'/%3E%3C/g%3E%3Ccircle cx='208' cy='72' r='22' fill='%23ee2a7b' fill-opacity='.2'/%3E%3Ccircle cx='218' cy='64' r='16' fill='%23140814'/%3E%3Cpath d='M40 230c40-24 80-24 120 0' fill='none' stroke='%23ee2a7b' stroke-opacity='.22' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2a1448, #120818 72%);
  background-size: 260px 260px, auto;
}
.msgs[data-wall="aurora"] {
  background-color: #061820;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='220' viewBox='0 0 280 220'%3E%3Cpath d='M-10 90 Q 50 30 110 88 T 230 80 T 300 100 V 220 H -10 Z' fill='%2322c55e' fill-opacity='.1'/%3E%3Cpath d='M-10 120 Q 70 60 140 118 T 300 110 V 220 H -10 Z' fill='%236228d7' fill-opacity='.12'/%3E%3Cpath d='M-10 150 Q 90 100 170 148 T 300 140 V 220 H -10 Z' fill='%23ee2a7b' fill-opacity='.08'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='24' cy='28' r='1.2' opacity='.45'/%3E%3Ccircle cx='90' cy='18' r='1' opacity='.35'/%3E%3Ccircle cx='160' cy='36' r='1.3' opacity='.4'/%3E%3Ccircle cx='230' cy='22' r='1.1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #06281f, #10244a 58%, #1a1038);
  background-size: 280px 220px, auto;
}
.msgs[data-wall="mars"] {
  background-color: #1a0a12;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Ccircle cx='50' cy='60' r='22' fill='none' stroke='%23ee2a7b' stroke-opacity='.22' stroke-width='2'/%3E%3Ccircle cx='50' cy='60' r='8' fill='%23ee2a7b' fill-opacity='.12'/%3E%3Ccircle cx='170' cy='40' r='14' fill='none' stroke='%23ee2a7b' stroke-opacity='.18' stroke-width='1.6'/%3E%3Ccircle cx='190' cy='150' r='28' fill='none' stroke='%23ee2a7b' stroke-opacity='.16' stroke-width='2'/%3E%3Ccircle cx='80' cy='180' r='10' fill='%23ee2a7b' fill-opacity='.1'/%3E%3Ccircle cx='30' cy='130' r='4' fill='%23fff' opacity='.12'/%3E%3Ccircle cx='140' cy='200' r='6' fill='%23fff' opacity='.08'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3a120c, #1a0a18);
  background-size: 240px 240px, auto;
}
.msgs[data-wall="ink"] {
  background-color: #07060f;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M40 50 L90 80 L130 40 L180 70 L220 48'/%3E%3Cpath d='M70 170 L110 140 L160 180 L200 150'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Ccircle cx='40' cy='50' r='2.2' opacity='.45'/%3E%3Ccircle cx='90' cy='80' r='1.6' opacity='.4'/%3E%3Ccircle cx='130' cy='40' r='2' opacity='.5'/%3E%3Ccircle cx='180' cy='70' r='1.5' opacity='.35'/%3E%3Ccircle cx='220' cy='48' r='2.1' opacity='.42'/%3E%3Ccircle cx='70' cy='170' r='1.8' opacity='.38'/%3E%3Ccircle cx='110' cy='140' r='2' opacity='.44'/%3E%3Ccircle cx='160' cy='180' r='1.6' opacity='.36'/%3E%3Ccircle cx='200' cy='150' r='2.2' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #0c0a18, #07060f);
  background-size: 260px 260px, auto;
}
.msgs[data-wall="feed"] { background: transparent; gap: 14px; }
.chat-live.club-feed .m.wall-post {
  max-width: 640px;
  width: 100%;
  align-self: center;
  margin: 0;
  background: var(--panel2);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.chat-live.club-feed .m.wall-post .pic,
.chat-live.club-feed .m.wall-post .clip {
  width: 100%;
  max-width: none;
  max-height: 460px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  margin: 8px 0 4px;
}
.chat-live.club-feed .who-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.chat-live.club-feed .who-row .av { width: 42px; height: 42px; flex: none; }
.chat-live.club-feed .m .who { color: var(--text); font-size: 15px; font-weight: 750; }
.chat-live.club-feed { width: auto; min-width: 0; }
.global-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.global-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.global-head h3 { margin: 0; flex: 1; }
.global-back {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(108, 92, 255, .22);
  color: inherit;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}
.person-back {
  position: fixed;
  z-index: 8;
  top: max(10px, env(safe-area-inset-top));
  left: max(12px, calc(50vw - 368px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(108, 92, 255, .22);
  color: inherit;
  display: grid;
  place-items: center;
  padding: 0;
}
:root[data-theme="light"] .person-back {
  background: #fff;
  color: #3d2ea8;
  border: 1px solid rgba(61, 46, 168, .28);
}
.global-block { margin-top: 14px; }
.global-block h4 { margin: 0 0 8px; }
.global-pane {
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 14px;
  background: var(--panel2);
}
.global-pane > .hint { margin: 0; padding: 12px; }
.global-pane .global-hit .hint { margin: 0; padding: 0; }
.list > .create-room { margin: 6px 16px 8px; width: calc(100% - 32px); }
.modal h4 { margin: 14px 0 8px; font-size: 13px; color: var(--mute); font-weight: 700; }
.global-hit {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--panel2);
  color: inherit;
  border-radius: 14px;
  padding: 8px;
  margin: 0 0 6px;
  cursor: pointer;
}
.global-hit .av { width: 40px; height: 40px; flex: none; }
.global-pane .global-hit {
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}
.look-sheet {
  width: min(560px, 100%) !important;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.look-sheet .sheet-bar { flex: none; }
.walls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: min(74vh, 760px);
  padding: 4px 2px 18px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.wall {
  width: 100%;
  height: 148px;
  border-radius: 18px;
  border: 3px solid transparent;
  padding: 0;
  touch-action: manipulation;
  background-size: cover;
  background-position: center;
}
.legal-sheet {
  width: min(720px, 100%) !important;
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
}
.legal-sheet .legal-return {
  width: 100%;
  margin-top: 12px;
  flex: none;
}
.legal-open {
  border: 0;
  background: none;
  color: var(--s);
  text-decoration: underline;
  font: inherit;
  font-weight: 700;
  padding: 8px 4px;
  min-height: 44px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.terms-row a, .gate .hint .legal-open { color: var(--s); }
.legal-body {
  overflow: auto;
  flex: 1;
  min-height: 40vh;
  padding: 4px 2px 24px;
  font-size: 16px;
  line-height: 1.5;
}
.legal-body h1 { font-size: 22px; margin: 0 0 12px; }
.legal-body h2 { font-size: 17px; margin: 20px 0 8px; }
.wall.on { border-color: var(--s); }
.wall.orbit {
  background-color: #120818;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cellipse cx='38' cy='18' rx='12' ry='5' fill='none' stroke='%23ee2a7b' stroke-opacity='.55' transform='rotate(-24 38 18)'/%3E%3Ccircle cx='38' cy='18' r='3' fill='%23ee2a7b'/%3E%3Ccircle cx='10' cy='12' r='1' fill='%23fff'/%3E%3Ccircle cx='18' cy='40' r='1.1' fill='%23fff'/%3E%3C/svg%3E"), radial-gradient(circle at 30% 20%, #3a1240, #120c30);
}
.wall.dusk {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Ccircle cx='36' cy='18' r='8' fill='%23ee2a7b' fill-opacity='.45'/%3E%3Ccircle cx='40' cy='15' r='6' fill='%232a1448'/%3E%3Ccircle cx='12' cy='14' r='1' fill='%23fff'/%3E%3Ccircle cx='20' cy='40' r='1.2' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(180deg, #2a1448, #120818);
}
.wall.aurora {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cpath d='M0 28 Q 14 14 27 28 T 54 26 V 54 H 0 Z' fill='%2322c55e' fill-opacity='.28'/%3E%3Cpath d='M0 36 Q 18 22 36 36 T 54 34 V 54 H 0 Z' fill='%236228d7' fill-opacity='.3'/%3E%3C/svg%3E"), linear-gradient(160deg, #06281f, #1a1038);
}
.wall.mars {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Ccircle cx='18' cy='18' r='8' fill='none' stroke='%23ee2a7b' stroke-opacity='.55'/%3E%3Ccircle cx='36' cy='34' r='6' fill='%23ee2a7b' fill-opacity='.25'/%3E%3C/svg%3E"), linear-gradient(180deg, #3a120c, #1a0a18);
}
.wall.ink {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cpath d='M10 16 L24 24 L38 12 L46 22' fill='none' stroke='%23fff' stroke-opacity='.35'/%3E%3Ccircle cx='10' cy='16' r='1.6' fill='%23fff'/%3E%3Ccircle cx='24' cy='24' r='1.4' fill='%23fff'/%3E%3Ccircle cx='38' cy='12' r='1.6' fill='%23fff'/%3E%3C/svg%3E"), linear-gradient(180deg, #0c0a18, #07060f);
}
.wall.ember, .msgs[data-wall="ember"] {
  background-color: #2a0c0a;
  background-image: radial-gradient(circle at 28% 18%, rgba(255, 120, 48, .45), transparent 38%), radial-gradient(circle at 80% 88%, rgba(180, 20, 40, .4), transparent 42%), linear-gradient(180deg, #5a180c, #1a0608);
}
.wall.frost, .msgs[data-wall="frost"] {
  background-color: #0b1a28;
  background-image: radial-gradient(circle at 20% 12%, rgba(180, 230, 255, .35), transparent 36%), radial-gradient(circle at 88% 80%, rgba(80, 140, 220, .28), transparent 40%), linear-gradient(180deg, #12344a, #07141f);
}
.wall.sage, .msgs[data-wall="sage"] {
  background-color: #102016;
  background-image: radial-gradient(circle at 30% 20%, rgba(140, 200, 140, .28), transparent 40%), linear-gradient(180deg, #1c3a28, #0c1810);
}
.wall.rose, .msgs[data-wall="rose"] {
  background-color: #2a1018;
  background-image: radial-gradient(circle at 70% 16%, rgba(255, 140, 170, .32), transparent 38%), linear-gradient(180deg, #4a1830, #180810);
}
.wall.ocean, .msgs[data-wall="ocean"] {
  background-color: #061820;
  background-image: radial-gradient(circle at 18% 80%, rgba(20, 160, 180, .28), transparent 42%), linear-gradient(160deg, #063040, #0a1830 55%, #061018);
}
.wall.sand, .msgs[data-wall="sand"] {
  background-color: #2a2214;
  background-image: radial-gradient(circle at 40% 10%, rgba(240, 200, 120, .28), transparent 36%), linear-gradient(180deg, #4a3818, #1c140c);
}
.wall.grape, .msgs[data-wall="grape"] {
  background-color: #1a1028;
  background-image: radial-gradient(circle at 80% 20%, rgba(160, 80, 220, .32), transparent 40%), linear-gradient(180deg, #2c1848, #12081c);
}
.wall.steel, .msgs[data-wall="steel"] {
  background-color: #12161c;
  background-image: linear-gradient(180deg, #2a323c, #101418);
}
.wall.mint, .msgs[data-wall="mint"] {
  background-color: #0c221c;
  background-image: radial-gradient(circle at 24% 24%, rgba(80, 230, 190, .28), transparent 38%), linear-gradient(180deg, #145040, #0a1814);
}
.wall.midnight, .msgs[data-wall="midnight"] {
  background-color: #070814;
  background-image: radial-gradient(circle at 50% 0%, rgba(60, 80, 180, .28), transparent 48%), linear-gradient(180deg, #101430, #05060e);
}
.wall.peach, .msgs[data-wall="peach"] {
  background-color: #2a1810;
  background-image: radial-gradient(circle at 70% 30%, rgba(255, 160, 110, .32), transparent 40%), linear-gradient(180deg, #5a3020, #1c100c);
}
.wall.forest, .msgs[data-wall="forest"] {
  background-color: #0c1810;
  background-image: radial-gradient(circle at 16% 70%, rgba(40, 120, 60, .35), transparent 44%), linear-gradient(180deg, #14301c, #081208);
}
.wall.gold, .msgs[data-wall="gold"] {
  background-color: #24180a;
  background-image: radial-gradient(circle at 30% 16%, rgba(249, 206, 52, .32), transparent 36%), linear-gradient(180deg, #3a2a0c, #140e08);
}
.wall.rain, .msgs[data-wall="rain"] {
  background-color: #101820;
  background-image: repeating-linear-gradient(-18deg, rgba(180, 210, 255, .08) 0 2px, transparent 2px 14px), linear-gradient(180deg, #1a2838, #0c1218);
}
.wall.coral, .msgs[data-wall="coral"] {
  background-color: #2a1014;
  background-image: radial-gradient(circle at 80% 70%, rgba(255, 90, 90, .28), transparent 42%), linear-gradient(180deg, #5a2030, #18080c);
}
.wall.fog, .msgs[data-wall="fog"] {
  background-color: #1c2024;
  background-image: radial-gradient(circle at 50% 40%, rgba(220, 228, 236, .18), transparent 50%), linear-gradient(180deg, #3a4048, #181c20);
}
.wall.berry, .msgs[data-wall="berry"] {
  background-color: #1c0814;
  background-image: radial-gradient(circle at 22% 24%, rgba(200, 40, 100, .35), transparent 40%), linear-gradient(180deg, #3a1028, #12080e);
}
.wall.lime, .msgs[data-wall="lime"] {
  background-color: #14200c;
  background-image: radial-gradient(circle at 60% 20%, rgba(180, 230, 60, .22), transparent 38%), linear-gradient(180deg, #28480c, #101808);
}
.wall.cocoa, .msgs[data-wall="cocoa"] {
  background-color: #1c100c;
  background-image: linear-gradient(180deg, #3a2418, #140c08);
}
.wall.polar, .msgs[data-wall="polar"] {
  background-color: #0e1820;
  background-image: radial-gradient(circle at 50% 8%, rgba(220, 240, 255, .28), transparent 42%), linear-gradient(180deg, #1c3040, #0a1218);
}
.wall.neon, .msgs[data-wall="neon"] {
  background-color: #140818;
  background-image: radial-gradient(circle at 20% 20%, rgba(238, 42, 123, .35), transparent 36%), radial-gradient(circle at 84% 80%, rgba(98, 40, 215, .4), transparent 42%), linear-gradient(180deg, #2a1038, #100818);
}
.wall.paper, .msgs[data-wall="paper"] {
  background-color: #e8dcc8;
  background-image: linear-gradient(180deg, #efe4d2, #d8c8b0);
}
.wall.twilight, .msgs[data-wall="twilight"] {
  background-color: #181028;
  background-image: radial-gradient(circle at 70% 10%, rgba(255, 140, 80, .22), transparent 36%), linear-gradient(180deg, #3a1850, #120c28 58%, #080610);
}
.counts {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}
.counts button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--panel2);
  padding: 10px 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  text-align: center;
  line-height: 1.15;
  box-sizing: border-box;
  overflow: hidden;
}
.counts b { font-size: 17px; color: var(--s); }
.counts span {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--mute);
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  padding: 0 6px;
  box-sizing: border-box;
}
.slim {
  padding: 8px 18px;
  min-height: 36px;
  border-radius: 999px;
  width: auto;
  max-width: 100%;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}
.post-box, .feed-card, .room-card { width: 100%; }
.post-box { display: grid; gap: 14px; padding: 12px 16px; }
.post-box textarea { width: 100%; border: 0; border-radius: 14px; background: var(--panel2); padding: 10px; min-height: 72px; }
.post-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-tools .primary { margin-left: auto; }
.post-media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.post-thumb { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--panel2); flex: none; }
.post-thumb img, .post-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(12, 8, 24, .72); color: #fff; font-size: 14px; line-height: 22px; padding: 0; cursor: pointer; }
.poll-chip { width: auto; min-width: 92px; max-width: 168px; padding: 10px 28px 10px 10px; font-size: 12px; font-weight: 700; color: #fff; background: var(--neon); display: flex; align-items: center; line-height: 1.25; }
.poll { display: grid; gap: 8px; width: 100%; min-width: 0; margin-top: 6px; }
.m .poll { min-width: 200px; }
.m:has(.poll) { min-width: min(78%, 260px); max-width: min(86%, 420px); }
.poll-q { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.3; }
.m .poll-q, .poll.wave-poll .poll-q { color: #fff; }
.poll-line { display: grid; gap: 6px; }
.poll-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  font-weight: 650;
}
.poll-faces { display: flex; justify-content: flex-end; padding: 0 4px; }
.poll-faces .re-faces { pointer-events: auto; }
.poll-faces .re-face { width: 22px; height: 22px; }
.m .poll-opt, .poll.wave-poll .poll-opt { color: #fff; background: rgba(255, 255, 255, .12); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--neon); opacity: .42; pointer-events: none; }
.poll-lab, .poll-pct, .poll-tick { position: relative; z-index: 1; }
.poll-lab { flex: 1; }
.poll-pct { font-size: 12px; font-weight: 700; opacity: .9; }
.poll-opt.on { box-shadow: inset 0 0 0 1.5px #ee2a7b; }
.poll-meta { font-size: 12px; color: var(--mute); }
.m .poll-meta, .poll.wave-poll .poll-meta { color: rgba(255, 255, 255, .72); }
.feed-card .poll, .my-post .poll { margin: 10px 0; }
.poll.wave-poll { margin: 10px 0 8px; padding: 12px; border-radius: 18px; background: rgba(12, 8, 24, .58); backdrop-filter: blur(14px); }
.poll-sheet { display: grid; gap: 12px; }
.poll-opts { display: grid; gap: 8px; }
.poll-in { width: 100%; }
.post-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.post-media-grid .pic, .post-media-grid video { width: 100%; max-width: none; max-height: 280px; object-fit: cover; }
.feed-card { position: relative; margin: 8px 16px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(124, 92, 255, .2), rgba(255, 91, 58, .12)); display: grid; gap: 12px; }
.feed-card .who { border: 0; background: none; color: var(--s); font-weight: 800; text-align: left; padding: 0; }
.row.gap, .person .row { display: flex; gap: 10px; flex-wrap: wrap; }
.create-room { margin: 12px 16px; }
.list > .create-room,
.folder-page > .create-room {
  display: block;
  box-sizing: border-box;
  margin: 6px 16px 8px;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
}
.room-edit { display: grid; gap: 8px; }
.room-edit .qr { width: 96px; height: 96px; object-fit: cover; }
.person { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; }
.day, .sys {
  align-self: center;
  font-size: 12px;
  color: var(--mute);
  background: var(--panel);
  padding: 3px 12px;
  border-radius: 12px;
  margin: 6px 0;
}
.m {
  max-width: min(75%, 460px);
  padding: 4px 8px 3px 10px;
  border-radius: 12px 12px 12px 4px;
  font-family: "Rubik", sans-serif;
  font-size: var(--msg, 16.5px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: normal;
  background: var(--wine);
  color: #fff;
  align-self: flex-start;
  position: relative;
  box-shadow: none;
  overflow-wrap: anywhere;
  min-width: 0;
  transition: padding .22s ease;
}
.m.me {
  align-self: flex-end;
  background: var(--neon-chat);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
  box-shadow: none;
}
.m-pack {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.m-main { flex: 1; min-width: 0; }
.m-row .m,
.m-row .m.me { align-self: center; }
.chat-live.club-feed .m-row .m.wall-post { flex: 1; margin-left: 0; margin-right: 0; }
.m.solo, .m.solo.me {
  background: transparent;
  box-shadow: none;
  padding: 2px 4px 0;
}
.m .txt.sticker {
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: 0;
}
.m.round, .m.round.me {
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.circle-slot { width: 220px; height: 220px; position: relative; flex: none; }
.circle-wrap {
  width: 220px;
  height: 220px;
  position: relative;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .36s cubic-bezier(.22, 1.05, .36, 1);
}
.circle-wrap.open {
  position: fixed;
  z-index: 40;
  transform: scale(var(--circle-zoom, 1.8));
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .38));
}
.circle-wrap, .circle-slot, .voice, video.clip { touch-action: pan-y; }
.circle-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 50%;
}
.circle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  visibility: hidden;
}
.circle-wrap.open:not([data-closing="1"]) .circle-ring { visibility: visible; }
.ring-track, .ring-prog {
  fill: none;
  stroke-width: 1.05;
  stroke-linecap: round;
}
.ring-track { stroke: rgba(108, 92, 255, .45); }
.ring-prog { stroke: var(--p); stroke-dasharray: 100; stroke-dashoffset: 100; }
.ring-hit { fill: none; stroke: none; }
.circle-slot .circle {
  position: absolute;
  inset: 8px;
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  display: block;
}
.circle-slot .circle.has-frame { background: transparent; }
.circle-slot .circle.has-frame video.is-shown { opacity: 1; }
.circle-slot .circle.ambient.has-frame .circle-play { opacity: 0; }
.circle-slot .circle.ambient.wait .circle-play { opacity: 1; }
.circle-slot .circle.ambient.wait .circle-play svg { opacity: 0; }
.circle-slot .circle canvas.hold {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  pointer-events: none;
}
.circle-slot .circle video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  pointer-events: none !important;
  transform: scaleX(-1);
  opacity: 0;
  background: transparent;
}
.circle-slot .circle video.is-shown { opacity: 1; }
.circle-slot .circle { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.circle-slot .circle-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .18);
}
.circle-slot .circle-play svg { width: 42px; height: 42px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45)); }
.circle-slot .circle.on .circle-play { opacity: 0; }
.circle-slot .circle.wait:not(.on) .circle-play svg { opacity: 0; }
.circle-slot .circle.wait:not(.on) .circle-play::after,
.pic-hold.wait::after,
.voice.wait .play::after,
.up-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
  animation: upspin .7s linear infinite;
}
.circle-slot .circle.wait:not(.on) .circle-play::after {
  border-color: rgba(255, 255, 255, .35);
  border-top-color: #fff;
}
.circle-slot .circle.wait:not(.on) .circle-play::after,
.pic-hold.wait::after,
.voice.wait .play::after { content: ""; display: block; }
.pic-hold { position: relative; display: inline-block; max-width: 100%; }
.pic-hold.wait::after {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -14px 0 0 -14px;
}
.voice.wait .play { position: relative; }
.voice.wait .play svg { opacity: 0; }
.voice.wait .play::after {
  position: absolute;
  inset: 2px;
  width: auto;
  height: auto;
  border-width: 2px;
}
.up-spin {
  width: 12px;
  height: 12px;
  border-width: 2px;
  display: inline-block;
  vertical-align: -1px;
}
@keyframes upspin { to { transform: rotate(360deg); } }
.e2e-mark, .e2e-dot { display: none !important; }
.hold-line {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 18px;
  background: var(--panel2);
  overflow: hidden;
}
.bar:not(.holding) .hold-line { display: none !important; }
.bar.holding #emoji,
.bar.holding #attach,
.bar.holding #later { display: none !important; }
.bar.holding #inp,
.bar.holding textarea {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 1px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  flex: none !important;
  resize: none !important;
}
.bar.holding #send { visibility: hidden; pointer-events: none; }
#mic, #mic:active {
  transition: none !important;
  transform: translateX(var(--rec-x, 0px));
}
#mic.rec-on,
#mic.rec-on:active {
  background: var(--p);
  color: #fff;
  border-radius: 50%;
  animation: rec-pulse 1.4s ease-out infinite;
  z-index: 3;
  transition: none !important;
  transform: translateX(var(--rec-x, 0px));
}
#mic.rec-on.is-cancel,
#mic.rec-on.is-cancel:active { background: #3d3480; }
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 92, 255, .55); }
  100% { box-shadow: 0 0 0 16px rgba(108, 92, 255, 0); }
}
.hold-line .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p);
  box-shadow: 0 0 10px var(--p);
  flex: none;
}
.hold-line #rec-time { flex: none; min-width: 36px; }
.hold-hint { flex: 1; min-width: 0; color: var(--mute); user-select: none; white-space: nowrap; }
.hold-line .rec-x, .hold-line .rec-go {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  min-height: 0;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.hold-line .rec-x { margin-left: auto; background: transparent; color: var(--danger); }
.hold-line .rec-go { background: var(--p); color: #fff; }
.bar.click-rec .hold-hint { display: none; }
.bar.click-rec .rec-x, .bar.click-rec .rec-go { display: inline-flex; }
.bar.holding.click-rec #mic,
.bar.holding.click-rec #circle { display: none !important; }
.hold-hint.is-cancel, .bar.is-cancel .dot { color: var(--danger); }
.bar.is-cancel .hold-line .dot { background: var(--danger); box-shadow: none; }
body.holding-rec, body.holding-rec .app, body.holding-rec .side, body.holding-rec .main, body.holding-rec .chat-live, body.holding-rec .msgs, body.holding-rec .list, body.holding-rec #list { touch-action: none !important; }
.circle-rec {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: transparent;
  transform: none;
  animation: none;
}
.circle-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(52vw, 220px);
  height: min(52vw, 220px);
}
.circle-rec-ring {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}
.circle-rec-ring .ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 3.2;
}
.circle-rec-ring .ring-prog {
  fill: none;
  stroke: var(--p);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.circle-stage video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: none;
  transform: scaleX(-1);
  transition: none;
  animation: none;
  position: relative;
  z-index: 0;
}
.circle-stage video.back { transform: none; }
.circle-flip {
  pointer-events: auto;
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 22, 33, .82);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.circle-rec.is-cancel .circle-rec-ring .ring-prog { stroke: var(--danger); }
.circle-rec.is-cancel .circle-rec-ring .ring-track { stroke: rgba(229, 57, 53, .35); }
#mic, #circle { touch-action: none; }
.m.ghostmsg { opacity: .75; font-style: italic; }
.m .t {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 11px;
  opacity: .72;
  text-align: right;
  margin: 0;
  flex: none;
  white-space: nowrap;
  line-height: 1;
  padding-bottom: 1px;
}
.m.solo .m-pack { align-items: flex-end; }
.m.solo .t { margin-top: 0; }
.m .reacts.in-bubble {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  max-width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease, margin .28s ease, opacity .2s ease;
}
.m .reacts.in-bubble.open,
.m.has-reacts .reacts.in-bubble {
  max-height: 48px;
  margin: 4px 0 1px;
  opacity: 1;
}
.m .reacts.in-bubble .re {
  position: static;
  right: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  color: inherit;
  font-size: 14px;
  line-height: 1.2;
  padding: 2px 4px 2px 6px;
  cursor: default;
}
.m .reacts.in-bubble .re button[data-act="react"] {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.re-faces { display: inline-flex; align-items: center; }
.re-face {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #2a2068;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex: none;
  display: inline-block;
  cursor: pointer;
}
.re-faces .re-face + .re-face { margin-left: -5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.re-more { font-size: 11px; font-weight: 700; padding: 0 2px; }
.engage button.has-faces, .wave-tools .react-pop .react.has-faces {
  width: auto;
  height: auto;
  min-height: 32px;
  border-radius: 999px;
  flex-direction: row;
  gap: 4px;
  padding: 4px 8px;
}
.re.bump, .react.bump, .ph-like.bump, .like.bump {
  transform-origin: center;
  animation-duration: .42s;
  animation-timing-function: cubic-bezier(.18, 1.45, .32, 1);
  animation-fill-mode: both;
}
.bump[data-motion="heart"] { animation-name: motion-heart; }
.bump[data-motion="love"] { animation-name: motion-love; }
.bump[data-motion="broken"] { animation-name: motion-broken; }
.bump[data-motion="up"] { animation-name: motion-up; }
.bump[data-motion="laugh"] { animation-name: motion-laugh; }
.bump[data-motion="fire"] { animation-name: motion-fire; }
.bump[data-motion="wow"] { animation-name: motion-wow; }
.bump[data-motion="clap"] { animation-name: motion-clap; }
.bump[data-motion="star"] { animation-name: motion-star; }
.bump[data-motion="rocket"] { animation-name: motion-rocket; }
.bump[data-motion="spark"] { animation-name: motion-spark; }
.bump[data-motion="sad"] { animation-name: motion-sad; }
.bump[data-motion="pray"] { animation-name: motion-pray; }
.bump[data-motion="party"] { animation-name: motion-party; }
.bump[data-motion="hundred"] { animation-name: motion-hundred; }
.bump[data-motion="think"] { animation-name: motion-think; }
.bump[data-motion="cool"] { animation-name: motion-cool; }
.bump[data-motion="hug"] { animation-name: motion-hug; }
.bump[data-motion="eyes"] { animation-name: motion-eyes; }
.bump[data-motion="shake"] { animation-name: motion-shake; }
@keyframes motion-heart { 0% { transform: scale(.4) rotate(-14deg); } 50% { transform: scale(1.28) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes motion-love { 0% { transform: scale(.55); } 35% { transform: scale(1.3); } 55% { transform: scale(.88); } 75% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes motion-broken { 0% { transform: scale(1.15) rotate(-8deg); } 40% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes motion-up { 0% { transform: translateY(3px) rotate(-16deg) scale(.8); } 55% { transform: translateY(-4px) rotate(6deg) scale(1.12); } 100% { transform: none; } }
@keyframes motion-laugh { 0% { transform: rotate(-14deg) scale(.85); } 35% { transform: rotate(12deg) scale(1.12); } 65% { transform: rotate(-6deg); } 100% { transform: none; } }
@keyframes motion-fire { 0% { transform: translateY(5px) scale(.75); } 55% { transform: translateY(-6px) scale(1.16); } 100% { transform: none; } }
@keyframes motion-wow { 0% { transform: scale(.45); } 60% { transform: scale(1.34); } 100% { transform: scale(1); } }
@keyframes motion-clap { 0% { transform: scale(.9); } 25% { transform: scale(1.22); } 45% { transform: scale(.86); } 70% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes motion-star { 0% { transform: rotate(-24deg) scale(.55); } 60% { transform: rotate(14deg) scale(1.2); } 100% { transform: none; } }
@keyframes motion-rocket { 0% { transform: translateY(7px) scale(.8); } 60% { transform: translateY(-8px) scale(1.08); } 100% { transform: none; } }
@keyframes motion-spark { 0% { transform: scale(.4) rotate(-12deg); opacity: .35; } 60% { transform: scale(1.28) rotate(10deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes motion-sad { 0% { transform: translateY(-3px) scale(1.05); } 60% { transform: translateY(3px) scale(.92); } 100% { transform: none; } }
@keyframes motion-pray { 0% { transform: rotate(10deg) scale(.9); } 55% { transform: rotate(-7deg) scale(1.08); } 100% { transform: none; } }
@keyframes motion-party { 0% { transform: rotate(-10deg) scale(.7); } 50% { transform: rotate(8deg) scale(1.2); } 100% { transform: none; } }
@keyframes motion-hundred { 0% { transform: scale(.55); } 50% { transform: scale(1.32); } 100% { transform: scale(1); } }
@keyframes motion-think { 0% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 100% { transform: none; } }
@keyframes motion-cool { 0% { transform: translateX(-5px) scale(.9); } 60% { transform: translateX(2px) scale(1.06); } 100% { transform: none; } }
@keyframes motion-hug { 0% { transform: scale(1.18); } 45% { transform: scale(.84); } 100% { transform: scale(1); } }
@keyframes motion-eyes { 0% { transform: scaleY(.15); } 40% { transform: scaleY(1.15); } 100% { transform: none; } }
@keyframes motion-shake { 0% { transform: translateX(-4px); } 35% { transform: translateX(4px); } 65% { transform: translateX(-2px); } 100% { transform: none; } }
.heart-burst {
  position: fixed;
  z-index: 90;
  width: 0;
  height: 0;
  pointer-events: none;
}
.heart-fly {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-size: calc(22px * var(--s, 1));
  line-height: 1;
  color: #e53935;
  text-shadow: 0 1px 0 #9b1b1b, 0 0 10px rgba(229, 57, 53, .45);
  animation: heart-fly var(--life, 1.9s) cubic-bezier(.22, .5, .28, 1) var(--d, 0ms) forwards;
  will-change: transform, opacity;
}
@keyframes heart-fly {
  0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 0; }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(var(--s, 1)) rotate(0); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(calc(var(--s, 1) * .9)) rotate(var(--rot)); opacity: 0; }
}
.heart-pop {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-size: 30px;
  line-height: 1;
  color: #e53935;
  text-shadow: 0 1px 0 #9b1b1b, 0 6px 14px rgba(180, 20, 40, .35);
  animation: heart-pop 1.15s cubic-bezier(.18, 1.2, .32, 1) forwards;
}
@keyframes heart-pop {
  0% { transform: translate(-50%, -50%) scale(.35); opacity: 0; }
  28% { transform: translate(-50%, -50%) scale(1.22); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(.95); opacity: 0; }
}
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.device-row p { margin: 2px 0 0; }
.ph-like {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.ph-like.on { color: #ff5b8a; }
.shot { position: relative; }
.msgs, .msgs *, .list, .list *, .hold-lift, .hold-lift *, .menu, .menu * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent;
}
.m .who { font-size: 12px; font-weight: 750; margin-bottom: 1px; border: 0; background: none; padding: 0; cursor: pointer; }
.m .more {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.m:hover .more, .m:focus-within .more { opacity: .75; }
.quote, .fwd {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0 0 4px;
  padding: 4px 8px 4px 4px;
  min-height: 26px;
  max-height: none;
  border: 0;
  border-radius: 14px;
  background: var(--wine);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.m.me .quote, .m.me .fwd { background: var(--wine); }
.quote-av {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  flex: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: color-mix(in srgb, var(--wine) 70%, #000);
}
.quote-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  overflow: hidden;
}
.quote b, .fwd, .replybar b {
  display: block;
  flex: none;
  color: #ffd0da;
  font-size: 12px;
  font-weight: 700;
}
.quote-txt, .replybar span {
  min-width: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 500;
}
.quote-txt {
  white-space: pre-wrap;
  overflow: auto;
  text-overflow: unset;
  max-height: 140px;
  word-break: break-word;
  line-height: 1.3;
}
.quote-media .pic, .quote-media .clip, .replybar .quote-pic {
  display: block;
  max-width: 112px;
  max-height: 80px;
  border-radius: 10px;
  object-fit: cover;
}
.quote.quote-image, .quote.quote-circle, .replybar.quote-image, .replybar.quote-circle {
  align-items: center;
}
.quote .circle-slot, .quote .circle-wrap, .replybar .circle-slot, .replybar .circle-wrap {
  width: 72px;
  height: 72px;
}
.quote .circle-slot .circle-play svg, .replybar .circle-slot .circle-play svg {
  width: 22px;
  height: 22px;
}
.replybar.quote-circle, .replybar.quote-image { max-height: none; overflow: visible; }
.replybar .quote-av { width: 22px; height: 22px; margin-top: 0; }
.replybar .quote-copy { min-width: 0; flex: 1; }
.replybar .quote-txt { max-height: 72px; }
.replybar #reply-x {
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  color: #fff;
}
  background: rgba(255, 255, 255, .16);
  color: inherit;
  flex: none;
  display: grid;
  place-items: center;
}
.voice .play svg { width: 16px; height: 16px; display: none; pointer-events: none; }
.voice .play .ico-play { display: block; margin-left: 2px; }
.voice.on .play .ico-play { display: none; }
.voice.on .play .ico-pause { display: block; }
.voice .wave {
  position: relative;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .72) 0 2px, transparent 2px 6px);
  opacity: .9;
}
:root[data-theme="light"] .voice .wave {
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .72) 0 2px, transparent 2px 6px);
}
.voice .wave b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border: 0;
  background: rgba(108, 92, 255, .45);
}
.voice audio { display: none !important; width: 0; height: 0; }
.clip {
  display: block;
  width: min(260px, 70vw);
  max-height: 220px;
  border-radius: 12px;
  margin-bottom: 4px;
  background: #000;
}
.pic { display: block; max-width: 240px; max-height: 240px; border-radius: 12px; margin-bottom: 4px; cursor: zoom-in; }
.file {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, .15);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 4px;
}
.file button { border: 0; background: var(--s); color: #3a2a00; border-radius: 8px; padding: 4px 8px; font-weight: 700; }
.bar {
  display: flex;
  gap: 2px;
  padding: 8px 10px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  align-items: flex-end;
  position: relative;
  z-index: 2;
}
.bar .ib { width: 48px; height: 48px; }
.bar .ib svg { width: 30px; height: 30px; }
#mic .ico-circle { display: none; }
#mic.is-circle .ico-voice { display: none; }
#mic.is-circle .ico-circle { display: block; }
#circle { display: none !important; }
.bar textarea, .bar #inp {
  flex: 1;
  min-width: 0;
  border: 0;
  background: var(--panel2);
  color: var(--text);
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 18px;
  font-family: "Rubik", sans-serif;
  font-size: var(--msg, 16.5px);
  font-weight: 700;
  letter-spacing: normal;
  outline: 0;
  resize: none;
  max-height: 140px;
  line-height: 1.45;
}
.bar #inp {
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
  -webkit-user-modify: read-write-plaintext-only;
  caret-color: var(--text);
  scroll-margin: 0;
  scroll-margin-block: 0;
}
.bar #inp:empty:before {
  content: attr(data-placeholder);
  color: var(--mute);
  pointer-events: none;
}
.send {
  border: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--neon-chat);
  color: #fff;
  flex: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  padding: 0;
}
.send svg { display: block; width: 32px; height: 32px; overflow: visible; }
.send:disabled { opacity: .45; cursor: default; }
.rec .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5470;
  box-shadow: 0 0 10px #ff5470;
  animation: badge-burn 1.2s infinite;
}
.jump {
  position: absolute;
  right: 16px;
  bottom: 84px;
  z-index: 4;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
}
.empty, .empty-msgs {
  margin: auto;
  text-align: center;
  color: var(--mute);
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 24px;
}
.empty h2, .cover h2 { font-weight: 600; color: var(--text); letter-spacing: -.3px; }
.cover { align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; overflow: auto; }
.cover.reading { align-items: stretch; justify-content: flex-start; text-align: left; }
.cover.reading .profile-stage { width: min(640px, 100%); margin: 0 auto; justify-items: stretch; }
.dock {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 16px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #1c1848 0%, #12102e 100%);
}
.dock h2 { font-size: 20px; font-weight: 700; }
.who-row { display: flex; gap: 10px; align-items: center; text-align: left; }
button.who-row { border: 0; background: none; color: inherit; width: 100%; cursor: pointer; padding: 0; }
body:has(#gate:not([hidden])) .notices { display: none; }
.feed-card .av { width: 40px; height: 40px; }
.cover p, .hint { color: var(--mute); font-size: 13px; line-height: 1.45; }

.profile-view {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: none;
  touch-action: pan-y;
  padding: 12px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  text-align: left;
}
.profile-view h3 { font-size: 12px; color: var(--mute); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; margin-top: 18px; }
.me-head { display: flex; gap: 22px; align-items: flex-start; text-align: left; }
.me-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding-top: 6px; }
.me-head .pav { margin: 0; width: 72px; height: 72px; flex: none; }
.me-head .nm { font-size: 18px; font-weight: 750; }
.me-head .handle, .me-head .live-line, .me-head .photo-hint { text-align: left; }
.me-head .photo-hint { margin-top: 4px; line-height: 1.35; }
.me-head .slim { margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery img, .shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.shot { border: 0; padding: 0; background: none; border-radius: 10px; position: relative; cursor: pointer; }
.my-post { position: relative; text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
button.my-post, button.post-body { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.my-post p { white-space: pre-wrap; }
.own-preview { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; display: block; margin: 8px 0; }
.own-piece .modal-actions { flex-wrap: wrap; }
.pav {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 32px;
  font-weight: 750;
  position: relative;
  overflow: visible;
  margin: 8px auto 0;
  background-color: #2a2068;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.pav.on::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  background: #3ddc84;
  border: 3px solid var(--panel);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(20, 18, 63, .35);
  animation: online-dot 1.8s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
.live-line { text-align: left; color: var(--s); font-weight: 750; font-size: 13px; }
.profile-view label, .modal label { display: grid; gap: 8px; font-size: 12px; color: var(--mute); font-weight: 650; text-align: left; }
.switch {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  font-size: 15px !important;
  color: var(--text) !important;
  text-align: left;
}
.switch span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.switch input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 26px;
  margin: 0 0 0 auto;
  padding: 0;
  flex: 0 0 46px;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  position: relative;
}
.switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s ease;
}
.switch input[type="checkbox"]:checked { background: var(--neon); }
.switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; }
.swatches button.on { border-color: #fff; }
.primary, .ghost, .danger {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.primary { background: var(--neon); color: #fff; box-shadow: none; }
.primary:hover { filter: brightness(1.06); }
.ghost { background: var(--wine); color: #fff; }
.ghost:hover { background: #4a1b52; }
a.ghost { display: grid; place-items: center; text-decoration: none; color: #fff; }
.danger { background: var(--danger); color: #fff; }
.profile-view a.ghost, .profile-view .danger {
  display: grid;
  place-items: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.call-actions { justify-content: center; flex-wrap: wrap; }
.call-actions button { border-radius: 999px; min-width: 108px; }

.story-card {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 16px;
}
.story-card:hover { background: var(--panel2); }
.story-card .pl { width: 52px; height: 52px; margin: 0; flex: none; }
.story-card p { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.overlay, .story-layer, .boot {
  position: fixed;
  inset: 0;
  left: 0;
  z-index: 46;
  background: rgba(6, 5, 24, .72);
  display: grid;
  place-items: center;
  padding: 16px;
}
.overlay { z-index: 80; }
.story-layer { background: rgba(5, 4, 20, .88); z-index: 48; }
body:has(.app.waves-mode) .overlay,
body:has(.app.waves-mode) .story-layer,
body:has(#gate:not([hidden])) .overlay,
body:has(#boot:not([hidden])) .overlay { left: 0; }
.boot { left: 0; background: var(--bg); z-index: 120; text-align: center; gap: 12px; }
.boot-spin {
  width: 34px;
  height: 34px;
  margin: 4px auto 0;
  border: 3px solid rgba(255, 255, 255, .16);
  border-top-color: #ee2a7b;
  border-radius: 50%;
  animation: boot-spin .7s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
.gate {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gate-card {
  width: min(420px, 100%);
  max-height: 100%;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#gate-logo { display: flex; justify-content: center; flex: none; }
.gate-card .brand { text-align: center; flex: none; }
.gate-card .brand { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.gate-card label { width: 100%; display: grid; gap: 8px; font-size: 12px; color: var(--mute); font-weight: 650; }
.gate-card h3, .gate-card .hint, .code-slip { width: 100%; }
.gate-lang { display: grid; gap: 6px; font-size: 12px; color: var(--mute); font-weight: 650; }
.gate-lang select, .gate-card input, .gate-card textarea {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
.gate-card input, .gate-card textarea, .gate-lang select { font-size: 16px; }
.gate-card input:focus, .gate-card textarea:focus, .gate-lang select:focus { border-color: var(--p); }
.gate-card .modal-tabs { width: 100%; }
.gate-card .modal-tabs button { flex: 1; text-align: center; border-radius: 999px; padding: 10px 14px; white-space: normal; line-height: 1.2; }
.gate-card .modal-tabs button.on { background: var(--neon); color: #fff; }
#gate-fields {
  width: 100%;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.gate-card .gate-lang, .gate-card .modal-tabs, .gate-error { flex: none; }
.gate-error { min-height: 0; color: var(--danger); width: 100%; }
.gate-error:empty { display: none; }
.gate-actions {
  width: 100%;
  display: grid;
  gap: 12px;
  flex: none;
  background: var(--panel);
}
.gate-actions .primary, .gate-actions .ghost { width: 100%; }
.text-link {
  border: 0;
  background: transparent;
  color: var(--s);
  font-weight: 650;
  padding: 6px 0 0;
  width: 100%;
  text-align: center;
}
.gate-support {
  display: block;
  text-align: center;
  color: var(--mute);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 8px 8px 2px;
}
.gate-support:hover { color: var(--ink); }
.gate-card label.remember {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.gate-card label.remember input { width: 18px; height: 18px; margin: 0; flex: none; }
.terms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.terms-row label.remember { width: auto; }
.terms-row a { color: var(--s); }
[data-move-shelf] {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: var(--panel2);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 8px;
  font-weight: 700;
}
[data-move-shelf].on { background: var(--neon); color: #fff; }
.recovery {
  background: rgba(255, 106, 61, .12);
  border: 1px solid rgba(255, 106, 61, .45);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.code-slip {
  width: 100%;
  background: var(--panel2);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}
.code-slip b { display: block; letter-spacing: .28em; font-size: 22px; margin-top: 6px; }
.setup-photo {
  width: 84px;
  height: 84px;
  justify-self: center;
  border-radius: 50%;
  border: 0;
  background: var(--panel2);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 28px;
}
.setup-photo img { width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="light"] body {
  background:
    radial-gradient(900px 480px at -10% -20%, rgba(255, 91, 58, .16), transparent 55%),
    radial-gradient(800px 520px at 110% -10%, rgba(124, 92, 255, .18), transparent 50%),
    var(--bg);
}
:root[data-theme="light"] .side { background: linear-gradient(180deg, #fff, #f4f2ff); }
:root[data-theme="light"] .dock { background: #fff; }
.lang-select select { min-height: 36px; font-size: 14px; font-weight: 650; }
.handle { text-align: left; font-weight: 750; font-size: 14px; color: var(--mute); }
.photo-hint { text-align: left; margin: 0; }
.qr {
  width: 112px;
  height: 112px;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
}
.pav { cursor: pointer; box-shadow: 0 10px 24px rgba(124, 92, 255, .35); }
.pav.sealed { cursor: default; pointer-events: none; }
.closed-note { margin: 8px 0 0; color: var(--mute); font-weight: 700; }
.person-hit { border-left: 3px solid var(--s); }
.person-hit .nick { color: var(--s); font-size: 12px; font-weight: 750; }
.facts { display: grid; gap: 8px; margin: 8px 0; }
.facts div { background: var(--panel2); border-radius: 12px; padding: 8px 10px; }
.facts dt { color: var(--mute); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { font-size: 15px; }
.person-page.modal {
  width: min(760px, 100%);
  max-height: none;
  height: auto;
  min-height: 100%;
  margin: 0 auto;
  overflow: visible;
  border-radius: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: none;
  padding: 12px 22px 48px;
}
.overlay:has(.person-page) {
  display: block;
  padding: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  background: var(--bg);
  height: 100%;
  max-height: 100dvh;
}
.person-page .me-head { width: 100%; }
.person-page .me-head .pav { width: 96px; height: 96px; margin: 0; font-size: 32px; }
.person-page .me-head .nm, .person-page .me-head .handle { text-align: left; }
.person-page .nm { font-size: 26px; font-weight: 750; }
.person-page h3 { font-size: 12px; color: var(--mute); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; margin: 22px 0 10px; }
.person-page .qr { width: 112px; height: 112px; margin-top: 8px; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.social-row > .primary,
.social-row > .ghost,
.social-row > .danger {
  flex: 1 1 calc(50% - 10px);
  min-width: min(100%, 160px);
  padding: 12px 24px;
  text-align: center;
}
.modal-actions > .primary,
.modal-actions > .ghost,
.modal-actions > .danger,
.modal .social-row > .primary,
.modal .social-row > .ghost,
.modal .social-row > .danger {
  padding-left: 26px;
  padding-right: 26px;
}
.wave-tile b {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal-actions .primary { flex: 1; }
.scan-card { display: grid; gap: 10px; justify-items: center; }
.scan-frame {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 3px var(--s), 0 16px 40px rgba(255, 209, 92, .25);
}
.scan-frame video { width: 100%; height: 100%; object-fit: cover; }
.profile-stage { width: min(460px, 100%); display: grid; gap: 16px; justify-items: center; }
.profile-stage.sheet, .cover.reading .profile-stage.sheet { width: min(640px, 100%); justify-items: stretch; text-align: left; }
.modal, .story-card-view, .call-card {
  width: min(440px, 100%);
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  max-height: min(86vh, 720px);
  overflow: auto;
}
.modal.look-sheet {
  overflow: hidden;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
}
.modal h3, .call-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 10px; }
.modal-tabs, .modal-actions, .call-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; max-width: 100%; }
.modal-actions > *, .call-actions > * { min-width: 0; max-width: 100%; }
.modal-tabs button, .person, .menu button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.modal-tabs button { padding: 8px 14px; border-radius: 999px; color: var(--mute); font-weight: 700; white-space: normal; line-height: 1.2; text-align: center; }
.modal-tabs button.on { background: var(--neon); color: #fff; }
.person {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
}
.person:hover, .menu button:hover { background: var(--panel2); }
.person .av { width: 36px; height: 36px; }
.checks { display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.room-sheet {
  background: linear-gradient(180deg, #1a0b24 0%, #3a1240 48%, #24143f 100%);
  border: 0;
  color: #fff;
}
.room-sheet h3, .room-sheet .member-name b { color: #fff; }
.room-sheet .hint, .room-sheet .tm { color: #f6c3d6; }
.room-sheet .modal-tabs button.on,
.room-sheet .primary {
  background: linear-gradient(90deg, #ee2a7b, #9b2ad4 52%, #6228d7);
  color: #fff;
  border-radius: 999px;
}
.room-sheet .primary:hover { filter: brightness(1.06); }
.room-sheet .room-add { width: 100%; margin: 0 0 8px; }
.room-sheet .checks { max-height: min(42vh, 360px); }
.room-sheet .member-main,
.room-sheet .pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 0;
}
.room-sheet .member-row { align-items: center; padding: 8px 10px 8px 6px; background: rgba(255, 255, 255, .08); border-radius: 22px; }
.room-sheet .member-row:hover, .room-sheet .pick:hover { background: rgba(255, 255, 255, .12); }
.room-sheet .member-name { display: grid; min-width: 0; }
.room-sheet .member-name b { font-size: 15px; font-weight: 700; }
.room-sheet .face {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  background-color: #3a1240;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.room-sheet .pick.on .face { box-shadow: 0 0 0 2px #1a0b24, 0 0 0 4px #ee2a7b; }
.room-sheet .room-face { width: 84px; height: 84px; margin: 2px auto 8px; font-size: 28px; cursor: pointer; }
.room-sheet .room-face-pick { display: grid; justify-items: center; }
.room-sheet .room-edit { justify-items: stretch; }
.room-sheet .room-top { display: grid; justify-items: center; text-align: center; gap: 4px; }
.room-sheet .room-top h3 { margin: 0; }
.room-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 12px;
  scrollbar-width: none;
}
.room-actions::-webkit-scrollbar, .room-tabs::-webkit-scrollbar { display: none; }
.room-act {
  flex: 0 0 auto;
  min-width: 84px;
  max-width: 132px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 18px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
.room-act span { color: #f6c3d6; }
.room-act.on {
  background: linear-gradient(135deg, #ee2a7b, #9b2ad4 52%, #6228d7);
}
.room-act.on span { color: #fff; }
.sheet-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; }
.sheet-bar h3 { margin: 0 !important; flex: 1; min-width: 0; text-align: left; }
.sheet-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  flex: none;
}
.room-sheet .sheet-back { background: rgba(255, 255, 255, .12); color: #fff; }
.story-top .sheet-back, .lightbox-back, .photo-view .sheet-back {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.overlay > .lightbox-back {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 2;
}
.room-sheet .member-row { flex-wrap: nowrap; gap: 8px; align-items: center; min-height: 56px; }
.room-sheet .person.member-row { padding: 6px 8px 6px 6px; }
.room-sheet .member-main { flex: 1 1 auto; min-width: 0; align-self: center; }
.room-sheet .member-block { width: 100%; min-width: 0; }
.room-sheet .member-extra { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 6px 58px; }
.member-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
  align-self: center;
  height: 48px;
  padding: 0;
}
.member-tool {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  place-content: center;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  line-height: 0;
}
.member-tool svg {
  display: block;
  margin: 0 auto;
  flex: none;
}
.member-tool.danger { background: rgba(229, 57, 53, .22); color: #ff8a80; }
.room-invite { display: grid; gap: 10px; min-width: 0; }
.room-invite .room-q {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  padding: 12px 14px;
}
.room-invite .checks { max-height: min(46vh, 420px); }
.room-invite .primary { width: 100%; border-radius: 999px; }
.room-invite .primary:disabled { opacity: .45; }
.friend-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 4px;
  border-radius: 16px;
  color: inherit;
}
.friend-pick input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(246, 195, 214, .85);
  background: transparent;
  margin: 0;
  flex: none;
  display: grid;
  place-items: center;
}
.friend-pick input:checked {
  background: linear-gradient(135deg, #ee2a7b, #9b2ad4 52%, #6228d7);
  border-color: transparent;
}
.friend-pick input:checked::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}
.room-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  touch-action: pan-x;
}
.room-tabs button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .08);
  color: #f6c3d6;
  font-weight: 700;
}
.room-sheet .room-tabs button.on {
  background: linear-gradient(90deg, #ee2a7b, #9b2ad4 52%, #6228d7);
  color: #fff;
}
.bottom-nav button svg { width: 22px; height: 22px; }
.hold-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 10, 16, .55);
  backdrop-filter: blur(28px) saturate(.55);
  -webkit-backdrop-filter: blur(28px) saturate(.55);
}
.hold-lift {
  position: fixed;
  z-index: 72;
  margin: 0 !important;
  pointer-events: none;
  filter: none !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .45);
}
.hold-lift .hold-frame { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu {
  position: fixed;
  z-index: 76;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 210px;
  max-height: min(70dvh, calc(100dvh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .35);
  transform-origin: top left;
  animation: menu-pop .18s ease;
}
@keyframes menu-pop {
  from { transform: scale(.9); opacity: .55; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes ui-shake {
  0% { transform: scale(1); }
  28% { transform: scale(.96) translateX(-2px); }
  52% { transform: scale(1.02) translateX(2px); }
  76% { transform: scale(.99) translateX(-1px); }
  100% { transform: scale(1) translateX(0); }
}
.ui-bump { animation: ui-shake .32s ease; }
button, a, .chat, .list, .nav, .bottom-nav, .tabs, .stories, .msgs, .menu, .nav *, .bottom-nav * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.menu button { display: block; width: 100%; border-radius: 999px; padding: 11px 14px; font-size: 15px; }
.menu button.danger { color: var(--danger); }
.reacts { display: flex; gap: 4px; padding: 4px; align-items: center; }
.reacts button { border: 0; background: var(--panel2); border-radius: 10px; padding: 4px 8px; font-size: 20px; }
.reacts.extra { flex-wrap: wrap; max-width: 280px; }
.react-next { width: 28px; min-width: 28px; padding: 4px 0; font-size: 22px; line-height: 1; }
.voice .transcribe {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 0 2px;
  opacity: .8;
}
.voice .transcribe.busy { opacity: .35; }

.story-frame {
  width: min(420px, 100%);
  height: min(78vh, 720px);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #fff;
  overflow: hidden;
}
.bars { display: flex; gap: 4px; }
.bars i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.bars i em { display: block; height: 100%; width: 0; background: #fff; }
.bars i.done em { width: 100%; }
.bars i.now em { animation: load 5.6s linear forwards; }
.story-top { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.story-who { display: flex; align-items: center; gap: 10px; flex: 1; border: 0; background: none; color: inherit; padding: 0; text-align: left; cursor: pointer; }
.story-top .av { width: 36px; height: 36px; }
.story-body { flex: 1; display: grid; place-items: center; text-align: center; font-size: 26px; font-weight: 650; letter-spacing: -.4px; line-height: 1.25; padding: 16px; position: relative; min-height: 0; }
.story-body img, .story-body video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; background: #000; }
.story-caption { position: relative; z-index: 2; margin-top: 8px; font-size: 15px; font-weight: 700; text-align: left; }
.story-actions { display: flex; gap: 8px; }
.story-top, .story-actions, .bars { position: relative; z-index: 2; }
.hit {
  position: absolute;
  top: 48px;
  bottom: 64px;
  width: 35%;
  border: 0;
  background: transparent;
}
.hit.right { right: 0; }
.hit.left { left: 0; }
.call-card { text-align: center; display: grid; justify-items: center; gap: 8px; width: min(520px, 100%); }
.overlay:has(.call-screen),
.overlay.call-live {
  display: block !important;
  padding: 0 !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  place-items: stretch;
  background: #000;
  overflow: hidden;
}
.call-card.call-screen,
.call-screen {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 100%;
  margin: 0;
  display: block;
  padding: 0;
  background: radial-gradient(120% 70% at 50% 0%, #2b5278 0%, #0e1621 58%);
  color: #fff;
}
.call-screen .call-peer {
  position: absolute;
  top: calc(52px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.call-screen .call-peer h3 { font-size: 26px; font-weight: 600; }
.call-screen .call-peer .hint { color: rgba(255,255,255,.72); }
.call-card .av, .call-screen .av { width: 112px; height: 112px; font-size: 42px; border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.call-stage {
  background: #000;
}
.call-card.call-screen,
.call-screen {
  position: absolute;
  inset: 0;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  min-height: 100%;
  margin: 0;
  display: block;
  padding: 0;
  background: radial-gradient(120% 70% at 50% 0%, #2b5278 0%, #0e1621 58%);
  color: #fff;
  overflow: hidden;
}
.call-screen.has-video {
  background: #000;
}
.call-screen > #remote-video,
.call-screen > #local-video.local-full,
.call-screen > .remote-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}
.call-screen > #local-video {
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}
.call-screen .call-peer {
  position: absolute;
  top: calc(52px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.call-screen .call-peer h3 { font-size: 26px; font-weight: 600; }
.call-screen .call-peer .hint { color: rgba(255,255,255,.72); }
.call-card .av, .call-screen .av { width: 112px; height: 112px; font-size: 42px; border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.call-screen.has-video .call-peer .av { display: none; }
.call-screen.has-video .call-peer { pointer-events: none; text-shadow: 0 1px 10px rgba(0,0,0,.75); }
.m.call-log {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(78%, 320px);
  padding: 6px 10px 5px;
  background: var(--wine);
  color: #fff;
}
.m.call-log.me { background: var(--neon-chat); }
.m.call-log.miss { opacity: .92; }
.call-log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.call-log-ico {
  width: 22px;
  height: 22px;
  flex: none;
  opacity: .95;
}
.call-log-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.call-log-copy b {
  font-size: 14px;
  font-weight: 700;
}
.call-log-copy span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
}
.m.call-log .t { margin: 0; flex: none; }
.later-x {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
}
.later-clock { opacity: .85; font-size: 13px; }
.call-screen > #local-video.local-full {
  z-index: 1;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}
.call-screen > #local-video.local-pip,
.call-screen > .local-pip {
  position: absolute;
  inset: auto !important;
  right: 16px !important;
  bottom: calc(148px + env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  width: 28% !important;
  max-width: 132px;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, .55);
  background: #111;
  z-index: 5;
  pointer-events: none;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
}
.call-screen > #local-video.is-off { opacity: 0; width: 0 !important; height: 0 !important; }
.call-fabs, .call-screen .call-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  background: none;
  padding: 8px 6px 4px;
}
.call-actions.incoming {
  justify-content: space-around;
  padding: 8px 28px 18px;
}
.call-screen .call-actions button,
.call-fab {
  position: relative;
  overflow: visible;
  width: auto;
  min-width: 64px;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.call-fab-ico {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 46, 50, .78);
  color: #fff;
  overflow: hidden;
}
.call-actions.incoming .call-fab-ico {
  width: 72px;
  height: 72px;
}
.call-fab svg { width: 26px; height: 26px; }
.call-actions.incoming .call-fab svg { width: 30px; height: 30px; }
.call-fab-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}
.call-slash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.call-slash::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 3px;
  height: 72%;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%) rotate(-38deg);
  box-shadow: 0 0 0 1.5px rgba(20, 24, 32, .45);
}
.call-fab.hang .call-fab-ico,
.call-fab.decline .call-fab-ico { background: #e53935; color: #fff; }
.call-fab.accept .call-fab-ico { background: #34c759; color: #fff; }
.call-fab.off .call-fab-ico { background: #f2f2f7; color: #1c1c1e; }
.call-fab:active:not(:disabled) .call-fab-ico { transform: scale(.94); }
#call-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: radial-gradient(120% 70% at 50% 0%, #2b5278 0%, #0e1621 58%);
  color: #fff;
  display: block;
}
#call-layer[hidden] { display: none !important; }
#call-layer.has-video { background: #000; }
#call-layer > #remote-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(148px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #000;
  z-index: 0;
  pointer-events: none;
}
#call-layer > #remote-stage > #remote-video,
#call-layer > #remote-stage > #remote-relay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  pointer-events: none;
}
#call-layer > #remote-stage > #remote-relay {
  z-index: 1;
  display: block;
}
#call-layer > #remote-stage > #remote-relay[hidden] { display: none; }
#call-layer > #local-video {
  position: absolute;
  z-index: 5;
  width: 0;
  height: 0;
  opacity: 0;
  transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  pointer-events: none;
  object-fit: cover;
  background: #111;
}
#call-layer > #local-video.local-full {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}
#call-layer > #local-video.local-pip {
  inset: auto;
  right: 16px;
  bottom: calc(148px + env(safe-area-inset-bottom));
  width: 28%;
  max-width: 132px;
  height: auto;
  opacity: 1;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .55);
}
#call-layer > #local-video.is-off { opacity: 0; width: 0; height: 0; }
#call-layer #call-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
#call-layer .call-screen {
  background: transparent !important;
  pointer-events: none;
}
#call-layer .call-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  pointer-events: auto;
}
#call-layer .call-peer {
  position: absolute;
  top: calc(72px + env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
#call-layer .call-peer h3 { font-size: 26px; font-weight: 600; }
#call-layer .call-peer .hint { color: rgba(255,255,255,.72); }
#call-layer .av {
  width: 112px;
  height: 112px;
  font-size: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
#call-layer.has-video .call-peer .av { display: none; }
#call-layer.has-video .call-peer { text-shadow: 0 1px 10px rgba(0,0,0,.75); }
#call-layer button {
  pointer-events: auto;
}
.file-link {
  background: var(--panel2);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
}
.pulse-ring { animation: orbit-burn 1.4s ease-in-out infinite; }
.pop {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 16px));
  max-height: min(380px, 52vh);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.pop-tabs { display: flex; gap: 6px; flex: none; }
.pop-tabs button { width: auto; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--mute); }
.pop-tabs button.on { background: var(--neon); color: #fff; }
.pop-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; overflow: auto; min-height: 0; }
.pop button { border: 0; background: transparent; font-size: 22px; width: 36px; height: 40px; border-radius: 8px; }
.pop-grid button { width: 100%; }
.pop.stickers .pop-grid { grid-template-columns: repeat(4, 1fr); }
.pop.stickers .pop-grid button { height: 72px; font-size: 46px; }
.pop button:hover { background: var(--panel2); }
.pop .pop-tabs { gap: 8px; }
.pop .pop-tabs button {
  width: auto;
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 34px;
  white-space: nowrap;
  overflow: visible;
}
.help {
  position: relative;
  flex: none;
  display: flex;
}
.help[hidden] { display: none; }
#help-fab {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.help-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: min(300px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  text-align: left;
}
.help-card h3 { font-size: 16px; font-weight: 750; margin-bottom: 8px; }
.help-card p { color: var(--text); font-size: 14px; line-height: 1.5; }
.help-card b { color: var(--s); }
body:has(#gate:not([hidden])) .help { display: none; }
body:has(#wave-editor:not([hidden])) .help { display: none; }
.tab-back {
  position: fixed;
  z-index: 82;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
}
.tab-back:hover { background: #4a1b52; }
:root[data-theme="light"] .tab-back {
  background: var(--wine);
  color: #fff;
  border: 0;
  box-shadow: none;
}
:root[data-theme="light"] .tab-back:hover { background: #4a1b52; }
@media (max-width: 760px) {
  body:has(#tab-back:not([hidden])):not(:has(.app.open)):not(:has(#gate:not([hidden]))):not(:has(#boot:not([hidden]))) .app.waves-mode .wave-tabs { left: 104px; }
}
body:has(#tab-back:not([hidden])):not(:has(.app.open)):not(:has(#gate:not([hidden]))):not(:has(#boot:not([hidden]))) .top { padding-left: 58px; }
body:has(.app.waves-mode) .tab-back { left: 10px; }
body:has(.app.open) .tab-back,
body:has(#gate:not([hidden])) .tab-back,
body:has(#boot:not([hidden])) .tab-back,
body:has(#overlay:not([hidden])) .tab-back,
body:has(#scanner:not([hidden])) .tab-back { display: none !important; }
.person-page > .sheet-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: transparent;
  margin: 0 0 8px;
  padding-top: max(0px, env(safe-area-inset-top));
  min-height: 0;
  width: auto;
}
.person-page .sheet-back { position: relative; left: auto; top: auto; }
body:has(#tab-back:not([hidden])) #logo { display: none !important; }
.notices {
  position: fixed;
  z-index: 78;
  top: 58px;
  left: 12px;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
}
body:has(.app.waves-mode) .notices { left: 12px; width: min(320px, calc(100vw - 24px)); }
.notice {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.notice b { font-size: 14px; }
.notice span { color: var(--mute); font-size: 13px; }
.person-open {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 12px;
  align-items: center;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  padding: 0;
}
.alert-row { padding-left: 0; padding-right: 0; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
mark { background: var(--s); color: #3a2a00; border-radius: 3px; padding: 0 1px; }
.lightbox { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 16px; }
.photo-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 90;
  background: #000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  touch-action: none;
}
.photo-view[hidden] { display: none; }
.pv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 8px;
  z-index: 2;
  transition: opacity .18s ease;
}
.pv-count {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 650;
  font-size: 15px;
}
.photo-view .pv-bar button {
  position: static;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.pv-stage {
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.photo-view img {
  display: block;
  max-width: min(100%, 100vw);
  max-height: min(100%, calc(100dvh - 96px));
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.pv-caption {
  margin: 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  max-height: 28vh;
  overflow: auto;
  z-index: 2;
  transition: opacity .18s ease;
}
.photo-view.bare .pv-bar,
.photo-view.bare .pv-caption { opacity: 0; pointer-events: none; }
.pv-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 12, 22, .96);
  border-radius: 18px 18px 0 0;
}
.pv-sheet[hidden] { display: none; }
.pv-sheet button {
  position: static;
  width: 100%;
  height: auto;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 12px 8px;
}
.pv-sheet button.danger { color: #ff6b6b; }
.pv-sheet button:last-child { border-bottom: 0; color: #bbb; }
.nick-hint { margin: -6px 0 0; color: var(--danger); }
.nick-hint:empty { display: none; }

@keyframes star-burn {
  0%, 100% { filter: drop-shadow(0 0 1px #fff6) drop-shadow(0 0 3px #3ddc84); }
  50% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px #3ddc84); }
}
@keyframes online-dot {
  0%, 100% { box-shadow: 0 0 0 1px rgba(20, 18, 63, .35), 0 0 0 0 rgba(61, 220, 132, .45); }
  50% { box-shadow: 0 0 0 1px rgba(20, 18, 63, .35), 0 0 0 4px rgba(61, 220, 132, 0); }
}
@keyframes orbit-burn {
  0%, 100% { filter: drop-shadow(0 0 1px #ff6a3d); }
  50% { filter: drop-shadow(0 0 3px #ff6a3d) drop-shadow(0 0 8px #ff6a3d); }
}
@keyframes badge-burn {
  0% { box-shadow: 0 0 0 0 rgba(255, 213, 74, .7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 213, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 213, 74, 0); }
}
@keyframes wave { from { background-position: 0 0; } to { background-position: 24px 0; } }
@keyframes load { from { width: 0; } to { width: 100%; } }

.app.span-mode {
  grid-template-columns: minmax(0, 1fr);
}
.app.span-mode .main { display: none !important; }
.app.span-mode .side { border-right: 0; width: 100%; }
.app.span-mode .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-content: start;
  gap: 4px 12px;
  padding: 4px 16px 20px;
}
.app.span-mode .list .empty,
.app.span-mode .list .create-room { grid-column: 1 / -1; }
.set-board { display: grid; grid-template-columns: 1fr; gap: 8px 36px; align-content: start; }
.set-board section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.set-board .set-actions { display: grid; gap: 10px; }
@media (min-width: 900px) {
  .app.span-mode .set-board { grid-template-columns: 1fr 1fr; }
  .app.span-mode .set-board .set-actions { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.app.span-chat {
  grid-template-columns: minmax(0, 1fr);
}
.app.span-chat .side { display: none !important; }
.app.span-chat .main { display: flex !important; min-height: 0; height: 100%; }
.app.span-chat .back { display: grid; }
.av.wave-av { overflow: hidden; padding: 0; }
.av.wave-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app.waves-mode .side { display: none !important; }
.app.waves-mode {
  grid-template-columns: minmax(0, 1fr) !important;
}
.app.waves-mode .chat-live,
.app.waves-mode .cover,
.app.waves-mode #empty { display: none !important; }
.app.waves-mode .main {
  display: flex !important;
  grid-column: 1 / -1;
  min-height: 0;
  height: 100dvh;
  padding-bottom: 0;
}
.app.waves-mode .waves { bottom: 0; }
.main { position: relative; min-width: 0; min-height: 0; }
.waves[hidden] { display: none !important; }
.waves {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: linear-gradient(180deg, #000 0%, #14081f 58%, #2a1248 100%);
  min-height: 0;
}
.wave-tabs, .saved-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wave-tabs::-webkit-scrollbar, .saved-tabs::-webkit-scrollbar { display: none; }
.wave-tabs {
  position: absolute;
  z-index: 6;
  top: 16px;
  left: calc(16px + 100% * 7 / 32);
  right: calc(16px + 100% * 7 / 32);
}
.wave-tabs button, .saved-tabs button {
  flex: 0 0 auto;
  min-width: max-content;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.saved-tabs {
  padding: 8px 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.saved-tabs button { background: var(--wine); color: #f0d0dc; }
.wave-tabs button.on, .saved-tabs button.on { background: var(--neon); color: #fff; }
.waves-stage {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  min-width: 0;
  scrollbar-width: none;
  touch-action: pan-y;
}
.waves-stage::-webkit-scrollbar { display: none; }
.wave-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 10, 28, .62);
  color: #fff;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.wave-nav svg { display: block; }
@media (min-width: 761px) {
  .wave-nav { display: grid; }
  .wave-nav.prev,
  .wave-nav.next {
    left: auto;
    right: calc(100% * 7 / 32 + 18px);
    margin-top: 0;
  }
  .wave-nav.prev { top: calc(50% - 58px); }
  .wave-nav.next { top: calc(50% + 10px); }
}
.wave-nav,
.wave-nav.prev,
.wave-nav.next { display: none !important; }
.waves-stage.liked { scroll-snap-type: none; padding: 64px 16px 18px; }
.liked-list { display: grid; gap: 12px; }
.liked-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  color: inherit;
  background: var(--panel);
  border: 0;
  border-radius: 16px;
  padding: 10px;
}
.liked-card .wave-tile { width: 72px; flex: none; }
.liked-card p { color: var(--mute); margin-top: 4px; }
.wave {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #000 0%, #14081f 58%, #2a1248 100%);
}
.wave-frame {
  position: relative;
  height: 100%;
  width: min(100%, calc(100% * 9 / 16));
  max-width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
}
.wave-frame video, .wave-frame .wave-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
  pointer-events: none;
}
.wave-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 76px 36px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
}
.wave-frame.is-loading video,
.wave-frame.is-loading .wave-shade,
.wave-frame.is-loading .wave-tools,
.wave-frame.is-loading .wave-title,
.wave-frame.is-loading .wave-onvideo,
.wave-frame.is-loading .wave-dock,
.wave-frame.is-loading .wave-hold,
.wave-frame.is-buffering video { visibility: hidden; }
.wave-frame.is-loading::before,
.wave-frame.is-buffering::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wave-spin .8s linear infinite;
  z-index: 5;
}
@keyframes wave-spin { to { transform: rotate(360deg); } }
.wave-hold {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
  z-index: 3;
}
.wave-frame.is-paused .wave-hold { display: grid; }
.wave-hold span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  position: relative;
}
.wave-hold span::before,
.wave-hold span::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 7px;
  height: 28px;
  border-radius: 2px;
  background: #fff;
}
.wave-hold span::before { left: 20px; }
.wave-hold span::after { right: 20px; }
.wave-dock {
  position: absolute;
  left: 8px;
  right: 72px;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}
.wave-volume, .wave-time, .wave-sound { display: none !important; }
.wave-seek, .wave-volume {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.wave-bar {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 28px;
  --seek: 0%;
  touch-action: none;
  cursor: pointer;
}
.wave-bar-track,
.wave-bar-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 9px;
  pointer-events: none;
}
.wave-bar-track {
  right: 0;
  background: rgba(255, 255, 255, .35);
}
.wave-bar-fill {
  width: var(--seek);
  background: #fff;
}
.wave-bar-knob {
  position: absolute;
  left: var(--seek);
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}
.wave-seek {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.wave-volume { --seek: 100%; width: 86px; flex: none; }
.wave-seek::-webkit-slider-runnable-track,
.wave-volume::-webkit-slider-runnable-track {
  height: 3px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff var(--seek), rgba(255, 255, 255, .35) var(--seek));
}
.wave-seek::-webkit-slider-thumb,
.wave-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.wave-seek::-moz-range-track,
.wave-volume::-moz-range-track {
  height: 3px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .35);
}
.wave-seek::-moz-range-progress,
.wave-volume::-moz-range-progress {
  height: 3px;
  border: 0;
  border-radius: 9px;
  background: #fff;
}
.wave-seek::-moz-range-thumb,
.wave-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.wave-sound { display: flex; align-items: center; gap: 8px; }
.wave-volume { width: 86px; flex: none; }
.wave-time { color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); }
.wave-mute {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.wave-author { display: flex; align-items: center; gap: 8px; }
.wave-author .who { color: #fff; font-weight: 750; border: 0; background: none; padding: 0; cursor: pointer; }
.wave-follow {
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  background: #ff2d55;
  color: #fff;
  font-weight: 750;
}
.wave-follow.on { background: rgba(255, 255, 255, .18); }
.wave-caption { margin: 8px 0 0; font-size: 14px; }
.wave-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.wave-views svg { width: 14px; height: 14px; display: block; }
.transcript { margin-top: 6px; font-size: 14px; opacity: .92; }
.bar .ib.on { color: var(--p); }
.wave-onvideo {
  position: absolute;
  left: 12px;
  right: 64px;
  top: 18%;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
  pointer-events: none;
  white-space: pre-wrap;
}
.wave-tools {
  position: absolute;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  z-index: 4;
}
.wave-tools .engage { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 0; }
.wave-tools .engage button {
  width: 44px;
  min-height: 44px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.engage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.engage button {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: inherit;
  border-radius: 999px;
  padding: 6px 8px;
  font-weight: 700;
}
.engage button.on, .like.on { background: #ff2d55; color: #fff; }
.wave-tools .engage button.on {
  background: #ff2d55;
  box-shadow: 0 0 0 2px #fff;
}
.wave-tools .quick-react.on,
.wave-tools .react-more.on,
.wave-tools .react.on {
  background: linear-gradient(135deg, #7c5cff, #ff5b8a);
  box-shadow: 0 0 0 2px #fff;
}
.wave-tools .engage button small { display: block; font-size: 10px; font-weight: 700; line-height: 1; }
.wave-tools .react-pop {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}
.wave-tools .react-pop[hidden] { display: none !important; }
.wave-tools .react-pop .react {
  position: static;
  right: auto;
  bottom: auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}
.wave-share-btn {
  position: static;
  transform: none;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #ff5b8a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 92, 255, .4);
  cursor: pointer;
  flex: none;
}
.wave-share {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  display: grid;
  align-items: end;
  justify-items: center;
}
.wave-share[hidden] { display: none !important; }
.wave-share-card {
  width: min(440px, 100%);
  max-height: min(78vh, 640px);
  overflow: hidden;
  background: #16132e;
  color: #fff;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wave-share-card header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.wave-share-card header b { flex: 1; min-width: 0; }
.wave-share-card header .sheet-back { background: rgba(255, 255, 255, .12); color: #fff; }
.wave-share-card header b { font-size: 18px; }
.wave-share-card header button { border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; padding: 4px 8px; }
.wave-share-card header .sheet-back { background: rgba(255, 255, 255, .12); color: #fff; padding: 0; width: 40px; height: 40px; border-radius: 50%; }
.wave-share-card input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.wave-share-list { flex: 1; min-height: 140px; overflow: auto; display: grid; gap: 2px; align-content: start; }
.wave-share-card .primary { flex: none; }
.share-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
}
.share-person .av { width: 44px; height: 44px; }
.share-person span { overflow: hidden; min-width: 0; }
.share-person span b, .share-person span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-person span b { font-weight: 700; }
.share-person span small { color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 650; }
.share-person i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.share-person.on i { background: #6c5cff; border-color: #6c5cff; }
.wave-share-card .primary:disabled { opacity: .4; }
@media (min-width: 761px) {
  .wave-share { align-items: center; padding: 24px; }
  .wave-share-card { border-radius: 22px; max-height: min(70vh, 560px); }
}
.drop-person {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 4px;
  border-radius: 14px;
}
.drop-person .av { width: 48px; height: 48px; }
.drop-person.hot { outline: 2px solid #ee2a7b; }
.wave-make {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top)) + 4px);
  left: 62px;
  right: auto;
  bottom: auto;
  z-index: 7;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 0;
  background: linear-gradient(135deg, #7c5cff, #c06bff, #ff5b8a, #7c5cff);
  background-size: 240% 240%;
  animation: av-shimmer 5s ease infinite;
  color: #000;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .4);
}
.wave-make svg { display: block; }
@keyframes av-shimmer {
  0% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}
.wave-editor {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: #000;
  display: block;
  padding: 0;
  overflow: hidden;
}
.wave-editor[hidden] { display: none; }
body:has(#wave-editor:not([hidden])) .help { display: none; }
.ig-edit, .ig-share {
  position: absolute;
  inset: 0;
  background: #000;
  color: #fff;
}
.ig-edit video, .ig-share video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ig-edit.is-empty video,
.ig-edit video:not([src]),
.ig-edit video[src=""] {
  display: none !important;
}
.ig-edit video::-webkit-media-controls,
.ig-edit video::-webkit-media-controls-start-playback-button,
.ig-edit video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0;
}
.ig-edit.orient-port video {
  width: auto;
  height: 100%;
  max-width: min(100%, calc(100dvh * 9 / 16));
  aspect-ratio: 9 / 16;
  inset: auto;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
}
.ig-edit.orient-land video {
  width: min(100%, calc(70dvh * 16 / 9));
  height: auto;
  max-height: 62%;
  aspect-ratio: 16 / 9;
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.ig-share video { position: static; width: 92px; height: 128px; border-radius: 12px; flex: none; }
.ig-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent);
}
.ig-top button, .ig-side button, .ig-dock button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 750;
}
.ig-top > button:first-child { font-size: 26px; width: 40px; height: 40px; }
.ig-next {
  background: #6c5cff !important;
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
}
.ig-side {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ig-side button {
  width: 64px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  font-size: 12px;
  line-height: 1.15;
  padding: 6px 4px;
}
.ig-side button svg { display: block; margin: 0 auto; }
.ig-side button.on { background: #6c5cff; }
.wave-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ig-sheet { max-height: 46vh; overflow: auto; }
.ig-label, .wave-title {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 78%;
  margin: 0;
  white-space: pre-wrap;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  word-break: break-word;
}
.wave-title { pointer-events: none; z-index: 2; }
.ig-label {
  z-index: 2;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
  padding: 4px 8px;
  border-radius: 10px;
}
.ig-label.on { outline: 2px dashed rgba(255, 255, 255, .9); }
.ig-label:focus { outline: 2px dashed rgba(255, 255, 255, .9); cursor: text; }
.ig-label.is-blank::before { content: attr(data-ph); opacity: .72; }
.ig-swatches, .ig-align { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ig-swatches button, .ig-align button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.ig-swatches button.on, .ig-align button.on { border-color: #fff; }
.ig-align button { width: auto; border-radius: 999px; padding: 0 10px; background: rgba(255, 255, 255, .16); color: #fff; }
.ig-sheet textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  resize: none;
  font: inherit;
}
.ig-sheet {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 72px;
  padding: 12px 12px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72) 28%);
  display: grid;
  gap: 8px;
}
.ig-sheet label { display: grid; gap: 6px; color: #fff; font-size: 13px; }
.ig-sheet input[type="text"], .ig-sheet input:not([type="range"]) {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.ig-looks { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.ig-looks button {
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: none;
  font-size: 11px;
}
.ig-looks i {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: block;
  background: linear-gradient(160deg, #7ec8ff, #ff8fab 55%, #ffd56a);
  border: 2px solid transparent;
}
.ig-looks button.on i { border-color: #fff; }
.ig-dock {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
}
.ig-dock button {
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 14px;
}
.ig-share { display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top)) 16px 16px; }
.ig-share .ig-top { position: static; background: none; padding: 8px 0 16px; }
.ig-share-row { display: flex; gap: 14px; align-items: flex-start; }
.ig-share textarea {
  flex: 1;
  min-height: 128px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  resize: none;
  outline: 0;
}
.ig-share .primary { margin-top: auto; width: 100%; border-radius: 12px; padding: 14px; }
.wave-upload {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  text-align: center;
  padding: 24px;
  font-weight: 750;
}
.wave-upload i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  animation: wave-spin .7s linear infinite;
}
.wave-studio {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 16px;
  background: var(--panel);
  border-radius: 20px;
  padding: 16px;
}
.wave-studio video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border-radius: 16px;
  max-height: 72dvh;
}
.studio-tools { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wave-studio label { display: grid; gap: 8px; }
.wave-studio label input + input { margin-top: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row button, .wave-studio label { font-size: 14px; }
.chip-row button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--panel2);
  color: var(--text);
}
.chip-row button.on { background: var(--s); color: #1a1438; }
.wave-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wave-tile {
  border: 0;
  padding: 0;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: #120e30;
  position: relative;
  color: #fff;
}
.wave-tile img { width: 100%; height: 100%; object-fit: cover; }
.mine-wave {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mine-wave .wave-tile { width: 96px; }
.mine-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.mine-copy p { margin: 0; white-space: pre-wrap; }
.mine-copy .engage { margin-top: 0; }
.wave-ghost {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1a1438;
  font-weight: 800;
}
.empty-wave { color: #fff; padding: 24px; text-align: center; }
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px 2px 8px;
}
.comment { padding: 8px 0; border-bottom: 1px solid var(--line); }
.comment b { display: block; font-size: 13px; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; }
.overlay:has(.comment-card) {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, .35);
}
.comment-card.tall { height: min(92dvh, 920px); }
.comment-card {
  width: min(480px, 100%);
  height: min(68dvh, 620px);
  touch-action: pan-y;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom));
  animation: sheet-up .22s ease;
}
.comment-card h3 { margin: 0 0 8px; text-align: center; }
.comment-card .sheet-bar h3 { text-align: left; margin: 0; }
.sheet-grab {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: var(--mute);
  margin: 2px auto 8px;
  padding: 0;
  flex: none;
  touch-action: none;
}
.comment-card h3 { touch-action: none; }
.comment-compose {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
  padding-top: 8px;
}
.comment-compose input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 22px;
  background: var(--panel2);
  padding: 12px 14px;
}
.comment-compose .primary {
  width: auto;
  min-height: 40px;
  border-radius: 20px;
  padding: 0 14px;
}
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.post-card {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 42, 123, .35);
  border-radius: 22px;
  background: rgba(26, 11, 36, .45);
  color: inherit;
  text-align: left;
}
.post-card b { font-size: 12px; color: var(--s); }
.post-card span { font-size: 13px; }
.post-card .post-media-grid { margin-top: 6px; }
.wave-card {
  display: block;
  width: 168px;
  height: 298px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.wave-card img, .wave-card .wave-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14122c;
}
.wave-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -12px 0 0 -6px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .65));
}
@media (max-width: 760px) {
  .waves { grid-template-columns: minmax(0, 1fr); }
  .wave-frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .app.waves-mode { grid-template-columns: minmax(0, 1fr) !important; }
  .wave-make { top: calc(max(10px, env(safe-area-inset-top)) + 6px); left: 62px; right: auto; width: 32px; height: 32px; }
  .wave-tabs { left: 104px; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 8px); }
  .wave-studio { grid-template-columns: 1fr; }
  .wave-studio video { max-height: 46dvh; }
  .drop-person .av { width: 40px; height: 40px; }
}

@media (hover: none) {
  .m .more { opacity: .65; }
}
@media (max-width: 760px) {
  .app, .app.reading { grid-template-columns: 1fr; }
  .app.waves-mode { grid-template-columns: minmax(0, 1fr) !important; }
  .dock { display: none !important; }
  .main { display: none; }
  html, body {
    position: fixed;
    inset: 0;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden;
    width: 100%;
  }
  .app.open .main,
  .app.chat-out .main {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 46;
    width: 100%;
    height: 100% !important;
    max-height: 100% !important;
    background: var(--bg);
    box-shadow: -18px 0 36px rgba(0, 0, 0, .32);
    overflow: hidden;
  }
  .app.open .main { animation: chat-in .42s cubic-bezier(.22, .61, .36, 1); }
  .app.open.opened .main { animation: none; }
  body.keyboard-on .app.open .main { animation: none; }
  .app.open .main {
    display: flex;
    flex-direction: column;
  }
  .app.open .head,
  body.keyboard-on .app.open .head {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 30;
    margin: 0;
    transform: translate3d(0, var(--vv-top, 0px), 0) !important;
    animation: none !important;
    transition: none !important;
    flex: 0 0 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    overflow: hidden;
  }
  .app.swiping-back .head {
    transform: none !important;
  }
  .app.open .chat-live {
    padding-top: 0 !important;
    flex: 1 1 0;
    min-height: 0;
  }
  .app.swiping-back .main {
    animation: none !important;
    transform: translate3d(var(--swipe-x, 0px), 0, 0) !important;
  }
  .app.chat-out .main { animation: chat-out .36s cubic-bezier(.22, .61, .36, 1) forwards; }
  @keyframes chat-in {
    from { transform: translate3d(100%, 0, 0); }
    to { transform: translate3d(0, 0, 0); }
  }
  @keyframes chat-out {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(100%, 0, 0); }
  }
  .back { display: grid; }
  input, textarea, select, #inp { font-size: 16px !important; }
  .nav {
    bottom: calc(var(--dock) + max(var(--dock-gap), env(safe-area-inset-bottom)));
    padding: 8px 8px 8px;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1);
    transform: translate3d(-105%, 0, 0);
    will-change: transform;
  }
  body:has(.app.open) .nav,
  body.keyboard-on .nav { bottom: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .nav button { width: 100%; height: auto; }
  .nav button svg { width: 26px; height: 26px; }
  body.rail-open .nav { transform: translate3d(0, 0, 0); }
  .rail-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  body.rail-open .rail-backdrop { opacity: 1; pointer-events: auto; }
  button.rail-toggle { display: grid; }
  .rail-toggle .rail-dots { display: none; }
  .rail-toggle .rail-lines { display: block; }
  .app:not(.waves-mode) {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .tab-back { left: max(8px, env(safe-area-inset-left)); top: max(8px, env(safe-area-inset-top)); }
  body.rail-open .tab-back { visibility: hidden; pointer-events: none; }
  body:has(#tab-back:not([hidden])):not(:has(.app.open)):not(:has(#gate:not([hidden]))):not(:has(#boot:not([hidden]))):not(:has(.app.waves-mode)) .top { padding-left: 56px; }
  body:has(#tab-back:not([hidden])) #logo { margin-left: 0; }
  body:has(.app.waves-mode) .tab-back { left: max(8px, env(safe-area-inset-left)); }
  .notices { left: 12px; width: min(320px, calc(100vw - 24px)); }
  .overlay, .story-layer { left: 0; }
  .person-back { left: max(12px, calc(50vw - 368px)); }
  html, body {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
  }
  .app, .side, .main, .cover, .chat-live, .msgs, .list, .profile-view {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }
  .app { height: calc(100dvh - var(--dock) - max(var(--dock-gap), env(safe-area-inset-bottom))); }
  .profile-view input:not([type="checkbox"]), .profile-view textarea, .profile-view select, .profile-view img, .profile-view button { max-width: 100%; min-width: 0; }
  .app.open .main, .app.open .chat-live {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    touch-action: none;
  }
  .app.open .main {
    position: fixed;
    inset: 0;
    top: 0;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .app.open .chat-live {
    position: relative;
    inset: auto;
    z-index: 20;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .app.open .head {
    position: relative !important;
    top: auto !important;
    z-index: 30;
    flex: 0 0 58px;
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    padding-top: 8px;
    touch-action: none;
    background: var(--panel);
    transform: translate3d(0, var(--vv-top, 0px), 0) !important;
    animation: none !important;
    transition: none !important;
  }
  .chat-live:has(#pickbar:not([hidden])) #bar { display: none; }
  .app.open .bar,
  .app.open .pinbar,
  .app.open .replybar,
  .app.open .rec,
  .app.open .readonly,
  .app.open .pickbar,
  .app.open .insearch {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    touch-action: none;
  }
  .app.open .saved-tabs {
    position: relative;
    top: auto;
    flex: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .app.open .saved-tabs button {
    flex: 0 0 auto;
    min-width: max-content;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .tab {
    flex: 1 0 auto;
    min-width: max-content;
    font-size: 14px;
    padding: 11px 10px;
  }
  .stories, .mini-stories, .wave-tabs, .saved-tabs, .pop-tabs, .ig-looks, .modal-tabs {
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }
  .modal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .modal-tabs button {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 46vw;
    padding: 8px 16px;
    white-space: normal;
  }
  .counts { gap: 5px; }
  .counts button { padding: 9px 10px; }
  .counts span { font-size: 9px; padding: 0 5px; line-height: 1.2; }
  .primary, .ghost, .danger, .slim { padding-left: 22px; padding-right: 22px; }
  .social-row > .primary,
  .social-row > .ghost,
  .social-row > .danger { padding-left: 24px; padding-right: 24px; }
  .app.open .msgs {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  html, body, .app, .side, .main, .chat-live { touch-action: none; }
  #list, #profile, .cover, .waves-stage, .pop-grid { touch-action: pan-y; overscroll-behavior: none; }
  #list *, #profile *, .cover *, .feed-card, .feed-card *,
  .app button, .app a, .app p, .app textarea,
  .app input:not([type="range"]):not([type="file"]) {
    touch-action: pan-y;
  }
  .bar { gap: 2px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .wall { height: 168px; }
  .chat-live { position: relative; }
  .jump { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.keyboard-on .bar { padding-bottom: 8px !important; }
  body.keyboard-on .jump { bottom: 72px; }
  body.keyboard-on .app.open .main { animation: none !important; }
  body.keyboard-on .app.open .chat-live {
    padding-bottom: calc(56px + var(--kb-inset, 0px)) !important;
    overflow: hidden !important;
  }
  body.keyboard-on .app.open .bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--kb-inset, 0px) !important;
    margin: 0 !important;
    padding-bottom: 8px !important;
    z-index: 50;
  }
  .bar #inp, .bar textarea {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    box-shadow: none;
  }
  .rec, .app.open .rec {
    border: 0;
    outline: 0;
    box-shadow: none;
    background: var(--panel);
  }
  .bottom-nav { left: var(--dock-gap); right: var(--dock-gap); }
  .app.open,
  .app.chat-out {
    position: fixed !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100%;
  }
  .app.open ~ .bottom-nav, .app.open .bottom-nav { display: none; }
  body:has(.app.open) .bottom-nav { display: none; }
  .bar .ib { width: 46px; height: 46px; }
  .bar .ib svg { width: 28px; height: 28px; }
  .send { width: 42px; height: 42px; }
  .m img, .m video, .m .file, .pic, .clip { max-width: 100%; }
  .head { gap: 4px; height: 58px; min-height: 58px; max-height: 58px; padding: 8px 10px; max-width: 100%; min-width: 0; }
  .head .ib { width: 36px; height: 36px; }
  .bar { max-width: 100%; min-width: 0; }
  .bar .ib { width: 40px; height: 40px; }
  .social-row button, .modal .ghost, .modal .primary, .modal .danger { max-width: 100%; }
  #call, #more, .back { display: grid; flex: none; }
  .pop { left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: auto; max-height: 48vh; border-radius: 16px 16px 0 0; }
  .switch span { font-size: 15px; }
  .gate {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    overflow: hidden;
    touch-action: none;
  }
  .gate-card {
    position: fixed;
    top: 10px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    max-height: calc(100% - 20px);
    padding: 14px 14px 12px;
    gap: 8px;
    border-radius: 18px;
  }
  body.keyboard-on .gate-card {
    max-height: calc(100% - 12px - var(--kb-inset, 0px));
  }
  #gate-logo svg { width: 48px; height: 48px; }
  .gate-card, .app, .side, .main { max-width: 100%; }
}
.dock-shot {
  position: fixed;
  z-index: 45;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--dock) + max(var(--dock-gap), env(safe-area-inset-bottom)));
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  box-shadow: -18px 0 32px rgba(0, 0, 0, .35);
}
.dock-shot .side {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}
html.is-swiping,
body.is-swiping {
  overflow: hidden !important;
}
.swipe-shot {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 86;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 28px rgba(0, 0, 0, .4);
}
.swipe-shot .app {
  width: 100%;
  height: 100%;
  max-height: 100%;
  transform: none !important;
}
.app.swiping-back .side {
  display: flex !important;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(-28% + var(--swipe-p, 0) * 28%), 0, 0);
}
.app.swiping-back .side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  opacity: calc(1 - var(--swipe-p, 0));
  pointer-events: none;
  z-index: 4;
}
.app.swiping-back .main {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  background: var(--bg);
  animation: none;
  transform: translate3d(var(--swipe-x, 0px), 0, 0);
  box-shadow: -18px 0 32px rgba(0, 0, 0, .35);
}
.app.swiping-back.swipe-settle .main,
.app.swiping-back.swipe-settle .side {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.app.swiping-back.swipe-settle .side::before {
  transition: opacity .55s cubic-bezier(.22, .61, .36, 1);
}
.app.waves-mode.swiping-back .side {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}
.app.waves-mode.swiping-back .main {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 46 !important;
  width: 100% !important;
  height: 100dvh !important;
  margin: 0 !important;
  animation: none !important;
  transition: none !important;
  transform: translate3d(var(--swipe-x, 0px), 0, 0) !important;
  will-change: transform;
}
.app.waves-mode.swiping-back.swipe-settle .main {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1) !important;
}
.feed-card, .feed-card p, .wave-caption, .wave-title, .wave-onvideo, .wave-shade, .nick {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
@media (prefers-reduced-motion: reduce) {
  .bd, .av.on::after, .pl.fresh::after, .pav.on::after, .bars i.now em { animation: none; }
  .bars i.now em { width: 100%; }
  .app.open .main, .app.chat-out .main, .nav, .rail-backdrop { animation: none; transition: none; }
}
html.android-app,
html.android-app body {
  height: 100% !important;
  max-height: 100% !important;
  position: fixed;
  inset: 0;
}
html.android-app .app {
  height: calc(100% - var(--dock) - max(var(--dock-gap), env(safe-area-inset-bottom))) !important;
}
html.android-app .app.open .main,
html.android-app .app.chat-out .main,
html.android-app .app.waves-mode .main,
html.android-app .app.waves-mode.swiping-back .main {
  inset: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  background: var(--bg);
}
html.android-app body.keyboard-on .app.open .main {
  animation: none !important;
}
html.android-app .app.open .head,
html.android-app body.keyboard-on .app.open .head {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 30;
  transform: translate3d(0, var(--vv-top, 0px), 0) !important;
  animation: none !important;
  transition: none !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  flex: 0 0 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  overflow: hidden !important;
  background: var(--panel);
}
html.android-app .app.open .chat-live { padding-top: 0 !important; flex: 1 1 0; min-height: 0; }
html.android-app .app.swiping-back .main {
  transform: translate3d(var(--swipe-x, 0px), 0, 0) !important;
  transition: none !important;
}
html.android-app .app.swiping-back.swipe-settle .main {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1) !important;
}
html.android-app .overlay[hidden],
html.android-app .boot[hidden],
html.android-app .story-layer[hidden] {
  display: none !important;
}
html.android-app .gate {
  height: 100% !important;
  max-height: 100% !important;
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  padding: 12px !important;
  transform: none !important;
}
html.android-app .gate[hidden] {
  display: none !important;
}
html.android-app .gate-card,
html.android-app body.keyboard-on .gate-card {
  position: relative !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  transform: none !important;
}
html.android-app .app.open .bar,
html.android-app body.keyboard-on .app.open .bar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  transition: none !important;
}
html.android-app body.keyboard-on .app.open .chat-live {
  padding-bottom: 0 !important;
  transition: none !important;
}
html.android-app,
html.android-app body,
html.android-app .app.open .main {
  height: 100% !important;
  max-height: 100% !important;
}
html.android-app .app.open .main,
html.android-app .app.chat-out .main,
html.android-app .gate {
  transition: none !important;
}
