/* BETA «Местные»: городское приложение. Полоса «Сейчас в городе», карточки новостей и постов жителей, «👍 Полезно»,
   профили, «Обсуждают», «Я», «＋», таб-бар с подписями. Подключается после c.css и feed.css и переопределяет их.
   Палитра: спокойный глубокий бирюзовый (--pri) + тёплый акцент (--warm); рубрики — токены --cat-*.
   Анимации — только transform/opacity. */
:root {
  --bg: #f3f4f1; --surface: #ffffff; --surface-2: #eef0ec; --surface-3: #dfe3de; --line: rgba(20, 40, 38, .11);
  --text: #15201f; --muted: #66716f; --mm-ph: #e7eae5;
  --pri: #0e6e6a; --pri-2: #0b5a57; --pri-soft: rgba(14, 110, 106, .11); --pri-text: #ffffff;
  --warm: #d9702a; --warm-soft: rgba(217, 112, 42, .13); --hot: #d4343c;
  --accent: var(--pri); --accent-soft: var(--pri-soft); --accent-text: #fff;
  --cat-util: #b7791f; --cat-roads: #c8531b; --cat-inc: #c9343c; --cat-city: #2f68a8; --cat-alert: #b0202a;
  --cat-culture: #7a4cb8; --cat-good: #2d8a4e; --cat-people: #0e7c78;
  --card-sh: 0 1px 2px rgba(20, 40, 38, .04);
  --tab: 58px; --hdr: 54px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1517; --surface: #172024; --surface-2: #1f2a2e; --surface-3: #2b383d; --line: rgba(255, 255, 255, .09);
    --text: #eef3f2; --muted: #98a6a4; --mm-ph: #1c262a;
    --pri: #42b7aa; --pri-2: #5cc6ba; --pri-soft: rgba(66, 183, 170, .16); --pri-text: #05211e;
    --warm: #f0a062; --warm-soft: rgba(240, 160, 98, .16); --hot: #f0656c;
    --cat-util: #e0a84a; --cat-roads: #f08a52; --cat-inc: #f07178; --cat-city: #74a7e0; --cat-alert: #ff6b72;
    --cat-culture: #b293e6; --cat-good: #5fc584; --cat-people: #4cc2b8;
    --card-sh: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1517; --surface: #172024; --surface-2: #1f2a2e; --surface-3: #2b383d; --line: rgba(255, 255, 255, .09);
  --text: #eef3f2; --muted: #98a6a4; --mm-ph: #1c262a;
  --pri: #42b7aa; --pri-2: #5cc6ba; --pri-soft: rgba(66, 183, 170, .16); --pri-text: #05211e;
  --warm: #f0a062; --warm-soft: rgba(240, 160, 98, .16); --hot: #f0656c;
  --cat-util: #e0a84a; --cat-roads: #f08a52; --cat-inc: #f07178; --cat-city: #74a7e0; --cat-alert: #ff6b72;
  --cat-culture: #b293e6; --cat-good: #5fc584; --cat-people: #4cc2b8;
  --card-sh: none;
}

/* ---------------------------------------------------------------- шапка */
.hdr { height: calc(var(--hdr) + var(--safe-top)); padding: var(--safe-top) 6px 0 16px; gap: 6px; background: var(--bg); }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.logo { font-size: 23px; font-weight: 850; letter-spacing: -.03em; line-height: 1; color: var(--pri); font-family: inherit; font-style: normal; }
.logo-c { font-size: 12px; font-weight: 750; color: var(--warm); letter-spacing: .01em; padding: 3px 8px; border-radius: 7px; background: var(--warm-soft); }
.h-t { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); border-radius: 12px; }
.hb:active { transform: scale(.9); }
.hb-n { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; line-height: 16px !important; background: var(--warm); color: #fff;
  font: 700 11px/18px -apple-system, "Segoe UI", Roboto, sans-serif; font-style: normal; text-align: center; border: 2px solid var(--bg); box-sizing: content-box;
  animation: bump .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { from { transform: scale(.3); } }

/* ---------------------------------------------------------------- панели и таб-бар */
.panes { bottom: calc(var(--tab) + var(--safe-bottom)); }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); }
.tb-l { font-size: 10.5px; font-weight: 650; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.tabbar [aria-selected="true"] { color: var(--pri); }
.tabbar button:active svg, .tabbar button:active .tb-me, .tabbar button:active .tb-pl { transform: scale(.88); }
.tabbar svg { transition: transform .15s; }
.tabbar svg .f { fill: none; }
.tabbar [aria-selected="true"] svg .f { fill: var(--pri-soft); }
.tb-pl { width: 46px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--pri); color: var(--pri-text); transition: transform .15s;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pri) 35%, transparent); }
.tb-dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
.tb-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hot); animation: dot 1.4s ease-out infinite; }
.tb-me { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--pri-text);
  background: var(--muted); transition: transform .15s; }
