/* ===== Дизайн-система ORCA =====
   Бренд меняется в одном месте: токены ниже + js/config.js */
:root {
  /* Бренд: насыщенный тёмно-зелёный + белый */
  --brand: #166534;          /* основной тёмно-зелёный — кнопки, акценты */
  --brand-ink: #FFFFFF;      /* текст на мятном */
  --brand-text: #166534;     /* зелёный для текста и ссылок на белом */
  --brand-soft: #DCFCE7;     /* светло-зелёная подложка */
  --brand-strong: #14532D;   /* глубокий зелёный */
  --brand-deep: #052E16;     /* глубокий зелёный — плитка логотипа */
  --brand-glow: #4ADE80;     /* свечение */
  --tab-a: #1E7A40;          /* нижняя панель: верх */
  --tab-b: #14532D;          /* нижняя панель: низ */
  --bg: #F3F8F5;
  --surface: #FFFFFF;
  --surface-2: #E8F2EC;
  --text: #0B1A13;
  --text-2: #46594F;
  --text-3: #85988E;
  --line: #D7E7DD;
  --ok: #15803D;
  --ok-soft: #DCFCE7;
  --warn: #B7791F;
  --warn-soft: #FDF3E1;
  --danger: #D9363E;
  --danger-soft: #FCE8E9;
  --pro: #7A4CE0;
  --pro-soft: #F0EAFD;
  --desk: #D5E5DB;
  --shadow: 0 1px 2px rgba(5,61,36,.06), 0 4px 16px rgba(5,61,36,.07);
  --shadow-lg: 0 12px 40px rgba(5,61,36,.2);
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --font: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #22C55E; --brand-ink: #021309; --brand-text: #4ADE80; --brand-soft: #0C2A1A; --brand-strong: #86EFAC; --brand-deep: #021A0F; --brand-glow: #4ADE80;
    --tab-a: #16883F; --tab-b: #0A3D1E;
    --bg: #050D09; --surface: #0D1812; --surface-2: #14241B; --text: #EAF6EF; --text-2: #A2B9AC; --text-3: #6A8073;
    --line: #1B2F24; --ok: #4ADE96; --ok-soft: #0E2A1C; --warn: #E2A84B; --warn-soft: #2B2213;
    --danger: #FF5D64; --danger-soft: #331618; --pro: #A98BFF; --pro-soft: #241C3B; --desk: #020604;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #22C55E; --brand-ink: #021309; --brand-text: #4ADE80; --brand-soft: #0C2A1A; --brand-strong: #86EFAC; --brand-deep: #021A0F; --brand-glow: #4ADE80;
  --tab-a: #16883F; --tab-b: #0A3D1E;
  --bg: #050D09; --surface: #0D1812; --surface-2: #14241B; --text: #EAF6EF; --text-2: #A2B9AC; --text-3: #6A8073;
  --line: #1B2F24; --ok: #4ADE96; --ok-soft: #0E2A1C; --warn: #E2A84B; --warn-soft: #2B2213;
  --danger: #FF5D64; --danger-soft: #331618; --pro: #A98BFF; --pro-soft: #241C3B; --desk: #020604;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand-text); text-decoration: none; }
img { display: block; max-width: 100%; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 28px; height: 28px; }

/* ===== Устройство ===== */
#device { height: 100dvh; }
#app { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); }
#screen { flex: 1; overflow-y: auto; overflow-x: hidden; outline: none; scroll-behavior: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: auto; }
#screen.has-tabbar { padding-bottom: 76px; }
/* Как в мобильном приложении: полосы прокрутки не видно, листается пальцем, колёсиком и тачпадом */
#screen, .sheet, .combo-list, .suggest { scrollbar-width: none; }
#screen::-webkit-scrollbar, .sheet::-webkit-scrollbar, .combo-list::-webkit-scrollbar, .suggest::-webkit-scrollbar { display: none; }
@media (min-width: 560px) {
  body { display: grid; place-items: center; background: var(--desk); min-height: 100vh; }
  #device { width: 390px; height: min(844px, calc(100vh - 32px)); border-radius: 46px; border: 10px solid #0A0D14; box-shadow: var(--shadow-lg); overflow: hidden; }
}
#offline { background: var(--danger); color: #fff; text-align: center; font-size: 13px; padding: 6px; }
.view { min-height: 100%; animation: in .22s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes in-fade { from { opacity: 0; } }
.view:has(.sticky-bar) { animation-name: in-fade; }   /* transform в анимации сдвигал бы закреплённую панель */
#screen:has(.sticky-bar) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.pad { padding: 0 16px; }
.stack > * + * { margin-top: 12px; }

/* ===== Шапка ===== */
.hdr { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
.hdr h1 { font-size: 18px; font-weight: 700; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text); position: relative; flex: none; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn.float { background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow); }
.dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

/* ===== Типографика ===== */
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.h3 { font-size: 16px; font-weight: 700; margin: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 13px; }
.small { font-size: 13px; }
.price { font-weight: 800; letter-spacing: -.01em; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 16px 10px; }
.sec-title h2 { font-size: 18px; font-weight: 700; margin: 0; }
.sec-title a, .link { font-size: 14px; font-weight: 600; color: var(--brand-text); }

/* ===== Кнопки ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 15px; background: var(--surface-2); color: var(--text); transition: transform .08s, opacity .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 86%, #fff), var(--brand)); color: var(--brand-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost { background: transparent; color: var(--brand-text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; }
.btn-row > .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; } /* равная ширина, текст не вылезает за край */

/* ===== Карточки ===== */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.p { padding: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.pro { background: var(--pro-soft); color: var(--pro); }
.badge.demo { background: #FFE9A8; color: #6B4E00; }
.badge svg.i { width: 14px; height: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Фото */
.ph { position: relative; background: var(--surface-2); overflow: hidden; }
.ph > img, .ph > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .ov { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ph .fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0E1525; display: grid; place-items: center; }
.ph .fav.on { color: #E5484D; }
.ph .fav.on svg { fill: currentColor; }

/* Карточка авто — вертикальная (горизонтальные ленты) */
.car-v { width: 220px; flex: none; overflow: hidden; }
.car-v .ph { aspect-ratio: 16/11; }
.car-v .b { padding: 10px 12px 12px; }
.car-v .price { font-size: 17px; }
.car-v .t { font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-v .m { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* Карточка авто — строка каталога */
.car-h { display: flex; gap: 12px; padding: 10px; overflow: hidden; }
.car-h .ph { width: 132px; aspect-ratio: 4/3.2; border-radius: 12px; flex: none; }
.car-h .ph .fav { width: 28px; height: 28px; top: 6px; right: 6px; }
.car-h .ph .fav svg { width: 16px; height: 16px; }
.car-h .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.car-h .price { font-size: 17px; }
.car-h .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-h .m { font-size: 13px; color: var(--text-2); }
.car-h .d { font-size: 12px; color: var(--text-3); margin-top: auto; display: flex; justify-content: space-between; gap: 6px; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }

/* ===== Чипы, поля ===== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); font-weight: 600; }
.brand-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; flex: none; font-size: 12px; font-weight: 500; color: var(--text-2); text-align: center; }
.brand-chip .lg { width: 56px; height: 56px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--text); letter-spacing: -.02em; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea { width: 100%; height: 50px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%238A93A6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); }
.input.err, .select.err { border-color: var(--danger); }
.err-text { color: var(--danger); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 13px; color: var(--text-3); }
.search-box { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: var(--text-3); }
.search-box input { flex: 1; border: 0; outline: none; background: transparent; font-size: 16px; color: var(--text); min-width: 0; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 36px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.switch { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.switch .tx { flex: 1; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(20px); }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.radio input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* ===== Список меню ===== */
.menu { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; font-size: 15px; }
.mi + .mi { border-top: 1px solid var(--line); }
.mi .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.mi .tx { flex: 1; min-width: 0; }
.mi .sub { font-size: 13px; color: var(--text-3); }
.mi .cnt { font-size: 13px; color: var(--text-3); font-weight: 600; }
.mi.danger { color: var(--danger); }
.mi:active { background: var(--surface-2); }

/* ===== Таббар ===== */
/* Нижняя панель в фирменном зелёном */
#tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: none; height: 74px; padding: 8px 4px 14px;
  background: linear-gradient(180deg, var(--tab-a) 0%, var(--tab-b) 100%); border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -6px 20px rgba(22,101,52,.25); border-radius: 20px 20px 0 0; }
/* Строгая сетка: все колонки одинаковой ширины, иконки и подписи по центру */
#tabbar.show { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
#tabbar button { display: grid; grid-template-rows: 30px auto; justify-items: center; align-items: center; row-gap: 3px; min-width: 0;
  font-size: 10px; letter-spacing: -.01em; font-weight: 600; color: rgba(255,255,255,.88); position: relative; text-align: center; }
#tabbar button > span:not(.dot) { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-align: center; }
@media (max-width: 370px) { #tabbar button { font-size: 9px; } }
#tabbar button svg { width: 22px; height: 22px; padding: 4px 9px; box-sizing: content-box; border-radius: 12px; transition: background .2s; }
#tabbar button.on { color: #fff; }
#tabbar button.on svg { background: rgba(255,255,255,.26); }
#tabbar button svg { stroke-width: 2.2; }
#tabbar .dot { top: -2px; right: calc(50% - 22px); border-color: var(--tab-a); background: #FF5D64; }
/* Карточка «Разместить объявление» */
.post-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: var(--r-lg); text-align: left; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #22A050 0%, #166534 45%, #052E16 100%); box-shadow: 0 10px 26px rgba(22,101,52,.32); }
.post-cta .ic { width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.post-cta b { display: block; font-size: 18px; }
.post-cta span span, .post-cta .grow > span { font-size: 13px; opacity: .85; }
.post-cta:active { transform: scale(.99); }

/* ===== Нижние панели ===== */
/* Нижняя панель кнопок закреплена за окном приложения и не уезжает при прокрутке (на iPhone sticky внутри прокрутки ненадёжен) */
.sticky-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.sticky-bar > .btn { flex: 1; }
.sheet-bg { position: absolute; inset: 0; z-index: 50; background: rgba(5,8,14,.45); animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 86%; overflow-y: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 8px 16px 24px; animation: up .25s cubic-bezier(.2,.8,.2,1); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
#toast { position: absolute; left: 16px; right: 16px; bottom: 92px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
#toast .t { background: #0E1525; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: up .25s; max-width: 100%; }

/* ===== Состояния ===== */
.empty { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .em-ic { width: 72px; height: 72px; border-radius: 24px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 6px; }
.empty .em-ic svg { width: 34px; height: 34px; }
.empty h3 { margin: 0; font-size: 18px; }
.empty p { margin: 0; color: var(--text-2); max-width: 280px; }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.notice.demo { background: #FFF6D6; color: #5E4500; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.brand { background: var(--brand-soft); color: var(--brand-strong); }
:root[data-theme="dark"] .notice.demo { background: #2E2510; color: #F2D27A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice.demo { background: #2E2510; color: #F2D27A; } }

/* ===== Главная ===== */
/* Фирменное написание ORCA — шрифт Unbounded */
.logo { display: flex; align-items: center; gap: 10px; font-family: Unbounded, var(--font); font-weight: 700; font-size: 19px; letter-spacing: .08em; color: var(--text); }
.logo .mk { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #16A05C, #054A28); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(6,41,28,.25); }
.logo .mk svg { width: 24px; height: 24px; filter: drop-shadow(0 0 3px rgba(74,222,150,.6)); }
.city-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cta-sell { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--brand); color: var(--brand-ink); width: 100%; text-align: left; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.cta-sell .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.cta-sell b { font-size: 18px; display: block; }
.cta-sell span { font-size: 13px; opacity: .85; }
.cta-seek { padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); border: 1.5px solid var(--brand-soft); }
.cta-seek .kick { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-text); }

/* ===== Статусы ===== */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 12px 16px 6px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; flex: none; }
.story-btn { display: block; cursor: pointer; }
.story-plus { position: absolute; top: 46px; right: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; border: 2.5px solid var(--bg); cursor: pointer; }
.story-plus svg { width: 12px; height: 12px; stroke-width: 3; }
.story .ring .ava { width: 100%; height: 100%; font-size: 20px; }
.story .ring { display: block; width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 210deg, #16A34A, #22C55E, #A3E635, #16A34A); }
.story .ring.seen { background: var(--line); padding: 1.5px; }
.story .ring .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story .ph.story-add { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
label.story { cursor: pointer; }
.pro-banner { height: 150px; margin: 0 16px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 0% 0%, #22A050 0%, var(--brand) 45%, var(--brand-deep) 100%) center / cover no-repeat; }
.pro-head { margin-top: -56px; }
.pro-ava { display: inline-block; border-radius: 50%; padding: 4px; background: var(--bg); }
.pro-ava.ring { background: linear-gradient(45deg, #054A28, #16A05C 45%, #8FF0B8); cursor: pointer; }
.pro-ava.ring.seen { background: var(--line); }
.pro-ava .ava { border: 3px solid var(--bg); }
.sv-head .sv-who { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; color: inherit; }
.sv-reply { display: flex; gap: 8px; align-items: center; }
.sv-reply .input { flex: 1; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; border-radius: 22px; }
.sv-reply .input::placeholder { color: rgba(255,255,255,.7); }
.sv-reply .icon-btn { color: #fff; }
.bub .story-ref { display: flex; gap: 8px; align-items: center; font-size: 12px; opacity: .85; margin-bottom: 6px; }
.bub .story-ref img, .bub .story-ref .ph { width: 40px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; overflow: hidden; }
.tier-chip { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #4ADE80, #16A34A 45%, #166534); box-shadow: 0 2px 6px rgba(22,163,74,.3), inset 0 1px 0 rgba(255,255,255,.35); vertical-align: 2px; flex: none; }
.tier-chip svg { width: 12px; height: 12px; }
.tier-card .tier-name > svg:not(.pro-tick) { width: 22px; height: 22px; color: #BBF7D0; fill: currentColor; }
.tier-card .tier-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); }
.tier-chip.plus { background: linear-gradient(135deg, #38BDF8, #0095F6 50%, #4F46E5); box-shadow: 0 2px 8px rgba(0,149,246,.35); }
.tier-chip.lg { height: 28px; padding: 0 12px; font-size: 14px; border-radius: 14px; background: rgba(255,255,255,.22); box-shadow: none; }
.tier-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r-lg); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #4ADE80 0%, #16A34A 35%, #166534 70%, #052E16 100%); box-shadow: 0 8px 24px rgba(22,163,74,.3); border: 1px solid rgba(255,255,255,.12); }
.tier-card.plus { background: radial-gradient(120% 140% at 0% 0%, #38BDF8 0%, #0077D9 50%, #312E81 100%); box-shadow: 0 8px 24px rgba(0,119,217,.35); }
.tier-card .tier-days { height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255,255,255,.2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.tier-card .tier-up { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 14px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.16); color: #fff; font-size: 13px; font-weight: 600; text-align: left; }
.tier-card .tier-up > svg:last-child { margin-left: auto; opacity: .8; }
.tier-card .tier-lbl { font-size: 13px; opacity: .85; font-weight: 600; }
.tier-card .tier-name { font-size: 24px; font-weight: 800; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.tier-card .tier-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.tier-card .pro-tick path[fill] , .tier-card .pro-tick g { fill: #fff; }
.tier-card .pro-tick path[stroke] { stroke: #0077D9; }
.perks-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; border-radius: var(--r); border: 1.5px dashed color-mix(in srgb, #16A34A 55%, transparent); background: color-mix(in srgb, #16A34A 8%, var(--surface)); color: var(--text); font-weight: 600; font-size: 14px; text-align: left; }
.perks-toggle.plus { border-color: color-mix(in srgb, #0095F6 55%, transparent); background: color-mix(in srgb, #0095F6 8%, var(--surface)); }
.perks-toggle > svg:first-child { color: #16A34A; } .perks-toggle.plus > svg:first-child { color: #0095F6; }
.perks-toggle .cnt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.perks-toggle .chev { display: grid; transition: transform .2s; } .perks-toggle .chev.up { transform: rotate(180deg); }
.step-lbl { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.step-lbl span { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-opt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, box-shadow .15s; }
.plan-opt.on { border-color: #16A34A; box-shadow: 0 4px 14px rgba(22,163,74,.18); }
.plan-opt.plus.on { border-color: #0095F6; box-shadow: 0 4px 14px rgba(0,149,246,.22); }
.plan-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.plan-opt.on .plan-radio { border: 5px solid #16A34A; }
.plan-opt.plus.on .plan-radio { border-color: #0095F6; }
.plan-cur { font-size: 11px; color: var(--text-3); font-weight: 600; }
.plan-price { font-size: 13px; color: var(--text-2); }
.plan-price b { font-size: 18px; color: var(--text); }
.plan-sum { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); line-height: 1.3; }
.plan-sum span { display: flex; gap: 4px; }
.plan-sum svg { flex: none; width: 13px; height: 13px; color: #16A34A; margin-top: 1px; }
.plan-opt.plus .plan-sum svg { color: #0095F6; }
.radio.period { align-items: center; }
.radio.period .right { text-align: right; }
.radio.period .save { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; }
.colls { gap: 10px; }
/* Подборка: строгая карточка — глубокий цвет, крупный текст, тонкий значок фоном; если есть фото машины — фото */
.coll { position: relative; flex: none; width: 152px; height: 184px; border-radius: 18px; overflow: hidden; text-align: left; color: #fff;
  background: radial-gradient(130% 90% at 100% 0%, color-mix(in srgb, var(--tone) 82%, #fff) 0%, var(--tone) 55%, color-mix(in srgb, var(--tone) 75%, #000) 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 30%, transparent); transition: transform .15s; }
.coll:active { transform: scale(.97); }
.coll-mark { position: absolute; right: -18px; top: 14px; color: #fff; opacity: .14; }
.coll-mark svg { width: 112px; height: 112px; stroke-width: 1.2; }
.coll-photo { position: absolute; inset: 0; }
.coll-photo img { width: 100%; height: 100%; object-fit: cover; }
.coll-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, color-mix(in srgb, var(--tone) 90%, #000) 88%); }
.coll-ic { position: absolute; z-index: 1; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.coll-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; }
.coll-t { font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; }
.coll-s { font-size: 12px; color: rgba(255,255,255,.72); line-height: 1.3; }
.coll-n { margin-top: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 4px; }
.coll-n::after { content: '→'; opacity: .7; }.art-row { display: flex; gap: 8px; flex-wrap: wrap; }
.art-chip, .art-share { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); color: var(--text-2); }
.art-chip b { color: var(--text); font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; font-size: 14px; }
.art-chip span { color: var(--brand-text); font-weight: 600; margin-left: 4px; }
.art-share { color: var(--brand-text); font-weight: 600; background: var(--brand-soft); }
.sold-card { display: flex; gap: 12px; align-items: center; }
.sold-ph { width: 96px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; filter: grayscale(.7); opacity: .8; }
.code-head { display: flex; align-items: center; gap: 12px; }
.code-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #22A050, var(--brand)); flex: none; }
.code-field { display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.code-field:focus-within { border-color: var(--brand); }
.code-field.ok, .code-field.mine { border-color: #16A34A; box-shadow: 0 0 0 4px color-mix(in srgb, #16A34A 14%, transparent); }
.code-field.bad { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 12%, transparent); }
.code-hash { font-size: 24px; font-weight: 800; color: var(--text-3); }
.code-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 800 24px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.code-st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.code-field.ok .code-st, .code-field.mine .code-st { background: #16A34A; }
.code-field.bad .code-st { background: var(--danger); }
.code-msg { margin-top: 8px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.code-msg.ok, .code-msg.mine { color: #16A34A; } .code-msg.bad { color: var(--danger); }
.code-prev { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.code-prev-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 6px 0; }
.code-prev-row + .code-prev-row { border-top: 1px solid var(--line); }
.code-prev-row b { margin-left: auto; font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--text); background: var(--surface); padding: 3px 8px; border-radius: 8px; letter-spacing: .04em; }
.code-prev-row em { font-style: normal; font-size: 12px; color: var(--text-3); }
.code-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.code-rules li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--text-2); }
.code-rules li::before { content: "✓"; position: absolute; left: 0; color: #16A34A; font-weight: 800; }
.btn:disabled { opacity: .45; pointer-events: none; }
.art-card { display: flex; align-items: stretch; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); overflow: hidden; }
.art-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-align: left; }
.art-lbl { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.art-code { font: 800 19px/1.15 ui-monospace, Consolas, monospace; letter-spacing: .05em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-btn { width: 66px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--brand-text); border-left: 1.5px dashed color-mix(in srgb, var(--brand) 25%, var(--line)); }
.art-btn:active, .art-main:active { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.pro-banner { position: relative; }
.edit-pill { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(0,0,0,.55); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.pro-ava.edit { position: relative; cursor: pointer; }
.pro-ava.edit .cam { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; border: 3px solid var(--bg); }
.art-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-3); font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.art-mini svg { width: 13px; height: 13px; opacity: .7; }
.crop-view { position: absolute; inset: 0; z-index: 90; background: #0B0F0D; color: #fff; display: flex; flex-direction: column; animation: fade .2s; }
.crop-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 15px; }
.crop-txt { color: #fff; font-size: 15px; padding: 6px 4px; } .crop-txt.ok { color: #4ADE80; font-weight: 700; }
.crop-stage { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; transform-origin: 0 0; }
.crop-frame { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.6); pointer-events: none; border-radius: 12px; }
.crop-frame.round { border-radius: 50%; }
.crop-bottom { display: flex; align-items: center; gap: 10px; padding: 14px 18px 22px; flex-wrap: wrap; }
.crop-bottom .crop-zoom { flex: 1; accent-color: #4ADE80; }
.crop-bottom .faint { width: 100%; text-align: center; color: rgba(255,255,255,.55); font-size: 12px; }
/* ===== Витрина продавца ===== */
.sc-banner { position: relative; height: 170px; background: radial-gradient(120% 140% at 0% 0%, #22A050 0%, var(--brand) 45%, var(--brand-deep) 100%) center / cover no-repeat; }
.sc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 45%); pointer-events: none; }
.sc-top { position: absolute; z-index: 1; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; }
.sc-ib { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 16px; margin-top: -44px; position: relative; z-index: 1; }
.sc-ava { display: inline-block; border-radius: 50%; padding: 4px; background: var(--bg); }
.sc-ava .ava { width: 88px; height: 88px; font-size: 30px; }
.sc-ava.ring { background: linear-gradient(45deg, #054A28, #16A05C 45%, #8FF0B8); cursor: pointer; }
.sc-ava.ring.seen { background: var(--line); }
.sc-ava.ring .ava { border: 3px solid var(--bg); }
.sc-actions { padding-bottom: 6px; }
.sc-info { padding-top: 10px; }
.sc-name { font-size: 22px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.sc-sub { font-size: 13.5px; color: var(--text-3); margin-top: 3px; }
.sc-verif { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 600; color: #0077D9; }
.sc-bio { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; color: var(--text); }
.sc-add { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--brand-text); }
.sc-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; text-align: center; }
.sc-stat + .sc-stat { border-left: 1px solid var(--line); }
.sc-stat b { font-size: 18px; font-weight: 800; } .sc-stat b small { font-size: 13px; color: #F59E0B; margin-left: 2px; }
.sc-stat b.mono { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .05em; padding-top: 2px; }
.sc-stat span { font-size: 12px; color: var(--text-3); }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 0; }
.sc-grid .car-v { width: auto; }
.sc-grid .car-v .price { font-size: 15px; } .sc-grid .car-v .t { font-size: 13.5px; } .sc-grid .car-v .b { padding: 8px 10px 10px; }
.sc-more { display: flex; justify-content: center; gap: 8px; }
.story-state { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #16A34A 10%, var(--surface)); font-size: 14px; font-weight: 600; color: #15803D; }
.story-state span { display: inline-flex; align-items: center; gap: 6px; }
.set-ava .ava { width: 100%; height: 100%; font-size: 13px; }
.spam-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 12px 0; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.spam-bar span { display: inline-flex; align-items: center; gap: 6px; }
.spam-btn { flex: none; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-weight: 700; font-size: 13px; }
.bub .tm .held { color: #F59E0B; font-weight: 700; }
.mod-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.mod-chat { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.mod-msg { align-self: flex-start; max-width: 85%; padding: 8px 10px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.mod-msg.r { align-self: flex-end; background: var(--brand-soft); }
.mod-msg span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); }
/* ===== Админ-панель ===== */
.ad-todo { padding-bottom: 6px; } .ad-todo .mi { padding-left: 0; padding-right: 0; } .ad-todo .mi b { color: var(--danger); }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.ad-kpi .lbl2 { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ad-kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.dl { font-size: 12px; font-weight: 700; color: var(--text-3); } .dl.up { color: #16A34A; } .dl.down { color: var(--danger); }
.ad-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-top: 12px; }
.ad-bars { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin-top: 4px; }
.ad-bars i { flex: 1; border-radius: 3px 3px 0 0; opacity: .85; min-width: 3px; }
.ad-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.ad-subs div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.ad-subs b { font-size: 18px; font-weight: 800; } .ad-subs span { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.ad-mk { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.ad-mk b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ad-mk span { text-align: right; color: var(--text-3); font-size: 12px; }
.ad-mk-bars { display: flex; flex-direction: column; gap: 3px; } .ad-mk-bars i { height: 6px; border-radius: 3px; min-width: 2px; }
.ad-mk-bars i.s, .ad-legend i.s { background: #0EA5E9; } .ad-mk-bars i.d, .ad-legend i.d { background: #F59E0B; }
.ad-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--text-3); } .ad-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ad-fn { display: grid; grid-template-columns: 1fr 90px 70px; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.ad-fn div { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .ad-fn i { display: block; height: 100%; background: var(--brand); }
.ad-fn b { text-align: right; } .ad-fn small { color: var(--text-3); font-weight: 600; }
.ad-l { display: flex; gap: 12px; align-items: flex-start; } .ad-l .ph { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; }
.ad-sec { padding: 0; overflow: hidden; }
.ad-sec summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ad-sec summary::-webkit-details-marker { display: none; }
.ad-sec summary .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); flex: none; }
.ad-sec summary .tx { flex: 1; min-width: 0; } .ad-sec summary small { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-sec summary > svg:last-child { transition: transform .2s; color: var(--text-3); } .ad-sec[open] summary > svg:last-child { transform: rotate(180deg); }
.ad-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.ad-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ad-f:last-child { border-bottom: 0; } .ad-f small { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: 1px; }
.ad-in { display: flex; align-items: center; gap: 6px; flex: none; } .ad-in .input { width: 92px; height: 40px; text-align: right; } .ad-in em { font-style: normal; font-size: 12px; color: var(--text-3); min-width: 26px; }
.ad-price { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 12px 0 4px; font-size: 13.5px; }
.ad-price b { text-align: center; font-size: 13px; } .ad-price .input { height: 40px; text-align: right; }
.ad-body .switch { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
/* ===== Статистика Pro ===== */
.seg.seg-sm button { height: 30px; font-size: 12.5px; padding: 0 10px; }
.st-chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 6px; }
.st-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.st-col i { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px 3px 0 0; min-height: 2px; }
.st-col i.v { background: color-mix(in srgb, #16A34A 28%, var(--surface-2)); }
.st-col i.c { background: #16A34A; left: 25%; right: 25%; }
.ad-legend i.sv { background: color-mix(in srgb, #16A34A 28%, var(--surface-2)); } .ad-legend i.sc { background: #16A34A; }
.st-mini { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.st-mini span { display: inline-flex; align-items: center; gap: 4px; } .st-mini svg { width: 14px; height: 14px; color: var(--text-3); }
.st-empty { display: flex; gap: 12px; align-items: center; color: var(--text-3); font-size: 13px; line-height: 1.4; } .st-empty svg { flex: none; width: 28px; height: 28px; }
.st-entry .st-mini { margin-top: 4px; }
.vf-code { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--surface-2); text-align: center; font: 800 28px/1 ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--brand-text); }
.vf-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.vf-req { display: grid; gap: 6px; } .vf-req div { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-3); }
.vf-req div.ok { color: var(--text); } .vf-req div.ok svg { color: #16A34A; } .vf-req small { color: var(--text-3); }
.vf-check { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.vf-check span { color: var(--text-3); } .vf-check a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-text); }
.vf-check b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.plus-gate { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, #0095F6 8%, var(--surface)); border: 1px dashed color-mix(in srgb, #0095F6 45%, transparent); font-size: 14px; }
.plus-gate > svg { color: #0095F6; flex: none; margin-top: 2px; } .plus-gate .faint { font-size: 13px; margin-top: 2px; }
.vf-code.sm { font-size: 22px; padding: 12px; margin-top: 0; }
.vf-prev { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
.fk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fk-col { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border-radius: 12px; background: var(--surface-2); text-align: center; font-size: 12.5px; color: var(--text-2); }
.fk-col b { color: var(--text); font-size: 14px; }
.sc-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sc-soc { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; font-size: 13px; font-weight: 600; color: #fff; }
.sc-soc.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); } .sc-soc.telegram { background: #229ED9; } .sc-soc.whatsapp { background: #25D366; }
.soc-in { display: flex; align-items: center; gap: 10px; } .soc-in > svg { flex: none; color: var(--text-2); } .soc-in .input { flex: 1; }
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 4px; }
.combo-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.combo-list button:hover { background: var(--surface-2); }
.combo-list button .combo-sub { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.combo-title, .combo-empty { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.sv-media .ph img, .sv-media .ph video { width: 100%; height: 100%; object-fit: contain; }
.story .ring .ph video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story .ring .ph { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--bg); overflow: hidden; }
.story .nm { font-size: 11.5px; font-weight: 500; color: var(--text-2); max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-view { position: absolute; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; animation: fade .2s; }
.sv-bars { display: flex; gap: 4px; padding: 10px 10px 0; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-bars b.done { width: 100%; }
.sv-bars b.run { animation: svbar 5s linear forwards; }
@keyframes svbar { to { width: 100%; } }
.sv-head { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; }
.sv-media { flex: 1; position: relative; min-height: 0; cursor: pointer; }
.sv-media .ph { position: absolute; inset: 0; background: #111; }
.sv-foot { padding: 16px 16px 22px; background: linear-gradient(transparent, rgba(0,0,0,.85) 30%); margin-top: -80px; position: relative; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.sv-foot .btn { align-self: stretch; }

/* ===== Объявление ===== */
.gallery { position: relative; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; aspect-ratio: 4/3; scroll-snap-align: start; }
.gallery .slide img { cursor: zoom-in; }
.photo-view { position: absolute; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; animation: fade .2s; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,.6), transparent); }
.pv-cnt { color: #fff; font-weight: 600; font-size: 14px; }
.pv-close { color: #fff; }
.pv-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; place-items: center; }
.pv-slide img { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pinch-zoom; }
.gallery .cnt { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 8px; }
.gallery .top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; }
.gallery .top .icon-btn { background: rgba(255,255,255,.92); color: #0E1525; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.specs > div { background: var(--surface); padding: 10px 12px; }
.specs .k { font-size: 12px; color: var(--text-3); }
.specs .v { font-weight: 600; font-size: 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { font-weight: 600; text-align: right; }
.check-block { padding: 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ok-soft), var(--surface)); border: 1.5px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.seller { display: flex; gap: 12px; align-items: center; }
.ava { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 700; flex: none; }
.ava.lg { width: 72px; height: 72px; font-size: 26px; }
.ava.xl { width: 104px; height: 104px; font-size: 36px; }
.ava.pro { background: var(--pro-soft); color: var(--pro); }
.ava { overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava.support { background: var(--brand); color: var(--brand-ink); }
.ava-btn { display: block; margin: 0 auto; border-radius: 50%; }
.ava-btn:not([disabled]) { cursor: zoom-in; }
.ava-edit { position: relative; cursor: pointer; flex: none; }
.ava-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; border: 2px solid var(--surface); }
/* Подсказки поиска */
.search-wrap { position: relative; z-index: 25; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); animation: in .15s ease-out; }
.suggest[hidden] { display: none; }
.sg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; text-align: left; }
.sg + .sg { border-top: 1px solid var(--line); }
.sg:active, .sg:hover { background: var(--surface-2); }
.sg-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; }
.sg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-tx b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-tx b mark { background: none; color: var(--brand-text); font-weight: 800; }
.sg-tx > span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-tp { font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface-2); padding: 3px 7px; border-radius: 6px; flex: none; }
.chip svg.i.sm { width: 14px; height: 14px; }
.pick-list mark { background: none; color: var(--brand-text); font-weight: 800; }
/* Рейтинг и отзывы */
:root { --star: #F5A524; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars i { color: var(--line); display: inline-flex; }
.stars i.on { color: var(--star); }
.stars i.on svg { fill: currentColor; }
.stars svg { width: 16px; height: 16px; }
.stars.sm svg { width: 13px; height: 13px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.rating > svg { color: var(--star); fill: currentColor; }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { color: var(--line); padding: 4px; }
.star-pick button.on { color: var(--star); }
.star-pick button.on svg { fill: currentColor; }
.star-pick svg { width: 36px; height: 36px; }
/* Профиль: карточка «Отчёты» и закреплённая поддержка */
.check-cta { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-lg); text-align: left; background: var(--surface); box-shadow: var(--shadow); border: 1.5px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.check-cta .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.check-cta b { display: block; font-size: 17px; }
.check-cta .grow > span { font-size: 13px; color: var(--text-2); }
.support-row { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1.5px solid color-mix(in srgb, var(--brand) 25%, transparent); }

/* ===== Мастер ===== */
.progress { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin: 0 16px; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 2px; transition: width .3s; }
.pick-list .mi { padding: 13px 16px; }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.year-grid .chip { justify-content: center; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .p { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photos .p img { width: 100%; height: 100%; object-fit: cover; }
.photos .p .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.photos .p .main { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; background: var(--brand); color: var(--brand-ink); padding: 2px 6px; border-radius: 6px; }
.photos label.add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brand-text); font-size: 12px; font-weight: 600; cursor: pointer; }

/* ===== Ищу ===== */
.seek-hero { padding: 8px 16px 4px; }
.req-card { padding: 16px; }
.req-card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 3px 0; }
.req-card .row .k { color: var(--text-3); }
.req-card .row .v { font-weight: 600; text-align: right; }
.stat-row { display: flex; gap: 8px; margin: 12px 0; }
.stat { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 10px; }
.stat b { font-size: 20px; display: block; }
.stat span { font-size: 12px; color: var(--text-2); }
.offer-card { border-left: 4px solid var(--brand); }
.offer-card.pro { border-left-color: var(--pro); }
.match-card { border: 1.5px dashed var(--line); box-shadow: none; background: transparent; }
.kick { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps > div { display: flex; gap: 12px; align-items: flex-start; }
.steps > div::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }

/* ===== Чат ===== */
.chat { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: var(--bg); }
.msgs { flex: 1; overflow-y: auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 80%; padding: 9px 12px; border-radius: 18px; font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.bub.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.bub.them { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.bub .tm { font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.bub.sys { align-self: center; background: transparent; color: var(--text-3); font-size: 12px; text-align: center; }
.bub .att { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; padding: 6px; background: rgba(255,255,255,.15); border-radius: 12px; }
.bub.them .att { background: var(--surface-2); }
.bub .att .ph { width: 54px; height: 40px; border-radius: 8px; flex: none; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; border-radius: 21px; border: 1.5px solid var(--line); background: var(--bg); padding: 10px 14px; resize: none; outline: none; font-size: 15px; }
.composer .icon-btn.send { background: var(--brand); color: var(--brand-ink); border-radius: 50%; }
.ctx-card { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ctx-card .ph { width: 56px; height: 42px; border-radius: 8px; flex: none; }

/* ===== Отчёт ===== */
.rep-sec { padding: 14px 16px; }
.rep-sec + .rep-sec { border-top: 1px solid var(--line); }
.rep-sec .hd { display: flex; align-items: center; gap: 10px; }
.rep-sec .st { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.rep-sec .st.ok { background: var(--ok-soft); color: var(--ok); }
.rep-sec .st.warn { background: var(--warn-soft); color: var(--warn); }
.rep-sec .st.na { background: var(--surface-2); color: var(--text-3); }
.rep-sec .src { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.timeline { margin: 10px 0 0 15px; border-left: 2px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }

/* ===== Онбординг ===== */
.welcome { min-height: 100%; display: flex; flex-direction: column; padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); position: relative; overflow: hidden;
  background: radial-gradient(120% 55% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), radial-gradient(90% 45% at 0% 100%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%), var(--bg); }
#screen > div:has(> .welcome) { display: flex; flex-direction: column; }
.welcome { flex: 1; }
.wl-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 8px; }
.wl-kicker { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.wl-title { margin: 14px 0 0; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
.wl-title span { color: var(--brand-text); }
.wl-feats { display: grid; gap: 10px; margin-top: 28px; }
.wl-feat { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wl-feat .ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--brand) 22%, var(--brand-soft))); color: var(--brand-text); }
.wl-feat b { display: block; font-size: 14px; }
.wl-feat span:not(.ic) { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); line-height: 1.35; }
.wl-cta { padding-top: 20px; }
@media (max-height: 700px) { .wl-feats { margin-top: 16px; gap: 8px; } .wl-feat { padding: 10px; } .wl-main { padding-top: 10px; } }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-text); flex: none; }
.code-inputs { display: flex; gap: 10px; justify-content: center; }
.code-inputs input { width: 200px; letter-spacing: .5em; padding-left: .5em; height: 64px; text-align: center; font-size: 26px; font-weight: 700; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); outline: none; }
.code-inputs input:focus { border-color: var(--brand); }

.divider { height: 8px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pre { white-space: pre-wrap; }
