/* AI News — тема «новый Reddit»: тёмный по умолчанию, левый сайдбар-навигация,
   посты без рамок с разделителями, крупные скруглённые медиа, капсулы действий */
:root {
  --bg:#0d1210; --panel:#151b18; --hover:#19211d; --border:#26312b; --text:#eef3f0; --muted:#8aa89b;
  --accent:#04cc74; --accent-dim:#04cc7422; --up:#04cc74; --down:#ff6b6b; --link:#3fd39a;
  --font:'Inter',-apple-system,'Segoe UI',sans-serif; --r:16px;
}
[data-theme="light"] {
  --bg:#ffffff; --panel:#f3f6f4; --hover:#eef3f0; --border:#e0e7e2; --text:#0f1613; --muted:#5a6d64;
  --accent:#04b869; --accent-dim:#04cc7418; --up:#04b869; --down:#e0576b; --link:#04a862;
}
* { box-sizing:border-box; margin:0; }
html { scroll-behavior:smooth; }
i.ph, i.ph-fill { vertical-align:-.14em; font-size:1.15em; line-height:1; }
body { background:var(--bg); color:var(--text); font:14px/1.5 var(--font); -webkit-font-smoothing:antialiased; }
a { color:var(--link); }

/* ---------- header ---------- */
.site-header { display:flex; align-items:center; gap:16px; padding:8px 18px;
  border-bottom:1px solid var(--border); position:sticky; top:0; z-index:30; background:var(--bg); }
.logo { display:flex; align-items:center; gap:8px; font-size:22px; color:var(--text);
  text-decoration:none; letter-spacing:-.03em; }
.logo b { font-weight:800; }
.logo-ai { color:var(--accent); font-weight:800; }
.logo-badge { display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%; background:var(--accent); color:#fff;
  font-weight:800; font-size:18px; }
.search-form { flex:1; max-width:640px; margin:0 auto; position:relative; }
.sf-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:17px !important; color:var(--muted); }
.search-form input { width:100%; background:var(--panel); border:1px solid transparent;
  border-radius:99px; color:var(--text); padding:11px 20px 11px 42px; font-size:14px; }
.search-form input:hover { background:var(--hover); }
.search-form input:focus { outline:none; border-color:var(--accent); background:var(--bg); }
#theme-toggle { background:var(--panel); border:none; border-radius:50%;
  width:38px; height:38px; color:var(--muted); cursor:pointer; font-size:17px; }
#theme-toggle:hover { background:var(--hover); color:var(--text); }
.lang-switch { display:flex; gap:2px; background:var(--panel); border-radius:99px; padding:3px; }
.lang-switch a { color:var(--muted); text-decoration:none; font-size:12px; font-weight:700;
  padding:5px 9px; border-radius:99px; }
.lang-switch a.active { background:var(--accent); color:#fff; }
.lang-switch a:hover:not(.active) { color:var(--text); }

/* ---------- shell: левый сайдбар + контент ---------- */
.shell { display:grid; grid-template-columns:270px minmax(0,1fr); min-height:calc(100vh - 57px); }
.left-nav { border-right:1px solid var(--border); padding:16px 12px; position:sticky;
  top:57px; height:calc(100vh - 57px); overflow-y:auto; scrollbar-width:thin; }
.ln-group { display:flex; flex-direction:column; }
.ln-group a { display:flex; align-items:center; gap:12px; color:var(--text); text-decoration:none;
  font-size:14px; padding:10px 14px; border-radius:10px; }
.ln-group a:hover { background:var(--hover); }
.ln-group a.active { background:var(--panel); font-weight:600; }
.ln-group a i { font-style:normal; width:22px; text-align:center; font-size:20px; color:var(--muted); }
.ln-group a.active i, .ln-group a:hover i { color:var(--text); }
.ln-small a { color:var(--muted); font-size:13px; padding:7px 14px; }
.ln-sep { border-top:1px solid var(--border); margin:14px 6px; }
.ln-title { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted);
  padding:0 14px 8px; }
