:root {
  --green: #d5ff35; --green-hover: #e3ff76; --on-green: #090b02;
  --paper: #000; --white: #101211; --surface-2: #171a18; --control: #0d0f0e; --sage: #1a210f;
  --ink: #f7f7f4; --muted: #a3a7a3; --line: #292d2a; --line-strong: #3a403a; --red: #ff8591;
  --chart-post: var(--green); --chart-clip: #92998e;
  --radius: 18px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Russo One", Impact, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper: #f3f4ef; --white: #ffffff; --surface-2: #eef0ea; --control: #ffffff; --sage: #f1f9d4;
  --ink: #0d0f0e; --muted: #5d625d; --line: #dfe2da; --line-strong: #c8ccc3; --chart-clip: #9aa096;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.45 var(--font-body); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.green { color: var(--green); }
:root[data-theme="light"] .green { color: #5c7a00; }
.red { color: var(--red); }
.display { font-family: var(--font-display); letter-spacing: .01em; }
.hidden { display: none !important; }

/* ---------- boot / login ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; }
.boot .logo-mark { width: 34px; height: 34px; margin: 0 auto 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--green); display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 70%; height: 70%; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-display); text-transform: uppercase; line-height: .95; font-size: 17px; }
.logo-text small { display: block; font-family: var(--font-body); text-transform: lowercase; font-size: 10px; letter-spacing: .12em; color: var(--muted); }

.login { min-height: 100vh; display: flex; flex-direction: column; padding: 22px clamp(16px, 4vw, 48px); }
.login header, .login footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login footer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.login main { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto; padding: 40px 0; }
.login h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 14px 0 22px; font-weight: 400; }
.login h1 span { color: var(--green); }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.login-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.login-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 8px 0 22px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: 13px; }
.check input { accent-color: var(--green); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.check a { text-decoration: underline; }
.hint-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px; text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* ---------- buttons / controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--control); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn-green { background: var(--green); color: var(--on-green); border-color: var(--green); }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-dark { background: #0b0c0b; color: #f7f7f4; border-color: #0b0c0b; }
.btn-vk { background: #0077ff; border-color: #0077ff; color: #fff; }
.btn-block { width: 100%; padding: 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.chip { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 500; }
.chip.active { background: var(--green); color: var(--on-green); border-color: var(--green); font-weight: 700; }
.chip.soft.active { background: var(--sage); color: var(--green); border-color: #4a5a1a; }
:root[data-theme="light"] .chip.soft.active { color: #4b6400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: flex; background: var(--control); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 10px; font-size: 12px; color: var(--muted); }
.seg button.active { background: var(--green); color: var(--on-green); font-weight: 700; }
.input, select.input { background: var(--control); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; outline: none; }
.input:focus { border-color: var(--green); }
select.input { padding-right: 30px; }
.cb { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.cb input { accent-color: var(--green); width: 16px; height: 16px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 184px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--paper); z-index: 5; }
.side .tagline { font-size: 10px; color: var(--muted); margin: 8px 0 26px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--green); color: var(--on-green); font-weight: 700; }
.nav svg, .side-bottom svg { width: 16px; height: 16px; flex: none; }
.nav .count { margin-left: auto; font-size: 10px; background: var(--surface-2); border-radius: 99px; padding: 1px 6px; color: var(--ink); }
.nav a.active .count { background: rgba(0,0,0,.15); color: var(--on-green); }
.side-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.side-bottom button { background: none; border: 0; color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 6px 8px; }
.main { min-width: 0; }

.trial { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; background: var(--green); color: var(--on-green); padding: 0 24px; min-height: 64px; }
.trial > div { padding: 10px 18px; border-right: 1px solid rgba(0,0,0,.12); height: 100%; display: flex; flex-direction: column; justify-content: center; }
.trial > div:first-child { flex-direction: row; align-items: center; gap: 12px; font-weight: 700; padding-left: 0; }
.trial > div:last-of-type { border-right: 0; }
.trial small { font-size: 10px; opacity: .7; }
.trial .big { font-family: var(--font-display); font-size: 20px; }
.trial .big span { font-size: 12px; font-family: var(--font-body); font-weight: 600; }
.trial s { font-size: 10px; opacity: .6; }
.trial .ico { width: 28px; height: 28px; border: 1.5px solid rgba(0,0,0,.4); border-radius: 50%; display: grid; place-items: center; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 4; }
.page-title { background: var(--green); color: var(--on-green); font-family: var(--font-display); font-size: 17px; padding: 9px 18px; border-radius: 10px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.status-pill { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; font-size: 11px; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--control); display: grid; place-items: center; position: relative; }
.icon-btn svg { width: 16px; height: 16px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sage); color: var(--green); display: grid; place-items: center; font-weight: 700; border: 1px solid #3b4a12; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.content { padding: 24px 32px 60px; }
.lead { color: var(--muted); font-size: 12px; margin: 4px 0 16px; }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 17px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { position: relative; }
.stat .label { font-size: 11px; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 30px; margin: 14px 0 12px; }
.stat .sub { font-size: 10px; color: var(--muted); }
.stat .sub a { text-decoration: underline; }
.stat .ico { position: absolute; right: 16px; top: 16px; color: var(--green); width: 16px; height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.35fr; gap: 16px; margin-bottom: 16px; }
.niche-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.niche-row:last-child { border-bottom: 0; }
.niche-row .nico { width: 24px; height: 24px; border-radius: 7px; background: var(--sage); color: var(--green); display: grid; place-items: center; }
.niche-row .nico svg { width: 13px; height: 13px; }
.niche-row b { margin-left: auto; font-family: var(--font-display); font-weight: 400; font-size: 13px; }
.niche-row .delta { width: 44px; text-align: right; font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 12px; font-size: 10px; color: var(--muted); }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.section-title h2 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0; }
.advice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.advice .card { display: block; }
.advice .value { font-family: var(--font-display); font-size: 20px; margin: 8px 0 6px; color: var(--green); }
:root[data-theme="light"] .advice .value { color: #4b6400; }

/* ---------- feed ---------- */
.feed-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.search { display: flex; gap: 8px; margin-bottom: 18px; }
.search .input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .search { flex-wrap: wrap; } .search .input { flex-basis: 100%; } }
.days-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.days-head b { color: var(--ink); }
.days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.day { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.day b { font-size: 11px; font-weight: 700; }
.day small { font-size: 8.5px; color: var(--muted); }
.day.active { background: var(--green); border-color: var(--green); color: var(--on-green); }
.day.active small { color: var(--on-green); opacity: .75; }
.day.wide { width: auto; padding: 0 16px; border-radius: 999px; }
.day.wide b { color: var(--green); }
.day.wide.active b { color: var(--on-green); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.sort-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 16px 0 6px; flex-wrap: wrap; }
.sort-row label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.sort-row select { font-size: 12px; padding: 8px 12px; }
.found { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.found b { color: var(--ink); }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { width: 40px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.active { background: var(--green); color: var(--on-green); }
.view-toggle svg { width: 16px; height: 16px; }
.note { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.shops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shops.list { grid-template-columns: 1fr; }
.shop { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; position: relative; min-width: 0; }
.shops.list .shop { grid-template-columns: 64px 1fr; }
.shop .cover { width: 96px; height: 112px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.shops.list .shop .cover { width: 64px; height: 64px; }
.shop .body { min-width: 0; padding-right: 30px; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--sage); color: var(--green); border-radius: 5px; padding: 2px 7px; font-size: 9px; font-weight: 700; margin-right: 4px; }
:root[data-theme="light"] .badge { color: #4b6400; }
.badge.grey { background: var(--surface-2); color: var(--muted); }
.shop .title { font-weight: 700; font-size: 13px; margin: 6px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop .author { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop .pub { color: var(--green); font-weight: 700; font-size: 13px; margin: 10px 0 8px; }
:root[data-theme="light"] .shop .pub { color: #4b6400; }
.metrics { display: flex; gap: 12px; align-items: center; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.metrics svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.metrics .g { color: var(--green); font-weight: 700; }
:root[data-theme="light"] .metrics .g { color: #4b6400; }
.fav { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--control); display: grid; place-items: center; }
.fav svg { width: 14px; height: 14px; }
.fav.on { background: var(--green); color: var(--on-green); border-color: var(--green); }
.fav.on svg { fill: currentColor; }
.price { font-family: var(--font-display); font-size: 15px; }
.price s { font-family: var(--font-body); font-size: 10px; color: var(--muted); margin-left: 6px; }
.potential { position: absolute; right: 12px; bottom: 12px; text-align: right; }
.potential b { font-family: var(--font-display); font-size: 22px; color: var(--green); font-weight: 400; }
:root[data-theme="light"] .potential b { color: #4b6400; }
.potential small { display: block; font-size: 9px; color: var(--muted); }
.stars { color: var(--green); font-size: 11px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 60px 20px; text-align: center; color: var(--muted); font-size: 12px; background: var(--white); }
.empty b { display: block; color: var(--ink); font-size: 14px; margin: 10px 0 4px; }

.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; }
.filters .scroll { overflow: auto; flex: 1; padding-right: 4px; }
.filters h4 { font-family: var(--font-display); font-weight: 400; margin: 0 0 14px; font-size: 16px; }
.filters .grp { margin-bottom: 18px; }
.filters .grp > label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.filters .foot { font-size: 10px; color: var(--muted); margin-top: 10px; }
.cat-list .cat { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.cat-list .cat span:first-of-type { flex: 1; }
.cat-list .cat small { color: var(--muted); width: 50px; text-align: right; }
.cat-list .cat input { accent-color: var(--green); }

/* ---------- details ---------- */
.detail-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-bottom: 16px; }
.detail-head img { width: 220px; height: 220px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.detail-head h1 { font-size: 22px; margin: 8px 0 10px; line-height: 1.25; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kv .card { padding: 12px 14px; }
.kv .label { font-size: 10px; color: var(--muted); }
.kv .value { font-family: var(--font-display); font-size: 18px; margin-top: 6px; }
.tw { overflow-x: auto; min-width: 0; }
.grid-2 > *, .feed-layout > *, .profile-grid > * { min-width: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 12px; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; font-size: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
table.t td.num, table.t th.num { text-align: right; }
.back { font-size: 12px; color: var(--muted); display: inline-block; margin-bottom: 14px; }

/* ---------- плитки «Взлетают сейчас» ---------- */
.feed-sub { font-size: 12px; color: var(--muted); margin: 22px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.tiles > .empty { grid-column: 1 / -1; }
.tile { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s; }
.tile:hover { border-color: var(--line-strong); }
.tile-link { position: absolute; inset: 0; z-index: 1; }
.tile-cover { position: relative; height: 215px; background: var(--surface-2); }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-tag { position: absolute; top: 10px; left: 10px; background: rgba(9, 11, 2, .82); color: var(--green); font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.tile-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(9, 11, 2, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tile-fav svg { width: 15px; height: 15px; }
.tile-fav.on { background: var(--green); color: var(--on-green); }
.tile-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.tile-cat { font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tile-title { font-size: 13px; font-weight: 800; line-height: 1.38; margin: 8px 0 10px; min-height: 2.76em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-author { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); min-width: 0; }
.tile-author svg { width: 13px; height: 13px; flex: 0 0 13px; }
.tile-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-rate { font-family: var(--font-display); color: var(--green); font-size: 22px; margin: 16px 0 14px; white-space: nowrap; }
:root[data-theme="light"] .tile-rate { color: #4b6400; }
.tile-rate small { font-family: var(--font-body); font-size: 9.5px; color: var(--muted); margin-left: 5px; }
.tile-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: var(--muted); }
.tile-foot span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tile-foot svg { width: 13px; height: 13px; }
.tile-foot b { flex: 1; color: var(--green); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
:root[data-theme="light"] .tile-foot b { color: #4b6400; }
.tile-foot a { position: relative; z-index: 2; white-space: nowrap; }
.tile-foot a:hover { color: var(--ink); }
@media (max-width: 1500px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile-cover { height: 170px; } .tile-body { padding: 10px 10px 10px; } .tile-rate { font-size: 18px; } .tile-foot { flex-wrap: wrap; } .tile-foot b { text-align: left; } }

/* ---------- карточка шопса ---------- */
.sd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.sd-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery { position: sticky; top: 84px; }
.g-main { position: relative; aspect-ratio: 480 / 680; max-height: 74vh; width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-count { position: absolute; top: 14px; right: 16px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.45); color: #fff; padding: 3px 8px; border-radius: 99px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--control); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.g-play { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--on-green); font-weight: 700; font-size: 12px; padding: 9px 14px; border-radius: 99px; white-space: nowrap; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.g-thumbs button { position: relative; flex: 0 0 54px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.g-thumbs button.active { border-color: var(--green); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs i { position: absolute; left: 4px; bottom: 3px; font-style: normal; font-size: 9px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000; }
.sd-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sd-info > .row { margin: 6px 0 0 !important; }
.sd-badges { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sd-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sd-title h2 { font-size: 19px; line-height: 1.3; margin: 4px 0 0; overflow-wrap: anywhere; }
.sd-pub { font-size: 14px; font-weight: 600; margin-top: 6px; }
.sd-fav { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.sd-fav svg { width: 15px; height: 15px; }
.sd-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sd-links .btn { justify-content: center; text-align: center; font-size: 12px; }
.sd-text .card-head { margin-bottom: 10px; align-items: center; }
.sd-text h3, .shop-detail h3, .grid-2 > .card > h3 { font-size: 14px; margin: 0 0 12px; }
.sd-text .card-head h3 { margin: 0; }
.sd-body { white-space: pre-wrap; font-size: 12.5px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 11px; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--ink); }
.sd-channel { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.sd-channel img, .sd-channel .ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; }
.sd-channel .ava { display: grid; place-items: center; background: var(--sage); color: var(--green); font-weight: 700; font-size: 13px; }
.sd-channel .grow { flex: 1; min-width: 0; }
.sd-channel b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-channel small { font-size: 11px; color: var(--muted); }
.sd-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sd-metrics .card { padding: 14px 14px 12px; }
.sd-metrics .label { font-size: 10px; color: var(--muted); }
.sd-metrics .value { font-size: 17px; font-weight: 800; margin-top: 8px; }
.sd-metrics .sub { font-size: 9.5px; color: var(--muted); margin-top: 6px; }
.sd-metrics.two { margin-bottom: 12px; }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.insights .card { padding: 18px; }
.ins-head { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
:root[data-theme="light"] .ins-head { color: #4b6400; }
.ins-head i { font-style: normal; background: var(--sage); padding: 3px 7px; border-radius: 5px; }
.insights h3 { font-size: 14px; margin: 14px 0 8px; }
.insights p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.note-green { background: var(--sage); color: var(--green); font-size: 12px; padding: 12px 12px; border-radius: 10px; margin-bottom: 12px; }
:root[data-theme="light"] .note-green { color: #4b6400; }
.grid-2 > .card > p { margin: 0 0 10px; }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.profile-grid .card { margin-bottom: 16px; }
.user-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.user-row b { font-family: var(--font-display); font-weight: 400; font-size: 17px; display: block; }
.field-row { display: flex; gap: 8px; }
.field-row .input { flex: 1; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.acc-row:last-child { border-bottom: 0; }
.acc-row .grow { flex: 1; }
.pill { font-size: 10px; border-radius: 99px; padding: 3px 9px; background: var(--sage); color: var(--green); font-weight: 700; }
:root[data-theme="light"] .pill { color: #4b6400; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--on-green); padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 13px; z-index: 50; }
.bell-dot { position: absolute; top: -4px; right: -4px; background: var(--green); color: var(--on-green); font-size: 9px; font-weight: 700; border-radius: 99px; min-width: 16px; height: 16px; display: grid; place-items: center; }
.footer { border-top: 1px solid var(--line); padding: 22px 32px 28px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.footer .foot-req { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer .foot-req b { color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.footer .foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 22px; align-content: start; }
.footer a:hover { color: var(--ink); }

/* ---------- окна ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 60; display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal { background: var(--white); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px 24px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.modal.wide { width: min(620px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0; }
.modal h3 { font-size: 14px; margin: 14px 0 4px; }
.modal .grp { margin-bottom: 18px; }
.modal .grp > .input { width: 100%; }
.modal .field-row .input { min-width: 0; }
.lbl { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.hint b { color: var(--ink); }
.pm-results { margin-top: 8px; }
.pm-page { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.pm-page img, .pm-page .ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.pm-page .ava { display: grid; place-items: center; background: var(--sage); color: var(--green); font-weight: 700; }
.pm-page .grow { flex: 1; min-width: 0; }
.pm-page small { display: block; color: var(--muted); font-size: 10.5px; }
.pm-req { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pm-req span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disabled-link { opacity: .45; pointer-events: auto; }

/* ---------- дерево категорий ---------- */
.tree-search { width: 100%; margin-bottom: 8px; font-size: 12px; }
.tree-head { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 0 2px 6px 30px; border-bottom: 1px solid var(--line); }
.tree-body { max-height: 420px; overflow: auto; }
.tree-row { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.tree-row.d1 { padding-left: 16px; } .tree-row.d2 { padding-left: 32px; }
.tree-row label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.tree-row label span { overflow: hidden; text-overflow: ellipsis; }
.tree-row input { accent-color: var(--green); flex: none; }
.tree-row small { color: var(--muted); min-width: 34px; text-align: right; }
.tree-tog { width: 22px; height: 22px; border: 0; background: none; color: var(--muted); padding: 0; display: grid; place-items: center; flex: none; transition: transform .15s; }
.tree-tog svg { width: 14px; height: 14px; }
.tree-tog.leaf { visibility: hidden; }
.tree-row.open > .tree-tog { transform: rotate(90deg); color: var(--green); }

/* ---------- фильтры: радио и «Ещё фильтры» ---------- */
.radio-list { display: flex; flex-direction: column; }
.radio { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.radio:last-child { border-bottom: 0; }
.radio input { accent-color: var(--green); }
.radio span { flex: 1; }
.radio small { color: var(--muted); }
details.more { border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 16px; }
details.more summary { cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; margin-bottom: 12px; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary span { transform: rotate(180deg); }
.filters .grp > .input, .filters .grp select.input { width: 100%; font-size: 12px; padding: 8px 12px; }
.two { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.two .input { flex: 1; min-width: 0; font-size: 12px; padding: 8px 10px; }
.feed-layout.no-filters { grid-template-columns: 1fr; }
.my-pages { margin-bottom: 14px; }
.my-pages label.btn { cursor: pointer; }

/* ---------- таблица шопсов ---------- */
.shop-table td { vertical-align: middle; }
.shop-table td.num { white-space: nowrap; }
.shop-table .t-title { max-width: 360px; }
.shop-table .t-title a { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nowrap { white-space: nowrap; }
td.green { color: var(--green); font-weight: 700; }
:root[data-theme="light"] td.green { color: #4b6400; }
.fav-sm { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--control); display: grid; place-items: center; padding: 0; }
.fav-sm svg { width: 13px; height: 13px; }
.fav-sm.on { background: var(--green); color: var(--on-green); border-color: var(--green); }
.pager { align-items: center; gap: 14px; font-size: 12px; }

/* ---------- товары: строки ---------- */
.prows { display: flex; flex-direction: column; gap: 10px; }
.prow { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 110px 250px; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 52px 12px 12px; }
.prow:hover { border-color: var(--line-strong); }
.prow-img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.prow-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prow h3 { font-size: 13px; font-weight: 800; margin: 5px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow-rating { font-size: 11px; }
.prow-pot small { display: block; font-size: 9.5px; color: var(--muted); }
.prow-pot b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--green); margin-right: 6px; }
:root[data-theme="light"] .prow-pot b { color: #4b6400; }
.prow-pot span { font-size: 10px; color: var(--muted); }
.prow-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 11px; color: var(--muted); }
.prow-stats small { display: block; font-size: 9.5px; }
.prow-stats b { color: var(--ink); font-size: 14px; }
.prow-stats .wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; }
.prow-stats svg { width: 12px; height: 12px; }
.prow-fav { top: 50%; transform: translateY(-50%); right: 12px; }
.tile-fav, .prow-fav { z-index: 2; }

/* ---------- Сегодня: запросы, советы, топ-5 ---------- */
.sub-h { font-size: 11px; margin: 6px 0 0; }
.section-title > div h2 { margin: 0; }
.empty.slim { padding: 26px 18px; }
.empty.slim svg { width: 20px; height: 20px; color: var(--green); }
.queries { margin-bottom: 16px; }
.q-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.q-controls > .input { flex: 1; min-width: 200px; font-size: 12px; }
.q-pop { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.q-pop .input { width: 110px; font-size: 12px; padding: 8px 10px; }
.q-meta { font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.q-table th button { background: none; border: 0; color: var(--muted); font-size: 10px; padding: 0; white-space: nowrap; }
.q-table th button span { margin-left: 3px; color: var(--green); }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip-label { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tip-value { font-family: var(--font-display); font-size: 26px; color: var(--green); margin: 8px 0; }
:root[data-theme="light"] .tip-value { color: #4b6400; }
.tip p { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.tip a { font-size: 12px; font-weight: 700; }
.top5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.top5-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.top5-card:hover { border-color: var(--line-strong); }
.top5-card img { width: 100%; height: 140px; object-fit: cover; background: var(--surface-2); }
.top5-card .rank { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; }
.top5-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.top5-body h3 { font-family: var(--font-body); font-size: 12.5px; font-weight: 800; line-height: 1.35; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top5-gain { font-family: var(--font-display); font-size: 22px; color: var(--green); margin-top: auto; }
:root[data-theme="light"] .top5-gain { color: #4b6400; }
.top5-body small { font-size: 10px; color: var(--muted); }
.top5-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.link-btn.green, .green.link-btn { color: var(--green); font-weight: 700; font-size: 12px; }

/* ---------- карточка товара ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 16px; }
.pd-photo { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-title { font-size: 22px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.pd-leaf { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 6px; }
:root[data-theme="light"] .pd-leaf { color: #4b6400; }
.pd-path, .pd-sku { font-size: 12px; color: var(--muted); }
.pd-pot { margin-top: 12px; }
.pd-pot .card-head { margin-bottom: 6px; align-items: center; }
.pd-pot-val b { font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--green); }
:root[data-theme="light"] .pd-pot-val b { color: #4b6400; }
.pd-pot-val span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 10px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.pd-pot p { font-size: 11px; margin: 0 0 6px; }
.pd-more { margin-top: 12px; }
.pd-more .card-head { margin-bottom: 6px; align-items: center; }
.pd-more .card-head a { font-size: 12px; font-weight: 700; }
.pd-more-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.pd-more-row:last-child { border-bottom: 0; }
.pd-more-row span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-more-row:hover span { color: var(--ink); }
.pd-more-row small { display: flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.pd-more-row small svg { width: 12px; height: 12px; }
.pd-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.pd-metrics .label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; position: relative; }
.pd-metrics .value { font-family: var(--font-display); font-size: 24px; margin-top: 10px; }
.tip-btn { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--control); color: var(--muted); font-size: 9px; font-weight: 800; padding: 0; line-height: 1; }
.tip-pop { position: absolute; top: 22px; left: 0; z-index: 10; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); font-size: 11px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; width: 240px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.pd-posts { padding: 6px 16px; }
.pd-post { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-post:last-child { border-bottom: 0; }
.pd-post.deleted { opacity: .6; }
.pd-post-img img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: var(--surface-2); display: block; }
.pd-post-main { flex: 1; min-width: 0; }
.pd-post-title { font-weight: 700; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pd-post-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.pd-post-meta a:hover { color: var(--ink); }
.pd-post-nums { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pd-post-nums b { font-size: 12px; }
.grid-2.even { grid-template-columns: 1fr 1fr; }

/* ---------- профиль ---------- */
.feat-list { margin: 0 0 8px; padding-left: 18px; font-size: 12px; }
.feat-list li::marker { color: var(--green); }
.tabs { margin-bottom: 12px; }
.note-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 12px; }
.note-box p { color: var(--muted); margin: 6px 0 10px; font-size: 11.5px; line-height: 1.5; }
.ref-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ref-card svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.ref-card div { flex: 1; }
.ref-card b { display: block; font-size: 13px; }
.ref-card .muted { font-size: 11px; }
.prof-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.prof-links a:hover { color: var(--ink); }

/* ---------- поддержка ---------- */
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sp-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 6px 0 0; }
.sp-box { display: grid; grid-template-columns: 260px minmax(0, 1fr); padding: 0; overflow: hidden; min-height: 520px; }
.sp-threads { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sp-threads h3 { margin: 4px 8px 10px; font-size: 15px; }
.sp-thread { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 12px; }
.sp-thread:hover { background: var(--surface-2); }
.sp-thread.active { background: var(--sage); }
.sp-thread .grow { flex: 1; min-width: 0; }
.sp-thread b { display: block; }
.sp-thread small { display: block; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--green); display: grid; place-items: center; flex: none; }
.sp-ico svg { width: 15px; height: 15px; }
.sp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sp-side small { font-size: 9.5px; color: var(--muted); }
.sp-side i { font-style: normal; background: var(--green); color: var(--on-green); border-radius: 99px; min-width: 18px; height: 18px; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.sp-chat { display: flex; flex-direction: column; min-width: 0; }
.sp-chat header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sp-chat header b { display: block; font-size: 13px; }
.sp-chat header small { color: var(--muted); font-size: 11px; }
.sp-msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 560px; min-height: 300px; }
.msg { max-width: 78%; background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--sage); border-radius: 14px 14px 4px 14px; }
.msg img { max-width: 260px; max-height: 260px; border-radius: 10px; display: block; margin-top: 6px; }
.msg small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 4px; }
.msg-link { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 11.5px; }
.sp-empty { margin: auto; text-align: center; color: var(--muted); font-size: 12px; max-width: 280px; }
.sp-empty svg { width: 22px; height: 22px; color: var(--green); }
.sp-empty b { display: block; color: var(--ink); font-size: 14px; margin: 8px 0 4px; }
.sp-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.sp-form .grow { flex: 1; min-width: 0; }
.sp-form textarea { width: 100%; resize: vertical; min-height: 44px; font-size: 13px; }
.sp-form label.icon-btn { cursor: pointer; }
.sp-attach { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 6px; }
.sp-attach img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.sp-count { text-align: right; font-size: 10px; color: var(--muted); padding: 0 16px 10px; }
.sp-note { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

/* ---------- админка: каналы уведомлений ---------- */
.ch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ch-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ch-item b { color: var(--ink); font-size: 13px; }
.ch-item p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ch-item code { background: var(--surface-2); border-radius: 5px; padding: 1px 5px; font-size: 11px; color: var(--ink); }
.pill.grey-pill { background: var(--surface-2); color: var(--muted); }
.pill.red-pill { background: rgba(255, 133, 145, .14); color: var(--red); }
@media (max-width: 900px) { .ch-grid { grid-template-columns: 1fr; } }

/* ---------- рефералы ---------- */
.ref-links { margin-bottom: 14px; }
.ref-links h3 { margin-bottom: 10px; }
.ref-links .input { font-size: 12px; }
.ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ref-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.ref-stat span { font-size: 11px; color: var(--muted); }

/* ---------- responsive ---------- */
.burger { display: none; }
@media (max-width: 1280px) { .top5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1180px) {
  .feed-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .prow { grid-template-columns: 64px minmax(0, 1fr) 96px; }
  .prow-stats { grid-column: 2 / -1; }
  .prow-img { width: 64px; height: 64px; }
  .pd { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 240px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .burger { display: grid; }
  .grid-2, .profile-grid, .advice { grid-template-columns: 1fr; }
  .shops { grid-template-columns: 1fr; }
  .trial { grid-template-columns: 1fr 1fr; padding: 8px 16px; }
  .trial > div { border: 0; padding: 6px 0; }
  .trial > div:first-child { grid-column: 1 / -1; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .status-pill { display: none; }
  .login main { grid-template-columns: 1fr; gap: 24px; }
  .detail-head { grid-template-columns: 1fr; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .shop-detail { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; }
  .g-main { max-height: 62vh; }
  .insights { grid-template-columns: 1fr; }
  .sd-head h1 { font-size: 22px; }
  .tips, .top5, .pd, .grid-2.even { grid-template-columns: 1fr; }
  .top5-card { flex-direction: row; }
  .top5-card img { width: 110px; height: auto; min-height: 120px; }
  .pd-photo { max-width: 420px; aspect-ratio: 1; }
  .pd-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-post { flex-wrap: wrap; }
  .pd-post-main { flex-basis: calc(100% - 70px); }
  .pd-post-nums { align-items: flex-start; }
  .sp-box { grid-template-columns: 1fr; }
  .sp-threads { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; }
  .sp-threads h3 { display: none; }
  .sp-thread { min-width: 200px; }
  .footer { padding: 18px 16px 24px; }
  .footer .foot-links { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .days-head { flex-direction: column; gap: 2px; }
  .field-row { flex-wrap: wrap; }
  .field-row .input { min-width: 0; width: 100%; }
  .card { max-width: 100%; }
  .day { width: 42px; height: 42px; }
  .stats { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 72px 1fr; }
  .shop .cover { width: 72px; height: 88px; }
  .prow { grid-template-columns: 56px minmax(0, 1fr); padding-right: 46px; }
  .prow-img { width: 56px; height: 56px; }
  .prow-pot, .prow-stats { grid-column: 2 / -1; }
  .ref-stats { grid-template-columns: 1fr 1fr; }
  .msg { max-width: 92%; }
  .q-pop { width: 100%; }
}
