:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eef5f5;
  --line: #dfe8e8;
  --text: #102024;
  --muted: #637477;
  --faint: #8ea0a3;
  --primary: #087a7b;
  --primary-dark: #045f65;
  --primary-soft: #dff4f2;
  --home-accent: #ff6a21;
  --home-accent-soft: #fff2ea;
  --blue: #2563eb;
  --green: #169b62;
  --orange: #c77718;
  --danger: #ca3b45;
  --shadow: 0 10px 30px rgba(12, 41, 45, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* Unified formal mobile prototype theme */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --line: #dce3ec;
  --text: #061832;
  --muted: #66758a;
  --faint: #94a3b8;
  --primary: #ff6a21;
  --primary-dark: #d84e0c;
  --primary-soft: #fff1e8;
  --home-accent: #ff6a21;
  --home-accent-soft: #fff1e8;
  --green: #16a064;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

body,
body[data-page="home"] {
  background: #e9edf3;
}

.topbar,
.mobile-nav,
body[data-page="home"] .topbar,
body[data-page="home"] .mobile-nav {
  display: none;
}

.app-shell,
body[data-page="home"] .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: start center;
}

.app-main,
body[data-page="home"] .app-main {
  width: min(430px, 100vw);
  min-height: 100vh;
  padding: 0;
}

.home-screen,
.page-screen {
  position: relative;
  min-height: 100vh;
  padding: 20px 14px 78px;
  overflow: hidden;
  background: var(--bg);
}

.home-screen {
  background: var(--surface);
}

.page-screen {
  overflow: visible;
}

.home-header {
  min-height: 40px;
}

.home-logo b {
  color: var(--primary);
}

.round-icon {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.home-search input,
.field input,
.field textarea,
.field select {
  border-color: var(--line);
}

.home-chip {
  border-color: var(--line);
  color: var(--text);
}

.home-chip.active,
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.today-strip {
  border-color: #ffe0ce;
  background: var(--primary-soft);
}

.home-listing {
  border-bottom-color: #e8edf3;
}

.tag-row span {
  background: #eef3ff;
  color: #526a9f;
}

.page-header {
  display: grid;
  grid-template-columns: 42px 1fr 54px;
  align-items: center;
  min-height: 48px;
  margin: -4px 0 12px;
}

.page-header h1 {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.page-header a {
  justify-self: end;
  color: var(--primary);
  font-size: 14px;
  font-weight: 820;
}

.plain-back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.section {
  margin-top: 0;
}

.filters {
  margin: 0 -14px 14px;
  padding: 0 14px;
}

.listing-list {
  grid-template-columns: 1fr;
}

.listing-card,
.publish-card,
.form-card,
.detail-panel,
.profile-card,
.subpage-card,
.me-profile-card,
.me-menu a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.listing-card {
  grid-template-columns: 116px 1fr;
}

.price,
.home-price {
  color: var(--primary);
}

.pill.verified,
.verify-row b,
.shield {
  background: #e9f8f1;
  color: var(--green);
}

.category-icon {
  background: var(--primary-soft);
  color: var(--primary);
}

.form-intro {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.step.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.primary-button {
  background: var(--primary);
}

.secondary-button {
  color: var(--text);
}

.select-like {
  background: var(--surface-soft);
}

.upload-tile.cover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.sticky-submit {
  bottom: 76px;
  border-color: var(--line);
}

.me-screen {
  background: var(--bg);
}

.me-profile-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.me-profile-card strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.me-profile-card span {
  display: block;
  margin-top: 4px;
  color: #56708d;
  font-size: 14px;
}

.me-menu {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.me-menu a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
}

.me-menu b {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.me-menu span {
  color: var(--text);
  font-size: 22px;
}

.subpage-card {
  padding: 16px;
}

.subpage-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.subpage-list {
  display: grid;
  gap: 10px;
}

.subpage-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 740;
}

.feedback-box {
  width: 100%;
  min-height: 150px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.home-bottom-nav {
  border-top-color: var(--line);
}

.home-bottom-nav .active {
  color: var(--primary);
}

.home-bottom-nav .home-publish span {
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(255, 106, 33, 0.24);
}

@media (min-width: 760px) {
  .app-main,
  body[data-page="home"] .app-main {
    width: 430px;
    min-height: auto;
  }

  .home-screen,
  .page-screen {
    min-height: 860px;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  }

  .listing-list {
    grid-template-columns: 1fr;
  }

  .home-bottom-nav {
    position: absolute;
    right: 0;
    left: 0;
  }
}

/* Auth screen final pass */
body[data-page="auth"] {
  background: #f2f3f5;
}

body[data-page="auth"] .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: start center;
}

body[data-page="auth"] .app-main {
  width: min(430px, 100vw);
  min-height: 100vh;
  padding: 0;
  background: #fff;
}

body[data-page="auth"] .topbar,
body[data-page="auth"] .mobile-nav {
  display: none !important;
}

body[data-page="auth"] .auth-screen {
  min-height: 100vh;
  padding: 0 28px 34px;
  overflow: hidden;
  background: #fff;
}

body[data-page="auth"] .auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding-top: env(safe-area-inset-top);
}

body[data-page="auth"] .auth-topbar .plain-back {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  color: #111827;
  font-size: 34px;
}

body[data-page="auth"] .auth-topbar a {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
}

body[data-page="auth"] .auth-card {
  display: grid;
  gap: 18px;
  padding: 32px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="auth"] .auth-card h1 {
  margin: 0;
  color: #111827;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 950;
}

body[data-page="auth"] .auth-card p {
  margin: -10px 0 24px;
  color: #9aa3ad;
  font-size: 13px;
}

body[data-page="auth"] .auth-card form {
  display: grid;
  gap: 20px;
}

body[data-page="auth"] .auth-phone-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 9px;
}

body[data-page="auth"] .country-code,
body[data-page="auth"] .auth-phone-row input,
body[data-page="auth"] .auth-code-row {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f4f5f7;
}

body[data-page="auth"] .country-code {
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 760;
}

body[data-page="auth"] .auth-phone-row input,
body[data-page="auth"] .auth-code-row input {
  width: 100%;
  padding: 0 16px;
  color: #111827;
  font-size: 15px;
  font-weight: 760;
  outline: none;
}

body[data-page="auth"] .auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
}

