/* Qorlith Social. Built on the Qorlith app system (assets/qorlith.css): Geist, void surfaces, one mint accent.
   People are circles, places (groups, tokens, NFT rooms) are rounded hexagons like the Qorlith mark.
   Red is only for likes and danger, amber only for Premium. Radii: controls are pills, bubbles 18px, cards 16px, inputs 12px. */
:root {
  --s1: #080c16;            /* rail, chat list */
  --s2: #0c1220;            /* cards, sheets */
  --s3: #131b2d;            /* incoming bubbles, inputs */
  --s4: #1a2438;            /* hover on s3 */
  --mine: #0f3a33;          /* own bubbles (mint tinted) */
  --mine-2: #134a40;
  --mine-text: #e6fff7;
  --like: #ff6b81;
  --prem: #ffc46b;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M41.3 5.9Q50 1 58.7 5.9L84.6 20.6Q93.3 25.5 93.3 35.3L93.3 64.7Q93.3 74.5 84.6 79.4L58.7 94.1Q50 99 41.3 94.1L15.4 79.4Q6.7 74.5 6.7 64.7L6.7 35.3Q6.7 25.5 15.4 20.6Z'/%3E%3C/svg%3E");
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
html, body.social { height: 100%; }
body.social { overflow: hidden; min-height: 0; display: flex; flex-direction: column; background-image: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body.social ::selection { background: rgba(92, 242, 200, .32); }
body.social * { scrollbar-width: thin; scrollbar-color: rgba(160, 180, 220, .18) transparent; }
body.social input, body.social textarea, body.social select { caret-color: var(--mint); }
.ic { flex: none; display: block; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.pad { padding: 16px; }
.block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.lnk { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }

/* ============================================================ app frame */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.view { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; outline: none; padding-bottom: calc(var(--tab-h) + var(--safe-b)); overscroll-behavior: contain; }
.view.v-chats { overflow: hidden; padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
body.in-convo .view.v-chats { padding-bottom: 0; }
#appbar { display: none; }
.rail { display: none; }

/* phones: bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(6, 9, 16, .86); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-top: 1px solid var(--line); transition: transform .26s var(--ease-drawer); }
body.in-convo .tabbar, body.lb-open .tabbar { transform: translateY(110%); }
.tb { display: grid; place-items: center; color: var(--muted); -webkit-touch-callout: none; user-select: none; }
.tb:hover { text-decoration: none; }
.tb.on { color: var(--text); }
.tb-ic { position: relative; display: grid; place-items: center; width: 48px; height: 40px; border-radius: 14px; transition: transform .14s var(--ease-out); }
.tb:active .tb-ic { transform: scale(.9); }
.tb .av { box-shadow: 0 0 0 2px transparent; }
.tb.on .av { box-shadow: 0 0 0 2px var(--text); }
.nb { position: absolute; top: 1px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font: 600 11px/18px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }

@media (min-width: 760px) {
  #appbar { display: block; }
  .tabbar { display: none; }
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .view, .view.v-chats { padding-bottom: 0; }
  .rail { display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--s1); min-height: 0; overflow-y: auto; }
  .rail-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; color: var(--text); }
  .rail-brand:hover { text-decoration: none; }
  .rb-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--mint-ink); background: var(--mint); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; flex: none; }
  .rb-txt { font: 600 17px/1 var(--display); letter-spacing: -.01em; display: none; }
  .rail-items { display: grid; gap: 2px; }
  .ri { display: flex; align-items: center; gap: 14px; padding: 10px 11px; border-radius: 14px; color: var(--muted); font-size: 16px; transition: background-color .15s ease, color .15s ease; }
  .ri:hover { background: rgba(255, 255, 255, .05); color: var(--text); text-decoration: none; }
  .ri.on { color: var(--text); font-weight: 600; }
  .ri-ic { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
  .ri-ic.prem { color: var(--prem); }
  .ri .nb { top: -6px; right: -8px; }
  .ri-l { display: none; }
  .rail-post { margin-top: 10px; width: 54px; height: 54px; padding: 0; border-radius: 50%; }
  .rail-post span { display: none; }
  .rail-me { margin-top: auto; }
  .rm { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: var(--text); }
  .rm:hover { background: rgba(255, 255, 255, .05); text-decoration: none; }
  .rm-t { display: none; min-width: 0; }
  .rm-t b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rm-t span { display: block; color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-signin { width: 54px; height: 54px; padding: 0; border-radius: 50%; }
  .rail-signin span { display: none; }
  body.social { height: 100dvh; }
  .app { height: calc(100dvh - 60px); }
}
@media (min-width: 1200px) {
  .app { grid-template-columns: 248px minmax(0, 1fr); }
  .rb-txt, .ri-l, .rm-t, .rail-post span, .rail-signin span { display: block; }
  .rail { padding: 14px 14px; }
  .rail-post, .rail-signin { width: 100%; height: 48px; border-radius: 999px; padding: 0 18px; }
}

/* ============================================================ avatars */
.av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; flex: none; background: var(--s3); width: var(--sz); height: var(--sz); }
.av img, .av svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.av::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.av.ring { box-shadow: 0 0 0 4px var(--bg); }
.hx { position: relative; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: var(--sz); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; background: var(--s4); color: var(--muted); }
.hx img { width: 100%; height: 100%; object-fit: cover; }
.hx.pub { background: linear-gradient(150deg, #1d2a43, #121a2b); color: var(--mint); }
.hx.tone { --h: 160; background: linear-gradient(150deg, hsl(var(--h) 46% 34%), hsl(calc(var(--h) + 40) 42% 20%)); color: hsl(var(--h) 90% 92%); }
.hx.tone b { font: 600 calc(var(--sz) * .3) / 1 var(--sans); letter-spacing: -.02em; }
.hx.tone.l4 b { font-size: calc(var(--sz) * .24); }
.hx.add { background: var(--mint-soft); color: var(--mint); }
.s20 { --sz: 20px; } .s24 { --sz: 24px; } .s26 { --sz: 26px; } .s28 { --sz: 28px; } .s32 { --sz: 32px; } .s36 { --sz: 36px; } .s40 { --sz: 40px; }
.s44 { --sz: 44px; } .s48 { --sz: 48px; } .s56 { --sz: 56px; } .s64 { --sz: 64px; } .s88 { --sz: 88px; } .s96 { --sz: 96px; }

/* badges */
.bdg { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; flex: none; vertical-align: -3px; margin-left: 4px; }
.bdg.ver { background: var(--mint); color: var(--mint-ink); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; border-radius: 0; }
.bdg.prem { color: var(--prem); width: 18px; }
.tagb { display: inline-flex; align-items: center; font: 500 11px/1 var(--sans); padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.tagb.team { background: var(--mint-soft); color: var(--mint); }
.chipb { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .045); color: var(--muted); border: 1px solid var(--line); }
.chipb.team, .chipb.domain { color: var(--mint); border-color: rgba(92, 242, 200, .25); }
.chipb.creator { color: var(--prem); border-color: rgba(255, 196, 107, .25); }

/* ============================================================ shared controls */
.ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; flex: none; transition: background-color .15s ease, color .15s ease, transform .14s var(--ease-out); }
.ib:hover { color: var(--text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.ib:active { transform: scale(.92); }
.ib:focus-visible { outline-offset: 0; border-radius: 50%; }
.btn.xs { height: 28px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn.sm { gap: 6px; }
.btn.lg { height: 50px; }
.btn.icon-btn { width: 40px; padding: 0; }
.btn.danger:hover { background: rgba(255, 122, 140, .12); border-color: rgba(255, 122, 140, .55); }
.btn .spin, .spin { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .22); border-top-color: currentColor; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; vertical-align: -3px; flex: none; }
.inp { width: 100%; min-width: 0; background: var(--s3); border: 1px solid var(--line2); color: var(--text); border-radius: 12px; padding: 11px 14px; font: 16px var(--sans); transition: border-color .15s ease, box-shadow .15s ease; }
.inp::placeholder { color: var(--dim); }
.inp:focus { outline: none; border-color: rgba(92, 242, 200, .55); box-shadow: 0 0 0 4px rgba(92, 242, 200, .09); }
.inp.big { font-size: 20px; padding: 12px 14px; }
.inp.mono { font: 14px var(--mono); }
textarea.inp { resize: vertical; min-height: 0; line-height: 1.45; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form { gap: 14px; }
.form label { font-size: 14px; color: var(--muted); gap: 7px; }
.form .hint, .hint { font-size: 12.5px; color: var(--dim); }
.ferr { margin: 0; font-size: 13.5px; color: var(--red); }
.fs { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.fs legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.two-in { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .two-in { grid-template-columns: 1fr 1fr; } }
.amt { position: relative; display: flex; align-items: center; }
.amt .inp { padding-right: 76px; font-variant-numeric: tabular-nums; }
.amt .unit { position: absolute; right: 14px; color: var(--muted); font: 500 14px var(--sans); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .14s var(--ease-out); }
.chipbtn:hover { color: var(--text); border-color: rgba(200, 215, 245, .35); }
.chipbtn:active { transform: scale(.96); }
.chipbtn[aria-pressed="true"], .chipbtn[aria-selected="true"], .chipbtn.radio:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.chipbtn.radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg.wide button { height: 36px; font-size: 14px; }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--s4); box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .2s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #c9d3e6; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .22s var(--ease-out), background-color .2s ease; }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); display: inline-block; flex: none; }
.cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font: 600 12px/22px var(--sans); font-style: normal; text-align: center; flex: none; font-variant-numeric: tabular-nums; }

/* toast above the tab bar */
body.social .toast { bottom: calc(var(--tab-h) + var(--safe-b) + 14px); }
@media (min-width: 760px) { body.social .toast { bottom: 28px; } }

/* skeletons */
.sk-wrap { display: grid; gap: 4px; padding: 6px 0; }
.sk-post { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.sk-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 10px 16px; }
.sk-col { display: grid; gap: 9px; align-content: center; }
.sk-av { width: 44px; height: 44px; border-radius: 50%; }
.sk-row .sk-av { width: 48px; height: 48px; }
.sk-media { height: 180px; border-radius: 16px; margin-top: 4px; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w30 { width: 30%; } .w55 { width: 55%; } .w75 { width: 75%; }
.sk { height: 12px; }
.sk-wrap.msgs { padding: 16px; gap: 14px; }
.sk-msg { display: flex; gap: 10px; align-items: flex-end; }
.sk-msg .sk-av { width: 36px; height: 36px; }
.sk-msg.me { flex-direction: row-reverse; }
.sk-msg.me .sk-av { display: none; }
.sk-bub { height: 44px; border-radius: 18px; }

/* empty states */
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.empty p { margin: 0; max-width: 40ch; }
.empty .btn, .empty .row { margin-top: 8px; }
.empty-ic { width: 64px; height: 64px; display: grid; place-items: center; color: var(--mint); background: var(--mint-soft); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }

/* ============================================================ feed pages */
.cols { display: flex; justify-content: center; gap: 28px; min-height: 100%; }
.col-main { width: 100%; max-width: 640px; min-width: 0; }
.col-side { display: none; }
@media (min-width: 760px) { .col-main { border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100%; } }
@media (min-width: 1100px) {
  .col-side { display: grid; align-content: start; gap: 16px; width: 330px; flex: none; position: sticky; top: 0; align-self: flex-start; padding: 16px 0 24px; }
}
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 12px 6px 14px; background: rgba(5, 7, 13, .82); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; flex: 1; min-width: 0; }
.topbar .seg { flex: none; }
.tb-me { display: grid; flex: none; }
.tb-logo { width: 32px; height: 32px; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }
.tb-t { display: grid; line-height: 1.2; }
.tb-t b { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-t span { font-size: 13px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
@media (min-width: 760px) { .tb-me { display: none; } }
.seg button { min-height: 34px; padding: 6px 14px; }

.welcome { padding: 22px 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; background: var(--s1); }
.welcome h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; max-width: 22ch; }
.welcome p { margin: 0; color: var(--muted); max-width: 50ch; }
.home-cmp { border-bottom: 1px solid var(--line); display: none; }
@media (min-width: 760px) { .home-cmp { display: block; } }
.new-pill-wrap { position: sticky; top: 64px; z-index: 9; height: 0; display: flex; justify-content: center; }
.new-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--mint); color: var(--mint-ink); font: 600 14px var(--sans); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); transform: translateY(6px); }
.new-pill:not([hidden]) { animation: pillIn .28s var(--ease-out); }
@keyframes pillIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.fab { position: fixed; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 30; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .4); transition: transform .16s var(--ease-out); }
.fab:active { transform: scale(.93); }
@media (min-width: 760px) { .fab { display: none; } }

/* post cards */
.post { padding: 12px 16px 6px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease; }
@media (hover: hover) { .post:hover { background: rgba(255, 255, 255, .018); } }
.post.big { cursor: default; padding-top: 16px; }
.post.big:hover { background: none; }
.post.parent { border-bottom: 0; }
.post.parent .p-row { position: relative; }
.post.parent .p-av::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: -14px; width: 2px; background: var(--line2); border-radius: 2px; }
.post.enter { animation: postIn .34s var(--ease-out); }
@keyframes postIn { from { opacity: 0; transform: translateY(-8px); } }
.p-ctx { margin: 0 0 4px 32px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); }
.p-ctx a { color: var(--muted); font-weight: 500; }
.p-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.post.big .p-row { grid-template-columns: 48px minmax(0, 1fr); }
.p-av { display: block; position: relative; }
.p-main { min-width: 0; }
.p-h { display: flex; align-items: center; gap: 5px; min-width: 0; line-height: 1.3; }
.p-name { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.p-handle, .p-time, .p-dot { color: var(--dim); font-size: 14.5px; white-space: nowrap; }
.p-handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.p-time { flex: none; }
.p-time:hover { text-decoration: underline; color: var(--muted); }
.p-more { margin: -8px -10px -8px auto; width: 36px; height: 36px; }
.p-body { margin-top: 2px; font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: #e2e8f4; }
.post.big .p-body { font-size: 19px; line-height: 1.45; letter-spacing: -.01em; margin-top: 10px; }
.p-body.gone { color: var(--dim); font-style: italic; }
.p-body a, .m-body a, .prof-bio a, .ld-desc a { color: var(--mint); }
.p-body a b, .m-body a b { font-weight: 500; }
.mention { font-weight: 500; }
.p-full { margin: 12px 0 0; color: var(--dim); font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.p-acts { display: flex; justify-content: space-between; max-width: 420px; margin: 4px 0 0 -9px; }
.post.big .p-acts { max-width: none; justify-content: space-around; margin: 4px 0; }
.pa { display: inline-flex; align-items: center; gap: 4px; height: 36px; min-width: 52px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--dim); font: 13.5px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; transition: color .15s ease, background-color .15s ease; }
.pa span:empty { display: none; }
.pa:active .ic { transform: scale(.86); }
.pa .ic { transition: transform .14s var(--ease-out); }
@media (hover: hover) {
  .pa.reply:hover, .pa.share:hover { color: var(--mint); background: var(--mint-soft); }
  .pa.rp:hover { color: var(--ok); background: rgba(74, 222, 154, .1); }
  .pa.like:hover { color: var(--like); background: rgba(255, 107, 129, .1); }
}
.pa.rp.on { color: var(--ok); }
.pa.like.on { color: var(--like); }
.pa.like.on .ic path { fill: currentColor; }
.pa.like.pop .ic { animation: heart .42s var(--ease-out); }
@keyframes heart { 0% { transform: scale(.7); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.quote { display: block; margin-top: 10px; border: 1px solid var(--line2); border-radius: 16px; padding: 10px 12px; color: var(--text); overflow: hidden; }
.quote:hover { text-decoration: none; background: rgba(255, 255, 255, .02); }
.q-h { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.q-h b { font-weight: 600; white-space: nowrap; }
.q-h .p-handle, .q-h time { font-size: 13.5px; color: var(--dim); }
.q-body { margin-top: 4px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.quote .mg { margin-top: 8px; }
.sentinel { height: 1px; }
.thr-empty { padding: 26px 16px; color: var(--dim); text-align: center; margin: 0; }
.thr-cmp { border-bottom: 1px solid var(--line); }

/* media grid */
.mg { display: grid; gap: 3px; margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 100%; }
.mg.n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.mg.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.mg.n3 .mg-i:first-child { grid-row: span 2; }
.mg.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.mg-i { position: relative; display: block; padding: 0; border: 0; background: var(--s3); cursor: zoom-in; overflow: hidden; min-height: 0; }
.mg.n1 .mg-i { --ratio: .66; aspect-ratio: 1 / var(--ratio); max-height: 520px; width: 100%; }
.mg-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease-out), opacity .2s ease; }
@media (hover: hover) { .mg-i:hover img { transform: scale(1.015); } }
.mg-i:focus-visible { outline-offset: -3px; }
.gif-tag { position: absolute; left: 8px; bottom: 8px; font: 600 11px/1 var(--sans); font-style: normal; padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; }

/* composer (posts) */
.cmp { position: relative; padding: 12px 16px 10px; display: grid; gap: 6px; }
.cmp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.cmp-col { min-width: 0; display: grid; gap: 8px; }
.cmp textarea { width: 100%; border: 0; background: none; color: var(--text); font: 18px/1.45 var(--sans); padding: 8px 0 4px; resize: none; outline: none; min-height: 44px; max-height: 260px; }
.cmp.compact textarea { font-size: 17px; }
.cmp textarea::placeholder { color: var(--dim); }
.cmp-bar { display: flex; align-items: center; gap: 4px; padding-left: 52px; border-top: 1px solid transparent; }
.cmp-tools { display: flex; gap: 0; margin-left: -8px; flex: 1; }
.tool { color: var(--mint); }
.tool:hover { color: var(--mint); background: var(--mint-soft); }
label.tool { cursor: pointer; }
.cring { display: grid; place-items: center; width: 26px; height: 26px; }
.cring circle { fill: none; stroke-width: 2.4; }
.cring-bg { stroke: var(--line2); }
.cring-fg { stroke: var(--mint); stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: center; transition: stroke-dasharray .15s ease; stroke-linecap: round; }
.cmp.near .cring-fg { stroke: var(--amber); }
.cmp.over .cring-fg { stroke: var(--red); }
.cmp-left { font: 13px var(--sans); color: var(--amber); min-width: 0; font-variant-numeric: tabular-nums; }
.cmp.over .cmp-left { color: var(--red); }
.cmp-go { margin-left: 8px; min-width: 72px; }
.cmp-quote { margin-top: 2px; }
.cmp-quote .quote { margin-top: 0; pointer-events: none; }
.cmp-ctx { padding: 0 16px 4px; }
.cmp-ctx .quote { margin: 0; pointer-events: none; }
.tray { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-i { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--s3); border: 1px solid var(--line); animation: trayIn .22s var(--ease-out); }
@keyframes trayIn { from { opacity: 0; transform: scale(.94); } }
.tr-i img { width: 100%; height: 100%; object-fit: cover; }
.tr-i.up img { opacity: .45; filter: blur(1px); }
.tr-i .spin { position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px; color: #fff; }
.tr-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(5, 7, 13, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mention-box { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 6px); z-index: 20; background: var(--s2); border: 1px solid var(--line2); border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); max-width: 360px; animation: popIn .16s var(--ease-out); transform-origin: bottom left; }
.cmp .mention-box { top: 64px; bottom: auto; transform-origin: top left; }
.mb-i { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.mb-i.on, .mb-i:hover { background: rgba(255, 255, 255, .06); }
.mb-i span { display: grid; min-width: 0; line-height: 1.25; }
.mb-i b { font-weight: 500; font-size: 14px; }
.mb-i span span { font-size: 13px; color: var(--dim); }

/* explore */
.search-bar { position: relative; display: flex; align-items: center; margin: 12px 16px; }
.search-bar input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid transparent; background: var(--s3); color: var(--text); font: 16px var(--sans); padding: 0 18px 0 44px; outline: none; transition: border-color .15s ease, background-color .15s ease; }
.search-bar input:focus { border-color: rgba(92, 242, 200, .55); background: var(--bg); }
.search-bar input::placeholder { color: var(--dim); }
.sb-ic { position: absolute; left: 15px; color: var(--dim); pointer-events: none; }
.search-bar.sm { margin: 4px 12px 10px; }
.search-bar.sm input { height: 40px; font-size: 15px; padding-left: 40px; }
.search-bar.sm .sb-ic { left: 14px; }
.sec-h { font-size: 18px; font-weight: 600; letter-spacing: -.02em; padding: 16px 16px 8px; }
.room-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.room-strip::-webkit-scrollbar { display: none; }
.rs { flex: none; width: 112px; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 8px 12px; border-radius: 18px; background: var(--s2); border: 1px solid var(--line); color: var(--text); scroll-snap-align: start; transition: border-color .15s ease, transform .14s var(--ease-out); }
.rs:hover { text-decoration: none; border-color: var(--line2); }
.rs:active { transform: scale(.97); }
.rs b { font-weight: 500; font-size: 14px; margin-top: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs span:last-child { font-size: 12.5px; color: var(--dim); }
.rs-sk { flex: none; width: 112px; height: 124px; border-radius: 18px; }
.rows { display: grid; }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text); background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; transition: background-color .15s ease; }
.prow:hover { text-decoration: none; background: rgba(255, 255, 255, .025); }
.pr-link { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--text); }
.pr-link:hover { text-decoration: none; }
.pr-t { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.pr-t b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-t span { color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* aside */
.aside-card { background: var(--s2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 6px 10px; }
.aside-card h2 { font-size: 18px; font-weight: 600; padding: 0 12px 8px; letter-spacing: -.02em; }
.arow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; color: var(--text); }
.arow:hover { background: rgba(255, 255, 255, .035); text-decoration: none; }
.arow > span { display: grid; min-width: 0; line-height: 1.3; }
.arow b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow span span { color: var(--dim); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more-link { display: block; padding: 10px 12px 4px; font-size: 14.5px; }
.prem-card { padding: 18px; display: grid; gap: 8px; justify-items: start; background: linear-gradient(160deg, rgba(255, 196, 107, .07), transparent 60%), var(--s2); }
.prem-card h2 { padding: 0; }
.prem-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pc-ic { color: var(--prem); }
.aside-note { color: var(--dim); font-size: 13px; padding: 0 8px; margin: 0; }

/* notifications */
.notes { display: grid; }
.nt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); transition: background-color .15s ease; }
.nt:hover { text-decoration: none; background: rgba(255, 255, 255, .02); }
.nt.unread { background: rgba(92, 242, 200, .035); }
.n-ic { display: grid; place-items: start end; color: var(--mint); padding-top: 6px; }
.k-like .n-ic { color: var(--like); } .k-repost .n-ic { color: var(--ok); } .k-follow .n-ic, .k-join .n-ic { color: var(--blue); } .k-giveaway_win .n-ic { color: var(--prem); }
.k-like .n-ic path { fill: currentColor; }
.n-main { display: grid; gap: 6px; min-width: 0; }
.n-top { display: flex; align-items: center; justify-content: space-between; }
.n-top time { color: var(--dim); font-size: 13px; }
.n-txt b { font-weight: 600; }
.n-post { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* profile */
.prof-sk { padding: 0 0 20px; display: grid; gap: 12px; }
.banner-sk { height: 150px; border-radius: 0; }
.av-sk { width: 96px; height: 96px; border-radius: 50%; margin: -56px 0 0 16px; }
.prof-sk .sk-col { padding: 0 16px; }
.banner { --h: 160; height: 150px; background: linear-gradient(120deg, hsl(var(--h) 40% 22%), hsl(calc(var(--h) + 60) 40% 14%) 60%, #0a0f1a); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .banner, .banner-sk { height: 200px; } }
.prof-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 16px; margin-top: -48px; }
.prof-av { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; }
.prof-acts { display: flex; gap: 8px; padding-bottom: 4px; }
.prof-id { padding: 10px 16px 4px; display: grid; gap: 6px; }
.prof-id h1 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.prof-id h1 .bdg { width: 20px; height: 20px; }
.prof-h { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--dim); }
.addr-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--dim); font: 12.5px var(--mono); cursor: pointer; }
.addr-chip:hover { color: var(--text); border-color: var(--line2); }
.fy { font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.prof-bio { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60ch; }
.prof-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.prof-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; }
.prof-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.prof-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 4px 0 0; }
.prof-counts button { background: none; border: 0; padding: 4px 0; color: var(--dim); font: 15px var(--sans); cursor: pointer; }
.prof-counts button:hover { text-decoration: underline; text-underline-offset: 3px; }
.prof-counts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.prem-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font: 500 13px var(--sans); color: var(--prem); border: 1px solid rgba(255, 196, 107, .3); }
.prem-pill:hover { text-decoration: none; background: rgba(255, 196, 107, .08); }
.prem-pill.on { background: rgba(255, 196, 107, .12); }
.prem-pill.big { height: 40px; padding: 0 18px; font-size: 15px; }
.tabs-line { display: flex; border-bottom: 1px solid var(--line); margin-top: 12px; }
.tabs-line button { flex: 1; max-width: 160px; height: 50px; background: none; border: 0; color: var(--muted); font: 500 15px var(--sans); position: relative; cursor: pointer; }
.tabs-line button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tabs-line button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--mint); transform: translateX(-50%); }

