@font-face { font-family: 'Epilogue'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/epilogue-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Epilogue'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/fonts/epilogue-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/static/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --ink: #1b1c19;
  --muted: #545a55;
  --line: #e2dfd7;
  --line-strong: #c9cdc6;
  --accent: #2b4736;
  --accent-ink: #ffffff;
  --accent-soft: #e4ede6;
  --accent-text: #2b4736;
  --terra: #a13f1e;
  --terra-ink: #ffffff;
  --terra-soft: #fdf0ea;
  --terra-line: #e7a58c;
  --warn: #7a4a00;
  --warn-soft: #fff1d6;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --pin: #614000;
  --pin-line: #e6b765;
  --pin-soft: #fbe6bd;
  --map-land: #eef0e8;
  --map-river: #9cc3dd;
  --radius: 16px;
  --font-head: 'Epilogue', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(27, 28, 25, 0.05), 0 6px 18px rgba(27, 28, 25, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121412;
    --surface: #1b1e1b;
    --surface-2: #232723;
    --ink: #e8e6e0;
    --muted: #b3b9b2;
    --line: #2f3530;
    --line-strong: #444b45;
    --accent: #aeceb7;
    --accent-ink: #0f2418;
    --accent-soft: #213328;
    --accent-text: #b9d8c2;
    --terra: #ffb59e;
    --terra-ink: #3a0b00;
    --terra-soft: #33201a;
    --terra-line: #8a4430;
    --warn: #f2be71;
    --warn-soft: #3a2c12;
    --danger: #ff8a80;
    --danger-soft: #3d1a17;
    --pin: #f2be71;
    --pin-line: #8a6420;
    --pin-soft: #3a2c12;
    --map-land: #1d2420;
    --map-river: #2f5a75;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1 { font-family: var(--font-head); font-weight: 700; font-size: 1.65rem; line-height: 1.15; margin: 0.6em 0 0.4em; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; margin: 1.5em 0 0.7em; }
.h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 1.3em 0 0.5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; flex: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.narrow { max-width: 440px; margin: 0 auto; }
.narrow-l { max-width: 520px; }
.stack { display: grid; gap: 14px; }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--accent-text); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo small { font-weight: 700; font-size: 1.35rem; color: var(--terra); letter-spacing: -0.03em; margin-left: -2px; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--accent-text); color: var(--accent-text); display: grid; place-items: center; }
.top-search { flex: 1; display: none; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 14px; height: 42px; }
.top-search input { border: 0; background: transparent; flex: 1; font: inherit; color: inherit; outline: none; min-width: 0; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang-sw { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-sw a { min-width: 38px; padding: 5px 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.lang-sw a:hover { text-decoration: none; color: var(--ink); }
.lang-sw a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.top-nav .ico { position: relative; padding: 8px; color: var(--ink); }
.admin-link { position: relative; display: flex; gap: 4px; align-items: center; padding: 8px; color: var(--ink); font-size: 0.9rem; }
.admin-link span { display: none; }
.btn-post span { display: none; }
.dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #b42318; color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 1; }
.ico .dot, .admin-link .dot, .tabs .dot { position: absolute; top: 2px; right: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 0.95rem/1 var(--font-body); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.big { min-height: 54px; font-size: 1.02rem; width: 100%; border-radius: 14px; }
.demo-accts { margin-bottom: 28px; }
.btn.demo-acct { flex-direction: column; gap: 3px; padding: 10px 20px; line-height: 1.25; }
.btn.demo-acct small { font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.btn.danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn.ghost.danger { background: var(--surface); color: var(--danger); border-color: var(--line); }
.btn.ok { background: var(--accent); }
.btn-post { min-height: 40px; padding: 0 14px; display: none; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 0.9rem/1 var(--font-body); cursor: pointer; white-space: nowrap; list-style: none; }
.chip::-webkit-details-marker { display: none; }
.chip select { border: 0; background: transparent; font: inherit; color: inherit; outline: none; }
.chip.accent { border-color: var(--accent-text); color: var(--accent-text); }
.chip.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip:hover { text-decoration: none; }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); white-space: normal; min-height: 38px; padding: 8px 14px; line-height: 1.3; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 18px rgba(27, 28, 25, 0.05); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.tabs a:hover { text-decoration: none; }
.tabs a .i { width: 24px; height: 24px; }
.tabs a.on { color: var(--accent-text); }
.tabs a.on::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 1px; }
.tabs .tab-post { color: var(--terra); }
.tabs .tab-post .i { background: var(--terra); color: var(--terra-ink); border-radius: 50%; padding: 8px; width: 44px; height: 44px; margin-top: -16px; box-shadow: 0 0 0 4px var(--surface), 0 4px 12px rgba(161, 63, 30, 0.3); }
.tabs .dot { right: calc(50% - 22px); }

.main { min-height: 60vh; padding-bottom: 24px; }
.foot { color: var(--muted); font-size: 0.85rem; padding: 24px 16px 32px; border-top: 1px solid var(--line); text-align: center; }
.foot a { color: var(--muted); }
.cats-foot a { margin-right: 10px; display: inline-block; }


.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px 4px; min-height: 90px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.cat:hover { text-decoration: none; border-color: var(--accent-text); }
.cat-i { line-height: 1; color: var(--accent-text); }
.cat .cat-i { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.cat-i .i { width: 24px; height: 24px; stroke-width: 1.7; }
.cats.big { grid-template-columns: repeat(2, 1fr); }
.cats.big .cat { flex-direction: row; justify-content: flex-start; padding: 10px 14px 10px 10px; min-height: 64px; font-size: 0.95rem; text-align: left; gap: 12px; }

.safety { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 0.9rem; margin: 18px 0 0; }
.safety .i { color: var(--terra); margin-top: 2px; }
.h2row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.card.hl { border: 2px solid var(--terra-line); background: linear-gradient(180deg, var(--terra-soft), var(--surface) 70%); }
.card.pinned { border: 2px solid var(--pin-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin-soft) 60%, transparent); }
.card-link { display: block; color: inherit; padding: 14px 14px 14px; }
.card-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 40px 10px 0; min-height: 26px; font-size: 0.82rem; color: var(--muted); }
.card-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.card-link:hover { text-decoration: none; }
.ph { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.tags { display: contents; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.tag .i { width: 0.95em; height: 0.95em; }
.tag-pin { background: var(--pin-soft); color: var(--pin); }
.tag-hl { background: var(--terra-soft); color: var(--terra); border: 1px solid var(--terra-line); }
.tag-drop { background: var(--accent-soft); color: var(--accent-text); }
.tag-sold, .tag-expired, .tag-removed, .tag-rejected { background: var(--ink); color: var(--bg); }
.tag-pending { background: var(--warn-soft); color: var(--warn); }
.tag-report { background: var(--danger-soft); color: var(--danger); }
.tag-active { background: var(--accent-soft); color: var(--accent); }
.count { position: absolute; bottom: 6px; right: 6px; display: inline-flex; gap: 4px; align-items: center; background: rgba(20, 22, 20, 0.7); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.card-b { padding: 0; min-width: 0; }
.card .price { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--accent-text); margin: 0; line-height: 1.2; }
.card.hl .price { color: var(--terra); }
.card h3 { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; margin: 4px 0 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin: 0; font-size: 0.82rem; color: var(--muted); }
.ftags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.ftags span { font-size: 0.74rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.card .meta .i { width: 0.95em; height: 0.95em; margin-right: 2px; }
.card .when { margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }
.fav-f { position: absolute; top: 8px; right: 8px; margin: 0; }
.fav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.fav:hover { color: var(--ink); background: var(--surface-2); }
.fav.on .i, .fav-wide.on .i { fill: var(--terra); stroke: var(--terra); }
.fav.on { color: var(--terra); }

.list-head h1 { margin-bottom: 0.2em; }
.intro { color: var(--muted); margin: 0 0 8px; }
.corrected { margin: 4px 0 8px; padding: 8px 12px; background: var(--warn-soft); border-radius: 10px; font-size: 0.9rem; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.count-l { font-weight: 600; margin-right: auto; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.seg a.on { background: var(--accent); color: var(--accent-ink); }
.seg a:hover { text-decoration: none; }
.seg.wide { display: flex; margin: 8px 0 14px; }
.seg.wide a { flex: 1; justify-content: center; }
.sortf { margin: 0; }
.savef { margin: 0; }
.sheet { position: relative; }
.sheet > summary { list-style: none; cursor: pointer; }
.sheet > summary::-webkit-details-marker { display: none; }
.sheet[open] > .sheet-b { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 85vh; overflow: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2); display: grid; gap: 12px; }
.sheet[open]::before { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 40; }
.fl { display: grid; gap: 6px; font-size: 0.9rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.fl > span, .fl legend span { font-weight: 600; }
.fl em { font-style: normal; font-weight: 400; color: var(--muted); }
.fl legend { padding: 0; margin-bottom: 6px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; min-height: 48px; width: 100%; }
textarea { padding: 10px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.rng { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.unit-w { position: relative; display: flex; align-items: center; }
.unit-w .pre { position: absolute; left: 12px; color: var(--muted); font-weight: 500; }
.unit-w .pre + input { padding-left: 26px; }
.unit-w .unit { position: absolute; right: 12px; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; width: 1px; min-height: 0; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; }
.pill input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.citymap { width: 100%; height: auto; display: block; max-width: 640px; margin: 0 auto 12px; }
.citymap .land { fill: var(--map-land); stroke: var(--line); }
.citymap .river { fill: none; stroke: var(--map-river); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.citymap .b { fill: var(--accent); fill-opacity: 0.85; stroke: var(--surface); stroke-width: 2; }
.citymap .b0 { fill: var(--muted); fill-opacity: 0.35; }
.citymap .on { fill: var(--terra); fill-opacity: 1; }
.citymap .n { fill: var(--accent-ink); font: 700 11px var(--font-body); text-anchor: middle; pointer-events: none; }
.citymap .l { fill: var(--ink); font: 600 9.5px var(--font-body); text-anchor: middle; paint-order: stroke; stroke: var(--map-land); stroke-width: 3px; pointer-events: none; }
.citymap a:hover .b { fill-opacity: 1; }

.empty { text-align: center; padding: 36px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.big { padding: 60px 16px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; font-size: 0.9rem; color: var(--muted); }

.crumbs { font-size: 0.82rem; color: var(--muted); margin: 10px 0; }
.crumbs a { color: var(--muted); }
.ad { display: grid; gap: 14px; }
.ad-media { position: relative; margin: 0 -16px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #0d100f; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gal-count { position: absolute; bottom: 10px; right: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.8rem; padding: 3px 9px; border-radius: 999px; }
.ad-title { font-size: 1.5rem; margin: 6px 0 4px; }
.ad-price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-text); margin: 0; }
.was { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.ad-meta { color: var(--muted); font-size: 0.86rem; margin: 4px 0 12px; }
.ad-tags { display: flex; gap: 6px; }
.contact { display: grid; gap: 8px; margin: 12px 0; }
.contact form { margin: 0; }
.fav-wide { width: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.facts div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: 0.78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.desc p { margin: 0 0 0.8em; overflow-wrap: anywhere; }
.loc .citymap { max-width: 360px; margin: 0; }
.seller { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.seller p { margin: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; }
.owner-box { background: var(--accent-soft); border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.owner-box p { margin: 0; }
.report { margin: 18px 0; }
.reasons { display: grid; gap: 8px; margin: 0; }
.reason { min-height: 50px; text-align: left; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font: 500 1rem inherit; font-family: inherit; color: var(--ink); cursor: pointer; }
.reason:hover { border-color: var(--danger); }
.reasons.alt { margin-top: 4px; }

.note { padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: 0.92rem; display: flex; gap: 8px; align-items: flex-start; }
.note-ok { background: var(--accent-soft); }
.note-ok .i { color: var(--accent); }
.note-err { background: var(--danger-soft); }
.note-pending { background: var(--warn-soft); }

.back { display: inline-flex; gap: 4px; align-items: center; margin-top: 12px; font-size: 0.9rem; }
.post .sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 12px; display: grid; gap: 14px; }
.post .sec .h3 { margin: 0; }
.post .sec > p { margin: 0; }
.fgrid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.fgrid > fieldset { grid-column: 1 / -1; }
.uploader { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uploader li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.uploader li img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.uploader li.dragging { opacity: 0.5; outline: 2px dashed var(--accent); }
.uploader li.busy::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%232b4736' stroke-width='3' stroke-dasharray='40 20'/%3E%3C/svg%3E") center / 32px no-repeat; }
.uploader li:first-child:not(.add)::before { content: attr(data-cover); position: absolute; left: 6px; top: 6px; z-index: 1; background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.uploader .x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.uploader .mv { position: absolute; bottom: 4px; right: 4px; display: flex; gap: 4px; }
.uploader .mv button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, 0.9); cursor: pointer; font-size: 0.85rem; }
.uploader .add { background: var(--accent-soft); border: 2px dashed var(--accent); touch-action: auto; }
.uploader .add label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; color: var(--accent); font-weight: 600; font-size: 0.82rem; cursor: pointer; text-align: center; padding: 4px; }
.uploader .add .i { width: 28px; height: 28px; }
.uploader .add input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.err-l { color: var(--danger); font-size: 0.88rem; margin: 0; }
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex: none; }
.switch small { display: block; color: var(--muted); }
.submit-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 6px; }
.submit-bar p { text-align: center; margin: 8px 0 0; }
.prohibited { margin-top: 18px; }
.lead { font-size: 1.05rem; color: var(--muted); margin-top: 0; }
.done { text-align: center; padding: 30px 8px; max-width: 520px; margin: 0 auto; }
.done-i { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.done-i .i { width: 38px; height: 38px; }
.done-i.ok { background: var(--accent-soft); color: var(--accent); }
.done-i.wait { background: var(--warn-soft); color: var(--warn); }
.code { font-size: 1.6rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }

.subnav { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; scrollbar-width: none; }
.subnav a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 0.88rem; white-space: nowrap; }
.subnav a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.subnav a:hover { text-decoration: none; }
.manage { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 10px; }
.manage > .card { max-width: 460px; }
.status-l { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.promos { display: grid; gap: 10px; }
.promo-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.promo-c h3 { margin: 0; font-family: var(--font-head); font-size: 1.05rem; display: flex; gap: 6px; align-items: center; }
.promo-c h3 .i { color: var(--pin); }
.promo-c p { margin: 0; }

.convs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.convs li + li { border-top: 1px solid var(--line); }
.convs a { display: flex; gap: 12px; align-items: center; padding: 12px; color: inherit; }
.convs a:hover { text-decoration: none; background: var(--bg); }
.convs img, .convs .noimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line); }
.convs a > div { flex: 1; min-width: 0; }
.convs p { margin: 0; }
.convs .row1 { display: flex; justify-content: space-between; gap: 8px; }
.convs .last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 0.9rem; }
.convs .unread .last { color: var(--ink); font-weight: 600; }
.group { margin-top: 18px; }

.chat { display: flex; flex-direction: column; gap: 10px; min-height: calc(100vh - 200px); padding-top: 10px; }
.chat-ad { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: inherit; }
.chat-ad:hover { text-decoration: none; }
.chat-ad img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.chat-ad p { margin: 0; }
.msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.msgs li { max-width: 82%; padding: 9px 13px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.msgs li p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msgs li time { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.msgs li.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.msgs li.me time { color: var(--accent-ink); opacity: 0.8; }
.msgs li.sys { align-self: center; background: transparent; border: 0; color: var(--muted); font-size: 0.88rem; text-align: center; }
.msgs .warn { margin-top: 6px !important; padding: 6px 8px; background: var(--warn-soft); color: var(--ink); border-radius: 10px; font-size: 0.82rem; display: flex; gap: 6px; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.composer { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; background: var(--bg); padding: 8px 0; margin: 0; }
.composer textarea { min-height: 46px; max-height: 140px; border-radius: 22px; padding: 11px 16px; }
.composer .btn { border-radius: 22px; }
.chat-tools { display: flex; justify-content: space-between; }
.chat-tools form { margin: 0; }

.notifs, .saved { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notifs li + li, .saved li + li { border-top: 1px solid var(--line); }
.notifs a { display: flex; gap: 12px; padding: 12px 14px; color: inherit; align-items: flex-start; }
.notifs a:hover { text-decoration: none; background: var(--bg); }
.notifs .i { color: var(--accent); margin-top: 2px; }
.notifs time { display: block; color: var(--muted); font-size: 0.78rem; }
.notifs .unread { background: var(--accent-soft); }
.notifs .unread a span { font-weight: 600; }
.saved li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; }
.saved form { margin: 0; }
.saved a { display: flex; gap: 8px; align-items: center; }

.queue { display: grid; gap: 14px; }
.qi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.qi.current { border: 2px solid var(--accent); }
.qhead { display: grid; gap: 12px; }
.qphotos { display: flex; gap: 6px; overflow-x: auto; }
.qphotos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.qbody p { margin: 2px 0; }
.qbody .h3 { margin: 4px 0; }
.qk { font-size: 0.82rem; color: var(--muted); }
.qdesc { color: var(--muted); }
.reasons-l { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.reasons-l li { background: var(--danger-soft); color: var(--danger); font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.reasons-l li.soft { background: var(--warn-soft); color: var(--warn); }
.qa { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qa form { margin: 0; display: flex; gap: 6px; }
.qa select { min-height: 44px; width: auto; max-width: 170px; }
.kbd-hint { display: none; }
.adm-more { margin-top: 20px; }
.adm-more summary { cursor: pointer; font-weight: 600; }
.log li { padding: 2px 0; }
.inline { display: inline; }
.danger-zone { margin-top: 30px; padding: 14px; border: 1px solid var(--danger-soft); border-radius: var(--radius); }
.danger-zone summary { color: var(--danger); cursor: pointer; font-weight: 600; }
.prose { max-width: 680px; }
.outbox { list-style: none; padding: 0; display: grid; gap: 10px; }
.outbox li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.outbox pre { white-space: pre-wrap; font: inherit; font-size: 0.9rem; margin: 6px 0 0; }

.loc-pill { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 12px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.loc-pill:hover { text-decoration: none; border-color: var(--line-strong); }
.loc-pill .i { color: var(--accent-text); }
.search-big { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 4px 6px 4px 16px; box-shadow: var(--shadow); }
.search-big:focus-within { border-color: var(--accent-text); }
.search-big input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.02rem; color: inherit; min-width: 0; height: 50px; padding: 0; }
.search-big input:focus { outline: none; }
.search-big .go { width: 44px; height: 44px; border: 0; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.search-big .go:hover { color: var(--accent-text); text-decoration: none; }
.search-hint { display: flex; gap: 6px; align-items: center; margin: 8px 2px 0; font-size: 0.84rem; color: var(--muted); }
.search-hint .i { color: var(--terra); width: 1.05em; height: 1.05em; }
.search-hint strong { color: var(--ink); }
.trust { margin: 18px 0 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 14px 12px; }
.trust-h { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }
.trust-h .i { color: var(--accent-text); }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-in a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 4px 4px; color: var(--ink); font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.trust-in a:hover { text-decoration: none; }
.trust-in a + a { border-left: 1px solid var(--line); }
.trust-in .i { width: 22px; height: 22px; color: var(--accent-text); margin-bottom: 3px; }
.trust-in small { font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.cta { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 18px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.cta:hover { text-decoration: none; filter: brightness(1.06); }
.cta-i { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent-ink) 14%, transparent); display: grid; place-items: center; flex: none; }
.cta-i .i { width: 26px; height: 26px; }
.cta-t { flex: 1; min-width: 0; }
.cta-t strong { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.cta-t span { font-size: 0.86rem; opacity: 0.88; }
.cta > .i { width: 26px; height: 26px; flex: none; }
.cat-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-c { display: flex; align-items: center; gap: 10px; flex: none; min-height: 56px; padding: 8px 16px 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 700; font-size: 0.9rem; scroll-snap-align: start; }
.cat-c:hover { text-decoration: none; border-color: var(--accent-text); }
.cat-c .cat-i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.cat-c .cat-i .i { width: 20px; height: 20px; stroke-width: 1.8; }
.cat-t { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.cat-n { color: var(--muted); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.h2row .h2 { margin-bottom: 0.5em; }
.h2row .side { font-size: 0.86rem; color: var(--muted); }
.quick-f { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px; }
.quick-f::-webkit-scrollbar { display: none; }
.more { margin: 16px 0 0; }
.tips { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.tips .i { color: var(--terra); width: 24px; height: 24px; margin-top: 2px; }
.tips p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.tips strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .tabs { display: none; }
  .top-search { display: flex; }
  .btn-post span, .admin-link span { display: inline; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-post { display: inline-flex; }
  .cat-row { flex-wrap: wrap; overflow: visible; }
  .trust-in { max-width: 720px; }
  .cats { grid-template-columns: repeat(7, 1fr); }
  .cats.big { grid-template-columns: repeat(3, 1fr); }
  .ad { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .ad-media { margin: 0; border-radius: var(--radius); overflow: hidden; position: sticky; top: 74px; }
  .submit-bar, .composer { bottom: 0; }
  .manage { grid-template-columns: 300px 1fr; }
  .promos { grid-template-columns: 1fr 1fr; }
  .qhead { grid-template-columns: auto 1fr; }
  .kbd-hint { display: inline; }
  .sheet[open] > .sheet-b { position: absolute; left: 0; right: auto; bottom: auto; top: calc(100% + 6px); width: 360px; border-radius: 16px; max-height: 70vh; }
  .sheet[open]::before { background: transparent; }
  .hero-search { max-width: 640px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cta-t span { display: block; line-height: 1.4; margin-top: 2px; }
.h2row { align-items: baseline; }
