/* ==========================================================================
   Sosyal Ağ — tasarım sistemi
   Koyu tema varsayılan; [data-theme="light"] açık tema.
   ========================================================================== */

:root {
  --bg: #0a0b10;
  --bg-soft: #0f1118;
  --surface: #13161f;
  --surface-2: #1a1e2a;
  --surface-3: #232838;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #eceef5;
  --text-2: #b4bacb;
  --muted: #7d859b;

  --violet: #8b6cff;
  --pink: #ff5f9e;
  --amber: #ffb547;
  --mint: #3ee0a8;
  --red: #ff5a6a;
  --brand: var(--violet);
  --brand-grad: linear-gradient(120deg, #8b6cff 0%, #d35cff 45%, #ff5f9e 75%, #ffb547 100%);
  --brand-soft: rgba(139, 108, 255, .14);
  --like: #1A8CD8;
  --like-soft: rgba(29, 161, 242, .12);

  --glass: rgba(10, 11, 16, .72);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --shadow-pop: 0 24px 60px -12px rgba(0,0,0,.65), 0 0 0 1px var(--border-strong);

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Inter", "Segoe UI", system-ui, sans-serif;

  --nav-w: 264px;
  --main-w: 620px;
  --side-w: 340px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f5fa;
  --bg-soft: #eceef6;
  --surface: #ffffff;
  --surface-2: #f3f4fa;
  --surface-3: #e8eaf3;
  --border: rgba(15, 18, 34, .08);
  --border-strong: rgba(15, 18, 34, .15);
  --text: #12141f;
  --text-2: #3d4356;
  --muted: #6b7286;
  --brand-soft: rgba(139, 108, 255, .12);
  --glass: rgba(255, 255, 255, .75);
  --shadow: 0 1px 2px rgba(15,18,34,.04), 0 12px 32px -16px rgba(15,18,34,.18);
  --shadow-pop: 0 24px 60px -16px rgba(15,18,34,.3), 0 0 0 1px var(--border);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(139, 108, 255, .35); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }

.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shimmer 6s linear infinite; }

/* ---- Aurora background --------------------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .22; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: #7b5cff; top: -18vmax; left: -10vmax; }
.aurora span:nth-child(2) { background: #ff4f9a; top: 20vh; right: -18vmax; animation-delay: -8s; animation-duration: 32s; }
.aurora span:nth-child(3) { background: #ffae3d; bottom: -24vmax; left: 30vw; animation-delay: -16s; opacity: .12; }
[data-theme="light"] .aurora span { mix-blend-mode: multiply; opacity: .12; }

/* ---- App shell ------------------------------------------------------------ */
.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, var(--main-w)) var(--side-w);
  justify-content: center;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.main { min-height: 100dvh; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* Left nav */
/* Viewport-bound column: logo fixed on top, links scroll in the middle, account stays visible. */
.sidenav { position: sticky; top: 0; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; display: flex; flex-direction: column; padding: 18px 0 16px; }
.sidenav > .logo { flex-shrink: 0; }
.nav-scroll {
  flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 -6px; padding: 3px 6px 8px; /* room for focus rings inside the scroll box */
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.nav-scroll > .theme-toggle { margin-top: auto; }
.nav-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid transparent; }
.sidenav.is-scrollable .nav-foot { border-top-color: var(--border); }
.logo { display: flex; align-items: center; gap: 12px; padding: 8px 12px 18px; font: 800 22px/1 var(--font-display); letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-grad); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(211, 92, 255, .6); position: relative; }
.brand-mark.lg { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 18px; }
.pulse-dot { width: 34%; height: 34%; border-radius: 50%; background: #fff; animation: heartbeat 1.6s ease-in-out infinite; }
.brand-mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(211, 92, 255, .6); animation: ripple 1.6s ease-out infinite; }

.nav-link {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 999px;
  font-size: 17px; font-weight: 500; color: var(--text-2);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  position: relative;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link:active { transform: scale(.97); }
.nav-link.active { color: var(--text); font-weight: 700; }
.nav-link.active .icon { stroke-width: 2.3; color: var(--violet); }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 22px; transform: translateY(-50%); border-radius: 4px; background: var(--brand-grad); }

.btn-compose { margin-top: 14px; flex-shrink: 0; }
.nav-scroll > .theme-toggle { flex-shrink: 0; }
.me-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 999px; transition: background .2s; }
.me-card:hover { background: var(--surface-2); }
.me-card .who { min-width: 0; flex: 1; line-height: 1.25; }
.me-card .who b, .me-card .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { color: var(--muted); font-size: 14px; }

/* Right sidebar */
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 12px 0 24px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.search-box { position: relative; }
.search-box input {
  width: 100%; height: 46px; padding: 0 18px 0 46px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--violet); background: var(--bg); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-title { font: 800 19px/1.2 var(--font-display); padding: 16px 18px 6px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--pink); width: 20px; }
.card-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; transition: background .2s; }
.card-row:hover { background: var(--surface-2); }
.card-row .grow { flex: 1; min-width: 0; line-height: 1.3; }
.card-row .grow b, .card-row .grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-row .grow span, .card-row small { color: var(--muted); font-size: 13.5px; }
.card-foot { display: block; padding: 14px 18px; color: var(--violet); font-size: 14.5px; }
.card-foot:hover { background: var(--surface-2); }
.trend-rank { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 899.98px) {
  .page-foot .footer-links { align-items: center; column-gap: 16px; row-gap: 4px; }
  .page-foot .footer-copyright { flex: 0 0 100%; line-height: 1.5; }
  .page-foot .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Page header (glass) */
.page-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  min-height: 58px; padding: calc(8px + var(--safe-t)) 18px 8px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.page-head h1 { margin: 0; font: 800 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .head-mobile-avatar { display: none; }
.page-head .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .2s, color .2s, transform .2s var(--spring); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.9); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.tabs { display: flex; border-bottom: 1px solid var(--border); position: relative; }
.tabs a { flex: 1; text-align: center; padding: 16px 0; color: var(--muted); font-weight: 600; position: relative; transition: color .2s, background .2s; }
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a.active { color: var(--text); }
.tabs a.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 4px; transform: translateX(-50%); background: var(--brand-grad); animation: grow-x .35s var(--spring); }

/* ---- Avatars ------------------------------------------------------------- */
.avatar {
  --h: 260;
  display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 50) 90% 58%));
  color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: 0 0 0 2px var(--bg);
  user-select: none;
}
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 128px; height: 128px; font-size: 52px; box-shadow: 0 0 0 5px var(--bg); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--spring), box-shadow .25s var(--ease), background .2s, opacity .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-grad); background-size: 160% 100%; background-position: 0 0; color: #fff; box-shadow: 0 10px 26px -10px rgba(211, 92, 255, .7); }
.btn-primary:not(:disabled):hover { background-position: 100% 0; box-shadow: 0 14px 32px -10px rgba(255, 95, 158, .75); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { opacity: .88; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-follow.following { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-follow.following:hover { color: var(--red); border-color: rgba(255, 90, 106, .5); background: rgba(255, 90, 106, .08); }
/* All three labels share one grid cell, so the button keeps the widest label's width.
   (Swapping to the shorter "Bırak" used to shrink it out from under the cursor → hover flicker.) */
.btn-follow { display: inline-grid; place-items: center; }
.btn-follow > span { grid-area: 1 / 1; }
.btn-follow.following .lbl-unfollow, .btn-follow.following:hover .lbl-following { visibility: hidden; }
.btn-follow.following:hover .lbl-unfollow { visibility: visible; }
.btn-follow:not(.following) .lbl-following, .btn-follow:not(.following) .lbl-unfollow { visibility: hidden; }
.btn-follow.following .lbl-follow { visibility: hidden; }

/* ---- Composer ------------------------------------------------------------ */
.composer { display: flex; gap: 14px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); position: relative; }
.composer .body { flex: 1; min-width: 0; }
.composer textarea {
  width: 100%; min-height: 56px; max-height: 50vh; resize: none; border: 0; outline: none; background: transparent;
  font-size: 19px; line-height: 1.45; padding: 8px 0;
}
.composer textarea::placeholder { color: var(--muted); }
.composer-bar { display: flex; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid transparent; transition: border-color .3s; }
.composer.focused .composer-bar { border-top-color: var(--border); }
.composer-hint { color: var(--muted); font-size: 13px; flex: 1; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.composer.focused .composer-hint { opacity: 1; transform: none; }
.ring { width: 28px; height: 28px; transform: rotate(-90deg); transition: transform .3s var(--spring); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: var(--violet); stroke-linecap: round; transition: stroke-dashoffset .2s var(--ease), stroke .2s; }
.ring.warn .bar { stroke: var(--amber); }
.ring.over .bar { stroke: var(--red); }
.ring.warn { transform: rotate(-90deg) scale(1.2); }
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring-count { position: absolute; font-size: 11px; font-weight: 700; color: var(--muted); }
.ring-wrap.over .ring-count { color: var(--red); }
.composer-reply-to { color: var(--muted); font-size: 14px; padding-bottom: 2px; }
.composer-reply-to a { color: var(--violet); }

/* ---- Posts --------------------------------------------------------------- */
.feed { position: relative; }
.post {
  display: flex; gap: 14px; padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
  transition: background .25s var(--ease);
  position: relative; cursor: pointer;
  animation: rise .5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.post:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.post.fresh { animation: pop-in .6s var(--spring) both; }
.post.fresh::before { content: ""; position: absolute; inset: 0; background: var(--brand-soft); animation: fade-out 2.4s var(--ease) forwards; pointer-events: none; }
.post.removing { animation: collapse .45s var(--ease) forwards; overflow: hidden; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 6px; font-size: 15px; min-width: 0; }
.post-head .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-head .name:hover { text-decoration: underline; }
.post-head .handle, .post-head .dot, .post-head time { color: var(--muted); white-space: nowrap; }
.post-head .handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-head time:hover { text-decoration: underline; }
.badge-admin { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-grad); color: #fff; flex: none; }
.badge-admin .icon { width: 11px; height: 11px; stroke-width: 3.2; }
.post-reply-to { color: var(--muted); font-size: 14px; margin-top: 1px; }
.post-reply-to a { color: var(--violet); }
.post-body { margin-top: 3px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.post-body a { color: var(--violet); }
.post-body a:hover { text-decoration: underline; }
.post-body a.tag { color: var(--pink); }
.post-actions { display: flex; gap: 4px; margin: 6px 0 0 -9px; max-width: 420px; justify-content: space-between; }
.act {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 8px; border-radius: 999px;
  color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; position: relative;
  transition: color .2s, background .2s;
}
.act .icon { width: 19px; height: 19px; transition: transform .3s var(--spring); }
.act:hover .icon { transform: scale(1.12); }
.act-reply:hover { color: var(--violet); background: var(--brand-soft); }
.act-like:hover { color: var(--like); background: var(--like-soft); }
.act-like.liked { color: var(--like); }
.act-like.liked .icon { fill: var(--like); animation: like-pop .5s var(--spring); }
.act-del:hover { color: var(--red); background: rgba(255,90,106,.1); }
.act .count { min-width: 1ch; display: inline-block; }
.count.roll-up { animation: roll-up .35s var(--ease); }
.count.roll-down { animation: roll-down .35s var(--ease); }

/* Heart burst particles */
.burst { position: absolute; left: 17px; top: 18px; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--c); animation: burst .7s var(--ease) forwards; transform: rotate(var(--a)) translateY(0); }
.burst .ring-burst { position: absolute; width: 36px; height: 36px; left: -18px; top: -18px; border-radius: 50%; border: 2px solid var(--like); animation: ring-burst .5s var(--ease) forwards; }

/* Detail page */
.post-detail { padding: 16px 18px 0; border-bottom: 1px solid var(--border); animation: rise .45s var(--ease) both; }
.post-detail .who { display: flex; gap: 12px; align-items: center; }
.post-detail .who .grow { flex: 1; line-height: 1.3; min-width: 0; }
.post-detail .who b { display: flex; align-items: center; gap: 6px; }
.post-detail .who .grow > span { color: var(--muted); }
.post-detail .post-body { font-size: 20px; line-height: 1.45; margin: 14px 0; }
.post-detail .meta { color: var(--muted); font-size: 14.5px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.post-detail .stats { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.post-detail .stats b { color: var(--text); }
.post-detail .post-actions { justify-content: space-around; max-width: none; margin: 4px 0; }
.parent-post { border-bottom: 0; }
.parent-post::after { content: ""; position: absolute; left: 39px; top: 64px; bottom: -6px; width: 2px; background: var(--border-strong); }

/* Feed states */
.new-pill {
  position: sticky; top: 70px; z-index: 15; margin: 0 auto; height: 0; display: flex; justify-content: center; pointer-events: none;
}
.new-pill button {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px -8px rgba(211,92,255,.7);
  transform: translateY(-30px) scale(.8); opacity: 0; transition: transform .45s var(--spring), opacity .3s;
}
.new-pill button .icon { width: 17px; height: 17px; }
.new-pill.show button { transform: none; opacity: 1; }
.feed-end { text-align: center; color: var(--muted); padding: 34px 20px calc(40px + var(--tabbar-h)); font-size: 14px; }
.sentinel { height: 1px; }
.loader { display: flex; justify-content: center; padding: 26px; }
.loader span { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--violet); animation: bounce 1s var(--ease) infinite; }
.loader span:nth-child(2) { animation-delay: .12s; background: var(--pink); }
.loader span:nth-child(3) { animation-delay: .24s; background: var(--amber); }
.empty { padding: 56px 32px; text-align: center; animation: rise .5s var(--ease) both; }
.empty .emoji { font-size: 44px; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.empty h2 { font: 800 26px/1.2 var(--font-display); margin: 0 0 8px; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 0 auto 20px; max-width: 360px; }

/* Skeleton */
.skeleton { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }

/* ---- Profile ------------------------------------------------------------- */
.cover { height: 200px; background: var(--brand-grad); background-size: 200% 200%; animation: gradient-pan 14s ease infinite; position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 120%, rgba(0,0,0,.35), transparent 60%), radial-gradient(circle at 90% -20%, rgba(255,255,255,.25), transparent 50%); }
.cover-pattern { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px; }
.profile-top { padding: 0 18px 16px; position: relative; }
.profile-top .avatar-xl { margin-top: -64px; position: relative; animation: pop-in .6s var(--spring) both; }
.profile-actions { position: absolute; right: 18px; top: 14px; display: flex; gap: 8px; }
.profile-name { margin: 12px 0 0; font: 800 23px/1.2 var(--font-display); letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.profile-handle { color: var(--muted); }
.profile-bio { margin: 12px 0 0; white-space: pre-line; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .icon { width: 17px; height: 17px; }
.profile-stats { display: flex; gap: 20px; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.profile-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill-banned { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(255,90,106,.15); color: var(--red); font-size: 12px; font-weight: 700; }

/* ---- Forms / auth -------------------------------------------------------- */
.bare { display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); }
.auth-card {
  width: 100%; max-width: 440px; padding: 36px 32px; border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop);
}
.auth-card h1 { margin: 0 0 6px; font: 800 30px/1.15 var(--font-display); letter-spacing: -.03em; text-align: center; }
.auth-card > .muted { text-align: center; margin: 0 0 24px; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); }
.auth-switch a { color: var(--violet); font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 12px; }
.form legend { font-weight: 700; margin-bottom: 10px; color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
  height: 50px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--border);
  outline: none; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.field.has-error input { border-color: var(--red); }
.field .err { color: var(--red); font-size: 13px; animation: shake .4s; }
.field .help { color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: 14px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
form:has([value="sqlite"]:checked) .mysql-only { display: none; }
.mysql-only { display: flex; flex-direction: column; gap: 12px; }

.alert { padding: 12px 16px; border-radius: 14px; font-size: 14.5px; margin-bottom: 12px; animation: rise .4s var(--ease) both; }
.alert-error { background: rgba(255,90,106,.12); color: var(--red); border: 1px solid rgba(255,90,106,.25); }
.alert-success { background: rgba(62,224,168,.12); color: var(--mint); border: 1px solid rgba(62,224,168,.25); }
.announcement { margin: 12px 18px 0; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid rgba(139,108,255,.25); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }

/* ---- Landing ------------------------------------------------------------- */
.landing { width: 100%; max-width: 1120px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.landing-hero h1 { font: 800 clamp(40px, 6.4vw, 76px)/1.02 var(--font-display); letter-spacing: -.045em; margin: 22px 0 18px; }
.landing-hero p { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 520px; margin: 0 0 30px; }
.landing-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-logo { display: flex; align-items: center; gap: 12px; font: 800 24px/1 var(--font-display); }
.landing-logo .brand-mark { margin: 0; }
.float-stack { position: relative; height: 460px; }
.float-card {
  position: absolute; width: 300px; padding: 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop);
  display: flex; gap: 12px; animation: float 6s ease-in-out infinite;
}
.float-card p { margin: 4px 0 8px; font-size: 14.5px; }
.float-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.float-card .meta .hot { color: var(--like); }
.float-card:nth-child(1) { top: 10px; left: 0; transform: rotate(-4deg); }
.float-card:nth-child(2) { top: 160px; right: 0; animation-delay: -2s; }
.float-card:nth-child(3) { top: 310px; left: 30px; animation-delay: -4s; transform: rotate(3deg); }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }

/* ---- Toasts -------------------------------------------------------------- */
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; padding: 12px 20px; border-radius: 14px; background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-pop); animation: toast-in .45s var(--spring) both;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
}
.toast.error { background: var(--red); color: #fff; }
.toast.success .icon { color: var(--mint); }
.toast.leaving { animation: toast-out .3s var(--ease) forwards; }
.toast .icon { width: 18px; height: 18px; }

/* ---- Mobile chrome (hidden on desktop) ----------------------------------- */
.tabbar, .fab, .sheet-backdrop { display: none; }

/* Bottom sheet composer (mobile) & modal (desktop) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 10, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.sheet {
  position: fixed; z-index: 61; left: 50%; top: 8vh; width: min(600px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 24px; box-shadow: var(--shadow-pop);
  transform: translate(-50%, -12px) scale(.97); opacity: 0; pointer-events: none;
  transition: transform .4s var(--spring), opacity .25s;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 0; }
.sheet .composer { border-bottom: 0; }
.sheet-open .sheet-backdrop { display: block; opacity: 1; }
.sheet-open .sheet { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.sheet-grip { display: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1240px) {
  :root { --nav-w: 88px; }
  .logo span:last-child, .me-card .who, .me-card > .icon { display: none; }
  .nav-link > span:not([class]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* icon-only, label kept for screen readers */
  .logo { justify-content: center; padding: 8px 0 18px; }
  .nav-link { justify-content: center; padding: 14px; }
  .nav-link.active::before { display: none; }
  .btn-compose { width: 54px; height: 54px; padding: 0; margin-left: auto; margin-right: auto; }
  .btn-compose span { display: none; }
  .me-card { justify-content: center; flex-direction: column; gap: 6px; padding: 8px 0; }
  .sidenav { align-items: center; }
  .nav-scroll, .nav-foot { align-self: stretch; align-items: center; }
}
@media (max-width: 1060px) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, var(--main-w)); }
  .sidebar { display: none; }
}
/* ---- Shared components added in phase 2 ---------------------------------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }
.main:focus { outline: none; }
.hide-mobile { }
.m-top, .m-compose { display: none; }
.icon-wrap { position: relative; display: inline-grid; }
.badge { position: absolute; top: -6px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.badge[hidden] { display: none; }
.count-pill { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.head-text { min-width: 0; }
.head-text h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forgot-link { align-self: flex-end; color: var(--violet); font-size: 14px; font-weight: 600; padding: 4px 0; min-height: 44px; display: inline-flex; align-items: center; }
.check a, .legal a { color: var(--violet); text-decoration: underline; }
.page-foot { padding: 24px 16px calc(32px + var(--tabbar-h)); }

/* Composer media */
.composer-attach { cursor: pointer; color: var(--violet); }
.composer-attach:hover { background: var(--brand-soft); color: var(--violet); }
.composer :focus-visible + .composer-attach, .composer input[type=file]:focus-visible ~ .composer-attach { outline: 2px solid var(--violet); }
.composer-media { position: relative; margin: 8px 0 4px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); max-width: 100%; }
.composer-media img { width: 100%; max-height: 320px; object-fit: cover; }
.media-remove { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; }
.media-remove .icon { width: 18px; height: 18px; }