/* edit profile */
.ep-media { position: relative; margin: -4px -4px 44px; }
.ep-banner { position: relative; display: block; height: 130px; border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #1c3a40, #121a2b); cursor: pointer; }
.ep-banner img { width: 100%; height: 100%; object-fit: cover; }
.ep-av { position: absolute; left: 16px; bottom: -40px; cursor: pointer; border-radius: 50%; }
.ep-cam { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font: 500 14px var(--sans); background: rgba(5, 7, 13, .45); opacity: .9; transition: background-color .15s ease; }
.ep-cam.round { border-radius: 50%; }
.ep-banner:hover .ep-cam, .ep-av:hover .ep-cam { background: rgba(5, 7, 13, .6); }
.busy .ep-cam::after { content: ""; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
.link-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 40px; gap: 8px; align-items: center; }

/* premium */
.premium { padding: 28px 18px 40px; display: grid; gap: 24px; justify-items: center; text-align: center; }
.pm-hero { display: grid; gap: 10px; justify-items: center; }
.pm-crown { width: 84px; height: 84px; display: grid; place-items: center; color: var(--prem); background: rgba(255, 196, 107, .12); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }
.pm-hero h2 { font: 600 26px/1.15 var(--display); letter-spacing: -.02em; margin-top: 6px; }
.pm-hero p { margin: 0; color: var(--muted); max-width: 44ch; }
.pm-price { color: var(--text) !important; }
.pm-price b { color: var(--prem); font-weight: 600; }
.pm-perks { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; text-align: left; width: 100%; max-width: 460px; background: var(--s2); border: 1px solid var(--line); border-radius: 20px; }
.pm-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; }
.pm-perks li .ic { color: var(--prem); margin-top: 2px; }
.pm-cta { display: grid; gap: 10px; justify-items: center; }

