/* ==========================================================================
   Socialteria Social — design system + app layout
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f3f9;
  --surface: #ffffff;
  --surface-2: #f6f5fb;
  --surface-3: #eeecf6;
  --border: #e7e4f0;
  --border-strong: #d6d2e3;
  --text: #15121f;
  --text-2: #57526b;
  --text-3: #8e89a3;
  --accent: #7c3aed;
  --accent-ink: #6d28d9;
  --pink: #db2777;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --green: #059669;
  --red: #e11d48;
  --grad: linear-gradient(135deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.10), rgba(219,39,119,.08) 55%, rgba(245,158,11,.08));
  --ring: conic-gradient(from 210deg, #f59e0b, #db2777, #7c3aed, #06b6d4, #f59e0b);
  --focus: 0 0 0 3px rgba(124,58,237,.35);
  --shadow-1: 0 1px 2px rgba(21,18,31,.05);
  --shadow-2: 0 1px 2px rgba(21,18,31,.04), 0 10px 30px -14px rgba(21,18,31,.18);
  --shadow-3: 0 24px 60px -20px rgba(55,20,110,.35), 0 2px 8px rgba(21,18,31,.06);
  --glass: rgba(255,255,255,.78);
  --overlay: rgba(14,10,24,.55);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sidebar: 252px;
  --rail: 340px;
  --main: 620px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07070b;
  --surface: #101017;
  --surface-2: #16161f;
  --surface-3: #1d1c28;
  --border: #22212e;
  --border-strong: #312f40;
  --text: #f3f2f8;
  --text-2: #b0abc4;
  --text-3: #75708a;
  --accent: #a78bfa;
  --accent-ink: #c4b5fd;
  --pink: #ff2e74;
  --cyan: #2de2e6;
  --green: #34d399;
  --red: #ff4d7d;
  --grad: linear-gradient(135deg, #2de2e6 0%, #8b5cf6 48%, #ff2e74 100%);
  --grad-soft: linear-gradient(135deg, rgba(45,226,230,.09), rgba(139,92,246,.10) 50%, rgba(255,46,116,.09));
  --ring: conic-gradient(from 210deg, #2de2e6, #8b5cf6, #ff2e74, #2de2e6);
  --focus: 0 0 0 3px rgba(45,226,230,.35);
  --shadow-1: 0 0 0 1px rgba(255,255,255,.02);
  --shadow-2: 0 0 0 1px rgba(255,255,255,.02), 0 14px 40px -18px rgba(0,0,0,.9);
  --shadow-3: 0 0 0 1px rgba(139,92,246,.22), 0 30px 70px -20px rgba(0,0,0,.9);
  --glass: rgba(10,10,15,.78);
  --overlay: rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: rgba(124,58,237,.25); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 15px; height: 15px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.hide { display: none !important; }

/* theme toggle icon swap */
.i-sun, .i-sun-label { display: none; }
[data-theme="dark"] .i-sun, [data-theme="dark"] .i-sun-label { display: inline; }
[data-theme="dark"] .i-moon, [data-theme="dark"] .i-moon-label { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s, border-color .2s;
  background: var(--surface-3); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); background-size: 150% 150%; color: #fff; box-shadow: 0 8px 20px -10px rgba(124,58,237,.8); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 10px 26px -10px rgba(219,39,119,.8); color: #fff; }
