:root {
  --ink: #1A1613;
  --paper: #EFE8DC;
  --card: #FFFDF8;
  --line: #D8CFC2;
  --mandarin: #B84328;
  --berry: #9B3144;
  --leaf: #3E6B4F;
  --indigo: #3D4A5C;
  --muted: #74685C;
  --glass: rgba(255, 253, 248, 0.78);
  --shadow: 0 1px 0 rgba(26, 22, 19, 0.04), 0 18px 40px rgba(26, 22, 19, 0.06);
  --radius: 20px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body { margin: 0; padding: 0; }
body {
  font-family: Manrope, system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(239, 232, 220, 0.90) 0%, rgba(239, 232, 220, 0.94) 48%, rgba(239, 232, 220, 0.97) 100%),
    url("/img/bg-linen.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
@media (min-width: 1280px) {
  body:has(.legal-wide) .wrap { width: min(1360px, calc(100% - 48px)); }
}
@media (min-width: 1680px) {
  body:has(.legal-wide) .wrap { width: min(1600px, calc(100% - 80px)); }
}

.stripe {
  height: 4px;
  background: linear-gradient(90deg, #FF6A12 0%, #2A5BFF 52%, #1A1613 100%);
}

.top {
  background: var(--glass);
  border-bottom: 1px solid rgba(216, 207, 194, 0.7);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top-inner {
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
}
.logo img { width: 28px; height: 28px; }
.city-form {
  position: relative;
  overflow: visible;
  z-index: 2;
}
.city-form:focus-within { z-index: 30; }
.city-form input,
.search input,
.btn, .icon-btn { height: 44px; }
.city-suggest { position: relative; width: 100%; z-index: 1; }
.city-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.city-clear:hover { color: var(--ink); background: #fff; }
.city-suggest:has(.city-clear:not([hidden])) input { padding-right: 34px; }
.city-suggest:focus-within,
.city-suggest.is-open { z-index: 80; }
.city-form .city-suggest { width: auto; }
.city-form .city-suggest { width: auto; }
.city-form input {
  width: 196px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  height: 44px;
}
.city-suggest-list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: min(320px, 86vw);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.city-suggest-list li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.city-suggest-list li:hover,
.city-suggest-list li.is-active { background: #F3EBE0; }
.city-suggest-list strong { font-weight: 800; font-size: 14px; }
.city-suggest-list small { color: var(--muted); font-size: 12px; font-weight: 500; }
.form .city-suggest input,
.sell-field .city-suggest input { width: 100%; }
.lot-sticky { display: none; }
.search { position: relative; display: flex; align-items: center; gap: 8px; }
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 96px 0 42px;
  background: var(--paper);
}
.search-go {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 6px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #C45438 0%, #B84328 70%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 4px 10px rgba(184, 67, 40, .22);
}
.search::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238A7464' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
.search input:focus, .city-form input:focus {
  outline: 2px solid rgba(184, 67, 40, 0.45);
  border-color: transparent;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-mandarin {
  background: linear-gradient(180deg, #C45438 0%, #B84328 70%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 8px 16px rgba(184, 67, 40, .22);
}
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset, 0 6px 14px rgba(26, 22, 19, .05);
}
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-vk { background: #0077FF; color: #fff; }
.btn-ya { background: #FC3F1D; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  position: relative;
}
.dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--berry);
}

.cat-rail {
  background: rgba(255, 253, 248, 0.62);
  border-bottom: 1px solid rgba(216, 207, 194, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cat-rail-inner {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}
.cat-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.cat-arrow:hover { border-color: var(--ink); }
.cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  padding: 14px 2px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d8c4b0 transparent;
}
.cats::-webkit-scrollbar { height: 6px; }
.cats::-webkit-scrollbar-thumb {
  background: #d8c4b0;
  border-radius: 99px;
}
.cat-tile {
  flex: 0 0 156px;
  min-width: 156px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
.cat-tile:hover { border-color: #cbb6a0; }
.cat-tile.on { border-color: var(--ink); }
.cat-tile img { width: 100%; height: 104px; object-fit: cover; background: #F3EBE0; }
.cat-tile strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  padding: 6px 6px;
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cat-tile.cat-all {
  display: grid;
  place-items: center;
  background: var(--paper);
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.section { padding: 22px 0 4px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
h1, h2 { letter-spacing: -0.05em; margin: 0; font-weight: 800; }
h1 { font-size: 28px; }
h2 { font-size: 26px; }
.muted { color: var(--muted); }
.promo { font-size: 14px; color: var(--muted); margin: 0; }

.choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.choice-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  background: #1c1410;
}
.choice-card img { width: 100%; height: 220px; object-fit: cover; }
.choice-card .on {
  position: absolute; left: 14px; bottom: 14px; color: #fff;
  text-shadow: 0 1px 12px #0008;
}
.choice-card .price { color: var(--mandarin); font-size: 26px; }
.choice-card .badge { left: 12px; top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 10px;
}
.lot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lot > a { display: block; color: inherit; }
.lot.hi { border: 2px solid var(--berry); }
.lot-photo { position: relative; aspect-ratio: 1 / 1; background: #E8DFD2; }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--indigo);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}
.badge.choice { background: var(--mandarin); }
.lot-fav-form {
  position: absolute;
  right: 8px; top: 8px;
  z-index: 2;
  margin: 0;
}
.lot-fav {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fffc;
  color: var(--berry);
  cursor: pointer;
  font-size: 15px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.lot-fav.on { background: #fff; }
.lot-body { padding: 8px 9px 10px; }
.price {
  color: var(--mandarin);
  font-weight: 800;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.lot .price {
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lot-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin: 2px 0 3px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}
.meta { font-size: 13px; color: var(--muted); }
.lot .meta { font-size: 11px; line-height: 1.3; }
.lot .plan-badge { font-size: 11px; margin-top: 2px; }
.plan-badge { font-size: 13px; color: var(--indigo); font-weight: 700; margin-top: 4px; }
.empty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.how { margin: 8px 0 22px; }
.how-fold {
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffc;
  padding: 4px 14px 4px;
}
.how-fold > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 4px;
  list-style: none;
}
.how-fold > summary::-webkit-details-marker { display: none; }
.how-fold[open] { padding-bottom: 12px; }
.how-fold .how { margin: 0; }
.how-fold .how-head { margin-bottom: 10px; }
.how-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.how-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--muted); }
.how-head h1, .how-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.how-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.how-card b { display: block; margin-bottom: 6px; }
.how-card p { margin: 0; font-size: 14px; color: var(--muted); }
.how-card-warn { border-color: #e2c4b6; background: #fff8f4; }
.how-page { margin: 18px 0 28px; }
.how-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal .lead { font-size: 18px; }
.legal-wide { max-width: none; }
.legal-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: 12px 40px;
  align-items: end;
  margin-bottom: 6px;
}
.legal-wide h1 { font-size: clamp(28px, 3vw, 40px); }
.legal-wide .lead { margin: 0; max-width: none; }
.legal-wide .how-grid { gap: 14px; }
.legal-wide .how-card { padding: 18px 20px; min-height: 148px; }
.legal-wide .how-card p { font-size: 15px; color: #3a2e26; }
.legal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
  margin: 8px 0 18px;
}
.legal-split > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px 20px;
  box-shadow: var(--shadow);
}
.legal-split h2 { margin: 0 0 12px; }
.legal-foot {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 16px 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.legal-foot h2 { margin: 0 0 8px; }
.legal-foot p { margin: 0; }
.legal-foot .how-cta { margin: 0; }
.lot-how { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.howto-actions { display: grid; gap: 8px; }

.cab { padding: 22px 0 80px; }
.cab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cab-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.cab-head h1 { margin: 0 0 4px; }
.cab-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cab-modes { display: flex; gap: 8px; }
.cab-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}
.cab-steps div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}
.cab-steps b {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 13px;
}
.cab-steps a { font-weight: 800; white-space: nowrap; }
.cab-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cab-stat {
  display: grid;
  gap: 2px;
  min-width: 120px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  color: inherit;
  box-shadow: var(--shadow);
}
.cab-stat b { font-size: 20px; letter-spacing: -0.04em; }
.cab-stat span { font-size: 13px; color: var(--muted); }
.lot-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.lot-stats span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 88%, var(--copper, #c45c26) 12%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.lot-stats--owner { margin: 10px 0 14px; }
.lot-views { margin: 4px 0 0; }
.cab-slots { margin: 0 0 18px; }
.cab-pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 0 0 22px;
}
.cab-pick-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.cab-pick-head h2 { margin: 0 0 4px; font-size: 20px; }
.cab-roots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cab-root {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
}
.cab-root img { width: 72px; height: 56px; object-fit: cover; background: #F3EBE0; }
.cab-root span { padding-right: 10px; }
.cab-root strong { display: block; font-size: 15px; }
.cab-root em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.cab-root:hover { border-color: #cbb6a0; }
.cab-root.on { border-color: var(--ink); background: #fff; }
.cab-kids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cab-kid {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: inherit;
}
.cab-kid.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cab-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cab-block { margin: 0 0 28px; }
.cab-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.cab-block-head h2 { margin: 0; font-size: 20px; }
.cab-chats { display: grid; gap: 8px; }
.cab-more {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
}
.cab-more summary { cursor: pointer; font-weight: 800; }
.cab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0;
}

.howto {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 22px;
  margin: 28px 0 8px;
  box-shadow: var(--shadow);
}
.howto-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.step { background: var(--paper); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.step b { display: block; color: var(--ink); margin-bottom: 2px; }

.badge.demo { background: var(--ink); }
.examples-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  color: var(--ink);
}
.feed-tools { margin: 8px 0 18px; }
.feed-toolbar { margin: 0 0 10px; }
.home-doors { padding-top: 8px; }
.home-doors-lead { margin: -6px 0 14px; font-size: 14px; }
.door-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .door-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1024px) {
  .door-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.door {
  position: relative;
  display: block;
  min-height: 112px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.door img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.door span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(26, 22, 19, .55) 28%, var(--door-accent, #1A1613));
}
.door-all {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(184, 67, 40, 0.12), rgba(61, 74, 92, 0.08)),
    var(--card);
}
.door-all span {
  position: static;
  background: none;
  color: var(--ink);
  text-align: center;
  padding: 16px;
}
.door:hover { border-color: #cbb6a0; }
.sort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sort-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none;
}
.sort-chip:hover { border-color: #cbb6a0; }
.sort-chip.on {
  background: var(--mandarin);
  border-color: var(--mandarin);
  color: #fff;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 10px;
}
.feed-meta .filter-found { margin: 0; }
.feed-meta .filter-save { margin: 0; }
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}
.filter-bar .filter-field { margin: 0; }
.filter-fold {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
  box-shadow: var(--shadow);
}
.filter-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 0;
  list-style: none;
}
.filter-fold summary::after {
  content: "\25BE";
  color: var(--muted);
  font-size: 13px;
}
.filter-fold[open] summary::after { content: "\25B4"; }
.filter-fold summary::-webkit-details-marker { display: none; }
.filter-fold summary span { font-weight: 600; color: var(--muted); margin-left: 8px; }
.filter-fold[open] { padding-bottom: 16px; }
.filter-fold .filter-panel { box-shadow: none; border: 0; padding: 8px 0 0; }
.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.filter-k { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin: 0 0 6px; }
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 10px;
  margin: 4px 0 12px;
}
.filter-field { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); min-width: 0; }
.filter-field select, .filter-field input, .filter-pair input {
  height: 40px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; background: #fff; font-weight: 700; color: var(--ink);
  min-width: 0; width: 100%;
}
.filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.subcats a {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px;
}
.subcats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.subcats-fine a { background: var(--card); }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
.facet-label {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 72px; font-size: 13px; font-weight: 800; color: var(--muted);
}
.facet-label::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2'/></svg>");
}
.facet-label[data-key="who"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='2.4' fill='black'/><path d='M3.5 13.2c.6-3 2.4-4.4 4.5-4.4s3.9 1.4 4.5 4.4' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='5' r='2.4' fill='black'/><path d='M3.5 13.2c.6-3 2.4-4.4 4.5-4.4s3.9 1.4 4.5 4.4' fill='black'/></svg>");
}
.facet-label[data-key="deal"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h12M10 4l4 4-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h12M10 4l4 4-4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.facet-label[data-key="size"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 13 13 2M5 13h8v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 13 13 2M5 13h8v-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}
.facet-label[data-key="age"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2'/><path d='M8 5v4l2.4 1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='2'/><path d='M8 5v4l2.4 1.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}
.facet-label[data-key="brand"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2.5' y='3.5' width='11' height='9' rx='1.6' fill='none' stroke='black' stroke-width='2'/><path d='M6 8h4' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='2.5' y='3.5' width='11' height='9' rx='1.6' fill='none' stroke='black' stroke-width='2'/><path d='M6 8h4' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>");
}
.facet-label[data-key="rooms"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 13V7l6-4 6 4v6H2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><path d='M6.5 13v-4h3v4' fill='none' stroke='black' stroke-width='2'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 13V7l6-4 6 4v6H2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/><path d='M6.5 13v-4h3v4' fill='none' stroke='black' stroke-width='2'/></svg>");
}
.facet .subcats { margin: 0; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-check { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--mandarin); cursor: pointer; }
.filter-check input[type="radio"], .filter-check input[type="checkbox"] { flex: 0 0 auto; }
.filter-found { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
@media (min-width: 901px) {
  .filter-fold {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .filter-fold > summary { display: none; }
  .filter-fold > .filter-panel {
    display: block !important;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px 16px 16px;
    box-shadow: var(--shadow);
  }
}
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h, 72px) + 10px); z-index: 80;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
[hidden] { display: none !important; }
.cookie-bar p { margin: 0; font-size: 13px; color: var(--muted); max-width: 640px; }
.cookie-bar a { color: var(--mandarin); font-weight: 700; }
.filters select, .filters input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
}

.gallery { position: relative; background: #111; border-radius: 24px; overflow: hidden; }
.gallery img { width: 100%; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.gallery .count {
  position: absolute; right: 12px; bottom: 12px;
  background: #0008; color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 13px;
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.lot-page { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 24px 0 80px; }
.lot-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  position: sticky;
  top: 88px;
  height: fit-content;
  box-shadow: var(--shadow);
}
.seller { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--indigo); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.heart { color: var(--berry); }
.boosts { display: grid; gap: 8px; margin-top: 16px; }
.warn {
  display: grid;
  gap: 4px;
  background: #fff4d6;
  color: #6a4a10;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  margin: 12px 0;
  text-wrap: pretty;
}
.warn a { white-space: nowrap; }

.form { max-width: 640px; display: grid; gap: 14px; padding: 20px 0 24px; }
.form .actions {
  position: relative;
  z-index: 45;
}
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  font-weight: 500;
}
.form .check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.45;
}
.form .check-line input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--mandarin);
}
.form .check-text {
  min-width: 0;
  font-weight: 500;
}
.form .check-text a { display: inline; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps i {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--line); font-size: 13px; font-weight: 800; font-style: normal;
}
.steps i.on { background: var(--mandarin); color: #fff; }
.step-pane { display: none; }
.step-pane.on { display: grid; gap: 14px; }
.preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
}
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.err { color: var(--berry); font-size: 14px; }
.ok { background: #e8f6ee; color: var(--leaf); padding: 10px 12px; border-radius: 12px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tabs a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--mandarin); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { font-size: 13px; color: var(--muted); }

.chat-list { display: grid; gap: 8px; padding: 16px 0 80px; }
.chat-list h1 { margin: 0 0 4px; }
.chat-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  box-shadow: 0 1px 0 #fff inset, 0 8px 20px rgba(26, 22, 19, .04);
}
.chat-row.unread { border-color: #E2CDBB; background: #FFF8F2; }
.chat-ava-wrap { position: relative; width: 64px; height: 64px; }
.chat-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.chat-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #C9BDB0; border: 2px solid #fff;
}
.chat-dot.on { background: var(--leaf); }
.chat-row-main { min-width: 0; }
.chat-row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chat-row-top b { font-size: 16px; }
.chat-row-top time { color: var(--muted); font-size: 12px; font-weight: 700; }
.chat-row .lot-title { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-side { display: grid; justify-items: end; gap: 8px; align-content: start; }
.unread-pill {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--mandarin); color: #fff;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

.thread {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 96px);
  margin: 0 -4px;
}
.thread-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(120px, 38%);
  gap: 10px;
  align-items: center;
  padding: 6px 0 10px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: linear-gradient(180deg, var(--paper) 70%, transparent);
}
.thread-back {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); font-weight: 800;
}
.thread-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thread-who b { display: block; font-size: 16px; line-height: 1.2; }
.thread-ava {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #F3E4D8; color: var(--ink); font-weight: 800;
  position: relative; flex: 0 0 auto;
}
.thread-ava.on::after {
  content: "";
  position: absolute; right: 0; bottom: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--leaf); border: 2px solid #fff;
}
.thread-seen { font-size: 12px; color: var(--muted); font-weight: 700; }
.thread-seen.on { color: var(--leaf); }
.thread-lot {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center;
  min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px;
}
.thread-lot img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.thread-lot span {
  min-width: 0; font-size: 12px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thread-lot em { display: block; font-style: normal; font-weight: 800; color: var(--mandarin); }
.thread-empty { text-align: center; padding: 28px 12px; }
.msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 12px;
}
.day-sep {
  align-self: center;
  margin: 10px 0 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,253,248,.86);
  border: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.msg-row {
  display: flex;
  flex-direction: column;
  max-width: min(82%, 420px);
  align-items: flex-start;
  position: relative;
}
.msg-row.me { margin-left: auto; align-items: flex-end; }
.bubble {
  padding: 9px 12px 6px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(26, 22, 19, .04);
}
.msg-row.me .bubble {
  background: #F3E4D8;
  border-color: #E2CDBB;
  border-radius: 18px 18px 6px 18px;
}
.bubble-text { margin: 0; white-space: pre-wrap; word-break: break-word; }
.quote {
  display: block; width: 100%; text-align: left;
  margin: 0 0 6px; padding: 6px 8px;
  border: 0; border-left: 3px solid var(--mandarin);
  background: rgba(255,255,255,.45); border-radius: 0 10px 10px 0;
  cursor: pointer;
}
.quote b { display: block; font-size: 12px; }
.quote span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble-meta {
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 700;
}
.ticks { letter-spacing: -0.12em; }
.ticks.read { color: var(--leaf); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; min-height: 0; margin-top: 4px; }
.react-chip {
  height: 26px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer;
}
.react-chip.mine { border-color: #D2A48C; background: #F8EDE4; }
.react-chip i { font-style: normal; font-weight: 800; font-size: 11px; color: var(--muted); }
.msg-tools {
  display: flex; gap: 8px; opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.msg-row:hover .msg-tools,
.msg-row:focus-within .msg-tools,
.msg-row.is-open .msg-tools { opacity: 1; pointer-events: auto; }
.msg-row.is-open .bubble { outline: 2px solid rgba(184, 67, 40, .35); }
.msg-tools button {
  border: 0; background: none; padding: 4px 2px;
  color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer;
}
.react-pick {
  display: flex; gap: 2px; margin-top: 4px;
  padding: 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.react-pick[hidden] { display: none; }
.react-pick button {
  width: 34px; height: 34px; border: 0; background: transparent;
  border-radius: 50%; font-size: 18px; cursor: pointer;
}
.react-pick button:hover { background: var(--paper); }
.msg { max-width: 78%; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.msg.me { margin-left: auto; background: #F3E4D8; border-color: #E2CDBB; }
.chat-form { display: flex; gap: 8px; position: sticky; bottom: var(--dock-h, 72px); z-index: 40; padding: 8px 0; background: var(--paper); }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; background: #fff; }
.tpl { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tpl button { height: 32px; padding: 0 10px; font-size: 12px; }
.thread-compose {
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--paper) 18px);
}
.reply-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 8px; padding: 8px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  border-left: 3px solid var(--mandarin);
}
.reply-bar b { display: block; font-size: 12px; }
.reply-bar span { font-size: 13px; color: var(--muted); }
.reply-x {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: var(--paper); cursor: pointer; font-size: 18px;
}
.emoji-tray {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin-bottom: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.emoji-tray[hidden] { display: none; }
.emoji-tray button {
  width: 36px; height: 36px; border: 0; background: transparent;
  border-radius: 10px; font-size: 20px; cursor: pointer;
}
.emoji-tray button:hover { background: var(--paper); }
.compose-form {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: end;
}
.compose-ico,
.compose-send {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
}
.compose-ico {
  background: #fff; border: 1px solid var(--line); font-size: 20px; cursor: pointer;
}
.compose-form textarea {
  width: 100%; min-height: 44px; max-height: 140px;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 11px 14px; background: #fff; resize: none;
  line-height: 1.35;
}
.compose-form textarea:focus,
.compose-ico:focus,
.compose-send:focus { outline: 2px solid rgba(184, 67, 40, 0.45); outline-offset: 1px; }
.thread-more { margin-top: 6px; text-align: center; }
.thread-report {
  border: 0; background: none; padding: 4px;
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
}

body.is-chat .page { padding-top: 12px; }
@media (max-width: 760px) {
  body.is-chat .city-form,
  body.is-chat .search { display: none; }
  body.is-chat .top-inner { grid-template-columns: auto 1fr auto; }
  body.is-chat .top-actions .btn-ghost { display: none; }
  .thread-head { grid-template-columns: 40px minmax(0, 1fr) minmax(110px, 42%); }
  .msg-tools { opacity: 1; pointer-events: auto; }
}
body.is-thread .footer,
body.is-thread .dock,
body.is-thread .top,
body.is-thread .stripe,
body.is-thread .cookie-bar { display: none !important; }
body.has-cookie { padding-bottom: 150px; }
body.has-cookie.is-thread { padding-bottom: 0; }
body.is-thread .page { padding: 8px 0 0; }
body.is-thread .thread { min-height: calc(100dvh - 16px); }
body.is-thread .thread-compose { bottom: 0 !important; }
.thread-more summary { list-style: none; }
.thread-more summary::-webkit-details-marker { display: none; }
.thread-more summary::before { content: none; }
.msg-tools { margin-top: 2px; }

.dock {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(26, 22, 19, 0.96);
  border-top: 1px solid rgba(255, 253, 248, 0.12);
  box-shadow: 0 -8px 20px rgba(26, 22, 19, 0.22);
  padding: 2px 4px calc(2px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr);
  z-index: 1100;
  min-height: var(--dock-h, 52px);
}
.dock a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0;
  min-height: 44px;
  padding: 2px 1px 3px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255, 253, 248, 0.62);
  text-decoration: none;
}
.dock a.on { color: #fff; background: rgba(184, 67, 40, 0.28); }
.dock-ico {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.dock-home { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 11.5 12 4l8 7.5'/%3E%3Cpath d='M6 10.5V20h12v-9.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 11.5 12 4l8 7.5'/%3E%3Cpath d='M6 10.5V20h12v-9.5'/%3E%3C/svg%3E"); }
.dock-heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-9.2C5 8 6.8 6.4 9 6.4c1.3 0 2.4.7 3 1.7.6-1 1.7-1.7 3-1.7 2.2 0 4 1.6 4 4.4C19 15.6 12 20 12 20z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-9.2C5 8 6.8 6.4 9 6.4c1.3 0 2.4.7 3 1.7.6-1 1.7-1.7 3-1.7 2.2 0 4 1.6 4 4.4C19 15.6 12 20 12 20z'/%3E%3C/svg%3E"); }
.dock-chat { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 6h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 3v-3H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 6h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 3v-3H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
.dock-user { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 19c.8-3.2 3.4-5 7-5s6.2 1.8 7 5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 19c.8-3.2 3.4-5 7-5s6.2 1.8 7 5'/%3E%3C/svg%3E"); }
.dock-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mandarin);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.dock .plus {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(180deg, #C45438 0%, #B84328 75%);
  color: #fff;
  font-size: 24px; line-height: 1; margin: -6px auto 0;
  display: grid; place-items: center;
  border: 2px solid #FFFDFA;
  box-shadow: 0 6px 14px rgba(184, 67, 40, .36);
}
.dock-add { color: #fff !important; }
.page { padding-bottom: 96px; }
html { scroll-padding-bottom: 96px; }

/* РўРµР»РµС„РѕРЅ + РїР»Р°РЅС€РµС‚ / PWA: РєР°РґСЂ РЅР° СЌРєСЂР°РЅ, РґРѕРє РІРЅРёР·Сѓ РєР°Рє Сѓ Р’С‹СЂСѓС‡Рё */
@media (max-width: 1024px) {
  html {
    --dock-h: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  html:has(body.has-mobile-dock) {
    height: 100%;
    height: 100svh;
    overflow: hidden;
  }
  body.has-mobile-dock {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100svh;
    max-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    margin: 0;
    background-attachment: scroll !important;
  }
  body.has-mobile-dock > .page-shell {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  body.has-mobile-dock > .dock {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    order: 9999;
    width: 100%;
    transform: none !important;
  }
  .dock { display: grid; }
  body.has-mobile-dock .page,
  body.has-mobile-dock .footer {
    padding-bottom: 28px;
  }
  body.has-mobile-dock .cookie-bar {
    bottom: 12px;
  }
  body.is-thread {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    overflow: auto !important;
  }
  body.is-thread > .page-shell {
    overflow: visible !important;
    height: auto !important;
  }
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.plan-card .price { font-size: 32px; }
.footer {
  padding: 36px 0 100px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.footer-brand { margin-bottom: 22px; }
.footer-brand .logo { margin-bottom: 6px; }
.footer-brand p { margin: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-grid b { display: block; color: var(--ink); margin-bottom: 8px; font-size: 13px; }
.footer-grid a { display: block; padding: 8px 0; margin: 0; }
.footer-copy { margin: 22px 0 0; font-size: 13px; }
.legal { max-width: 760px; padding: 28px 0 80px; }
.legal.legal-wide { max-width: none; }
.legal.legal-doc { max-width: 1040px; }
.legal-doc .legal-hero {
  grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr);
  margin-bottom: 18px;
}
.legal-doc h1 { font-size: clamp(28px, 3vw, 38px); }
.legal-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 22px 20px;
  box-shadow: var(--shadow);
  margin: 12px 0;
}
.legal-block h2:first-child { margin-top: 0; }
.legal-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.legal-blocks .legal-block { margin: 0; }
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 8px;
}
.wallet-card .form label { display: grid; gap: 6px; }
.wallet-card .actions,
.wallet-skus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.wallet-card p { margin: 12px 0 0; }
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal h3 { font-size: 17px; margin: 18px 0 8px; }
.legal p, .legal li { color: #3a2e26; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li { margin: 6px 0; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.doc-nav a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.doc-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.faq summary { font-weight: 800; cursor: pointer; }
.filter-save { margin-top: 10px; }
.sell-draft-hint { display: inline-block; margin-left: 8px; font-size: 13px; }
.inbox-list { display: grid; gap: 8px; }
.inbox-row {
  display: grid;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}
.inbox-row b { font-size: 15px; }
.inbox-row span { color: var(--muted); font-size: 14px; }
.inbox-row em { color: var(--muted); font-size: 12px; font-style: normal; }
.inbox-row.is-new { border-color: #e2c4b6; background: #fff8f4; }
.lot.sold .lot-photo::after {
  content: 'Продано';
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(26,22,19,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #F3EBE0; }
.cat-catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-catalog .cat-tile { flex: none; }
.cat-tile.more {
  display: grid; place-items: center;
  min-height: 168px; background: #fff;
  font-weight: 800; color: var(--mandarin);
}
.mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.mod-tabs a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.mod-tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 10px 0; }
.mod-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
@media (max-width: 900px) {
  .footer-grid, .cat-catalog { grid-template-columns: 1fr 1fr; }
  .mod-card { grid-template-columns: 72px 1fr; }
}
.balance { font-size: 40px; font-weight: 800; letter-spacing: -0.05em; color: var(--mandarin); }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}
.pager a, .pager span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { color: var(--muted); }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.sell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding: 18px 0 48px;
}
.sell-main { max-width: 100%; min-width: 0; overflow-x: clip; }
.sell-hero h1 { font-size: 34px; letter-spacing: -0.05em; margin: 0 0 8px; overflow-wrap: anywhere; white-space: normal; min-width: 0; }
.sell-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mandarin);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sell-lead { margin: 0 0 8px; color: #3a2e26; max-width: 46rem; }
.sell-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 22px 22px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.sell-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.sell-card-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.sell-count { font-size: 13px; font-weight: 800; color: var(--muted); }
.sell-hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sell-field { display: grid; gap: 6px; font-weight: 700; }
.sell-field input, .sell-field textarea, .sell-field select {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--paper);
  font-weight: 500;
}
.sell-field input:focus, .sell-field textarea:focus {
  outline: 2px solid var(--mandarin);
  border-color: transparent;
  background: #fff;
}
.sell-file {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sell-drop {
  border: 2px dashed #e0c8ae;
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
}
.sell-drop:hover, .sell-drop.is-over {
  border-color: var(--mandarin);
  background: #fff;
}
.sell-drop b { display: block; font-size: 18px; margin-bottom: 4px; }
.sell-drop span { display: block; color: var(--muted); font-size: 14px; max-width: 28rem; margin: 0 auto 14px; }
.sell-drop-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sell-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.sell-shot {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f4e8d8;
  border: 1px solid var(--line);
}
.sell-shot img { width: 100%; height: 100%; object-fit: cover; }
.sell-shot em {
  position: absolute;
  left: 8px; top: 8px;
  background: var(--mandarin);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.sell-shot button {
  position: absolute;
  right: 8px; top: 8px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fffc;
  font-weight: 800;
  cursor: pointer;
}
.sell-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.sell-tips div {
  background: var(--paper);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}
.sell-tips b { display: block; color: var(--ink); margin-bottom: 2px; }
.sell-roots, .sell-sections { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-root {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
}
.sell-root img { width: 36px; height: 24px; object-fit: cover; border-radius: 8px; }
.sell-root.on, .sell-section.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sell-sections { display: none; margin-top: 12px; }
.sell-sections.on { display: flex; }
.sell-section-set { display: none; flex-wrap: wrap; gap: 8px; }
.sell-section-set.on { display: flex; }
.sell-section {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.sell-price { display: grid; gap: 12px; }
.sell-price input { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; }
.sell-price input::-webkit-outer-spin-button,
.sell-price input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.sell-price input[type=number] { appearance: textfield; }
.sell-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .pick {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
}
.chip { align-items: center; }
.chip:has(:checked), .pick:has(:checked) {
  background: #fff;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.chip input, .pick input { accent-color: var(--mandarin); margin-top: 2px; }
.pick { flex: 1; min-width: 140px; align-items: center; }
.pick b { display: block; white-space: nowrap; }
.pick span { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.sell-picks { display: flex; gap: 10px; flex-wrap: wrap; }
.sell-place { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; }
.sell-field:has(.city-suggest:focus-within),
.sell-field:has(.city-suggest.is-open) { z-index: 8; position: relative; }
.sell-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sell-prompts button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.sell-side { position: sticky; top: 88px; }
.sell-preview-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
}
.sell-preview { pointer-events: none; }
@media (max-width: 900px) {
  .sell-preview.lot {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: stretch;
  }
  .sell-preview .lot-photo { min-height: 0; }
  .sell-preview .lot-title { min-height: 0; -webkit-line-clamp: 2; }
}
.sell-check { list-style: none; padding: 14px 0 0; margin: 0; display: grid; gap: 6px; }
.sell-check li {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}
.sell-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.sell-check li.ok { color: var(--leaf); }
.sell-check li.ok::before { background: var(--leaf); border-color: var(--leaf); }
.sell-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.sell-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-top: 12px;
}
.sell-actions .btn { height: 48px; width: 100%; }

@media (max-width: 900px) {
  html { --dock-h: calc(54px + env(safe-area-inset-bottom, 0px)); }
  body { background-attachment: scroll; }
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .top-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .city-form { min-width: 0; width: 100%; }
  .city-form .city-suggest { width: 100%; }
  .city-form input { width: 100%; max-width: none; }
  .top-actions { z-index: 3; }
  .search { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lot-body { padding: 7px 8px 9px; }
  .lot .price { font-size: 15px; }
  .lot-title { font-size: 12px; }
  .choice { grid-template-columns: 1fr; }
  .lot-page, .cards-3, .howto { grid-template-columns: 1fr; }
  .lot-page { padding-bottom: calc(var(--dock-h) + 160px); }
  .howto-steps { grid-template-columns: 1fr; }
  .lot-side {
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 24px;
  }
  .lot-side .seller {
    margin: 8px 0 88px;
  }
  .hide-mobile { display: none; }
  .cat-tile { flex-basis: 156px; min-width: 156px; }
  body.is-inner:not(.is-home) .city-form { display: none; }
  body.is-inner:not(.is-home) .top-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lot-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    left: 0; right: 0;
    bottom: 0 !important;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    box-shadow: 0 -8px 24px rgba(26, 22, 19, .08);
  }
  .lot-sticky .price { font-size: 22px; }
  .lot-sticky .btn { min-width: 140px; }
  .lot-side .actions,
  .lot-side .price { display: none !important; }
  .form .actions,
  .mod-card .actions,
  .chat-form,
  .sell-actions {
    position: sticky;
    bottom: 0 !important;
    z-index: 45;
  }
  .form .actions,
  .chat-form,
  .sell-actions {
    background: var(--paper);
    padding: 10px 0;
  }
  .mod-card .actions { background: #fff; }
  .cat-rail-inner { grid-template-columns: minmax(0, 1fr); }
  .cat-arrow { display: none; }
  .sell { grid-template-columns: 1fr; padding-bottom: 28px; }
  .sell-side { position: static; }
  .sell-shots { grid-template-columns: repeat(3, 1fr); }
  .sell-place, .sell-tips { grid-template-columns: 1fr; }
  .sell-hero h1 { font-size: 28px; }
  .sell-actions {
    padding: 10px 0 4px;
    margin-top: 8px;
  }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .legal-hero,
  .legal-split,
  .legal-foot,
  .legal-blocks,
  .wallet-grid,
  .sitemap-grid { grid-template-columns: 1fr; }
  .legal-doc .legal-hero { grid-template-columns: 1fr; }
  .legal-wide .how-card { min-height: 0; }
  .cab-steps { grid-template-columns: 1fr; }
  .cab-roots { grid-template-columns: 1fr 1fr; }
  .cab-root { grid-template-columns: 1fr; }
  .cab-root img { width: 100%; height: 72px; }
  .cab-root span { padding: 8px 10px 10px; }
  .cab-head { align-items: stretch; }
  .cab-actions { width: 100%; }
  .cab-modes { flex: 1; }
  .cab-modes .btn { flex: 1; }
  .empty { flex-direction: column; align-items: flex-start; }
  .cab { padding-bottom: 28px; }
}

body.is-desk { background: var(--paper); }
body.is-desk .dock { display: none; }
.desk-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.desk-top-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.desk-nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.desk-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 800; font-size: 14px;
}
.desk-nav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.desk-nav b {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--mandarin); color: #fff;
  font-size: 11px; display: grid; place-items: center;
}
.desk-nav a.on b { background: #fff; color: var(--ink); }
.desk-who { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--muted); }
.desk-who a { color: var(--indigo); }
.desk-main { width: min(1280px, calc(100% - 32px)); margin: 16px auto 48px; }
.desk-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.desk-rail { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.desk-rail h1 { margin: 0 0 8px; font-size: 22px; }
.desk-rail-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px;
  padding: 8px; border-radius: 12px; margin: 6px -8px;
}
.desk-rail-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.desk-rail-item b { display: block; font-size: 14px; }
.desk-rail-item span { color: var(--muted); font-size: 12px; }
.desk-rail-item.on { background: #F3EBE0; }
.desk-page { padding-bottom: 40px; }
.desk-empty {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 28px; display: grid; gap: 10px;
}
.desk-h { font-size: 18px; margin: 28px 0 12px; }
.desk-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.desk-log li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.desk-card { align-items: start; }
.desk-group { margin: 18px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.desk-group.over { border-color: var(--berry); }
.review {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) 280px;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.review-text { white-space: pre-wrap; }
.review-text mark { background: #ffe08a; padding: 0 2px; border-radius: 4px; }
.flag-list { margin: 12px 0; padding-left: 18px; color: #8a3a10; font-weight: 700; }
.review-act { display: grid; gap: 10px; align-content: start; }
.review-form { display: grid; gap: 10px; }
.review-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; background: var(--paper); min-height: 84px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: auto; min-height: 32px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-size: 12px; font-weight: 700; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
@media (max-width: 1100px) {
  .desk-grid, .review { grid-template-columns: 1fr; }
  .desk-rail { order: 2; }
}
body.is-desk .mod-card .actions { position: static; padding: 0; background: transparent; }

html.is-pwa .top-inner { min-height: 52px; gap: 8px; }
html.is-pwa .logo { font-size: 18px; gap: 8px; }
html.is-pwa .logo img { width: 22px; height: 22px; }
html.is-pwa .city-form input,
html.is-pwa .search input,
html.is-pwa .btn,
html.is-pwa .icon-btn { height: 38px; }
html.is-pwa body.is-inner .city-form { display: none; }
html.is-pwa body.is-inner .top-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
html.is-pwa .footer-grid,
html.is-pwa .footer-brand p { display: none; }
html.is-pwa .footer { padding: 16px 0 20px; font-size: 12px; }
html.is-pwa .dock { padding: 1px 2px calc(1px + env(safe-area-inset-bottom, 0px)); }
html.is-pwa .dock a { min-height: 42px; font-size: 9px; }
html.is-pwa .dock .plus { width: 38px; height: 38px; font-size: 22px; margin-top: -4px; }
html.is-pwa { --dock-h: calc(50px + env(safe-area-inset-bottom, 0px)); }

@media (display-mode: standalone), (display-mode: fullscreen) {
  .top-inner { min-height: 52px; gap: 8px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo img { width: 22px; height: 22px; }
  .city-form input, .search input, .btn, .icon-btn { height: 38px; }
  body.is-inner .city-form { display: none; }
  body.is-inner .top-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .footer-grid, .footer-brand p { display: none; }
  .footer { padding: 16px 0 20px; font-size: 12px; }
  .dock { padding: 1px 2px calc(1px + env(safe-area-inset-bottom, 0px)); }
  .dock a { min-height: 42px; font-size: 9px; }
  .dock .plus { width: 38px; height: 38px; font-size: 22px; margin-top: -4px; }
  html { --dock-h: calc(50px + env(safe-area-inset-bottom, 0px)); }
}

.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 8px; translate: 0 -50%;
  width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--muted, #8a8f98); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.pw-toggle:hover { color: var(--ink, #1a1a1a); }
.pw-toggle .pw-on { display: none; }
.pw-toggle.is-open .pw-off { display: none; }
.pw-toggle.is-open .pw-on { display: block; }

/* Audit: readable surfaces, compact categories and keyboard access. */
.skip-link { position:fixed; top:8px; left:8px; z-index:10000; padding:12px 18px; background:var(--card); color:var(--ink); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid var(--mandarin); outline-offset:3px; }
.home-doors .door-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.home-doors .door { height:94px; min-height:0; }
.home-doors-lead { margin:6px 0 12px; }
.lot-title { overflow-wrap:anywhere; }
@media (max-width:600px) {
  .home-doors .door-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .home-doors .door { height:72px; border-radius:12px; }
  .home-doors .door span { font-size:12px; padding:5px 6px; }
  .home-doors .door-all { grid-column:span 3; height:36px; }
  .home-doors .section-head { margin-bottom:8px; }
  .home-doors-lead { display:none; }
  .is-home .section { margin-top:20px; }
  .cookie-bar { padding:10px 12px; gap:8px; }
  .cookie-bar p { font-size:12px; line-height:1.45; margin:0; }
  .cookie-bar .btn { padding:7px 12px; min-height:36px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}
/* Cookie notice occupies its own row, without pushing the fixed mobile shell. */
body.has-cookie.has-mobile-dock { padding-bottom:0; }
@media (max-width:1024px) {
  body.has-mobile-dock .cookie-bar { position:static; flex:0 0 auto; order:9998; margin:6px 10px; width:auto; }
}

/* PWA: readable controls and safe areas on phones with display cutouts. */
.market-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 0 8px; }
.market-intro h1 { font-size:clamp(22px,3vw,32px); line-height:1.2; margin:0 0 8px; }
.market-intro p { margin:0; color:var(--muted); max-width:620px; }
.market-intro .btn { flex-shrink:0; min-height:44px; }
html.is-pwa .top { padding-top:env(safe-area-inset-top,0px); }
html.is-pwa .city-form input, html.is-pwa .search input, html.is-pwa .btn, html.is-pwa .icon-btn { min-height:44px; }
html.is-pwa .dock a { min-height:48px; font-size:11px; }
html.is-pwa .dock .plus { width:44px; height:44px; }
html.is-pwa { --dock-h:calc(56px + env(safe-area-inset-bottom,0px)); }
html.is-pwa .footer-grid { display:grid; }
@media (max-width:600px) { .market-intro { align-items:flex-start; flex-direction:column; gap:12px; padding-top:8px; } }
@media (display-mode:standalone), (display-mode:fullscreen) {
  .top { padding-top:env(safe-area-inset-top,0px); }
  .city-form input, .search input, .btn, .icon-btn { min-height:44px; }
  .dock a { min-height:48px; font-size:11px; }
  .dock .plus { width:44px; height:44px; }
  html { --dock-h:calc(56px + env(safe-area-inset-bottom,0px)); }
  .footer-grid { display:grid; }
}
@media (orientation:landscape) {
  .wrap { padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px)); }
}
@media (max-width:900px) {
  body.has-mobile-dock .top-actions { display:none; }
  body.has-mobile-dock .top-inner { grid-template-columns:auto minmax(0,1fr); }
  .market-intro h1 { letter-spacing:-.02em; }
}