/* Post media */
.post-media { display: block; margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.post-media img { width: 100%; max-height: 520px; object-fit: cover; }
.post-detail .post-media img { max-height: none; }
.act-report:hover { color: var(--amber); background: rgba(255,181,71,.1); }

/* Notifications */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.notif.unread { background: color-mix(in srgb, var(--violet) 7%, transparent); }
.notif.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--violet); }
.notif-ico { width: 40px; display: grid; justify-items: end; padding-top: 4px; color: var(--violet); }
.notif-ico .icon { width: 26px; height: 26px; }
.type-like .notif-ico { color: var(--like); }
.type-like .notif-ico .icon { fill: var(--like); }
.type-follow .notif-ico { color: var(--mint); }
.notif-link { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notif-text { line-height: 1.4; }
.notif-snippet { color: var(--muted); font-size: 14.5px; overflow-wrap: anywhere; }

/* People list */
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.person-row .grow { flex: 1; min-width: 0; line-height: 1.35; }
.person-row .grow b, .person-row .grow > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .grow > span { color: var(--muted); font-size: 14px; }
.person-row small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* Settings */
.settings-group { border-bottom: 8px solid var(--bg-soft); }
.settings-group h2 { margin: 0; padding: 18px 18px 6px; font: 700 13px/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.settings-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 18px; text-align: left; transition: background .2s; }
.settings-row:hover:not(.static) { background: var(--surface-2); }
.settings-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.settings-row small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.settings-row > .icon:last-child { color: var(--muted); width: 18px; }
.pad-form { padding: 8px 18px 22px; }
.danger-zone h2 { color: var(--red); }
.legal { padding: 20px 18px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-note { margin-top: 24px; font-size: 13.5px; }

/* Profile edit */
.profile-edit .cover { position: relative; }
.media-pick { position: absolute; inset: 0; margin: auto; width: max-content; height: 44px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.6); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; z-index: 2; }
.media-pick .icon { width: 20px; height: 20px; }
.media-pick.round { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
input[type=file]:focus-visible + .media-pick, .media-pick:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.edit-avatar { position: relative; width: max-content; margin: -48px 0 0 18px; z-index: 3; }
.edit-avatar .avatar-xl { width: 104px; height: 104px; font-size: 42px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cover.has-image img, .edit-cover.has-image img { width: 100%; height: 100%; object-fit: cover; }
.err[role=alert] { color: var(--red); font-size: 13px; }

/* Dialogs: account menu, report, lightbox */
dialog { color: var(--text); }
.menu-sheet { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 8px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-pop); overflow-y: auto; }
.menu-sheet::backdrop { background: rgba(5, 6, 10, .55); }
.menu-sheet[open] { animation: pop-in .3s var(--spring); }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head .grow { min-width: 0; display: flex; flex-direction: column; }
.menu-head span { color: var(--muted); font-size: 14px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; font-size: 16px; font-weight: 500; text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); }
.menu-item.danger { color: var(--red); }
.menu-item .icon { width: 22px; height: 22px; color: var(--text-2); }
.menu-item.danger .icon { color: var(--red); }
.menu-close { justify-content: center; margin-top: 6px; color: var(--muted); border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.report-form { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.report-form h2 { margin: 0; font: 800 20px/1.2 var(--font-display); }
.report-form p { margin: 0; font-size: 14px; }
.radio-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.radio-list label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--violet); background: var(--brand-soft); }
.radio-list input { width: 18px; height: 18px; accent-color: var(--violet); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.lightbox { max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; padding: 0; margin: 0; border: 0; background: rgba(0,0,0,.92); }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox-close { position: fixed; top: calc(12px + var(--safe-t)); right: 12px; width: 44px; height: 44px; background: rgba(255,255,255,.12); color: #fff; }
.sheet[aria-hidden="true"] { visibility: hidden; }
.sheet-open .sheet { visibility: visible; }

/* ---- Calm palette ---------------------------------------------------------
   Neutral surfaces with the existing violet as the single accent; the wide
   violet/pink glow is gone and gradients stay only on the small brand mark. */
.aurora { display: none; }
.btn-primary { background: var(--violet); box-shadow: none; }
.btn-primary:not(:disabled):hover { background: #7656f0; box-shadow: none; }
.grad-text { background: none; color: var(--violet); -webkit-text-fill-color: currentColor; animation: none; }
.cover { background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); animation: none; }
.cover::after { background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 55%); }
.cover.has-image::after { display: none; }
.cover-pattern { opacity: .08; }
.tabs a.active::after, .nav-link.active::before { background: var(--violet); }
.new-pill button { background: var(--violet); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.brand-mark { box-shadow: none; }
.brand-mark::after { display: none; }
.auth-card { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow); }
.post.fresh::before { background: color-mix(in srgb, var(--violet) 10%, transparent); }
.badge-admin { background: var(--violet); }
.post-body a.tag { color: var(--violet); }
.float-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.btn-follow:not(.following) { background: var(--text); }

/* ---- Mobile: "C · Kompakt okuma" ------------------------------------------
   Top bar with search + notifications, a "Neler oluyor?" row at the head of the
   feed, 16px reading text and a labelled bottom navigation. Desktop untouched. */
@media (max-width: 700px) {
  :root { --tabbar-h: 64px; }
  body { font-size: 16px; background: var(--bg); }
  .shell { display: block; padding: 0; }
  .sidenav { display: none; }
  .main { border: 0; padding-bottom: calc(var(--tabbar-h) + 12px + var(--safe-b)); min-height: auto; background: var(--bg); }
  .hide-mobile, .composer.inline { display: none; }

  /* Top bar */
  .m-top { display: block; position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t); background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--border); }
  .m-top-row { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 12px; }
  .m-avatar-btn, .m-brand { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; flex: none; }
  .m-avatar-btn .avatar-sm { width: 34px; height: 34px; font-size: 15px; }
  .m-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .m-search { flex: 1; min-width: 0; position: relative; }
  .m-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
  .m-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid transparent; background: var(--surface-2); font-size: 16px; outline: none; }
  .m-search input:focus { border-color: var(--violet); background: var(--bg); }
  .m-icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); flex: none; }
  .m-icon-btn .icon { width: 24px; height: 24px; }
  .m-icon-btn .badge { top: 4px; left: 24px; }
  .m-tabs { display: flex; }
  .m-tabs a { flex: 1; height: 46px; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--muted); position: relative; }
  .m-tabs a.on { color: var(--text); }
  .m-tabs a.on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 44px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: var(--violet); }

  /* Compose row at the head of the feed */
  .m-compose { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .m-compose .avatar-sm { width: 36px; height: 36px; font-size: 15px; }
  .m-compose-prompt { flex: 1; min-height: 44px; text-align: left; color: var(--muted); font-size: 16px; }

  /* Page headers on inner pages */
  .page-head { min-height: 56px; padding: calc(6px + var(--safe-t)) 8px 6px 4px; gap: 6px; }
  .page-head h1 { font-size: 18px; }
  .page-head .icon-btn, .icon-btn { width: 44px; height: 44px; }
  .page-head .search-box { margin-left: 8px; }
  .page-head .search-box input { height: 44px; font-size: 16px; }
  .page-head .head-mobile-avatar { display: block; }

  /* Posts: compact reading */
  .post { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 14px 2px; }
  .post .avatar-md { width: 36px; height: 36px; font-size: 15px; }
  .post-head { font-size: 15px; }
  .post-head .handle { flex: 0 1 auto; }
  .post-body { font-size: 16px; line-height: 1.5; }
  .post-media { border-radius: 12px; }
  .post-media img { aspect-ratio: 16 / 9; max-height: none; }
  .post-actions { max-width: none; margin: 2px 0 0 -12px; justify-content: flex-start; gap: 4px; }
  .act { height: 44px; min-width: 44px; padding: 0 12px 0 10px; justify-content: center; }
  .act .icon { width: 20px; height: 20px; }
  .act-like { margin-right: auto; }
  .parent-post::after { left: 31px; top: 54px; }
  .post-detail { padding: 14px 14px 0; }
  .post-detail .post-body { font-size: 18px; }
  .post-detail .post-actions { justify-content: space-around; margin-left: 0; }
  .post-detail .act-like { margin-right: 0; }
  .composer { padding: 12px 14px 10px; gap: 10px; }
  .composer textarea { font-size: 17px; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .btn-sm { height: 44px; padding: 0 16px; }
  .tabs a { padding: 0; min-height: 48px; display: grid; place-items: center; }
  .card-row, .person-row { min-height: 60px; padding-left: 14px; padding-right: 14px; }
  .profile-stats a { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
  .profile-meta a { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .check { min-height: 44px; align-items: center; }
  .notif { padding: 12px 14px; grid-template-columns: 32px minmax(0, 1fr); }
  .notif-ico { width: 32px; }

  /* Labelled bottom navigation */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); min-width: 0; }
  .tabbar .ic { position: relative; width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s; }
  .tabbar .ic .icon { width: 22px; height: 22px; }
  .tabbar .lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active .ic { background: var(--brand-soft); color: var(--violet); }
  .tabbar a.active .icon { stroke-width: 2.2; }
  .tabbar .badge { top: -2px; left: 32px; }

  /* Bottom sheet composer; follows the on-screen keyboard via --kb (set in app.js) */
  .sheet {
    left: 0; right: 0; top: auto; bottom: var(--kb, 0px); width: 100%;
    border-radius: 22px 22px 0 0; padding-bottom: var(--safe-b);
    transform: translateY(100%); transition: transform .4s var(--ease), bottom .2s;
    max-height: calc(100dvh - var(--kb, 0px) - 24px); overflow-y: auto;
  }
  .sheet-open .sheet { transform: translateY(0); }
  .sheet-grip { display: block; width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 8px auto 0; }
  .sheet .composer textarea { font-size: 17px; min-height: 110px; }
  .menu-sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(8px + var(--safe-b)); border-bottom: 0; }

  .toasts { bottom: calc(var(--tabbar-h) + 16px + var(--safe-b)); }
  .new-pill { top: 118px; }

  /* Profile */
  .cover { height: 128px; }
  .avatar-xl { width: 84px; height: 84px; font-size: 34px; }
  .profile-top { padding: 0 14px 14px; }
  .profile-top .avatar-xl { margin-top: -42px; }
  .profile-actions { right: 14px; top: 12px; }
  .profile-name { font-size: 21px; flex-wrap: wrap; }
  .profile-name-text { overflow-wrap: anywhere; }
  .edit-avatar { margin-left: 14px; margin-top: -42px; }
  .edit-avatar .avatar-xl { width: 88px; height: 88px; }

  /* Landing & auth */
  .bare { place-items: start center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
  .landing { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .landing-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .landing-hero p { margin-left: auto; margin-right: auto; font-size: 17px; }
  .landing-cta, .feature-chips, .landing-logo { justify-content: center; }
  .landing-cta .btn { flex: 1 1 100%; }
  .float-stack { display: none; }
  .auth-card { padding: 24px 18px; border-radius: 20px; }
  .auth-card h1 { font-size: 26px; }
  .field input, .field select { height: 52px; font-size: 16px; }
  .field textarea { font-size: 16px; }
  .announcement { margin: 10px 14px 0; }
  .empty { padding: 40px 20px; }
  .feed-end { padding-bottom: 32px; }
}
@media (max-width: 370px) {
  .tabbar .ic { width: 48px; }
  .tabbar .lbl { font-size: 11px; }
  .m-top-row { gap: 4px; padding-left: 8px; }
  .post-head .handle { display: none; }
}

/* ---- Keyframes ----------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.85); } 100% { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes collapse { 0% { opacity: 1; max-height: 600px; } 40% { opacity: 0; transform: translateX(30px); } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateX(30px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } 100% { transform: translate(-6vw, 10vh) scale(.95); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes like-pop { 0% { transform: scale(1); } 30% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-26px) scale(.3); } }
@keyframes ring-burst { 0% { transform: scale(.2); opacity: 1; border-width: 10px; } 100% { transform: scale(1.1); opacity: 0; border-width: 1px; } }
@keyframes roll-up { 0% { transform: translateY(70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes roll-down { 0% { transform: translateY(-70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-9px); opacity: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes gradient-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes grow-x { from { width: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.95); } }

.reveal { animation: rise .7s var(--ease) both; }
.reveal-2 { animation: rise .7s var(--ease) .12s both; }
.reveal-3 { animation: rise .7s var(--ease) .24s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Mobile touch-target fixes from the 360/390/430 audit */
@media (max-width: 700px) {
  .head-mobile-avatar { width: 44px; height: 44px; display: grid !important; place-items: center; flex: none; }
  .footer-links a { min-width: 44px; justify-content: center; }
  .post-detail .who a.grow { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .act { height: 46px; min-width: 46px; }
}
.search-head { flex: 1; min-width: 0; }

/* Video posts */
.post-video { background: #000; }
.post-video video, .composer-media video { display: block; width: 100%; max-height: 520px; background: #000; }
.composer-media video { max-height: 320px; }
@media (max-width: 700px) { .post-video video { max-height: 70vh; } }

/* ---- Direct messages ------------------------------------------------------ */
.conv-list, .live-list, .user-results { list-style: none; margin: 0; padding: 0; }
.conv-row, .live-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 68px; border-bottom: 1px solid var(--border); transition: background .2s; }
.conv-row:hover, .live-row:hover { background: var(--surface-2); }
.conv-row .grow, .live-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-top { display: flex; gap: 6px; align-items: baseline; min-width: 0; white-space: nowrap; }
.conv-top b { overflow: hidden; text-overflow: ellipsis; }
.conv-top .muted { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.conv-top time { margin-left: auto; font-size: 13px; flex: none; }
.conv-snippet { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-row.unread .conv-snippet { color: var(--text); font-weight: 600; }
.count-pill { background: var(--violet); }
.user-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 10px; border-radius: 12px; text-align: left; }
.user-pick:hover, .user-pick:focus-visible { background: var(--surface-2); }
.user-pick .grow { display: flex; flex-direction: column; }
.user-pick .grow span { color: var(--muted); font-size: 14px; }
.user-results li.muted { padding: 8px 10px; }

.thread { display: flex; flex-direction: column; height: 100dvh; }
.thread-head { flex: none; }
.thread-who { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; }
.thread-who .head-text { display: flex; flex-direction: column; line-height: 1.2; }
.thread-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.thread-older { align-self: center; margin-bottom: 10px; }
.thread-empty { text-align: center; margin: auto; }
.msgs { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.msg { display: flex; align-items: flex-end; gap: 4px; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--border); min-width: 64px; overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--violet); color: #fff; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.msg.deleted .bubble { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }
.msg-deleted { display: inline-flex; align-items: center; gap: 6px; font-style: italic; font-size: 14.5px; }
.msg-deleted .icon { width: 16px; height: 16px; }
.msg-text { font-size: 16px; line-height: 1.4; }
.msg-media { display: block; margin: -2px -6px 6px; border-radius: 14px; overflow: hidden; max-width: 280px; background: #000; }
.msg-media img, .msg-media video { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.msg-meta { display: flex; gap: 6px; justify-content: flex-end; align-items: center; font-size: 11.5px; opacity: .75; margin-top: 2px; }
.msg-edited { font-style: italic; }
.msg-status { font-weight: 700; letter-spacing: -2px; }
.msg.mine .status-read { color: #c9f7e3; opacity: 1; }
.msg-more { width: 44px; height: 44px; margin: 0 -4px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .2s; flex: none; }
.msg:hover .msg-more, .msg-more:focus-visible { opacity: 1; }
.msg-more .icon { width: 18px; height: 18px; }
@media (hover: none) { .msg-more { opacity: 1; } }   /* touch: always visible, full contrast */
.dm-composer { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px calc(8px + var(--safe-b)); border-top: 1px solid var(--border); background: var(--bg); }
.dm-input { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 22px; padding: 4px 6px 4px 14px; }
.dm-input:focus-within { border-color: var(--violet); }
.dm-input textarea { display: block; width: 100%; min-height: 36px; max-height: 140px; resize: none; border: 0; outline: none; background: transparent; font-size: 16px; line-height: 1.4; padding: 8px 0; }
.dm-attach, .dm-editing { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--violet); padding-top: 4px; }
.dm-attach span, .dm-editing span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-send { width: 46px; height: 46px; padding: 0; border-radius: 50%; flex: none; }
.dm-send .icon { width: 20px; height: 20px; }
/* Voice message: the panel takes the composer's place until it is closed or sent */
.dm-composer.is-voice > :not(.dm-voice-panel), .cp-form.is-voice > :not(.dm-voice-panel) { display: none; }
.dm-voice-panel { flex: 1 1 100%; min-width: 0; }
.dm-voice-bar { display: flex; align-items: center; gap: 6px; min-height: 54px; padding: 4px; border: 1px solid var(--border); border-radius: 27px; background: var(--surface-2); }
.dm-voice-bar [hidden] { display: none; }
.dm-voice-bar > .icon-btn { flex: none; min-width: 44px; min-height: 44px; }
.dm-voice-wave { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.dm-voice-wave i { flex: 0 1 4px; min-width: 0; height: 100%; border-radius: 2px; background: var(--muted); opacity: .5; transform: scaleY(.08); }
.dm-voice-panel[data-state="recording"] .dm-voice-wave i { background: var(--violet); opacity: 1; }
.dm-voice-panel[data-state="preview"] .dm-voice-wave { cursor: pointer; }
.dm-voice-panel[data-state="preview"] .dm-voice-wave i.on { background: var(--violet); opacity: 1; }
.dm-voice-bar time { flex: none; min-width: 40px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.dm-voice-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.dm-voice-go .icon { color: var(--violet); }
.dm-voice-go[data-voice-stop] { border-color: var(--red); animation: dm-voice-pulse 1.4s ease-in-out infinite; }
.dm-voice-go[data-voice-stop] .icon { color: var(--red); }
@keyframes dm-voice-pulse { 50% { box-shadow: 0 0 0 5px rgba(255, 90, 106, .18); } }
.dm-voice-play .when-playing, .dm-voice-play.is-playing .when-paused { display: none; }
.dm-voice-play.is-playing .when-playing { display: block; }
.dm-voice-note { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 12px 0; font-size: 12.5px; color: var(--muted); }
.dm-voice-note span { min-width: 0; }
.dm-voice-note small { flex: none; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .dm-voice-go[data-voice-stop] { animation: none; } }
.dm-composer [data-voice-start] { min-width: 44px; min-height: 44px; flex: none; }
/* While typing, photo + voice buttons slide away and the text box takes their room. The box stays one line
   high and always shows the line being written (assets/js/dm.js keeps it scrolled to the end). */
.dm-composer > label[for="dm-file"], .dm-composer > [data-voice-start] {
  flex: 0 0 44px; width: 44px; min-width: 0; min-height: 44px; padding: 0; overflow: hidden;
  transition: flex-basis .22s ease, width .22s ease, margin-inline-end .22s ease, opacity .16s ease, visibility 0s linear;
}
.dm-composer:has(textarea[name="body"]:not(:placeholder-shown)) > label[for="dm-file"],
.dm-composer:has(textarea[name="body"]:not(:placeholder-shown)) > [data-voice-start] {
  flex-basis: 0; width: 0; margin-inline-end: -6px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: flex-basis .22s ease, width .22s ease, margin-inline-end .22s ease, opacity .16s ease, visibility 0s linear .22s;
}
/* Transparent borders instead of padding: they do not scroll, so exactly one whole line shows and no half line peeks in above it */
.dm-composer .dm-input textarea { height: 44px !important; min-height: 44px; max-height: 44px; padding: 0; border-block: 10px solid transparent; line-height: 24px; overflow-y: auto !important; scrollbar-width: none; }
.dm-composer .dm-input textarea::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dm-composer > label[for="dm-file"], .dm-composer > [data-voice-start] { transition: none !important; }
}
.msg-audio { display: block; width: 100%; max-width: 100%; min-width: 0; height: 54px; }
.msg-audio[hidden] { display: none; }
.voice-msg { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 2px 0; }
.voice-msg-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--violet); cursor: pointer; }
.voice-msg-play .when-playing, .voice-msg-play.is-playing .when-paused { display: none; }
.voice-msg-play.is-playing .when-playing { display: block; }
.voice-msg-wave { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 2px; cursor: pointer; }
.voice-msg-wave i { flex: 0 1 4px; min-width: 0; height: 100%; border-radius: 2px; background: var(--muted); opacity: .45; transform: scaleY(.1); transition: transform .25s ease; }
.voice-msg-wave i.on { background: var(--violet); opacity: 1; }
.voice-msg-time { flex: none; min-width: 32px; text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.voice-msg-rate { flex: none; min-width: 34px; height: 24px; padding: 0 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.msg:has(.msg-audio) { width: min(380px,100%); max-width: 100%; }
.msg:has(.msg-audio) .bubble { flex: 1; width: auto; min-width: 0; }
.chatpop .msg:has(.msg-audio) { max-width: 100%; }
.thread-blocked { flex: none; padding: 16px 18px calc(16px + var(--safe-b)); text-align: center; color: var(--muted); border-top: 1px solid var(--border); }
body.is-thread .announcement { display: none; }
@media (min-width: 701px) { .thread { height: 100dvh; position: sticky; top: 0; } }
@media (max-width: 700px) {
  body.is-thread .tabbar { display: none; }
  body.is-thread { overflow: hidden; overscroll-behavior: none; }
  body.is-thread .main { padding-bottom: 0; }
  .dm-split.is-thread {
    position: fixed; z-index: 45; left: 0; right: 0;
    top: var(--dm-top, 0px); height: 100vh; height: var(--dm-height, 100dvh);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .dm-split.is-thread > .thread { flex: 1; min-height: 0; height: 100%; overflow: hidden; }
  .msg { max-width: 88%; }
}

/* ---- Calls ------------------------------------------------------------------ */
.call { position: fixed; inset: 0; z-index: 90; background: #07080c; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b)); }
.call[hidden] { display: none; }
body.in-call { overflow: hidden; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; display: none; }
.call.is-video.connected .call-remote { display: block; }
.call-info { position: relative; text-align: center; margin-top: 8vh; }
.call.is-video.connected .call-info { margin-top: 0; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.call.is-video.connected .call-avatar { display: none; }
.call-avatar .avatar { margin: 0 auto 16px; width: 112px; height: 112px; font-size: 44px; box-shadow: none; }
.call h2 { margin: 0; font: 700 24px/1.2 var(--font-display); }
.call-state { margin: 8px 0 0; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.call-local { position: absolute; right: 16px; top: calc(16px + var(--safe-t)); width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.25); background: #111; transform: scaleX(-1); }
.call-actions { position: relative; display: flex; gap: 22px; justify-content: center; }
.call-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; min-width: 64px; }
.call-btn[hidden] { display: none; }
.call-volume { position: relative; display: flex; align-items: center; gap: 10px; width: min(280px, 100%); margin: 0 auto; color: #fff; }
.call-volume[hidden] { display: none; }
.call-volume .icon { flex: none; width: 20px; height: 20px; }
.call-volume input { flex: 1; min-width: 0; min-height: 44px; accent-color: #fff; }
.call.mini .call-volume { display: none; }
.call-btn > .icon, .call-btn .on .icon, .call-btn .off .icon { width: 26px; height: 26px; }
.call-btn::before { content: none; }
.call-btn > .icon, .call-btn .on, .call-btn .off { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.14); }
.call-btn .off { display: none; }
.call-btn.is-off .on { display: none; }
.call-btn.is-off .off { display: grid; background: #fff; color: #111; }
.call-btn.decline > .icon { background: var(--red); }
.call-btn.accept > .icon { background: #22c55e; }

/* ---- Live ------------------------------------------------------------------- */
.live-start { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.live-start .field { flex: 1 1 220px; }
.live-start .help { flex-basis: 100%; margin: 0; }
.live-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,90,106,.14); color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: heartbeat 1.6s ease-in-out infinite; flex: none; }
.live-stage { position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; background: #000; aspect-ratio: 16 / 9; }
.live-stage.two { grid-template-columns: 1fr 1fr; }
.live-tile { position: relative; min-height: 0; background: #0b0c10; }
.live-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-name { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; font-weight: 600; }
.live-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: #fff; background: rgba(7,8,12,.82); }
.live-overlay[hidden] { display: none; }
.live-overlay p { margin: 0; max-width: 320px; }
.live-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.live-panel, .live-chat { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.live-panel h2, .live-chat h2 { margin: 0 0 8px; font: 700 13px/1.2 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.live-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.live-panel li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-panel li .grow { flex: 1; min-width: 0; }
.chat-log { list-style: none; margin: 0 0 10px; padding: 0; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.chat-log li { overflow-wrap: anywhere; }
.chat-log li.deleted { color: var(--muted); font-style: italic; }
.chat-del { margin-left: 8px; color: var(--muted); font-size: 12.5px; min-height: 32px; padding: 0 6px; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 16px; outline: none; }
.chat-form input:focus { border-color: var(--violet); }
@media (max-width: 700px) {
  .live-stage { aspect-ratio: 3 / 4; }
  .live-stage.two { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .live-controls .btn { flex: 1 1 auto; }
  .call-local { width: 96px; }
}

/* Profile media grid */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.media-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); border-radius: 4px; }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); pointer-events: none; }
.media-tile:hover img, .media-tile:hover video { transform: scale(1.04); }
.media-tile:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.media-tile-badge { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.media-tile-badge .icon { width: 14px; height: 14px; }
@media (min-width: 701px) { .media-grid { gap: 4px; padding: 4px; } }

/* ==========================================================================
   Design system v2 — neutral surfaces, ink text, one restrained accent.
   Replaces the violet/pink look. The legacy token name --violet is kept as the
   single (turquoise) accent so every existing rule follows; --accent-ink is text on it.
   ========================================================================== */
:root {
  --bg: #0c0e12;
  --bg-soft: #111419;
  --surface: #15181e;
  --surface-2: #1b1f26;
  --surface-3: #262b34;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #eceff3;
  --text-2: #c2c8d1;
  --muted: #8e97a6;
  /* Brand #1DA1F2 (user's choice). --brand-fill = the one filled CTA per screen and selected indicators;
     --violet = accent for text, thin icons, focus and borders (role-specific contrast). */
  --brand-fill: #1da1f2;
  --brand-fill-hover: #4db5f5;
  --brand-fill-pressed: #1a91da;
  --brand-edge: transparent;  /* dark theme: the fill itself stands out */
  --accent-ink: #0f1419;      /* text on brand fill: 6.55:1 (hover 8.15, pressed 5.38) */
  --violet: #1da1f2;          /* text/icon/focus on dark surfaces: 5.85–6.84:1 */
  --accent-hover: #4db5f5;
  --brand-soft: rgba(29, 161, 242, .14);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, .12);
  --brand-grad: var(--violet);
  --pink: var(--violet);
  --like: #1DA1F2;
  --like-soft: rgba(29, 161, 242, .14);
  --red: #f2555a;
  --glass: rgba(12, 14, 18, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, .55), 0 0 0 1px var(--border-strong);
  --radius: 14px;
}
[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-soft: #eceef1;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --surface-3: #e3e6ea;
  --border: #e2e5e9;
  --border-strong: #cbd1d8;
  --text: #0f1720;
  --text-2: #374151;
  --muted: #5b6574;
  --brand-fill: #1da1f2;
  --brand-fill-hover: #4db5f5;
  --brand-fill-pressed: #1a91da;
  --brand-edge: #1a8cd8;      /* 1px edge of the fill on light surfaces: 3.36:1 vs --bg */
  --accent-ink: #0f1419;
  --violet: #0a6fad;          /* darker #1DA1F2 derivative for text/icons/focus: 4.85–5.40:1 */
  --accent-hover: #085d91;
  --brand-soft: #e8f5fe;      /* --violet on it 4.86:1 */
  --success: #15803d;
  --success-soft: #e8f5ec;
  --like: #1A8CD8;
  --like-soft: #e8f5fe;
  --red: #c8303a;
  --glass: rgba(255, 255, 255, .9);
  --shadow: 0 1px 2px rgba(15, 23, 32, .06), 0 1px 1px rgba(15, 23, 32, .04);
  --shadow-pop: 0 12px 32px -10px rgba(15, 23, 32, .22), 0 0 0 1px var(--border);
}
::selection { background: color-mix(in srgb, var(--violet) 30%, transparent); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 10px; }

/* Brand mark: ink tile with an accent dot instead of the gradient blob */
.brand-mark { background: var(--text); box-shadow: none; border-radius: 10px; }
.brand-mark .pulse-dot { background: var(--violet); }
.brand-mark.lg { border-radius: 14px; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: .005em;
  border: 1px solid transparent; box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--violet); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.btn-primary:not(:disabled):hover { background: var(--accent-hover); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:not(:disabled):hover { opacity: 1; background: color-mix(in srgb, var(--text) 86%, var(--bg)); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:not(:disabled):hover { background: color-mix(in srgb, var(--red) 88%, #000); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--accent-ink) var(--accent-ink) transparent transparent;
  animation: spin .7s linear infinite;
}
.btn-ghost[aria-busy="true"]::after, .btn-light[aria-busy="true"]::after { border-color: var(--text) var(--text) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-follow:not(.following) { background: var(--text); color: var(--bg); }
.btn-follow.following { background: var(--surface); border-color: var(--border-strong); }
.btn-compose { border-radius: 14px; }
.icon-btn { border-radius: 12px; }
.fab { border-radius: 16px; background: var(--violet); color: var(--accent-ink); box-shadow: var(--shadow-pop); }

/* ---- Inputs, chips, tabs, pills: square-ish, not capsules ---------------------- */
.search-box input, .m-search input { border-radius: 12px; }
.field input, .field textarea, .field select { border-radius: 12px; border-width: 1px; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.chip { border-radius: 10px; }
.segmented, .segmented span { border-radius: 10px; }
.new-pill button { border-radius: 12px; background: var(--text); color: var(--bg); }
.tabs a.active::after, .m-tabs a.on::after { height: 3px; border-radius: 3px 3px 0 0; background: var(--violet); }
.nav-link { border-radius: 12px; }
.nav-link.active .icon { color: var(--violet); }
.me-card { border-radius: 14px; }
.card { border-radius: 14px; }
.auth-card { border-radius: 16px; box-shadow: var(--shadow-pop); }
.menu-sheet { border-radius: 16px; }
.menu-item { border-radius: 10px; }
.sheet { border-radius: 16px; }
.toast { border-radius: 12px; }
.count-pill, .badge { background: var(--like); color: #fff; }
.live-badge { border-radius: 8px; }
.media-pick { border-radius: 10px; }
.radio-list label { border-radius: 10px; }
.post-body a, .post-body a.tag, .grad-text, .card-foot, .auth-switch a, .forgot-link, .link { color: var(--violet); }
.msg.mine .bubble { background: var(--violet); color: var(--accent-ink); }
.msg.mine .bubble a { color: var(--accent-ink); }
.msg.mine .status-read { color: var(--accent-ink); opacity: 1; }
.tabbar a.active .ic { background: var(--brand-soft); color: var(--violet); }
.badge-admin { background: var(--violet); color: var(--accent-ink); }
.cover { background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); }
.cover::after { background: none; }
.chips .chip.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.switch input:checked + .track { background: var(--violet); }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.toast.success .icon { color: var(--success); }
.call-btn.accept > .icon { background: #16a34a; }

/* ---- Landing --------------------------------------------------------------------- */
.landing-hero h1 { letter-spacing: -.035em; }
.browse-link { margin: 18px 0 0; }
.browse-link a { color: var(--text-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.browse-link a:hover { color: var(--text); }
.store-links { margin-top: 26px; }
.store-title { margin: 0 0 12px; font: 600 13px/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge { display: inline-block; padding: 12px; margin: -12px; border-radius: 10px; } /* ≥ ¼ badge-height clear space */
.store-badge img { display: block; height: 48px; width: auto; }
.store-text { gap: 10px; }
.store-text.is-soon { cursor: default; color: var(--muted); }
.soon-tag { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.store-legal { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 520px; }
.float-card { border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); }
.float-card .meta .hot { color: var(--like); }

/* Admin: store settings */
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.store-admin { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }

@media (max-width: 700px) {
  .btn-sm { height: 44px; border-radius: 10px; }
  .landing-cta .btn { flex: 1 1 100%; }
  .store-row { justify-content: center; }
  .store-row .btn { flex: 1 1 100%; }
  .browse-link { text-align: center; }
  .store-title, .store-legal { text-align: center; margin-left: auto; margin-right: auto; }
}

/* Profile → DM */
.btn-msg { gap: 8px; min-width: 44px; }
.profile-actions { align-items: center; }
@media (max-width: 420px) {
  .btn-msg { width: 44px; padding: 0; }
  .btn-msg .btn-msg-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.thread-blocked { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }.dm-input textarea { min-height: 44px; padding: 11px 0; }

/* Landing sample label, KVKK controller box */
.float-stack .sample-label { position: absolute; top: -28px; left: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.float-card { pointer-events: none; }
.legal-box { padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
/* Toasts: readable width; above the DM composer on the thread screen */
.toasts { width: max-content; max-width: calc(100vw - 32px); }
.toast { max-width: 100%; }
body.is-thread .toasts { bottom: calc(84px + var(--safe-b)); }

/* Official store badges: unmodified artwork, equal visible height.
   Google's PNG carries transparent padding (visible 192/250 of its height), so it is drawn
   taller to match the App Store badge; nothing is cropped, recoloured or stretched. */
.store-row { align-items: center; gap: 12px 16px; }
.store-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 44px; padding: 0; margin: 0; border-radius: 10px; line-height: 0; }
.store-badge img { display: block; width: auto; max-width: none; }
.badge-app_store img { height: 48px; }          /* ≥ 40 px on screen (Apple) */
.badge-google_play img { height: 63px; margin: -7px 0; } /* visible ≈ 48 px, same as Apple */
a.store-badge:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
a.store-badge:hover img { opacity: .9; }
.store-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 600; font-size: 14.5px; }
.store-links.is-preview .store-title { color: var(--red); }
@media (max-width: 420px) {
  .store-row { gap: 10px 12px; }
  .badge-app_store img { height: 40px; }
  .badge-google_play img { height: 53px; margin: -6px 0; }  /* visible ≈ 41 px */
  .store-badge { min-height: 44px; }
}
.store-legal { margin-top: 18px; font-size: 11.5px; }

/* ---- Composer tools ------------------------------------------------------- */
.composer-tool { width: 40px; height: 40px; color: var(--violet); }
.composer-tool .icon { width: 21px; height: 21px; }
.composer-bar { flex-wrap: wrap; gap: 6px 8px; }
.composer-hint { min-width: 0; }
.alt-field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 2px; font-size: 13px; color: var(--muted); }
.alt-field input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 15px; color: var(--text); }
.alt-field input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.upload-progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 6px 0; }
.upload-progress span { display: block; height: 100%; width: 0; background: var(--violet); transition: width .2s; }
.draft-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.draft-note button { color: var(--violet); font-weight: 600; min-height: 32px; text-decoration: underline; }
/* Messages: the note floats above the composer so it never makes the one-line text box taller */
.dm-composer { position: relative; }
.dm-composer .draft-note { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 6px); z-index: 2; margin: 0; padding: 2px 12px; flex-wrap: nowrap; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.dm-composer .draft-note span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-composer .draft-note button { flex: none; }
.act-more { margin-left: auto; }
.post-actions .act-more { margin-left: auto; }
.live-prep-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.dm-emoji { flex: none; width: 44px; height: 44px; color: var(--muted); }
.m-compose .icon-btn { width: 44px; height: 44px; color: var(--violet); flex: none; }
form[aria-busy="true"] textarea { opacity: .7; }

/* ---- Emoji picker ------------------------------------------------------------- */
.emoji-picker { position: fixed; margin: 0; width: min(352px, calc(100vw - 16px)); max-height: min(420px, calc(100dvh - 16px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); z-index: 80; display: none; flex-direction: column; overflow: hidden; }
.emoji-picker[open] { display: flex; }
.emoji-picker.as-sheet { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 62dvh; border-radius: 16px 16px 0 0; padding-bottom: var(--safe-b); }
.emoji-picker::backdrop { background: rgba(5, 6, 10, .4); }
.ep-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ep-search { flex: 1 1 160px; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 16px; }
.ep-search:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.ep-tones { display: flex; gap: 2px; }
.ep-tone { width: 30px; height: 36px; border-radius: 8px; font-size: 17px; line-height: 1; }
.ep-tone[aria-checked="true"] { background: var(--brand-soft); outline: 2px solid var(--violet); }
.ep-close { width: 36px; height: 36px; }
.ep-cats { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ep-cats button { flex: none; width: 40px; height: 40px; border-radius: 8px; font-size: 20px; }
.ep-cats button[aria-selected="true"] { background: var(--brand-soft); }
.ep-body { overflow-y: auto; padding: 4px 8px 10px; overscroll-behavior: contain; }
.ep-body:focus { outline: none; }
.ep-body h3 { position: sticky; top: 0; margin: 0; padding: 8px 2px 4px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); text-transform: uppercase; letter-spacing: .05em; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.ep-e { height: 40px; border-radius: 8px; font-size: 24px; line-height: 1; }
.ep-e:hover, .ep-e:focus-visible { background: var(--surface-2); outline: 2px solid var(--violet); outline-offset: -2px; }
.ep-empty { color: var(--muted); font-size: 14px; margin: 8px 2px; }
@media (max-width: 700px) {
  .ep-e { height: 44px; font-size: 26px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .ep-tone { width: 32px; height: 40px; }
  .ep-cats button, .ep-close { width: 44px; height: 44px; }
}

/* ---- Suggestions ---------------------------------------------------------------- */
.suggest-box { position: fixed; z-index: 85; margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-pop); }
.suggest-box li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.suggest-box li[aria-selected="true"] { background: var(--brand-soft); }
.suggest-box .grow { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.suggest-box b, .suggest-box small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-box small { color: var(--muted); font-size: 12.5px; }
.sg-hash { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 800; color: var(--text-2); flex: none; }
.ep-head, .ep-cats { flex: none; }
.ep-body { flex: 1 1 auto; min-height: 0; }
.ep-tones { margin-left: auto; }
@media (max-width: 700px) { .ep-search { flex-basis: 100%; } .ep-tones { margin-left: 0; } .ep-close { margin-left: auto; } }

/* ==========================================================================
   Visitor landing (docs/KARAR-LANDING.md): neutral, product-first, 8px scale.
   ========================================================================== */
.landing-page { display: block; padding: 0; min-height: 100dvh; background: var(--bg); }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-btn { height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; }
.lp-header { height: 68px; border-bottom: 1px solid var(--border); background: var(--bg); }
.lp-header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -.02em; color: var(--text); min-height: 44px; }
.lp-logo .brand-mark { width: 32px; height: 32px; margin: 0; }
.lp-nav { display: flex; align-items: center; gap: 8px; }
.lp-nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px; font-weight: 600; color: var(--text-2); }
.lp-nav-link:hover { color: var(--text); background: var(--surface-2); }
.lp-main { padding-bottom: 48px; }
.lp-actions { display: flex; justify-content: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.lp-note { font-size: 14px; color: var(--muted); }
.lp-stores .store-links { margin: 48px auto 0; max-width: 820px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.lp-stores .store-title { margin-bottom: 16px; }
.lp-stores .store-row { justify-content: center; }
.lp-footer { border-top: 1px solid var(--border); padding: 24px 0 32px; }
.lp-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 13px; color: var(--muted); }
.lp-legal a { color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.lp-legal a:hover { color: var(--text); text-decoration: underline; }
.lp-attribution { margin: 8px 0 0; max-width: 760px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 700px) {
  .lp-wrap { padding: 0 16px; }
  .lp-header { height: 60px; }
  .lp-nav { gap: 4px; }
  .lp-nav-link { padding: 0 12px; }
  .lp-nav .lp-btn { height: 44px; padding: 0 14px; font-size: 15px; }
  .lp-actions { gap: 8px; margin-top: 24px; }
  .lp-actions .lp-btn { flex: 1 1 100%; }
  .lp-stores .store-links { margin-top: 32px; padding: 16px; }
}
@media (max-width: 370px) {
  .lp-logo { font-size: 18px; gap: 8px; }
  .lp-nav-link { padding: 0 10px; }
}

.lp-legal a { min-width: 44px; justify-content: center; }
.lp-logo { min-width: 44px; }

/* A deleted message is a neutral placeholder on both sides (was teal for own messages) */
.msg.deleted .bubble, .msg.mine.deleted .bubble { background: transparent; color: var(--muted); border: 1px dashed var(--border-strong); }
@media (max-width: 700px) { .lp-stores .store-links { padding: 16px 12px; } }
@media (max-width: 700px) { .badge-app_store img { height: 40px; } .badge-google_play img { height: 53px; margin: -6px 0; } .store-badge { min-height: 44px; } }
@media (max-width: 700px), (hover: none) { .hint-keys { display: none; } }
@media (max-width: 700px) { .composer-hint { flex: 1 1 100%; order: 10; font-size: 12.5px; opacity: 1; transform: none; } }

/* ==========================================================================
   Gündem, Kimi takip etmeli, empty states (docs/KARAR-GUNDEM-MESAJ-ARAMA.md)
   ========================================================================== */
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: var(--surface-2); color: var(--violet); }
.empty-ico .icon { width: 30px; height: 30px; }
.empty-error .empty-ico { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.feed-end .icon { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; }

.card-sub { margin: -2px 18px 4px; color: var(--muted); font-size: 13px; }
.card-empty { margin: 4px 18px 12px; color: var(--muted); font-size: 14px; list-style: none; }
.card-foot { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.trend-note { margin: 0; padding: 12px 18px; color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--border); }

.trend-list { list-style: none; margin: 0; padding: 0; }
.trend-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; transition: background .15s; }
.trend-row:hover { background: var(--surface-2); }
.trend-no { width: 22px; flex: none; text-align: right; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.trend-row .grow { flex: 1; min-width: 0; line-height: 1.3; }
.trend-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.trend-meta { display: block; color: var(--muted); font-size: 13px; }
.trend-go { width: 16px; height: 16px; color: var(--muted); flex: none; }
.main .trend-list li + li .trend-row { border-top: 1px solid var(--border); }

.sug-list { list-style: none; margin: 0; padding: 0; }
.sug { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px 12px 18px; transition: opacity .2s, transform .2s; }
.sug + .sug { border-top: 1px solid var(--border); }
.sug.leaving { opacity: .35; pointer-events: none; }
.sug-name { display: block; min-width: 0; line-height: 1.25; }
.sug-name b, .sug-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-name span { color: var(--muted); font-size: 13.5px; }
.sug-bio { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-reason { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.sug-reason .icon { width: 14px; height: 14px; flex: none; color: var(--violet); }
.sug-reason span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-acts { display: flex; align-items: center; gap: 2px; }
.sug-hide { width: 36px; height: 36px; color: var(--muted); }
.sug-page .sug { padding: 14px 18px; }
.sug-page .sug-bio { white-space: normal; }
@media (max-width: 700px) {
  .sug { grid-template-columns: 40px minmax(0, 1fr); }
  .sug-acts { grid-column: 2; justify-content: flex-start; gap: 8px; }
  .sug-hide { width: 44px; height: 44px; }
  .trend-row { padding-left: 14px; padding-right: 14px; }
}

/* ---- Messages: list + chat (two panes from 1061px; single screen with back below) ---- */
.dm-pick { display: none; }
.dm-split.is-thread .conv-pane { display: none; }
.conv-search { padding: 8px 14px 10px; border-bottom: 1px solid var(--border); }
.conv-search .search-box { display: flex; }
.conv-row.active { background: var(--brand-soft); }
.conv-row.active:hover { background: var(--brand-soft); }
.conv-snippet .icon { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.conv-you { color: var(--text-2); }
.conv-nomatch { padding: 16px 18px; margin: 0; }
.msg-day { align-self: center; margin: 12px 0 4px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.msg-day:first-child { margin-top: 0; }
.msg-status { letter-spacing: 0; display: inline-flex; }
.msg-status .icon { width: 16px; height: 16px; }
.msg.mine .status-read { color: var(--accent-ink); }
@media (min-width: 1061px) {
  .shell-messages { grid-template-columns: var(--nav-w) minmax(0, 960px); }
  .shell-messages .sidebar { display: none; }
  .dm-split { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); height: 100vh; height: 100dvh; position: sticky; top: 0; }
  .dm-split .conv-pane, .dm-split.is-thread .conv-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
  .conv-pane .conv-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .conv-pane .empty { padding: 40px 20px; }
  .dm-pick { display: grid; place-items: center; min-width: 0; }
  .dm-split .thread { height: 100%; position: static; min-width: 0; }
  .thread-back { display: none; }
}

/* ---- Call screen v2: one clear state, labelled 56px controls ---------------- */
.call { justify-content: flex-start; gap: 18px; }
.call-kind { position: relative; margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.call-info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 0; max-width: 520px; }
.call-avatar .avatar { width: 128px; height: 128px; font-size: 48px; }
.call[data-state="calling"] .call-avatar .avatar, .call[data-state="ringing"] .call-avatar .avatar, .call[data-state="incoming"] .call-avatar .avatar { animation: call-pulse 1.8s ease-out infinite; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(44,197,222,.45); } 100% { box-shadow: 0 0 0 26px rgba(44,197,222,0); } }
@media (prefers-reduced-motion: reduce) { .call .call-avatar .avatar { animation: none !important; } }
.call-state { font-size: 16px; color: rgba(255,255,255,.85); }
.call[data-state="ended"] .call-state { font-weight: 700; color: #fff; }
.call-timer { margin: 6px 0 0; font: 600 18px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #fff; }
.call-detail { margin: 10px auto 0; max-width: 380px; text-align: center; color: rgba(255,255,255,.75); font-size: 14.5px; line-height: 1.45; }
.call-actions { flex-wrap: wrap; gap: 14px 18px; padding-bottom: 4px; }
.call-btn { min-width: 72px; gap: 8px; font-size: 13px; font-weight: 600; }
.call-btn > .icon, .call-btn .on, .call-btn .off { width: 56px; height: 56px; }
.call-btn > .icon { padding: 15px; box-sizing: border-box; }
.call-btn .on .icon, .call-btn .off .icon { width: 26px; height: 26px; }
.call-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 14px; }
.call-btn.decline > .icon { background: #dc2626; }
.call-btn.accept > .icon { background: #16a34a; }
.call-btn[hidden] { display: none; }
.call .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.call-again { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.call.is-video.connected { justify-content: space-between; }
.call.is-video.connected .call-info { flex: 0; }
.call.is-video.connected .call-kind { display: none; }
.call.is-video.connected .call-actions { background: rgba(0,0,0,.45); padding: 12px 16px; border-radius: 20px; }
.call-local { z-index: 1; }
.call.self-cam-off .call-local { opacity: .3; }
@media (min-width: 701px) { .call-local { width: 180px; right: 24px; top: 24px; } }
@media (max-width: 380px) { .call-btn { min-width: 64px; } .call-actions { gap: 12px 10px; } }
.announcement { border-color: color-mix(in srgb, var(--violet) 30%, transparent); }
.announcement > .icon { width: 20px; height: 20px; flex: none; color: var(--violet); margin-top: 1px; }
.inline-ico { width: 15px; height: 15px; vertical-align: -2px; margin-left: 3px; }
.pager .btn .icon { width: 16px; height: 16px; }

/* ---- Brand fills (one CTA per screen, selected indicators, logo detail) ------
   Text on a fill always uses --accent-ink; text/links/focus use the darker --violet. */
.btn-primary { background: var(--brand-fill); color: var(--accent-ink); border-color: var(--brand-edge); }
.btn-primary:not(:disabled):hover { background: var(--brand-fill-hover); }
.btn-primary:not(:disabled):active { background: var(--brand-fill-pressed); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--surface-3); color: var(--muted); border-color: var(--border-strong); opacity: 1; }
.fab { background: var(--brand-fill); color: var(--accent-ink); border: 1px solid var(--brand-edge); }
.msg.mine .bubble { background: var(--brand-fill); color: var(--accent-ink); border: 1px solid var(--brand-edge); }
.msg.mine .bubble a, .msg.mine .status-read { color: var(--accent-ink); }
.badge-admin { background: var(--brand-fill); color: var(--accent-ink); }
.brand-mark .pulse-dot { background: var(--brand-fill); }
.nav-link.active::before, .tabs a.active::after { background: var(--brand-fill); }
@media (max-width: 700px) { .m-tabs a.on::after { background: var(--brand-fill); } .tabbar a.active .ic { background: var(--brand-soft); color: var(--violet); } }
.notif.unread::before { background: var(--brand-fill); }
.call-btn.accept > .icon { background: #16a34a; }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(29,161,242,.5); } 100% { box-shadow: 0 0 0 26px rgba(29,161,242,0); } }.loader span { background: var(--brand-fill); }

/* ---- Action hierarchy: only the main action is filled ------------------------
   Secondary controls (follow, message, sign in, filters, menus) are neutral surfaces with a thin
   neutral border; hover adds a very light brand tint and the accent text colour. */
.btn-ghost:not(:disabled):hover, .btn-follow:not(.following):hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--violet) 45%, var(--border-strong)); color: var(--violet); }
.btn-follow:not(.following) { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-follow.following { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.btn-follow.following:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
/* ---- Call controls: one 64px circle per control, icon centred, label below ---- */
.call-actions[data-controls], .call-actions[data-incoming] { align-items: flex-start; gap: 16px 22px; }
.call-btn { width: 84px; min-width: 0; padding: 0; text-align: center; line-height: 1.25; }
.call-btn > .icon { display: none; }   /* legacy bare icons are no longer used */
.call-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; transition: background .15s, transform .1s; }
.call-ic .icon { width: 26px; height: 26px; display: block; }
.call-btn .call-ic .on, .call-btn .call-ic .off { width: auto; height: auto; background: none; border-radius: 0; display: contents; }
.call-btn .call-ic .off, .call-btn.is-off .call-ic .on { display: none; }
.call-btn.is-off .call-ic .off { display: contents; }
.call-btn.is-off .call-ic { background: #fff; color: #111; }
.call-btn:not(:disabled):hover .call-ic { background: rgba(255,255,255,.24); }
.call-btn:active .call-ic { transform: scale(.96); }
.call-btn.decline .call-ic { background: #dc2626; }      /* destructive: white icon 4.83:1 */
.call-btn.decline:hover .call-ic { background: #b91c1c; }
.call-btn.accept .call-ic { background: #16a34a; }
.call-btn.accept:hover .call-ic { background: #15803d; }
.call-btn:focus-visible { outline: none; }
.call-btn:focus-visible .call-ic { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 380px) { .call-btn { width: 72px; } .call-actions[data-controls] { gap: 14px 10px; } }
.call-btn.decline .call-ic .icon { width: 28px; height: 28px; stroke-width: 2; }   /* flat glyph: a little larger to match the mic/camera weight */
@media (max-width: 700px) { .call.is-video.connected .call-info { align-self: stretch; align-items: flex-start; text-align: left; padding-right: 128px; } }

/* ---- All action buttons neutral (user's final rule; supersedes "one filled CTA") ----
   Brand #1DA1F2 stays, but only as a measured detail: icons, focus, active states.
   Main actions keep a stronger 1px edge and bold label instead of a fill.
   Light: edge #7D8794 3.37–3.64:1, label 18:1, icon 5.4:1 · Dark: edge #6B7480 3.49–4.08:1, label 14.3:1, icon 5.85:1 */
:root { --btn-edge: #6b7480; --btn-bg: var(--surface-2); --btn-bg-hover: var(--surface-3); }
[data-theme="light"] { --btn-edge: #7d8794; --btn-bg: var(--surface); --btn-bg-hover: var(--surface-2); }
.btn-primary, .fab, .dm-send { background: var(--btn-bg); color: var(--text); border: 1px solid var(--btn-edge); box-shadow: none; font-weight: 700; }
.btn-primary .icon, .fab .icon, .dm-send .icon { color: var(--violet); }
.btn-primary:not(:disabled):hover, .fab:hover, .dm-send:not(:disabled):hover { background: var(--btn-bg-hover); border-color: var(--btn-edge); color: var(--text); box-shadow: none; }
.btn-primary:not(:disabled):active, .fab:active, .dm-send:not(:disabled):active { background: var(--surface-3); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"], .dm-send:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }
.btn-primary:disabled .icon, .dm-send:disabled .icon { color: var(--muted); }
.btn-primary[aria-busy="true"]::after { border-color: var(--text) var(--text) transparent transparent; }

/* ---- Doğrulanmış hesap seal (verified_badge()) -------------------------------
   #1A8CD8 seal: 3.36–3.63:1 on light, 4.9–5.3:1 on dark surfaces; white tick on it 3.63:1. */
.vbadge { display: inline-flex; align-items: center; flex: none; margin-left: 6px; vertical-align: middle; line-height: 0; }
.vbadge svg { display: block; }
.vbadge-seal { fill: #1a8cd8; stroke: #1a8cd8; }
.name-line { display: flex; align-items: center; min-width: 0; }
.name-line .name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-head .vbadge { margin-left: 0; }   /* post-head already spaces its items */
.profile-name { display: flex; align-items: center; }
.profile-name .vbadge { margin-left: 6px; }
/* list rules such as `.sug-name span { display: block }` must not reach the seal */
.name-line > .name-text { display: block; }
.name-line > .vbadge { display: inline-flex !important; width: auto !important; height: auto; margin-left: 6px; font-size: 0; }
.profile-name { gap: 6px; }
.profile-name .vbadge { margin-left: 0; }
b.name-line { display: flex !important; align-items: center; }   /* beats list rules like `.sug-name b { display: block }` */

/* ==========================================================================
   Landing v2 — asymmetric typographic poster (docs/KARAR-LANDING.md)
   ========================================================================== */
:root { --ps-paper: #15181e; --ps-white: #1b1f26; --ps-ink: #eceff3; --ps-line: #6b7480; --ps-muted: #a7b0bc; }
[data-theme="light"] { --ps-paper: #faf8f4; --ps-white: #ffffff; --ps-ink: #0f1720; --ps-line: #8a94a1; --ps-muted: #4b5563; }
.lp-poster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-copy h1 { margin: 0; font: 800 clamp(48px, 6.4vw, 80px)/1.02 var(--font-display); letter-spacing: -.035em; color: var(--text); }
.lp-copy h1 span { display: block; }
.lp-copy h1 .lp-title-2 { color: var(--text-2); }
.lp-lead { margin: 24px 0 0; max-width: 30ch; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.lp-poster .lp-actions { justify-content: flex-start; margin-top: 32px; }
.lp-poster .lp-note { margin: 16px 0 0; }
.lp-art { margin: 0; }
.lp-art svg { display: block; width: 100%; height: auto; aspect-ratio: 560 / 520; max-width: 560px; margin-left: auto; overflow: visible; }
.ps-paper { fill: var(--ps-paper); stroke: var(--border-strong); stroke-width: 1; }
.ps-links path { stroke: var(--ps-line); stroke-width: 1.2; fill: none; }
.ps-links circle { fill: var(--ps-ink); }
.ps-topic { font: 700 26px var(--font-display); letter-spacing: -.01em; fill: var(--ps-ink); pointer-events: none; user-select: none; }
.ps-topic-sm { font: 700 15px var(--font); letter-spacing: .18em; fill: var(--ps-muted); }
.ps-topic-lg { font-size: 32px; }
.ps-topic-it { font-style: italic; font-weight: 600; font-size: 24px; }
.ps-bubble-a { fill: var(--ps-white); stroke: var(--ps-ink); stroke-width: 2; stroke-linejoin: round; }
.ps-text { stroke: var(--ps-line); stroke-width: 6; stroke-linecap: round; fill: none; }
.ps-bubble-b { fill: var(--ps-ink); }
.ps-dot { fill: var(--ps-paper); }
.ps-accent { fill: #1da1f2; }   /* the single brand accent (decorative; 6.3:1 on the light-theme ink form) */

/* Editorial points: rows with thin rules, no cards */
.lp-points ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.lp-points li { display: grid; grid-template-columns: 64px minmax(160px, 260px) minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--border); }
.lp-no { font: 600 14px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-points h3 { margin: 0; font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; }
.lp-points p { margin: 0; max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--text-2); }

/* Gentle entrance: opacity/transform/dash only, never layout */
@media (prefers-reduced-motion: no-preference) {
  /* Copy and buttons are never animated: they must be readable even if animations do not run. */
  .ps-form { animation: lp-rise .6s var(--ease) both; transform-box: fill-box; }
  .ps-form-b { animation-delay: .12s; }
  .ps-links path { stroke-dasharray: 120; animation: lp-draw .8s .25s var(--ease) both; }
  .ps-topics { animation: lp-fade .6s .35s ease both; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lp-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .lp-poster { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .lp-art svg { max-width: 420px; margin: 0 auto; }
  .lp-points li { grid-template-columns: 48px minmax(0, 1fr); }
  .lp-points p { grid-column: 2; }
}
@media (max-width: 700px) {
  .lp-poster { padding-top: 28px; padding-bottom: 32px; gap: 28px; }
  .lp-copy h1 { font-size: clamp(40px, 11.5vw, 46px); }
  .lp-lead { margin-top: 16px; font-size: 17px; }
  .lp-poster .lp-actions { margin-top: 24px; }
  .lp-art svg { max-width: 340px; }
  .lp-points li { padding: 20px 0; gap: 4px 12px; }
  .lp-points h3 { font-size: 22px; }
  .lp-points p { font-size: 16px; }
}

/* ==========================================================================
   Live v2 — host control screen + immersive viewer
   ========================================================================== */
.live-tile video { object-fit: contain; background: #000; }          /* keep portrait/landscape ratio, never crop */
.tile-novideo { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; font-weight: 600; background: #0b0c10; }
.tile-novideo[hidden] { display: none; }
.live-check { flex-basis: 100%; margin: 0; color: var(--text-2); font-size: 14.5px; }
.live-help { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.live-state { display: block; color: var(--muted); font-size: 12.5px; }
.live-panel li { padding: 6px 0; border-top: 1px solid var(--border); }
.live-panel li:first-child { border-top: 0; }
.chat-newer { margin: 0 0 8px; }
@media (min-width: 1061px) {
  .shell-live { grid-template-columns: var(--nav-w) minmax(0, 960px); }
  .shell-live .sidebar { display: none; }
}

/* Viewer: the video is the page */
.live-viewer { position: relative; }
.live-viewer .live-stage { position: sticky; top: 0; display: grid; grid-template: 1fr / 1fr; gap: 2px; height: 100vh; height: 100dvh; aspect-ratio: auto; overflow: hidden; background: #000; color: #fff; }
.live-viewer .live-tile { grid-area: auto; min-height: 0; background: #000; }
.live-viewer .live-stage:not(.two) .live-tile { grid-area: 1 / 1; }
.live-viewer .live-stage.two { grid-template: 1fr 1fr / 1fr; }
@media (orientation: landscape) { .live-viewer .live-stage.two { grid-template: 1fr / 1fr 1fr; } }
.live-viewer .live-tile video { width: 100%; height: 100%; }
.live-viewer .live-stage:not(.two) .tile-name { display: none; }      /* the host name is in the top bar */
.live-viewer .tile-name { top: 64px; bottom: auto; }

.lv-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-t)) 8px 8px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.lv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; padding: 0 4px; }
.lv-who b, .lv-who > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-who > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.92); }
.lv-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.lv-btn:hover { background: rgba(0,0,0,.68); }
.lv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lv-btn .icon { width: 22px; height: 22px; }
.lv-btn .off, .lv-btn.is-off .on { display: none; }
.lv-btn.is-off .off { display: grid; }
.lv-btn[hidden] { display: none; }

.live-viewer .live-overlay { z-index: 2; background: rgba(0,0,0,.6); color: #fff; }
.live-viewer .live-overlay .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); }

/* Chat over the video: scrim only behind the chat, the video keeps its full size */
.lv-chat { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 48px 12px calc(10px + var(--safe-b)); background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.lv-chat > * { pointer-events: auto; }
.lv-chat .chat-log { max-height: min(36dvh, 300px); margin: 0; padding-right: 4px; gap: 4px; color: #fff; font-size: 15px; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.9); scrollbar-width: thin; }
.lv-chat .chat-log b { font-weight: 700; }
.lv-chat .chat-log li.deleted { color: rgba(255,255,255,.7); }
.lv-chat .chat-del { color: rgba(255,255,255,.85); min-height: 32px; }
.lv-newer { align-self: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0f1720; font-weight: 600; font-size: 13.5px; }
.lv-newer[hidden] { display: none; }
.lv-chat-bar { display: flex; align-items: center; gap: 8px; }
.lv-chat .chat-form { flex: 1; min-width: 0; display: flex; gap: 8px; }
.lv-chat .chat-form[hidden] { display: none; }
.lv-chat .chat-form input { background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lv-chat .chat-form input::placeholder { color: rgba(255,255,255,.75); }
.lv-chat .chat-form input:focus { border-color: #fff; }
.lv-chat-toggle[aria-pressed="false"] { background: rgba(255,255,255,.9); color: #0f1720; }

.live-invite { position: absolute; z-index: 4; left: 12px; right: 12px; bottom: calc(96px + var(--safe-b)); max-width: 440px; margin: 0 auto; padding: 16px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); text-shadow: none; }
.live-invite[hidden] { display: none; }
.live-invite h2 { margin: 0 0 6px; font: 700 17px/1.3 var(--font-display); }
.live-invite p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; }
.live-invite-actions { display: flex; gap: 8px; justify-content: flex-end; }
.live-invite-actions[hidden] { display: none; }

.lv-guestbar { position: absolute; z-index: 3; top: calc(60px + var(--safe-t)); right: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lv-guestbar[hidden] { display: none; }
.lv-guest-tag { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 13px; font-weight: 600; }
.lv-guestbar .btn-ghost { background: rgba(0,0,0,.5); color: #fff; border-color: rgba(255,255,255,.4); }

/* Mobile: 100dvh immersive, above the app chrome; the composer rides above the keyboard */
@media (max-width: 700px) {
  body.is-live-viewer .tabbar, body.is-live-viewer .m-top { display: none; }
  body.is-live-viewer .main { padding: 0; }
  .live-viewer .live-stage { position: fixed; z-index: 70; top: 0; left: 0; right: 0; bottom: var(--kb, 0px); height: auto; }
}
@media (min-width: 701px) {
  .live-viewer .lv-chat { right: auto; width: min(460px, 60%); border-bottom-left-radius: 0; }
}

/* Uploaded site logo inside the brand mark: shown whole on a transparent tile */
.live-host .live-stage { height: clamp(480px, 76dvh, 820px); aspect-ratio: auto; overflow: hidden; }
.live-stage .live-chat-overlay { left: 12px; right: auto; bottom: calc(12px + var(--safe-b)); width: min(340px, calc(100% - 80px)); max-height: calc(100% - 100px); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(15,23,32,.48); backdrop-filter: blur(6px); color: #fff; pointer-events: auto; opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s linear; }
.live-chat-overlay .chat-log { max-height: min(26dvh,240px); overflow-y: auto; overscroll-behavior: contain; }
.live-chat-overlay .chat-log:empty { min-height: 20px; }
.live-chat-overlay .chat-form { display: flex; gap: 8px; min-width: 0; }
.live-chat-overlay input { min-width: 0; width: 100%; }
.live-chat-overlay .chat-del { min-width: 44px; min-height: 44px; }
.live-chat-note { margin: 0; font-size: 13px; }
.live-stage.chat-hidden .live-chat-overlay { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .22s; }
.live-chat-switch { position: absolute; z-index: 3; right: 12px; bottom: calc(12px + var(--safe-b)); min-width: 48px; min-height: 48px; }
.live-host-top { position: absolute; z-index: 3; top: 12px; left: 12px; max-width: calc(100% - 180px); display: flex; align-items: center; gap: 8px; color: #fff; }
.live-host-status { padding: 6px 8px; border-radius: 8px; background: rgba(15,23,32,.64); color: #fff; font-size: 13px; }
.live-host-top .live-badge { font-size: 12px; flex-wrap: wrap; }
.live-host .tile-name { top: 76px; left: 12px; bottom: auto; }
.live-host .live-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 12px; background: rgba(15,23,32,.64); color: #fff; border: 0; gap: 8px; }
.live-host .live-controls .btn { min-height: 48px; }
.live-host .live-controls .btn:not(.btn-danger) { background: rgba(15,23,32,.65); border-color: rgba(255,255,255,.45); color: #fff; }
.live-host .live-check { color: #fff; }
.live-host .live-chat-overlay { bottom: 140px; }
.live-host .live-chat-switch { bottom: 140px; }
.live-audience { position: absolute; z-index: 4; top: 12px; right: 12px; width: auto; max-width: calc(100% - 24px); color: #fff; }
.live-audience[open] { width: min(300px,calc(100% - 24px)); }
.live-audience summary { min-height: 48px; padding: 12px 16px; margin-left: auto; width: fit-content; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(15,23,32,.64); cursor: pointer; }
.live-audience .live-panel { margin-top: 8px; max-height: min(40dvh,300px); overflow-y: auto; padding: 12px; border-radius: 12px; background: rgba(15,23,32,.9); }
.live-audience h2,.live-audience .live-help,.live-audience .muted { color: rgba(255,255,255,.85); }
@media (max-width: 700px) {
  .live-host .live-stage { height: max(600px,calc(100dvh - 76px)); }
  .live-host .live-controls .btn { flex: 1 1 100px; padding: 8px; font-size: 13px; }
  .live-host .live-controls .icon { width: 18px; height: 18px; }
  .live-host .live-chat-overlay { bottom: 168px; }
  .live-host .live-chat-switch { bottom: 168px; }
}
@media (prefers-reduced-motion: reduce) { .live-stage .live-chat-overlay { transition: none !important; } }
/* Desktop live room fills the space beside navigation. Mobile geometry stays unchanged. */
@media (min-width: 701px) {
  .shell.shell-live { grid-template-columns: var(--nav-w) minmax(0, 1fr); max-width: none; width: 100%; margin: 0; padding: 0; gap: 0; }
  .shell-live > .sidebar { display: none; }
  .shell-live > .main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; border-right: 0; }
  .shell-live > .main > .live { flex: 1; min-height: 0; }
  .shell-live > .main > .live > .live-stage { height: 100%; min-height: 0; max-height: none; aspect-ratio: auto; }
}

.brand-mark.has-logo { background: transparent; box-shadow: none; overflow: hidden; }
.brand-mark.has-logo::after { content: none; }
.brand-mark.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Toggle switch (settings) — same component as the admin panel */
.switch { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 48px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--btn-edge); position: relative; transition: background .2s; flex: none; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s ease; }
.switch input:checked + .track { background: var(--violet); border-color: var(--violet); }
.switch input:checked + .track .thumb { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--violet); outline-offset: 2px; }

/* "… yazıyor" under the last message */
.typing { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; padding: 8px 12px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.typing[hidden] { display: none; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation: none; } }
.dm-input textarea { overflow-y: hidden; }   /* JS turns scrolling on only past the max height */

/* Screen sharing in video calls */
.call.sharing .call-local { transform: none; object-fit: contain; background: #000; }   /* my screen: not mirrored */
.call.remote-screen .call-remote { object-fit: contain; }                            /* their screen: shown whole */
.call-btn[data-share-screen].is-off .call-ic { background: #fff; color: #0f1720; }

/* ---- PiP: minimised call over the framed site ---------------------------------- */
body.sa-wrapped { overflow: hidden; }
body.sa-wrapped > :not(#call):not(#sa-browse):not(.toasts):not(script):not(.vr-dock) { display: none !important; }
#sa-browse { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); z-index: 1; }
.call.mini { inset: auto 12px calc(12px + var(--safe-b)) auto; width: 220px; height: auto; padding: 10px; gap: 8px; border-radius: 16px; justify-content: flex-start; box-shadow: 0 12px 32px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); z-index: 95; }
.call.mini .call-kind, .call.mini .call-detail, .call.mini .call-local { display: none; }
.call.mini .call-info { flex: none; margin: 0; padding: 0; align-items: center; text-align: center; }
.call.mini .call-avatar .avatar { width: 56px; height: 56px; font-size: 22px; margin-bottom: 6px; animation: none !important; }
.call.mini h2 { font-size: 15px; }
.call.mini .call-state { margin-top: 2px; font-size: 13px; }
.call.mini .call-timer { font-size: 14px; margin-top: 2px; }
.call.mini .call-peer-status { margin-top: 6px; font-size: 12px; padding: 4px 8px; }
.call.mini.is-video.connected:not(.remote-cam-off) .call-remote { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; }
.call.mini.is-video.connected .call-info { order: 2; }
.call.mini.is-video.connected .call-actions { order: 3; background: none; padding: 0; }
.call.mini .call-actions[data-controls] { gap: 8px; flex-wrap: nowrap; justify-content: center; }
.call.mini .call-btn { width: 44px; }
.call.mini .call-btn > span:not(.call-ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* labels stay for screen readers */
.call.mini .call-ic { width: 44px; height: 44px; }
.call.mini .call-ic .icon, .call.mini .call-btn.decline .call-ic .icon { width: 22px; height: 22px; }
.call.mini [data-toggle-cam], .call.mini [data-switch-cam], .call.mini [data-share-screen] { display: none; }
@media (max-width: 700px) { .call.mini { width: 180px; bottom: calc(var(--tabbar-h, 64px) + 12px + var(--safe-b)); } }

/* Conversation menu (right-click / long-press) */
.menu-title { margin: 4px 14px 8px; font: 700 16px/1.3 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }   /* long-press opens our menu, not the link preview */

/* Profile details: website link aligned like location/join date (icon + text on one line) */
.profile-meta { align-items: center; }
.profile-meta > span, .profile-meta > a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; line-height: 1.3; }
.profile-meta > a { color: var(--violet); max-width: 100%; }
.profile-meta > a:hover { text-decoration: underline; }
.profile-meta .icon { flex: none; }

/* Ask for browser notifications once after sign-in */
.notif-ask { position: fixed; z-index: 80; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop); }
.notif-ask p { flex: 1 1 260px; margin: 0; font-size: 14.5px; line-height: 1.45; }
.notif-ask div { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 700px) { .notif-ask { bottom: calc(var(--tabbar-h, 64px) + 12px + var(--safe-b)); } }

/* ---- Polls --------------------------------------------------------------------- */
.poll-editor { margin: 8px 0 4px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; min-width: 0; }
.poll-editor[hidden] { display: none; }
.poll-legend { padding: 0 4px; font-weight: 700; font-size: 14px; }
.poll-legend .muted { font-weight: 400; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt input { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 15px; }
.poll-opt input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--brand-soft); }
.poll-editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.poll-dur { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.poll-dur select { height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.poll-editor-bar [data-poll-remove] { margin-left: auto; }
.composer-attach.is-disabled { opacity: .4; pointer-events: none; }
.composer-tool[aria-pressed="true"] { color: var(--violet); background: var(--brand-soft); }

.poll { margin: 10px 0 4px; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--violet); color: var(--violet); background: transparent; font-weight: 700; font-size: 15px; text-align: center; }
.poll-option:hover { background: var(--brand-soft); }
.poll-option:disabled { opacity: .6; }
.poll-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.poll-result { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 6px 12px; border-radius: 8px; overflow: hidden; font-size: 15px; }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: var(--surface-3); border-radius: 8px; transition: width .4s ease; }
.poll-result.lead .poll-fill { background: color-mix(in srgb, var(--violet) 28%, var(--surface-2)); }
.poll-label, .poll-pct { position: relative; }
.poll-result.lead .poll-label, .poll-result.lead .poll-pct { font-weight: 700; }
.poll-check { width: 16px; height: 16px; vertical-align: -3px; color: var(--violet); }
.poll-meta { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.poll-meta a { color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .poll-fill { transition: none; } }

/* Post page reply box: closed until the reply icon is used */
.reply-box[hidden] { display: none; }
/* "Hepsi bu kadar" + tick on one centred line */
.feed-end:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 6px; }
.feed-end .icon { margin: 0; vertical-align: 0; }
.poll-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }   /* text + "your vote" tick on one line */
/* Admin badge: police-style shield — navy body, gold edge and star (11.6:1 on light, gold edge 9.8:1 on dark) */
.vbadge-shield { fill: #1b3a5c; stroke: #f2b705; }
.vbadge-star { fill: #f2b705; }

/* Message menu: right-click / long-press; "Düzenle" explains when its 15-minute window has passed */
.menu-item-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.menu-note { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.menu-item:disabled { cursor: not-allowed; color: var(--muted); }
.menu-item:disabled .icon { color: var(--muted); }
.msg .bubble { -webkit-touch-callout: none; }   /* long-press opens our menu (with "Metni kopyala") */

/* Long chats: the message list scrolls inside the screen; header and composer always stay visible */
.thread-scroll { min-height: 0; }
.dm-split { grid-template-rows: minmax(0, 1fr); }
.dm-split > * { min-height: 0; }
@media (min-width: 1061px) { .dm-split { overflow: hidden; } }

/* Live: the browser refused sound → one clear tap target on the video */
.tile-unmute { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; border: 1px solid rgba(255,255,255,.5); font-weight: 600; font-size: 14px; }
.tile-unmute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Video call: name/timer and controls fade out after 3 s without movement (the self view and
   "… mikrofonunu kapattı" notices stay); any move, tap or key brings them back. */
.call .call-kind, .call .call-info > :not(.call-peer-status):not(.call-avatar), .call .call-actions[data-controls] { transition: opacity .3s ease; }
.call.idle { cursor: none; }
.call.idle .call-kind, .call.idle .call-info > :not(.call-peer-status):not(.call-avatar), .call.idle .call-actions[data-controls] { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .call .call-info > *, .call .call-actions[data-controls], .call .call-kind { transition: none; } }

/* ---- Link previews: YouTube player + site cards ---------------------------------------- */
.link-yt, .link-card { display: block; margin-top: 10px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; }
.link-yt .yt-play, .link-yt .yt-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; }
.link-yt .yt-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.link-yt .yt-btn { position: relative; display: block; line-height: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: transform .15s var(--ease); }
.link-yt .yt-btn-bg { fill: #212121; fill-opacity: .82; transition: fill .15s, fill-opacity .15s; }
.link-yt .yt-play:hover .yt-btn-bg, .link-yt .yt-play:focus-visible .yt-btn-bg { fill: #f00; fill-opacity: 1; }
.link-yt .yt-play:hover .yt-btn { transform: scale(1.06); }
.link-meta, .link-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 12px; min-width: 0; color: var(--text); text-decoration: none; }
.link-site { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.link-desc { font-size: 14px; line-height: 1.35; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.link-card:hover, .link-meta:hover { background: var(--surface-2); }
.link-card .link-img { display: block; aspect-ratio: 1.91 / 1; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.link-card .link-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.link-slot { min-height: 0; }

/* ---- Image viewer: picture + side panel (post, like, replies, reply box) --------------- */
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr); place-items: stretch; }
.lb-stage { display: grid; place-items: center; min-width: 0; min-height: 0; height: 100dvh; }
.lightbox .lb-stage img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.lb-side { background: var(--surface); color: var(--text); display: flex; flex-direction: column; min-height: 0; }
.lb-side[hidden] { display: none; }
.lb-post { padding: 16px 16px 6px; }
.lb-who { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.lb-who .avatar { width: 40px; height: 40px; flex: none; }
.lb-names { display: flex; flex-direction: column; min-width: 0; }
.lb-names .handle { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-body { margin-top: 10px; }
.lb-bar { padding: 4px 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; justify-content: space-around; }
.lb-bar .lb-open { font-size: 14px; font-weight: 600; color: var(--violet); text-decoration: none; padding: 0 10px; }
.lb-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lb-thread .composer { border-bottom: 1px solid var(--border); }
.lb-login, .lb-empty { padding: 18px 16px; color: var(--muted); margin: 0; }
.lb-login a { color: var(--violet); }

@media (min-width: 900px) {
  .lightbox.has-side[open] { grid-template-columns: minmax(0, 1fr) 380px; }
  .lb-side { height: 100dvh; border-left: 1px solid var(--border); }
  .lightbox.has-side .lightbox-close { left: 12px; right: auto; }
  /* Panel açıkken yanıt / paylaş düğmeleri sağdaki panelde: görselin altında ikinci kez gösterilmez (panel kapanınca geri gelir) */
  .lightbox.has-side:not(.panel-closed) .lb-dock-wrap { display: none; }
}
/* Phones: the post and actions sit over the bottom of the picture; the reply icon opens the thread */
@media (max-width: 899.98px) {
  .lightbox .lb-side,
  .lightbox .lightbox-close,
  .lightbox .lightbox-download,
  .lightbox .lb-nav,
  .lightbox .lb-count {
    transition: opacity .22s ease, visibility 0s linear;
  }
  .lb-side { position: fixed; inset: auto 0 0 0; max-height: 45dvh; background: linear-gradient(transparent, rgba(0,0,0,.82) 28%); color: #fff; padding-bottom: var(--safe-b, 0px); }
  .lb-side .lb-who, .lb-side .post-body, .lb-side .lb-bar .act, .lb-side .lb-bar .lb-open { color: #fff; }
  .lb-side .handle { color: rgba(255,255,255,.75); }
  .lb-side .lb-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .lb-side .post-body a { color: #9fd8ff; }
  .lb-side .lb-bar { border-color: transparent; }
  .lb-thread { display: none; }
  .lightbox.thread-open .lb-side { inset: 0; max-height: none; background: var(--surface); color: var(--text); }
  .lightbox.thread-open .lb-side .lb-who, .lightbox.thread-open .lb-side .post-body, .lightbox.thread-open .lb-side .lb-bar .act { color: var(--text); }
  .lightbox.thread-open .lb-side .handle { color: var(--muted); }
  .lightbox.thread-open .lb-side .post-body a { color: var(--violet); }
  .lightbox.thread-open .lb-side .lb-bar .lb-open { color: var(--violet); }
  .lightbox.thread-open .lb-side .lb-body { display: block; }
  .lightbox.thread-open .lb-side .lb-bar { border-color: var(--border); }
  .lightbox.thread-open .lb-thread { display: block; }
  .lightbox.thread-open .lb-post { padding-top: calc(64px + var(--safe-t, 0px)); }
  .lightbox.thread-open .lightbox-close { background: var(--surface-2); color: var(--text); }
}
.lightbox-close { z-index: 2; }
.lb-side .act.liked { color: var(--like); }

/* Photo gestures affect only the image; modal controls stay in screen coordinates. */
.verification-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.verification-summary { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 8px; }
html:has(#lightbox[open]) { overflow: hidden; }
.lightbox { overflow: hidden; }
.lightbox .lb-stage { overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox .lb-stage img { transform-origin: center center; transition: transform .16s ease; -webkit-user-drag: none; }
.lightbox.photo-zoomed .lb-stage { cursor: grab; }
.lightbox.photo-panning .lb-stage { cursor: grabbing; }
.lightbox.photo-panning .lb-stage img { transition: none; }
.lightbox .lb-stage:focus-visible { outline: 2px solid #1DA1F2; outline-offset: -3px; }
@media (max-width: 899.98px) {
  .lightbox.photo-controls-hidden .lb-side,
  .lightbox.photo-controls-hidden .lightbox-close,
  .lightbox.photo-controls-hidden .lightbox-download,
  .lightbox.photo-controls-hidden .lb-nav,
  .lightbox.photo-controls-hidden .lb-count {
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox .lb-stage img,
  .lightbox .lb-side,
  .lightbox .lightbox-close,
  .lightbox .lightbox-download,
  .lightbox .lb-nav,
  .lightbox .lb-count { transition: none !important; }
}

/* ---- Otag video player (assets/js/player.js) --------------------------------------------- */
.vp { position: relative; display: block; background: #000; color: #fff; line-height: 0; outline: none; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; }
.vp:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-fill, #1DA1F2); }
.vp video { display: block; width: 100%; cursor: pointer; }
.vp.vp-full { display: grid; place-items: center; width: 100vw; height: 100vh; }
.vp.vp-full video { max-height: 100vh !important; height: 100%; object-fit: contain; }
.vp-btn, .vp-big { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: grid; place-items: center; padding: 0; }
.vp-btn { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.vp-btn:hover { background: rgba(255,255,255,.14); }
.vp-btn:focus-visible, .vp-big:focus-visible, .vp-track:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(15,20,25,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .15s var(--ease, ease), background .15s, opacity .2s; z-index: 2; }
.vp-big svg { width: 30px; height: 30px; }
.vp-big:hover { background: var(--brand-fill, #1DA1F2); transform: scale(1.06); }
.vp[data-state="playing"] .vp-big, .vp[data-state="error"] .vp-big, .vp.vp-loading .vp-big { opacity: 0; pointer-events: none; }

.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 6px; background: linear-gradient(transparent, rgba(0,0,0,.72)); transition: opacity .25s, transform .25s; z-index: 3; }
.vp:not(.vp-awake) .vp-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.vp:not(.vp-awake)[data-state="playing"] { cursor: none; }
.vp:not(.vp-awake)[data-state="playing"] video { cursor: none; }
.vp-row { display: flex; align-items: center; gap: 2px; line-height: 1; }
.vp-gap { flex: 1; }
.vp-time { font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; opacity: .95; }
.vp-speed { width: auto; min-width: 40px; padding: 0 8px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* Progress bar: 4 px line that thickens on hover/drag; bigger hit area than it looks */
.vp-track { position: relative; height: 18px; margin: 0 6px 2px; cursor: pointer; touch-action: none; }
.vp-track::before, .vp-buf, .vp-played { content: ""; position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; transition: height .12s, top .12s; }
.vp-track::before { right: 0; background: rgba(255,255,255,.28); }
.vp-buf { background: rgba(255,255,255,.45); width: 0; }
.vp-played { background: var(--brand-fill, #1DA1F2); width: 0; }
.vp-knob { position: absolute; top: 9px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transform: scale(0); transition: transform .12s; left: 0; }
.vp-track:hover::before, .vp-track:hover .vp-buf, .vp-track:hover .vp-played, .vp-drag .vp-track::before, .vp-drag .vp-buf, .vp-drag .vp-played { height: 6px; top: 6px; }
.vp-track:hover .vp-knob, .vp-drag .vp-knob, .vp-track:focus-visible .vp-knob { transform: scale(1); }
.vp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 4px 7px; border-radius: 6px; background: rgba(15,20,25,.9); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; opacity: 0; pointer-events: none; transition: opacity .12s; white-space: nowrap; }
.vp-track:hover .vp-tip { opacity: 1; }

/* Volume: slider opens next to the speaker icon on devices with a mouse */
.vp-vol { display: flex; align-items: center; }
.vp-volume { -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 4px; margin: 0; border-radius: 4px; cursor: pointer; transition: width .2s, opacity .2s, margin .2s;
  background: linear-gradient(to right, #fff var(--p, 100%), rgba(255,255,255,.3) var(--p, 100%)); }
.vp-vol:hover .vp-volume, .vp-volume:focus-visible { width: 72px; opacity: 1; margin: 0 8px 0 2px; }
.vp-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.vp-volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
@media (hover: none) { .vp-volume { display: none; } }

.vp-spin { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.vp.vp-loading .vp-spin { opacity: 1; animation: vp-spin .8s linear infinite; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.vp-msg { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 6px 12px; border-radius: 20px; background: rgba(15,20,25,.78); font-size: 14px; font-weight: 600; line-height: 1.2; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 4; }
.vp-msg.show, .vp[data-state="error"] .vp-msg { opacity: 1; }
.vp[data-state="error"] .vp-msg { top: 50%; transform: translate(-50%, -50%); }
.vp-seekfx { position: absolute; top: 50%; display: grid; justify-items: center; gap: 4px; padding: 14px 18px; margin-top: -40px; border-radius: 40px; background: rgba(15,20,25,.55); font-size: 12px; line-height: 1; opacity: 0; pointer-events: none; z-index: 2; }
.vp-seekfx-l { left: 8%; }
.vp-seekfx-r { right: 8%; }
.vp-seekfx.show { animation: vp-seek .6s ease-out; }
@keyframes vp-seek { 0% { opacity: 0; transform: scale(.9); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* Small players (messages): compact bar */
.msg-media .vp-bar { padding: 22px 4px 2px; }
.msg-media .vp-btn { width: 34px; height: 34px; }
.msg-media .vp-btn svg { width: 19px; height: 19px; }
.msg-media .vp-time { font-size: 12px; padding: 0 4px; }
.msg-media .vp-speed, .msg-media .vp-pipbtn { display: none; }
.msg-media .vp-big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
@media (prefers-reduced-motion: reduce) { .vp-bar, .vp-big, .vp-knob, .vp-volume { transition: none; } .vp-seekfx.show { animation: none; } }

/* Messages (desktop): the left menu stays where it is on other pages; the chat runs to the window's
   right edge instead of leaving an empty column where the side panel would be. */
@media (min-width: 1061px) {
  .shell.shell-messages { max-width: none; margin: 0; justify-content: start; padding-right: 0;
    padding-left: max(20px, calc((100vw - 1320px) / 2 + 20px)); grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .shell-messages .main { border-right: 0; }
}

/* ---- Profile: "şu anda canlı yayında" card with an inline live player ---------------------- */
.profile-live { margin: 0 16px 14px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.pl-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.pl-now { font-size: 15px; min-width: 0; }
.pl-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; border: 0; background: radial-gradient(circle at 50% 45%, #1b3a5c, #05070a 70%); color: #fff; font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.pl-play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 0 0 0 rgba(255,59,48,.5); animation: pl-pulse 2s infinite; transition: background .15s, transform .15s; }
.pl-cover:hover .pl-play { background: var(--brand-fill, #1DA1F2); transform: scale(1.05); }
.pl-play .icon { width: 30px; height: 30px; }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.45); } 70% { box-shadow: 0 0 0 16px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.pl-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.pl-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-open { color: var(--violet); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pl-stop { border: 0; background: none; color: var(--red); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; padding: 0; }
.pl-stop[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pl-play { animation: none; } }

/* The live page inside that player: only the stream itself, no site chrome */
body.is-embed .sidenav, body.is-embed .tabbar, body.is-embed .m-top, body.is-embed .sidebar, body.is-embed .announcement,
body.is-embed .aurora, body.is-embed [data-leave-live], body.is-embed .notif-ask { display: none !important; }
body.is-embed .shell { display: block; padding: 0; max-width: none; }
body.is-embed .main { border: 0; padding: 0; min-height: 0; }
body.is-embed .live-viewer .live-stage { position: fixed; inset: 0; height: auto; z-index: 70; }

/* ---- Desktop chat window (assets/js/chatpop.js) ----------------------------------------------- */
.chatpop { position: fixed; right: 24px; bottom: 0; z-index: 60; width: 340px; display: flex; flex-direction: column; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.02);
  transform: translateY(16px); opacity: 0; transition: transform .22s var(--ease, ease), opacity .22s; }
.chatpop.show { transform: none; opacity: 1; }
.cp-head { display: flex; align-items: center; gap: 2px; padding: 8px 6px 8px 12px; border-bottom: 1px solid var(--border); min-height: 56px; }
.chatpop.is-min .cp-head { border-bottom: 0; cursor: pointer; }
.cp-who-slot { flex: 1; min-width: 0; }
.cp-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.cp-who .avatar { flex: none; }
.cp-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cp-names .name-line { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; }
.cp-names .name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-handle { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; flex: none; }
.cp-btn:hover { background: var(--surface-2); color: var(--text); }
.cp-btn:focus-visible { outline: 2px solid var(--brand-fill, #1DA1F2); outline-offset: 1px; }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-fill, #1DA1F2); margin-right: 4px; display: none; }
.chatpop.is-min.has-new .cp-dot { display: block; }
.chatpop.is-min .cp-body { display: none; }
.cp-body { display: flex; flex-direction: column; height: min(440px, calc(100vh - 140px)); }
.cp-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px; display: flex; flex-direction: column; }
.cp-msgs { display: flex; flex-direction: column; margin-top: auto; }
.chatpop .msg-more, .chatpop [data-msg-menu] { display: none; }
.chatpop .msg-media { max-width: 220px; }
.cp-form { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 10px; border-top: 1px solid var(--border); }
.cp-form[hidden] { display: none; }
.cp-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 110px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-2); color: var(--text); font: 15px/1.35 var(--font); }
.cp-form textarea:focus { outline: none; border-color: var(--brand-fill, #1DA1F2); }
.cp-send { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--btn-edge, var(--border)); background: none; color: var(--violet); cursor: pointer; }
.cp-send:disabled { opacity: .45; cursor: default; }
.cp-blocked { margin: 0; padding: 12px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
@media (max-width: 1060px) { .chatpop { display: none; } }
@media (prefers-reduced-motion: reduce) { .chatpop { transition: none; } }

/* Profile live item drawn like a post (overrides the earlier card look) */
.profile-live .pl-player { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.profile-live .pl-cover { background: var(--surface-2); color: var(--text); z-index: 1; padding-top: 56px; }
.profile-live .pl-play { width: 48px; height: 48px; border: 1px solid var(--border-strong); background: var(--surface); animation: none; box-shadow: none; }
.profile-live .pl-cover:hover .pl-play { background: var(--surface); transform: scale(1.04); }
.pl-presenter { position: absolute; left: 50%; top: 28%; transform: translate(-50%,-50%); z-index: 2; pointer-events: none; }
.pl-presenter .avatar { width: clamp(48px,8vw,72px); height: clamp(48px,8vw,72px); }
.pl-player:has(.pl-frame) .pl-presenter { display: none; }
.live-item-title { font-weight: 600; line-height: 1.4; }
.post.profile-live { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; cursor: default; }
.pl-avatar { position: relative; display: block; border-radius: 50%; }
.pl-avatar .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f4212e; }
.pl-avatar-tag { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 1px 6px; border-radius: 4px; background: #f4212e; color: #fff; font: 800 10px/1.4 var(--font); letter-spacing: .04em; box-shadow: 0 0 0 2px var(--bg); }
.pl-live { display: inline-flex; align-items: center; gap: 6px; color: #f4212e; font-weight: 700; font-size: 14px; white-space: nowrap; }
.pl-live .live-dot, .pl-corner .live-dot { width: 8px; height: 8px; }
.pl-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pl-corner { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: #f4212e; color: #fff; font: 800 12px/1.3 var(--font); letter-spacing: .04em; pointer-events: none; z-index: 1; }
.pl-player:has(.pl-frame) .pl-corner { display: none; }
.pl-actions { gap: 18px; justify-content: flex-start; }
.pl-actions .act { gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pl-actions .act .icon { width: 18px; height: 18px; }
.pl-actions .pl-open { color: var(--text-2); }
.pl-actions .pl-open:hover { color: var(--violet); }
.pl-actions .pl-stop { color: var(--red); }

/* Image viewer: the action bar spans exactly the panel (post rows pull it 9–12 px left) */
.lb-side .lb-bar, .lb-side .lb-bar.post-actions { margin: 0; max-width: none; }
.lb-side { overflow-x: hidden; }

/* ---- Live ring on avatars (everyone broadcasting now): colourful, like a story ring --------- */
.live-ring { position: relative; isolation: isolate; display: inline-block; flex: none; border-radius: 50%; line-height: 0; vertical-align: middle; cursor: pointer; }
.live-ring::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 0deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #1DA1F2, #feda75); animation: live-ring-spin 3s linear infinite; }
.live-ring > .avatar { box-shadow: 0 0 0 2px var(--bg); margin: 0; }
.live-ring-sm::before { inset: -2px; }
.live-ring-sm > .avatar { box-shadow: 0 0 0 1.5px var(--bg); }
.live-ring-xl::before { inset: -5px; }
.live-ring-xl > .avatar { box-shadow: 0 0 0 4px var(--bg); }
.live-ring-tag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); z-index: 1; padding: 1px 5px; border-radius: 4px;
  background: linear-gradient(90deg, #d62976, #fa7e1e); color: #fff; font: 800 9px/1.45 var(--font); letter-spacing: .05em; box-shadow: 0 0 0 2px var(--bg); white-space: nowrap; }
.live-ring-xl .live-ring-tag { font-size: 12px; padding: 2px 8px; bottom: -9px; }
@keyframes live-ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-ring::before { animation: none; } }
/* Profile header: the negative top margin moves from the picture to its ring */
.profile-top .live-ring-xl { margin-top: -64px; animation: pop-in .6s var(--spring) both; }
.profile-top .live-ring-xl > .avatar-xl { margin-top: 0; animation: none; }
@media (max-width: 700px) { .profile-top .live-ring-xl { margin-top: -42px; } }
/* The red dot inside the red "CANLI" label on the profile stream is white */
.pl-corner .live-dot { background: #fff; }
/* Ring thickness = how far it reaches out minus the white gap */
.live-ring::before { inset: -5px; }
.live-ring > .avatar { box-shadow: 0 0 0 2.5px var(--bg); }
.live-ring-sm::before { inset: -3.5px; }
.live-ring-sm > .avatar { box-shadow: 0 0 0 1.5px var(--bg); }
.live-ring-lg::before { inset: -6px; }
.live-ring-lg > .avatar { box-shadow: 0 0 0 3px var(--bg); }
.live-ring-xl::before { inset: -10px; }
.live-ring-xl > .avatar { box-shadow: 0 0 0 5px var(--bg); }

/* Admin badge: the verified seal in gold (replaces the shield) */
.vbadge-seal.vbadge-seal-gold { fill: #d4a017; stroke: #d4a017; }

/* Like: brand blue heart with a sparkle burst (particles from burst() in app.js) */
.burst i { width: 6px; height: 6px; margin: -3px; animation: burst-fly var(--t, .7s) var(--ease, ease-out) forwards; }
.burst i.twinkle { width: 9px; height: 9px; margin: -4.5px; border-radius: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.burst .ring-burst { border-color: var(--like); }
.act-like.liked .icon { filter: drop-shadow(0 0 6px rgba(29, 161, 242, .45)); }
@keyframes burst-fly {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-6px) scale(.4); }
  20% { opacity: 1; }
  60% { opacity: 1; transform: rotate(var(--a)) translateY(var(--d)) scale(1.1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) - 6px)) scale(.2) rotate(90deg); }
}
.post-actions .act.act-like.liked, .post-actions .act.act-like.liked .count { color: var(--like); }

/* ---- Several photos/videos per post ------------------------------------------------------- */
/* Composer: chosen files as a grid of tiles (remove ×, "Düzenle" on videos) */
.composer-media { display: grid; gap: 4px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; }
.composer-media[hidden] { display: none; }
.composer-media.cm-2, .composer-media.cm-4 { grid-template-columns: 1fr 1fr; }
.composer-media.cm-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.composer-media.cm-3 .cm-item:first-child { grid-row: span 2; }
.cm-item { position: relative; min-height: 0; background: #000; border-radius: 4px; overflow: hidden; }
.composer-media.cm-1 .cm-item { border-radius: 16px; border: 1px solid var(--border); }
.cm-item img, .cm-item video { display: block; width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.composer-media:not(.cm-1) .cm-item img, .composer-media:not(.cm-1) .cm-item video { aspect-ratio: 1 / 1; max-height: 220px; }
.composer-media.cm-3 .cm-item:first-child img, .composer-media.cm-3 .cm-item:first-child video { aspect-ratio: auto; max-height: none; }
.cm-item .media-remove { top: 6px; right: 6px; width: 32px; height: 32px; border: 0; cursor: pointer; }
.cm-edit { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.7); color: #fff; font: 700 13px/1 var(--font); cursor: pointer; }
.cm-edit:hover { background: var(--brand-fill, #1DA1F2); }
.cm-dur { position: absolute; right: 6px; bottom: 6px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font: 600 12px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.cm-dur:empty { display: none; }
.composer-attach.is-disabled { opacity: .45; pointer-events: none; }

/* Post: 2 side by side, 3 = one tall + two, 4 = 2×2 */
.post-gallery { display: grid; gap: 2px; margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-gallery.pg-2 { grid-template-columns: 1fr 1fr; }
.post-gallery.pg-3, .post-gallery.pg-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.post-gallery.pg-3 .pg-item:first-child { grid-row: span 2; }
.pg-item { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
.pg-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.pg-item:hover img { filter: brightness(.92); }
.pg-video .vp, .pg-video video { width: 100%; height: 100%; }
.pg-video video { object-fit: cover; max-height: none !important; }
.post-gallery .vp-speed, .post-gallery .vp-pipbtn, .post-gallery .vp-vol .vp-volume { display: none; }
.post-gallery .vp-time { font-size: 12px; padding: 0 4px; }
.post-gallery .vp-btn { width: 34px; height: 34px; }
.post-gallery .vp-big { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
@media (max-width: 700px) { .post-gallery { aspect-ratio: 4 / 3; } }

/* Image viewer: arrows between a post's photos */
.lb-stage { position: relative; }
.lb-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-nav[hidden] { display: none; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-next .icon { transform: scaleX(-1); }
.lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 600 13px/1.2 var(--font); z-index: 2; }
.lb-count[hidden] { display: none; }

/* ---- Video editor dialog ----------------------------------------------------------------- */
.ve { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; }
.ve::backdrop { background: rgba(0,0,0,.6); }
.ve-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--border); }
.ve-head h2 { margin: 0; font: 700 18px/1.2 var(--font-display, var(--font)); }
.ve-stage { display: grid; place-items: center; padding: 12px; background: #000; }
.ve-frame { position: relative; width: min(100%, calc(46dvh * var(--ar, 1.7778))); aspect-ratio: var(--ar, 1.7778); overflow: hidden; }
.ve-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ve-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); outline: 2px solid #fff; cursor: move; touch-action: none; }
.ve-crop:focus-visible { outline: 3px solid var(--brand-fill, #1DA1F2); }
.ve-crop span { position: absolute; inset: 0; pointer-events: none; }
.ve-crop span:first-child { border-left: 1px solid rgba(255,255,255,.35); border-right: 1px solid rgba(255,255,255,.35); left: 33.3%; right: 33.3%; }
.ve-crop span:last-child { border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); top: 33.3%; bottom: 33.3%; }
.ve-transport { display: flex; align-items: center; gap: 12px; padding: 12px 18px 4px; }
.ve-play { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--btn-edge, var(--border)); background: none; color: var(--text); cursor: pointer; }
.ve-play.on { background: var(--brand-fill, #1DA1F2); color: #fff; border-color: transparent; }
.ve-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.ve-range { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ve-trim { position: relative; height: 44px; margin: 6px 18px 0; }
.ve-track { position: absolute; left: 0; right: 0; top: 14px; height: 16px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.ve-sel { position: absolute; top: -1px; bottom: -1px; background: rgba(29,161,242,.25); border: 2px solid var(--brand-fill, #1DA1F2); border-radius: 8px; }
.ve-playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.ve-trim input[type=range] { position: absolute; left: 0; right: 0; top: 12px; width: 100%; margin: 0; height: 20px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ve-trim input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 30px; border-radius: 6px; background: var(--brand-fill, #1DA1F2); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: ew-resize; }
.ve-trim input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 28px; border-radius: 6px; background: var(--brand-fill, #1DA1F2); border: 2px solid #fff; cursor: ew-resize; }
.ve-trim input[type=range]::-webkit-slider-runnable-track { background: none; }
.ve-trim input[type=range]::-moz-range-track { background: none; }
.ve-trim input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--text); }
.ve-warn { margin: 4px 18px 0; color: var(--red); font-size: 14px; font-weight: 600; }
.ve-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 0; }
.ve-aspects { display: flex; gap: 6px; flex-wrap: wrap; }
.ve-asp { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--text-2); font: 12px/1.2 var(--font); cursor: pointer; }
.ve-asp b { font-size: 14px; color: var(--text); }
.ve-asp[aria-pressed="true"] { border-color: var(--brand-fill, #1DA1F2); background: var(--brand-soft); color: var(--violet); }
.ve-mute { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.ve-mute input { width: 18px; height: 18px; accent-color: var(--brand-fill, #1DA1F2); }
.ve-hint { margin: 8px 18px 0; color: var(--muted); font-size: 13px; }
.ve-hint[hidden] { display: none; }
.ve-progress { padding: 12px 18px 0; }
.ve-progress[hidden] { display: none; }
.ve-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ve-bar span { display: block; height: 100%; width: 0; background: var(--brand-fill, #1DA1F2); transition: width .2s linear; }
.ve-progress p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.ve-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 16px; }
.ve.busy .ve-opts, .ve.busy .ve-trim, .ve.busy .ve-transport, .ve.busy .ve-crop { pointer-events: none; opacity: .6; }
@media (max-width: 600px) { .ve-frame { width: min(100%, calc(38dvh * var(--ar, 1.7778))); } .ve-asp { min-width: 54px; } }
.media-tile-multi { position: absolute; top: 6px; right: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font: 700 12px/1.3 var(--font); }
.live-follow:empty { display: none; }

/* Chat window: more compact (320 × ~380), smaller bubbles; photo/video attachment */
.chatpop { width: 320px; right: 20px; }
.cp-head { min-height: 50px; padding: 6px 4px 6px 10px; }
.cp-head .avatar { width: 32px; height: 32px; font-size: 14px; }
.cp-names .name-line { font-size: 14px; }
.cp-handle { font-size: 12px; }
.cp-btn { width: 30px; height: 30px; }
.cp-body { height: min(380px, calc(100vh - 130px)); }
.cp-scroll { padding: 8px 10px; }
.chatpop .msg { max-width: 88%; }
.chatpop .msg-text { font-size: 14px; line-height: 1.35; }
.chatpop .bubble { padding: 6px 10px; border-radius: 16px; }
.chatpop .msg.mine .bubble { border-radius: 16px 16px 5px 16px; }
.chatpop .msg-meta { font-size: 10.5px; }
.chatpop .msg-media { max-width: 200px; margin: -1px -4px 4px; }
.chatpop .msg-media img, .chatpop .msg-media video { max-height: 220px; }
.cp-form { padding: 6px 8px 8px; gap: 6px; align-items: flex-end; }
.cp-form textarea { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 18px; }
.cp-send { width: 36px; height: 36px; }
.cp-attach { flex: none; width: 36px; height: 36px; color: var(--violet); }
.cp-attach-preview { display: flex; align-items: center; gap: 8px; margin: 0 8px; padding: 6px 6px 6px 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface-2); }
.cp-attach-preview[hidden] { display: none; }
.cp-attach-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #000; flex: none; }
.cp-attach-thumb img, .cp-attach-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-attach-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-2); }
.chatpop.sending .cp-send { opacity: .5; pointer-events: none; }

/* Minimised chat window: a small pill (avatar + name + expand/close), not the full-width bar */
.chatpop.is-min { width: auto; max-width: 240px; border-radius: 999px; bottom: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.16); }
.chatpop.is-min .cp-head { min-height: 0; padding: 4px 4px 4px 4px; gap: 0; }
.chatpop.is-min .cp-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.chatpop.is-min .cp-who { gap: 8px; }
.chatpop.is-min .cp-names .name-line { font-size: 13.5px; }
.chatpop.is-min .cp-handle, .chatpop.is-min .cp-full { display: none; }
.chatpop.is-min .cp-btn { width: 28px; height: 28px; }
.chatpop.is-min .cp-btn svg { width: 16px; height: 16px; }
.chatpop.is-min .cp-who-slot { margin-right: 2px; }

/* Own messages: same light bubble as the other person's (right-aligned, tail on the right) */
.msg.mine .bubble { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.msg.mine .bubble a { color: var(--violet); text-decoration: none; }
.msg.mine .msg-meta { color: var(--muted); }
.msg.mine .status-read { color: var(--violet); opacity: 1; }

/* Download button in the image viewer (photos from messages), left of the close button */
.lightbox-download { position: fixed; top: calc(12px + var(--safe-t, 0px)); right: 64px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; z-index: 2; }
.lightbox-download:hover { background: rgba(255,255,255,.24); }
.lightbox-download[hidden] { display: none; }
.vp-dl { color: inherit; }
.msg-media .vp-dl svg { width: 19px; height: 19px; }

/* Online status in messages: green dot on the avatar, "Çevrimiçi" / "Son görülme" under the name */
.avatar-wrap { position: relative; display: inline-flex; flex: none; line-height: 0; }
.presence-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #17bf63; box-shadow: 0 0 0 2px var(--bg); }
.presence-dot[hidden] { display: none; }
.thread-who .presence-dot { width: 10px; height: 10px; }
.presence-text { color: var(--muted); }
.presence-text.is-online { color: #0f9d58; font-weight: 600; }

/* Mobile top bar: the theme switch sits where the bell was (notifications stay in the bottom bar) */
.m-icon-btn.theme-toggle { border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }

/* Own message bubbles: a touch darker than the other person's so the two sides are told apart */
.msg.mine .bubble { background: color-mix(in srgb, var(--surface-2) 93%, var(--text)); }
/* "@kullanici · Çevrimiçi": the separator only when there is a status; phones show just the status */
.thread-who .presence-text:not(:empty)::before { content: " · "; color: var(--muted); font-weight: 400; }
@media (max-width: 700px) {
  .thread-who .sub:has(.presence-text:not(:empty)) .sub-handle { display: none; }
  .thread-who .presence-text::before { content: none !important; }
  .thread-who .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Notifications: photo and text side by side; the name medium weight, the rest regular */
.notif-link { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
.notif-top { grid-row: span 2; align-self: start; line-height: 0; }
.notif-text { font-size: 15px; font-weight: 400; color: var(--text-2); }
.notif-text b { font-weight: 600; color: var(--text); }
.notif-snippet { grid-column: 2; font-size: 14px; }
.notif-link:not(:has(.notif-snippet)) .notif-top { grid-row: auto; align-self: center; }
.dm-attach[data-progress]::after { content: " · " attr(data-progress); font-weight: 700; color: var(--violet); }

/* ---- Private accounts & follow requests ----------------------------------------------- */
.btn-follow:not(.requested) .lbl-requested, .btn-follow:not(.requested) .lbl-cancel { visibility: hidden; }
.btn-follow.requested .lbl-follow, .btn-follow.requested .lbl-following, .btn-follow.requested .lbl-unfollow, .btn-follow.requested .lbl-cancel { visibility: hidden; }
.btn-follow.requested .lbl-requested { visibility: visible; }
.btn-follow.requested:hover .lbl-requested { visibility: hidden; }
.btn-follow.requested:hover .lbl-cancel { visibility: visible; }
.btn-follow.requested { color: var(--text-2); border-style: dashed; }
.btn-follow.requested:hover { color: var(--red); }
.lock-badge { display: inline-flex; color: var(--muted); margin-left: 6px; vertical-align: middle; }
.lock-badge .icon { width: 18px; height: 18px; }
.req-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--brand-soft); color: var(--text); text-decoration: none; }
.req-banner span { flex: 1; }
.req-banner .icon { width: 20px; height: 20px; color: var(--violet); }
.req-list { list-style: none; margin: 0; padding: 0; }
.req { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.req-who { flex: 1; display: flex; gap: 12px; align-items: flex-start; min-width: 0; color: var(--text); text-decoration: none; }
.req-names { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.req-bio { font-size: 14px; color: var(--text-2); }
.req-actions { display: flex; gap: 8px; flex: none; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-fill, #1DA1F2); flex: none; }
.switch-row span { display: flex; flex-direction: column; gap: 4px; }
.switch-row small { color: var(--text-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 520px) { .req { flex-wrap: wrap; } .req-actions { width: 100%; justify-content: flex-end; } }

/* "3 Beğeni" → list of people who liked the post */
.stat-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.stat-btn:hover { text-decoration: underline; }
.likers-sheet { width: min(440px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 40px)); padding: 0; display: none; flex-direction: column; }
.likers-sheet[open] { display: flex; }
.likers-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--border); }
.likers-head h2 { margin: 0; font: 700 18px/1.2 var(--font-display, var(--font)); }
.likers-body { overflow-y: auto; overscroll-behavior: contain; }
.likers-list { list-style: none; margin: 0; padding: 0; }
.liker { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.liker-who { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.liker-names { display: flex; flex-direction: column; min-width: 0; }
.liker-names .name-line { display: flex; align-items: center; gap: 4px; }
.likers-empty { padding: 22px 18px; margin: 0; color: var(--muted); }
.smtp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.likers-sheet { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); backdrop-filter: none; -webkit-backdrop-filter: none; }
.likers-sheet, .likers-body { overflow-x: hidden; } .likers-sheet { padding: 0; }

/* "@" in front of the username field */
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); overflow: hidden; }
.input-prefix > span { padding: 0 2px 0 12px; color: var(--muted); font-weight: 600; }
.input-prefix input { border: 0 !important; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; padding-left: 2px; }
.input-prefix:focus-within { border-color: var(--brand-fill, #1DA1F2); box-shadow: 0 0 0 3px var(--brand-soft); }
/* "Kimler sana yeni konuşma başlatabilir?" — explanation text, not a heading */
.radio-list > legend.help { text-transform: none; letter-spacing: 0; font: 400 14px/1.45 var(--font); color: var(--text-2); margin-bottom: 10px; padding: 0; }
.unsub-form { display: flex; gap: 10px; justify-content: center; padding: 0 0 30px; }

/* Chat window: same typing behaviour as the Messages page */
.cp-form textarea { height: 36px; min-height: 36px; max-height: 36px; padding: 0 12px; border: 0 solid transparent; border-block-width: 9px; box-shadow: 0 0 0 1px var(--border); line-height: 18px; overflow-y: auto; scrollbar-width: none; transition: flex-basis .22s ease; }
.cp-form textarea:focus { border-color: transparent; box-shadow: 0 0 0 1px var(--brand-fill, #1DA1F2); }
.cp-form textarea::-webkit-scrollbar { display: none; }
.cp-form > .cp-attach { overflow: hidden; transition: flex-basis .22s ease, width .22s ease, margin-inline-end .22s ease, opacity .16s ease, visibility 0s linear; }
.cp-form:has(textarea:not(:placeholder-shown)) > .cp-attach { flex-basis: 0; width: 0; margin-inline-end: -6px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: flex-basis .22s ease, width .22s ease, margin-inline-end .22s ease, opacity .16s ease, visibility 0s linear .22s; }
@media (prefers-reduced-motion: reduce) { .cp-form > .cp-attach, .cp-form textarea { transition: none !important; } }

/* Results under the search box */
.search-pop { position: fixed; z-index: 1000; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .16); }
.search-pop[hidden] { display: none; }
.search-pop h3 { margin: 8px 10px 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.search-pop-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.search-pop-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.search-pop-row .grow > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pop-row .search-pop-text { color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.search-pop a:hover, .search-pop a.is-picked { background: var(--surface-2); }
.search-pop mark { background: none; color: var(--violet); font-weight: 700; }
.search-pop-empty { margin: 0; padding: 14px 10px; font-size: 14px; color: var(--muted); }
.search-pop-all { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--violet); text-decoration: none; overflow-wrap: anywhere; }
.search-pop-all .icon { flex: none; width: 17px; height: 17px; }

/* Voice panel inside the chat window */
.cp-form .dm-voice-bar { min-height: 46px; padding: 3px; gap: 4px; border-radius: 23px; }
.cp-form .dm-voice-bar > .icon-btn, .cp-form .dm-voice-go { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
.cp-form .dm-voice-wave { height: 28px; }
.cp-form .dm-voice-note { margin: 3px 10px 0; font-size: 12px; }
.cp-form .dm-voice-note small { display: none; }

/* Chat window: call buttons and the edit bar */
.cp-btn[hidden] { display: none; }
.chatpop.is-min .cp-call { display: none; }
.cp-call { color: var(--violet); }
.cp-editing { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 8px; padding: 2px 4px 2px 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 13px; font-weight: 600; color: var(--violet); }
.cp-editing[hidden] { display: none; }
.cp-form.is-editing > .cp-attach { display: none; }

/* Link card with a logo or square picture: small, beside the text */
.link-card.is-thumb { display: flex; align-items: stretch; }
.link-card.is-thumb .link-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; border-bottom: 0; border-right: 1px solid var(--border); }
.link-card.is-thumb .link-img img { object-fit: contain; padding: 10px; }
.link-card.is-thumb .link-text { flex: 1; min-width: 0; }

/* Viewer: a video in a post's gallery */
.lightbox .lb-stage img[hidden], .lb-video[hidden] { display: none; }
.lb-video { display: block; width: 100%; max-width: 100%; max-height: 100dvh; background: #000; }

/* Sliding tabs: the old and new content side by side while they move */
.tab-stage { position: relative; overflow: hidden; }
.tab-stage > .tab-pane { position: absolute; top: 0; left: 0; right: 0; }
.tab-stage > .tab-pane:not(.tab-leaving) { position: relative; }
.tab-stage > .tab-leaving { pointer-events: none; }

/* Voice rooms: the row under the composer */
.voice-rooms { display: flex; gap: 14px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.voice-rooms::-webkit-scrollbar { display: none; }
.voice-rooms-list { display: flex; gap: 14px; }
.vr-add, .vr-pill { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 60px; border: 0; background: none; color: inherit; text-decoration: none; cursor: pointer; }
.vr-add-face { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--border); }
.vr-add-plus { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--bg); border-radius: 50%; background: var(--violet); color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.vr-pill-body { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 12px 0 5px; border-radius: 28px; background: linear-gradient(135deg, #6d4aff, #9b5cff); color: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #8b5cf6; }
.vr-faces { display: flex; }
.vr-faces .avatar { width: 46px; height: 46px; font-size: 18px; border: 2px solid #7a52ff; }
.vr-faces .avatar + .avatar { margin-left: -16px; }
.vr-more { font-size: 14px; font-weight: 700; }
.vr-wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.vr-wave i { width: 3px; height: 100%; border-radius: 2px; background: #fff; transform-origin: center; animation: vr-wave 1s ease-in-out infinite; }
.vr-wave i:nth-child(2) { animation-delay: .2s; }
.vr-wave i:nth-child(3) { animation-delay: .4s; }
@keyframes vr-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.vr-pill-name { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .vr-wave i { animation: none; } }

/* Voice rooms: opening one */
.vr-new form { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.vr-new h2 { margin: 0; font-size: 19px; }
.vr-new p { margin: 0; font-size: 14px; color: var(--muted); }
.vr-new input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 16px; }
.vr-new-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Voice rooms: inside one */
.voice-room { display: flex; flex-direction: column; min-height: 100dvh; }
.vr-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 12px; background: var(--bg); }
.vr-top [hidden] { display: none; }
.vr-min .icon { transform: rotate(-90deg); }
.vr-kind { flex: 1; font-size: 14px; font-weight: 700; color: var(--muted); }
.vr-leave { padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--red); font-weight: 700; cursor: pointer; }
.vr-leave:hover { background: rgba(255, 90, 106, .1); }
.vr-title { padding: 4px 16px 12px; }
.vr-title h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.vr-title p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
.vr-grid { flex: 1; align-content: start; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; padding: 8px 12px 16px; }
.vr-seat { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 2px; border: 0; background: none; color: inherit; cursor: default; }
.voice-room[data-is-host="1"] .vr-seat { cursor: pointer; }
.vr-seat b, .vr-seat small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.vr-seat b { font-size: 13px; }
.vr-seat small { font-size: 11.5px; color: var(--muted); }
.vr-face { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; transition: box-shadow .15s ease; }
.vr-seat.is-speaking .vr-face { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px #8b5cf6; }
.vr-seat.is-speaking small { color: #8b5cf6; font-weight: 700; }
.vr-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--bg); border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; }
.vr-reaction { position: absolute; top: -8px; right: -8px; font-size: 30px; line-height: 1; animation: vr-pop 2.6s ease both; }
@keyframes vr-pop { 0% { transform: scale(.3); opacity: 0; } 12% { transform: scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }
.vr-invite { margin: 0 16px 12px; }
.vr-picker { position: sticky; bottom: 92px; z-index: 4; align-self: flex-end; display: flex; gap: 2px; margin: 0 12px 8px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); }
.vr-picker[hidden] { display: none; }
.vr-picker button { width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; font-size: 24px; cursor: pointer; }
.vr-picker button:hover { background: var(--surface-2); }
.vr-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 14px calc(8px + var(--safe-b, 0px)); border-top: 1px solid var(--border); background: var(--bg); }
.vr-bar [hidden] { display: none; }
.vr-join { flex: 1; }
.vr-round { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.vr-round-ic { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--text); }
.vr-round-ic .on { display: none; }
.vr-round-ic .off, .vr-round-ic .on { line-height: 0; }
.vr-round.is-on { color: #8b5cf6; }
.vr-round.is-on .vr-round-ic { border-color: #8b5cf6; background: #8b5cf6; color: #fff; }
.vr-round.is-on .vr-round-ic .on { display: block; }
.vr-round.is-on .vr-round-ic .off { display: none; }
.vr-note { flex: 1; min-width: 0; margin: 0; font-size: 13px; color: var(--muted); }
.vr-note:empty { display: none; }
.vr-stage-down { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.vr-member-name { margin: 8px 12px; font-weight: 700; }
@media (max-width: 700px) { .vr-bar { bottom: calc(var(--safe-b, 0px) + 64px); } .vr-picker { bottom: 156px; } .voice-room { min-height: calc(100dvh - 64px); } }

/* Voice rooms: minimised, listening while the site runs above */
.vr-dock { position: fixed; z-index: 5; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; width: min(360px, calc(100vw - 16px)); padding: 6px 8px 6px 6px; border-radius: 16px; background: linear-gradient(135deg, #6d4aff, #9b5cff); color: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.vr-dock-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.vr-dock-face .avatar { width: 42px; height: 42px; font-size: 17px; }
.vr-dock-text { min-width: 0; display: flex; flex-direction: column; }
.vr-dock-text b, .vr-dock-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-dock-text b { font-size: 14px; }
.vr-dock-text small { font-size: 12px; opacity: .85; }
.vr-dock-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.vr-dock-btn[hidden] { display: none; }
.vr-dock-btn.is-on { background: #fff; color: #6d4aff; }
@media (max-width: 700px) { .vr-dock { right: 8px; bottom: calc(var(--safe-b, 0px) + 72px); } }

/* First steps after signing up */
.welcome-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--border-strong, var(--border)); border-radius: 999px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.welcome-chip input:checked + span { border-color: var(--violet); background: var(--violet); color: #fff; }
.welcome-chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.welcome-note { min-height: 20px; margin: 0; font-size: 14px; color: var(--red); }
.welcome-actions .btn:disabled { opacity: .45; cursor: default; }
.welcome { box-sizing: border-box; width: min(520px, 100%); min-height: 100dvh; margin: 0 auto; padding: 20px 16px calc(24px + var(--safe-b, 0px)); background: var(--bg); color: var(--text); }
.welcome-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 24px; }
.welcome-steps { flex: 1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.welcome-steps li { flex: 1; max-width: 72px; height: 4px; border-radius: 4px; background: var(--border); }
.welcome-steps li.on { background: var(--violet); }
.welcome-skip { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.welcome h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.welcome-lead { margin: 0 0 22px; color: var(--muted); }
.welcome .welcome-avatar { position: relative; width: fit-content; margin: 0 auto 20px; padding: 0; }
.welcome .welcome-avatar .avatar-xl { margin: 0; }
.welcome-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.welcome textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; resize: none; }
.welcome-people { margin: 0 -16px; }
.welcome-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.welcome-actions.is-sticky { position: sticky; bottom: 0; margin: 12px -16px 0; padding: 10px 16px calc(10px + var(--safe-b, 0px)); background: var(--bg); border-top: 1px solid var(--border); }
.welcome .media-pick.round { top: auto; left: auto; right: 0; bottom: 0; width: 42px; height: 42px; transform: none; }

/* Reposts */
.act-repost:hover, .act-repost.reposted { color: #16a34a; }
.act-repost:hover { background: rgba(22, 163, 74, .1); }
.post-reposted { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-reposted .icon { width: 15px; height: 15px; }
.post-reposted a { color: inherit; }

/* Quoted posts */
.quoted { display: block; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; color: inherit; text-decoration: none; overflow: hidden; }
a.quoted:hover { background: var(--surface-2); }
.quoted-gone { color: var(--muted); font-size: 14px; }
.quoted-head { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; white-space: nowrap; }
.quoted-head .avatar { width: 22px; height: 22px; font-size: 10px; }
.quoted-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.quoted-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; margin-top: 4px; overflow: hidden; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.quoted-media { display: block; margin: 8px -12px -10px; max-height: 260px; overflow: hidden; }
.quoted-media img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.quoted-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.quoted-tag .icon { width: 15px; height: 15px; }
.composer-quote { position: relative; margin: 6px 0; }
.composer-quote[hidden] { display: none; }
.composer-quote-x { position: absolute; top: 14px; right: 6px; z-index: 1; width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
.composer-quote .quoted { pointer-events: none; }

/* Save and share in the post's action row */
.act-save:hover, .act-share:hover { color: var(--violet); background: var(--brand-soft); }
.act-save.saved { color: var(--violet); }
.act-save.saved .icon { fill: var(--violet); }
.post-actions:not(.lb-bar) { justify-content: space-between; }
.post-actions:not(.lb-bar) .act-like, .post-actions .act-more { margin: 0; }

/* On phones the feeds are chosen in the top bar */
@media (max-width: 700px) { .home-tabs { display: none; } }
@media (max-width: 700px) {
  .m-compose { gap: 2px; }
  .m-compose .icon-btn { width: 38px; min-width: 38px; }
  .m-compose-prompt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.vbadge-seal.vbadge-seal-grey { fill: #829aab; stroke: #829aab; }


/* Communities */
.community-heading { padding: 16px 16px 4px; }
.community-card { display: flex; gap: 12px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; }
.community-card:hover { background: var(--surface-2); }
.community-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 14px; background: var(--surface-2); color: var(--muted); }
.community-thumb img { width: 100%; height: 100%; object-fit: cover; }
.community-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.community-card-text > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-lock .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--muted); }
.community-desc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); }
.community-count { font-size: 13px; color: var(--muted); }
.community-cover { height: 170px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--border)); }
.community-cover img { width: 100%; height: 100%; object-fit: cover; }
.community-info { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.community-info h2 { margin: 0 0 4px; font-size: 24px; overflow-wrap: anywhere; }
.community-info p { margin: 8px 0 0; overflow-wrap: anywhere; }
.community-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; }
.community-pill .icon { width: 14px; height: 14px; }
.community-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.community-people { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 14px; text-decoration: none; }
.community-faces { display: flex; }
.community-faces .avatar { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px var(--bg); }
.community-faces .avatar + .avatar { margin-left: -8px; }
.community-note { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.community-status { display: flex; gap: 10px; align-items: flex-start; color: var(--text); background: color-mix(in srgb, #f4212e 10%, transparent); }
.community-status .icon { flex: none; width: 18px; height: 18px; color: #f4212e; margin-top: 1px; }
.community-pill-warn { border-color: #f4212e; color: #f4212e; font-size: 12px; padding: 1px 8px; }
.community-about { margin: 0; padding: 8px 16px; list-style: none; }
.community-about li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.community-about .icon { flex: none; width: 19px; height: 19px; color: var(--muted); }
.community-form { display: flex; flex-direction: column; gap: 14px; }
.community-choice { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.community-choice legend { padding: 0 6px; font-weight: 700; }
.community-choice b { display: block; }
.community-danger { padding-top: 0; }
.community-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.profile-communities { margin: 8px 16px 12px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.post-community { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-community .icon { width: 15px; height: 15px; }
.post-community a { color: inherit; }
.badge-form { display: inline-flex; align-items: center; gap: 6px; }
.badge-form select { height: 34px; max-width: 170px; padding: 0 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); }

/* Post head menu, action row order, pinned label */
.post-head .post-more { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -8px -6px auto; padding: 0; }
.post-detail .who .act-more { flex: none; }
.act-end { display: inline-flex; gap: 2px; }
.post-actions .act-views { cursor: default; }
.post-actions .act-views:hover { background: none; color: inherit; }
.post-pinned { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.post-pinned .icon { width: 15px; height: 15px; fill: currentColor; }
.menu-sheet.is-anchored { position: fixed; inset: auto; margin: 0; width: 300px; transform-origin: top right; }
.menu-sheet.is-anchored::backdrop { background: transparent; }
.menu-sheet.is-anchored .menu-close { display: none; }

/* Live stream drawn as a media card */
.pl-box { margin-top: 8px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pl-box .post-media.pl-player { margin: 0; border: 0; border-radius: 0; }
.pl-corner { top: auto; bottom: 10px; left: 10px; gap: 6px; padding: 0; background: none; z-index: 3; }
.pl-corner b { padding: 2px 8px; border-radius: 6px; background: #f91880; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.pl-corner span { padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 600; }
.pl-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; color: inherit; text-decoration: none; }
.pl-card:hover { background: var(--surface-2); }
.pl-card-who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; }
.pl-card-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-who > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-title { overflow-wrap: anywhere; font-size: 15px; }
.pl-actions .act-share { margin-left: auto; }

/* Bottom sheets stay above a phone keyboard */
@media (max-width: 700px) {
  .menu-sheet { margin-bottom: var(--kb, 0px); max-height: calc(100dvh - var(--kb, 0px) - 12px); transition: margin-bottom .12s ease-out; }
}

/* Profile: round actions, mutual followers, community card */
.btn-round { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 50%; }
.btn-round .icon { width: 20px; height: 20px; }
.profile-mutual { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.profile-mutual:hover span:last-child { text-decoration: underline; }
.profile-communities { margin: 0; padding: 4px 16px 14px; border: 0; border-radius: 0; overflow: visible; }
.profile-communities h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.community-card.is-large { gap: 14px; padding: 6px; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.community-card.is-large + .community-card.is-large { margin-top: 8px; }
.community-card.is-large .community-thumb { width: 116px; height: 116px; border-radius: 12px; }
.community-card.is-large .community-thumb .icon { width: 36px; height: 36px; }
.community-card.is-large .community-card-text { gap: 5px; }
.community-card.is-large .community-card-text > b { font-size: 16px; }
.community-card.is-large .community-desc { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-count { display: flex; align-items: center; gap: 8px; }
.community-count .community-faces .avatar { width: 24px; height: 24px; font-size: 11px; }
@media (max-width: 700px) {
  .community-card.is-large .community-thumb { width: 88px; height: 88px; }
}

/* Explore */
.explore-tabs { overflow-x: auto; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tabs a { flex: 1 0 auto; padding-inline: 16px; white-space: nowrap; }
.explore-block { padding-top: 14px; border-bottom: 1px solid var(--border); }
.explore-block h2 { margin: 0 16px 8px; font-size: 20px; font-weight: 800; }
.explore-more { display: block; padding: 12px 16px; color: var(--violet); font-size: 14.5px; text-decoration: none; }
.explore-more:hover { background: var(--surface-2); }

/* Left menu fits the screen; on short laptop screens the rows tighten instead of scrolling */
.nav-scroll { scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 701px) and (max-height: 760px) {
  .sidenav .logo { margin-bottom: 4px; }
  .sidenav { --nav-pad: 8px; }
  .sidenav .btn-compose { margin-top: 6px; padding-block: 10px; }
}
@media (min-width: 701px) and (max-height: 620px) {
  .sidenav { --nav-pad: 5px; }
  .sidenav .me-card { padding-block: 4px; }
}

/* Image viewer: picture on black, close top left, actions under the picture, post panel on the right */
.lightbox-close { left: 12px; right: auto; background: rgba(0,0,0,.6); }
.lightbox-close:hover { background: rgba(60,60,60,.8); }
.lb-head { display: flex; align-items: flex-start; gap: 8px; }
.lb-head .lb-who { flex: 1; }
.lb-head .act-more { flex: none; }
.lb-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; text-decoration: none; }
.lb-meta b { color: var(--text); }
.lb-side .lb-bar, .lb-side .lb-bar.post-actions { justify-content: space-between; margin: 10px 16px 0; padding: 4px 0; }
.lb-dock-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; padding: 4px 16px calc(4px + var(--safe-b, 0px)); }
.lb-dock-wrap:empty { display: none; }
.lb-dock.post-actions { width: 100%; max-width: 640px; margin: 0; justify-content: space-between; }
.lb-dock .act { color: #fff; }
.lb-dock .act .count { color: inherit; }
.lb-dock .act:hover { background: rgba(255,255,255,.14); color: #fff; }
.lb-dock .act-repost.reposted { color: #22c55e; }
.lb-panel-toggle { display: none; }
@media (min-width: 900px) {
  .lightbox.has-side[open] { grid-template-columns: minmax(0, 1fr) 400px; }
  .lightbox.has-side.panel-closed[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox.panel-closed .lb-side { display: none; }
  .lightbox.has-side .lb-stage { box-sizing: border-box; padding-bottom: 58px; }
  .lightbox.has-side .lb-stage img, .lightbox.has-side .lb-video { max-height: calc(100dvh - 58px); }
  .lightbox.has-side .lb-dock-wrap { right: 400px; }
  .lightbox.has-side.panel-closed .lb-dock-wrap { right: 0; }
  .lightbox.has-side .lb-panel-toggle { position: fixed; top: 12px; right: 412px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
  .lightbox.has-side .lb-panel-toggle:hover { background: rgba(60,60,60,.8); }
  .lightbox.has-side.panel-closed .lb-panel-toggle { right: 12px; }
  .lightbox.has-side.panel-closed .lb-panel-toggle .icon { transform: scaleX(-1); }
}
@media (max-width: 899.98px) {
  .lightbox .lb-side { bottom: calc(50px + var(--safe-b, 0px)); padding-bottom: 0; }
  .lightbox:not(.thread-open) .lb-bar, .lightbox:not(.thread-open) .lb-meta { display: none; }
  .lb-side .lb-head .act-more { color: #fff; }
  .lb-dock-wrap { background: rgba(0,0,0,.72); }
  .lightbox.photo-controls-hidden .lb-dock-wrap { opacity: 0; visibility: hidden; pointer-events: none; }
  .lightbox.thread-open .lb-side { bottom: 0; }
  .lightbox.thread-open .lb-dock-wrap { display: none; }
  .lightbox.thread-open .lb-side .lb-head .act-more { color: var(--text-2); }
  .lightbox.thread-open .lb-head { padding-right: 0; }
}

/* Search: tabs, people rows, who-from filter */
.search-people { border-bottom: 1px solid var(--border); }
.search-bio { display: block; margin-top: 3px; color: var(--text); font-size: 14px; white-space: normal; }
.search-chips { display: none; gap: 8px; padding: 10px 14px 2px; overflow-x: auto; scrollbar-width: none; }
.search-chips a { flex: none; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.search-chips a.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.search-filters { padding-bottom: 8px; }
.filter-group { margin: 6px 16px 4px; font-size: 15px; font-weight: 700; }
.filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; color: var(--text); font-size: 15px; text-decoration: none; }
.filter-opt:hover { background: var(--surface-2); }
.filter-dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--border-strong); border-radius: 50%; color: #fff; }
.filter-dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.filter-opt.on .filter-dot { border-color: var(--brand-fill, #1DA1F2); background: var(--brand-fill, #1DA1F2); }
@media (max-width: 1060px) { .search-chips { display: flex; } }

/* Communities in the side column */
.sidebar .community-card { padding: 8px 16px; }
.sidebar .community-thumb { width: 48px; height: 48px; border-radius: 12px; }

/* Suggestions move into the page once the side column is gone */
.explore-narrow { display: none; }
@media (max-width: 1060px) { .explore-narrow { display: block; } }

/* Post editing */
.post-head .post-edited { flex: none; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.post-edit form { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.post-edit h2 { margin: 0; font-size: 19px; }
.post-edit p { margin: 0; font-size: 14px; }
.post-edit textarea { width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; resize: vertical; }

/* Nothing to show in the room strip for someone who cannot open one */
.voice-rooms:not(:has(.vr-add)):has(.voice-rooms-list:empty) { display: none; }

/* Calmer scale: controls look small, the finger target stays big through an invisible ::before */
.btn { height: 38px; min-height: 0; padding: 0 16px; border-radius: 999px; font-size: 14.5px; }
.btn-sm { position: relative; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.btn-sm::before { content: ""; position: absolute; inset: -6px 0; }
.btn-lg { height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15.5px; }
.btn-round { width: 36px; height: 36px; min-width: 36px; }
.btn-round .icon { width: 18px; height: 18px; }
.btn-compose { border-radius: 999px; }
.btn-follow:not(.following):not(.requested) { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-follow:not(.following):not(.requested):hover { background: color-mix(in srgb, var(--text) 84%, var(--bg)); border-color: transparent; color: var(--bg); }
.search-box input { height: 40px; }

/* Suggestions: name on the left, button on the right, on every width */
.sug { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 16px; }
.sug + .sug { border-top: 0; }
.sug-acts { grid-column: 3; align-items: center; gap: 0; }
.sug-hide { width: 28px; height: 28px; }
.sug-hide .icon { width: 15px; height: 15px; }
.sug-name b { font-size: 15px; }

/* Trends: topic line first, then the tag */
.trend-row { min-height: 0; padding: 9px 16px; }
.trend-row .grow { display: flex; flex-direction: column-reverse; gap: 1px; }
.trend-go { display: none; }
.sidebar .trend-no, .explore-block .trend-no, .explore-tabs ~ .tab-pane .trend-no, .explore-tabs + .trend-list .trend-no { display: none; }
.explore-block .trend-list li + li .trend-row, .explore-tabs + .trend-list li + li .trend-row { border-top: 0; }

.explore-block { padding-top: 10px; }
.explore-block h2 { margin: 0 16px 4px; font-size: 19px; }
.explore-more { padding: 9px 16px 12px; font-size: 14px; }

@media (max-width: 700px) {
  .btn { min-height: 0; }
  .btn-sm { height: 32px; padding: 0 14px; border-radius: 999px; }
  .page-head { min-height: 50px; }
  .page-head .icon-btn, .icon-btn { width: 38px; height: 38px; }
  .page-head .search-box input { height: 38px; }
  .m-avatar-btn, .m-brand, .m-icon-btn { width: 38px; height: 38px; }
  .m-search input { height: 38px; font-size: 15px; }
  .m-tabs a { height: 42px; }
  .tabs a { min-height: 42px; }
  .act { height: 36px; min-width: 36px; padding: 0 8px; }
  .m-compose .icon-btn { width: 36px; height: 36px; }
  .m-compose-prompt { min-height: 36px; }
  .m-compose .avatar-sm { width: 32px; height: 32px; }
  .sug { padding: 10px 14px; }
  .sug-hide { width: 26px; height: 26px; }
  .card-row, .person-row { min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .trend-row { padding-left: 14px; padding-right: 14px; }
}

/* The follow button is as wide as the label it shows, not its longest hidden one */
.btn-follow:not(.requested) .lbl-requested, .btn-follow:not(.requested) .lbl-cancel { display: none; }
.btn-follow:not(.following) .lbl-following, .btn-follow:not(.following) .lbl-unfollow { display: none; }
.btn-follow.following .lbl-follow, .btn-follow.requested .lbl-follow { display: none; }

/* Rows the left menu has no room for; --nav-extra is set by app.js */
.nav-link[hidden] { display: none; }
.nav-scroll .nav-link { padding-block: calc(var(--nav-pad, 12px) + var(--nav-extra, 0px)); }

/* The action row spans the post, ending flush with the media above it */
.post-main > .post-actions:not(.pl-actions) { max-width: none; margin-right: -8px; justify-content: space-between; }

/* Home: the title scrolls away, the feed tabs stay on top */
.page-head-scrolls { position: static; }
.tabs.home-tabs { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }

/* Suspended account */
.suspended-cover { height: 160px; background: var(--surface-3); animation: none; }
.suspended-cover::after { display: none; }
.suspended { display: flow-root; position: relative; padding: 0 24px 40px; }
.suspended-face { position: relative; z-index: 1; display: grid; place-items: center; width: 120px; height: 120px; margin-top: -60px; border: 4px solid var(--bg); border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.suspended-face .icon { width: 44px; height: 44px; flex: none; }
.suspended-handle { margin: 16px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.suspended h2 { margin: 32px 0 12px; font: 800 28px/1.2 var(--font-display); letter-spacing: -.025em; }
.suspended.is-post { padding-top: 40px; }
.suspended.is-post .suspended-face { width: 64px; height: 64px; margin-top: 0; border-width: 1px; }
.suspended.is-post .suspended-face .icon { width: 30px; height: 30px; }
.suspended.is-post h2 { margin-top: 24px; }
.suspended p:not(.suspended-handle) { max-width: 480px; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.suspended-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--violet); font-size: 14px; }
.suspended-link:hover { text-decoration: underline; }
.suspended-admin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 480px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.suspended-admin .btn { min-height: 44px; }
@media (max-width: 700px) {
  .suspended-cover { height: 120px; }
  .suspended { padding: 0 16px 32px; }
  .suspended-face { width: 88px; height: 88px; margin-top: -44px; }
  .suspended-face .icon { width: 36px; height: 36px; }
  .suspended.is-post { padding-top: 32px; }
  .suspended h2 { font-size: 24px; }
}
.post-gone { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 14px; }

/* Date of birth step */
.birth-picker { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.birth-picker label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.birth-picker select { box-sizing: border-box; width: 100%; height: 54px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.birth-picker select:focus { border-color: var(--violet); outline: 2px solid var(--brand-soft); }
.welcome-leave { margin-top: 26px; text-align: center; }
.welcome-leave button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.birth-picker label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.birth-picker + .field-error, .birth-picker ~ .welcome-actions { margin-top: 14px; }
.birth-picker ~ .welcome-actions .btn { flex: 1; height: 46px; }
/* Contact: editorial introduction and a single, clearly labelled form. */
.contact-page{background:var(--bg);color:var(--text)}
.contact-wrap{max-width:1120px;margin:auto;padding:0 32px}
.contact-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;border-bottom:1px solid var(--border)}
.contact-grid{display:grid;grid-template-columns:1fr 1.12fr;gap:72px;padding:64px 0}
.contact-eyebrow{font-size:12px;letter-spacing:.15em;font-weight:700;color:var(--muted)}
.contact-intro h1,.contact-received h1{font-size:clamp(34px,4vw,52px);line-height:1.1;letter-spacing:-.035em;margin:16px 0 24px}
.contact-intro>p{font-size:18px;line-height:1.6;color:var(--text-2)}
.contact-detail{display:flex;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}
.contact-detail>.icon{flex:none;color:var(--violet);margin-top:3px}
.contact-detail h2,.contact-address h2{font-size:17px;margin:0 0 8px}
.contact-detail p,.contact-address p{font-size:15px;line-height:1.65;margin:0 0 12px;color:var(--text-2)}
.contact-address{margin-top:28px;padding-top:24px;border-top:1px solid var(--border)}
.contact-form-panel{min-width:0;border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:28px}
.contact-form-panel h2{font-size:24px;margin:0 0 8px}.contact-form-panel>.muted{margin:0 0 24px;font-size:14px}
.contact-form-panel .field{margin-bottom:18px}.contact-form-panel input,.contact-form-panel select{min-height:48px}.contact-form-panel textarea{resize:vertical;min-height:150px}
.contact-consent{font-size:13px;line-height:1.6;align-items:flex-start;margin:20px 0}.contact-consent input{min-height:20px;width:20px;flex:none}
.contact-submit{width:100%;min-height:48px}.contact-errors{padding:16px;border:1px solid var(--border);border-radius:10px;margin-bottom:24px}.contact-errors a{text-decoration:underline}
.contact-wrap>footer{border-top:1px solid var(--border);padding:24px 0 32px}.contact-wrap .footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding:0}.contact-wrap .footer-links a{display:inline-flex;align-items:center;min-height:44px}
.contact-received{padding-top:80px;max-width:720px}.contact-received p{line-height:1.7;color:var(--text-2)}
.contact-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.contact-admin-message{overflow-wrap:anywhere}.contact-admin-message form{display:inline-block;margin:12px 0}
.suspended .suspended-appeal{margin-top:8px!important}.suspended-appeal .suspended-link{margin:0;display:inline;min-height:0;line-height:2.9;text-decoration:underline}
@media(max-width:700px){.contact-wrap{padding:0 20px}.contact-top{min-height:72px}.contact-grid{grid-template-columns:1fr;gap:28px;padding:32px 0}.contact-intro h1{font-size:36px;margin:12px 0 16px}.contact-intro>p{font-size:16px}.contact-detail{margin-top:20px;padding-top:20px}.contact-form-panel{padding:20px}.contact-wrap>footer .footer-copyright{flex-basis:100%}.contact-received{padding-top:40px}}
@media(max-width:700px){.admin-tabbar{overflow-x:auto;justify-content:flex-start}.admin-tabbar a{flex:0 0 72px;min-width:72px}}
.contact-location{margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}.contact-location>h2{font-size:20px;margin:0 0 24px}.contact-location-row{display:flex;gap:14px;margin:20px 0;overflow-wrap:anywhere}.contact-location-row>.icon{flex:none;color:var(--violet);margin-top:3px}.contact-location-row h3{font-size:14px;color:var(--muted);margin:0 0 6px}.contact-location-row p{margin:0;line-height:1.65}.contact-map{display:block;width:100%;height:280px;border:1px solid var(--border);border-radius:12px;margin-top:24px;background:var(--surface-3)}
@media(max-width:700px){.contact-map{height:240px}}
/* Keep links recognizable inside the continuous suspended-account explanation. */
.suspended>p a{color:var(--violet);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}.suspended>p a:hover{text-decoration-thickness:2px}.suspended>p a:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:2px}
/* Self-reply chains reuse the post layout, with a rail joining avatar centers. */
.post-thread{position:relative}.post-thread .post{animation:none}.post.thread-connect{border-bottom-color:transparent}.post.thread-connect::after{content:"";position:absolute;left:39px;top:64px;bottom:-12px;width:2px;background:var(--border-strong);pointer-events:none;z-index:1}.post-avatar{position:relative;z-index:2}.thread-more{display:flex;align-items:center;min-height:48px;padding:8px 18px 12px 76px;border-bottom:1px solid var(--border);color:var(--violet)}.thread-more:hover{text-decoration:underline}.detail-thread-connect{position:relative;border-bottom-color:transparent}.detail-thread-connect::after{content:"";position:absolute;left:39px;top:auto;height:28px;bottom:-12px;width:2px;background:var(--border-strong);pointer-events:none}.detail-thread-connect .who{position:relative;z-index:2}
@media(max-width:700px){.post.thread-connect::after{left:31px;top:54px;bottom:-12px}.detail-thread-connect::after{left:31px;top:auto}.thread-more{padding-left:60px}}
/* Photo-free accounts use one neutral silhouette at every avatar size. */
.avatar.avatar-default{background:#cfd9de;color:#657985;text-shadow:none;overflow:hidden}.avatar-default>svg{display:block;width:100%;height:100%;flex:none}.avatar-default>svg path{stroke:none}[data-theme="dark"] .avatar.avatar-default{background:#333f48;color:#8b98a5}
/* DM video controls: reserve a full row for time, keep every primary control reachable. */
.msg-media .vp:not(.vp-full) .vp-bar{padding:20px 6px 4px}
.msg-media .vp:not(.vp-full) .vp-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-width:0}
.msg-media .vp:not(.vp-full) .vp-time{grid-column:1/-1;grid-row:1;justify-self:center;font-size:12px;padding:4px 0;line-height:1.3}
.msg-media .vp:not(.vp-full) .vp-play{grid-column:1;grid-row:2}
.msg-media .vp:not(.vp-full) .vp-vol{grid-column:2;grid-row:2;position:relative;min-width:0;justify-self:center}
.msg-media .vp:not(.vp-full) .vp-dl{grid-column:3;grid-row:2}
.msg-media .vp:not(.vp-full) .vp-fs{grid-column:4;grid-row:2}
.msg-media .vp:not(.vp-full) .vp-gap{display:none}
.msg-media .vp:not(.vp-full) .vp-btn{width:44px;height:44px;justify-self:center}
.msg-media .vp:not(.vp-full) .vp-volume{position:absolute;left:0;bottom:40px;margin:0;z-index:4}
.msg-media .vp:not(.vp-full) .vp-vol:hover .vp-volume,.msg-media .vp:not(.vp-full) .vp-vol:focus-within .vp-volume{width:72px;margin:0;opacity:1}
.msg-media video{object-fit:contain}
.msg-media:has(video){container-type:inline-size;width:280px;max-width:100%}.msg:has(.msg-media video),.msg:has(.msg-media video) .bubble{min-width:0}
@container(max-width:187px){.msg-media .vp:not(.vp-full) .vp-row{grid-template-columns:repeat(2,minmax(0,1fr))}.msg-media .vp:not(.vp-full) .vp-dl{grid-column:1;grid-row:3}.msg-media .vp:not(.vp-full) .vp-fs{grid-column:2;grid-row:3}}
.msg-media .vp.vp-full .vp-btn{width:44px;height:44px}
.msg .bubble .vp .vp-btn{color:#fff;text-decoration:none}
/* A live avatar must not stretch to the composer's growing text column. */
.composer>.live-ring{align-self:flex-start;display:inline-flex;height:fit-content}
.profile-live .pl-actions{justify-content:space-between;gap:4px}.profile-live .pl-actions .act{min-width:44px;min-height:44px}.profile-live>.post-main>.pl-stop{min-height:44px}
/* Right-column cards retain their content height; the column itself scrolls. */
.sidebar>*{flex-shrink:0}
/* Desktop right column: one page scroll, fixed search, bottom-stopping content. */
@media(min-width:1061px){
.sidebar{position:relative;top:auto;height:auto;align-self:stretch;overflow:visible;display:block;padding:0 0 24px}
.sidebar-search{position:sticky;top:0;z-index:5;padding:12px 0 16px;background:var(--bg)}
.sidebar-content{position:sticky;top:var(--sidebar-sticky-top,74px);display:flex;flex-direction:column;gap:16px;padding-top:0}
.sidebar-content>*{flex-shrink:0}
}
@media(max-width:700px){.community-composer .composer.inline{display:flex}.community-composer{scroll-margin-top:70px}}
.pl-preview-toggle{position:absolute;right:12px;bottom:12px;z-index:4;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff66;border-radius:50%;background:#0f1419b8;color:#fff;cursor:pointer}.pl-preview-toggle:hover{background:#0f1419e6}.pl-preview-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}.pl-preview-toggle[hidden]{display:none}

/* Community invitations */
.community-invite { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.community-invite-note { margin: 0; padding: 2px 16px 10px; color: var(--muted); font-size: 14px; }
.community-invite-search { position: relative; margin: 0 16px 8px; }
.community-invite-search .icon { position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); }
.community-invite-search input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; }
.btn.is-done { color: var(--muted); cursor: default; }
.btn.is-done .icon { width: 15px; height: 15px; }
.community-invite-all { padding: 2px 16px 10px; }
.community-invite-all .btn { width: 100%; }
.community-invite-all .btn .icon { width: 18px; height: 18px; }
.community-invite-note.is-done { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.community-invite-note.is-done .icon { width: 16px; height: 16px; color: var(--violet); }

/* OBS / RTMP */
.obs-link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.obs-link:hover { background: var(--surface-2); }
.obs-link > .icon { flex: none; width: 22px; height: 22px; color: var(--violet); }
.obs-link > .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.obs-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 14px; }
.obs-link span b { color: var(--text); font-size: 15px; }
.obs-page { padding: 14px 18px 32px; }
.obs-status { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.obs-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--border-strong); }
.obs-live { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; text-decoration: none; }
.obs-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.obs-row { display: flex; gap: 6px; align-items: center; }
.obs-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; }
.obs-title { margin: 26px 0 8px; font-size: 17px; }
.obs-steps { margin: 0; padding-left: 20px; line-height: 1.6; font-size: 14.5px; }
.obs-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.obs-preview { position: relative; aspect-ratio: 16 / 9; margin: 0 0 16px; overflow: hidden; border-radius: 16px; background: #0b0d12; }
.obs-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.obs-waiting { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; color: #c9cfd8; text-align: center; font-size: 14px; }
.obs-waiting[hidden] { display: none; }
.obs-waiting b { color: #fff; font-size: 16px; }
.obs-waiting-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: rgba(255,255,255,.08); }
.obs-waiting-ico .icon { width: 26px; height: 26px; }
.obs-live[hidden] { display: none; }

/* Live player buttons: smaller everywhere; inside the feed only sound and full screen, chat only in full screen */
.lv-btn { width: 38px; height: 38px; }
.lv-btn .icon { width: 19px; height: 19px; }
body.is-embed .lv-btn { width: 32px; height: 32px; border-color: rgba(255,255,255,.12); background: rgba(0,0,0,.45); }
body.is-embed .lv-btn .icon { width: 16px; height: 16px; }
body.is-embed .live-stage:not(:fullscreen) :is(.lv-who, [data-report-live], .lv-top > a.lv-btn, .live-chat-overlay, .lv-chat, .live-chat-switch, .tile-name) { display: none !important; }
body.is-embed .live-stage:not(:fullscreen) .lv-top { justify-content: flex-end; gap: 6px; padding: 8px; background: none; }

/* Live volume slider: desktop only, next to the sound button once sound is available */
.lv-volume { display: none; width: 92px; height: 4px; margin: 0 4px; appearance: none; -webkit-appearance: none; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, #fff var(--fill, 100%), rgba(255,255,255,.35) var(--fill, 100%)); }
.lv-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.lv-volume::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.lv-volume:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .lv-btn[data-sound]:not([hidden]) + .lv-volume { display: block; }
}
body.is-embed .live-stage:not(:fullscreen) .lv-volume { display: none !important; }

/* A live stream inside a repost or on the post page */
.profile-live.live-in-post { margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.live-post-ended { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 14px; }
.live-post-ended .icon { width: 16px; height: 16px; }

/* Explore: the live section shows only while someone is live */
.explore-live:not(:has([data-profile-live])) { display: none; }
.explore-live .live-follow { margin: 0; }
.explore-live { padding-top: 0; }

/* One status message at a time: while the overlay speaks, the tile's own "no picture" note stays hidden */
.live-stage:has([data-live-overlay]:not([hidden])) .tile-novideo { visibility: hidden; }

/* Premium profile accent: the chosen colour tints an empty cover and rings the avatar */
.cover[data-accent]:not(.has-image) { background: linear-gradient(135deg, var(--accent-profile), color-mix(in srgb, var(--accent-profile) 45%, #000)); }
.cover[data-accent]:not(.has-image) .cover-pattern { opacity: .25; }
.profile-top[data-accent] > .avatar { box-shadow: 0 0 0 3px var(--accent-profile); }
.premium-perks { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 14px; }
.premium-perks li { display: flex; gap: 12px; align-items: flex-start; }
.premium-perks .icon { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.premium-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.premium-plan { border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.premium-plan b { font-size: 20px; }
.accent-swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px 16px; }
.accent-swatches button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; background: var(--sw); cursor: pointer; }
.accent-swatches button[aria-pressed="true"] { border-color: var(--text); }

/* @herkes in the mention suggestions */
.avatar.mention-all { display: inline-grid; place-items: center; background: var(--accent); color: #fff; }
.avatar.mention-all .icon { width: 18px; height: 18px; }
