@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-latin-400.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: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-500.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: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-600.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: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-700.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: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/unbounded-latin-500.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: Unbounded;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/unbounded-latin-700.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: #f4efe8;
  --paper: #fffdf9;
  --ink: #1c140f;
  --muted: #7a6e64;
  --coral: #ff4d3a;
  --gold: #c4840a;
  --line: rgba(28, 20, 15, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 77, 58, 0.1), transparent 55%),
    radial-gradient(700px 380px at 110% 110%, rgba(31, 111, 106, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

#app {
  width: min(480px, 100%);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}


.boot, .home, .deck, .list-screen {
  min-height: 0;
}
.boot {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.boot h1, .hero h1, .logo {
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
}
.boot h1, .hero h1 { font-size: clamp(56px, 14vw, 76px); }

.eyebrow {
  margin: 0 0 8px;
  color: #c4554a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.home { display: flex; flex-direction: column; height: 100%; }
.hero { padding: calc(28px + env(safe-area-inset-top)) 22px 8px; }
.lede {
  margin: 14px 0 0;
  color: #5c5148;
  font-size: 16.5px;
  max-width: 36ch;
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.primary, .ghost, .danger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.primary { background: var(--coral); color: white; }
.primary:disabled { opacity: 0.6; }
.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.danger { background: transparent; color: #c4554a; box-shadow: inset 0 0 0 1px rgba(255, 77, 58, 0.45); }
.primary:active, .ghost:active, .danger:active { transform: scale(0.99); }
.file-btn { position: relative; cursor: pointer; margin-bottom: 12px; }
.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lan-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--paper);
  color: #5c5148;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(28, 20, 15, 0.05);
}
.lan-note strong { display: block; margin: 6px 0 2px; color: var(--ink); font-weight: 700; word-break: break-all; }
.linkish {
  display: inline;
  color: #c4554a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.history { padding: 22px 22px calc(28px + env(safe-area-inset-bottom)); }
.history h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.empty-history {
  margin: 0;
  color: #8a7d72;
}

.trip-row { display: flex; flex-direction: column; gap: 10px; }
.trip-card {
  width: 100%;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(28, 20, 15, 0.06);
}
.trip-place { display: block; color: #8a5a42; font-size: 13px; font-weight: 700; }
.trip-card strong {
  display: block;
  margin-top: 4px;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.trip-meta { display: block; margin-top: 8px; color: #5c5148; font-size: 14px; }
.trip-count { display: block; margin-top: 4px; font-weight: 700; }

.topbar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
}
.topbar-title { min-width: 0; }
.topbar-title b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.topbar-title span { color: var(--muted); font-size: 13px; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.icon-plain {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(28, 20, 15, 0.06);
  color: var(--ink);
}
.icon-plain svg { width: 20px; height: 20px; }
.icon-plain:active { transform: scale(0.96); }
.text-toggle {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.view-toggle {
  min-width: 72px;
  padding: 0 22px;
}

.demo-banner {
  margin: 0 12px 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(226, 162, 26, 0.18);
  color: #7a5410;
  font-size: 13px;
}

.deck { height: 100%; display: flex; flex-direction: column; }
.stage { flex: 1; min-height: 0; overflow: hidden; touch-action: none; }
.track { display: flex; height: 100%; width: 100%; will-change: transform; }
.housing {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.housing.active { pointer-events: auto; }
.housing, .photos, .ticket { user-select: none; }

.photos {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 10px;
  border-radius: 26px;
  overflow: hidden;
  background: #e7dfd4;
  touch-action: none;
  cursor: zoom-in;
}
.photo-track { display: flex; height: 100%; width: 100%; will-change: transform; }
.slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.slide.broken img { opacity: 0; }
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 14, 12, 0.45);
  color: white;
  display: grid;
  place-items: center;
  z-index: 5;
}
.photo-nav.prev { left: 10px; }
.photo-nav.next { right: 10px; }
.photo-nav svg { width: 18px; height: 18px; }
.dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 36px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
  pointer-events: none;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
}
.dots i.on { width: 16px; background: white; }
.photo-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.45);
  font-size: 12px;
  font-weight: 700;
}
.listing-no {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.listing-title .no {
  color: #8a5a42;
}

.ticket {
  position: relative;
  z-index: 2;
  margin: -28px 16px 8px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  touch-action: none;
}
.ticket-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(28, 20, 15, 0.22);
}
.dates { margin: 0; font-weight: 700; letter-spacing: -0.03em; font-size: 16px; }
.dates small { display: block; margin-top: 2px; font-weight: 600; color: #6d6258; font-size: 13px; }
.dates.is-empty, .price.is-empty, .address.is-empty { color: #8d8175; font-weight: 600; }
.icon-row { display: flex; gap: 8px; flex: 0 0 auto; }
.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: #3a332d;
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.share { background: var(--ink); color: var(--paper); }
.iconbtn.is-off { opacity: 0.35; }
.iconbtn:active { transform: scale(0.96); }
.mark-airbnb { background: #ff5a5f; }
.mark-avito { background: #00aa64; }
.mark-sutochno { background: #ff7a00; }
.mark-ostrovok { background: #0b1f33; }
.mark-booking { background: #003580; }
.mark-tvil { background: #6d4aff; }
.mark-cian { background: #0468ff; }
.mark-domclick { background: #8bc540; color: #142006; }
.mark-yandex { background: #fc3f1d; }
.mark-youla { background: #6c2bd9; }
.mark-web { background: #3a332d; }

.price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.price {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.price.is-empty { font-family: Manrope, sans-serif; font-size: 18px; }
.price-rub { margin: 0; color: #6d6258; font-weight: 700; font-size: 16px; line-height: 1.2; }
.price-rub .per { margin-left: 6px; }
.per { color: #6d6258; font-weight: 700; font-size: 13px; }
.address {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  font-weight: 650;
  font-weight: 700;
  min-width: 0;
}
.address span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.address .pin { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #8a5a42; }
.listing-title {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.summary {
  margin: 6px 0 0;
  color: #3a332d;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-copy .summary { margin-top: 2px; color: #6d6258; font-size: 13px; -webkit-line-clamp: 2; }
.byline { margin: 2px 0 0; color: #6d6258; font-size: 12px; }
.rate-line {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(28, 20, 15, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: var(--ink);
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.rate-line em { font-style: normal; font-weight: 700; font-size: 14px; }
.cons-peek {
  margin: 6px 0 0;
  color: #8a3b32;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edit-listing {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 10px 0 4px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(138, 90, 66, 0.12);
  color: #8a5a42;
  font-weight: 700;
  font-size: 15px;
}
.edit-listing:active { transform: scale(0.98); }
.verdict-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 6px;
}
.verdict-btn {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}
.verdict-btn.reject {
  background: rgba(196, 85, 74, 0.1);
  color: #c4554a;
  box-shadow: inset 0 0 0 1px rgba(196, 85, 74, 0.28);
}
.verdict-btn.approve {
  background: rgba(31, 111, 106, 0.1);
  color: #1f6f6a;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 106, 0.28);
}
.verdict-btn.reject.on {
  background: #c4554a;
  color: #fffdf9;
  box-shadow: none;
}
.verdict-btn.approve.on {
  background: #1f6f6a;
  color: #fffdf9;
  box-shadow: none;
}
.verdict-btn:active { transform: scale(0.98); }
.photos.has-verdict.rejected::before,
.list-photo.has-verdict.rejected::before,
.film-photo.has-verdict.rejected::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(180, 42, 36, 0.55);
  pointer-events: none;
}
.photos.has-verdict.approved::before,
.list-photo.has-verdict.approved::before,
.film-photo.has-verdict.approved::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(31, 111, 106, 0.38);
  pointer-events: none;
}
.verdict-mark {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.verdict-icon {
  width: 42%;
  max-width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.list-photo .verdict-icon,
.film-photo .verdict-icon {
  width: 48%;
  max-width: 44px;
}
.film-photo .verdict-icon { width: 56%; }
.chat-peek {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(28, 20, 15, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat-peek.has-unread { box-shadow: inset 3px 0 0 var(--coral); }
.chat-peek span { font-size: 12px; font-weight: 700; color: #8a5a42; }
.chat-peek.has-unread span { color: var(--coral); }
.chat-peek em {
  font-style: normal;
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet.chat-sheet {
  display: flex;
  flex-direction: column;
  height: min(92%, 760px);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.chat-head h3 { margin-bottom: 0; }
.chat-head .hint { margin: 2px 0 0; }
.chat-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 10px;
}
.chat-empty { color: #8a7d72; margin: 12px 0; }
.chat-who {
  margin: 0 0 8px;
  color: #6d6258;
  font-size: 13px;
}
.chat-who b { color: var(--ink); }
.chat-who .text-toggle {
  margin-left: 6px;
  min-height: 28px;
  padding: 0 8px;
  vertical-align: middle;
}
.claim-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.claim-bar span {
  color: #7a6e64;
  font-size: 13px;
  font-weight: 700;
}
.claim-bar button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 111, 106, 0.12);
  color: #1f6f6a;
  font-size: 13px;
  font-weight: 700;
}
.tg-login {
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: #2aabee;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.tg-login:disabled { opacity: 0.6; }
.bubble {
  max-width: 92%;
  background: #f3ebe3;
  border-radius: 16px 16px 16px 6px;
  padding: 8px 10px 6px;
  user-select: text;
}
.bubble.mine {
  align-self: flex-end;
  background: #ffe8e3;
  border-radius: 16px 16px 6px 16px;
}
.bubble header { display: flex; align-items: center; gap: 6px; }
.bubble header i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.bubble header b { font-size: 13px; }
.bubble header time { margin-left: auto; color: #8d8175; font-size: 12px; font-weight: 600; }
.bubble p { margin: 4px 0 6px; white-space: pre-wrap; word-break: break-word; }
.bubble.deleted { opacity: 0.72; }
.bubble .deleted-note {
  margin: 4px 0 2px;
  color: #8d8175;
  font-style: italic;
  font-size: 14px;
}
.bubble.mentioned { box-shadow: inset 3px 0 0 var(--coral); }
.bubble-actions .msg-del {
  margin-left: auto;
  background: transparent;
  color: #8a5a42;
  font-weight: 700;
}
.mention {
  background: rgba(255, 77, 58, 0.14);
  color: #c4554a;
  font-weight: 700;
  border-radius: 4px;
}
.mention-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.mention-bar button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 77, 58, 0.1);
  color: #c4554a;
  font-size: 13px;
  font-weight: 700;
}
.bubble-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.bubble-actions button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.06);
  color: #5c5148;
  font-size: 13px;
}
.bubble-actions button.on { background: rgba(255, 77, 58, 0.16); color: #c4554a; }
.bubble-actions button.quiet { opacity: 0.55; }
.emoji-bar { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.emoji-bar button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 18px;
}
.chat-form { margin-top: 4px; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; }
.chat-compose textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  resize: none;
}
.chat-send { width: 48px; min-height: 48px; border-radius: 16px; flex: 0 0 auto; padding: 0; }
.voice-btn {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 12px;
  background: #efe6dc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.voice-btn.on { background: #c4492c; color: white; }
.voice-status { margin: 0 0 8px; color: #8a5a42; font-size: 13px; font-weight: 700; }
.bubble .voice { display: block; width: 100%; min-width: 180px; height: 36px; margin: 6px 0; }

.film {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px calc(10px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}
.film::-webkit-scrollbar { display: none; }
.film-item {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 2px transparent;
}
.film-no {
  position: absolute;
  left: 4px;
  top: 4px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}
.film-item[aria-current="true"] { box-shadow: 0 0 0 2px var(--coral); }
.film-photo {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
}
.film-photo img { width: 54px; height: 54px; object-fit: cover; }

.list-screen { height: 100%; display: flex; flex-direction: column; }
.list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 14px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 8px;
}
.list-photo {
  position: relative;
  display: block;
  width: 92px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
}
.list-photo img { width: 100%; height: 100%; object-fit: cover; }
.trash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  max-height: min(52vh, 420px);
  overflow: auto;
}
.trash-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 16px;
  background: rgba(28, 20, 15, 0.04);
}
.trash-photo {
  position: relative;
  display: block;
  width: 64px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
}
.trash-photo img { width: 100%; height: 100%; object-fit: cover; }
.trash-copy { min-width: 0; }
.trash-copy .listing-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}
.trash-copy .hint { margin: 0 0 8px; }
.trash-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.trash-actions .ghost,
.trash-actions .danger {
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
}
.list-copy { min-width: 0; overflow: hidden; }
.list-copy .dates { font-size: 14px; }
.list-copy .price { font-size: 20px; overflow-wrap: anywhere; }
.list-copy .price-rub { font-size: 13px; }
.list-copy .address,
.list-copy .listing-title,
.list-copy .summary {
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-copy .address { -webkit-line-clamp: 2; }
.list-copy .listing-title { -webkit-line-clamp: 3; }
.list-copy .byline { margin-top: 2px; font-size: 12px; }

.empty-deck {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  gap: 12px;
}
.empty-deck h2 {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}
.empty-deck p { margin: 0; color: #5c5148; }

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, 0.55);
  z-index: 20;
}
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: min(92%, 760px);
  overflow: auto;
  background: #fffdf9;
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  z-index: 21;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(28, 20, 15, 0.16);
  margin: 4px auto 12px;
}
.sheet h3 {
  margin: 0 0 12px;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { color: #7a6e64; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.split.three { grid-template-columns: 1.3fr 0.8fr 0.9fr; }
.form-error { color: #c4554a; margin: 0 0 10px; font-weight: 700; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hint { color: #7a6e64; font-size: 14px; margin: 8px 0 0; }
.url-box {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  word-break: break-all;
  font-size: 14px;
}

.photo-picks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.photo-pick { position: relative; flex: 0 0 auto; }
.photo-pick img, .photo-pick .mini {
  display: block;
  width: 72px; height: 72px; object-fit: cover; border-radius: 12px;
}
.photo-pick button {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16, 14, 12, 0.75);
  color: white;
  font-size: 14px;
  line-height: 1;
}

.star-row { display: flex; gap: 6px; }
.star {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: #6d6258;
  font-size: 22px;
}
.star.on { color: var(--gold); background: #fff6e4; }

.reviews { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.review {
  padding: 12px;
  border-radius: 16px;
  background: rgba(28, 20, 15, 0.04);
}
.review header { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.review p { margin: 6px 0 0; white-space: pre-wrap; }
.review .mins {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--coral);
  color: #8a3b32;
}
.review .mins b { display: block; font-size: 12px; letter-spacing: 0.02em; }

.toast {
  position: absolute;
  left: 16px; right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
}

.grad-sea {
  background:
    radial-gradient(circle at 78% 18%, #fff4d2 0 7%, transparent 8%),
    linear-gradient(#7ec8e3 0 46%, #e7c49a 46% 100%);
}
.grad-pool {
  background:
    linear-gradient(#123e45, #123e45) 10% 18% / 80% 28% no-repeat,
    linear-gradient(#1aa6a6 0 58%, #d8efe8 58% 100%);
}
.grad-night {
  background:
    linear-gradient(#f2c14e, #f2c14e) 18% 42% / 18% 16% no-repeat,
    linear-gradient(#f7e7c1, #f7e7c1) 48% 38% / 14% 22% no-repeat,
    linear-gradient(#141a33 0 70%, #2a211c 70% 100%);
}
.grad-palm {
  background:
    radial-gradient(circle at 70% 30%, #ffd36e 0 12%, transparent 13%),
    linear-gradient(#87b56a 0 62%, #c9843f 62% 100%);
}
.grad-market {
  background: repeating-linear-gradient(90deg, #e07a4c 0 18%, #f3d2b3 18% 36%, #1f6f6a 36% 54%, #f6f0e6 54% 72%);
}
.grad-road {
  background:
    linear-gradient(#f6f0e6, #f6f0e6) 46% 70% / 8% 30% no-repeat,
    linear-gradient(#ff8a5b 0 40%, #5c3b4a 40% 68%, #2a211c 68% 100%);
}

.viewer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(8, 6, 5, 0.96);
  color: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.viewer-stage {
  position: absolute;
  inset: 56px 0 56px;
  overflow: hidden;
}
.viewer-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
}
.viewer-track .slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  background: transparent;
}
.viewer-track .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.viewer-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.14);
  color: #fffdf9;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.viewer-count {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 16px;
  z-index: 2;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.14);
  color: #fffdf9;
  display: grid;
  place-items: center;
}
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }
.viewer-nav svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .track, .photo-track, .viewer-track { transition: none !important; }
}

@media (min-width: 980px) {
  body { display: grid; place-items: center; }
  #app {
    width: min(960px, calc(100vw - 48px));
    height: min(900px, calc(100dvh - 40px));
    border-radius: 36px;
    border: 1px solid rgba(28, 20, 15, 0.08);
    box-shadow: 0 24px 60px rgba(28, 20, 15, 0.12);
  }
  .housing {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0 12px 0 0;
  }
  .photos {
    flex: 1 1 54%;
    margin: 0 0 0 12px;
    border-radius: 28px;
  }
  .ticket {
    flex: 1 1 46%;
    align-self: stretch;
    margin: 0 0 8px;
    overflow: auto;
    box-shadow: 0 12px 30px rgba(28, 20, 15, 0.1);
  }
  .list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .list-card { min-width: 0; max-width: 100%; }
  .sheet {
    left: 12%;
    right: 12%;
    border-radius: 24px;
    bottom: 16px;
    max-height: min(88%, 760px);
  }
}