.dot { width:12px; height:12px; border-radius:50%; display:inline-block; margin:0 4px; }
.d-modeli{background:#8b5cf6} .d-instrumenty{background:#ff7ab8} .d-biznes{background:#f5b31a}
.d-bezopasnost{background:#f43f5e} .d-issledovaniya{background:#38bdf8} .d-regulirovanie{background:#94a3b8}

main { padding:14px 24px 60px; max-width:780px; margin:0 auto; width:100%; }
main.with-rail { max-width:1120px; }
.feed-rail { display:grid; grid-template-columns:minmax(0,1fr) 316px; gap:24px; align-items:start; }

/* ---------- sort bar ---------- */
.sort-bar { display:flex; gap:6px; padding:2px 4px 10px; border-bottom:1px solid var(--border); margin-bottom:4px; }
.sort-dd { color:var(--muted); font-size:12.5px; font-weight:600; padding:6px 12px;
  border-radius:99px; cursor:pointer; text-decoration:none; }
.sort-dd:hover { background:var(--hover); }
.sort-dd.active { background:var(--panel); color:var(--text); }
.sort-dd i.ph { font-size:13px; }

/* ---------- пост: карточка с обложкой сверху, единый контейнер ---------- */
.post { display:flex; flex-direction:column; background:var(--panel);
  border:1px solid var(--border); border-radius:16px; overflow:hidden;
  margin-bottom:16px; transition:border-color .15s, transform .15s; }
.post:hover { border-color:var(--muted); transform:translateY(-2px); }
.post-cover { position:relative; display:block; aspect-ratio:16/9; width:100%;
  overflow:hidden; text-decoration:none; }
.post-cover::after { content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 45%, rgba(0,0,0,.5)); }
.pc-cat { position:absolute; left:16px; bottom:12px; z-index:1; color:#fff;
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.pc-letter { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:64px; color:rgba(255,255,255,.14); letter-spacing:-.03em; }
.post-body { padding:14px 18px 12px; }
.post-head { display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--muted); }
.comm-avatar { width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center;
  justify-content:center; font-size:11px; font-weight:800; color:#fff; background:#555; flex-shrink:0; }
.av-modeli{background:#8b5cf6} .av-instrumenty{background:#ff7ab8} .av-biznes{background:#c98f00}
.av-bezopasnost{background:#f43f5e} .av-issledovaniya{background:#0d94d2} .av-regulirovanie{background:#64748b}
.av-drugoe{background:#555}
.community { color:var(--text); font-weight:700; text-decoration:none; font-size:12.5px; }
.community:hover { color:var(--accent); }
.ph-dot { opacity:.5; }
.join-pill { margin-left:auto; background:transparent; color:var(--muted); font-weight:700;
  font-size:12px; padding:4px 12px; border-radius:99px; text-decoration:none; border:1px solid var(--border); }
.join-pill:hover { color:var(--text); border-color:var(--muted); }
.post-title { font-size:17px; font-weight:700; line-height:1.32; margin:7px 0 5px; letter-spacing:-.01em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }
.post-title a { color:var(--text); text-decoration:none; }
.post-title a:hover { color:var(--accent); }
.post-tldr { color:var(--muted); font-size:13.5px; line-height:1.5; margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.9em; }
.c-modeli { background:radial-gradient(120% 160% at 15% 0%, #8b5cf6, #241448 60%, #0d0a1a) !important; }
.c-instrumenty { background:radial-gradient(120% 160% at 85% 0%, #ff7ab8, #47142e 60%, #170812) !important; }
.c-biznes { background:radial-gradient(120% 160% at 50% 0%, #f5b31a, #4a3505 60%, #171001) !important; }
.c-issledovaniya { background:radial-gradient(120% 160% at 25% 0%, #38bdf8, #0b3049 60%, #04121c) !important; }
.c-bezopasnost { background:radial-gradient(120% 160% at 75% 0%, #f43f5e, #470b16 60%, #180408) !important; }
.c-regulirovanie { background:radial-gradient(120% 160% at 40% 0%, #94a3b8, #2b333f 60%, #0e1216) !important; }
.c-drugoe { background:radial-gradient(120% 160% at 50% 0%, #6b7280, #24272b 60%, #0e1113) !important; }

/* ---------- капсулы действий ---------- */
.post-actions { display:flex; gap:8px; align-items:center; padding:2px 0 8px; flex-wrap:wrap; }
.cap { display:inline-flex; align-items:center; gap:7px; background:var(--panel); color:var(--text);
  border:none; border-radius:99px; padding:7px 13px; font-size:12.5px; font-weight:700;
  text-decoration:none; cursor:pointer; font-family:var(--font); }
.cap:hover { background:var(--border); }
.vote { padding:0; }
.vote button { background:none; border:none; color:var(--text); cursor:pointer; font-size:15px;
  padding:7px 10px; border-radius:99px; line-height:1; }
.vote button:hover { color:var(--up); background:var(--border); }
.vote .v-down:hover { color:var(--down); }
.v-score { font-weight:700; font-size:13px; min-width:14px; text-align:center; }
.vote.voted-up { background:var(--up); }
.vote.voted-up .v-score, .vote.voted-up button { color:#fff; }
.vote.voted-down { background:var(--down); }
.vote.voted-down .v-score, .vote.voted-down button { color:#fff; }
.q-badge { margin-left:auto; color:var(--muted); font-size:12px; font-weight:700;
  border:1px solid var(--border); border-radius:8px; padding:3px 9px; }
.vote-inline { display:inline-flex; align-items:center; background:var(--panel); border-radius:99px; margin:10px 0; }
.vote-inline .vote-hint { font-size:12.5px; color:var(--muted); font-weight:600; padding:0 14px 0 6px; }
.pagination { display:flex; justify-content:center; gap:18px; align-items:center;
  color:var(--muted); padding:16px 0; font-weight:600; font-size:13.5px; }
.pagination a { text-decoration:none; color:var(--text); background:var(--panel);
  border-radius:99px; padding:7px 16px; }
.pagination a:hover { background:var(--border); }

/* ---------- right rail ---------- */
.rail { display:flex; flex-direction:column; gap:14px; position:sticky; top:71px; }
.rail-card { background:var(--panel); border-radius:14px; padding:14px 16px; }
.rc-head { font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.07em;
  color:var(--muted); margin-bottom:10px; }
.rail-card p { font-size:13px; color:var(--text); margin-bottom:12px; line-height:1.55; }
.rail-btn { display:block; text-align:center; background:var(--accent); color:#fff;
  border-radius:99px; padding:9px; font-weight:700; font-size:13px; text-decoration:none; }
.rail-btn:hover { opacity:.9; }
.rail-btn.ghost { background:none; border:1px solid var(--muted); color:var(--text); margin-top:10px; }
.rail-row { display:flex; gap:10px; align-items:baseline; padding:8px 0;
  border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.rail-row:last-of-type { border-bottom:none; }
.rail-row:hover .rr-title { color:var(--link); }
.rr-num { font-weight:800; color:var(--muted); font-size:12px; }
.rr-title { flex:1; font-size:13px; font-weight:600; line-height:1.4; }
.rr-side { font-size:11px; color:var(--muted); white-space:nowrap; }
.rail-foot { color:var(--muted); font-size:12px; padding:0 6px; line-height:1.9; }
.rail-foot a { color:var(--muted); text-decoration:none; }
.rail-foot a:hover { text-decoration:underline; }

/* ---------- страницы контента ---------- */
.page-title { font-size:24px; font-weight:800; letter-spacing:-.02em; margin:8px 0; }
.page-sub { color:var(--muted); font-size:13.5px; margin-bottom:18px; max-width:640px; }
article.full { max-width:760px; }
article.full h1 { font-size:26px; font-weight:800; letter-spacing:-.015em; line-height:1.25; margin:10px 0; }
.meta { display:flex; gap:10px; font-size:12.5px; color:var(--muted); align-items:center; flex-wrap:wrap; }
.meta a { color:var(--muted); text-decoration:none; }
.meta a.cat { color:var(--text); font-weight:700; }
.tldr { color:var(--muted); }
.tldr.big { font-size:16px; line-height:1.6; margin:12px 0; color:var(--text); opacity:.85; }
article.full .body { margin:16px 0; font-size:15px; line-height:1.7; }
article.full .body h2 { font-size:19px; margin:22px 0 8px; }
article.full .body p { margin:12px 0; }
article.full .body ul, article.full .body ol { margin:12px 0 12px 22px; }
.why { border-left:4px solid var(--accent); padding:10px 14px; background:var(--panel); border-radius:0 12px 12px 0; margin:16px 0; }
.insights { background:var(--panel); border-radius:14px; padding:16px 20px; margin:18px 0; }
.insights h2 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.insights ul { margin:10px 0 0 20px; }
.tags { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0; }
.tags span { background:var(--panel); color:var(--muted); font-size:12px; padding:4px 13px; border-radius:99px; font-weight:600; }
.src { font-size:13px; color:var(--muted); margin:12px 0; }
.prevnext { display:flex; justify-content:space-between; gap:16px;
  border-top:1px solid var(--border); padding-top:14px; margin-top:22px; font-size:13px; }
.prevnext a { color:var(--muted); text-decoration:none; }
.prevnext a:hover { color:var(--text); }
.prevnext .right { margin-left:auto; text-align:right; }
.related { margin-top:22px; }
.related h2 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:6px; }
.related p { margin:7px 0; }
.related a { font-weight:600; text-decoration:none; color:var(--text); }
.related a:hover { color:var(--link); }

/* ---------- каталог ---------- */
.filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.filters button { background:var(--panel); color:var(--muted); border:none;
  border-radius:99px; padding:7px 16px; cursor:pointer; font-size:12.5px; font-weight:700; font-family:var(--font); }
.filters button:hover { background:var(--border); }
.filters button.active { background:var(--text); color:var(--bg); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:12px; }
.tool-card { display:flex; flex-direction:column; background:var(--panel);
  border-radius:14px; padding:18px 20px; }
.tool-card:hover { background:var(--hover); }
.tool-card h2 { font-size:16.5px; font-weight:700; margin:0; }
.tool-card h2 a { color:var(--text); text-decoration:none; }
.tool-card .tldr { flex:1; margin:8px 0 12px; font-size:13px; }
.ru-facts { display:flex; flex-direction:column; gap:3px; font-size:11.5px; color:var(--muted);
  border-top:1px solid var(--border); padding-top:10px; font-weight:600; }
.ok { color:#2ecc71; } .bad { color:#ff6b6b; }
.ru-block { background:var(--panel); border-radius:14px; padding:16px 20px; margin:18px 0; }
.ru-block h2 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:8px; }
.ru-block table { width:100%; border-collapse:collapse; font-size:13.5px; }
.ru-block td { padding:7px 4px; border-bottom:1px solid var(--border); }
.ru-block tr:last-child td { border:none; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:16px 0; }
.cols h2 { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:6px; }
.cols ul { margin-left:18px; font-size:13.5px; }
.pros li::marker { color:#2ecc71; } .cons li::marker { color:#ff6b6b; }
.btn { display:inline-block; background:var(--accent); color:#fff; padding:10px 24px;
  border-radius:99px; text-decoration:none; font-weight:700; margin:10px 0; font-size:13.5px; }

/* ---------- workflows ---------- */
.step { border-left:3px solid var(--accent); padding:4px 0 4px 16px; margin:18px 0; }
.step h2 { font-size:16px; font-weight:700; margin-bottom:4px; }
.step p { color:var(--muted); font-size:13.5px; }
.prompt { position:relative; background:var(--panel); border-radius:12px; margin-top:10px; }
.prompt pre { padding:12px 14px; font:12.5px/1.5 ui-monospace,monospace; white-space:pre-wrap; overflow-x:auto; }
.copy-btn { position:absolute; top:8px; right:8px; background:var(--bg); border:none;
  color:var(--muted); border-radius:99px; font-size:11px; padding:4px 12px; cursor:pointer; font-weight:700; }
.copy-btn:hover { color:var(--text); background:var(--border); }
.outcome { border-left:3px solid #2ecc71; padding-left:14px; margin:20px 0; }

/* ---------- комментарии ---------- */
#comments { border-top:1px solid var(--border); margin-top:24px; padding-top:16px; }
#comments h2 { font-size:14px; font-weight:800; margin-bottom:12px; }
.comment { background:var(--panel); border-radius:12px; padding:11px 15px; margin-bottom:8px; }
.comment .c-meta { font-size:12px; color:var(--muted); margin-bottom:3px; }
.comment .c-meta b { color:var(--text); }
#comment-form { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
#comment-form input, #comment-form textarea { background:var(--panel); border:1px solid transparent;
  border-radius:12px; color:var(--text); padding:10px 14px; font:13.5px var(--font); }
#comment-form input:focus, #comment-form textarea:focus { outline:none; border-color:var(--accent); }
#comment-form textarea { min-height:84px; resize:vertical; }
#comment-form button { background:var(--accent); color:#fff; border:none; border-radius:99px;
  padding:10px; font-weight:700; cursor:pointer; font-size:13.5px; }
.hp { position:absolute; left:-9999px; }

/* ---------- поиск, 404, футер ---------- */
#search-page-form input { width:100%; background:var(--panel); border:1px solid transparent;
  border-radius:99px; color:var(--text); padding:13px 20px; font-size:14.5px; margin-bottom:18px; }
#search-page-form input:focus { outline:none; border-color:var(--accent); }
.search-hit { background:var(--panel); border-radius:12px; margin-bottom:10px; padding:14px 18px; }
.search-hit h2 { font-size:15.5px; }
.search-hit h2 a { color:var(--text); text-decoration:none; }
.search-hit .type { font-size:11px; background:var(--bg); color:var(--muted);
  border-radius:99px; padding:2px 10px; margin-right:8px; font-weight:700; }
.notfound { text-align:center; padding:70px 0; }
.notfound h1 { font-size:110px; font-weight:800; color:var(--accent); line-height:1; }
.site-footer { color:var(--muted); font-size:12px; padding:26px 4px 0; }

@media (max-width:1000px) {
  .feed-rail { grid-template-columns:1fr; }
  .rail { position:static; }
}
@media (max-width:820px) {
  .shell { grid-template-columns:1fr; }
  .left-nav { display:none; }
  .logo b, .logo-ai { display:none; }
}

/* ---------- UGC: кнопка «Создать», форма, WYSIWYG, сообщество ---------- */
.create-btn { display:inline-flex; align-items:center; gap:7px; background:var(--panel);
  color:var(--text); border-radius:99px; padding:9px 18px; font-weight:700; font-size:13.5px;
  text-decoration:none; white-space:nowrap; }
.create-btn:hover { background:var(--border); }
.comm-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.comm-create { display:inline-flex; width:auto; padding:9px 20px; }
.submit-form { max-width:720px; display:flex; flex-direction:column; gap:8px; }
.sf-label { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted); margin-top:14px; }
.submit-form input[type="text"], .submit-form input:not([type]), #p-title, #p-author {
  background:var(--panel); border:1px solid transparent; border-radius:12px;
  color:var(--text); padding:12px 15px; font:15px var(--font); }
#p-title { font-size:17px; font-weight:600; }
.submit-form input:focus { outline:none; border-color:var(--accent); }
.comm-picker { display:flex; gap:8px; flex-wrap:wrap; }
.comm-opt input { position:absolute; opacity:0; }
.comm-opt span { display:inline-flex; align-items:center; gap:7px; background:var(--panel);
  border:1px solid transparent; border-radius:99px; padding:7px 16px; font-size:13px;
  font-weight:600; cursor:pointer; }
.comm-opt input:checked + span { border-color:var(--accent); background:var(--hover); }
.wysiwyg { border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.wy-toolbar { display:flex; gap:2px; padding:8px 10px; background:var(--panel);
  border-bottom:1px solid var(--border); flex-wrap:wrap; }
.wy-toolbar button { background:none; border:none; color:var(--muted); border-radius:8px;
  width:34px; height:32px; cursor:pointer; font-size:16px; }
.wy-toolbar button:hover { background:var(--border); color:var(--text); }
.wy-editor { min-height:260px; padding:16px 18px; font-size:15px; line-height:1.65; outline:none; }
.wy-editor:empty::before { content:attr(data-placeholder); color:var(--muted); }
.wy-editor h2 { font-size:19px; margin:14px 0 6px; }
.wy-editor blockquote { border-left:3px solid var(--accent); margin:10px 0; padding:4px 14px; color:var(--muted); }
.wy-editor pre { background:var(--panel); border-radius:10px; padding:10px 14px; font:13px ui-monospace,monospace; white-space:pre-wrap; }
.wy-editor ul, .wy-editor ol { margin:10px 0 10px 24px; }
.wy-editor a { color:var(--link); }
.sf-send { margin-top:16px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; cursor:pointer; font-size:14.5px; font-family:var(--font); }
#submit-status { color:var(--accent); font-size:13.5px; min-height:20px; }

/* ---------- аннотации авторских статей ---------- */
.annot-note { background:var(--panel); border-radius:12px; padding:12px 16px;
  color:var(--muted); font-size:13.5px; margin:16px 0; }
.orig-block { display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--panel); border:1px solid var(--border); border-radius:14px;
  padding:16px 20px; margin:20px 0; flex-wrap:wrap; }
.ob-text { display:flex; flex-direction:column; }
.ob-text b { font-size:15px; }
.ob-text span { font-size:12.5px; color:var(--muted); }

/* ---------- мнение редакции ---------- */
.editor-take { background:linear-gradient(180deg, var(--accent-dim), transparent);
  border:1px solid var(--border); border-left:3px solid var(--accent);
  border-radius:14px; padding:18px 22px; margin:24px 0; }
.et-head { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:800;
  text-transform:uppercase; letter-spacing:.07em; color:var(--accent); margin-bottom:10px; }
.et-badge { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px;
  border-radius:8px; background:var(--accent); color:var(--bg); font-size:14px; }
.editor-take p { font-size:15px; line-height:1.75; margin:10px 0; color:var(--text); }
.editor-take p:first-of-type { margin-top:0; }

/* ---------- полировка: скроллбар, фокус, прогресс чтения ---------- */
* { scrollbar-width:thin; scrollbar-color:var(--border) transparent; }
*::-webkit-scrollbar { width:10px; height:10px; }
*::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; border:2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background:var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
[contenteditable]:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.read-progress { position:fixed; top:0; left:0; height:3px; width:0; z-index:40;
  background:linear-gradient(90deg, var(--accent), var(--link)); transition:width .1s linear; }
.cap-plain { background:transparent; padding-left:6px; padding-right:6px; }
.cap-plain:hover { background:transparent; }
@media (max-width:560px) { .cap-lbl { display:none; } .post-thumb { width:64px; height:64px; font-size:24px; } }
/* мягкое появление карточек ленты */
@media (prefers-reduced-motion: no-preference) {
  .feed-col .post { animation:fadeUp .35s ease both; }
  .feed-col .post:nth-child(2){animation-delay:.03s} .feed-col .post:nth-child(3){animation-delay:.06s}
  .feed-col .post:nth-child(4){animation-delay:.09s} .feed-col .post:nth-child(5){animation-delay:.12s}
}
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ---------- реакции эмодзи (VC/Telegram-style) ---------- */
.reacts { display:flex; align-items:center; gap:6px; flex-wrap:wrap; position:relative; }
.react { display:inline-flex; align-items:center; gap:5px; background:var(--panel);
  border:1px solid transparent; border-radius:99px; padding:5px 11px; font-size:15px;
  cursor:pointer; line-height:1; transition:transform .1s, background .15s; }
.react:hover { background:var(--hover); transform:translateY(-1px); }
.react b { font-size:12.5px; font-weight:700; color:var(--muted); }
.react.react-on { background:var(--accent-dim); border-color:var(--accent); }
.react.react-on b { color:var(--accent); }
.react-add { color:var(--muted); font-weight:700; padding:5px 10px; }
.react-pop { position:absolute; bottom:calc(100% + 8px); left:0; z-index:15; display:none;
  gap:4px; background:var(--panel); border:1px solid var(--border); border-radius:99px;
  padding:6px 8px; box-shadow:0 8px 26px rgba(0,0,0,.35); }
.react-pop.open { display:flex; }
.react-pop button { background:none; border:none; font-size:20px; cursor:pointer; padding:2px 4px;
  border-radius:8px; transition:transform .1s; }
.react-pop button:hover { transform:scale(1.25); }
.reacts-big { margin:22px 0; }
.reacts-big .react { font-size:18px; padding:7px 14px; }
.reacts-big .react b { font-size:13.5px; }

/* ---------- личный кабинет + профиль ---------- */
.acc-link { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:50%; color:var(--muted); font-size:22px; text-decoration:none; }
.acc-link:hover { color:var(--text); background:var(--hover); }
.auth-box { max-width:420px; background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:22px; }
.auth-tabs { display:flex; gap:6px; margin-bottom:16px; }
.auth-tab { flex:1; background:var(--bg); border:1px solid var(--border); border-radius:10px;
  padding:9px; font-weight:700; color:var(--muted); cursor:pointer; font-family:var(--font); }
.auth-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.acc-form { display:flex; flex-direction:column; gap:9px; }
.acc-form label { font-size:12px; font-weight:700; color:var(--muted); margin-top:6px; }
.acc-form input, .acc-form textarea { background:var(--bg); border:1px solid var(--border);
  border-radius:10px; color:var(--text); padding:10px 13px; font:14px var(--font); }
.acc-form input:focus, .acc-form textarea:focus { outline:none; border-color:var(--accent); }
.acc-mut { color:var(--muted); font-size:13px; }
.acc-status { font-size:13px; color:var(--muted); min-height:18px; }
.acc-hint { color:var(--muted); font-size:12.5px; margin-top:12px; }
.acc-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.acc-card { background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:20px 22px; }
.acc-card-head { font-size:15px; font-weight:800; margin-bottom:14px; }
.avatar-row { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.avatar-lg { width:72px; height:72px; border-radius:50%; object-fit:cover; background:var(--bg); }
.mp-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.mp-row:last-child { border-bottom:none; }
.mp-main { flex:1; min-width:0; }
.mp-main a { color:var(--text); text-decoration:none; font-weight:600; }
.mp-main a:hover { color:var(--accent); }
.mp-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.mp-del { background:none; border:1px solid var(--border); color:var(--muted); border-radius:8px;
  width:30px; height:30px; cursor:pointer; }
.mp-del:hover { color:var(--down); border-color:var(--down); }
.profile-head { display:flex; gap:20px; align-items:center; margin-bottom:22px; flex-wrap:wrap; }
.avatar-xl { width:96px; height:96px; border-radius:50%; object-fit:cover; background:var(--panel); }
.profile-head h1 { font-size:26px; font-weight:800; letter-spacing:-.02em; }
.profile-bio { color:var(--muted); margin:6px 0; max-width:520px; }
.profile-links { display:flex; gap:14px; font-size:13.5px; }
.profile-sec { font-size:15px; font-weight:800; margin:20px 0 12px; }
@media (max-width:760px) { .acc-grid { grid-template-columns:1fr; } }