/* ============================================================ chats layout */
.chats { display: grid; grid-template-columns: 1fr; height: 100%; min-height: 0; }
.clist { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pane { display: none; min-height: 0; min-width: 0; flex-direction: column; background: var(--bg); position: relative; }
.chats.pane-open .clist { display: none; }
.chats.pane-open .pane { display: flex; }
.chats.pane-open .pane { animation: paneIn .26s var(--ease-drawer); }
@keyframes paneIn { from { transform: translateX(24px); opacity: .4; } }
@media (min-width: 760px) {
  .chats { grid-template-columns: 340px minmax(0, 1fr); }
  .chats .clist, .chats.pane-open .clist { display: flex; border-right: 1px solid var(--line); background: var(--s1); }
  .chats .pane, .chats.pane-open .pane { display: flex; animation: none; }
  .back-btn { display: none !important; }
}
@media (min-width: 1200px) { .chats { grid-template-columns: 380px minmax(0, 1fr); } }
.cl-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 4px 18px; }
.cl-h h1 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.cl-f { padding: 0 12px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.cl-f::-webkit-scrollbar { display: none; }
.cl-f .chipbtn { height: 32px; }
.cl-items { flex: 1; overflow-y: auto; min-height: 0; padding: 0 6px 12px; overscroll-behavior: contain; }
.ci { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 10px; border-radius: 16px; color: var(--text); transition: background-color .12s ease; -webkit-touch-callout: none; }
.ci:hover { text-decoration: none; background: rgba(255, 255, 255, .035); }
.ci:active { background: rgba(255, 255, 255, .06); }
.ci.on { background: rgba(92, 242, 200, .1); }
.ci-m { display: grid; gap: 2px; min-width: 0; }
.ci-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ci-top b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ci-top time { margin-left: auto; padding-left: 8px; color: var(--dim); font-size: 12.5px; flex: none; }
.ci-k { color: var(--dim); display: inline-flex; }
.ci-sub { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; min-width: 0; }
.ci-sub > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; display: inline-flex; align-items: center; gap: 4px; }
.ci-sub .ic { display: inline-block; }
.e2e-s { color: var(--muted); }
.cl-empty { padding: 36px 20px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.cl-empty p { margin: 0; }
.pane-empty { display: grid; place-items: center; height: 100%; }

/* conversation header */
.ch { display: flex; align-items: center; gap: 6px; min-height: 60px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: rgba(5, 7, 13, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); flex: none; z-index: 5; }
.ch.slim { border-bottom: 0; background: transparent; position: absolute; top: 0; left: 0; right: 0; backdrop-filter: none; }
@media (min-width: 760px) { .ch { padding: 8px 14px 8px 18px; } .ch.slim { display: none; } }
.ch-id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: var(--text); padding: 2px 4px; border-radius: 12px; }
.ch-id:hover { text-decoration: none; }
.ch-t { display: grid; min-width: 0; line-height: 1.25; }
.ch-t.solo { flex: 1; padding-left: 6px; }
.ch-t b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; }
.ch-t > span { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.e2e-l { color: var(--mint) !important; }
.ch-acts { display: flex; align-items: center; gap: 2px; flex: none; }
.wide-only { display: none; }
@media (min-width: 900px) { .wide-only { display: inline-grid; } }
.buy-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 4px 0 12px; gap: 8px; border-radius: 999px; border: 1px solid rgba(92, 242, 200, .35); background: var(--mint-soft); color: var(--text); font: 500 13px var(--sans); cursor: pointer; margin-right: 4px; transition: transform .14s var(--ease-out), background-color .15s ease; }
.buy-pill:hover { background: rgba(92, 242, 200, .16); }
.buy-pill:active { transform: scale(.96); }
.bp-p { font-variant-numeric: tabular-nums; color: var(--muted); }
.bp-b { height: 26px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 600; display: grid; place-items: center; }
@media (max-width: 420px) { .bp-p { display: none; } .buy-pill { padding-left: 4px; } }
.topics { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; scrollbar-width: none; background: var(--bg); }
.topics::-webkit-scrollbar { display: none; }
.tp { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; background: rgba(255, 255, 255, .04); transition: background-color .15s ease, color .15s ease; }
.tp:hover { text-decoration: none; color: var(--text); }
.tp.on { background: var(--text); color: var(--bg); font-weight: 500; }
.tp.locked { color: var(--dim); }
.pinbar { display: flex; align-items: center; gap: 4px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--line); background: var(--s1); flex: none; animation: fadeIn .2s ease; }
.pb-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); text-align: left; padding: 6px 0; cursor: pointer; font: inherit; }
.pb-main .ic { color: var(--mint); }
.pb-main > span { display: grid; min-width: 0; line-height: 1.25; }
.pb-main b { font-size: 13px; color: var(--mint); font-weight: 500; }
.pb-main span span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
@keyframes fadeIn { from { opacity: 0; } }