.tabbar [aria-selected="true"] .tb-me { background: var(--pri); }
.fab { display: none !important; }
.toast { bottom: calc(var(--tab) + 14px + var(--safe-bottom)); }
.newpill, #feedPill { top: calc(var(--safe-top) + var(--hdr) + 10px); background: var(--pri); color: var(--pri-text); }
.map-btns { bottom: calc(18px + var(--safe-bottom)); }
body.has-sv .tabbar { transform: translateY(100%); }

/* ---------------------------------------------------------------- общий аватар */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 750; line-height: 1; background: var(--av, #64748b); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.vf { flex: none; margin-left: 3px; vertical-align: -2px; }

/* ---------------------------------------------------------------- рубрика и район */
.cat { --cc: var(--cat-city); display: inline-flex; align-items: center; gap: 5px; flex: none; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 750; letter-spacing: .01em; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); white-space: nowrap; }
.cat::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.cat.sm { height: 19px; padding: 0 6px; font-size: 11px; }
.dchip { flex: none; max-width: 42%; height: 22px; padding: 0 8px; border-radius: 11px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  color: var(--text); background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dchip::before { content: "📍"; font-size: 10px; margin-right: 3px; }

/* ---------------------------------------------------------------- лента */
.pane-in.feed { padding-left: 0; padding-right: 0; padding-top: 0; }
.pane-in.feed #nowTop, .pane-in.feed .finj, .pane-in.feed .empty, .pane-in.feed .fend, .pane-in.feed .fmore .btn { margin-left: 12px; margin-right: 12px; }
#nowTop:not(:empty) { padding-top: 6px; }
.feed .chips-wrap { margin: 0; padding: 4px 0 10px; }
.md { flex: none; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 14px; font-weight: 650; white-space: nowrap; }
.md.on { background: var(--pri); color: var(--pri-text); box-shadow: none; }
.md:active, .chip:active { transform: scale(.95); }
.md-sep { flex: none; width: 1px; height: 22px; align-self: center; background: var(--line); margin: 0 3px; }
.chip.sm { height: 34px; border-radius: 10px; font-size: 13.5px; background: var(--surface); }
.chip.sm.on { background: var(--pri); color: var(--pri-text); }
.mine-sw[hidden] { display: none !important; }

/* «Сейчас в городе» */
.cstrip { padding: 2px 0 8px; }
.cs-h0 { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 8px; }
.cs-h0 b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.cs-h0 span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-rail { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 2px; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.cs-rail::-webkit-scrollbar { display: none; }
.cs { --cc: var(--pri); position: relative; flex: 0 0 auto; width: 142px; min-height: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-sh); text-align: left;
  scroll-snap-align: start; overflow: hidden; transition: transform .15s; }
.cs::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3.5px; border-radius: 0 3px 3px 0; background: var(--cc); }
.cs:active { transform: scale(.96); }
.cs-h { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cs-h i { font-style: normal; font-size: 14px; }
.cs b { max-width: 100%; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-s { font-size: 12px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cs-s i { font-style: normal; }
.cs-util { --cc: var(--cat-util); } .cs-roads { --cc: var(--cat-roads); } .cs-wx { --cc: var(--cat-city); } .cs-day { --cc: var(--pri); } .cs-top { --cc: var(--warm); }
.cs-ok { --cc: var(--ok); }
.cs.calm { --cc: var(--surface-3); }
.cs.calm b { color: var(--muted); }
.cs-alert { --cc: #fff; background: var(--hot); box-shadow: 0 6px 16px color-mix(in srgb, var(--hot) 35%, transparent); color: #fff; }
.cs-alert .cs-h, .cs-alert .cs-s { color: rgba(255, 255, 255, .88); }
.cs-alert::before { display: none; }
.cs-alert b, .cs-wx b { font-size: 15.5px; line-height: 1.22; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cs-alert::after { content: ""; position: absolute; right: 10px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: dot 1.4s ease-out infinite; }
.cs.sk { width: 142px; min-height: 84px; background: var(--surface-2); box-shadow: none; animation: shimmer 1.2s ease-in-out infinite alternate; }
.cs.sk::before { display: none; }

/* ---------------------------------------------------------------- карточка */
.ig { position: relative; margin: 0 12px 12px; padding: 12px 14px 4px; background: var(--surface); border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), var(--card-sh); content-visibility: auto; contain-intrinsic-size: auto 420px; }
.ig.enter { animation: igin .45s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes igin { from { opacity: 0; transform: translateY(-16px); } }
.ig.gone { overflow: hidden; opacity: 0; transition: height .3s ease, opacity .2s, padding .3s, margin .3s; padding: 0; margin-bottom: 0; }
.ig.hot { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hot) 55%, transparent); }
.ig-meta { display: flex; align-items: center; gap: 6px; min-height: 28px; margin-right: -8px; }
.ig-ago { flex: none; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ig-sp { flex: 1; }
.ig-more { flex: none; width: 34px; height: 30px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.ig-more svg { fill: currentColor; }
.ig-t { margin: 6px 0 0; font-size: 17px; line-height: 1.28; font-weight: 780; letter-spacing: -.012em; text-wrap: pretty; cursor: pointer; }

.ig-h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ig-h.u { margin-top: 8px; }
.ig-av { flex: none; border-radius: 50%; padding: 0; }
.ig-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ig-n { display: flex; align-items: center; min-width: 0; text-align: left; }
.ig-n b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-src { margin-top: 10px; }
.ig-src .ig-who { flex-direction: row; align-items: baseline; gap: 6px; }
.ig-src .ig-n b { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.ig-src .ig-sub { font-size: 11.5px; opacity: .8; }
.ig-src .ig-sub::before { content: "· "; }
.ig-fol { flex: none; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--pri); box-shadow: inset 0 0 0 1.5px var(--pri); }
.ig-fol.on { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.ig-src .ig-fol { height: 24px; padding: 0 9px; font-size: 12px; }

.ig-m { position: relative; width: 100%; margin-top: 10px; border-radius: 12px; overflow: hidden; background: var(--mm-ph); cursor: pointer; transform: translateZ(0); }
.ig-m img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s ease; }
.ig-m img.ok { opacity: 1; }
.ig-m img.cv { object-fit: cover; }
.ig-m img.ct { object-fit: contain; }
.ig-m img.bad { display: none; }
.ig-m .cr { left: auto; right: 8px; bottom: 8px; }
.ig-car { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ig-car::-webkit-scrollbar { display: none; }
.ig-sl { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.ig-cnt { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(10, 20, 20, .62); pointer-events: none; }
.ig-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; margin-top: 7px; pointer-events: none; }
.ig-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: background .2s, width .2s; }
.ig-dots i.on { background: var(--pri); width: 14px; }
/* двойной тап — «Полезно»: всплывающий 👍 в круге */
.ig-heart { position: absolute; z-index: 3; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--pri); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); opacity: 0; transform: scale(0); pointer-events: none; }
.ig-heart svg { width: 44px; height: 44px; }
.ig-heart.go { animation: thumbpop .9s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes thumbpop {
  0% { opacity: 0; transform: scale(.2) rotate(-25deg); }
  18% { opacity: 1; transform: scale(1.12) rotate(6deg); }
  34% { transform: scale(.96) rotate(-3deg); }
  50% { transform: scale(1) rotate(0); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.7) translateY(-14px); }
}

.ig-bd { padding: 0; }
.ig-cap { position: relative; }
.ig-x { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: color-mix(in srgb, var(--text) 82%, var(--muted)); cursor: pointer; white-space: pre-line; }
.ig-x.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.ig-x.big { font-size: 16px; color: var(--text); }
.ig-x.big.clamp { -webkit-line-clamp: 5; }
.ig-m + .ig-dots + .ig-bd .ig-x, .ig-m + .ig-bd .ig-x { margin-top: 9px; }
.ig-xm { color: var(--pri); font-size: 13.5px; font-weight: 650; margin-top: 2px; }
.flist .finj { margin-top: 4px; margin-bottom: 18px; }

/* действия: «👍 Полезно: 37» · «💬 12» · ↗ · 🔖 */
.ig-act { display: flex; align-items: center; gap: 6px; margin: 10px -6px 0; padding: 6px 0 4px; border-top: 1px solid var(--line); }
.ig-b { height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.ig-b.ic { width: 36px; padding: 0; justify-content: center; }
.ig-b:active { background: var(--surface-2); }
.ig-b:active svg { transform: scale(.85); }
.ig-b svg, .cm-lk svg { transition: transform .12s; flex: none; }
.ig-b .o, .cm-lk .o { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig-b.lk.on { color: var(--pri); background: var(--pri-soft); }
.ig-b.lk.on .o, .cm-lk.on .o { fill: color-mix(in srgb, var(--pri) 30%, transparent); stroke: var(--pri); }
.ig-likes b { font-weight: 750; }
.ig-b.bm.on { color: var(--warm); }
.ig-b.bm.on .o { fill: var(--warm); stroke: var(--warm); }
.ig-b.pop svg, .sv-lk.pop { animation: pop .42s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }

/* скелетон карточки */
.ig.skel { cursor: default; padding-bottom: 14px; }
.ig .sk, .ig .sk-img { animation: shimmer 1.2s ease-in-out infinite alternate; }
.ig .sk { display: block; height: 11px; margin: 7px 0; border-radius: 6px; background: var(--surface-2); }
.ig .sk.t { height: 15px; }
.ig .sk-img { border-radius: 12px; }
.ig .w40 { width: 40%; } .ig .w25 { width: 25%; height: 18px; } .ig .w30 { width: 30%; } .ig .w90 { width: 90%; } .ig .w60 { width: 60%; }

/* «Кого почитать» */
.sug { padding: 6px 0 10px; }
.sug .row-h { padding: 0 14px; }
.sug-rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 12px 14px; scrollbar-width: none; }
.sug-rail::-webkit-scrollbar { display: none; }
.sug-c { position: relative; flex: 0 0 148px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 12px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; cursor: pointer; }
.sug-c b { font-size: 14px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sug-c i { font-style: normal; font-size: 12px; color: var(--muted); min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.btn.sm { min-height: 32px; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; margin-top: 6px; width: 100%; }
.btn.sm.on, .btn.pf-b.on { background: var(--surface-2); color: var(--text); box-shadow: none; }
.btn { background: var(--pri); color: var(--pri-text); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }

/* ---------------------------------------------------------------- экраны */
.screen { background: var(--bg); }
.s-head { border-bottom: 1px solid var(--line); }
.s-back span { display: none; }
.s-back, .s-share { color: var(--text); }
.screen.away { transform: translateX(100%); pointer-events: none; }

/* экран поста */
.s-post .s-body { padding-bottom: 20px; }
.ig.full { content-visibility: visible; padding-bottom: 0; }
.ig.full .ig-m { cursor: default; }
.pa { padding: 6px 16px 4px; }
.pa .tag { margin-top: 6px; }
.pa h1 { margin: 10px 0 6px; font-size: 23px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.pa .art-txt p { font-size: 16.5px; }
.pa .art-txt.ugc p { font-size: 16px; line-height: 1.5; }
.pa .art-txt b { font-weight: 750; }
.pa-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.pa-src { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.pa-src .as { background: var(--surface-2); box-shadow: none; }
.pa-src .as span { font-weight: 700; }
.pa-src .as i { color: var(--pri); }
.pa .art-map { margin-top: 14px; }
.pa .muted.small { margin-top: 12px; }

.cms { padding: 6px 16px 0; }
.cms-h { display: flex; gap: 6px; align-items: baseline; margin-top: 22px; }
.cms-h span { color: var(--text); }
.cm-th + .cm-th { margin-top: 2px; }
.cm { display: flex; gap: 11px; padding: 8px 0; align-items: flex-start; }
.cm.rp { padding: 6px 0; }
.cm-rps { margin-left: 43px; }
.cm.new { animation: cmnew 1.6s ease both; border-radius: 12px; }
@keyframes cmnew { from { background: color-mix(in srgb, var(--pri) 16%, transparent); } }
.cm.pend { opacity: .55; }
.cm-b { flex: 1; min-width: 0; }
.cm-b p { margin: 0; font-size: 14.5px; line-height: 1.38; overflow-wrap: anywhere; }
.cm-b p b { font-weight: 700; margin-right: 2px; }
.cm-m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cm-m button { font-weight: 650; color: var(--muted); }
.cm-lk { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); margin-top: 2px; }
.cm-lk svg { width: 15px; height: 15px; }
.cm-lk.on svg { animation: pop .4s; }
.cms-more { display: block; margin: 8px 0 0 43px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.cms-e { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 0 12px; text-align: center; }
.cms-e b { font-size: 16px; }
.cms-e span { font-size: 13.5px; color: var(--muted); }
.cms-sk i { display: block; height: 38px; margin: 10px 0; border-radius: 12px; background: var(--surface-2); animation: shimmer 1.2s ease-in-out infinite alternate; }
.cms-sk i:nth-child(2) { width: 80%; } .cms-sk i:nth-child(3) { width: 60%; }

.cm-bar { flex: none; padding: 8px 12px calc(8px + var(--safe-bottom)); background: var(--bg); border-top: .5px solid var(--line); }
.cm-in { display: flex; align-items: flex-end; gap: 10px; }
.cm-in .av { margin-bottom: 4px; }
.cm-in textarea { flex: 1; min-width: 0; height: 40px; max-height: 110px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg);
  resize: none; outline: none; font-size: 15px; line-height: 1.35; }
.cm-in textarea:focus { border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.cm-send { flex: none; height: 40px; padding: 0 4px; font-size: 14.5px; font-weight: 700; color: var(--pri); }
.cm-send:disabled { opacity: .4; }
.cm-err { margin-bottom: 8px; padding: 9px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; line-height: 1.35; font-weight: 550;
  animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.cm-to { display: flex; align-items: center; justify-content: space-between; margin: -2px -12px 8px; padding: 6px 14px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.cm-to button { font-size: 20px; line-height: 1; color: var(--muted); width: 28px; }

.pmore { padding: 20px 0 6px; }
.pm-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px 10px; }
.pm-h b { font-size: 15px; }
.pm-h button { color: var(--pri); font-size: 14px; font-weight: 650; }

/* экран поста: карточка без рамки на всю ширину экрана */
.ig.full { margin: 0; padding: 10px 16px 0; border-radius: 0; box-shadow: none; }
.ig.full .ig-act { margin: 10px -6px 0; }

/* карточки 2 колонки (профиль, «Обсуждают», сохранённое, «Ещё от») */
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 12px 4px; }
.tl { --cc: var(--cat-city); position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--card-sh); text-align: left; transition: transform .15s; }
.tl:active { transform: scale(.97); }
.tl-im { position: relative; display: block; aspect-ratio: 4 / 3; margin: 6px 6px 0; border-radius: 10px; overflow: hidden; background: var(--mm-ph); }
.tl-im img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tl-im img.ok { opacity: 1; }
.tl.noimg .tl-im { display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 12%, var(--surface)); aspect-ratio: 16 / 7; }
.tl-e { font-size: 26px; }
.tl-multi { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 7px; color: #fff;
  font-size: 11px; font-weight: 700; background: rgba(10, 20, 20, .6); }
.tl-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 10px 10px; min-width: 0; }
.tl-tx b { font-size: 13.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-l { font-size: 11.5px; color: var(--muted); margin-top: auto; }
.tl-l b { font-size: inherit; font-weight: 650; display: inline; }
.tl.big { grid-column: span 2; flex-direction: row; }
.tl.big .tl-im { flex: 0 0 46%; aspect-ratio: auto; min-height: 128px; margin: 6px 0 6px 6px; }
.tl.big .tl-tx { padding: 10px 12px; }
.tl.big .tl-tx b { font-size: 15.5px; -webkit-line-clamp: 4; }
.tgrid.sk .tl { height: 196px; background: var(--surface-2); box-shadow: none; animation: shimmer 1.2s ease-in-out infinite alternate; }
.tgrid.sk .tl.big { height: 140px; }
.pmore .tgrid { padding-top: 0; }

/* ---------------------------------------------------------------- профиль */
.pf { padding: 14px 16px 6px; }
.pf-top { display: flex; align-items: center; gap: 14px; }
.pf-av { flex: none; border-radius: 50%; position: relative; }
.pf-av.fresh::after { content: ""; position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--warm); border: 2.5px solid var(--bg); }
.pf-ed { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: var(--pri); color: var(--pri-text); border: 2px solid var(--bg); }
.pf-id { flex: 1; min-width: 0; }
.pf-n { display: flex; align-items: center; }
.pf-n b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.pf-k { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pf-st { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 14px; padding: 10px 4px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.pf-st.three { grid-template-columns: repeat(3, 1fr); }
.pf-st > * { display: flex; flex-direction: column; align-items: center; }
.pf-st > * + * { border-left: 1px solid var(--line); }
.pf-st b { font-size: 17px; font-weight: 800; }
.pf-st i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.2; }
.pf-d { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-line; }
.pf-url { display: block; margin-top: 6px; font-size: 14px; font-weight: 650; color: var(--pri); }
.pf-btns { display: flex; gap: 8px; margin: 12px 0 2px; }
.btn.pf-b { flex: 1; min-width: 0; min-height: 38px; height: 38px; padding: 0 8px; border-radius: 11px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-muted { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pf-bdg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-bdg span { padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 650; background: var(--warm-soft); color: color-mix(in srgb, var(--warm) 70%, var(--text)); }
.pf-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 16px 0; padding: 3px; border-radius: 12px; background: var(--surface-2); }
.pf-tabs button { position: relative; z-index: 1; height: 34px; display: grid; place-items: center; color: var(--muted); font-size: 14px; font-weight: 650; }
.pf-tabs button.on { color: var(--text); }
.pf-ind { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow-s);
  transition: transform .25s cubic-bezier(.2, .9, .25, 1); }
.pf-feed { padding-top: 12px; }
.pf-more { display: grid; place-items: center; padding: 20px; }
.s-prof .s-body .empty { padding-top: 34px; }
.me-pf .pf-st button { color: inherit; }
.note { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--wx-bg); color: var(--wx-text); font-size: 13.5px; }

/* списки (скрытые, «Читаю») */
.ul { display: flex; flex-direction: column; }
.ul-r { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.ul-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ul-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ul-t i { font-style: normal; font-size: 13px; color: var(--muted); }
.ul-r .btn.sm { width: auto; margin: 0; flex: none; }

/* меню «⋯», «＋» */
.mn-top { display: flex; align-items: center; gap: 12px; padding: 6px 0 12px; border-bottom: .5px solid var(--line); }
.mn-top span { display: flex; flex-direction: column; min-width: 0; }
.mn-top b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-top i { font-style: normal; font-size: 13px; color: var(--muted); }
.mn-h { margin: 6px 0 6px; font-size: 19px; }
.mn-l { display: flex; flex-direction: column; margin: 4px 0 10px; }
.mn-l button { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 4px; font-size: 16px; text-align: left; border-bottom: .5px solid var(--line); }
.mn-l button:last-child { border-bottom: 0; }
.mn-l button span { width: 26px; text-align: center; font-size: 18px; }
.mn-l button.bad { color: #ed4956; font-weight: 600; }
.mn-l button:active { background: var(--surface-2); }
.plus h2 { margin: 4px 0 12px; font-size: 21px; text-align: center; }
.plus-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 14px; border-radius: 18px; color: #fff; text-align: left; min-height: 124px; }
.pg span { font-size: 34px; line-height: 1; margin-bottom: auto; }
.pg b { font-size: 17px; margin-top: 12px; }
.pg i { font-style: normal; font-size: 12.5px; opacity: .88; }
.pg.ph { background: linear-gradient(150deg, var(--pri), var(--pri-2)); }
.pg.ds { background: linear-gradient(150deg, #e08a45, #c9622a); }
.pg:active { transform: scale(.97); }
.plus-l { display: flex; flex-direction: column; margin-top: 10px; }
.plus-l button { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 2px; border-bottom: .5px solid var(--line); }
.plus-l button:last-child { border-bottom: 0; }
.plus-l span { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--surface-2); }
.plus-l b { font-size: 15.5px; } .plus-l i { font-style: normal; font-size: 13px; color: var(--muted); }

/* новый пост */
.s-cp .s-body { padding-bottom: 30px; }
.cp-car { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cp-car::-webkit-scrollbar { display: none; }
.cp-s { position: relative; flex: 0 0 74%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; scroll-snap-align: center; background: var(--mm-ph); }
.cp-s img { width: 100%; height: 100%; object-fit: cover; }
.cp-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 1; }
.cp-n { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 650; }
.cp-add { flex: 0 0 34%; aspect-ratio: 4 / 5; border-radius: 16px; border: 2px dashed var(--surface-3); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted); font-weight: 650; font-size: 13.5px; }
.cp-add span { font-size: 28px; }
.cp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 14px 16px 0; width: calc(100% - 32px); aspect-ratio: 16 / 10;
  border-radius: 18px; border: 2px dashed var(--surface-3); }
.cp-empty span { font-size: 40px; } .cp-empty b { font-size: 16px; } .cp-empty i { font-style: normal; font-size: 13px; color: var(--muted); }
.cp-who { position: relative; margin: 8px 16px 6px; }
.cp-who textarea { width: 100%; padding: 12px 14px 24px; border: 0; border-radius: 14px; background: var(--surface-2); outline: none; resize: none; font-size: 16px; line-height: 1.45; }
.cp-cnt { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: var(--muted); }
.cp-row { position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 0 16px; padding: 13px 0; border-bottom: .5px solid var(--line); text-align: left; }
.cp-row > span { font-size: 20px; width: 26px; text-align: center; }
.cp-row b { flex: 1; font-size: 15px; font-weight: 600; }
.cp-row i { font-style: normal; font-size: 13.5px; color: var(--muted); }
.cp-row em { font-style: normal; color: var(--muted); font-size: 20px; }
.cp-row select { appearance: none; -webkit-appearance: none; border: 0; background: none; font-size: 14.5px; color: var(--muted); text-align: right; max-width: 52%; outline: none; }
.cp-unp { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-style: normal; font-size: 16px; }
.cp-rules { margin: 14px 16px 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cp-err { margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 14px; font-weight: 550; animation: shake .35s; }
.btn.cp-go { display: flex; margin: 16px 16px 0; width: calc(100% - 32px); }
.rl { text-align: center; padding-top: 28px; }
.rl-e { font-size: 56px; }
.rl h1 { margin: 8px 0 4px; }
.rl-l { text-align: left; margin: 18px 0 20px; padding-left: 22px; }
.rl-l li { margin: 0 0 12px; font-size: 15.5px; line-height: 1.45; }
.rl .btn { margin-top: 8px; }
.dn { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 26px 20px; }
.dn-e { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; background: linear-gradient(135deg, #34d399, #059669);
  animation: dnpop .6s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 14px 36px rgba(5, 150, 105, .35); }
.dn-e.p { background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 14px 36px rgba(245, 158, 11, .35); }
@keyframes dnpop { from { transform: scale(.2); opacity: 0; } }
.dn h1 { margin: 22px 0 6px; font-size: 26px; }
.dn p { color: var(--muted); margin: 0 0 24px; line-height: 1.5; }
.dn .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- «Обсуждают» */
#pane-top .pane-in { padding-left: 0; padding-right: 0; }
.top-h { display: flex; gap: 8px; justify-content: space-between; padding: 10px 12px 2px; }
#topBody .row-h { padding: 18px 14px 4px; }
.top-ph { display: flex; align-items: center; }
.vw { margin-left: auto; display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 9px; padding: 2px; flex: none !important; }
.vw button { height: 28px; padding: 0 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
.vw button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
#topBody .empty { margin: 0 12px; }
.nb-l, .nb-g { margin: 4px 12px 0; padding: 2px 12px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-sh); }
.nb-gr + .nb-gr { border-top: 1px solid var(--line); }
.nb-d { padding: 10px 0 0; font-size: 12px; font-weight: 750; color: var(--muted); letter-spacing: .01em; }
.nb-r { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.nb-l .nb-r + .nb-r { border-top: 1px solid var(--line); }
.nb-r .btn.sm { width: auto; margin: 0; flex: none; }
.ta-me { font-size: 12.5px; color: var(--muted); }
.nb-l.sk { height: 180px; background: var(--surface-2); box-shadow: none; animation: shimmer 1.2s ease-in-out infinite alternate; }
.nb-l.sk span { display: none; }
.src-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 12px 16px; }
.src { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border-radius: 14px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.src:active { transform: scale(.97); }
.src-t { min-width: 0; display: flex; flex-direction: column; }
.src-t b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.src-t i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-new { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); }

/* ---------------------------------------------------------------- «Я» */
#pane-me .pane-in { padding-left: 0; padding-right: 0; }
.me-menu { margin: 12px 16px 6px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.me-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.me-menu button:last-child { border-bottom: 0; }
.me-menu span { font-size: 19px; width: 24px; text-align: center; }
.me-menu b { flex: 1; font-size: 15px; font-weight: 600; }
.me-menu i { font-style: normal; color: var(--muted); font-size: 14px; }
.me-menu em { font-style: normal; color: var(--muted); font-size: 20px; }
.me-menu button:active { background: var(--surface-2); }
#pane-me .empty { margin: 0 12px; }

/* ---------------------------------------------------------------- уведомления */
.nts { padding: 4px 0 20px; }
.nt-h { padding: 14px 16px 6px; font-size: 15px; font-weight: 800; }
.nt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 16px; text-align: left; }
.nt.new { background: var(--pri-soft); }
.nt-sys { background: var(--surface-2); }
.nt-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.nt-t q { display: block; color: var(--muted); quotes: "«" "»"; margin-top: 1px; }
.nt-t i { font-style: normal; color: var(--muted); }
.nt-th { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.nt-f { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; background: var(--pri); color: var(--pri-text); font-size: 13.5px; font-weight: 700; display: grid; place-items: center; }
.nt-f.on { background: var(--surface-2); color: var(--text); }

/* редактирование профиля */
.ep h2 { margin: 4px 0 12px; }
.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.fld input, .fld textarea, .fld select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; outline: none; resize: none; }
.ep .tg { margin-bottom: 14px; }

/* просмотр «Главное за день» / свежих новостей источника */
.sv-brand { color: #fff; text-align: left; }
.sv-brand .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.btn.sv-lk { flex: none; width: 52px; padding: 0; font-size: 22px; background: rgba(255, 255, 255, .18); }
.btn.sv-lk.on { background: var(--pri); }
.btn.sv-read { background: #fff; color: #0b1514; }

@media (prefers-reduced-motion: reduce) {
  .ig.enter, .ig-heart.go, .ig-b.pop svg, .cm.new, .dn-e, .cs-alert::after { animation: none !important; }
}
@media (min-width: 640px) {
  .flist, .cstrip, #topBody, #meBody, .feed .chips-wrap { max-width: 600px; margin-left: auto; margin-right: auto; }
}
