/* ============================================================
   plum — monochrome edition
   ============================================================ */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --panel: #070707;
  --panel-2: #0d0d0d;
  --hover: #111;
  --border: #191919;
  --border-soft: #131313;
  --border-strong: #2b2b2b;
  --text: #f2f2f2;
  --muted: #8c8c8c;
  --muted-2: #5e5e5e;
  --white: #fff;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea { font-family: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #777; outline-offset: 3px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 99px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------------------------------------------------------- boot */
.boot {
  height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
}
.boot-logo {
  font-size: 46px; font-weight: 800; letter-spacing: -.08em;
  animation: bootPulse 2s var(--ease) infinite;
}
@keyframes bootPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #2a2a2a; border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-inline {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #2a2a2a; border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  background: var(--panel-2); color: var(--text);
  transition: background .2s var(--ease), color .2s, border-color .2s,
    transform .2s var(--ease), opacity .2s;
}
.btn:hover { background: #161616; border-color: #2a2a2a; }
.btn:active { transform: scale(.96); }
.btn-primary {
  background: #f4f4f4; color: #050505; border-color: #f4f4f4;
  box-shadow: 0 8px 30px -12px rgba(255, 255, 255, .4);
}
.btn-primary:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.96); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border-color: #262626; color: var(--text); }
.btn-ghost:hover { background: #0d0d0d; border-color: #454545; }
.btn-danger { background: transparent; border-color: #382020; color: #ff9d9d; }
.btn-danger:hover { background: #160c0c; border-color: #5a2b2b; }
.btn-sm { padding: 7px 15px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-following { background: transparent; border-color: #262626; color: var(--muted); }
.btn-following:hover { border-color: #4a4a4a; color: var(--text); background: #0c0c0c; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: #141414; color: #fff; transform: scale(1.04); }
.icon-btn:active { transform: scale(.92); }

.input {
  width: 100%; background: #070707; border: 1px solid #1d1d1d;
  color: var(--text); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 15px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input::placeholder { color: #4f4f4f; }
.input:focus { border-color: #5a5a5a; background: #0a0a0a; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
textarea.input { resize: vertical; min-height: 88px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 7px; letter-spacing: .09em; text-transform: lowercase;
}
.field .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }

/* ---------------------------------------------------------- avatars */
.avatar {
  --av-a: 78%;
  --av-b: 26%;
  position: relative; flex: 0 0 auto;
  width: 43px; height: 43px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .45), transparent 48%),
    linear-gradient(145deg, hsl(0 0% var(--av-a)), hsl(0 0% var(--av-b)));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em;
  overflow: hidden; user-select: none; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease), filter .3s;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 33px; height: 33px; font-size: 12px; }
.avatar.lg { width: 82px; height: 82px; font-size: 28px; }
.avatar.xl { width: 122px; height: 122px; font-size: 42px; }
.post:hover .avatar, .sugg:hover .avatar, .user-row:hover .avatar { filter: brightness(1.08); }

/* ---------------------------------------------------------- verified */
.verified {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -3px; margin-left: 3px;
  width: 18px; height: 18px; flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(56, 166, 240, .35));
}
.verified svg { width: 100%; height: 100%; display: block; }
.verified img.v-ico-img { width: 100%; height: 100%; display: block; }
.verified img.v-ico-img.v-ico-fallback { display: none; }
.verified .v-ico-svg { display: none; }
.verified img.v-ico-img.v-ico-fallback ~ .v-ico-svg { display: block; }
.verified .vglint { opacity: 0; }
.verified:hover .vglint { animation: glint 1s var(--ease); }
@keyframes glint {
  0% { opacity: 0; transform: translate(-3px, 3px) scale(.5); }
  35% { opacity: .95; }
  100% { opacity: 0; transform: translate(4px, -4px) scale(1.4); }
}

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.hr { height: 1px; background: var(--border-soft); border: 0; margin: 0; }

.empty {
  padding: 64px 26px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty .emoji { font-size: 30px; opacity: .8; filter: grayscale(1); }
.empty h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.empty p { margin: 0; font-size: 13.5px; max-width: 320px; line-height: 1.6; }

/* ---------------------------------------------------------- auth */
.auth { position: fixed; inset: 0; overflow: hidden; background: #050505; display: flex; flex-direction: column; }
.auth-bg { position: absolute; inset: 0; }
.auth-contours { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.auth-glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.055), rgba(255,255,255,0) 65%); animation: glowPulse 12s ease-in-out infinite alternate; }
.auth-main { position: relative; z-index: 3; flex: 1; display: flex; align-items: center; justify-content: center; padding: 46px 20px; }
.auth-card {
  position: relative; width: 100%; max-width: 396px;
  background: rgba(11, 11, 11, .84); border: 1px solid #222;
  border-radius: 27px; padding: 30px 26px 24px; overflow: hidden;
  backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 50px 130px rgba(0, 0, 0, .85);
  animation: cardIn .55s var(--ease) both;
}
.auth-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  pointer-events: none;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.975); } to { opacity: 1; transform: none; } }
.auth-kicker { font-size: 10.5px; letter-spacing: .18em; text-transform: lowercase; color: var(--muted-2); margin-bottom: 12px; font-weight: 700; }
.auth-title { font-size: 42px; font-weight: 800; letter-spacing: -.08em; line-height: .95; margin: 0 0 10px; text-transform: lowercase; color: #fff; }
.auth-lead { color: var(--muted); font-size: 13px; margin: 0 0 20px; line-height: 1.6; }
.seg { display: flex; gap: 4px; background: #0d0d0d; border: 1px solid #222; border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.seg button { position: relative; z-index: 1; flex: 1; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; padding: 9px; border-radius: 999px; cursor: pointer; transition: color .25s; font-family: inherit; }
.seg button.active { background: #f2f2f2; color: #050505; }
.seg button:not(.active):hover { color: #cfcfcf; }
.auth-body { margin-bottom: 16px; }
.auth-error { display: none; margin-bottom: 14px; padding: 10px 13px; border-radius: 11px; background: #150d0d; border: 1px solid #3d2020; color: #ffb4b4; font-size: 12.5px; }
.auth-error.show { display: block; animation: shake .3s ease; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12.5px; }
.auth-switch button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 2px 4px; border-bottom: 1px solid #3a3a3a; transition: border-color .2s; font-family: inherit; }
.auth-switch button:hover { border-color: #fff; }
.auth-top { position: absolute; top: 20px; left: 22px; right: 22px; z-index: 5; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.brand-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(12,12,12,.55); backdrop-filter: blur(14px); color: #fff; font-size: 16px; font-weight: 750; letter-spacing: -.04em; transition: border-color .25s, transform .25s var(--ease); }
.brand-pill:hover { border-color: rgba(255,255,255,.4); transform: translateY(-1px); }
.brand-pill .mark { width: 30px; height: 30px; border-radius: 50%; background: #f2f2f2; color: #000; font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; transition: transform .5s var(--ease); }
.brand-pill:hover .mark { transform: rotate(-12deg); }
.auth-top-note { font-size: 11.5px; letter-spacing: .12em; text-transform: lowercase; color: rgba(0,0,0,.42); padding-right: 6px; }
.auth-foot { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: rgba(8,8,8,.8); border: 1px solid #222; color: #8a8a8a; font-size: 11.5px; letter-spacing: .02em; backdrop-filter: blur(12px); white-space: nowrap; }
@keyframes glowPulse { from { opacity: .3; } to { opacity: .7; } }
@keyframes shake {
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}

/* ---------------------------------------------------------- shell */
.shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 640px) 304px;
  justify-content: center;
  min-height: 100vh; max-width: 1236px;
  margin: 0 auto; padding: 0 18px;
}
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px 18px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 27px; font-weight: 800; letter-spacing: -.07em;
  padding: 4px 8px 20px; width: fit-content; color: #fff;
}
.logo .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f2f2f2; color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: -.04em;
  transition: transform .55s var(--ease);
}
.logo:hover .mark { transform: rotate(-14deg) scale(1.05); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 11px 13px; border-radius: 12px;
  color: #9a9a9a; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; border: none; background: transparent; text-align: left;
  transition: color .2s, background .2s, padding-left .3s var(--ease);
}
.nav-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 2px; height: 0; border-radius: 2px; background: #fff;
  transform: translateY(-50%); transition: height .28s var(--ease);
}
.nav-item svg { width: 21px; height: 21px; flex: 0 0 auto; transition: transform .3s var(--ease); }
.nav-item:hover { color: #fff; background: #0b0b0b; padding-left: 16px; }
.nav-item:hover svg { transform: scale(1.06); }
.nav-item.active { color: #fff; font-weight: 700; }
.nav-item.active::before { height: 18px; }
.nav-item .badge-dot {
  position: absolute; left: 27px; top: 7px;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: #fff; color: #000; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #000; animation: badgePop .35s var(--ease);
}
@keyframes badgePop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-post { margin: 16px 0 10px; padding: 12px 20px; font-size: 14.5px; }
.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 8px 9px; border-radius: 13px; cursor: pointer;
  border: none; background: transparent; width: 100%; text-align: left;
  color: var(--text); min-width: 0; transition: background .2s;
}
.side-user:hover { background: #0d0d0d; }
.side-user .u-meta { min-width: 0; flex: 1; overflow: hidden; }
.side-user .u-name {
  font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; display: flex; align-items: center; letter-spacing: -.01em;
}
.side-user .u-handle { color: var(--muted-2); font-size: 12px; }
.side-user > svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted-2); }

.main {
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  min-height: 100vh; min-width: 0;
}
.rightbar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 16px 0 28px 22px; display: flex; flex-direction: column; gap: 14px;
}
.rightbar::-webkit-scrollbar { width: 0; }

.main-head {
  position: sticky; top: 0; z-index: 20; min-height: 58px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 13px; padding: 9px 17px;
}
.main-head h1 {
  font-size: 21px; font-weight: 800; letter-spacing: -.055em;
  margin: 0; line-height: 1.15; text-transform: lowercase;
}
.main-head .sub { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; letter-spacing: .01em; }
.head-back { margin-left: -7px; }

.tabs { display: flex; border-bottom: 1px solid var(--border-soft); }
.tabs button {
  flex: 1; background: none; border: 0; color: var(--muted-2);
  font-size: 13.5px; font-weight: 700; padding: 15px 8px; cursor: pointer;
  position: relative; letter-spacing: -.01em; transition: color .2s;
}
.tabs button:hover { color: #cfcfcf; }
.tabs button.active { color: #fff; }
.tabs button.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 2px; background: #fff; border-radius: 2px;
  animation: tabIn .3s var(--ease);
}
@keyframes tabIn { from { width: 8px; opacity: 0; } to { width: 48px; opacity: 1; } }

/* ---------------------------------------------------------- page motion */
#view > * { display: block; animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.post { animation: postIn .5s var(--ease) both; }
.post:nth-child(2) { animation-delay: .035s; }
.post:nth-child(3) { animation-delay: .07s; }
.post:nth-child(4) { animation-delay: .105s; }
.post:nth-child(5) { animation-delay: .14s; }
.post:nth-child(6) { animation-delay: .175s; }
.post:nth-child(7) { animation-delay: .21s; }
@keyframes postIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- composer */
.composer { display: flex; gap: 12px; padding: 17px 17px 12px; border-bottom: 1px solid var(--border-soft); }
.composer-main { flex: 1; min-width: 0; }
.composer textarea {
  width: 100%; background: transparent; border: 0; outline: none;
  color: var(--text); font-size: 18px; line-height: 1.5; resize: none;
  padding: 8px 0 6px; min-height: 54px; max-height: 300px; letter-spacing: -.015em;
}
.composer textarea::placeholder { color: #4a4a4a; }
.composer .reply-ctx { color: var(--muted-2); font-size: 12.5px; padding-top: 3px; }
.composer .reply-ctx b { color: #bdbdbd; font-weight: 600; }
.composer-tools { display: flex; align-items: center; gap: 3px; margin-top: 8px; }
.tool-btn {
  width: 33px; height: 33px; border-radius: 50%; border: 0; background: transparent;
  color: #9a9a9a; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.tool-btn svg { width: 19px; height: 19px; }
.tool-btn:hover { background: #141414; color: #fff; transform: rotate(-4deg); }
.composer-tools .spacer { flex: 1; }
.char-ring {
  width: 33px; height: 33px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.char-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.char-ring span { font-size: 10px; color: var(--muted-2); font-weight: 700; }
.char-ring.warn span { color: #d9d9d9; }
.char-ring.danger span { color: #ff8a8a; }
.composer-preview {
  position: relative; margin-top: 10px; border-radius: 15px; overflow: hidden;
  border: 1px solid var(--border); max-height: 360px; animation: viewIn .35s var(--ease);
}
.composer-preview img { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.composer-preview button {
  position: absolute; top: 8px; right: 8px; width: 29px; height: 29px; border-radius: 50%;
  background: rgba(0, 0, 0, .7); border: 1px solid #333; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.composer-preview button svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- posts */
.post {
  display: flex; gap: 12px; padding: 16px 17px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer; position: relative;
  transition: background .2s;
}
.post:hover { background: #050505; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.8px; }
.post-name {
  font-weight: 750; color: #fff; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%;
}
.post-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-handle, .post-time { color: var(--muted-2); font-size: 13px; white-space: nowrap; }
.post-time:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-dot { color: #3a3a3a; }
.post-menu { margin-left: auto; width: 28px; height: 28px; opacity: 0; transition: opacity .2s, background .2s; }
.post-menu svg { width: 14px; height: 14px; }
.post:hover .post-menu { opacity: 1; }
.post-text {
  margin-top: 2px; font-size: 14.8px; line-height: 1.58; letter-spacing: -.005em;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
}
.post-text a { color: #fff; text-decoration: underline; text-decoration-color: #444; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.post-text a:hover { text-decoration-color: #fff; }
.post-image {
  margin-top: 11px; border-radius: 15px; overflow: hidden;
  border: 1px solid #1b1b1b; background: #060606;
}
.post-image img { display: block; width: 100%; max-height: 520px; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-image img { transform: scale(1.008); }
.post-reply-ctx { color: var(--muted-2); font-size: 12.5px; margin-bottom: 5px; }
.post-reply-ctx b { color: #bdbdbd; font-weight: 600; }

.post-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; max-width: 400px; }
.paction {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: #6c6c6c; cursor: pointer;
  padding: 5px 8px; margin-left: -8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: color .18s, background .18s, transform .18s var(--ease);
}
.paction svg { width: 17px; height: 17px; fill: none; transition: transform .25s var(--ease); }
.paction:hover { color: #fff; background: #111; }
.paction:hover svg { transform: scale(1.1); }
.paction.liked { color: #fff; }
.paction.liked svg { fill: currentColor; }
.paction.reposted { color: #fff; }
.paction.bookmarked { color: #fff; }
.paction.bookmarked svg { fill: currentColor; }
.paction.like-pop svg { animation: likePop .4s var(--ease); }
@keyframes likePop {
  0% { transform: scale(1); } 35% { transform: scale(1.4) rotate(-8deg); } 70% { transform: scale(.92); } 100% { transform: scale(1); }
}
.paction.spin svg { animation: spinOnce .45s var(--ease); }
@keyframes spinOnce { to { transform: rotate(360deg); } }

.post.is-reply::before {
  content: ""; position: absolute; left: 37px; top: 59px; bottom: 0;
  width: 1px; background: #171717;
}
.feed-note {
  padding: 11px 17px; color: var(--muted-2); font-size: 11.5px;
  letter-spacing: .02em; border-bottom: 1px solid var(--border-soft);
}
.load-more { padding: 20px; text-align: center; }

/* ---------------------------------------------------------- right column */
.search-box { position: relative; }
.search-box svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #555; width: 16px; height: 16px;
}
.search-box input {
  width: 100%; padding: 11px 14px 11px 39px; border-radius: 999px;
  background: #060606; border: 1px solid #191919; color: var(--text);
  outline: none; font-size: 13px; transition: border-color .2s, background .2s;
}
.search-box input::placeholder { color: #555; }
.search-box input:focus { border-color: #3f3f3f; background: #0a0a0a; }

.card {
  background: #060606; border: 1px solid #171717;
  border-radius: var(--radius); overflow: hidden;
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 9px; }
.card-head h2 { font-size: 15px; margin: 0; letter-spacing: -.035em; font-weight: 750; text-transform: lowercase; }
.card-head .link {
  color: var(--muted-2); font-size: 11.5px; cursor: pointer;
  background: none; border: 0; transition: color .2s;
}
.card-head .link:hover { color: #fff; }
.trend {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  color: inherit; padding: 10px 16px; cursor: pointer; transition: background .2s;
}
.trend:hover { background: #0b0b0b; }
.trend .t-meta { font-size: 11px; color: var(--muted-2); letter-spacing: .01em; }
.trend .t-tag { font-weight: 700; font-size: 14px; margin-top: 1px; letter-spacing: -.01em; }
.sugg { display: flex; align-items: center; gap: 10px; padding: 9px 16px; transition: background .2s; }
.sugg:hover { background: #0b0b0b; }
.sugg .u-meta { flex: 1; min-width: 0; }
.sugg .u-name {
  font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em;
}
.sugg .u-handle { font-size: 12px; color: var(--muted-2); }
.sugg .btn { padding: 6px 13px; font-size: 11.5px; }
.right-foot { color: #444; font-size: 11px; line-height: 1.8; padding: 2px 6px; }
.right-foot a:hover { color: var(--muted); }
.quiet-card { padding: 18px; }
.quiet-card .quiet-mark { font-size: 24px; font-weight: 800; letter-spacing: -.07em; margin-bottom: 8px; }
.quiet-card p { color: var(--muted-2); font-size: 12.5px; line-height: 1.65; margin: 0 0 14px; }

/* ---------------------------------------------------------- notifications */
.notif {
  display: flex; gap: 12px; padding: 15px 17px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer; position: relative; transition: background .2s;
  animation: postIn .45s var(--ease) both;
}
.notif:hover { background: #060606; }
.notif.unread { background: #070707; }
.notif.unread::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: #fff; transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}
.notif-icon {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
  border: 1px solid #1e1e1e; color: #d5d5d5; background: #0a0a0a;
}
.notif-icon svg { width: 14px; height: 14px; }
.notif-body { flex: 1; min-width: 0; font-size: 13.5px; letter-spacing: -.005em; }
.notif-body .n-actor { font-weight: 750; }
.notif-body .n-text { color: var(--muted); }
.notif-body .n-post {
  margin-top: 5px; color: #a8a8a8; font-size: 12.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-time { color: var(--muted-2); font-size: 11px; margin-top: 3px; }

/* ---------------------------------------------------------- messages */
.msg-layout { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 59px); }
.conv-list { display: flex; flex-direction: column; }
.dm-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 59px); }
.conv-pane { border-right: 1px solid var(--border-soft); min-width: 0; }
.dm-grid .main-head { padding: 8px 12px; }
.dm-grid .chat { border: 0; top: 0; height: 100vh; }
.conv {
  display: flex; gap: 11px; padding: 14px 15px;
  border-bottom: 1px solid var(--border-soft); cursor: pointer;
  transition: background .2s; align-items: center;
}
.conv:hover { background: #060606; }
.conv.active { background: #0a0a0a; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; align-items: center; gap: 5px; }
.conv-name {
  font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em;
}
.conv-time { margin-left: auto; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.conv-last {
  color: var(--muted-2); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}
.conv-unread {
  min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: #fff; color: #000; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.chat { display: flex; flex-direction: column; height: calc(100vh - 59px); position: sticky; top: 59px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); }
.chat-head .u-name { font-weight: 750; font-size: 14px; display: flex; align-items: center; gap: 2px; letter-spacing: -.015em; }
.chat-head .u-handle { font-size: 11.5px; color: var(--muted-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.msg-day {
  align-self: center; font-size: 10.5px; color: var(--muted-2);
  border: 1px solid #1a1a1a; background: #070707;
  padding: 4px 11px; border-radius: 999px; margin: 10px 0; letter-spacing: .02em;
}
.bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 15px; font-size: 13.8px; line-height: 1.48;
  background: #0c0c0c; border: 1px solid #1a1a1a;
  align-self: flex-start; border-bottom-left-radius: 5px;
  white-space: pre-wrap; word-wrap: break-word; margin-top: 4px;
  animation: msgIn .25s var(--ease);
  letter-spacing: -.005em;
}
.bubble.mine {
  align-self: flex-end; background: #f2f2f2; color: #050505; border: 0;
  border-bottom-left-radius: 15px; border-bottom-right-radius: 5px; font-weight: 600;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(5px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble .b-time { display: block; font-size: 9.5px; opacity: .45; margin-top: 3px; text-align: right; }
.chat-compose {
  display: flex; align-items: flex-end; gap: 8px; padding: 11px 14px;
  border-top: 1px solid var(--border-soft); background: #030303;
}
.chat-compose textarea {
  flex: 1; resize: none; background: #0a0a0a; border: 1px solid #1e1e1e;
  border-radius: 18px; padding: 11px 15px; color: var(--text); outline: none;
  font-size: 13.8px; max-height: 120px; min-height: 42px; line-height: 1.4;
  transition: border-color .2s;
}
.chat-compose textarea:focus { border-color: #4a4a4a; }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; flex: 0 0 auto;
  background: #f2f2f2; color: #000; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s var(--ease), opacity .2s;
}
.chat-send svg { width: 17px; height: 17px; }
.chat-send:hover { transform: scale(1.06); }
.chat-send:disabled { opacity: .25; cursor: default; transform: none; }
.chat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted-2); padding: 30px; text-align: center;
}
.chat-empty .big { font-size: 34px; filter: grayscale(1); opacity: .7; }
.msg-toolbar { padding: 10px 14px; display: flex; gap: 8px; border-bottom: 1px solid var(--border-soft); }

/* ---------------------------------------------------------- profile */
.profile-cover {
  height: 170px; position: relative; border-bottom: 1px solid var(--border-soft);
  background:
    repeating-radial-gradient(ellipse 120% 150% at 15% 130%, transparent 0 26px, rgba(255, 255, 255, .045) 26px 27px),
    radial-gradient(700px 300px at 80% -20%, #1a1a1a, transparent 65%),
    linear-gradient(160deg, #101010, #030303 70%);
  animation: coverDrift 20s linear infinite alternate;
}
.profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-preview { height: 170px; border-radius: 20px; overflow: hidden; border: 1px solid #222; background: #0d0d0d; position: relative; margin-bottom: 12px; }
.banner-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes coverDrift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 14px -8px, 0 0, 0 0; } }
.profile-head { padding: 0 18px 16px; position: relative; }
.profile-avatar-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -52px; }
.profile-avatar-row .avatar { border: 4px solid #000; box-shadow: 0 14px 40px rgba(0, 0, 0, .8); }
.profile-actions { display: flex; gap: 8px; padding-bottom: 8px; }
.profile-name {
  font-size: 23px; font-weight: 800; letter-spacing: -.055em;
  display: flex; align-items: center; gap: 5px; margin-top: 10px;
}
.profile-handle { color: var(--muted-2); font-size: 13.5px; margin-top: 1px; }
.profile-bio { margin-top: 12px; font-size: 14px; white-space: pre-wrap; line-height: 1.55; color: #dcdcdc; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: var(--muted-2); font-size: 12px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile-meta svg { width: 14px; height: 14px; }
.profile-stats { display: flex; gap: 18px; margin-top: 13px; font-size: 13px; color: var(--muted); }
.profile-stats b { color: #fff; font-weight: 750; }
.profile-stats span { cursor: pointer; transition: color .2s; }
.profile-stats span[data-act]:hover { color: #fff; }
.verified-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 13px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: #070707; border: 1px solid #1d1d1d;
  color: #b9d9f5; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
.verified-note .verified { width: 21px; height: 21px; margin: 0; }

/* ---------------------------------------------------------- search */
.search-hero { padding: 17px; border-bottom: 1px solid var(--border-soft); }
.search-hero .input { font-size: 15px; border-radius: 999px; padding: 13px 18px; }
.section-title {
  padding: 17px; font-size: 10.5px; letter-spacing: .16em;
  text-transform: lowercase; color: var(--muted-2); font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
}
.user-row {
  display: flex; gap: 11px; padding: 12px 17px; cursor: pointer; align-items: center;
  border-bottom: 1px solid var(--border-soft); transition: background .2s;
  animation: postIn .4s var(--ease) both;
}
.user-row:hover { background: #060606; }
.user-row .u-meta { flex: 1; min-width: 0; }
.user-row .u-name { font-weight: 700; font-size: 13.8px; display: flex; align-items: center; gap: 2px; letter-spacing: -.01em; }
.user-row .u-handle { font-size: 12px; color: var(--muted-2); }
.user-row .u-bio {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------------------------------------------------- settings */
.settings-wrap { padding: 18px 18px 60px; }
.settings-wrap h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.04em; }
.settings-wrap .lead { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.settings-card {
  background: #060606; border: 1px solid #171717; border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.settings-card h3 { font-size: 14.5px; margin: 0 0 14px; letter-spacing: -.03em; text-transform: lowercase; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-edit .btn { padding: 8px 14px; font-size: 12.5px; }
.verify-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(140deg, rgba(56, 166, 240, .09), #060606 55%);
  border-color: #1b2a35;
}
.verify-card .vicon {
  width: 42px; height: 42px; border-radius: 50%; background: #07121a;
  border: 1px solid #1b3446; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.verify-card .vicon .verified { width: 25px; height: 25px; margin: 0; }
.verify-card h3 { margin: 0 0 4px; }
.verify-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------------------------------------------------------- modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 420px; max-height: 78vh;
  background: #0a0a0a; border: 1px solid #222; border-radius: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft); background: #0a0a0a; flex: 0 0 auto;
}
.modal-head h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; font-weight: 750; text-transform: lowercase; }
.modal-body { overflow-y: auto; }
.modal-body .user-row:last-child { border-bottom: 0; }

/* ---------------------------------------------------------- toasts */
.toasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  background: #f2f2f2; border: 1px solid #f2f2f2; color: #050505;
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .7);
  animation: toastIn .3s var(--ease); max-width: 90vw; text-align: center;
}
.toast.err { background: #140b0b; border-color: #4a2222; color: #ffb4b4; }
.toast.ok { background: #f2f2f2; color: #050505; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- mobile nav */
.mobile-bar { display: none; }
.mobile-top { display: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1150px) {
  .shell { grid-template-columns: 82px minmax(0, 620px) 300px; }
  .logo span.wm { display: none; }
  .logo { padding-left: 14px; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item span.lbl { display: none; }
  .nav-item:hover { padding-left: 12px; }
  .nav-post { width: 46px; height: 46px; padding: 0; margin: 14px auto 8px; font-size: 0; }
  .nav-post::after { content: "+"; font-size: 23px; font-weight: 400; }
  .side-user { justify-content: center; }
  .side-user .u-meta, .side-user > svg { display: none; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); padding: 0; max-width: none; }
  .rightbar { display: none; }
  .main { border-right: 0; }
  .dm-grid { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-grid.has-chat .conv-pane { display: none; }
  .dm-grid .chat { height: calc(100vh - 116px); top: 58px; }
}
@media (max-width: 700px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .shell { display: block; }
  .sidebar { display: none; }
  .main { border-left: 0; min-height: calc(100vh - 58px); }
  .mobile-top {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(18px); border-bottom: 1px solid var(--border-soft);
  }
  .mobile-top .logo { padding: 0; font-size: 23px; }
  .mobile-top .logo .mark { width: 28px; height: 28px; border-radius: 50%; font-size: 16px; }
  .mobile-top .spacer { flex: 1; }
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(4, 4, 4, .94); backdrop-filter: blur(20px);
    border-top: 1px solid #191919; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-bar button {
    flex: 1; background: none; border: 0; color: #6a6a6a;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 9px; padding: 5px 0; position: relative; cursor: pointer;
    transition: color .2s;
  }
  .mobile-bar button svg { width: 21px; height: 21px; }
  .mobile-bar button.active { color: #fff; }
  .mobile-bar .badge-dot {
    position: absolute; top: 1px; left: 50%; margin-left: 4px;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: #fff; color: #000; font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; border: 2px solid #000;
  }
  .composer textarea { font-size: 16.5px; }
  .post { padding: 13px 14px; }
  .profile-cover { height: 128px; }
  .profile-avatar-row { margin-top: -42px; }
  .profile-avatar-row .avatar { width: 86px; height: 86px; font-size: 31px; }
  .post-name { max-width: 40%; }
  .post-menu { opacity: 1; }
  .auth-card { padding: 26px 20px 22px; }
  .chat { height: calc(100vh - 116px); top: 58px; }
  .msg-layout { min-height: auto; }
  .notif { padding: 13px 12px; }
  .settings-wrap { padding: 14px 14px 80px; }
  .toasts { bottom: 78px; }
}

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

/* ============================================================
   live feed / hashtags / profile extras / dm v2
   ============================================================ */

/* live feed pill */
.new-posts { position: sticky; top: 0; z-index: 24; display: flex; justify-content: center; padding: 9px 0 0; pointer-events: none; }
.new-posts[hidden] { display: none; }
.new-posts button {
  pointer-events: auto; background: #fff; color: #000; border: 0; border-radius: 999px;
  padding: 8px 16px; font-weight: 800; font-size: 12px; cursor: pointer; letter-spacing: -.01em;
  box-shadow: 0 12px 30px rgba(0,0,0,.7); animation: postIn .3s var(--ease);
}

/* repost / pin / counts */
.repost-ctx { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 11.5px; font-weight: 600; margin-bottom: 4px; }
.repost-ctx svg { width: 13px; height: 13px; }
.repost-ctx b { color: #bdbdbd; font-weight: 700; }
.post-menus { display: flex; gap: 2px; margin-left: auto; opacity: 0; transition: opacity .2s; }
.post:hover .post-menus { opacity: 1; }
.post-menus .post-menu { margin-left: 0; opacity: 1; width: 26px; height: 26px; }
.post-menu svg { width: 14px; height: 14px; }
.pcount { cursor: pointer; }
.pcount:empty { pointer-events: none; }
.pcount:hover { text-decoration: underline; text-underline-offset: 2px; }
.pin-label {
  display: flex; align-items: center; gap: 5px; padding: 12px 17px 0;
  font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: .03em; text-transform: lowercase;
}
.pin-label svg { width: 12px; height: 12px; }

/* tabs with many items */
.tabs-scroll { overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll button { flex: 0 0 auto; padding: 14px 13px; white-space: nowrap; }

/* media grid */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.media-cell { padding: 0; border: 0; background: #0a0a0a; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.media-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.media-cell:hover img { transform: scale(1.04); filter: brightness(1.12); }

/* hashtag page */
.tag-title { text-transform: none; letter-spacing: -.045em; }
.tag-row { align-items: center; padding-top: 12px; padding-bottom: 12px; }
.tag-ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px;
  background: #0c0c0c; border: 1px solid #1e1e1e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff;
}

/* dm rows */
.msg-row { display: flex; flex-direction: column; align-self: flex-start; max-width: 82%; position: relative; margin-top: 4px; }
.msg-row.mine { align-self: flex-end; align-items: flex-end; }
.msg-row .bubble { max-width: 100%; align-self: flex-start; margin-top: 0; }
.msg-row.mine .bubble { align-self: flex-end; }
.msg-row.flash .bubble { animation: flashBubble 1.2s var(--ease); }
@keyframes flashBubble {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  30% { box-shadow: 0 0 0 3px rgba(255,255,255,.22); }
}
.bubble.deleted { opacity: .6; font-style: italic; }
.bubble-deleted { font-size: 12px; opacity: .7; }
.bubble-text { display: inline; }
.bubble-img {
  display: block; max-width: 100%; max-height: 320px; border-radius: 11px;
  margin-bottom: 6px; object-fit: cover; cursor: zoom-in;
}
.bubble-reply {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.07); border: 0; border-left: 2px solid #6d6d6d;
  border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; color: inherit;
  font-family: inherit; font-size: 11.5px; line-height: 1.35; opacity: .9;
}
.bubble.mine .bubble-reply { background: rgba(0,0,0,.07); border-left-color: #8a8a8a; }
.bubble-reply b { display: block; font-size: 10.5px; font-weight: 800; margin-bottom: 1px; }
.bubble-reply span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .72; }
.bubble-tools { display: flex; gap: 1px; opacity: 0; transition: opacity .16s; margin-top: 2px; }
.msg-row:hover .bubble-tools { opacity: 1; }
.bubble-tools button {
  background: none; border: 0; color: #6a6a6a; cursor: pointer;
  font-size: 11px; padding: 2px 5px; border-radius: 6px; line-height: 1;
  transition: color .15s, background .15s;
}
.bubble-tools button:hover { color: #fff; background: #151515; }
.bubble-tools svg { width: 12px; height: 12px; }
.reactions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.reactions[hidden] { display: none; }
.reaction {
  display: inline-flex; align-items: center; gap: 3px;
  background: #0d0d0d; border: 1px solid #232323; color: #ddd;
  border-radius: 999px; padding: 2px 8px; font-size: 11px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.reaction:hover { border-color: #4a4a4a; }
.reaction.mine { border-color: #fff; background: #171717; color: #fff; }
.reaction span { font-variant-numeric: tabular-nums; font-weight: 700; }
.tick { font-size: 9px; opacity: .5; letter-spacing: -.06em; }
.tick.read { opacity: 1; font-weight: 800; }
#chat-status.typing { color: #fff; }
#chat-status.typing::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* dm composer extras */
.chat-reply, .chat-attach {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-top: 1px solid var(--border-soft); background: #050505;
}
.chat-reply[hidden], .chat-attach[hidden], .reaction-bar[hidden] { display: none; }
.chat-reply-body {
  flex: 1; min-width: 0; font-size: 12px; color: var(--muted);
  border-left: 2px solid #555; padding-left: 9px; line-height: 1.4;
}
.chat-reply-body b { color: #fff; font-weight: 800; margin-right: 3px; }
.chat-reply-body span { display: inline-block; max-width: 100%; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.chat-attach img { height: 52px; max-width: 120px; object-fit: cover; border-radius: 8px; border: 1px solid #222; }
.chat-file {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #777; cursor: pointer; transition: color .2s, background .2s;
}
.chat-file:hover { color: #fff; background: #111; }
.chat-file svg { width: 18px; height: 18px; }
.reaction-bar {
  display: flex; gap: 2px; padding: 7px 12px; border-top: 1px solid var(--border-soft);
  background: #050505; overflow-x: auto; animation: msgIn .2s var(--ease);
}
.reaction-bar button {
  background: none; border: 0; font-size: 19px; line-height: 1;
  cursor: pointer; padding: 5px 7px; border-radius: 10px;
  transition: transform .15s var(--ease), background .15s;
}
.reaction-bar button:hover { background: #141414; transform: scale(1.16); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.93);
  display: flex; align-items: center; justify-content: center; padding: 34px;
  animation: viewIn .18s var(--ease);
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 120px #000; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid #2a2a2a; background: #0b0b0b; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .bubble-tools { opacity: .45; }
  .msg-row { max-width: 88%; }
  .post-menus { opacity: .55; }
}