body[data-page="auth"] .auth-password-row {
  grid-template-columns: 1fr;
}

body[data-page="auth"] .auth-code-row button,
body[data-page="auth"] .auth-mode-link {
  border: 0;
  background: transparent;
  color: #18c46e;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

body[data-page="auth"] .auth-code-row button {
  min-height: 44px;
  padding: 0 15px;
}

body[data-page="auth"] .auth-code-row button:disabled {
  color: #a3adb8;
}

body[data-page="auth"] .auth-mode-link {
  justify-self: end;
  margin-top: -8px;
  color: #2f6f9f;
}

body[data-page="auth"] .auth-card .auth-submit {
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #eff1f4;
  color: #8b94a0;
  font-size: 15px;
  font-weight: 880;
}

body[data-page="auth"] .auth-agreement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #26313d;
  font-size: 14px;
  line-height: 1.75;
}

body[data-page="auth"] .auth-agreement input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: #18c46e;
}

body[data-page="auth"] .auth-agreement a {
  color: #2f6f9f;
}

@media (min-width: 760px) {
  body[data-page="auth"] .app-shell {
    padding: 28px 0;
  }

  body[data-page="auth"] .app-main,
  body[data-page="auth"] .auth-screen {
    min-height: 860px;
  }

  body[data-page="auth"] .auth-screen {
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
  }
}

/* Modern mobile-first polish */
body {
  background: #eef2f6;
}

.topbar,
.mobile-nav {
  display: none !important;
}

.app-shell,
body[data-page="home"] .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: start center;
}

.app-main,
body[data-page="home"] .app-main {
  width: min(430px, 100vw);
  min-height: 100vh;
  padding: 0;
}

.home-screen,
.page-screen {
  min-height: 100vh;
  padding: 22px 16px 82px;
  background: #f6f8fb;
  overflow-x: hidden;
}

.home-screen {
  background: #fff;
}

.page-header {
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  min-height: 48px;
  margin: 0 0 16px;
}

.page-header h1 {
  font-size: 19px;
  letter-spacing: 0;
}

.page-header a {
  color: var(--home-accent);
  font-size: 14px;
}

.home-search {
  height: 46px;
  border: 1px solid #dde5ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 43, 59, 0.04);
}

.filters,
.home-chips {
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filters::-webkit-scrollbar,
.home-chips::-webkit-scrollbar {
  display: none;
}

.chip,
.home-chip {
  min-height: 38px;
  border-radius: 10px;
  white-space: nowrap;
}

.listing-list {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

.listing-card,
.listing-card.compact {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) !important;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e3eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 35, 52, 0.05);
}

.listing-card img {
  width: 118px;
  height: 104px;
  aspect-ratio: auto;
  border-radius: 10px;
}

.listing-content {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.listing-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #16212c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price {
  color: var(--home-accent);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  color: #667789;
  font-size: 13px;
  line-height: 1.25;
}

.pill {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: #516c9d;
  white-space: nowrap;
}

.auth-screen {
  display: grid;
  align-content: start;
}

.auth-card {
  gap: 14px;
  padding: 20px;
  border: 1px solid #e2e9f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 35, 52, 0.07);
}

.auth-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--home-accent);
}

