:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f3ede6;
  --border: #e8dfd5;
  --text: #2a211b;
  --muted: #8a7b6f;
  --accent: #f26b1d;
  --accent-2: #ffb347;
  --accent-soft: #fde7d8;
  --danger: #d63c3c;
  --like: #e5385d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(60, 35, 15, .05), 0 6px 24px rgba(60, 35, 15, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f; --surface: #211a16; --surface-2: #2b231e; --border: #3a2f28;
    --text: #f3ebe4; --muted: #a8988b; --accent-soft: #3e2616; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17120f; --surface: #211a16; --surface-2: #2b231e; --border: #3a2f28;
  --text: #f3ebe4; --muted: #a8988b; --accent-soft: #3e2616; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Кнопки и поля ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 650;
  background: var(--accent); color: #fff; transition: transform .08s, filter .15s, background .15s;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; filter: none; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 14px; font-size: 14px; }
.btn.block { width: 100%; padding: 12px; }
.btn svg, .btn .ico svg { width: 20px; height: 20px; }
.icon-btn {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 10px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }
.input, .textarea {
  width: 100%; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px;
  padding: 11px 14px; outline: none; transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus { border-color: var(--accent); background: var(--surface); }
.textarea { resize: vertical; min-height: 80px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ---------- Авторизация ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
}
.auth-hero {
  background: radial-gradient(circle at 20% 20%, var(--accent-2), var(--accent) 55%, #c94d0c);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative;
}
.auth-hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: .95; margin: 0; letter-spacing: -0.04em; font-weight: 900; }
.auth-hero p { font-size: 20px; max-width: 420px; opacity: .92; }
.auth-hero .paws { position: absolute; right: -40px; bottom: -40px; width: 340px; opacity: .14; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-card .switch { margin-top: 18px; text-align: center; color: var(--muted); }
.form-error { color: var(--danger); font-size: 14px; min-height: 21px; margin: 4px 0 10px; }

/* ---------- Каркас ---------- */
.layout {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 250px minmax(0, 620px) 320px; gap: 28px; padding: 0 20px;
}
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 0; display: flex; flex-direction: column; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; letter-spacing: -0.04em; padding: 6px 12px 20px; }
.logo svg { width: 36px; height: 36px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px;
  font-size: 17px; font-weight: 550; position: relative; transition: background .12s;
}
.nav a:hover { background: var(--surface-2); }
.nav a.active { font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.nav svg { width: 24px; height: 24px; flex: none; }
.badge {
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px;
  min-width: 19px; height: 19px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
}
.nav .badge { margin-left: auto; }
.sidebar .btn.compose { margin: 18px 0; padding: 13px; font-size: 16px; }
.me-chip {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
}
.me-chip:hover { background: var(--surface-2); }
.me-chip .names { min-width: 0; flex: 1; }
.me-chip .names div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

main { min-height: 100vh; border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding-bottom: 80px; }
.page-head {
  position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-height: 58px;
}
.page-head h1 { font-size: 20px; margin: 0; letter-spacing: -0.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; border-bottom: 1px solid var(--border); }
.tabs button {
  flex: 1; background: none; border: 0; padding: 14px; font-weight: 650; color: var(--muted); position: relative;
}
.tabs button:hover { background: var(--surface-2); }
.tabs button.active { color: var(--text); }
.tabs button.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 4px; border-radius: 4px; background: var(--accent);
}

.aside { padding: 16px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.card h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.01em; }
.search-box { position: relative; margin-bottom: 16px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.search-box .input { padding-left: 42px; border-radius: 999px; }
.trend { display: block; padding: 8px 6px; border-radius: 10px; }
.trend:hover { background: var(--surface-2); }
.trend b { display: block; }
.trend small { color: var(--muted); }
.footer-note { color: var(--muted); font-size: 13px; padding: 0 6px; }

/* ---------- Аватары и пользователи ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 17px;
  user-select: none;
}
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.avatar.lg { width: 120px; height: 120px; font-size: 46px; border: 4px solid var(--bg); }
.user-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; }
.user-row:hover { background: var(--surface-2); }
.user-row .names { flex: 1; min-width: 0; }
.user-row .names div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .user-row { padding: 12px 18px; border-radius: 0; border-bottom: 1px solid var(--border); }
.name { font-weight: 750; }
.handle { color: var(--muted); }

/* ---------- Создание поста ---------- */
.composer { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.composer .body { flex: 1; min-width: 0; }
.composer textarea {
  width: 100%; border: 0; background: transparent; outline: none; resize: none; font-size: 19px;
  min-height: 56px; padding: 8px 0;
}
.composer .preview { position: relative; margin: 6px 0 10px; }
.composer .preview img { border-radius: 14px; max-height: 360px; object-fit: cover; width: 100%; }
.composer .preview button {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; border: 0;
  width: 32px; height: 32px; border-radius: 50%; font-size: 18px;
}
.composer .tools { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.composer .tools .icon-btn { color: var(--accent); }
.counter { margin-left: auto; font-size: 13px; color: var(--muted); }
.counter.over { color: var(--danger); font-weight: 700; }

/* ---------- Посты ---------- */
.post { display: flex; gap: 12px; padding: 14px 18px 8px; border-bottom: 1px solid var(--border); transition: background .12s; animation: fadein .25s ease; }
.post:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.post .body { flex: 1; min-width: 0; }
.post .meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.post .meta .name:hover { text-decoration: underline; }
.post .meta .dot::before { content: "·"; color: var(--muted); }
.post .meta time { color: var(--muted); font-size: 14px; }
.post .more { margin-left: auto; }
.post .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; margin: 2px 0 8px; font-size: 15.5px; }
.post .text a { color: var(--accent); }
.post .text a:hover { text-decoration: underline; }
.post .image { border-radius: 16px; border: 1px solid var(--border); max-height: 520px; width: 100%; object-fit: cover; margin-bottom: 8px; cursor: zoom-in; }
.post .actions { display: flex; gap: 14px; margin-left: -10px; }
.icon-btn.liked { color: var(--like); }
.icon-btn.liked svg { fill: var(--like); }
.icon-btn.like:hover { color: var(--like); background: color-mix(in srgb, var(--like) 10%, transparent); }
.icon-btn.like.pop svg { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

.comments { margin-top: 6px; border-top: 1px dashed var(--border); padding-top: 8px; }
.comment { display: flex; gap: 10px; padding: 6px 0; }
.comment .bubble { background: var(--surface-2); border-radius: 14px; padding: 7px 12px; flex: 1; min-width: 0; }
.comment .bubble .text { margin: 0; font-size: 14.5px; }
.comment .bubble .meta { font-size: 13.5px; }
.comment-form { display: flex; gap: 8px; margin: 8px 0 6px; }
.comment-form .input { padding: 8px 14px; border-radius: 999px; }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .big { font-size: 46px; margin-bottom: 6px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 20px; }
.loader { display: flex; justify-content: center; padding: 28px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Профиль ---------- */
.cover { height: 180px; background: linear-gradient(120deg, var(--accent-2), var(--accent)); }
.profile-top { padding: 0 18px 14px; border-bottom: 1px solid var(--border); }
.profile-top .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -60px; margin-bottom: 10px; gap: 8px; }
.profile-top .actions { display: flex; gap: 8px; padding-bottom: 4px; }
.profile-top h2 { margin: 0; font-size: 23px; letter-spacing: -0.02em; }
.profile-top .bio { margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-top .stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.profile-top .stats b { color: var(--text); }
.profile-top .stats a:hover { text-decoration: underline; }
.pill { background: var(--surface-2); color: var(--muted); font-size: 12px; padding: 2px 8px; border-radius: 6px; margin-left: 6px; font-weight: 600; }

/* ---------- Уведомления ---------- */
.notif { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.notif.unread { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.notif .kind { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif .kind svg { width: 18px; height: 18px; }
.notif .kind.like { background: color-mix(in srgb, var(--like) 15%, transparent); color: var(--like); }
.notif .kind.comment, .notif .kind.mention { background: var(--accent-soft); color: var(--accent); }
.notif .kind.follow { background: color-mix(in srgb, #3a86ff 15%, transparent); color: #3a86ff; }
.notif .content { flex: 1; min-width: 0; }
.notif .snippet { color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Сообщения ---------- */
.convo { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: center; }
.convo:hover { background: var(--surface-2); }
.convo .names { flex: 1; min-width: 0; }
.convo .last { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.has-unread .last { color: var(--text); font-weight: 600; }
.chat { display: flex; flex-direction: column; height: 100vh; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: 75%; padding: 9px 14px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.msg-time { font-size: 11.5px; color: var(--muted); align-self: flex-start; margin: 0 6px 8px; }
.msg-time.me { align-self: flex-end; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 12px; margin: 10px 0; }
.chat-form { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg); }
.chat-form .textarea { min-height: 44px; max-height: 140px; border-radius: 22px; resize: none; padding: 10px 16px; }

/* ---------- Модальные окна ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(20, 12, 6, .5); z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 16px 16px; animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 22px; width: 100%; max-width: 560px; max-height: 84vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal .modal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal .modal-head h3 { margin: 0; flex: 1; font-size: 18px; }
.modal .modal-body { padding: 16px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-height: 92vh; border-radius: 8px; }
.menu { position: absolute; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); z-index: 10; overflow: hidden; min-width: 180px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 16px; font-weight: 600; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--danger); }

#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg);
  padding: 11px 20px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.mobile-nav, .mobile-fab { display: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 84px minmax(0, 620px) 300px; gap: 20px; }
  .nav a span, .logo span, .me-chip .names, .sidebar .btn.compose span { display: none; }
  .nav a { justify-content: center; }
  .nav .badge { position: absolute; top: 4px; right: 10px; }
  .logo { justify-content: center; padding: 6px 0 20px; }
  .sidebar .btn.compose { padding: 13px 0; }
  .me-chip { justify-content: center; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 84px minmax(0, 1fr); }
  .aside { display: none; }
}
@media (max-width: 640px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 32px 20px; min-height: 260px; }
  .auth-hero p { font-size: 17px; }
  .layout { display: block; padding: 0; }
  .sidebar { display: none; }
  main { border: 0; padding-bottom: 76px; }
  .page-head, .composer, .post, .notif, .convo, .list .user-row, .profile-top { padding-left: 16px; padding-right: 16px; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface);
    border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a { flex: 1; display: flex; justify-content: center; padding: 8px; position: relative; color: var(--muted); }
  .mobile-nav a.active { color: var(--accent); }
  .mobile-nav svg { width: 26px; height: 26px; }
  .mobile-nav .badge { position: absolute; top: 2px; left: 52%; }
  .mobile-fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #fff; border: 0; box-shadow: 0 6px 20px rgba(242, 107, 29, .45); z-index: 20;
  }
  .mobile-fab svg { width: 26px; height: 26px; }
  .chat { height: calc(100vh - 66px); }
  .modal-bg { padding: 0; align-items: stretch; }
  .modal { max-width: none; max-height: none; border-radius: 0; }
  .cover { height: 130px; }
  .avatar.lg { width: 92px; height: 92px; font-size: 36px; }
  .profile-top .row { margin-top: -46px; }
}

/* ================= v2: верификация, репосты, опросы, админка ================= */
:root { --verified: #1d9bf0; --chart: #f26b1d; --online: #22b35e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart: #e3621a; } }
:root[data-theme="dark"] { --chart: #e3621a; }

.ico { display: inline-flex; align-items: center; }
.ico svg { width: 1em; height: 1em; }
.icon-btn .ico svg, .nav .ico svg, .mobile-nav .ico svg { width: auto; height: auto; }
.icon-btn .ico svg { width: 19px; height: 19px; }
.nav .ico svg { width: 24px; height: 24px; }
.mobile-nav .ico svg { width: 26px; height: 26px; }
.btn .ico svg { width: 18px; height: 18px; }

/* Галочка */
.name { display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%; }
.name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified { display: inline-flex; color: var(--verified); flex: none; }
.verified svg { width: 17px; height: 17px; }
h2 .verified svg, .head-name .verified svg { width: 22px; height: 22px; }
h2 { display: flex; align-items: center; gap: 5px; }
.head-name { display: inline-flex; align-items: center; gap: 4px; }
.verified-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13.5px; color: var(--verified); font-weight: 600;
  background: color-mix(in srgb, var(--verified) 10%, transparent); padding: 3px 10px 3px 6px; border-radius: 999px; }
.pill.admin { background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.pill.admin .ico svg { width: 13px; height: 13px; }
.pill.banned { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* Онлайн */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2.5px solid var(--bg); }
.av-wrap.sm .online-dot { width: 10px; height: 10px; border-width: 2px; right: 0; bottom: 0; }
.av-wrap.lg .online-dot { width: 22px; height: 22px; border-width: 4px; right: 8px; bottom: 8px; }
.online-text { color: var(--online) !important; font-weight: 600; }
.profile-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0; font-size: 14.5px; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }

/* Пост: структура */
.post { display: block; padding: 10px 18px 6px; }
.post-row { display: flex; gap: 12px; padding-top: 4px; }
.repost-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; padding-left: 26px; margin-bottom: 2px; }
.repost-line .ico svg { width: 15px; height: 15px; }
.repost-line a:hover { text-decoration: underline; }
.post .meta .name:hover .name-text { text-decoration: underline; }
.edited { font-size: 13px; }
.icon-btn.repost:hover, .icon-btn.reposted { color: #14a37f; }
.icon-btn.repost:hover { background: color-mix(in srgb, #14a37f 10%, transparent); }
.icon-btn.bookmark.saved { color: var(--accent); }
.icon-btn.bookmark.saved svg { fill: var(--accent); }
.icon-btn.round { border: 1px solid var(--border); padding: 9px; }
.icon-btn.danger-icon:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.menu button { display: flex; align-items: center; gap: 10px; }
.menu .ico svg { width: 18px; height: 18px; }
.menu { top: calc(100% + 4px); }
.post .actions { flex-wrap: wrap; }
.edit-box { margin: 4px 0 10px; }

/* Цитата */
.quote { display: block; border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin: 2px 0 10px; transition: background .12s; }
a.quote:hover { background: var(--surface-2); }
.quote .meta { display: flex; align-items: center; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.quote .text { margin: 4px 0 0; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quote-img { border-radius: 10px; max-height: 180px; width: 100%; object-fit: cover; margin-top: 8px; }
.quote.unavailable { color: var(--muted); font-size: 14px; background: var(--surface-2); }

/* Опросы */
.poll { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 10px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--accent); color: var(--accent); background: transparent; border-radius: 12px; padding: 9px 14px; font-weight: 650; text-align: left; }
.poll-opt:hover { background: var(--accent-soft); }
.poll-opt.results { border-color: var(--border); color: var(--text); font-weight: 550; }
.poll-opt.results:hover { background: transparent; border-color: var(--muted); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--surface-2); transition: width .5s ease; }
.poll-opt.mine .poll-bar { background: var(--accent-soft); }
.poll-opt.mine { border-color: var(--accent); }
.poll-text, .poll-pct { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.poll-check svg { width: 15px; height: 15px; color: var(--accent); }
.poll-foot { font-size: 13px; }
.poll-edit { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; }
.poll-edit .link { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; display: inline; }
.poll-edit > .link { align-self: flex-start; }
.emoji-box { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.emoji-box .icon-btn { font-size: 20px; padding: 4px 6px; }

/* Объявление */
.announcement { display: flex; align-items: flex-start; gap: 12px; margin: 12px 16px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 22%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.announcement > .ico svg { width: 22px; height: 22px; color: var(--accent); }
.announcement .ann-text { flex: 1; font-weight: 550; white-space: pre-wrap; overflow-wrap: anywhere; }
.announcement .ann-text a { color: var(--accent); }
.announcement .icon-btn { padding: 4px; margin: -2px -4px 0 0; }

/* Жалобы (диалог) */
.reasons { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.reason { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.reason:hover { background: var(--surface-2); }
.reason input { accent-color: var(--accent); width: 17px; height: 17px; }

/* Настройки: быстрые ссылки */
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface-2); border: 0; font-weight: 600; }
.quick:hover { background: var(--accent-soft); color: var(--accent); }
.quick .ico svg { width: 18px; height: 18px; }

/* Чат */
.chat-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.read-mark { align-self: flex-end; font-size: 12px; color: var(--accent); font-weight: 600; margin: -4px 6px 6px; }
.convo-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.convo-top .handle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Уведомления: новые типы */
.notif .kind.repost { background: color-mix(in srgb, #14a37f 15%, transparent); color: #14a37f; }
.notif .kind.quote { background: var(--accent-soft); color: var(--accent); }
.notif .kind.verified { background: color-mix(in srgb, var(--verified) 15%, transparent); color: var(--verified); }
.notif .content .verified svg { width: 16px; height: 16px; vertical-align: -3px; }

/* Вкладки: горизонтальная прокрутка на узких экранах */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; min-width: max-content; }

/* ---------- Админ-панель ---------- */
.admin-wrap { padding: 16px 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--muted); }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.chart { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px 8px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.chart-title { font-weight: 700; }
.chart-toggle { background: none; border: 0; padding: 2px 0; font-size: 13px; }
.chart-plot { position: relative; min-height: 150px; }
.chart-plot svg { display: block; overflow: visible; }
.chart .bar { fill: var(--chart); transition: opacity .12s; }
.chart svg:hover .bar { opacity: .55; }
.chart svg:hover .bar.active { opacity: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .grid { stroke: var(--border); stroke-dasharray: 3 3; }
.chart .baseline { stroke: var(--border); }
.chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; transform: translateX(-50%); background: var(--text); color: var(--bg); border-radius: 10px; padding: 5px 10px;
  font-size: 12.5px; pointer-events: none; white-space: nowrap; display: flex; flex-direction: column; align-items: center; line-height: 1.3; z-index: 2; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border); }
.chart-table th:last-child, .chart-table td:last-child { text-align: right; }
.with-icon { display: flex; align-items: center; gap: 8px; }
.with-icon .ico svg { width: 20px; height: 20px; color: var(--accent); }

.admin-toolbar { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: transparent; border-radius: 999px; padding: 5px 13px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.admin-user { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-user .names { flex: 1; min-width: 180px; }
.admin-user .names > div:first-child { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btn.verify { background: var(--verified); }
.report { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.report-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.report-reason { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.report-reason .ico svg { width: 16px; height: 16px; color: var(--danger); }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-wrap { padding: 12px; }
  .announcement { margin: 10px 12px; }
  .repost-line { padding-left: 22px; }
  .post .actions { gap: 4px; }
}
.menu button { white-space: nowrap; }

/* ================= Игра «Слово дня» ================= */
:root { --wg-hit: #f26b1d; --wg-near: #1d8fe0; --wg-miss: #d9cfc4; --wg-miss-text: #6f6258; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wg-hit: #e3621a; --wg-near: #1a7fc9; --wg-miss: #3a2f28; --wg-miss-text: #a8988b; } }
:root[data-theme="dark"] { --wg-hit: #e3621a; --wg-near: #1a7fc9; --wg-miss: #3a2f28; --wg-miss-text: #a8988b; }

.wg { padding: 14px 18px 24px; display: flex; flex-direction: column; align-items: center; }
.wg-intro { margin: 0 0 8px; text-align: center; font-size: 14.5px; }
.wg-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.wg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wg-dot { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.wg-dot.hit { background: var(--wg-hit); } .wg-dot.near { background: var(--wg-near); } .wg-dot.miss { background: var(--wg-miss); }

.wg-board-wrap { position: relative; }
.wg-grid { display: grid; gap: 7px; }
.wg-row { display: grid; grid-template-columns: repeat(5, 58px); gap: 7px; }
.wg-tile { height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 27px; font-weight: 800;
  background: var(--surface); border: 2px solid var(--border); color: var(--text); user-select: none; text-transform: uppercase; }
.wg-row.current .wg-tile { border-style: dashed; }
.wg-tile.filled { border-style: solid !important; border-color: var(--muted); animation: wg-type .12s ease; }
.wg-tile.hit { background: var(--wg-hit); border-color: var(--wg-hit); color: #fff; }
.wg-tile.near { background: var(--wg-near); border-color: var(--wg-near); color: #fff; }
.wg-tile.miss { background: var(--wg-miss); border-color: var(--wg-miss); color: var(--wg-miss-text); }
.wg-tile.reveal { animation: wg-bounce .45s ease both; }
@keyframes wg-type { 50% { transform: scale(1.08); } }
@keyframes wg-bounce { 0% { transform: translateY(0) scale(.6); opacity: .3; } 60% { transform: translateY(-8px) scale(1.06); opacity: 1; } 100% { transform: none; } }
.wg-row.shake { animation: wg-shake .4s ease; }
@keyframes wg-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.wg-msg { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); background: var(--text); color: var(--bg); font-weight: 700;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 3; }
.wg-msg.show { opacity: 1; }

.wg-kb { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 520px; }
.wg-kb-row { display: flex; gap: 5px; justify-content: center; }
.wg-key { flex: 1; min-width: 0; height: 50px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 16px;
  text-transform: uppercase; padding: 0; transition: transform .06s, background .15s; touch-action: manipulation; }
.wg-key:active { transform: scale(.94); }
.wg-key.wide { flex: 1.6; font-size: 13px; text-transform: none; }
.wg-key.hit { background: var(--wg-hit); color: #fff; }
.wg-key.near { background: var(--wg-near); color: #fff; }
.wg-key.miss { background: var(--wg-miss); color: var(--wg-miss-text); opacity: .75; }

.wg-side { width: 100%; max-width: 520px; margin-top: 20px; }
.wg-result { text-align: center; }
.wg-result.won { border-color: color-mix(in srgb, var(--wg-hit) 45%, var(--border)); background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); }
.wg-result-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.wg-answer { margin: 6px 0 4px; font-size: 16px; }
.wg-answer b { letter-spacing: .12em; color: var(--accent); }
.wg-timer { font-variant-numeric: tabular-nums; color: var(--text); }
.wg-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin-bottom: 14px; }
.wg-stat-v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wg-stat-l { font-size: 12.5px; color: var(--muted); }
.wg-dist { display: flex; flex-direction: column; gap: 5px; }
.wg-dist-row { display: grid; grid-template-columns: 14px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.wg-dist-k { color: var(--muted); font-weight: 700; }
.wg-dist-track { height: 16px; }
.wg-dist-bar { height: 100%; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--chart) 40%, var(--surface-2)); transition: width .5s ease; }
.wg-dist-bar.today { background: var(--chart); }
.wg-dist-v { text-align: right; color: var(--muted); }
.wg-board { list-style: none; margin: 0; padding: 0; }
.wg-board li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.wg-board li:last-child { border-bottom: 0; }
.wg-place { width: 26px; text-align: center; font-weight: 700; color: var(--muted); }
.wg-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.wg-who:hover .name-text { text-decoration: underline; }
.wg-tries { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .wg { padding: 10px 8px 20px; }
  .wg-row { grid-template-columns: repeat(5, 54px); gap: 6px; }
  .wg-grid { gap: 6px; }
  .wg-tile { height: 54px; font-size: 25px; border-radius: 12px; }
  .wg-key { height: 48px; font-size: 14px; border-radius: 8px; }
  .wg-kb-row { gap: 4px; }
  .wg-key.wide { font-size: 12px; }
}
@media (max-width: 360px) {
  .wg-row { grid-template-columns: repeat(5, 48px); }
  .wg-tile { height: 48px; font-size: 22px; }
}
.page-word .mobile-fab { display: none; }

/* ================= Безопасность ================= */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.code-input { letter-spacing: .25em; font-variant-numeric: tabular-nums; font-size: 18px; max-width: 200px; }
.field small { display: block; margin-top: 4px; }
.row-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-inline .input { flex: 1; min-width: 160px; }
.sec-step { display: flex; flex-direction: column; gap: 8px; }
.sec-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.sec-steps .link { display: inline-block; margin-top: 6px; font-size: 14px; }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.secret code, .codes code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2);
  padding: 6px 10px; border-radius: 8px; letter-spacing: .06em; word-break: break-all; }
.sec-recovery { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px dashed var(--accent); border-radius: 14px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.codes code { text-align: center; }
.pill.ok { background: color-mix(in srgb, var(--online) 15%, transparent); color: var(--online); }
.sessions { display: flex; flex-direction: column; }
.session { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.session:last-child { border-bottom: 0; }
.session-info { flex: 1; min-width: 0; }
.log-row { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.log-text { flex: 1; min-width: 0; }
.log-text .snippet { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= Друзья и приватность ================= */
.aud-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: transparent; color: var(--accent);
  border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 650; }
.aud-btn:hover { background: var(--accent-soft); }
.aud-btn .ico svg { width: 15px; height: 15px; }
.aud-mark, .lock-mark { display: inline-flex; color: var(--muted); }
.aud-mark .ico svg { width: 15px; height: 15px; }
.lock-mark .ico svg { width: 18px; height: 18px; }
h2 .lock-mark .ico svg { width: 20px; height: 20px; }
.comment-closed { display: flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 0; }
.comment-closed .ico svg { width: 15px; height: 15px; }
.person .row-inline { flex-wrap: nowrap; }
.fbtn .btn .ico svg { width: 17px; height: 17px; }
.section-title { display: flex; align-items: center; padding: 14px 18px 6px; font-weight: 800; font-size: 15px; }
.profile-notice { display: flex; gap: 12px; align-items: center; margin: 12px 18px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.profile-notice > .ico svg { width: 22px; height: 22px; color: var(--muted); }
.profile-notice > div { flex: 1; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.pv-row:last-child { border-bottom: 0; }
.pv-text { display: flex; flex-direction: column; min-width: 0; }
.pv-text b { font-weight: 600; }
.pv-text small { font-size: 12.5px; margin-top: 2px; }
.select { width: auto; min-width: 150px; padding: 8px 12px; cursor: pointer; flex: none; }
.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch-input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch-input:checked + i { background: var(--accent); }
.switch-input:checked + i::after { transform: translateX(19px); }
.switch-input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.notif .kind.friend_request, .notif .kind.friend_accept { background: color-mix(in srgb, var(--online) 15%, transparent); color: var(--online); }
@media (max-width: 640px) {
  .pv-row { flex-wrap: wrap; }
  .select { width: 100%; }
  .person { flex-wrap: wrap; }
  .person > .row-inline, .person > .fbtn { margin-left: 56px; }
}
@media (max-width: 640px) {
  .profile-notice { flex-wrap: wrap; margin: 12px; }
  .profile-notice > .btn { margin-left: 34px; }
}

/* ================= Обновления ================= */
.upd-slot:empty { display: none; }
.upd-banner { position: relative; display: flex; gap: 16px; align-items: center; margin: 14px 16px 6px; padding: 18px 48px 18px 18px;
  border-radius: 20px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 12% 20%, #ffb347 0%, transparent 55%), linear-gradient(120deg, #f26b1d, #e5385d 85%);
  box-shadow: 0 8px 24px color-mix(in srgb, #f26b1d 30%, transparent); transition: transform .15s, box-shadow .15s, opacity .25s; animation: upd-in .4s ease; }
.upd-banner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.12); z-index: -1; }
.upd-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, #f26b1d 38%, transparent); }
.upd-banner.hide { opacity: 0; transform: scale(.98); }
@keyframes upd-in { from { opacity: 0; transform: translateY(-6px); } }
.upd-emoji { font-size: 40px; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.2); }
.upd-banner-text { min-width: 0; }
.upd-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .95; flex-wrap: wrap; }
.upd-label span { text-transform: none; font-weight: 600; letter-spacing: 0; opacity: .9; }
.upd-label .ico svg { width: 15px; height: 15px; }
.upd-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 3px 0 2px; }
.upd-summary { font-size: 14.5px; opacity: .92; }
.upd-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: #fff; color: #d4501a; font-weight: 750;
  font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.upd-more .ico svg { width: 16px; height: 16px; }
.upd-close { position: absolute; top: 8px; right: 8px; color: #fff !important; }
.upd-close:hover { background: rgba(255,255,255,.2) !important; }

.upd-page { padding: 16px 18px 32px; }
.upd-hero { border-radius: 22px; padding: 26px 24px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.22), transparent 45%), linear-gradient(135deg, #ffb347, #f26b1d 45%, #e5385d); }
.upd-hero.mini { padding: 18px; margin-bottom: 12px; }
.upd-hero-emoji { font-size: 52px; line-height: 1; margin-bottom: 12px; }
.upd-hero h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; margin: 6px 0 8px; letter-spacing: -0.02em; }
.upd-lead { font-size: 17px; margin: 0; opacity: .95; }
.upd-body { display: flex; flex-direction: column; gap: 12px; }
.upd-body > p { margin: 0 4px; }
.upd-section { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.upd-section h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.upd-section p { margin: 0 0 8px; }
.upd-section ul { margin: 0 0 10px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.upd-section li { position: relative; padding-left: 22px; }
.upd-section li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.upd-cta { display: inline-flex; margin-top: 4px; }
.upd-cta .ico svg { width: 16px; height: 16px; }
.upd-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.upd-prev { margin-left: auto; font-size: 14px; }
.upd-item { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
a.upd-item:hover { background: var(--surface-2); }
.upd-item-emoji { font-size: 28px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.upd-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.upd-item-sum { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upd-item-arrow svg { width: 18px; height: 18px; color: var(--muted); }
.upd-item.admin { flex-wrap: wrap; }
.upd-preview { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
@media (max-width: 640px) {
  .upd-banner { margin: 10px 12px 4px; padding: 14px 42px 14px 14px; gap: 12px; align-items: flex-start; }
  .upd-emoji { width: 48px; height: 48px; font-size: 28px; border-radius: 14px; }
  .upd-title { font-size: 17px; }
  .upd-page { padding: 12px; }
  .upd-hero { padding: 20px 18px; }
  .upd-prev { margin-left: 0; }
}
.upd-cta + p { margin-top: 12px; }