[data-theme="dark"] .btn-primary { box-shadow: 0 0 24px -8px rgba(255,46,116,.6); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--grad-soft); color: var(--accent); border-color: transparent; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { --h: 32px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { --h: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.icon-btn:active { transform: scale(.92); }
.btn.is-loading::after, .spinner {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.spinner { display: inline-block; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 15px var(--font); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.form-error { background: rgba(225,29,72,.1); color: var(--red); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.form-ok { background: rgba(5,150,105,.1); color: var(--green); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- Cards / avatars / badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.pad { padding: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-xs { width: 24px; height: 24px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-ring { padding: 2.5px; background: var(--ring); border-radius: 50%; display: inline-flex; flex: none; }
.avatar-ring .avatar { border: 2.5px solid var(--surface); }
.badge-verified { width: 16px; height: 16px; flex: none; vertical-align: -2px; margin-left: 3px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.soon { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--grad-soft); color: var(--accent); }
.name { font-weight: 700; color: var(--text); display: inline-flex; align-items: center; min-width: 0; }
.name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name:hover { text-decoration: none; }
.name:hover > span { text-decoration: underline; }
.handle { color: var(--text-3); font-size: 13.5px; }

/* ---------- Layout ---------- */
.topbar, .tabbar { display: none; }
.shell {
  display: grid; grid-template-columns: var(--sidebar) minmax(0, var(--main)) var(--rail);
  gap: 28px; justify-content: center; max-width: 1320px; margin: 0 auto; padding: 0 20px;
}
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 20px 0 18px; display: flex; flex-direction: column;
  overflow-y: auto; scrollbar-width: none;
}
.admin-bar .sidebar, .admin-bar .rail { top: 32px; height: calc(100vh - 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 800 20px/1 var(--display); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand .logo-full { height: 32px; width: auto; }
.brand .logo-mark, .brand .logo-on-dark { display: none; }
[data-theme="dark"] .brand .logo-on-dark { display: block; }
[data-theme="dark"] .brand .logo-on-light { display: none; }
.brand-lg { padding: 8px 12px 24px; }
.brand-lg .logo-full { height: 36px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 15px; width: 100%; padding: 11px 12px; border-radius: 14px;
  color: var(--text); font-size: 15.5px; font-weight: 550; border: 0; background: transparent; cursor: pointer; text-align: left;
  transition: background .15s;
}
.nav-item:hover { background: var(--surface-3); text-decoration: none; }
.nav-item .ico { transition: transform .2s var(--ease); }
.nav-item:hover .ico { transform: scale(1.08); }
.nav-item.is-current { font-weight: 750; }
.nav-item.is-current .ico { stroke-width: 2.5; }
.nav-item.is-current::before { content: ""; position: absolute; left: 0; width: 4px; height: 24px; border-radius: 4px; background: var(--grad); }
.nav li { position: relative; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.nav-item.is-current .nav-avatar, .tabbar a.is-current .nav-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.nav-cta { margin-top: 18px; height: 48px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar-foot .nav-item { font-size: 14.5px; color: var(--text-2); }

.main { padding: 20px 0 60px; min-width: 0; }
.main:focus { outline: none; }
.rail { position: sticky; top: 0; height: 100vh; padding: 20px 0; overflow-y: auto; scrollbar-width: none; }
.rail-foot { padding: 8px 6px; font-size: 12.5px; color: var(--text-3); }
.rail-foot ul { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rail-foot a { color: var(--text-3); }

/* Full-bleed pages (logged-out landing, auth) */
.st-full .sidebar, .st-full .rail { display: none; }
.st-full .shell { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }

/* Collapsed sidebar */
@media (max-width: 1240px) {
  .shell { grid-template-columns: var(--sidebar) minmax(0, var(--main)); }
  .rail { display: none; }
}
@media (max-width: 1020px) {
  :root { --sidebar: 76px; }
  .shell { gap: 20px; }
  .sidebar { align-items: center; }
  .nav-label, .soon, .nav-cta span { display: none !important; }
  .brand-lg .logo-full { display: none !important; }
  .brand-lg .logo-mark { display: block; width: 40px; height: 40px; }
  .brand-lg { padding: 6px 0 22px; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item.is-current::before { left: -8px; }
  .nav-cta { width: 48px; padding: 0; }
  .sidebar-foot { width: 100%; }
}
@media (max-width: 720px) {
  .shell { display: block; padding: 0; }
  .sidebar { display: none; }
  .main { padding: 0 0 calc(84px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30;
    height: 56px; padding: 0 12px 0 16px; background: var(--glass);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
  }
  .admin-bar .topbar { top: 46px; }
  .topbar .brand .logo-full { height: 28px; }
  .topbar-actions { display: flex; align-items: center; gap: 4px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--border);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-3); font-size: 10.5px; font-weight: 600; background: none; border: 0; cursor: pointer; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .is-current { color: var(--text); }
  .tabbar .is-current .ico { stroke-width: 2.5; }
  .tab-create span, .tab-create-pill {
    width: 50px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: var(--grad); box-shadow: -3px 0 0 var(--cyan), 3px 0 0 var(--pink);
  }
  .tab-create .ico, .tab-create-pill .ico { stroke-width: 2.6; }
  .card { border-radius: 0; border-left: 0; border-right: 0; }
  .st-full .main { padding-bottom: 90px; }
}

/* ---------- Skeletons & empty states ---------- */
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { padding: 18px; margin-bottom: 14px; }
.skel-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.skel-avatar { width: 44px; height: 44px; border-radius: 50%; }
.skel-line { height: 12px; margin-bottom: 10px; }
.skel-box { height: 220px; border-radius: 14px; margin-top: 6px; }
.w30 { width: 30%; } .w45 { width: 45%; } .w60 { width: 60%; } .w80 { width: 80%; }
.empty { text-align: center; padding: 48px 24px; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--grad-soft); color: var(--accent); margin-bottom: 14px; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty h3 { font-size: 19px; margin-bottom: 6px; }
.empty p { color: var(--text-2); max-width: 360px; margin: 0 auto 16px; }

/* ---------- Page header & tabs ---------- */
.page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.page-head h1 { font-size: 22px; margin: 0; }
.sticky-head { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.admin-bar .sticky-head { top: 32px; }
@media (max-width: 720px) { .sticky-head { top: 56px; } .admin-bar .sticky-head { top: 102px; } .page-head { padding: 12px 16px 0; } }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); margin-bottom: 14px; }
.tab { flex: 1; height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--text-2); font-weight: 650; cursor: pointer; transition: background .2s, color .2s; }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); }
.tabs-line { display: flex; border-bottom: 1px solid var(--border); }
.tabs-line .tab { border-radius: 0; height: 48px; position: relative; background: none; box-shadow: none; }
.tabs-line .tab.is-active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 3px; border-radius: 3px; background: var(--grad); }
@media (max-width: 720px) { .tabs { margin: 10px 12px 12px; } }

/* ---------- Composer box ---------- */
.composer-box { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 14px; }
.composer-fake { flex: 1; height: 44px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--text-3); text-align: left; padding: 0 18px; cursor: pointer; font-size: 15px; transition: background .15s; }
.composer-fake:hover { background: var(--surface-3); }
.composer-quick { display: flex; gap: 2px; }
.composer-quick .icon-btn { color: var(--accent); }
.verify-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 14px; background: var(--grad-soft); border-color: transparent; }
.verify-banner .ico { color: var(--accent); }

/* ---------- Post card ---------- */
.post { margin-bottom: 14px; animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.post-repost-note { display: flex; align-items: center; gap: 8px; padding: 12px 18px 0; font-size: 13px; font-weight: 600; color: var(--text-3); }
.post-repost-note .ico { width: 16px; height: 16px; }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 0 18px; }
.post-meta { flex: 1; min-width: 0; line-height: 1.3; }
.post-meta .sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.post-meta .sub a { color: var(--text-3); }
.post-meta .sub .ico { width: 13px; height: 13px; }
.post-body { padding: 10px 18px 0; }
.post-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 15.5px; margin: 0 0 12px; }
.post-text.is-big { font-size: 22px; line-height: 1.35; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.post-text a { font-weight: 550; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.see-more { border: 0; background: none; color: var(--text-2); font-weight: 650; padding: 0; cursor: pointer; margin: -6px 0 12px; }
.edited { font-size: 12px; color: var(--text-3); }

/* media */
.media { margin: 0 0 12px; border-radius: 16px; overflow: hidden; background: var(--surface-3); position: relative; }
.post-body > .media { margin-left: -18px; margin-right: -18px; border-radius: 0; }
@media (min-width: 721px) { .post-body > .media { margin-left: 0; margin-right: 0; border-radius: 16px; } }
.media img, .media video { width: 100%; max-height: 640px; object-fit: cover; }
.media video { background: #000; object-fit: contain; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; max-height: 620px; }
.carousel img { height: 100%; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s; }
.media:hover .car-btn { opacity: 1; }
.car-btn[hidden] { display: none; }
.car-prev { left: 10px; } .car-next { right: 10px; }
.car-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.car-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .2s; }
.car-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.car-count { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; }
.media-single img { cursor: zoom-in; }

/* link card */
.linkcard { display: block; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin: 0 0 12px; color: var(--text); transition: background .15s; }
.linkcard:hover { text-decoration: none; background: var(--surface-2); }
.linkcard img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--surface-3); }
.linkcard-body { padding: 12px 14px; }
.linkcard-host { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; }
.linkcard-title { font-weight: 700; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkcard-desc { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* poll */
.poll { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 600; cursor: pointer; overflow: hidden; text-align: left; width: 100%; transition: border-color .15s; }
.poll-opt:hover { border-color: var(--accent); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--grad-soft); border-radius: 10px; transition: width .6s var(--ease); }
.poll-opt.is-mine .bar { background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(219,39,119,.18)); }
.poll-opt > span { position: relative; display: flex; align-items: center; gap: 6px; }
.poll.is-done .poll-opt { cursor: default; border-color: transparent; background: var(--surface-2); }
.poll-foot { font-size: 13px; color: var(--text-3); }

/* quoted / repost embed */
.embed { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; cursor: pointer; transition: background .15s; }
.embed:hover { background: var(--surface-2); }
.embed .post-head { padding: 0; }
.embed .post-body { padding: 8px 0 0; }
.embed .post-body > .media { margin-left: 0; margin-right: 0; border-radius: 12px; }
.embed .media img { max-height: 360px; }
.embed-gone { color: var(--text-3); font-size: 14px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 14px; margin-bottom: 12px; }

/* stats + actions */
.post-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 10px; font-size: 13.5px; color: var(--text-3); }
.post-stats button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: inherit; }
.post-stats button:hover { text-decoration: underline; }
.react-stack { display: inline-flex; align-items: center; gap: 6px; }
.react-stack .emojis { display: inline-flex; }
.react-stack .emojis span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); margin-left: -4px; }
.react-stack .emojis span:first-child { margin-left: 0; }
.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); padding: 4px 8px; }
.act {
  display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 10px; border: 0;
  background: none; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; position: relative;
  transition: background .15s, color .15s;
}
.act:hover { background: var(--surface-2); color: var(--text); }
.act .ico { width: 20px; height: 20px; }
.act .emoji { font-size: 18px; line-height: 1; }
.act.is-on { color: var(--accent); }
.act.r-love, .act.r-like { color: var(--pink); }
.act.r-like { color: #2563eb; }
[data-theme="dark"] .act.r-like { color: #60a5fa; }
.act.r-haha, .act.r-wow, .act.r-sad { color: var(--amber); }
.act.r-fire { color: #f97316; }
.act.is-saved { color: var(--accent); }
.act.is-saved .ico, .act.is-reposted .ico { stroke-width: 2.4; }
.act.is-saved .ico { fill: currentColor; }
.act.is-reposted { color: var(--green); }
.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
@media (max-width: 480px) { .act .lbl { display: none; } }

/* reaction picker */
.react-picker {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 25; display: flex; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-3);
  animation: pickerIn .2s var(--ease);
}
@keyframes pickerIn { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.react-picker button { width: 42px; height: 42px; border: 0; background: none; font-size: 27px; border-radius: 50%; cursor: pointer; transition: transform .15s var(--ease); position: relative; }
.react-picker button:hover, .react-picker button:focus-visible { transform: scale(1.3) translateY(-4px); }
.react-picker button::after { content: attr(data-label); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; background: #111; color: #fff; padding: 2px 7px; border-radius: 999px; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .15s; }
.react-picker button:hover::after { opacity: 1; }

/* comments */
.comments { border-top: 1px solid var(--border); padding: 12px 18px 14px; }
.c-form { display: flex; gap: 10px; align-items: flex-start; }
.c-input-wrap { flex: 1; display: flex; align-items: flex-end; gap: 6px; background: var(--surface-2); border-radius: 20px; padding: 4px 4px 4px 14px; }
.c-input { flex: 1; border: 0; background: transparent; resize: none; font: 14.5px/1.4 var(--font); color: var(--text); padding: 7px 0; max-height: 140px; min-height: 34px; }
.c-input:focus { outline: none; }
.c-send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.c-send[disabled] { opacity: .35; cursor: default; }
.c-send .ico { width: 17px; height: 17px; }
.c-list { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.c-item { display: flex; gap: 10px; animation: rise .3s var(--ease) both; }
.c-main { flex: 1; min-width: 0; }
.c-bubble { display: inline-block; max-width: 100%; background: var(--surface-2); border-radius: 18px; padding: 8px 14px; }
.c-bubble .name { font-size: 13.5px; }
.c-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.c-meta { display: flex; align-items: center; gap: 14px; padding: 4px 12px 0; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.c-meta button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.c-meta button:hover { color: var(--text); }
.c-meta .is-on { color: var(--pink); }
.c-likes { display: inline-flex; align-items: center; gap: 3px; }
.c-replies { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.c-more { border: 0; background: none; color: var(--text-2); font-weight: 650; font-size: 13.5px; cursor: pointer; padding: 0; text-align: left; }
.c-more:hover { text-decoration: underline; }
.c-reply-form { margin-top: 8px; }

/* ---------- Modal / sheet / menu ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-3); animation: modalIn .28s var(--ease); overflow: hidden; }
.modal-sm { max-width: 420px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; margin: 0; font-size: 18px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 24px 24px 0 0; max-height: 92vh; animation: sheetIn .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
}
.menu { position: fixed; z-index: 120; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-3); animation: pickerIn .16s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-weight: 550; font-size: 14.5px; cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu .danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: fade .2s; }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox .icon-btn { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.12); }

/* toasts */
#st-toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (max-width: 720px) { #st-toasts { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-3); animation: toastIn .3s var(--ease); }
.toast.is-error { background: var(--red); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.95); } }

/* ---------- Composer modal ---------- */
.cmp-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cmp-vis { height: 30px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 650; padding: 0 10px; cursor: pointer; }
.cmp-text { width: 100%; border: 0; resize: none; background: transparent; color: var(--text); font: 18px/1.45 var(--font); min-height: 120px; padding: 4px 0; }
.cmp-text:focus { outline: none; box-shadow: none; }
.cmp-text::placeholder { color: var(--text-3); }
.cmp-count { font-size: 12.5px; color: var(--text-3); margin-left: auto; }
.cmp-count.warn { color: var(--red); }
.cmp-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.cmp-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.cmp-thumb img, .cmp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumb .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cmp-thumb .x .ico { width: 15px; height: 15px; }
.cmp-thumb .prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--grad); transition: width .2s; }
.cmp-thumb.is-uploading::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.cmp-tools { display: flex; align-items: center; gap: 4px; }
.cmp-tools .icon-btn { color: var(--accent); }
.cmp-tools .icon-btn.is-on { background: var(--grad-soft); }
.cmp-poll { border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin: 10px 0; }
.cmp-poll .input { height: 42px; margin-bottom: 8px; }
.cmp-poll-foot { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.cmp-poll-foot .select { width: auto; height: 36px; font-size: 13.5px; }
.cmp-link { position: relative; }
.cmp-link .x { position: absolute; top: 8px; right: 8px; z-index: 1; }

/* ---------- Profile ---------- */
.profile { overflow: hidden; margin-bottom: 14px; }
.cover { height: 210px; background: var(--grad); position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 20px; margin-top: -54px; position: relative; z-index: 1; }
.profile-avatar { display: inline-flex; padding: 4px; background: var(--ring); border-radius: 50%; }
.profile-avatar .avatar { width: 116px; height: 116px; border: 4px solid var(--surface); }
.profile-actions { display: flex; gap: 8px; padding-bottom: 6px; }
.profile-info { padding: 12px 20px 18px; }
.profile-info h1 { font-size: 25px; margin: 0; display: flex; align-items: center; gap: 4px; }
.profile-info .badge-verified { width: 22px; height: 22px; }
.profile-bio { white-space: pre-wrap; margin: 10px 0; }
.profile-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; font-size: 14px; }
.profile-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.profile-links .ico { width: 15px; height: 15px; }
.profile-stats { display: flex; gap: 22px; font-size: 14.5px; color: var(--text-2); }
.profile-stats b { color: var(--text); font-family: var(--display); font-size: 16px; margin-right: 4px; }
.profile-stats button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.profile-stats button:hover { text-decoration: underline; }
.follows-you { margin-left: 6px; }
.private-gate { text-align: center; padding: 40px 20px; }
.grid-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.grid-media a { position: relative; aspect-ratio: 1; background: var(--surface-3); overflow: hidden; }
.grid-media img, .grid-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.grid-media a:hover img { transform: scale(1.04); }
.grid-media .tag { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
@media (max-width: 720px) {
  .cover { height: 150px; }
  .profile-avatar .avatar { width: 92px; height: 92px; }
  .profile-top { margin-top: -44px; padding: 0 16px; }
  .profile-info { padding: 10px 16px 16px; }
}

/* ---------- People lists / rail ---------- */
.rail-card { padding: 16px; margin-bottom: 16px; }
.rail-card h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person-info { flex: 1; min-width: 0; line-height: 1.3; }
.person-info .handle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.promo { padding: 18px; margin-bottom: 16px; background: var(--grad-soft); border-color: transparent; }
.promo h3 { font-size: 16px; }
.promo p { font-size: 14px; color: var(--text-2); margin-bottom: 0; }

/* ---------- Auth / landing ---------- */
.auth { min-height: calc(100vh - 40px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.auth-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.04em; margin: 18px 0 16px; }
.auth-hero p { font-size: 18px; color: var(--text-2); max-width: 480px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.auth-points .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.auth-points .ico { width: 19px; height: 19px; }
.auth-card { padding: 30px; border-radius: 28px; box-shadow: var(--shadow-3); }
.auth-card h2 { font-size: 26px; margin-bottom: 4px; }
.auth-card .lead { color: var(--text-2); margin-bottom: 22px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--text-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gbtn-wrap { display: flex; justify-content: center; min-height: 44px; }
.pw-wrap { position: relative; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 4px; }
.hero-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-orbs i:nth-child(1) { width: 480px; height: 480px; background: #7c3aed; left: -120px; top: -80px; opacity: .25; }
.hero-orbs i:nth-child(2) { width: 420px; height: 420px; background: #db2777; right: -100px; top: 20%; opacity: .2; }
.hero-orbs i:nth-child(3) { width: 380px; height: 380px; background: #f59e0b; left: 30%; bottom: -160px; opacity: .18; }
[data-theme="dark"] .hero-orbs i:nth-child(1) { background: #2de2e6; opacity: .16; }
[data-theme="dark"] .hero-orbs i:nth-child(2) { background: #ff2e74; opacity: .18; }
[data-theme="dark"] .hero-orbs i:nth-child(3) { background: #8b5cf6; opacity: .2; }
.mock-stack { position: relative; height: 230px; margin-top: 30px; max-width: 460px; }
.mock { position: absolute; padding: 14px; width: 270px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-3); }
.mock .row { gap: 8px; font-size: 13px; font-weight: 700; }
.mock .ph { height: 100px; border-radius: 12px; margin-top: 10px; background: var(--grad); opacity: .85; }
.mock-1 { left: 0; top: 0; transform: rotate(-4deg); }
.mock-2 { left: 170px; top: 40px; transform: rotate(5deg); width: 230px; }
.mock-2 .ph { background: linear-gradient(135deg, #06b6d4, #7c3aed); height: 80px; }
.landing-feed { margin-top: 10px; }
.landing-feed h2 { font-size: 22px; margin: 0 0 14px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; min-height: 0; }
  .auth-hero { text-align: center; }
  .auth-hero p { margin-left: auto; margin-right: auto; }
  .auth-points, .mock-stack { display: none; }
  .auth-card { padding: 22px; border-radius: 24px; border: 1px solid var(--border) !important; }
  .landing-feed { padding: 0 0 20px; }
  .landing-feed h2 { padding: 0 16px; }
}

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; }
.settings-nav { padding: 8px; position: sticky; top: 20px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.settings-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.settings-nav a.is-current { background: var(--grad-soft); color: var(--text); }
.settings-nav .badge { margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.settings-panel { padding: 22px; }
.settings-panel h2 { font-size: 20px; margin-bottom: 4px; }
.settings-panel > p { color: var(--text-2); margin-bottom: 20px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.set-row:first-of-type { border-top: 0; }
.set-row .grow b { display: block; }
.set-row .grow span { color: var(--text-2); font-size: 13.5px; }
.img-edit { position: relative; }
.img-edit .cover { height: 150px; border-radius: 16px; overflow: hidden; }
.img-edit .avatar-edit { position: absolute; left: 18px; bottom: -40px; }
.img-edit .avatar-edit .avatar { width: 92px; height: 92px; border: 4px solid var(--surface); }
.img-edit .cam { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.img-edit .cam .ico { width: 18px; height: 18px; }
.img-edit .cam-cover { right: 12px; top: 12px; }
.img-edit .cam-avatar { right: 0; bottom: 0; }
.link-row { display: flex; gap: 8px; margin-bottom: 8px; }
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .settings-nav a { white-space: nowrap; }
}

/* ---------- Coming soon ---------- */
.soon-card { text-align: center; padding: 56px 24px; overflow: hidden; position: relative; }
.soon-card .empty-ico { width: 84px; height: 84px; border-radius: 26px; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -14px rgba(219,39,119,.7); }
.soon-card .empty-ico .ico { width: 40px; height: 40px; }
.soon-card h2 { font-size: 26px; }
.soon-card p { color: var(--text-2); max-width: 420px; margin: 0 auto 18px; }

/* ---------- Static pages ---------- */
.prose { line-height: 1.7; }
.prose h1 { font-size: 30px; }
.prose img { border-radius: 12px; height: auto; }
.st-static .main { padding-top: 24px; }

/* ---------- Misc ---------- */
.load-more { display: flex; justify-content: center; padding: 18px; }
.end-note { text-align: center; color: var(--text-3); font-size: 13.5px; padding: 18px; }
.new-posts { position: sticky; top: 12px; z-index: 15; display: flex; justify-content: center; margin-bottom: -40px; pointer-events: none; }
.new-posts .btn { pointer-events: auto; }

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

/* ---------- App (PWA) ---------- */
.is-standalone .install-only { display: none !important; }
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
  body { overscroll-behavior-y: none; }
}
.app-banner { display: none; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; }
@media (max-width: 720px) { .app-banner { display: flex; } }
.app-banner img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.app-banner b { display: block; font-size: 14.5px; }
.app-banner span { font-size: 13px; color: var(--text-2); }
.app-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 34px; overflow: hidden; position: relative; margin-bottom: 14px; }
.app-hero::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); pointer-events: none; }
.app-hero > * { position: relative; }
.app-hero h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; margin: 14px 0 10px; }
.app-hero p { color: var(--text-2); font-size: 16px; }
.app-icon-xl { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 18px 40px -16px rgba(42,27,74,.8); }
.app-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-installed { display: none; }
.is-standalone .app-installed { display: inline-flex; }
.phone-mock { justify-self: center; width: 210px; height: 420px; border-radius: 36px; padding: 10px; background: #0b0b12; box-shadow: var(--shadow-3), inset 0 0 0 2px #2a2a38; position: relative; }
.phone-mock::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.ps-top { height: 54px; display: flex; align-items: flex-end; padding: 0 12px 8px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ps-top img { height: 18px; }
.ps-card { margin: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); padding: 8px; }
.ps-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ps-av { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.ps-l { height: 6px; border-radius: 4px; background: var(--surface-3); flex: 1; }
.ps-img { height: 92px; border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #db2777 60%, #f59e0b); }
.ps-img.b { background: linear-gradient(135deg, #06b6d4, #7c3aed); height: 70px; }
.ps-tabs { margin-top: auto; height: 40px; border-top: 1px solid var(--border); background: var(--surface); display: flex; justify-content: space-around; align-items: center; }
.ps-tabs i { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-3); }
.ps-tabs i.c { width: 26px; height: 18px; background: var(--grad); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card { padding: 20px; }
.step-card h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 10px; }
.step-card h3 .ico { color: var(--accent); }
.step-card ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.step-card li + li { margin-top: 6px; }
.step-card.is-you { box-shadow: 0 0 0 2px var(--accent), var(--shadow-2); }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.feature-row div { padding: 14px; font-size: 13.5px; color: var(--text-2); }
.feature-row b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; padding: 24px 18px; text-align: center; }
  .app-hero .app-cta { justify-content: center; }
  .phone-mock { display: none; }
  .steps, .feature-row { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr 1fr; padding: 0 12px; }
  .steps { padding: 0 12px; }
}
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); vertical-align: -5px; }
.ios-share .ico { width: 15px; height: 15px; }

/* ---------- Badges ---------- */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 800 11px/20px var(--font); text-align: center; }
.nav-badge[hidden] { display: none !important; }
.has-badge { position: relative; }
.has-badge .nav-badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface); }
@media (max-width: 1020px) {
  .nav .nav-badge { position: absolute; top: 6px; right: 10px; min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; padding: 0 4px; display: block !important; box-shadow: 0 0 0 2px var(--bg); }
  .nav .nav-badge[hidden] { display: none !important; }
}
.tab-badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; line-height: 18px; margin-left: 4px; }
.tab-badge[hidden] { display: none; }

/* ---------- Search & chips ---------- */
.search-wrap { position: relative; margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); color: var(--text-3); }
.search-field:focus-within { border-color: var(--accent); box-shadow: var(--focus); }
.search-input { flex: 1; border: 0; background: transparent; color: var(--text); font: 15px var(--font); height: 100%; min-width: 0; }
.search-input:focus { outline: none; box-shadow: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-3); padding: 6px; max-height: 70vh; overflow-y: auto; }
.sp-head { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 4px; }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.sp-item:hover { background: var(--surface-2); text-decoration: none; }
.sp-item > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sp-hash { width: 32px; height: 32px; border-radius: 50%; display: grid !important; place-items: center; background: var(--grad-soft); color: var(--accent); font-weight: 800; }
.sp-all { border-top: 1px solid var(--border); margin-top: 6px; border-radius: 0 0 12px 12px; color: var(--accent); font-weight: 650; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.chips-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 650; font-size: 14px; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip small { color: var(--text-3); font-weight: 600; }
.rail-card .chips-row { flex-wrap: wrap; overflow: visible; padding: 0; }
@media (max-width: 720px) { .search-wrap, .chips-row { margin-left: 12px; margin-right: 12px; } }

/* ---------- Explore grid ---------- */
.explore-grid-card { overflow: hidden; }
.grid-media a { color: #fff; }
.grid-media .tile-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(0,0,0,.42); font-weight: 750; font-size: 14px; opacity: 0; transition: opacity .2s; }
.grid-media .tile-hover span { display: inline-flex; align-items: center; gap: 5px; }
.grid-media .tile-hover .ico { fill: #fff; stroke: #fff; }
.grid-media a:hover .tile-hover { opacity: 1; }
.tile-text { display: grid !important; place-items: center; padding: 14px; background: var(--grad) !important; font-weight: 700; font-size: 14px; text-align: center; }
.explore-grid { grid-template-columns: repeat(3, 1fr); }
.explore-grid > .list > a:nth-child(10n + 3) { grid-row: span 2; aspect-ratio: auto; }
.hashtag-head { display: flex; gap: 16px; align-items: center; padding: 20px; margin-bottom: 14px; }
.hashtag-head h1 { margin: 0; font-size: 24px; }
.hash-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font: 800 34px var(--display); color: #fff; background: var(--grad); flex: none; }

/* ---------- Reels ---------- */
.st-reels .main { padding-bottom: 0; }
.reels { --reel-h: calc(100vh - 40px); }
.admin-bar .reels { --reel-h: calc(100vh - 72px); }
.reels-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 12px; }
.reels-top h1 { font-size: 22px; margin: 0; }
.reels-feed { height: calc(var(--reel-h) - 50px); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 22px; }
.reels-feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: calc(var(--reel-h) - 50px); width: min(100%, calc((var(--reel-h) - 50px) * 9 / 16)); margin: 0 auto 10px; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; background: #000; border-radius: 22px; overflow: hidden; }
.reel-video { height: 100%; width: 100%; max-width: calc((var(--reel-h) - 50px) * 9 / 16); object-fit: cover; background: #000; }
.reel-tap { position: absolute; inset: 0 70px 120px 0; cursor: pointer; }
.reel.is-paused .reel-tap::after { content: "▶"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 54px; color: rgba(255,255,255,.85); text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.reel-heart { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(0); font-size: 96px; pointer-events: none; opacity: 0; }
.reel-heart.pop-heart { animation: heartPop .8s var(--ease); }
@keyframes heartPop { 15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(.95); } 70% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
.reel-mute { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); }
.reel-info { position: absolute; left: 0; right: 70px; bottom: 0; padding: 60px 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.reel-info a, .reel-info button { pointer-events: auto; }
.reel-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.reel-author .name, .reel-info a { color: #fff; }
.reel-follow-btn { --h: 28px; background: transparent; border: 1.5px solid #fff; color: #fff; padding: 0 12px; }
.reel-cap { margin: 0 0 6px; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-cap a { color: #fff; font-weight: 700; }
.reel-views { font-size: 12.5px; opacity: .8; }
.reel-rail { position: absolute; right: 8px; bottom: 18px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.reel-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: #fff; cursor: pointer; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.reel-rail .rr-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); font-size: 22px; transition: transform .15s; }
.reel-rail button:active .rr-ico { transform: scale(.88); }
.reel-rail .ico { width: 24px; height: 24px; stroke: #fff; }
.reel-rail .is-on .rr-ico { background: rgba(255,46,116,.35); }
.reel-rail [data-r="save"].is-on .ico { fill: #fff; }
.reel-empty { padding: 20px; }
.comments-drawer { border-top: 0; padding: 0; }
@media (max-width: 720px) {
  .reels { --reel-h: calc(100dvh - 56px - 62px - env(safe-area-inset-bottom)); }
  .admin-bar .reels { --reel-h: calc(100dvh - 102px - 62px); }
  .reels-top { position: absolute; z-index: 5; left: 0; right: 0; padding: 12px 14px; color: #fff; pointer-events: none; }
  .reels-top > * { pointer-events: auto; }
  .reels-top h1 { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
  .reels { position: relative; }
  .reels-feed, .reel { height: var(--reel-h); border-radius: 0; margin: 0; width: 100%; }
  .reel-mute { top: 64px; }
  .reel-video { max-width: none; }
}

/* ---------- Notifications ---------- */
.notes { overflow: hidden; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .2s; }
.note:last-child { border-bottom: 0; }
.note.is-unread { background: var(--grad-soft); }
.note-av { position: relative; flex: none; }
.note-ic { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.note-ic .ico { width: 12px; height: 12px; stroke-width: 2.5; }
.note-body { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); font-size: 14.5px; line-height: 1.35; }
.note-body:hover { text-decoration: none; }
.note-body .name { display: inline; }
.note-ex { color: var(--text-2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-body time { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.note-side { flex: none; }
.note-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

/* ---------- Messages ---------- */
body.st-wide .shell { grid-template-columns: var(--sidebar) minmax(0, 1fr); max-width: 1320px; }
body.st-wide .rail { display: none; }
.dm { display: grid; grid-template-columns: 340px 1fr; gap: 14px; height: calc(100vh - 40px); }
.admin-bar .dm { height: calc(100vh - 72px); }
.dm-list { display: flex; flex-direction: column; overflow: hidden; }
.dm-list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 18px; }
.dm-list-head h1 { font-size: 22px; margin: 0; }
.dm-tabs { margin: 0 12px 8px; }
.dm-tabs .tab { display: flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.dm-items { overflow-y: auto; flex: 1; padding: 0 6px 8px; }
.conv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); }
.conv:hover { background: var(--surface-2); text-decoration: none; }
.conv.is-current { background: var(--grad-soft); }
.conv-av { position: relative; width: 52px; height: 52px; flex: none; }
.conv-av .avatar { width: 52px; height: 52px; }
.conv-av.group .avatar { position: absolute; width: 38px; height: 38px; border: 2px solid var(--surface); }
.conv-av.group .avatar:first-child { top: 0; left: 0; }
.conv-av.group .avatar:last-child { right: 0; bottom: 0; }
.conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.conv-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.conv-last { color: var(--text-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.is-unread b, .conv.is-unread .conv-last { color: var(--text); font-weight: 750; }
.conv-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--text-3); }
.conv-meta .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dm-thread { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.dm-empty { margin: auto; text-align: center; padding: 30px; }
.dm-empty p { margin: 6px 0 16px; }
.th-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.th-head .conv-av, .th-head .conv-av .avatar { width: 40px; height: 40px; }
.th-head .conv-av.group .avatar { width: 30px; height: 30px; }
.th-sub { font-size: 12.5px; }
.th-back { display: none; }
.th-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; }
.th-msgs { display: flex; flex-direction: column; gap: 3px; margin-top: auto; }
.th-day { align-self: center; font-size: 12px; font-weight: 650; color: var(--text-3); margin: 14px 0 8px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { margin-bottom: 2px; }
.msg-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-name { font-size: 12px; color: var(--text-3); padding: 0 12px; margin-top: 6px; }
.bubble { padding: 9px 14px; border-radius: 20px; background: var(--surface-3); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.msg.mine .bubble { background: var(--grad); color: #fff; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.bubble.unsent { background: transparent !important; border: 1px solid var(--border-strong); color: var(--text-3) !important; font-style: italic; }
.msg.pending { opacity: .6; }
.msg.failed .bubble { background: var(--red); }
.msg-media { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.msg-media img { max-width: 240px; max-height: 300px; border-radius: 16px; object-fit: cover; cursor: zoom-in; }
.th-seen { font-size: 11.5px; color: var(--text-3); margin: 0 6px 0 0; }
.th-typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 20px; background: var(--surface-3); align-self: flex-start; margin-top: 6px; }
.th-typing[hidden] { display: none; }
.th-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: dots 1.2s infinite; }
.th-typing span:nth-child(2) { animation-delay: .15s; }
.th-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.th-hello { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 0; }
.th-hello .conv-av, .th-hello .conv-av .avatar { width: 84px; height: 84px; }
.th-request { padding: 18px; border-top: 1px solid var(--border); text-align: center; }
.th-request p { color: var(--text-2); }
.th-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.th-compose[hidden] { display: none; }
.th-compose .icon-btn { color: var(--accent); }
.th-input-wrap { flex: 1; background: var(--surface-2); border-radius: 22px; padding: 2px 14px; }
.th-input-wrap textarea { width: 100%; border: 0; background: transparent; resize: none; font: 15px/1.4 var(--font); color: var(--text); padding: 9px 0; max-height: 140px; }
.th-input-wrap textarea:focus { outline: none; }
.to-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0 10px; border-bottom: 1px solid var(--border); }
.to-chips { display: contents; }
.to-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--grad-soft); color: var(--accent); font-weight: 650; font-size: 13.5px; }
.to-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; }
.to-input { flex: 1; min-width: 120px; border: 0; background: transparent; color: var(--text); font: 15px var(--font); padding: 6px 0; }
.to-input:focus { outline: none; }
.to-group { padding: 10px 0 0; }
.to-results { max-height: 50vh; overflow-y: auto; padding-top: 6px; }
.to-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; color: var(--text); }
.to-item:hover { background: var(--surface-2); }
.to-item .grow { display: flex; flex-direction: column; line-height: 1.25; }
.to-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; }
.to-check.on { background: var(--grad); border-color: transparent; color: #fff; }
@media (max-width: 900px) {
  .dm { grid-template-columns: 1fr; height: calc(100dvh - 56px - 62px - env(safe-area-inset-bottom)); gap: 0; }
  .admin-bar .dm { height: calc(100dvh - 102px - 62px); }
  .dm .dm-thread { display: none; }
  .dm.has-thread .dm-list { display: none; }
  .dm.has-thread .dm-thread { display: flex; }
  .th-back { display: inline-grid; }
  .dm-list, .dm-thread { border-radius: 0; border: 0; }
}

/* ---------- Composer reel options ---------- */
.cmp-reel { border: 1px solid var(--border); border-radius: 16px; padding: 12px; margin: 10px 0; }
.cmp-reel[hidden] { display: none; }
.cmp-reel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.cmp-reel-head b { display: inline-flex; align-items: center; gap: 6px; }
.cmp-reel-grid { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.cmp-reel-grid video { width: 140px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; }
.cmp-reel-ctrl { display: flex; flex-direction: column; gap: 6px; }
.cmp-reel-ctrl input[type=range] { width: 100%; accent-color: var(--accent); }
.cmp-reel-ctrl .label { display: flex; justify-content: space-between; margin: 4px 0 0; }
.cmp-cover { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cmp-cover img { width: 44px; height: 60px; object-fit: cover; border-radius: 8px; }

/* ---------- Groups & Pages ---------- */
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ent-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s; }
.ent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ent-cover { display: block; aspect-ratio: 16 / 7; background: var(--grad); }
.ent-cover img { width: 100%; height: 100%; object-fit: cover; }
.ent-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.ent-name { font: 700 15.5px/1.3 var(--display); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ent-name:hover { text-decoration: none; color: var(--accent); }
.ent-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin: 4px 0 12px; }
.ent-act { margin-top: auto; }
.page-body { padding-top: 0; }
.page-av { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; margin-top: -28px; border: 3px solid var(--surface); background: var(--surface); margin-bottom: 6px; }
.page-sq { border-radius: 12px !important; }
.ent-head { overflow: hidden; margin-bottom: 14px; }
.ent-head .cover { height: 230px; position: relative; }
.ent-info { padding: 18px 20px 20px; }
.ent-info h1 { font-size: 28px; margin: 0 0 6px; }
.ent-info .ent-meta { font-size: 14px; margin-bottom: 10px; }
.ent-info .ent-meta b { color: var(--text); }
.ent-admins { display: flex; margin-bottom: 14px; }
.ent-admins a + a { margin-left: -8px; }
.ent-admins .avatar { box-shadow: 0 0 0 2px var(--surface); }
.ent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.about-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.about-row .ico { color: var(--text-2); margin-top: 2px; }
.about-row b { display: block; }
.about-row span { color: var(--text-2); font-size: 14px; }
.role-pill { background: var(--grad-soft); color: var(--accent); margin-right: 6px; }
.ctx-arrow { color: var(--text-3); margin: 0 5px; font-size: 12px; }
.post-meta .ctx-group { display: inline-flex; }
.page-av-lg img { width: 120px; height: 120px; border-radius: 30px; object-fit: cover; border: 4px solid var(--surface); background: var(--surface); box-shadow: var(--shadow-2); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ql { display: flex; flex-direction: column; gap: 2px; padding: 14px; color: var(--text); transition: transform .2s var(--ease); }
.ql:hover { text-decoration: none; transform: translateY(-2px); }
.ql b { font-size: 15px; }
.ql .dim { font-size: 12.5px; }
.ql-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); margin-bottom: 8px; }
@media (max-width: 720px) {
  .ent-grid { grid-template-columns: 1fr 1fr; padding: 0 12px; gap: 10px; }
  .ent-head .cover { height: 150px; }
  .ent-info { padding: 14px 16px; }
  .ent-info h1 { font-size: 22px; }
  .quick-links { padding: 0 12px; }
  .page-av-lg img { width: 92px; height: 92px; border-radius: 24px; }
  .search-field { margin-left: 12px; margin-right: 12px; }
}