.auth-card h1 {
  font-size: 24px;
  line-height: 1.18;
}

.auth-card p,
.auth-card small {
  color: #607084;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid #ffd0c2;
  border-radius: 10px;
  background: #fff3ee;
  color: #b23416;
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  border-color: #dbe4ed;
  border-radius: 10px;
  background: #fff;
}

.primary-button {
  border-radius: 10px;
  background: var(--home-accent);
}

.secondary-button {
  border-radius: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.pending {
  background: #fff6df;
  color: #a15f00;
}

.status-badge.active {
  background: #e9f8f0;
  color: #177a45;
}

.status-badge.rejected {
  background: #fff0eb;
  color: #b23416;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.admin-tabs a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid #dfe8f1;
  border-radius: 10px;
  background: #fff;
  color: #536477;
  font-size: 14px;
  font-weight: 800;
}

.admin-tabs a.active {
  border-color: var(--home-accent);
  background: #fff2ea;
  color: var(--home-accent);
}

.admin-summary {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.admin-summary span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #607084;
  font-size: 12px;
  font-weight: 780;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e9f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 35, 52, 0.06);
}

.admin-card > img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  border-radius: 10px;
  background: #e6edf3;
}

.admin-card-body {
  display: grid;
  gap: 8px;
}

.admin-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.admin-card-head b {
  color: #16212c;
  font-size: 16px;
  line-height: 1.35;
}

.admin-card-body strong {
  color: var(--home-accent);
  font-size: 18px;
}

.admin-fields {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-fields div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.admin-fields dt,
.admin-fields dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.admin-fields dt {
  color: #8795a7;
  font-weight: 760;
}

.admin-fields dd {
  color: #344256;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-actions .primary-button,
.admin-actions .secondary-button,
.admin-actions .danger-button {
  width: 100%;
  min-height: 38px;
}

.detail-actions {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 760px) {
  .app-shell,
  body[data-page="home"] .app-shell {
    padding: 28px 0;
  }

  .app-main,
  body[data-page="home"] .app-main {
    width: 430px;
    min-height: auto;
  }

  .home-screen,
  .page-screen {
    min-height: 840px;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
  }

  .home-bottom-nav {
    position: absolute;
    right: 0;
    left: 0;
  }
}

/* Final unified overrides */
body,
body[data-page="home"] {
  background: #e9edf3;
}

.topbar,
.mobile-nav,
body[data-page="home"] .topbar,
body[data-page="home"] .mobile-nav {
  display: none;
}

.app-shell,
body[data-page="home"] .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: start center;
}

.app-main,
body[data-page="home"] .app-main {
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.home-screen,
.page-screen {
  position: relative;
  min-height: 100vh;
  padding: 20px 14px 78px;
  background: var(--bg);
}

.home-screen {
  background: var(--surface);
}

.listing-list {
  grid-template-columns: 1fr;
}

.listing-card {
  grid-template-columns: 116px 1fr;
}

.home-price,
.price,
.home-bottom-nav .active {
  color: var(--primary);
}

.home-chip.active,
.chip.active,
.primary-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.home-bottom-nav .home-publish span {
  background: var(--primary);
}

.home-bottom-nav {
  right: calc((100vw - min(430px, 100vw)) / 2);
  left: calc((100vw - min(430px, 100vw)) / 2);
}

@media (min-width: 760px) {
  .topbar,
  .mobile-nav {
    display: none;
  }

  .app-shell,
  body[data-page="home"] .app-shell {
    padding: 36px 0;
  }

  .app-main,
  body[data-page="home"] .app-main {
    width: 430px;
    min-height: auto;
    padding: 0;
  }

  .home-screen,
  .page-screen {
    min-height: 860px;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  }

  .home-bottom-nav {
    position: absolute;
    right: 0;
    left: 0;
  }

  .listing-list,
  .publish-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .form-page {
    max-width: none;
  }
}

/* Latest interaction additions */
.detail-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.detail-title-row h1 {
  margin: 0 0 8px;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.favorite-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.message-avatar.alt {
  background: #1f6f78;
}

.message-avatar.warm {
  background: #c45a17;
}

.message-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.message-body b {
  color: var(--text);
  font-size: 15px;
}

.message-body small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-item time {
  align-self: start;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}

.chat-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 620px;
  padding: 8px 0 76px;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  justify-self: end;
}

.chat-bubble.other {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.chat-compose {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  padding: 10px 0 0;
  background: var(--bg);
}

.chat-compose input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.chat-compose button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 820;
}

.empty-card {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.detail-actions button {
  border: 0;
}

.auth-screen {
  display: grid;
  align-content: start;
  min-height: 100dvh;
  padding: 0 28px 32px;
  background: #fff;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 32px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-card h1 {
  margin: 0;
  color: #111827;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 950;
}

.auth-card p {
  margin: -10px 0 24px;
  color: #9aa3ad;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card form {
  display: grid;
  gap: 20px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding-top: env(safe-area-inset-top);
}

.auth-topbar .plain-back {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  font-size: 34px;
  line-height: 1;
}

.auth-topbar a {
  color: #111827;
  font-size: 15px;
  font-weight: 850;
}

.auth-phone-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 9px;
}

.country-code,
.auth-phone-row input,
.auth-code-row {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f4f5f7;
}

.country-code {
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 760;
}

.auth-phone-row input,
.auth-code-row input {
  width: 100%;
  padding: 0 16px;
  color: #111827;
  font-size: 15px;
  font-weight: 760;
  outline: none;
}

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
}

.auth-password-row {
  grid-template-columns: 1fr;
}

.auth-code-row button,
.auth-mode-link {
  border: 0;
  background: transparent;
  color: #18c46e;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-code-row button {
  min-height: 44px;
  padding: 0 15px;
}

.auth-code-row button:disabled {
  color: #a3adb8;
}

.auth-mode-link {
  justify-self: end;
  margin-top: -8px;
  color: #2f6f9f;
}

.auth-card .auth-submit {
  min-height: 46px;
  margin-top: 8px;
  border-radius: 8px;
  background: #eff1f4;
  color: #8b94a0;
  font-size: 15px;
  font-weight: 880;
}

.auth-agreement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #26313d;
  font-size: 14px;
  line-height: 1.75;
}