/* messages */
.convo { flex: 1; min-height: 0; overflow-y: auto; position: relative; overscroll-behavior: contain; background: var(--bg); }
.msgs { display: flex; flex-direction: column; padding: 12px 10px 14px; gap: 2px; outline: none; max-width: 860px; margin: 0 auto; min-height: 100%; justify-content: flex-end; }
@media (min-width: 760px) { .msgs { padding: 16px 22px 18px; } }
.intro { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 16px 22px; color: var(--muted); }
.intro h2 { color: var(--text); font-size: 19px; font-weight: 600; margin-top: 4px; }
.intro p { margin: 0; max-width: 46ch; }
.intro-empty { color: var(--text); }
.older { display: flex; justify-content: center; gap: 8px; color: var(--dim); padding: 10px; font-size: 13px; align-items: center; }
.day { display: flex; justify-content: center; margin: 14px 0 8px; position: sticky; top: 8px; z-index: 2; pointer-events: none; }
.day span { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: rgba(12, 18, 32, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.newdiv { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--mint); font-size: 12.5px; font-weight: 500; }
.newdiv::before, .newdiv::after { content: ""; flex: 1; height: 1px; background: rgba(92, 242, 200, .35); }
.msg { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.msg.cont { margin-top: 2px; }
.msg.mine { flex-direction: row-reverse; }
.m-av { width: 36px; height: 36px; flex: none; display: block; }
.m-av.sp { visibility: hidden; height: 1px; }
.m-av.bot { display: grid; place-items: center; background: linear-gradient(150deg, #22314e, #141d30); color: var(--mint); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }
.bw { display: grid; justify-items: start; min-width: 0; max-width: min(78%, 560px); }
.msg.mine .bw { justify-items: end; }
.bub { position: relative; min-width: 64px; max-width: 100%; padding: 7px 12px 7px; border-radius: 18px; background: var(--s3); color: var(--text); overflow-wrap: anywhere; outline: none; transition: transform .14s var(--ease-out); box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.msg:not(.mine):not(.cont) .bub { border-top-left-radius: 6px; }
.msg.mine .bub { background: var(--mine); color: var(--mine-text); }
.msg.mine:not(.cont) .bub { border-top-right-radius: 6px; }
.msg.mine + .msg.mine.cont .bub { border-top-right-radius: 8px; }
.bub.wide { width: min(420px, 100%); }
.bub.held { transform: scale(.97); }
.msg.botm .bub { background: linear-gradient(180deg, #121b2e, #10182a); border: 1px solid var(--line); }
.m-name { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.m-name a { --h: 160; color: hsl(var(--h) 80% 72%); }
.m-name > span:first-child { color: var(--mint); }
.m-name .tagb { font-size: 10.5px; padding: 2px 6px; }
.m-body { white-space: pre-wrap; font-size: 15.5px; line-height: 1.42; display: inline; }
.msg.mine .m-body a { color: #9ff7dc; }
.m-body.gone { color: var(--dim); font-style: italic; display: inline-flex; align-items: center; gap: 6px; }
.m-meta { float: right; display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 -4px 10px; font-size: 11.5px; color: var(--dim); line-height: 1; font-variant-numeric: tabular-nums; user-select: none; }
.msg.mine .m-meta { color: rgba(230, 255, 247, .6); }
.m-ed { font-style: italic; }
.m-fwd { margin: 0 0 4px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.m-fwd a { color: var(--mint); font-weight: 500; }
.m-reply { display: grid; width: 100%; text-align: left; margin: 2px 0 6px; padding: 6px 10px; border: 0; border-radius: 10px; background: rgba(92, 242, 200, .08); color: var(--text); font: inherit; cursor: pointer; line-height: 1.3; }
.m-reply b { font-size: 13px; color: var(--mint); font-weight: 600; }
.m-reply span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.mine .m-reply { background: rgba(255, 255, 255, .08); }
.msg.mine .m-reply b { color: #9ff7dc; }
.bub .mg { margin: 2px -8px 6px; border-radius: 14px; border: 0; }
.msg.media-only .bub { padding: 4px; background: transparent; box-shadow: none; }
.msg.media-only .bub .mg { margin: 0; }
.msg.media-only .m-meta { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; float: none; }
.msg.flash .bub { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(92, 242, 200, .55); } }
.msg.in { animation: msgIn .3s var(--ease-out); }
.msg.sent { animation: msgSent .26s var(--ease-out); transform-origin: bottom right; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes msgSent { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* reactions */
.rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rx-c { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); color: var(--text); font: 500 13px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; transition: transform .14s var(--ease-out), border-color .15s ease, background-color .15s ease; }
.rx-c:hover { border-color: var(--line2); }
.rx-c:active { transform: scale(.92); }
.rx-c.mine { border-color: rgba(92, 242, 200, .55); background: rgba(92, 242, 200, .12); color: var(--mint); }
.rx-c.pop { animation: rxPop .36s var(--ease-out); }
@keyframes rxPop { 40% { transform: scale(1.18); } }
/* hover tools (desktop) */
.bw { position: relative; }
.m-tools { position: absolute; top: 2px; display: none; gap: 0; padding: 2px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line2); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8); z-index: 3; }
.msg:not(.mine) .m-tools { left: 100%; margin-left: 8px; }
.msg.mine .m-tools { right: 100%; margin-right: 8px; }
.mtl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; }
.mtl:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
@media (hover: hover) and (pointer: fine) {
  .msg:hover .m-tools, .msg:focus-within .m-tools, .m-tools:has([aria-expanded="true"]) { display: flex; animation: fadeIn .12s ease; }
}
.jump { position: sticky; bottom: 12px; margin: -54px 16px 12px auto; display: flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px; justify-content: center; border-radius: 999px; border: 1px solid var(--line2); background: var(--s2); color: var(--text); font: 600 13px var(--sans); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); z-index: 4; float: right; }
.jump span:empty { display: none; }
.jump:not([hidden]) { animation: popIn .2s var(--ease-out); }
.net-ban { position: sticky; top: 0; z-index: 5; padding: 8px 14px; background: rgba(255, 196, 107, .12); color: var(--amber); font-size: 13.5px; text-align: center; }

/* chat composer */
.composer-wrap { flex: none; border-top: 1px solid var(--line); background: rgba(5, 7, 13, .94); padding: 8px 10px calc(8px + var(--safe-b)); position: relative; }
@media (min-width: 760px) { .composer-wrap { padding: 10px 18px 14px; } }
.composer-wrap > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.composer { position: relative; display: flex; align-items: flex-end; gap: 4px; background: var(--s3); border: 1px solid transparent; border-radius: 26px; padding: 4px; transition: border-color .15s ease; }
.composer:focus-within { border-color: rgba(92, 242, 200, .35); }
.composer textarea { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 16px/1.4 var(--sans); padding: 10px 4px; resize: none; outline: none; max-height: 168px; }
.composer textarea::placeholder { color: var(--dim); }
.composer .tool { width: 42px; height: 42px; color: var(--muted); }
.composer .tool:hover { color: var(--mint); }
.send { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .14s var(--ease-out), opacity .15s ease, background-color .15s ease; }
.send:active { transform: scale(.9); }
.send:disabled { background: var(--s4); color: var(--dim); cursor: default; transform: none; }
.send[data-left]:not([data-left=""])::after { content: attr(data-left); position: absolute; inset: 0; display: grid; place-items: center; background: var(--s4); color: var(--amber); border-radius: 50%; font: 600 13px var(--sans); }
.send[data-left]:not([data-left=""]) .ic { visibility: hidden; }
.composer .mention-box { bottom: calc(100% + 8px); left: 0; }
.ctx-bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px 10px; color: var(--mint); animation: ctxIn .18s var(--ease-out); }
@keyframes ctxIn { from { opacity: 0; transform: translateY(6px); } }
.ctx-bar > span { flex: 1; display: grid; min-width: 0; line-height: 1.25; }
.ctx-bar b { font-size: 13px; font-weight: 600; }
.ctx-bar span span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-wrap .tray { padding: 0 4px 8px; }
.c-err { padding: 6px 12px 0; }
.locked { display: flex; align-items: center; gap: 12px; padding: 10px 6px; color: var(--muted); }
.locked > .ic { color: var(--mint); }
.locked > div { flex: 1; display: grid; min-width: 0; line-height: 1.35; }
.locked b { color: var(--text); font-weight: 600; }
.locked span { font-size: 14px; }
.guard-note { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; color: var(--amber); font-size: 14px; }
.locked-room { display: grid; place-items: center; min-height: 100%; }

/* cards inside messages */
.card { margin: 6px 0 2px; border-radius: 14px; background: rgba(5, 7, 13, .38); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; font-size: 14px; box-shadow: none; }
.trade-card .tc-h { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tc-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tc-logo.ph { display: grid; place-items: center; background: var(--s4); font: 600 11px var(--sans); color: var(--muted); }
.tc-t { display: grid; line-height: 1.25; min-width: 0; }
.tc-t b { font-weight: 600; text-transform: capitalize; }
.tc-t span { color: var(--dim); font-size: 12.5px; }
.tc-amt { font: 600 17px/1.1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.tc-amt small { font-size: 12px; color: var(--muted); font-weight: 500; }
.tc-amt.buy { color: var(--ok); } .tc-amt.sell { color: var(--red); }
.tc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 0; }
.tc-dl div, .card.custom div { display: grid; gap: 1px; min-width: 0; }
.tc-dl dt, .card.custom dt { font-size: 12px; color: var(--dim); }
.tc-dl dd, .card.custom dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.tc-maker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.tc-acts { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.tc-acts .lnk { font-size: 13px; }
.card.mile, .card.alert, .card.nft:not(.sale), .card.cap.wait, .card.cap.ok { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card.mile .ic { color: var(--mint); }
.card.alert.up { color: var(--ok); } .card.alert.down { color: var(--red); }
.card.alert span { color: var(--muted); }
.ln-h { display: flex; justify-content: space-between; gap: 8px; }
.ln-h span { color: var(--muted); }
.ln-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ln-bar span { display: block; height: 100%; width: 100%; background: var(--grad); border-radius: inherit; transform: scaleX(var(--w, 0)); transform-origin: left; transition: transform .6s var(--ease-out); }
.card.launch .btn, .card.price .btn { justify-self: start; }
.card.nft.sale { grid-template-columns: 64px 1fr; align-items: center; }
.card.nft.sale img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.card.nft.sale div { display: grid; gap: 2px; }
.card.nft.sale span { color: var(--muted); }
.card.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pr-v { font: 600 20px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.pr-v small { font-size: 12px; color: var(--muted); }
.pr-s { color: var(--muted); flex: 1; }
.card.ca { display: flex; align-items: center; gap: 8px; }
.card.ca code { font: 12.5px var(--mono); overflow-wrap: anywhere; flex: 1; color: var(--muted); }
.trade-req { grid-template-columns: 36px minmax(0, 1fr); align-items: center; }
.trade-req .tr-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: var(--mint); }
.trade-req div { display: grid; gap: 2px; }
.trade-req div span { color: var(--muted); font-size: 13px; }
.trade-req .btn { grid-column: 1 / -1; }
.card.tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-amt { font: 600 20px/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.tip-amt small { font-size: 12px; color: var(--muted); }
.tip-who { color: var(--muted); flex: 1 1 140px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.tip .btn { margin-left: auto; }
.give { background: linear-gradient(160deg, rgba(255, 196, 107, .08), transparent 60%), rgba(5, 7, 13, .38); }
.gv-h { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.gv-ic { width: 42px; height: 42px; display: grid; place-items: center; color: var(--prem); background: rgba(255, 196, 107, .12); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }
.gv-h div { display: grid; line-height: 1.3; }
.gv-h b { font-size: 15px; }
.gv-h span { color: var(--muted); font-size: 13px; }
.gv-t { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gv-t b { color: var(--text); font-variant-numeric: tabular-nums; }
.gv-w { margin: 0; padding: 0 0 0 20px; display: grid; gap: 4px; }
.gv-w a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; }
.card.cap p { margin: 0; }
.cap-row { display: flex; gap: 8px; }
.cap-e { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line2); background: var(--s2); font-size: 26px; cursor: pointer; transition: transform .14s var(--ease-out), border-color .15s ease; }
.cap-e:hover { border-color: var(--mint); }
.cap-e:active { transform: scale(.9); }
.card.cap.ok { color: var(--ok); }
.card.cap.wait { color: var(--muted); }
.shopc { grid-template-columns: 72px 1fr; align-items: center; gap: 12px; }
.shopc img, .sc-ph { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.sc-ph { display: grid; place-items: center; background: var(--s4); color: var(--muted); }
.shopc div { display: grid; gap: 3px; justify-items: start; }
.shopc span { color: var(--muted); font-size: 13px; }
.poll { gap: 6px; }
.pl-k { margin: 0 0 2px; font-size: 12.5px; color: var(--dim); }
.pl-o { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--text); font: 14.5px var(--sans); text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .14s var(--ease-out); }
.pl-o:hover { border-color: rgba(92, 242, 200, .45); }
.pl-o:active { transform: scale(.985); }
.pl-o.mine { border-color: rgba(92, 242, 200, .6); }
.pl-fill { position: absolute; inset: 0; background: rgba(92, 242, 200, .14); transform: scaleX(var(--w, 0)); transform-origin: left; transition: transform .5s var(--ease-out); }
.pl-l { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.pl-l .ic { color: var(--mint); }
.pl-p { position: relative; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.card.custom { grid-template-columns: 1fr 1fr; }

/* ============================================================ landing */
.landing { overflow-y: auto; flex: 1; min-height: 0; }
.ld-hero { --h: 160; height: 140px; background: linear-gradient(120deg, hsl(var(--h) 38% 22%), hsl(calc(var(--h) + 60) 36% 14%) 65%, var(--s1)); border-bottom: 1px solid var(--line); }
.ld-body { max-width: 560px; margin: -56px auto 0; padding: 0 18px 40px; display: grid; justify-items: center; text-align: center; gap: 10px; }
.ld-body > .hx { filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.ld-name { font: 600 clamp(24px, 6vw, 30px)/1.15 var(--display); letter-spacing: -.02em; margin-top: 6px; overflow-wrap: anywhere; }
.ld-kind { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.ld-desc { margin: 0; color: #d3dbea; max-width: 46ch; white-space: pre-wrap; }
.ld-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; width: 100%; }
@media (min-width: 560px) { .ld-stats:has(> :nth-child(3)) { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }
.ld-stats div { min-width: 0; padding: 10px 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.ld-stats dt { font-size: 12px; color: var(--dim); }
.ld-stats dd { margin: 2px 0 0; font: 600 17px var(--sans); font-variant-numeric: tabular-nums; }
.ld-welcome { margin: 4px 0; padding: 14px 16px; border-radius: 16px; background: var(--mint-soft); color: #d6fff1; text-align: left; white-space: pre-wrap; width: 100%; }
.ld-sec { width: 100%; text-align: left; display: grid; gap: 8px; margin-top: 6px; }
.ld-sec h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.ld-topics { list-style: none; margin: 0; padding: 4px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.ld-topics li { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; padding: 9px 10px; align-items: center; color: var(--muted); }
.ld-topics li b { color: var(--text); font-weight: 500; }
.ld-topics li span { grid-column: 2; font-size: 13px; color: var(--dim); }
.ld-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lds { display: grid; gap: 4px; padding: 8px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; }
.lds img, .lds .sc-ph { width: 100%; aspect-ratio: 1; height: auto; border-radius: 10px; object-fit: cover; }
.lds b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lds span { color: var(--muted); }
.ld-cta { width: 100%; display: grid; gap: 8px; margin-top: 10px; }
.ld-cta .btn.lg { font-size: 16px; }
.ld-note { margin: 4px 0 0; color: var(--dim); font-size: 13px; max-width: 46ch; }

/* sub pages */
.subpage { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 40px; display: grid; align-content: start; gap: 16px; }
.subpage > * { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
.pane-intro { margin: 0; color: var(--muted); }
.note-box { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 196, 107, .08); color: var(--amber); font-size: 14px; }
.info-hero { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.info-hero h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.info-hero p { margin: 0; color: var(--muted); max-width: 50ch; }
.info-links { display: grid; background: var(--s2); border: 1px solid var(--line); border-radius: 18px; padding: 4px; }
.info-links:empty { display: none; }
.il { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; color: var(--text); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.il:hover { text-decoration: none; background: rgba(255, 255, 255, .035); }
.il > .ic { color: var(--mint); }
.info-sec { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--s2); border: 1px solid var(--line); }
.info-sec h3 { font-size: 16px; font-weight: 600; }
.info-sec > p { margin: 0; }
.invite { padding: 12px; border-radius: 12px; background: var(--bg); border: 1px dashed rgba(92, 242, 200, .4); }
.invite code { font: 13px var(--mono); overflow-wrap: anywhere; color: var(--mint); }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; }
.topic-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.topic-list li span { flex: 1; display: grid; min-width: 0; }
.topic-list li b { color: var(--text); font-weight: 500; }
.topic-list li span span { font-size: 13px; }
.set-av { display: flex !important; align-items: center; gap: 12px; cursor: pointer; color: var(--text) !important; }
.set-av > span:last-of-type { display: grid; }
.info-sec .rows .prow { padding: 8px 0; }
.ng { max-width: 560px; }
.vis { grid-template-columns: 1fr 1fr; gap: 10px; }
.vis legend { grid-column: 1 / -1; }
.vis-o { position: relative; cursor: pointer; }
.vis-o input { position: absolute; opacity: 0; }
.vis-o > span { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line2); background: var(--s3); color: var(--muted); height: 100%; transition: border-color .15s ease, background-color .15s ease; }
.vis-o > span .ic { color: var(--mint); margin-bottom: 4px; }
.vis-o b { color: var(--text); font-weight: 600; }
.vis-o span span { font-size: 13px; }
.vis-o input:checked + span { border-color: var(--mint); background: rgba(92, 242, 200, .07); }
.vis-o input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }

/* bot store */
.bots { display: grid; gap: 10px; }
.bot { border-radius: 18px; background: var(--s2); border: 1px solid var(--line); padding: 14px; transition: border-color .2s ease; }
.bot.on { border-color: rgba(92, 242, 200, .3); }
.bot-h { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bot-ic { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); background: var(--s4); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; transition: background-color .2s ease, color .2s ease; }
.bot.on .bot-ic { color: var(--mint-ink); background: var(--mint); }
.bot-t h3 { font-size: 15.5px; font-weight: 600; }
.bot-t p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.bot-cfg { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.bot-cfg summary { cursor: pointer; color: var(--mint); font-size: 14px; padding: 4px 0; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.bot-cfg summary::-webkit-details-marker { display: none; }
.bot-cfg summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-out); }
.bot-cfg[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.bot-cfg .form { margin-top: 10px; }
.note-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; }
.note-row .cmd { display: flex; align-items: center; gap: 4px; grid-column: 1; color: var(--muted); }
.note-row textarea { grid-column: 1; }
.note-row .ib { grid-column: 2; grid-row: 1; }
.note-row .every { display: flex !important; align-items: center; gap: 6px; grid-column: 1; }
.note-row .every input { width: 90px; }
.custom-bot { display: grid; gap: 10px; padding: 16px; border-radius: 18px; border: 1px dashed var(--line2); }
.custom-bot h3 { font-size: 16px; font-weight: 600; }
.custom-bot p { margin: 0; }
.tagb + .tagb { margin-left: 4px; }

/* shop */
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
.shop-i { display: grid; gap: 8px; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--s2); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, transform .14s var(--ease-out); }
.shop-i:hover { border-color: var(--line2); }
.shop-i:active { transform: scale(.98); }
.si-img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--s4); color: var(--muted); }
.si-img img { width: 100%; height: 100%; object-fit: cover; }
.si-t { display: grid; gap: 2px; padding: 0 4px 4px; min-width: 0; }
.si-t b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si-p { font-weight: 600; color: var(--mint); font-variant-numeric: tabular-nums; }
.si-s { font-size: 12.5px; color: var(--dim); }
.item-d { display: grid; gap: 12px; margin-top: 14px; }
.item-price { margin: 0; font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; }
.item-price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.item-desc { margin: 0; white-space: pre-wrap; color: #d3dbea; }
.item-seller { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.item-seller b { color: var(--text); }
.protect { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--mint-soft); color: #cfeee4; font-size: 14px; }
.protect .ic { color: var(--mint); margin-top: 2px; }
.protect p { margin: 0; }
.orders { display: grid; gap: 4px; }
.order { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.order div { display: grid; }
.order span { color: var(--muted); font-size: 13.5px; }
.o-id { font: 12.5px var(--mono); color: var(--dim) !important; }

/* trade + tips + done */
.quote { font-variant-numeric: tabular-nums; }
.trade .quote, #trQuote { border: 0; padding: 12px 14px; border-radius: 14px; background: var(--s3); display: grid; gap: 6px; margin: 0; }
.q-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.q-row b { font-size: 17px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--s3); font-size: 14px; }
.st-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--s4); font: 600 12px var(--sans); color: var(--muted); grid-row: span 2; }
.steps li.now .st-ic { background: var(--mint-soft); color: var(--mint); }
.steps li.done .st-ic { background: var(--mint); color: var(--mint-ink); }
.st-s { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.st-s a { display: inline-flex; align-items: center; gap: 4px; }
.tip-to { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--s3); margin-bottom: 14px; min-width: 0; }
.tip-to div { display: grid; min-width: 0; }
.tip-to .mono { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.done-card { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 10px 0 18px; }
.done-card p { margin: 0; max-width: 40ch; }
.done-ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; animation: doneIn .4s var(--ease-out); }
@keyframes doneIn { from { transform: scale(.7); opacity: 0; } }
.tx-state { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.tx-state.ok { color: var(--ok); }

/* GIF search */
.gif-s { display: flex; gap: 8px; margin-bottom: 12px; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; }
.gif-i { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--s3); aspect-ratio: 4 / 3; }
.gif-i img { width: 100%; height: 100%; object-fit: cover; }

/* E2E */
.e2e-setup, .safety { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 32px 18px; margin: auto; max-width: 480px; }
.e2e-setup h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.e2e-setup p, .safety p { margin: 0; color: var(--muted); }
.e2e-ic { width: 76px; height: 76px; display: grid; place-items: center; color: var(--mint); background: var(--mint-soft); -webkit-mask: var(--hex) center / contain no-repeat; mask: var(--hex) center / contain no-repeat; }
.e2e-steps { text-align: left; margin: 4px 0 8px; padding: 14px 16px 14px 34px; display: grid; gap: 8px; color: var(--muted); background: var(--s2); border: 1px solid var(--line); border-radius: 16px; }
.e2e-empty { margin: auto 0; }
.sn-label { font-size: 13px; color: var(--dim) !important; margin-top: 6px !important; }
.sn { font: 500 22px/1.3 var(--mono); letter-spacing: .04em; color: var(--text) !important; padding: 12px 18px; border-radius: 14px; background: var(--s3); word-spacing: .2em; }
.bub.bad { background: rgba(255, 122, 140, .08); color: var(--muted); }
.bub.bad .m-body { display: inline-flex; gap: 6px; align-items: center; font-style: italic; }

/* ============================================================ sheets (bottom sheet on phones, dialog on desktop) */
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; border: 0; border-top: 1px solid var(--line2); background: var(--s2); padding: 0; overflow: hidden; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetUp .32s var(--ease-drawer); }
dialog.sheet.closing { animation: sheetDown .18s ease-in forwards; }
dialog.sheet::backdrop { background: rgba(2, 4, 9, .62); backdrop-filter: blur(3px); }
dialog.sheet[open]::backdrop { animation: fadeIn .2s ease; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.sh-b { padding: 8px 18px calc(18px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.sh-b::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 8px; }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -8px 6px 0; }
.sh-h h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.sh-sub { margin: 0 0 14px; color: var(--muted); }
.signin-sheet { display: grid; gap: 14px; padding: 6px 0 4px; }
.signin-sheet p { margin: 0; color: var(--muted); }
@media (min-width: 760px) {
  dialog.sheet { margin: auto; width: min(480px, calc(100% - 32px)); max-height: min(86vh, 860px); border-radius: 24px; border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
  dialog.sheet.wide { width: min(600px, calc(100% - 32px)); }
  dialog.sheet[open] { animation: dlgIn .22s var(--ease-out); }
  dialog.sheet.closing { animation: dlgOut .14s ease-in forwards; }
  .sh-b { padding: 20px 22px 22px; }
  .sh-b::before { display: none; }
  @keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
  @keyframes dlgOut { to { opacity: 0; transform: scale(.98); } }
}

/* ============================================================ popover menu + emoji */
.menu { position: fixed; z-index: 70; min-width: 220px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 18px; background: rgba(16, 23, 38, .97); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border: 1px solid var(--line2); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85); animation: popIn .16s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
.menu > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 15px var(--sans); text-align: left; cursor: pointer; }
.menu > button .ic { color: var(--muted); }
.menu > button:hover, .menu > button:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.menu > button.danger, .menu > button.danger .ic { color: var(--red); }
.qrx { display: flex; gap: 2px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.qrx.solo { border-bottom: 0; margin: 0; padding: 0; }
.qrx button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .14s var(--ease-out), background-color .12s ease; }
.qrx button:hover, .qrx button:focus-visible { background: rgba(255, 255, 255, .08); transform: scale(1.15); outline: none; }
.qrx button:active { transform: scale(.9); }
.qrx .qr-more { color: var(--muted); background: rgba(255, 255, 255, .05); }
.menu:has(.qrx.solo) { min-width: 0; border-radius: 999px; padding: 4px; }
.ep { width: min(340px, calc(100vw - 32px)); }
.ep-tabs { display: flex; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ep-tabs button { flex: 1; height: 36px; border: 0; border-radius: 10px; background: none; font-size: 18px; cursor: pointer; opacity: .55; transition: opacity .15s ease, background-color .15s ease; }
.ep-tabs button[aria-selected="true"] { opacity: 1; background: rgba(255, 255, 255, .07); }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 236px; overflow-y: auto; padding-top: 6px; }
.ep-e { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-size: 23px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .12s var(--ease-out), background-color .12s ease; }
.ep-e:hover, .ep-e:focus-visible { background: rgba(255, 255, 255, .08); transform: scale(1.12); outline: none; }
.menu:has(.ep) { border-radius: 20px; }

/* ============================================================ lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 10, .94); display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.lb-img { max-width: min(96vw, 1400px); max-height: 86vh; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; }
.lb-top .ib { color: #fff; background: rgba(255, 255, 255, .08); }
.lb-n { margin-right: auto; color: var(--muted); font-size: 14px; padding-left: 8px; }
.lb-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .rx-c.pop, .pa.like.pop .ic, .done-ic, .new-pill, .jump, .ctx-bar, .pinbar { animation: none !important; }
  .ln-bar span, .pl-fill, .switch span::after { transition: none !important; }
  .msg.in, .msg.sent, .post.enter, dialog.sheet[open], .menu, .tr-i, .chats.pane-open .pane { animation: fadeIn .15s ease !important; }
  .tabbar { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar, .topbar, .ch, .menu, .day span { background: var(--s1); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.bw:has(> .bub.wide) { width: min(420px, 100%); }
.menu:has(.qrx) { width: max-content; }
.note-box.soft { background: var(--mint-soft); color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.note-box.soft .ic { color: var(--mint); margin-top: 2px; }
.composer-wrap:empty { display: none; }
.mybots { margin-top: 4px; }
.mybots summary { cursor: pointer; color: var(--mint); display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.mybots summary::-webkit-details-marker { display: none; }
.mybots[open] > *:not(summary) { margin-top: 10px; }
.mybots .prow { padding: 8px 0; }
body[data-view="chats"] .toast { bottom: auto; top: 72px; }
@media (min-width: 760px) { body[data-view="chats"] .toast { top: 136px; } body.social #acctLink { display: none; } }
.cmp-go:disabled { opacity: .4; }
.ld-hero.tok { background: linear-gradient(120deg, #0f3a33, #0c1220 70%); }
.lb-n:empty { visibility: hidden; }
.card.tip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.card.tip .btn { grid-column: 1 / -1; margin: 0; justify-self: stretch; }
.act-sheet .qrx { justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0 12px; margin-bottom: 6px; }
.act-sheet .qrx button { width: 44px; height: 44px; font-size: 26px; }
.act-list { display: grid; }
.act-list button { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 6px; border: 0; background: none; color: var(--text); font: 16px var(--sans); text-align: left; border-radius: 12px; cursor: pointer; }
.act-list button .ic { color: var(--muted); }
.act-list button:active { background: rgba(255, 255, 255, .06); }
.act-list button.danger, .act-list button.danger .ic { color: var(--red); }
