:root {
  --display-font: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --profile-row-height: 46px;
  --app-bg: #ffffff;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--app-bg);
  color: #111111;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

a,
button,
input,
textarea,
select,
label,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.28);
  outline-offset: 2px;
}

input::-moz-focus-inner,
button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
  outline-color: transparent !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

html {
  background-color: var(--app-bg);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--app-bg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  width: 100%;
  max-width: 100%;
}

body:has(.phone--account) {
  height: 100svh;
  max-height: 100svh;
  /* do not clip fixed Safari tint bars that sit on viewport edges */
  overflow-x: hidden;
  overflow-y: auto;
}

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: manipulation;
    width: 100%;
    max-width: 100vw;
  }

  body {
    position: relative;
  }

  .phone {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: manipulation;
    width: 100%;
    max-width: 100vw;
  }

  .feed {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  button,
  a,
  input,
  textarea,
  select,
  label,
  [data-review-star],
  [data-open-reviews] {
    touch-action: manipulation;
  }

  input,
  textarea,
  select,
  input[type="search"],
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"] {
    font-size: 16px !important;
  }
}

.phone {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--app-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: none;
}

.phone--account {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

.topbar {
  padding: 14px 20px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar--feed {
  background-color: var(--app-bg);
  justify-content: flex-start;
  min-height: 64px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 18px;
  position: relative;
  /* above feed so profile dropdown is visible */
  z-index: 50;
  flex-shrink: 0;
}

.phone--account.is-confirm-open .topbar--feed,
.phone--account.is-avatar-open .topbar--feed {
  z-index: 10;
}

.phone--account.is-avatar-open .tabbar-shell {
  pointer-events: none;
  visibility: hidden;
}

.wordmark {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.wordmark--feed {
  width: auto;
  justify-content: flex-start;
}

.wordmark__logo {
  display: block;
  width: min(200px, 100%);
  height: auto;
  margin: 0 auto;
}

.wordmark--feed .wordmark__logo {
  width: 136px;
  margin: 0;
}

.auth {
  padding: 10px 16px 18px;
}

.auth--mobile {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
}

.auth-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #111111;
  flex: 1;
  padding: 4px 2px 8px;
  position: relative;
}

.auth-panel__head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
}

h1,
h2 {
  margin: 0;
}

h2 {
  color: #111111;
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.switcher {
  background: #f1f1ee;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-top: 16px;
}

.switcher a,
.switcher__btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #7d7d80;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.switcher a.is-active,
.switcher__btn.is-active {
  background: #111111;
  color: #ffffff;
}

.auth-forms {
  margin-top: 16px;
  min-height: 360px;
}

.form {
  margin-top: 0;
}

.form[hidden] {
  display: none;
}

label {
  display: block;
  margin-bottom: 14px;
}

label span {
  color: #4b4b50;
  display: block;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.phone-field {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 16px;
  min-height: 56px;
  padding: 0 14px 0 12px;
  transition: border-color 0.2s;
}

.phone-field:focus-within {
  border-color: #111111;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 56px;
  transform: translateY(2px);
}

.phone-prefix__flag {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.phone-prefix__code {
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

input,
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 16px;
  color: #111111;
  font: inherit;
  font-size: 16px;
  outline: 0;
  outline-offset: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  padding: 16px 15px;
  transition: border-color 0.2s;
  width: 100%;
}

.phone-field input {
  border: 0;
  border-left: 1px solid #ecece8;
  border-radius: 0;
  box-shadow: none;
  line-height: 1;
  min-height: 54px;
  padding: 0 0 0 14px;
}

input::placeholder {
  color: #a0a0a4;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  border-color: #111111;
  outline: 0 !important;
  outline-offset: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.phone-field input:focus,
.phone-field input:focus-visible {
  border-color: transparent;
  outline: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.button {
  background: #111111;
  border: 1px solid #111111;
  border-radius: 18px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  min-height: 56px;
  padding: 16px 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 100%;
}

.button:hover {
  opacity: 0.92;
}


.button span {
  display: none;
}

.button--secondary {
  background: transparent;
  color: #111111;
  margin-top: 20px;
}

.icon-button {
  appearance: none;
  text-decoration: none;
}

.profile-menu {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
}

.topbar--feed > .icon-button--profile {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.icon-button--profile {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111111;
  display: inline-flex;
  gap: 0;
  height: var(--profile-row-height);
  justify-content: center;
  padding: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: var(--profile-row-height);
}


.icon-button--back svg {
  display: block;
  height: 22px;
  margin-left: -1px;
  width: 22px;
}

.icon-button__avatar {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  width: 32px;
}

.icon-button__avatar svg {
  display: block;
  height: 22px;
  width: 22px;
}

.icon-button__avatar:has(img) {
  background: #ecece8;
}

.icon-button__gear {
  align-items: center;
  color: #111111;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.icon-button__gear svg {
  display: block;
  height: 22px;
  width: 22px;
}

.icon-button__avatar img,
.profile-menu__header-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-menu__dropdown {
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(236, 233, 225, 0.9);
  border-radius: 24px;
  box-shadow: 0 22px 44px rgba(17, 17, 17, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 196px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.profile-menu.is-open .profile-menu__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-menu__header {
  align-items: center;
  display: flex;
  gap: 12px;
  height: 52px;
  padding: 0 14px;
}

.profile-menu__header-avatar {
  align-items: center;
  background: #111111;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  width: 32px;
}

.profile-menu__header-avatar svg {
  display: block;
  height: 16px;
  width: 16px;
}

.profile-menu__header-name {
  color: #111111;
  flex: 1;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-menu__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid #efede6;
  color: #111111;
  display: flex;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  height: var(--profile-row-height);
  letter-spacing: -0.02em;
  padding: 0 14px;
  text-align: left;
  text-decoration: none;
}

.profile-menu__item--button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-family: var(--display-font);
  width: 100%;
}

.profile-menu__item--danger {
  color: #d13b35;
}

.muted-link,
.legal {
  color: #727277;
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 16px auto 0;
  max-width: 270px;
  text-align: center;
}

.muted-link {
  text-align: center;
}

.notice {
  background: #111111;
  border-radius: 14px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.notice--error {
  background: #e11d2e;
}

.notice--success {
  background: #2f80ed;
  color: #ffffff;
}

.feed-notices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.feed-notices .notice {
  margin: 0;
}

.button--danger {
  background: #e11d2e;
  border-color: #e11d2e;
  color: #ffffff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.settings-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
  touch-action: pan-x;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tabs__item {
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 999px;
  color: #6c6c72;
  flex-shrink: 0;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.settings-tabs__item.is-active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.settings-panel {
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.settings-panel--danger {
  border-color: rgba(225, 29, 46, 0.22);
}

.settings-panel__head h2 {
  color: #111111;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.settings-panel__head p {
  color: #7a7a80;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-form label span {
  color: #6c6c72;
  font-size: 12px;
  font-weight: 700;
}

.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="tel"] {
  appearance: none;
  background: #fcfcfa;
  border: 1px solid #e7e7e0;
  border-radius: 14px;
  color: #111111;
  font: inherit;
  font-size: 15px;
  height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.settings-form .phone-field {
  background: #fcfcfa;
  border: 1px solid #e7e7e0;
  border-radius: 14px;
  overflow: hidden;
}

.settings-form .phone-field input {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 48px;
}

.settings-form .button {
  margin-top: 4px;
  min-height: 50px;
}

.settings-form--inline .button {
  margin-top: 0;
}

.button--secondary.settings-form__request {
  margin-top: 0;
}

.settings-code-hint {
  background: rgba(47, 128, 237, 0.08);
  border-radius: 14px;
  color: #1f5fb8;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  padding: 12px 14px;
}

.settings-verify {
  align-items: center;
  background: #f7f7f4;
  border-radius: 18px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.settings-verify__icon {
  display: block;
  flex-shrink: 0;
  height: 28px;
  width: 28px;
}

.settings-verify strong,
.settings-verify span {
  display: block;
}

.settings-verify strong {
  color: #111111;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 3px;
}

.settings-verify span {
  color: #7a7a80;
  font-size: 13px;
  line-height: 1.35;
}

.confirm-modal {
  align-items: center;
  background: rgba(17, 17, 17, 0);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  opacity: 0;
  padding: 24px 16px calc(24px + 72px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.22s ease, background-color 0.22s ease;
  visibility: hidden;
  /* above header + feed, below tabbar */
  z-index: 70;
}

.confirm-modal[hidden] {
  display: flex;
}

.confirm-modal.is-open {
  background: rgba(17, 17, 17, 0.42);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.confirm-modal__sheet {
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 400px;
  padding: 18px;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.24s ease;
  width: 100%;
}

.confirm-modal.is-open .confirm-modal__sheet {
  transform: translateY(0) scale(1);
}

.confirm-modal__sheet h2 {
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.confirm-modal__sheet > p {
  color: #7a7a80;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.confirm-modal__actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.confirm-modal__actions .button {
  margin: 0;
  min-height: 48px;
}

.feed {
  background-color: var(--app-bg);
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  position: relative;
  z-index: 30;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.feed__meta {
  padding: 6px 4px 12px;
}

.feed__meta:empty {
  display: none;
  padding: 0;
}

.feed__title {
  color: #111111;
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.feed__title-row {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.feed__title-badge {
  align-items: center;
  background: #e11d2e;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex-shrink: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 22px;
}

.categories {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  margin: 0 0 4px;
  max-width: 100%;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
  display: none;
}

.categories__chip {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #6a6a70;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
  padding: 8px 0 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.categories__chip.is-active {
  color: #111111;
  border-bottom-color: #111111;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.search {
  margin: 0 0 8px;
}

.search label {
  margin: 0;
}

/* Mobile-first: large controls like auth */
.search__field {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 16px;
  box-sizing: border-box;
  gap: 10px;
  height: 54px;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  padding: 4px 4px 4px 15px;
  transition: border-color 0.2s ease;
  width: 100%;
}

.search__field:focus-within {
  border-color: #111111;
  box-shadow: none;
}

.search__field input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #111111;
  flex: 1;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  height: 100%;
  letter-spacing: normal;
  line-height: 1.2;
  min-width: 0;
  outline: none;
  padding: 0;
}

.search__field input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.search__field input::placeholder {
  color: #a0a0a4;
}

.search__button {
  align-items: center;
  appearance: none;
  background: #111111;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  height: 46px;
  letter-spacing: -0.01em;
  padding: 0 14px;
}

.search__button span {
  color: #ffffff;
  display: inline;
  margin: 0;
  text-transform: none;
}

.search__button svg {
  display: block;
  height: 16px;
  width: 16px;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.filters label {
  margin: 0;
}

.filters span {
  margin: 0;
  text-transform: none;
}

.filters__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.filter-field {
  display: block;
  margin: 0;
  min-width: 0;
}

.filter-field--price {
  flex: 1 1 0;
  min-width: 0;
}

.filter-field--category {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}

.filter-field--city,
.filter-field--sort {
  flex: 1.2 1 0;
  min-width: 0;
}

.filter-field input,
.filter-field select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 16px;
  box-shadow: none;
  box-sizing: border-box;
  color: #111111;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  height: 54px;
  letter-spacing: normal;
  min-height: 54px;
  outline: none;
  padding: 0 15px;
  transition: border-color 0.2s ease;
  width: 100%;
}

.filter-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: #111111;
}

.filter-field input::placeholder {
  color: #a0a0a4;
}

.filter-check {
  background: #ffffff;
  border: 1px solid #deded9;
  border-radius: 16px;
  box-shadow: none;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  grid-auto-flow: column;
  align-items: center;
  column-gap: 10px;
  height: 54px;
  min-height: 54px;
  padding: 0 16px;
  user-select: none;
  white-space: nowrap;
}

.filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check__box {
  align-items: center;
  background: #f6f5f1;
  border: 1px solid #d8d6cf;
  border-radius: 6px;
  display: inline-flex;
  flex-shrink: 0;
  height: 18px;
  justify-content: center;
  margin: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 18px;
}

.filter-check__box::after {
  color: #ffffff;
  content: "✓";
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.filter-check input:checked + .filter-check__box {
  background: #111111;
  border-color: #111111;
}

.filter-check input:checked + .filter-check__box::after {
  opacity: 1;
  transform: scale(1);
}

.filter-check__text {
  color: #111111;
  display: block;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: none;
}

.filter-check:focus-within {
  border-color: #111111;
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.favorites-empty {
  color: #7a7a80;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 24px 4px 0;
  text-align: center;
}

.dialogs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -16px;
  padding: 0 0 8px;
}

.dialog-card {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ecece8;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
}

.dialog-card:last-child {
  border-bottom: 0;
}

.dialog-card__avatar {
  align-items: center;
  background: #ecece8;
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  letter-spacing: -0.02em;
  overflow: hidden;
  width: 46px;
}

.dialog-card__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dialog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dialog-card__top,
.dialog-card__bottom {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dialog-card__name {
  color: #111111;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dialog-card__time {
  color: #8a8a90;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
}

.dialog-card__preview {
  color: #6d6d73;
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-card__badge {
  align-items: center;
  background: #e11d2e;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.phone--account[data-page="chat"] .feed {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
}

.phone--account[data-page="chat"] .feed__meta:empty {
  display: none;
  padding: 0;
}

.chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin: 0 -16px;
  min-height: 0;
  padding: 0 0 10px;
}

.chat__peer {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 0 16px 2px;
}

.chat__peer--link {
  color: inherit;
  text-decoration: none;
}

.chat__peer--link:active .chat__name {
  opacity: 0.72;
}

.chat__avatar {
  align-items: center;
  background: #ecece8;
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  overflow: hidden;
  width: 46px;
}

.chat__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.chat__peer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat__name {
  color: #111111;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.chat__status {
  color: #2f80ed;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.chat-listing {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ecece8;
  border-top: 1px solid #ecece8;
  border-radius: 0;
  color: inherit;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  text-decoration: none;
  width: 100%;
}

.chat-listing__image {
  background: #f0efea;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  height: 44px;
  object-fit: cover;
  width: 36px;
}

.chat-listing__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-listing__title {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-listing__price {
  color: #111111;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.chat-listing__chevron {
  color: #9a9aa0;
  font-size: 22px;
  line-height: 1;
  padding-right: 0;
}

.chat__thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 16px 12px;
  scroll-behavior: auto;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
}

.chat-bubble--me {
  align-self: flex-end;
}

.chat-bubble--them {
  align-self: flex-start;
}

.chat-bubble__media {
  display: block;
  line-height: 0;
  max-width: 100%;
  overflow: hidden;
}

.chat-bubble--me .chat-bubble__media {
  border-radius: 18px 18px 6px 18px;
}

.chat-bubble--them .chat-bubble__media {
  border: 1px solid #e7e7e0;
  border-radius: 18px 18px 18px 6px;
}

.chat-bubble__image {
  display: block;
  height: auto;
  max-height: 260px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.chat-bubble__text {
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  padding: 10px 12px;
  word-break: break-word;
}

.chat-bubble--media .chat-bubble__text {
  margin-top: 4px;
}

.chat-bubble--me .chat-bubble__text {
  background: #111111;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.chat-bubble--them .chat-bubble__text {
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-bottom-left-radius: 6px;
  color: #111111;
}

.chat-bubble__meta {
  align-items: center;
  color: #8a8a90;
  display: inline-flex;
  font-size: 11px;
  font-weight: 650;
  gap: 4px;
}

.chat-bubble--me .chat-bubble__meta {
  justify-content: flex-end;
}

.chat-ticks {
  align-items: center;
  color: #9a9aa0;
  display: inline-flex;
  height: 12px;
  position: relative;
  width: 16px;
}

.chat-ticks svg {
  display: none;
  height: 12px;
  width: 16px;
}

.chat-bubble[data-message-status="sent"] .chat-ticks__one,
.chat-bubble[data-message-status="delivered"] .chat-ticks__two,
.chat-bubble[data-message-status="read"] .chat-ticks__two {
  display: block;
}

.chat-bubble[data-message-status="read"] .chat-ticks {
  color: #2f80ed;
}

.chat-bubble.is-sending,
.chat-bubble.is-appearing {
  animation: chat-fade 0.22s ease;
}

@keyframes chat-fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.chat-composer {
  align-items: center;
  background-color: var(--app-bg);
  border-top: 1px solid #ecece8;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
}

.chat-composer__attach {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 50%;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
  width: 44px;
}

.chat-composer__attach svg {
  display: block;
  height: 20px;
  width: 20px;
}

.chat-composer__attach:active {
  transform: scale(0.96);
}

.chat-composer__attach:focus-visible {
  border-color: #111111;
  outline: none;
}

.chat-composer__input {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 18px;
  color: #111111;
  flex: 1;
  font: inherit;
  font-size: 16px;
  height: 44px;
  outline: none;
  padding: 0 14px;
}

.chat-composer__input:focus {
  border-color: #111111;
}

.chat-composer__send {
  align-items: center;
  appearance: none;
  background: #111111;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
  width: 44px;
}

.chat-composer__send svg {
  display: block;
  height: 18px;
  margin-left: 2px;
  width: 18px;
}

.chat-composer__send:active {
  transform: scale(0.96);
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card {
  align-items: flex-start;
  background: transparent;
  border: 0;
  display: flex;
  gap: 16px;
  padding: 4px 0;
}

.profile-avatar {
  appearance: none;
  background: #ecece8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  height: 108px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 108px;
}

.profile-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-avatar img[hidden],
.profile-avatar img:not([src]) {
  display: none !important;
}

.profile-avatar.is-empty {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.profile-avatar__empty {
  align-items: center;
  color: #9a9aa0;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
}

.profile-avatar__empty[hidden] {
  display: none;
}

.profile-avatar__empty svg {
  display: block;
  height: 36px;
  width: 36px;
}

.profile-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.profile-card__name-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-card__name {
  color: #111111;
  font-family: var(--display-font);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  min-width: 0;
}

.profile-card__rating {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: -0.02em;
  margin: 0;
}

.rating-star {
  color: #f5b400;
  display: block;
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.rating-star path {
  fill: currentColor;
}

.rating-star--sm {
  display: inline-block;
  height: 12px;
  margin-right: 2px;
  vertical-align: -1px;
  width: 12px;
}

.profile-verify {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 7px;
  letter-spacing: -0.01em;
  margin: 0;
  width: fit-content;
}

.profile-verify--done {
  color: #111111;
}

.profile-verify__icon {
  display: block;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.profile-verify--action {
  appearance: none;
  background: transparent;
  border: 0;
  color: #2f80ed;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0;
  text-align: left;
}

.profile-card__reviews {
  color: #7a7a80;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.profile-card__email {
  color: #111111;
  font-size: 15px;
  font-weight: 650;
  margin: 0;
  word-break: break-word;
}

.profile-section-title {
  color: #111111;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 0;
}

.avatar-actions {
  align-items: flex-end;
  background: rgba(17, 17, 17, 0.42);
  bottom: 0;
  display: flex;
  left: 0;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 90;
}

.avatar-actions[hidden] {
  display: none;
}

.avatar-actions__sheet {
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 400px;
  overflow: hidden;
  width: 100%;
}

.avatar-actions__item {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ecece8;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  min-height: 52px;
  padding: 0 16px;
  text-align: center;
  width: 100%;
}

.avatar-actions__item:last-child {
  border-bottom: 0;
}

.avatar-actions__item--danger {
  color: #e11d2e;
}

.avatar-modal {
  align-items: center;
  background: rgba(17, 17, 17, 0);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  opacity: 0;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.22s ease, background-color 0.22s ease;
  visibility: hidden;
  z-index: 90;
}

.avatar-modal[hidden] {
  display: flex;
}

.avatar-modal.is-open {
  background: rgba(17, 17, 17, 0.42);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.avatar-modal__sheet {
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
  max-width: 400px;
  padding: 18px;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.24s ease;
  width: 100%;
}

.avatar-modal.is-open .avatar-modal__sheet {
  transform: translateY(0) scale(1);
}

.avatar-modal__head h2 {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.avatar-modal__head p {
  color: #7a7a80;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.avatar-modal__stage {
  aspect-ratio: 1;
  background: #1a1a1a;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}

.avatar-modal__stage img {
  left: 50%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(calc(-50% + 0px), calc(-50% + 0px)) scale(1);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.avatar-modal__mask {
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.58);
  height: 72%;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
}

.avatar-modal__actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.avatar-modal__actions .button {
  margin: 0;
  min-height: 48px;
}

.listing-card[hidden],
.listings-empty[hidden],
.favorites-empty[hidden] {
  display: none !important;
}

.listing-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.05);
  position: relative;
}

.listing-card__hit {
  border-radius: inherit;
  inset: 0;
  position: absolute;
  z-index: 1;
}

.listing-card__media {
  position: relative;
  flex-shrink: 0;
  width: 98px;
  min-width: 98px;
}

.listing-card__image {
  display: block;
  width: 100%;
  height: 136px;
  object-fit: cover;
  background: #f4f1ea;
  border: 1px solid #ece6da;
  border-radius: 20px;
}

.listing-card__badge {
  background: #111111;
  border-radius: 999px;
  bottom: 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  left: 50%;
  letter-spacing: -0.01em;
  padding: 4px 7px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.listing-card__status--pending {
  color: #111111;
}

.listing-card__fav {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 231, 224, 0.95);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.1);
  color: #8a8a90;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 6px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  width: 28px;
  z-index: 2;
}

.listing-card__fav svg {
  display: block;
  height: 14px;
  width: 14px;
}

.listing-card__fav:active {
  transform: scale(0.96);
}

.listing-card__fav.is-active,
.listing-card__fav[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(231, 231, 224, 0.95);
  color: #e11d2e;
}

.listing-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 2px 0 2px;
}

.listing-card__head {
  display: flex;
  align-items: flex-start;
}

.listing-card__title {
  color: #111111;
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__description {
  color: #6d6d73;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__price {
  color: #111111;
  flex-shrink: 0;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: right;
}

.listing-card__seller-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.listing-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
}

.listing-card__footer--mine {
  align-items: center;
  justify-content: space-between;
}

.listing-card__edit {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: -0.01em;
  position: relative;
  text-decoration: none;
  z-index: 2;
}

.listing-card__edit svg {
  display: block;
  height: 14px;
  width: 14px;
}

.listing-card__seller-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8b8bd;
}

.listing-card__seller-name,
.listing-card__seller-rating {
  color: #4d4d52;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.listing-card__seller-rating {
  color: #6c6c72;
}

.listing-card__seller-rating .rating-star {
  color: #f5b400;
}

.listing-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

.listing-gallery {
  margin: 0 -16px;
  padding: 0 44px;
  position: relative;
}

.listing-gallery__nav {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 50%;
  color: #111111;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: calc(50% - 18px);
  touch-action: manipulation;
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
  width: 36px;
  z-index: 3;
}

.listing-gallery__nav svg {
  display: block;
  height: 18px;
  width: 18px;
}

.listing-gallery__nav--prev {
  left: 6px;
}

.listing-gallery__nav--next {
  right: 6px;
}

.listing-gallery__nav:active {
  transform: scale(0.96);
}

.listing-gallery__nav:disabled {
  cursor: default;
  opacity: 0.28;
}

.listing-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.listing-gallery__track::-webkit-scrollbar {
  display: none;
}

.listing-gallery__slide {
  align-items: center;
  background: transparent;
  display: flex;
  flex: 0 0 100%;
  height: min(48svh, 360px);
  justify-content: center;
  margin: 0;
  max-height: min(48svh, 360px);
  overflow: hidden;
  scroll-snap-align: start;
  width: 100%;
}

.listing-gallery__slide img {
  aspect-ratio: 3 / 4;
  background: #111111;
  border-radius: 18px;
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  width: auto;
}

.listing-gallery__dots {
  bottom: 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.listing-gallery__dot {
  appearance: none;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  width: 7px;
}

.listing-gallery__dot.is-active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.2);
  width: 18px;
  border-radius: 999px;
}

.listing-detail__price {
  color: #111111;
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
}

.listing-detail__title {
  color: #111111;
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.listing-detail__owner-badge {
  color: #2f80ed;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: -0.01em;
  margin: 0;
}

.listing-owner__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-owner__form .button {
  margin-top: 2px;
  min-height: 50px;
}

.listing-owner__sold {
  margin-top: 0;
  min-height: 50px;
}

.listing-owner__sold-note {
  color: #8a8a90;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.listing-owner__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-owner__field span {
  color: #8a8a90;
  font-size: 12px;
  font-weight: 740;
}

.listing-owner__field input,
.listing-owner__field textarea {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 16px;
  color: #111111;
  font: inherit;
  outline: none;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.listing-owner__field input[name="title"] {
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.listing-owner__price {
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.listing-owner__field textarea {
  font-size: 15px;
  line-height: 1.45;
  min-height: 140px;
}

.listing-owner__field input:focus,
.listing-owner__field textarea:focus {
  border-color: #111111;
  box-shadow: none;
}

.listing-detail__write {
  align-items: center;
  background: #111111;
  border-radius: 18px;
  color: #ffffff;
  display: flex;
  font-size: 16px;
  font-weight: 740;
  gap: 10px;
  justify-content: center;
  letter-spacing: -0.02em;
  min-height: 54px;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.listing-detail__write svg {
  display: block;
  height: 18px;
  width: 18px;
}

.listing-detail__write:active {
  transform: scale(0.99);
}

.listing-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.listing-detail__meta p {
  color: #4d4d52;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}

.listing-detail__block h2 {
  color: #111111;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.listing-detail__block p {
  color: #4d4d52;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

.listing-seller {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  gap: 12px;
  padding: 2px 0;
}

.listing-seller__avatar {
  align-items: center;
  background: #ecece8;
  border-radius: 50%;
  color: #111111;
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 52px;
}

.listing-seller__avatar--lg {
  font-size: 28px;
  height: 72px;
  width: 72px;
}

.listing-seller__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.listing-seller__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.listing-seller__name {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  gap: 4px;
  letter-spacing: -0.02em;
  text-decoration: none;
  width: fit-content;
}

.listing-seller__rating {
  align-items: center;
  color: #111111;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  margin: 0;
}

.seller-page .listing-seller__rating {
  font-family: var(--display-font);
  font-size: 18px;
  gap: 6px;
}

.seller-page .listing-seller__rating .rating-star {
  height: 18px;
  width: 18px;
}

.listing-seller__reviews {
  color: #8a8a90;
  font-weight: 650;
  margin-left: 2px;
}

.seller-page .listing-seller__reviews {
  font-size: 15px;
}

.seller-page__info {
  flex: 1;
  min-width: 0;
}

.seller-page__name-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.seller-page__leave-review {
  appearance: none;
  background: transparent;
  border: 0;
  color: #2f80ed;
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: right;
  text-decoration: none;
  touch-action: manipulation;
  white-space: nowrap;
  z-index: 5;
}

.listing-seller__chevron {
  color: #9a9aa0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin-top: -1px;
}

.seller-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seller-page__card {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 4px 0;
}

.seller-page__name {
  color: #111111;
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-listing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}

.create-listing__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-listing__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.create-listing__label {
  color: #111111;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.create-listing__input,
.create-listing__select,
.create-listing__textarea {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 16px;
  color: #111111;
  font: inherit;
  font-size: 16px;
  outline: none;
  padding: 14px 16px;
  width: 100%;
}

.create-listing__input:focus,
.create-listing__select:focus,
.create-listing__textarea:focus {
  border-color: #111111;
}

.create-listing__textarea {
  line-height: 1.4;
  min-height: 120px;
  resize: vertical;
}

.create-listing__select {
  background-image: linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 36px;
}

.create-photos {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.create-photos__slot {
  appearance: none;
  aspect-ratio: 3 / 4;
  background: #f3f3f0;
  border: 1px solid #e7e7e0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  touch-action: manipulation;
  width: 100%;
}

.create-photos__slot.is-filled {
  background: #111111;
  border-color: #111111;
}

.create-photos__empty {
  align-items: center;
  color: #9a9aa0;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.create-photos__empty svg {
  display: block;
  height: 28px;
  width: 28px;
}

.create-photos__slot.is-filled .create-photos__empty {
  display: none;
}

.create-photos__preview {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.create-photos__preview[hidden] {
  display: none;
}

.create-photos__remove {
  align-items: center;
  background: rgba(17, 17, 17, 0.72);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  z-index: 2;
}

.create-photos__remove[hidden] {
  display: none;
}

.create-listing__check {
  align-items: center;
  color: #111111;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 650;
  gap: 10px;
}

.create-listing__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.create-listing__check-box {
  border: 1.5px solid #111111;
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
  height: 22px;
  position: relative;
  width: 22px;
}

.create-listing__check input:checked + .create-listing__check-box::after {
  border-bottom: 2px solid #111111;
  border-right: 2px solid #111111;
  content: "";
  height: 11px;
  left: 7px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 6px;
}

.create-listing__hint {
  color: #8a8a90;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.create-listing__error {
  color: #c0392b;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.create-listing__submit {
  margin-top: 4px;
}

.listing-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 2px 0 0;
}

.listing-status-tabs__item {
  appearance: none;
  background: transparent;
  border: 0;
  color: #9a9aa0;
  cursor: pointer;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 0;
}

.reviews[hidden],
.listings[hidden] {
  display: none;
}

.listing-status-tabs__item.is-active {
  color: #111111;
}

.listing-card__status {
  color: #8a8a90;
  font-size: 13px;
  font-weight: 700;
}

.listings-empty {
  color: #8a8a90;
  font-size: 14px;
  font-weight: 650;
  margin: 4px 0 0;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews__list {
  display: flex;
  flex-direction: column;
}

.review-stars {
  align-items: center;
  display: inline-flex;
  gap: 3px;
}

.review-stars__star {
  color: #e4e4de;
  display: block;
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}

.review-stars__star path {
  fill: currentColor;
}

.review-stars__star.is-on {
  color: #f5b400;
}

.review-stars--lg .review-stars__star {
  height: 20px;
  width: 20px;
}

.review-card {
  background: transparent;
  border: 0;
  border-top: 1px solid #ecece8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.review-card:first-child {
  border-top: 0;
  padding-top: 4px;
}

.review-card__head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.review-card__author {
  color: #111111;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.review-card__score {
  color: #111111;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.review-card__text {
  color: #3f3f44;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}

.review-form {
  border-bottom: 1px solid #ecece8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 18px;
}

.review-form__title {
  color: #111111;
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.review-form__stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  justify-content: flex-end;
  width: fit-content;
}

.review-form__radio {
  height: 0;
  left: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.review-form__star {
  color: #d8d8d0;
  cursor: pointer;
  display: block;
  flex-shrink: 0;
  height: 40px;
  touch-action: manipulation;
  width: 40px;
}

.review-form__star svg {
  display: block;
  height: 100%;
  pointer-events: none;
  width: 100%;
}

.review-form__star svg path {
  fill: currentColor;
}

.review-form__radio:checked ~ .review-form__star,
.review-form__star:hover,
.review-form__star:hover ~ .review-form__star {
  color: #f5b400;
}

.review-form__radio:focus-visible + .review-form__star {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.review-form__text {
  appearance: none;
  background: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 16px;
  color: #111111;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  min-height: 96px;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.review-form__text:focus {
  border-color: #111111;
}

.review-form__submit {
  width: 100%;
}

.review-form__submit:disabled {
  cursor: default;
  opacity: 0.45;
}

.review-form__error {
  color: #c0392b;
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}

.safari-tint {
  background-color: #ffffff;
  display: none;
  left: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 60;
}

.safari-tint--top {
  display: none !important;
}

.safari-tint--bottom {
  bottom: -8px;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  min-height: 56px;
}

.tabbar-spacer {
  display: none;
  flex-shrink: 0;
  pointer-events: none;
}

.tabbar-shell {
  background-color: #ffffff;
  flex-shrink: 0;
  margin-top: auto;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  position: sticky;
  bottom: 0;
  /* always above confirm dimming overlay */
  z-index: 80;
}

.tabbar {
  align-items: flex-end;
  background-color: #ffffff;
  border: 1px solid #e7e7e0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.1);
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 767px) {
  html,
  body,
  body:has(.phone--account) {
    background-color: #ffffff !important;
    background-image: none !important;
  }

  .phone--account,
  .topbar--feed,
  .feed,
  .tabbar-shell,
  .tabbar,
  .chat-composer {
    background-color: #ffffff !important;
    background-image: none !important;
  }

  .phone--account {
    height: 100svh;
    max-height: 100svh;
    min-height: 100svh;
  }

  .safari-tint--bottom {
    display: block;
    background-color: #ffffff;
  }

  .tabbar-spacer {
    display: block;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    visibility: hidden;
  }

  .phone--account[data-page="chat"] .chat {
    padding-bottom: 0;
  }

  .phone--account[data-page="chat"] .feed {
    padding-bottom: 0;
  }

  .phone--account[data-page="chat"] .chat-composer {
    background-color: #ffffff;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* No tabbar in chat — bottom tint would cover the composer */
  body:has(.phone--account[data-page="chat"]) .safari-tint--bottom {
    display: none !important;
  }

  /* Chat shell tracks visualViewport (set from JS) at rest and with keyboard */
  .phone--account[data-page="chat"] {
    height: var(--vv-height, 100svh) !important;
    max-height: var(--vv-height, 100svh) !important;
    min-height: 0 !important;
  }

  .phone--account[data-page="chat"].is-keyboard-open .chat-composer {
    padding-bottom: 10px;
  }

  html.is-chat-vv,
  html.is-chat-vv body,
  html.is-form-vv,
  html.is-form-vv body {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.is-form-vv .phone--account[data-page="create"] {
    height: var(--vv-height, 100svh) !important;
    max-height: var(--vv-height, 100svh) !important;
    min-height: 0 !important;
  }

  .phone--account[data-page="create"] .create-listing__input,
  .phone--account[data-page="create"] .create-listing__textarea,
  .phone--account[data-page="create"] .create-listing__select {
    scroll-margin: 24px;
  }

  .tabbar-shell {
    border: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    width: 100%;
    z-index: 80;
  }

  /* Extra white fill under the home indicator / Safari chin */
  .tabbar-shell::after {
    background-color: #ffffff;
    bottom: -80px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
  }

  /* Full-bleed bar on iPhone — no floating pill seam */
  .tabbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 6px 4px 4px;
  }

  .tabbar__plus {
    box-shadow: none !important;
    filter: none !important;
    height: 46px;
    width: 46px;
  }
}

.tabbar__item {
  align-items: center;
  color: #7e7e86;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  justify-content: center;
  text-decoration: none;
}

.tabbar__item svg {
  display: block;
  height: 22px;
  width: 22px;
}

.tabbar__icon {
  display: inline-flex;
  position: relative;
}

.tabbar__badge {
  align-items: center;
  background: #e11d2e;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-width: 18px;
  padding: 0 4px;
  position: absolute;
  right: -9px;
  top: -7px;
}

.tabbar__item.is-active {
  color: #111111;
}

.tabbar__plus {
  align-items: center;
  align-self: center;
  background: #111111;
  border-radius: 50%;
  box-shadow: none;
  color: #ffffff;
  display: inline-flex;
  filter: none;
  font-size: 30px;
  font-weight: 300;
  height: 52px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  transform: none;
  width: 52px;
}

.footer {
  color: #7b7b80;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding: 10px 22px calc(14px + env(safe-area-inset-bottom));
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  html {
    background-color: #f4f4f1;
  }

  html,
  body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  body {
    background:
      radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 34%),
      linear-gradient(180deg, #ecece7 0%, #f7f7f4 100%);
    display: grid;
    place-items: center;
    padding: 16px 0;
    width: 100%;
    max-width: 100vw;
  }

  body:has(.phone--account) {
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .phone {
    width: min(100%, 430px);
    max-width: 430px;
    height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 36px;
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .phone--account {
    height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
  }

  .topbar--feed {
    min-height: 64px;
    padding-top: 14px;
  }

  .tabbar-shell {
    padding-bottom: 14px;
  }

  .feed {
    overscroll-behavior-x: none;
  }

  .categories {
    touch-action: pan-x;
  }
}