.auth-agreement input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: #18c46e;
}

.auth-agreement a {
  color: #2f6f9f;
}

body[data-page="auth"] .topbar,
body[data-page="auth"] .mobile-nav {
  display: none;
}

body[data-page="auth"] .app-main {
  padding: 0;
}

.logout-button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid #ffd1c4;
  border-radius: 8px;
  background: #fff5f1;
  color: var(--primary-dark);
  font-weight: 850;
}

.today-strip {
  grid-template-columns: 28px auto 1px auto auto 1fr;
}

.home-header {
  grid-template-columns: auto auto 1fr;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(223, 232, 232, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #087a7b, #2563eb);
  font-size: 11px;
  font-weight: 820;
}

.desktop-nav {
  display: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}

.manage-list {
  display: grid;
  gap: 10px;
}

.manage-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.listing-card.compact {
  border: 0;
  padding: 0;
  background: transparent;
}

.manage-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.manage-actions .primary-button,
.manage-actions .secondary-button,
.manage-actions .danger-button {
  width: 100%;
  min-height: 38px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #ffd2c5;
  border-radius: 8px;
  background: #fff4ef;
  color: #b23416;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.draft-summary {
  display: grid;
  gap: 5px;
}

.draft-summary b {
  color: var(--text);
  font-size: 16px;
}

.draft-summary span {
  color: var(--muted);
  font-size: 13px;
}

.app-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.hero {
  display: grid;
  gap: 16px;
  padding: 20px 0 12px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.search-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-input {
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.select-like,
.primary-button,
.secondary-button,
.chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 720;
}

.select-like {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
}

.primary-button {
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.section {
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.section-head a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 720;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-tile {
  display: grid;
  min-height: 86px;
  gap: 8px;
  align-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 840;
}

.category-tile strong {
  font-size: 15px;
}

.category-tile small {
  color: var(--muted);
}

.listing-list {
  display: grid;
  gap: 10px;
}

.listing-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.listing-card img,
.detail-photo,
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #dbe5e5;
}

.listing-card img {
  aspect-ratio: 1 / 0.82;
  border-radius: 8px;
}

.listing-content {
  min-width: 0;
}

.listing-title {
  display: -webkit-box;
  margin: 1px 0 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price {
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 840;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #f7faf9;
  color: var(--muted);
  font-size: 12px;
}

.pill.verified {
  border-color: #bfe6d4;
  background: #edf9f2;
  color: var(--green);
}

.filters {
  display: flex;
  gap: 8px;
  margin: 8px -16px 14px;
  padding: 0 16px;
  overflow-x: auto;
}

.chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.chip.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.detail-layout {
  display: grid;
  gap: 16px;
}

.detail-gallery {
  display: grid;
  gap: 8px;
}

.detail-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumb {
  aspect-ratio: 1;
  border-radius: 8px;
}

.detail-panel,
.form-card,
.publish-card,
.profile-card,
.trust-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-panel,
.profile-card,
.trust-panel {
  padding: 16px;
}

.detail-panel h1 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.body-copy {
  color: #34484c;
  font-size: 15px;
  line-height: 1.65;
}

.publish-grid {
  display: grid;
  gap: 12px;
}

.publish-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.publish-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.publish-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-page {
  padding-bottom: 16px;
}

.form-title {
  margin: 4px 0 16px;
}

.form-title h1 {
  margin: 0;
  font-size: 22px;
}

.form-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.step {
  min-height: 34px;
  border-radius: 8px;
  background: #e8eeee;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 760;
}

.step.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.form-card {
  padding: 14px;
  margin-bottom: 12px;
}

.form-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.form-card .helper {
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.photo-strip {
  display: grid;
  grid-template-columns: 112px repeat(3, 74px);
  gap: 9px;
  overflow: hidden;
}

.upload-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid #c8d8d9;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 720;
  overflow: hidden;
  cursor: pointer;
}

.upload-tile.cover {
  min-height: 96px;
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.upload-tile.has-preview {
  color: #fff;
}

.upload-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-tile span {
  position: relative;
  z-index: 1;
}

.upload-tile.has-preview span {
  align-self: end;
  width: 100%;
  padding: 7px 6px;
  background: rgba(9, 22, 26, 0.62);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-grid.two {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #33494c;
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select {
  height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

.segment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.segment button,
.contact-options button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.segment button.active,
.contact-options button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 760;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-note {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f0f8f4;
  color: #23604a;
  font-size: 13px;
  line-height: 1.45;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sticky-submit {
  position: sticky;
  bottom: 76px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-state h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.mobile-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 68px;
  padding: 6px 8px 8px;
  border-top: 1px solid rgba(223, 232, 232, 0.95);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.mobile-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-nav span {
  font-size: 20px;
  line-height: 1;
}

.mobile-nav a.active {
  color: var(--primary);
}

.mobile-nav .publish-tab span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

body[data-page="home"] {
  background: #151515;
}

body[data-page="home"] .topbar,
body[data-page="home"] .mobile-nav {
  display: none;
}

body[data-page="home"] .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: start center;
}

body[data-page="home"] .app-main {
  width: min(390px, 100vw);
  min-height: 100vh;
  padding: 0;
}

.home-screen {
  position: relative;
  min-height: 100vh;
  padding: 24px 12px 72px;
  overflow: hidden;
  background: #fff;
}

.home-header {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.home-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  font-size: 19px;
  font-weight: 820;
  letter-spacing: 0;
}

.home-logo b {
  color: var(--home-accent);
  font-size: 22px;
  line-height: 1;
}

.home-logo span {
  white-space: nowrap;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #f1f2f3;
  color: #4d5558;
  font-size: 12px;
  font-weight: 760;
}

.home-alerts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.round-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #e6e8eb;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
}

.round-icon em,
.home-bottom-nav em {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3e3e;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.round-icon em {
  top: -4px;
  right: -4px;
}

.home-search {
  position: relative;
  margin-top: 14px;
}

.home-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.01);
  color: var(--text);
  outline: none;
}

.home-search input::placeholder {
  color: #a3abb0;
}

.search-symbol {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #9ca4aa;
  font-size: 18px;
  transform: translateY(-52%);
}

.home-chips {
  display: flex;
  gap: 7px;
  margin: 12px -12px 0;
  padding: 0 12px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-chips::-webkit-scrollbar {
  display: none;
}

.home-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #2f3639;
  font-size: 13px;
  font-weight: 760;
}

.home-chip.active {
  border-color: var(--home-accent);
  background: var(--home-accent);
  color: #fff;
}

.today-strip {
  display: grid;
  grid-template-columns: 28px auto 1px auto auto 1fr;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #ffe1cf;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff6ef, #fffaf6);
  color: #3d3f42;
  font-size: 13px;
}

.today-strip b {
  white-space: nowrap;
  font-weight: 760;
}

.today-strip strong {
  color: var(--home-accent);
  font-size: 16px;
}

.today-strip i {
  width: 1px;
  height: 18px;
  background: #efd6c7;
}

.strip-icon,
.shield {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 820;
}

.strip-icon {
  background: #fff;
  color: var(--home-accent);
}

.shield {
  background: #ddf4e8;
  color: #20a05e;
}

.strip-arrow {
  justify-self: end;
  color: #8b8f94;
  font-size: 22px;
  line-height: 1;
}

.home-feed {
  display: grid;
  margin-top: 12px;
}

.home-listing {
  position: relative;
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 10px;
  min-height: 124px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f2;
  background: #fff;
}

.home-photo-wrap {
  position: relative;
  display: block;
  width: 136px;
  height: 106px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7ecef;
}

.home-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.home-listing-body {
  display: grid;
  align-content: start;
  min-width: 0;
  padding-right: 21px;
}

.home-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 6px;
}

.home-title {
  overflow: hidden;
  color: #20272b;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-time {
  color: #8c9499;
  font-size: 11px;
  white-space: nowrap;
}

.home-price {
  margin-top: 4px;
  color: var(--home-accent);
  font-size: 16px;
  font-weight: 860;
  line-height: 1.2;
}

.home-area {
  margin-top: 4px;
  color: #6d7479;
  font-size: 12px;
  line-height: 1.25;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.tag-row span {
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef1ff;
  color: #6370aa;
  font-size: 11px;
  font-weight: 720;
  line-height: 16px;
}

.verify-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: #4d6262;
  font-size: 12px;
}

.verify-row b {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1fb669;
  color: #fff;
  font-size: 10px;
}

.heart {
  position: absolute;
  right: 0;
  bottom: 18px;
  color: #a1a8ad;
  font-size: 24px;
  line-height: 1;
}

.home-bottom-nav {
  position: fixed;
  right: calc((100vw - min(390px, 100vw)) / 2);
  bottom: 0;
  left: calc((100vw - min(390px, 100vw)) / 2);
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 62px;
  padding: 5px 8px 7px;
  border-top: 1px solid #e8ebee;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.home-bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  color: #555e64;
  font-size: 11px;
  font-weight: 720;
}

.home-bottom-nav span {
  font-size: 19px;
  line-height: 1;
}

.home-bottom-nav .active {
  color: var(--home-accent);
}

.home-bottom-nav .home-publish span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  border-radius: 50%;
  background: var(--home-accent);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 8px 18px rgba(255, 106, 33, 0.28);
}

.home-bottom-nav em {
  top: 2px;
  right: 18px;
}

@media (min-width: 760px) {
  .app-shell {
    padding-bottom: 0;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    min-height: 70px;
    padding: 10px 32px;
  }

  .back-button {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 720;
  }

  .mobile-nav {
    display: none;
  }

  .app-main {
    padding: 28px 24px 48px;
  }

  .hero {
    grid-template-columns: 1fr 520px;
    align-items: center;
    min-height: 260px;
    padding: 28px 0;
  }

  .hero-copy h1 {
    font-size: 42px;
    max-width: 620px;
  }

  .search-panel {
    padding: 16px;
  }

  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .listing-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-card {
    grid-template-columns: 132px 1fr;
  }

  .detail-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .publish-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-page {
    max-width: 720px;
    margin: 0 auto;
  }

  .sticky-submit {
    bottom: 18px;
  }

  body[data-page="home"] .app-shell {
    padding: 36px 0;
  }

  body[data-page="home"] .app-main {
    width: 390px;
    min-height: auto;
  }

  .home-screen {
    min-height: 806px;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  }

  .home-bottom-nav {
    position: absolute;
    right: 0;
    left: 0;
  }
}


/* Auth UI v2 - DMV marketplace unified style */
body[data-page="auth"] {
  background: #e9edf3;
}

body[data-page="auth"] .app-main {
  width: min(430px, 100vw);
  min-height: 100vh;
  padding: 0;
  background: #fff;
}

.auth-v2-screen {
  display: grid;
  align-content: start;
  min-height: 100dvh;
  padding: 0 22px 34px;
  background:
    radial-gradient(circle at 50% -80px, rgba(255, 106, 33, 0.16), transparent 210px),
    #fff;
}

.auth-v2-topbar {
  min-height: 60px;
}

.auth-v2-topbar a {
  color: #64748b;
}

.auth-v2-card {
  display: grid;
  gap: 22px;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-brand-v2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #111827;
  font-size: 17px;
  font-weight: 860;
}

.auth-brand-v2 span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 34px;
  border-radius: 10px;
  background: var(--home-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255, 106, 33, 0.22);
}

.auth-title-block h1,
.auth-success-card h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.auth-title-block p,
.auth-success-card p {
  margin: 9px 0 0;
  color: #718096;
  font-size: 14px;
  line-height: 1.55;
}

.auth-v2-form {
  display: grid;
  gap: 14px;
}

.auth-input {
  display: grid;
  gap: 7px;
}

.auth-input > span {
  color: #334155;
  font-size: 13px;
  font-weight: 820;
}

.auth-input > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 50px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.auth-input > div:focus-within {
  border-color: var(--home-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 106, 33, 0.1);
}

.auth-input em {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.auth-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: #111827;
  outline: none;
  font-size: 15px;
  font-weight: 720;
}

.auth-input input::placeholder {
  color: #a0aec0;
  font-weight: 650;
}

.auth-input button,
.auth-row-between button,
.auth-switch button {
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.auth-input button {
  min-height: 48px;
  padding: 0 12px;
}

.auth-input button:disabled {
  color: #a0aec0;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 720;
}

.auth-row-between label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-row-between input,
.auth-v2-agreement input {
  accent-color: var(--home-accent);
}

.auth-v2-submit,
.auth-v2-secondary {
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}

.auth-v2-submit {
  margin-top: 6px;
  background: var(--home-accent);
  box-shadow: 0 12px 24px rgba(255, 106, 33, 0.2);
}

.auth-v2-secondary {
  border-color: #dfe7ef;
  background: #fff;
  color: #111827;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #94a3b8;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e2e8f0;
}

.auth-switch {
  margin: 4px 0 0;
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.auth-v2-agreement {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.auth-v2-agreement a {
  color: #2563eb;
}

.auth-error {
  padding: 11px 12px;
  border: 1px solid #ffd0c2;
  border-radius: 12px;
  background: #fff3ee;
  color: #b23416;
  font-size: 13px;
  font-weight: 800;
}

.auth-success-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 74px 0 0;
  text-align: center;
}

.auth-success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #e9f8f0;
  color: #16a064;
  font-size: 38px;
  font-weight: 950;
}

.auth-success-card .auth-v2-submit {
  width: 100%;
  margin-top: 18px;
}

@media (min-width: 760px) {
  body[data-page="auth"] .app-shell {
    padding: 36px 0;
  }

  body[data-page="auth"] .app-main,
  .auth-v2-screen {
    min-height: 860px;
  }

  .auth-v2-screen {
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
  }
}

/* =========================================================
   Auth module v3 — cleaned final overrides
   Scope: login / register / verification / reset password
   Notes: Keep home/category/publish/message styles unchanged.
   ========================================================= */
body[data-page="auth"] {
  background: #e9edf3 !important;
}

body[data-page="auth"] .app-shell {
  display: grid !important;
  min-height: 100vh;
  padding: 0 !important;
  place-items: start center;
}

body[data-page="auth"] .app-main {
  width: min(430px, 100vw) !important;
  min-height: 100vh;
  padding: 0 !important;
  background: #ffffff;
}

body[data-page="auth"] .topbar,
body[data-page="auth"] .mobile-nav {
  display: none !important;
}

.auth-v2-screen {
  min-height: 100dvh !important;
  padding: 22px 34px 42px !important;
  overflow-x: hidden;
  background: #ffffff !important;
}

.auth-v2-topbar {
  min-height: 44px !important;
  margin-bottom: 54px !important;
  padding: env(safe-area-inset-top) 0 0 !important;
}

.auth-v2-topbar .plain-back {
  width: 40px !important;
  height: 40px !important;
  margin-left: -10px !important;
  color: #061832 !important;
  font-size: 34px !important;
}

.auth-v2-topbar a {
  color: #061832 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.auth-v2-card {
  display: grid !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.auth-brand-v2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: fit-content !important;
  margin: 0 0 34px !important;
  color: #061832 !important;
}

.auth-brand-v2 span {
  display: grid !important;
  place-items: center !important;
  min-width: 64px !important;
  height: 42px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  background: #ff6a21 !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
}

.auth-brand-v2 b {
  color: #061832 !important;
  font-size: 23px !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.auth-title-block {
  margin-bottom: 44px !important;
}

.auth-title-block h1,
.auth-success-card h1 {
  margin: 0 !important;
  color: #061832 !important;
  font-size: clamp(34px, 8.5vw, 42px) !important;
  line-height: 1.22 !important;
  font-weight: 950 !important;
  letter-spacing: -0.045em !important;
}

.auth-title-block p,
.auth-success-card p {
  margin: 12px 0 0 !important;
  color: #6b7280 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

.auth-v2-form {
  display: grid !important;
  gap: 0 !important;
}

.auth-input {
  display: grid !important;
  gap: 10px !important;
  margin-bottom: 26px !important;
}

.auth-input > span {
  color: #061832 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.auth-input > div {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  align-items: center !important;
  min-height: 60px !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  overflow: hidden !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.auth-input > div:focus-within {
  border-color: #ff6a21 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255, 106, 33, 0.12) !important;
}

.auth-input em {
  display: grid !important;
  place-items: center !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.auth-input input {
  width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  border: 0 !important;
  background: transparent !important;
  color: #061832 !important;
  outline: none !important;
  font-size: 17px !important;
  font-weight: 760 !important;
}

.auth-input input::placeholder {
  color: #9fb0c6 !important;
  font-weight: 700 !important;
}

.auth-input button,
.auth-row-between button,
.auth-switch button {
  border: 0 !important;
  background: transparent !important;
  color: #2563eb !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.auth-input button {
  min-height: 58px !important;
  padding: 0 16px !important;
}

.auth-input button:disabled {
  color: #a7b3c2 !important;
  cursor: not-allowed !important;
}

.auth-row-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: -4px 0 34px !important;
  color: #526174 !important;
  font-size: 15px !important;
  font-weight: 780 !important;
}

.auth-row-between label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.auth-row-between input,
.auth-v2-agreement input {
  accent-color: #ff6a21 !important;
}

.auth-v2-submit,
.auth-v2-secondary {
  width: 100% !important;
  min-height: 60px !important;
  border-radius: 16px !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.auth-v2-submit {
  margin-top: 0 !important;
  border: 0 !important;
  background: #ff6a21 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(255, 106, 33, 0.18) !important;
}

.auth-v2-secondary {
  border: 1px solid #dbe4ef !important;
  background: #ffffff !important;
  color: #061832 !important;
  box-shadow: none !important;
}

.auth-divider {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 14px !important;
  align-items: center !important;
  margin: 30px 0 !important;
  color: #8b9aae !important;
  font-size: 15px !important;
}

.auth-divider::before,
.auth-divider::after {
  content: "" !important;
  height: 1px !important;
  background: #dfe7ef !important;
}

.auth-switch {
  margin: 10px 0 0 !important;
  color: #64748b !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.auth-v2-agreement {
  margin: -4px 0 26px !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.auth-v2-agreement a {
  color: #2563eb !important;
}

.auth-error {
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border: 1px solid #ffd0c2 !important;
  border-radius: 14px !important;
  background: #fff3ee !important;
  color: #b23416 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.45 !important;
}

.auth-success-card {
  display: grid !important;
  justify-items: center !important;
  gap: 14px !important;
  padding: 96px 0 0 !important;
  text-align: center !important;
}

.auth-success-icon {
  display: grid !important;
  place-items: center !important;
  width: 78px !important;
  height: 78px !important;
  margin-bottom: 14px !important;
  border-radius: 50% !important;
  background: #e9f8f0 !important;
  color: #16a064 !important;
  font-size: 40px !important;
  font-weight: 950 !important;
}

.auth-success-card .auth-v2-submit {
  margin-top: 26px !important;
}

@media (max-width: 390px) {
  .auth-v2-screen {
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .auth-title-block h1,
  .auth-success-card h1 {
    font-size: 33px !important;
  }
}

@media (min-width: 760px) {
  body[data-page="auth"] .app-shell {
    padding: 36px 0 !important;
  }

  body[data-page="auth"] .app-main,
  .auth-v2-screen {
    min-height: 860px !important;
  }

  .auth-v2-screen {
    border-radius: 18px !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2) !important;
  }
}

/* V5 admin batch actions and full-width home */
body[data-page="home"] {
  background: #ffffff !important;
}

body[data-page="home"] .app-shell {
  display: block !important;
  min-height: 100vh !important;
  padding: 0 !important;
  background: #ffffff !important;
}

body[data-page="home"] .app-main {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

body[data-page="home"] .home-screen {
  width: 100% !important;
  min-height: 100vh !important;
  padding: 24px clamp(16px, 4vw, 40px) 88px !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body[data-page="home"] .home-header,
body[data-page="home"] .home-search,
body[data-page="home"] .home-chips,
body[data-page="home"] .home-feed {
  width: min(720px, 100%) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body[data-page="home"] .home-header {
  grid-template-columns: 1fr !important;
}

.location-pill,
.today-strip {
  display: none !important;
}

body[data-page="home"] .home-feed {
  margin-top: 18px !important;
}

.admin-bulk-bar {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e2e9f1;
  border-radius: 12px;
  background: #ffffff;
}

.admin-bulk-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #233044;
  font-size: 14px;
  font-weight: 850;
}

.admin-bulk-bar input,
.admin-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--home-accent);
}

.admin-bulk-bar > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-bulk-bar button {
  width: 100%;
  min-height: 38px;
}

.admin-card {
  position: relative;
}

.admin-select {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e9f1;
  border-radius: 10px;
  background: #f8fafc;
  color: #233044;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 520px) {
  .admin-bulk-bar > div {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  body[data-page="home"] .app-shell {
    padding: 0 !important;
  }

  body[data-page="home"] .home-screen {
    min-height: 100vh !important;
  }
}

/* V6 multi-photo posting, feedback management, Huaju brand */
.brand-mark {
  width: auto !important;
  min-width: 46px !important;
  padding: 0 9px !important;
  font-size: 13px !important;
}

.photo-strip.multi {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  overflow: visible !important;
}

.photo-strip.multi .upload-tile.cover {
  min-height: 88px !important;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}

.photo-preview-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #e6edf3;
}

.detail-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-gallery .detail-photo:first-child {
  grid-column: 1 / -1;
}

.detail-gallery .detail-photo.secondary {
  aspect-ratio: 1 / 1;
}

.feedback-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e9f1;
  border-radius: 12px;
  background: #ffffff;
}

.feedback-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-card b {
  color: #16212c;
  font-size: 14px;
}

.feedback-card span {
  color: #7a8796;
  font-size: 12px;
  white-space: nowrap;
}

.feedback-card p {
  margin: 0;
  color: #233044;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
