/* Deferred route styles — loaded after first paint via DeferredGlobalStyles */

/* Landlord / Tenant split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.split-section.split-single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search .hero-split-section {
  margin: 1.35rem auto 0;
  max-width: 960px;
  width: 100%;
  text-align: left;
  align-items: stretch;
}
.hero-search .hero-split-section .split-card {
  height: 100%;
}
.hero-search .hero-split-section .split-card h2 {
  min-height: 3.75rem;
  line-height: 1.3;
}
.hero-search .hero-split-section .split-card > p {
  flex: 1;
  min-height: 2.95rem;
  line-height: 1.55;
}
.hero-search .hero-split-section .split-card-cta-top {
  align-self: stretch;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  border: none;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
  margin: 0.25rem 0 1.1rem;
}
.hero-search .hero-split-section .split-card-cta-primary {
  background: var(--success-strong);
  color: white;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28);
}
.hero-search .hero-split-section .split-card-cta-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .hero-search .hero-split-section .split-card-cta-primary:hover {
    filter: brightness(0.92);
  }
  .hero-search .hero-split-section .split-card-cta-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
  }
}
.hero-search .hero-split-section .check-list {
  margin-bottom: 0;
}
.split-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.85rem;
  box-shadow: 0 8px 28px var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.split-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.split-card h2 {
  font-family: var(--font-display), sans-serif;
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.split-card > p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.split-card-cta-top {
  align-self: flex-start;
  margin: 0.25rem 0 1.1rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.check-list li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
}
.check-list li::before {
  content: 'âś“';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}


/* Recently listed carousel */
.carousel-section {
  margin-bottom: 2.75rem;
  padding-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.carousel-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.35rem 0.15rem 0.85rem;
  margin: 0;
  max-width: 100%;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.carousel-row::-webkit-scrollbar { height: 6px; }
.carousel-row .listing-card {
  flex: 0 0 272px;
  scroll-snap-align: start;
}


/* Profiles & avatars */
.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink-soft);
}
.avatar-large { width: 96px; height: 96px; font-size: 2rem; box-shadow: 0 4px 14px var(--shadow); }

.avatar-edit-wrap { position: relative; flex-shrink: 0; }
.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid var(--card-bg);
  transition: filter 0.15s ease;
}
.avatar-edit-badge:hover { filter: brightness(0.92); }
.avatar-sm { width: 36px; height: 36px; font-size: 1rem; }

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-page-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 2.25rem 2.25rem;
  box-shadow: 0 20px 44px var(--shadow);
}
@media (max-width: 640px) {
  .profile-page-wrap { padding: 1.5rem; border-radius: 12px; }
}

/* Tighter section rhythm than the listing form — the profile page stacks
   several fieldsets and felt long, so this pulls padding/gaps in. */
.profile-page-wrap .listing-form { gap: 1.1rem; }
.profile-page-wrap .form-section { padding-top: 1.25rem; gap: 0.75rem; }
.profile-page-wrap .form-section:first-of-type { padding-top: 0; }

.profile-page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}
.profile-preview-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.profile-preview-link:hover { text-decoration: underline; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--card-bg);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shadow) 40%, transparent);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
[data-theme="dark"] .upload-btn { color: var(--accent); }
.upload-btn svg {
  display: block;
  flex-shrink: 0;
}
.upload-btn:hover {
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--card-bg));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 16%, transparent);
}
.upload-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 35%, transparent);
}
.profile-edit-page--wizard .upload-btn {
  min-width: 10.5rem;
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--card-bg));
}
.upload-hint {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.profile-intro { color: var(--ink-soft); max-width: 560px; margin: -0.5rem 0 1.5rem; }
.phone-verify-box { display: flex; flex-direction: column; gap: 0.5rem; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.profile-header h1 { margin: 0 0 0.3rem; }
.role-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.verify-badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.verify-badge {
  display: inline-block;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin: 0.3rem 0.4rem 0 0;
}
.profile-header .member-since { margin: 0.4rem 0 0; }
.profile-bio { color: var(--ink); max-width: 640px; line-height: 1.6; }
.profile-bio-empty { color: var(--ink-soft); font-style: italic; }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}
.social-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.social-link:hover { text-decoration: underline; }

.avatar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.profile-prompt {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--ink);
  max-width: 480px;
}
.profile-prompt p { margin: 0 0 0.75rem; }


/* About page */
.about-page {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2rem, 5vw, 3rem);
}

.about-intro {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.about-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.about-lead {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}
.about-highlights {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0.15rem 0 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.about-highlights::-webkit-scrollbar {
  display: none;
}
.about-highlights li {
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  white-space: nowrap;
}
.about-highlights li + li::before {
  content: '\00b7';
  margin: 0 0.55rem;
  color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
  font-weight: 400;
}

.about-principles {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.about-who {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.about-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-who p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-principles p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-principles p:last-child {
  margin-bottom: 0;
}
.about-ban-note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--error) 6%, var(--paper-alt));
  border: 1px solid color-mix(in srgb, var(--error) 20%, var(--line));
}

.about-block {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.about-block-label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.about-prose p:last-child {
  margin-bottom: 0;
}

.about-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.about-goal h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about-goal p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.about-goal p:last-child {
  margin-bottom: 0;
}

.about-quote {
  margin: 0 0 2rem;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
}
.about-quote p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-benefits-intro {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.about-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.about-benefits-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
.about-benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.about-benefits-outro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.about-cta {
  padding-top: 2rem;
  margin-top: 0.5rem;
  text-align: center;
}
.about-cta-text {
  margin: 0 auto 1rem;
  max-width: 420px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 0.72rem 1.25rem;
  border-radius: var(--btn-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.about-cta-btn-primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}
.about-cta-btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.about-cta-btn-secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.about-cta-btn-secondary:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}


/* About / How it works — minimal card layout */
.about-intro--minimal {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
  border-bottom: none;
}
.about-intro--minimal .about-lead {
  margin-bottom: 0;
}
.about-block--minimal {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.about-block--minimal:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-section-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.about-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--paper-alt);
}
.about-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.how-it-works-page {
  max-width: 42rem;
}

.how-it-works-page--minimal {
  gap: 2.5rem;
}

.hiw-hero .about-kicker {
  color: var(--accent);
}

.hiw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hiw-badges li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.hiw-section-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.hiw-choice-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.hiw-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.hiw-choice-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hiw-flow-section--anchored {
  scroll-margin-top: calc(var(--header-bar-h, 3.25rem) + 1rem);
}
.hiw-jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hiw-jump-card {
  text-decoration: none;
  color: inherit;
}
.hiw-audience-sections {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-top: 0.5rem;
}
.hiw-audience-section {
  padding: 1.35rem 1.15rem 1.15rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 40%, transparent);
  transition:
    border-color 0.2s ease-out,
    box-shadow 0.2s ease-out;
}
.hiw-audience-section.is-targeted {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
}
.hiw-audience-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.hiw-audience-header-icon {
  width: 2.5rem;
  height: 2.5rem;
}
.hiw-audience-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.hiw-audience-title {
  margin: 0;
  font-size: 1.0625rem;
}
.hiw-audience-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hiw-audience-section--page {
  margin-top: 0.5rem;
}
.hiw-audience-switcher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.hiw-audience-switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hiw-audience-switcher-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 50%, transparent);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.hiw-audience-switcher-link.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--paper-alt));
}
@media (hover: hover) and (pointer: fine) {
  .hiw-audience-switcher-link:not(.is-active):hover {
    color: var(--ink);
    background: var(--paper-alt);
  }
}
.hiw-audience-switcher-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark, var(--accent));
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .hiw-audience-switcher-all:hover {
    text-decoration: underline;
  }
}
.hiw-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 55%, transparent);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hiw-choice-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.hiw-choice-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--paper-alt));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hiw-choice-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.hiw-choice-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.hiw-choice-body strong {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.hiw-choice-body span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.hiw-flow-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.hiw-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 70%, transparent);
}

.hiw-segment-btn {
  padding: 0.62rem 0.85rem;
  border: none;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hiw-segment-btn:hover {
  color: var(--ink);
}

.hiw-segment-btn.is-active {
  color: var(--ink);
  background: var(--card-bg);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.hiw-flow-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hiw-flow-title {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 45%, transparent);
}

.hiw-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.hiw-step-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hiw-step-body p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hiw-pm-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.hiw-pm-section .about-kicker {
  margin: 0;
}

.hiw-pm-lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hiw-pm-fees,
.hiw-pm-option {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 55%, transparent);
}

.hiw-pm-fees strong {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hiw-pm-fees p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hiw-pm-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.hiw-pm-option {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hiw-pm-option h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.hiw-pm-option p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hiw-pm-cta {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.hiw-private-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}

.hiw-private-section.about-minimal-section {
  padding-top: 0;
  border-top: none;
  margin-top: 0.5rem;
}

.hiw-private-section .about-kicker {
  margin: 0;
}

.hiw-private-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.hiw-private-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 55%, transparent);
}

.hiw-private-card--default {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--paper-alt));
}

.hiw-private-card-badge {
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.hiw-private-card h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.hiw-private-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hiw-private-roles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hiw-private-roles > .hiw-section-title {
  font-size: 0.9375rem;
}

.hiw-private-note {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--paper-alt);
}

.hiw-private-note p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hiw-private-cta {
  align-self: flex-start;
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .hiw-choice-grid,
  .hiw-pm-options,
  .hiw-private-cards {
    grid-template-columns: 1fr;
  }

  .hiw-pm-cta,
  .hiw-private-cta {
    width: 100%;
  }

  .hiw-segment-btn {
    font-size: 0.78rem;
    padding: 0.58rem 0.65rem;
  }
}


/* Contacts page */
.contacts-page--minimal {
  max-width: 44rem;
  gap: 2.25rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--line));
  background: color-mix(in srgb, var(--card-bg) 72%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 55%, transparent);
}

.contacts-card-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, #ffffff 6%, var(--line));
  background: color-mix(in srgb, var(--paper-alt) 35%, transparent);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.contacts-link:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, #ffffff 10%);
  background: color-mix(in srgb, var(--accent) 8%, var(--paper-alt));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
  transform: translateY(-1px);
}

.contacts-link-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.contacts-link-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.contacts-link-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contacts-link-value {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  word-break: break-word;
}

@media (max-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-link:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .site-main:has(.contacts-page--minimal) {
    padding-block: 0.55rem;
    padding-bottom: max(0.55rem, var(--safe-bottom));
    min-height: calc(100dvh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .contacts-page.contacts-page--minimal {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0.65rem;
    padding: 0;
    overflow: hidden;
  }

  .contacts-page .contacts-hero {
    flex-shrink: 0;
    gap: 0.32rem;
    padding-bottom: 0;
  }

  .contacts-page .about-kicker {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }

  .contacts-page .about-title {
    font-size: clamp(1.15rem, 4.8vw + 0.35rem, 1.4rem);
    line-height: 1.2;
  }

  .contacts-page .about-lead {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .contacts-grid {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
  }

  .contacts-card {
    padding: 0.7rem 0.75rem;
    gap: 0.45rem;
    border-radius: 14px;
    min-height: 0;
  }

  .contacts-card-title {
    font-size: 0.8125rem;
  }

  .contacts-list {
    gap: 0.32rem;
  }

  .contacts-list--direct .contacts-link {
    min-height: var(--touch-min);
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
  }

  .contacts-list--direct .contacts-link-value {
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
  }

  .contacts-card--social {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .contacts-list--social {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 0.35rem;
    align-content: stretch;
  }

  .contacts-list--social li {
    display: flex;
    min-height: 0;
  }

  .contacts-list--social .contacts-link {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    min-height: 0;
    height: 100%;
    padding: 0.55rem 0.35rem;
    border-radius: 12px;
  }

  .contacts-list--social .contacts-link-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
  }

  .contacts-list--social .contacts-link-body {
    align-items: center;
    gap: 0;
  }

  .contacts-list--social .contacts-link-label {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }

  .contacts-list--social .contacts-link-value {
    display: none;
  }

  .contacts-link:active {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    background: color-mix(in srgb, var(--accent) 10%, var(--paper-alt));
  }

  .contacts-link--whatsapp .contacts-link-icon {
    color: #22c55e;
    background: color-mix(in srgb, #22c55e 14%, transparent);
    border-color: color-mix(in srgb, #22c55e 28%, var(--line));
  }
}

@media (max-width: 380px) {
  .contacts-page .about-lead {
    font-size: 0.78rem;
  }

  .contacts-list--direct .contacts-link-value {
    font-size: 0.875rem;
  }

  .contacts-list--social .contacts-link-label {
    font-size: 0.58rem;
  }
}

.pm-page {
  max-width: 72rem;
  gap: 2.35rem;
}

.pm-page--simple {
  max-width: 40rem;
  gap: 1.75rem;
}

.pm-simple-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pm-simple-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
}

.pm-simple-steps strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.pm-simple-steps span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-simple-offer {
  scroll-margin-top: 5.5rem;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--card-bg);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.pm-simple-offer-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.pm-simple-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.pm-simple-price {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.pm-simple-period {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pm-simple-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-simple-included {
  margin: 0 0 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 55%, transparent);
}

.pm-simple-included summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.pm-simple-included summary::-webkit-details-marker {
  display: none;
}

.pm-simple-included ul {
  margin: 0;
  padding: 0 0.95rem 0.85rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pm-simple-included li {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-simple-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.pm-simple-contact {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: center;
}

.pm-simple-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pm-simple-contact a:hover {
  text-decoration: underline;
}

.pm-lead-form--simple {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pm-lead-form-grid--simple {
  margin-bottom: 0.85rem;
}

.pm-hero {
  max-width: 40rem;
}

.pm-hero-slogan {
  margin: 0.5rem 0 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.05rem, 1.6vw + 0.55rem, 1.25rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--accent);
}

.pm-hero-prices {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.pm-checkout-section {
  scroll-margin-top: 5.5rem;
}

.pm-checkout-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.pm-checkout-summary {
  padding: 1.2rem 1.2rem 1.1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--card-bg)) 0%, var(--card-bg) 42%);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.pm-checkout-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pm-checkout-price {
  margin: 0.35rem 0 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(2rem, 4vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.pm-checkout-period {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pm-checkout-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-checkout-included {
  margin: 0 0 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}

.pm-checkout-included-label {
  margin: 0 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.pm-checkout-included ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pm-checkout-included li {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-checkout-secure {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--card-bg));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-guarantees--compact {
  margin: 0;
  text-align: left;
  font-size: 0.8125rem;
}

.pm-checkout-form-wrap {
  min-width: 0;
}

.pm-checkout-form-card {
  height: 100%;
  padding: 1.15rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.pm-checkout-form-head {
  margin-bottom: 1rem;
}

.pm-checkout-form-step {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pm-checkout-form-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.pm-checkout-form-lead {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-checkout-form-price-mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  font-family: var(--font-display), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.pm-checkout-form-price-note {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pm-lead-form--checkout {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.pm-lead-form-actions--pay {
  align-items: stretch;
  width: 100%;
}

.pm-pay-btn {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 750;
  justify-content: center;
}

.pm-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.pm-principle {
  padding: 1.05rem 1.15rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--card-bg));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.pm-principle-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pm-principle-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.pm-section-title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw + 0.6rem, 1.35rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pm-section-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pm-guarantees {
  margin: 1.15rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--card-bg));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-soft);
}

.pm-packages {
  display: grid;
  grid-template-columns: minmax(0, 36rem);
  justify-content: center;
  gap: 0.9rem;
  align-items: start;
}

.pm-package {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  height: auto;
  gap: 0;
  padding: 1.2rem 1.2rem 1.15rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #ffffff 10%, var(--line));
  background: color-mix(in srgb, var(--card-bg) 82%, transparent);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--shadow) 45%, transparent);
  box-sizing: border-box;
}

.pm-package--featured {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--card-bg)) 0%, var(--card-bg) 42%);
  box-shadow:
    0 10px 32px color-mix(in srgb, var(--shadow) 45%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pm-package-badge-slot {
  display: flex;
  align-items: center;
  min-height: 1.55rem;
  margin: 0 0 0.45rem;
}

.pm-package-badge {
  margin: 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
}

.pm-package-name {
  margin: 0;
  min-height: 2.6em;
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
}

.pm-package-price {
  margin: 0.2rem 0 0;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.65rem, 3vw + 0.5rem, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--accent);
}

.pm-package-period {
  margin: 0.15rem 0 0;
  min-height: 2.4em;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.pm-package-tagline {
  margin: 0.4rem 0 0;
  flex: 1 1 auto;
  min-height: 6.5em;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-package-details {
  margin: 0.55rem 0 0;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 55%, transparent);
}

.pm-package-included {
  margin: 0;
  padding: 0.7rem 0.9rem 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.pm-package-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.pm-package-details summary::-webkit-details-marker {
  display: none;
}

.pm-package-details summary::after {
  content: 'â–ľ';
  float: right;
  color: var(--ink-soft);
  font-weight: 500;
}

.pm-package-details[open] summary::after {
  content: 'â–´';
}

.pm-package-details ul {
  margin: 0;
  padding: 0 0.95rem 0.85rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pm-package-details li {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-package-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.pm-package-cta {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.pm-package-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.pm-package-secondary:hover {
  color: var(--accent);
}

.pm-how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.pm-how-steps li {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #ffffff 8%, var(--line));
  background: var(--card-bg);
}

.pm-how-steps h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pm-how-steps p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pm-bottom-lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pm-lead-section {
  margin: 2.25rem 0;
  scroll-margin-top: 5.5rem;
}
.pm-lead-form {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.15rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px var(--shadow);
}
.pm-lead-form-loading {
  min-height: 14rem;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--line) 40%, transparent) 0%,
    color-mix(in srgb, var(--line) 18%, transparent) 50%,
    color-mix(in srgb, var(--line) 40%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: pm-lead-shimmer 1.2s ease-in-out infinite;
}
@keyframes pm-lead-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.pm-lead-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.pm-lead-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pm-lead-field-full {
  grid-column: 1 / -1;
}
.pm-lead-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pm-lead-input {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.65rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pm-lead-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 45%, transparent);
}
.pm-lead-textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.pm-lead-error {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 22%, var(--line));
  color: var(--error);
  font-size: 0.88rem;
}
.pm-lead-form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
}
.pm-lead-form-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pm-lead-checkout-notice {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--card-bg));
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}
.pm-lead-form-success {
  text-align: center;
  padding: 1.5rem 1.15rem;
}
.pm-lead-form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  font-size: 1.15rem;
  font-weight: 800;
}
.pm-lead-form-success-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}
.pm-lead-form-success-text {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.pm-lead-form-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .pm-lead-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Legacy about styles — contact page */
.about-hero { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.about-hero h1 { margin: 0.5rem 0 1rem; }
.about-hero p { color: var(--ink-soft); margin: 0 0 1rem; }

.about-tagline {
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 3rem;
}

.contact-card {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.contact-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-value {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-value:hover { color: var(--accent); }
.contact-priority {
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.why-us-section { margin-bottom: 1rem; }
.why-us-intro { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 2rem; }
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem 1.5rem;
  max-width: 780px;
  margin: 0 auto 2rem;
}
.why-us-item {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink);
}
.why-us-item::before {
  content: 'âś“';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.why-us-outro { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 1rem; }


/* Photo showcase ("how it works") */
.showcase-section {
  margin: 0 var(--bleed-right) 2.25rem var(--bleed-left);
  padding: 2rem clamp(1.25rem, 4vw, 2rem) 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 680px 320px at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    radial-gradient(ellipse 520px 280px at 100% 100%, color-mix(in srgb, var(--success) 8%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
}
.showcase-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}
.showcase-head .eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
}
.showcase-head .section-title {
  margin: 0 0 0.65rem;
}
.showcase-sub {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.showcase-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.showcase-trust li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--line));
  background: color-mix(in srgb, var(--success-soft) 55%, var(--card-bg));
  color: var(--success-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .showcase-trust li {
  color: var(--success);
}
.showcase-trust-warn {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line)) !important;
  background: color-mix(in srgb, #fef3c7 55%, var(--card-bg)) !important;
  color: #b45309 !important;
}
[data-theme="dark"] .showcase-trust-warn {
  color: #fbbf24 !important;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: showcase-step;
}
.showcase-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--shadow) 80%, transparent);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--shadow) 90%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.showcase-card-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 12%, var(--paper-alt)),
    var(--paper-alt)
  );
  border-bottom: 1px solid var(--line);
}
.showcase-step-num {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shadow) 65%, transparent);
  flex-shrink: 0;
}
[data-theme="dark"] .showcase-step-num {
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  color: var(--accent);
}
.showcase-card-badge {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shadow) 55%, transparent);
  max-width: calc(100% - 2.75rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
}
.showcase-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.showcase-card-body h3 {
  font-family: var(--font-display), sans-serif;
  font-size: 0.98rem;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.showcase-card-body p {
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.5;
}
.showcase-card-accent {
  border-color: color-mix(in srgb, #f59e0b 28%, var(--line));
}
.showcase-card-accent:hover {
  border-color: color-mix(in srgb, #f59e0b 50%, var(--line));
}
.showcase-card-accent .showcase-card-badge {
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
}
[data-theme="dark"] .showcase-card-accent .showcase-card-badge {
  background: rgba(120, 53, 15, 0.85);
  color: #fde68a;
}
.showcase-card-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: var(--touch-min);
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px color-mix(in srgb, #f59e0b 35%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.showcase-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, #f59e0b 45%, transparent);
}

@media (min-width: 1180px) {
  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 639px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .showcase-card {
    flex-direction: column;
    align-items: stretch;
  }
  .showcase-step-num {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }
  .showcase-card-badge {
    display: inline-flex;
    max-width: calc(100% - 2.5rem);
  }
  .showcase-card-body {
    padding: 1rem 1.05rem 1.1rem;
    justify-content: flex-start;
    gap: 0.45rem;
  }
  .showcase-card-body h3 {
    font-size: 1rem;
    line-height: 1.35;
  }
  .showcase-card-body p {
    font-size: 0.86rem;
    line-height: 1.55;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}


/* Listing wizard — nav sits at page bottom (not fixed overlay) */
main:has(.listing-wizard-shell) {
  padding-bottom: 0;
}


/* Onboarding / welcome after signup */
.onboarding-page {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.onboarding-hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  margin: var(--bleed-y) var(--bleed-right) 1.25rem var(--bleed-left);
  background:
    radial-gradient(ellipse 480px 240px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 420px 220px at 95% 110%, color-mix(in srgb, var(--success) 10%, transparent), transparent 70%),
    var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.onboarding-hero h1 {
  margin: 0 auto 0.45rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  max-width: 520px;
}
.onboarding-subtitle {
  margin: 0 auto;
  max-width: 480px;
  color: var(--ink-soft);
}
.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.onboarding-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.onboarding-step-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--shadow) 35%, transparent);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.onboarding-step-card.active {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}
.onboarding-step-card.done {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
}
.onboarding-step-card.locked {
  opacity: 0.55;
}
.onboarding-step-badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.onboarding-step-card.active .onboarding-step-badge {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-dark);
}
.onboarding-step-card.done .onboarding-step-badge {
  background: var(--success-strong);
  border-color: var(--success-strong);
  color: white;
}
.onboarding-step-body h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.onboarding-step-body p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}
.onboarding-step-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
}
.onboarding-step-cta.btn-green { border: none; }
.onboarding-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.onboarding-continue {
  width: 100%;
  min-height: 48px;
}

.listing-wizard-panel-step4 {
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.25rem;
}
.wizard-pricing-row {
  gap: 0.85rem;
}
.wizard-preview-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.wizard-preview-photo .photo-protected-frame {
  position: absolute;
  inset: 0;
}
.wizard-ownership-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

@media (min-width: 961px) {
  .auth-login-block {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .auth-login-trust {
    display: none;
  }
}

@media (max-width: 960px) {
  .auth-shell {
    height: auto;
    min-height: var(--chat-frame-height);
    max-height: none;
    overflow: visible;
  }
  .auth-shell-main {
    padding:
      1.25rem max(1rem, var(--safe-left))
      calc(2rem + var(--safe-bottom))
      max(1rem, var(--safe-right));
    background: var(--paper);
    overflow: visible;
    min-height: auto;
  }
  .auth-panel {
    margin-block: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .auth-login-switch {
    margin-top: 1rem;
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-hero {
    margin-left: var(--bleed-left);
    margin-right: var(--bleed-right);
  }
}

@media (max-width: 640px) {
  .auth-shell {
    margin: 0;
  }
  .auth-stepper-head {
    margin-bottom: 0.7rem;
  }
  .auth-stepper-kicker {
    font-size: 0.68rem;
  }
  .auth-stepper-title {
    font-size: 0.98rem;
  }
  .auth-stepper-dot {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }
  .auth-stepper-step:not(:last-child)::before {
    top: 14px;
  }
  .auth-stepper-label {
    display: none;
  }
  .auth-wizard-nav-back,
  .auth-wizard-nav-next {
    min-height: var(--touch-min);
    font-size: 0.875rem;
  }
  .terms-agree-row input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
  }
}


/* Listing detail page */
.listing-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-bottom: 2.5rem;
  min-width: 0;
  box-sizing: border-box;
}
.listing-layout,
.listing-main,
.listing-details,
.listing-details-grid,
.listing-details-col {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.listing-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.listing-back-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.listing-back-link:hover {
  color: var(--ink);
}

.listing-not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}
.listing-not-found h1 {
  margin: 0 0 1.25rem;
}

.listing-gallery-wrap {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.listing-gallery-wrap .photo-gallery {
  margin: 0;
}
.listing-gallery-wrap .gallery-carousel-wrap {
  max-width: 100%;
}
.listing-gallery-wrap .gallery-stage {
  max-width: 100%;
}
.listing-gallery-wrap .gallery-carousel-meta {
  max-width: 100%;
  margin-top: 0.55rem;
}

.listing-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.listing-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.listing-head-main {
  flex: 1;
  min-width: 0;
}
.share-menu-wrap-listing {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.15rem;
}
.share-listing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}
.share-listing-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.share-listing-btn-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (hover: hover) and (pointer: fine) {
  .share-listing-btn:hover {
    border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 4%, transparent);
  }
}
.share-listing-btn[aria-expanded='true'] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: none;
}
.share-menu-listing {
  min-width: 11.5rem;
}
@media (max-width: 640px) {
  .listing-head-top {
    align-items: flex-start;
    gap: 0.65rem 0.75rem;
  }
  .share-menu-wrap-listing {
    width: auto;
    margin-top: 0.1rem;
  }
  .share-listing-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
  .share-menu-listing {
    right: 0;
    left: auto;
    width: min(calc(100vw - 2rem), 13rem);
  }
}
.listing-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.listing-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.listing-location svg {
  flex-shrink: 0;
  opacity: 0.55;
}
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.listing-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.375rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 50%, var(--card-bg));
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}
.listing-meta-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.listing-meta-icon svg {
  display: block;
}
.listing-meta-text {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
.listing-meta-text strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.listing-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.listing-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
}
.listing-highlight-allowed {
  color: var(--success-strong);
  background: color-mix(in srgb, var(--success-soft) 85%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--line));
}
[data-theme="dark"] .listing-highlight-allowed {
  color: var(--success);
  background: color-mix(in srgb, var(--success-soft) 35%, var(--paper-alt));
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
}
.listing-highlight-denied {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 25%, var(--line));
}
[data-theme="dark"] .listing-highlight-denied {
  background: color-mix(in srgb, var(--error) 12%, var(--paper-alt));
  border-color: color-mix(in srgb, var(--error) 32%, var(--line));
}
.listing-highlight-icon {
  font-size: 0.8125rem;
  line-height: 1;
}
.listing-highlight-label {
  white-space: nowrap;
}

.listing-trust-strip {
  position: relative;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem 0.9rem 0.95rem;
  border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, #fffbeb 55%, var(--card-bg));
  overflow: visible;
}
.listing-trust-strip::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  pointer-events: none;
}
[data-theme="dark"] .listing-trust-strip {
  background: color-mix(in srgb, #78350f 22%, var(--card-bg));
  border-color: color-mix(in srgb, #f59e0b 22%, var(--line));
}
.listing-trust-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  min-width: 0;
}
.listing-trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in srgb, #ef4444 12%, var(--card-bg));
  border: 1px solid color-mix(in srgb, #ef4444 22%, var(--line));
  color: #dc2626;
}
[data-theme="dark"] .listing-trust-icon {
  background: color-mix(in srgb, #ef4444 18%, var(--paper-alt));
  color: #f87171;
}
.listing-trust-body {
  flex: 1;
  min-width: 0;
}
.listing-trust-title {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}
.listing-trust-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}
.listing-trust-cta {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  padding-left: 0;
}
.listing-trust-report-btn.agency-report-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 6.75rem;
  margin: 0;
  padding: 0.5rem 0.95rem;
  border-radius: var(--btn-radius);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #b91c1c;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, #ef4444 32%, var(--line));
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.listing-trust-report-btn.agency-report-trigger:hover {
  color: #991b1b;
  background: #fef2f2;
  border-color: color-mix(in srgb, #ef4444 45%, var(--line));
  transform: none;
  box-shadow: none;
}
[data-theme="dark"] .listing-trust-report-btn.agency-report-trigger {
  color: #fca5a5;
  background: color-mix(in srgb, #ef4444 10%, var(--paper-alt));
  border-color: color-mix(in srgb, #f87171 35%, var(--line));
}
[data-theme="dark"] .listing-trust-report-btn.agency-report-trigger:hover {
  color: #fecaca;
  background: color-mix(in srgb, #ef4444 18%, var(--paper-alt));
}
.listing-trust-strip:has(.report-panel),
.listing-trust-strip:has(.report-success-card) {
  padding-bottom: 1rem;
}
.listing-trust-strip:has(.report-panel) .listing-trust-inner,
.listing-trust-strip:has(.report-success-card) .listing-trust-inner {
  flex-wrap: wrap;
  align-items: flex-start;
}
.listing-trust-strip:has(.report-panel) .listing-trust-cta,
.listing-trust-strip:has(.report-success-card) .listing-trust-cta {
  width: 100%;
  padding-left: 0;
}
.listing-trust-strip:has(.report-panel) .listing-trust-report-btn,
.listing-trust-strip:has(.report-success-card) .listing-trust-report-btn {
  width: 100%;
  min-width: 0;
}
.listing-trust-strip .report-panel,
.listing-trust-strip .report-success-card {
  margin-top: 0.75rem;
  margin-left: 0;
}

.listing-layout {
  display: block;
}
.listing-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

section.listing-block {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
section.listing-block h2 {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
section.listing-block p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.listing-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
}
.listing-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.listing-details-col {
  min-width: 0;
}
.listing-details-contact {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.listing-details-contact .listing-contact-inline {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.listing-details-contact .listing-contact-footer {
  margin-top: auto;
}
.listing-specs {
  padding: 0;
  margin: 0;
  border: none;
}
.listing-details > .listing-spec-group,
.listing-details-specs > .listing-spec-group,
.listing-specs > .listing-spec-group {
  border-top: 1px solid var(--line);
  padding: 0 1rem;
}
.listing-details-specs > .listing-spec-group:first-child,
.listing-details-specs .listing-specs > .listing-spec-group:first-child,
.listing-details > .listing-spec-group:first-child,
.listing-specs > .listing-spec-group:first-child {
  border-top: none;
}
.listing-details .listing-contact-inline {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.listing-details .listing-contact-top,
.listing-details .listing-owner-block,
.listing-details .listing-contact-form,
.listing-details .listing-contact-actions,
.listing-details .listing-contact-guest,
.listing-details .listing-contact-owner,
.listing-details .listing-contact-prompt,
.listing-details .listing-contact-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}
.listing-spec-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.listing-spec-summary::-webkit-details-marker {
  display: none;
}
.listing-spec-summary::marker {
  content: '';
}
.listing-spec-summary-title {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
}
.listing-spec-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  transition: transform 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
.listing-spec-group[open] > .listing-spec-summary .listing-spec-chevron {
  transform: rotate(180deg);
  background: color-mix(in srgb, var(--ink) 8%, var(--paper-alt));
}
@media (hover: hover) and (pointer: fine) {
  .listing-spec-summary:hover .listing-spec-summary-title {
    color: var(--ink);
  }
  .listing-spec-summary:hover .listing-spec-chevron {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 6%, var(--paper-alt));
  }
}
.listing-spec-group .listing-spec-list {
  padding-bottom: 0.85rem;
}
.listing-spec-list {
  display: flex;
  flex-direction: column;
}
.listing-spec-list-prose p {
  margin: 0;
  padding: 0 0 0.15rem;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
.listing-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.listing-spec-row:last-child {
  border-bottom: none;
}
.listing-spec-row span {
  color: var(--ink-soft);
  font-weight: 400;
}
.listing-spec-row strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.listing-sidebar {
  position: sticky;
  top: 5rem;
}
.listing-contact-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.listing-contact-top {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--line);
}
.listing-contact-status {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-contact-price {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.listing-contact-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 0.1rem;
}
.listing-owner-block {
  padding: 1rem 1.25rem 0.25rem;
}
.listing-owner-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-managed-note {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.listing-owner-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.listing-owner-link:hover {
  opacity: 0.75;
}
.listing-owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.listing-owner-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
}
.listing-owner-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.listing-owner-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.3;
}
.listing-owner-since {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.35;
}
.listing-verified-badge {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--success-strong);
  line-height: 1.35;
}
[data-theme="dark"] .listing-verified-badge {
  color: var(--success);
}

.listing-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  max-width: none;
}
.listing-contact-form label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.listing-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: max(16px, 0.875rem);
  resize: vertical;
  min-height: 88px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.listing-contact-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
}
.listing-contact-error {
  margin: 0;
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
}
.listing-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1rem;
  box-sizing: border-box;
}
.listing-contact-phone-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.listing-contact-phone-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.listing-contact-phone-num {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.listing-contact-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}
.listing-contact-buttons > .listing-contact-btn {
  width: 100%;
  margin: 0;
  min-height: var(--touch-min, 44px);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.listing-contact-primary.btn-green,
a.listing-contact-primary.listing-contact-call {
  font-weight: 700;
  text-decoration: none;
}
.listing-contact-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Admin dashboard */
.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.admin-head-main {
  min-width: 0;
}
.admin-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.admin-subtitle {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.admin-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  overflow: visible;
}

.admin-stat {
  min-width: 0;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.65rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.admin-stat-clickable {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.admin-stat-clickable:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 18%, var(--card-bg));
}
.admin-stat-warn {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: color-mix(in srgb, #fef3c7 12%, var(--card-bg));
}
[data-theme="dark"] .admin-stat-warn {
  background: color-mix(in srgb, #fbbf24 8%, var(--card-bg));
}
.admin-stat-accent {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
}
.admin-stat-value {
  display: block;
  font-family: var(--font-display), sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.admin-stat-label {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: normal;
}

.admin-refresh-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.admin-refresh-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 20%, transparent);
}
.admin-refresh-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.admin-error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 22%, var(--line));
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.admin-panel { margin-bottom: 1.5rem; }

.admin-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--ink-soft);
}
.admin-empty-compact { padding: 2rem 1rem; }
.admin-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 12%, var(--card-bg));
  color: var(--success-strong);
  font-size: 1.15rem;
}
.admin-empty h2 { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 700; }

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.15rem;
}
.admin-search {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  margin: 0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  background: var(--card-bg);
  font-size: 0.92rem;
}
.admin-search-block {
  max-width: none;
  width: 100%;
  margin-bottom: 1rem;
}
.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-filter-pills-block { margin-bottom: 1.15rem; }
.admin-filter-pill {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.admin-filter-pill:hover { border-color: var(--ink-soft); color: var(--ink); }
.admin-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}


/* Admin: section tabs */
.admin-nav {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  margin-bottom: 1.15rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  background: transparent;
  color: var(--ink-soft);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  padding: 0.62rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.admin-tab-btn:hover { color: var(--ink); }
.admin-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
  box-shadow: none;
}
.admin-tab-count {
  background: color-mix(in srgb, var(--ink-soft) 14%, transparent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.4rem;
  font-variant-numeric: tabular-nums;
}
.admin-tab-btn.active .admin-tab-count {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.admin-tab-count-urgent {
  background: color-mix(in srgb, #f59e0b 18%, transparent);
  color: #b45309;
}
[data-theme="dark"] .admin-tab-count-urgent {
  background: color-mix(in srgb, #fbbf24 16%, transparent);
  color: #fbbf24;
}
.admin-tab-btn.active .admin-tab-count-urgent {
  background: color-mix(in srgb, #f59e0b 22%, transparent);
  color: #b45309;
}
[data-theme="dark"] .admin-tab-btn.active .admin-tab-count-urgent {
  color: #fbbf24;
}


/* Legacy admin pending card aliases */
.admin-pending-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.admin-pending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.admin-pending-title { font-size: 1.05rem; color: var(--ink); }
.admin-pending-photos {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.admin-pending-photo {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.admin-pending-badge {
  flex-shrink: 0;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
[data-theme="dark"] .admin-pending-badge { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

@media (min-width: 961px) {
  .admin-stat-strip-compact .admin-stat-secondary {
    display: block;
  }
  .admin-stat-strip-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .admin-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-stat-strip-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-ban-grid { grid-template-columns: 1fr; }
  .admin-bans-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .admin-stat-strip-desktop {
    display: none;
  }
  .admin-nav-desktop {
    display: none;
  }
  .admin-nav-mobile {
    display: block;
  }
  .admin-head {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
  }
  .admin-head-main {
    flex: 1;
    min-width: 0;
  }
  .admin-head h1 {
    font-size: 1.2rem;
    margin-bottom: 0;
  }
  .admin-subtitle {
    display: none;
  }
  .admin-refresh-btn {
    align-self: center;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }
}
@media (min-width: 768px) {
  .admin-nav-mobile {
    display: none;
  }
}
@media (max-width: 767px) {
  .admin-pm-workspace-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
  }
  .admin-pm-workspace-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .admin-pm-stat {
    min-width: 0;
  }
  .admin-pm-workspace-title {
    font-size: 1.15rem;
  }
  .admin-pm-workspace-meta {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .admin-pm-section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-pm-section-head .admin-btn,
  .admin-pm-section-head .admin-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .admin-listing-grid-compact {
    grid-template-columns: 1fr;
  }
  .admin-row-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .admin-row-actions .admin-btn {
    width: 100%;
    justify-content: center;
  }
  .admin-user-identity,
  .admin-inquiry-identity {
    min-width: 0;
    width: 100%;
  }
  .admin-user-text-block {
    min-width: 0;
  }
  .admin-actions,
  .admin-actions-secondary,
  .admin-quick-actions {
    width: 100%;
  }
  .admin-actions .admin-btn,
  .admin-actions-secondary .admin-btn,
  .admin-quick-actions .admin-btn {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .admin-page {
    padding-inline: max(0.75rem, var(--safe-left)) max(0.75rem, var(--safe-right));
  }
  .admin-tab-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    min-height: var(--touch-min);
  }
  .admin-listing-grid { grid-template-columns: 1fr; }
  .admin-user-row { flex-direction: column; align-items: stretch; }
  .admin-actions-inline { width: 100%; }
  .admin-btn {
    min-height: var(--touch-min);
    justify-content: center;
  }
  .admin-actions .admin-btn,
  .admin-actions-secondary .admin-btn,
  .admin-quick-actions .admin-btn {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .admin-ban-row-top {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-ban-row-actions {
    justify-content: flex-start;
  }
  .admin-bans-summary {
    grid-template-columns: 1fr;
  }
  .admin-bans-summary-chip {
    min-height: var(--touch-min);
    padding: 0.75rem 0.85rem;
  }
  .admin-bans-section-btn {
    min-height: var(--touch-min);
    padding: 0.55rem 0.75rem;
  }
  .admin-bans-lookup-input,
  .admin-ban-field input,
  .admin-ban-list-search,
  .admin-search {
    min-height: var(--touch-min);
    font-size: max(16px, 0.92rem);
  }
  .admin-ban-add-btn,
  .admin-ban-remove,
  .admin-ban-copy {
    min-height: var(--touch-min);
  }
  .admin-ban-form {
    grid-template-columns: 1fr;
  }
  .admin-ban-list-search {
    width: 100%;
    max-width: none;
  }
}
@media (min-width: 768px) {
  .admin-ban-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
  .admin-ban-list-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .admin-ban-list-search {
    max-width: 280px;
  }
}

.report-trigger {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 500;
  width: auto;
}
.report-trigger:hover { color: var(--error); background: transparent; }


/* Report panel — listing, profile, chat */
.report-panel {
  width: 100%;
  max-width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 8px 28px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}
.report-panel-agency {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: linear-gradient(145deg, var(--card-bg) 0%, color-mix(in srgb, #fffbeb 40%, var(--card-bg)) 100%);
}
[data-theme="dark"] .report-panel-agency {
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(251, 191, 36, 0.06) 100%);
}

.report-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.report-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.report-panel-intro {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 52ch;
}
.report-panel-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.report-panel-close:hover {
  background: var(--line);
  color: var(--ink);
  border-color: var(--ink-soft);
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.report-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.report-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.report-reason-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.report-reason-locked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.report-reason-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  text-align: left;
  line-height: 1.3;
}
.report-reason-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
}
.report-reason-chip-active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent);
}
[data-theme="dark"] .report-reason-chip-active {
  color: var(--accent);
}
.report-panel-agency .report-reason-chip-active {
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
}
[data-theme="dark"] .report-panel-agency .report-reason-chip-active {
  color: #fcd34d;
}

.report-quick-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.report-quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, #f59e0b 40%, var(--line));
  background: rgba(255, 255, 255, 0.5);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  text-align: left;
  line-height: 1.35;
}
.report-quick-chip:hover {
  background: rgba(251, 191, 36, 0.15);
  border-style: solid;
}
[data-theme="dark"] .report-quick-chip {
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

.report-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: max(16px, 0.95rem);
  line-height: 1.55;
  resize: vertical;
  background: var(--paper-alt);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.report-textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.report-panel-agency .report-textarea:focus {
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.report-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 25%, var(--line));
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.15rem;
}
.report-submit-btn {
  flex: 1 1 160px;
  margin: 0;
  padding: 0.78rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.report-panel-agency .report-submit-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}
.report-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 38%, transparent);
}
.report-panel-agency .report-submit-btn:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.38);
}
.report-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.report-cancel-btn {
  flex: 0 1 auto;
  margin: 0;
  padding: 0.78rem 1.15rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.report-cancel-btn:hover {
  background: var(--line);
  color: var(--ink);
}

.report-success-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
}
.report-success-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--success-strong);
}
[data-theme="dark"] .report-success-card p {
  color: var(--success);
}
.report-success-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--success);
  color: white;
}
.report-success-card-agency {
  background: linear-gradient(135deg, var(--success-soft) 0%, rgba(251, 191, 36, 0.12) 100%);
}

.report-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(1rem, var(--safe-top))
    max(1rem, var(--safe-right))
    max(1rem, var(--safe-bottom))
    max(1rem, var(--safe-left));
}
.report-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.report-overlay-panel-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90dvh, calc(100dvh - 2rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  animation: report-overlay-in 0.22s ease-out;
}
@keyframes report-overlay-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.report-panel-overlay {
  gap: 0;
  padding: 0;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, var(--line));
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: var(--card-bg);
  overflow: hidden;
}
[data-theme="dark"] .report-panel-overlay {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.report-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 0.65rem;
}
.report-overlay-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.report-overlay-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.report-overlay-close:hover {
  background: var(--paper-alt);
  color: var(--ink);
}

.report-overlay-lead {
  margin: 0;
  padding: 0 1.15rem 0.95rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 500;
}

.report-overlay-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.15rem 1.15rem;
  margin: 0;
  border: none;
}
.report-overlay-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.report-overlay-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.report-overlay-select,
.report-overlay-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.72rem 0.85rem;
  font: inherit;
  font-size: max(16px, 0.9375rem);
  line-height: 1.5;
  background: var(--paper-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.report-overlay-select {
  appearance: none;
  padding-right: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 2px),
    calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.report-overlay-textarea {
  min-height: 108px;
  resize: vertical;
}
.report-overlay-select:focus,
.report-overlay-textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.report-overlay-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.report-overlay-suggestion {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.report-overlay-suggestion:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--accent-soft);
  color: var(--ink);
}

.report-overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}
.report-overlay-submit {
  flex: 1 1 160px;
  margin: 0;
  padding: 0.78rem 1rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.report-panel-overlay-agency .report-overlay-submit {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.report-overlay-cancel {
  flex: 0 1 auto;
  margin: 0;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.report-overlay-cancel:hover {
  background: var(--line);
  color: var(--ink);
}
.report-overlay-submit:hover:not(:disabled) {
  opacity: 0.92;
}
.report-overlay-submit:active:not(:disabled) {
  transform: scale(0.99);
}
.report-overlay-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.report-success-overlay {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.35rem 1.15rem 1.15rem;
  border-radius: 20px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}
.report-success-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.report-success-overlay .report-success-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.report-success-overlay p {
  max-width: 28ch;
  margin-inline: auto;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}
.report-overlay-done {
  width: 100%;
  margin: 0;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.report-overlay-done:hover {
  background: var(--line);
}

.report-overlay-panel-wrap .report-panel,
.report-overlay-panel-wrap .report-success-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

.listing-contact-footer .report-panel {
  margin-top: 0.35rem;
}

@media (max-width: 960px) {
  .report-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .report-submit-btn,
  .report-cancel-btn {
    flex: 1 1 auto;
    width: 100%;
  }
  .report-quick-hints {
    flex-direction: column;
    align-items: stretch;
  }
  .report-quick-chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
  .report-overlay-panel-wrap {
    width: min(100%, 28rem);
    max-height: min(92dvh, 92svh);
    padding: max(0.75rem, var(--safe-top)) max(0.75rem, var(--safe-right)) max(0.75rem, var(--safe-bottom)) max(0.75rem, var(--safe-left));
  }
  .report-overlay-head {
    gap: 0.5rem;
  }
  .report-overlay-close {
    width: var(--touch-min);
    height: var(--touch-min);
  }
  .report-overlay-suggestions {
    flex-direction: column;
    align-items: stretch;
  }
  .report-overlay-suggestion {
    width: 100%;
    text-align: left;
  }
  .report-overlay-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .report-overlay-submit,
  .report-overlay-cancel {
    flex: 1 1 auto;
    width: 100%;
    min-height: var(--touch-min);
    font-size: max(0.9375rem, 16px);
  }
  .report-overlay-suggestion {
    min-height: var(--touch-min);
  }
}

@media (max-width: 640px) {
  .report-panel {
    padding: 1rem;
  }
  .report-panel-head {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .report-panel-close {
    align-self: flex-end;
  }
  .report-actions {
    flex-direction: column;
  }
  .report-submit-btn,
  .report-cancel-btn {
    flex: 1 1 auto;
    width: 100%;
  }
  .report-reason-chip {
    font-size: 0.78rem;
    padding: 0.42rem 0.7rem;
  }
}

.report-sent { color: var(--success); font-size: 0.9rem; font-weight: 600; }

.agency-report-trigger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--btn-radius);
  width: 100%;
}
.agency-report-trigger:hover { background: #fee2e2; }
[data-theme="dark"] .agency-report-trigger {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
[data-theme="dark"] .agency-report-trigger:hover { background: rgba(248, 113, 113, 0.2); }
.agency-report-hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0.25rem 0 0.6rem;
}


/* Photo gallery */
.photo-gallery { margin: 1.5rem 0; }

.gallery-carousel-wrap {
  position: relative;
}
.gallery-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  padding: 0.1rem 0 0.35rem;
}
.gallery-slide {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 720px;
  height: min(68dvh, 540px);
  position: relative;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-alt);
  color: inherit;
  font: inherit;
  cursor: zoom-in;
  transition: border-color 0.15s ease;
  box-shadow: none;
}
.gallery-slide:hover {
  background: var(--paper-alt);
  transform: none;
  box-shadow: none;
}
.gallery-slide.active {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
}
.gallery-slide .photo-protected-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gallery-slide .photo-protected-frame img,
.gallery-slide .photo-protected-frame .gallery-slide-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery-carousel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding: 0 0.1rem;
}
.gallery-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, var(--line));
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.gallery-dot:hover {
  background: color-mix(in srgb, var(--ink) 45%, var(--line));
  transform: none;
  box-shadow: none;
}
.gallery-dot.active {
  background: var(--ink);
  transform: scale(1.15);
}

.gallery-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}
.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.65);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  pointer-events: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  box-shadow: none;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-carousel-wrap .gallery-nav:hover,
.gallery-carousel-wrap .gallery-nav:active,
.gallery-carousel-wrap .gallery-nav:focus-visible {
  transform: translateY(-50%);
  box-shadow: none;
}
.gallery-carousel-wrap:hover .gallery-nav,
.gallery-carousel-wrap:focus-within .gallery-nav {
  opacity: 1;
}
@media (hover: none) {
  .gallery-nav {
    opacity: 1;
    background: rgba(15, 23, 42, 0.45);
  }
}
.gallery-carousel-wrap .gallery-nav:hover {
  background: rgba(15, 23, 42, 0.78);
}
.gallery-carousel-wrap .gallery-nav:active {
  background: rgba(15, 23, 42, 0.88);
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 84px;
  height: 64px;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--paper-alt);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

body.lightbox-open .site-header,
body.lightbox-open .chat-dock {
  pointer-events: none;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 22, 0.92);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  padding:
    max(4.25rem, calc(env(safe-area-inset-top, 0px) + 3.5rem))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.lightbox-top-bar {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: auto;
  touch-action: manipulation;
}
.lightbox-image-wrap {
  position: relative;
  width: min(96vw, calc(100vw - 7rem));
  height: min(100%, calc(100dvh - 5.5rem));
  max-height: calc(100dvh - 5.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox-image-wrap.zoomed { cursor: grab; }
.lightbox-image-wrap.zoomed:active { cursor: grabbing; }
.lightbox-image-wrap.interacting .lightbox-image {
  transition: none;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transform-origin: center center;
  transition: transform 0.22s ease-out;
  will-change: transform;
}

.lightbox-zoom-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  pointer-events: auto;
  touch-action: manipulation;
}
.lightbox-zoom-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}
.lightbox-zoom-controls button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.25); }
.lightbox-zoom-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
.lightbox-zoom-level { color: white; font-size: 0.85rem; min-width: 3.2em; text-align: center; }


/* Deters casual photo theft (drag/right-click save) and tags every photo
   with a tiled watermark overlay. Uploaded photos are also burned in at
   upload time so direct URL downloads still carry BezAgencia.bg. */
.photo-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.photo-protected-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.photo-protected-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}
.gallery-hero .photo-protected-frame,
.gallery-hero .photo-protected-frame img {
  width: 100%;
  height: 100%;
}
.gallery-thumb .photo-protected-frame {
  width: 100%;
  height: 100%;
}
.wizard-photo-preview .photo-protected-frame {
  position: absolute;
  inset: 0;
}
.wizard-photo-preview .photo-watermark-tile {
  background-size: 320px 190px;
  opacity: 0.9;
}
.photo-watermark-tile {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150' viewBox='0 0 260 150'%3E%3Cg transform='rotate(-24 130 75)'%3E%3Ctext x='130' y='78' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-size='19' font-weight='700' fill='rgba(255,255,255,0.34)' stroke='rgba(0,0,0,0.24)' stroke-width='0.7'%3EBezAgencia.bg%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 150px;
}
.photo-watermark-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: min(72%, 320px);
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  text-align: center;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
}
.photo-watermark-badge strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.82rem, 2.4vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.photo-watermark-badge small {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.62rem, 1.8vw, 0.72rem);
  font-weight: 600;
  line-height: 1.25;
}
.photo-watermark-badge-dense {
  min-width: 0;
  width: 92%;
  padding: 0.25rem 0.35rem;
  border-radius: 8px;
}
.photo-watermark-badge-dense strong {
  font-size: 0.58rem;
}
.photo-watermark-badge-dense small {
  display: none;
}
.photo-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: transparent;
}
.lightbox-image-wrap .photo-protected-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-image-wrap .photo-protected-frame img.lightbox-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.lightbox-close {
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  z-index: 21;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
button.lightbox-close:hover:not(:disabled),
button.lightbox-close:active:not(:disabled),
button.lightbox-close:focus-visible:not(:disabled) {
  background: rgba(255,255,255,0.2);
  transform: none;
  box-shadow: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 48px;
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 15;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
button.lightbox-nav:hover:not(:disabled),
button.lightbox-nav:active:not(:disabled),
button.lightbox-nav:focus-visible:not(:disabled) {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%);
  box-shadow: none;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
@media (max-width: 768px) {
  .lightbox-nav {
    display: none;
  }
}

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 1.5rem 0;
  opacity: 0.4;
}


/* Profile setup wizard (first-time/incomplete profiles) */
.wizard-step-indicator {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 1.25rem;
}
.wizard-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.wizard-back-btn {
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.wizard-back-btn:hover { background: var(--paper); }


/* Welcome / onboarding checklist page */
.welcome-page {
  max-width: 640px;
  margin: 0 auto;
}
.welcome-subtitle {
  color: var(--ink-soft);
  margin: 0.25rem 0 2rem;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.checklist-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.checklist-item.disabled { opacity: 0.5; }
.checklist-item.done { border-color: var(--success); }
.checklist-item .checklist-body h3 { margin: 0 0 0.35rem; }
.checklist-item .checklist-body p { margin: 0 0 0.75rem; color: var(--ink-soft); }
.checklist-mark {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink-soft);
}
.checklist-item.done .checklist-mark {
  background: var(--success-strong);
  border-color: var(--success-strong);
  color: white;
}
.welcome-continue { width: 100%; }

.zero-tolerance-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.zero-tolerance-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.zero-tolerance-banner h3 { margin: 0 0 0.35rem; color: #b91c1c; }
.zero-tolerance-banner p { margin: 0; color: #7f1d1d; font-size: 0.92rem; line-height: 1.5; }
[data-theme="dark"] .zero-tolerance-banner {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}
[data-theme="dark"] .zero-tolerance-banner h3 { color: #f87171; }
[data-theme="dark"] .zero-tolerance-banner p { color: #fca5a5; }

.welcome-guide {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--paper);
}
.welcome-guide h3 { margin: 0 0 0.6rem; }
.welcome-guide ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.welcome-guide li { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }


/* Admin reports — compact accordion rows */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.report-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  overflow: hidden;
}
.report-row.open { border-color: var(--accent); }
.report-row-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25rem auto 1fr 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.report-row-header:hover { background: var(--paper-alt); }
.report-row-chevron { color: var(--ink-soft); }
.report-row-date { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }
.report-row-reason { font-weight: 600; }
.report-row-reported { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-row-status {
  justify-self: end;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.report-row-status.status-open { background: #fef3c7; color: #b45309; }
[data-theme="dark"] .report-row-status.status-open { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.report-row-status.status-reviewed { background: var(--success-strong); color: white; }
.report-row-status.status-dismissed { background: var(--muted-strong); color: white; }
.report-row-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.25rem 2rem;
}
.report-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.report-detail-item span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.report-detail-item strong { color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.report-detail-note {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.report-detail-note span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.report-detail-note p { margin: 0.3rem 0 0; color: var(--ink); font-size: 0.9rem; }
@media (max-width: 640px) {
  .report-row-header { grid-template-columns: 1.25rem auto 1fr; }
  .report-row-reported, .report-row-status { display: none; }
  .report-detail-grid { grid-template-columns: 1fr 1fr; }
}


/* Messages inbox — conversation list (marketplace-style) */
.conversation-list {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shadow) 65%, transparent);
}
.conversation-row {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.15s ease;
}
.conversation-row:last-child {
  border-bottom: none;
}
.conversation-row-unread {
  background: color-mix(in srgb, var(--accent-soft) 22%, var(--card-bg));
}
.conversation-row-unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.conversation-row-skeleton {
  min-height: 72px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  animation: dashboard-pulse 1.4s ease-in-out infinite;
}
.conversation-row-interactive:hover {
  background: var(--paper-alt);
}
.conversation-row-unread.conversation-row-interactive:hover {
  background: color-mix(in srgb, var(--accent-soft) 32%, var(--paper-alt));
}
.conversation-row-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 2.25rem 0.7rem 0.85rem;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}
.conversation-row-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.conversation-row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.conversation-row-avatar-placeholder {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper-alt));
  color: var(--accent-dark);
}
.conversation-row-platform .conversation-row-avatar,
.conversation-row-avatar.conversation-row-avatar-brand,
.chat-avatar-wrap-brand .conversation-row-avatar,
.chat-avatar-wrap-brand .avatar-preview {
  object-fit: contain;
  padding: 0.32rem;
  background: var(--card-bg);
}
.conversation-row-avatar-wrap .chat-online-dot {
  width: 9px;
  height: 9px;
  border-width: 1.5px;
}
.conversation-unread-badge {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  margin-right: 0.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.conversation-row-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.conversation-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.conversation-row-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-row-unread .conversation-row-name {
  font-weight: 700;
}
.conversation-row-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.conversation-row-unread .conversation-row-time {
  color: var(--accent-dark, var(--accent));
  font-weight: 600;
}
.conversation-row-listing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}
.conversation-row-listing-mini {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.conversation-row-listing-mini-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  line-height: 1;
}
.conversation-row-listing-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.conversation-row-preview {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.conversation-row-preview-unread {
  color: var(--ink);
  font-weight: 600;
}
.conversation-row-expand {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border-radius: 8px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.82rem;
  opacity: 0;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.conversation-row-interactive:hover .conversation-row-expand,
.conversation-row-expand:focus-visible {
  opacity: 1;
}
.conversation-row-expand:hover {
  background: color-mix(in srgb, var(--line) 60%, transparent);
  color: var(--accent);
}


/* Legacy conversation row aliases (thread/other pages) */
.conversation-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card-bg);
}
.conversation-row-listing-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.conversation-row-listing-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}


/* Real-time messenger — toasts + floating chat dock */
.chat-toast-stack {
  position: fixed;
  top: calc(var(--header-height-actual, var(--header-height)) + 0.5rem);
  right: max(1.25rem, var(--safe-right));
  left: auto;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.chat-toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 24px var(--shadow);
  cursor: pointer;
  max-width: 300px;
  animation: chat-toast-in 0.2s ease-out;
}
.chat-toast:hover { border-color: var(--accent); }
.chat-toast-name { font-weight: 600; font-size: 0.9rem; }
.chat-toast-preview {
  color: var(--ink-soft);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
@keyframes chat-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.chat-dock {
  position: fixed;
  bottom: calc(0.65rem + var(--safe-bottom));
  right: max(1.25rem, var(--safe-right));
  z-index: 1100;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.chat-dock > * { pointer-events: auto; }

.chat-popup {
  width: 380px;
  max-height: 520px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--shadow) 55%, transparent);
  overflow: hidden;
  animation: chat-popup-in 0.2s ease-out;
}
@keyframes chat-popup-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-popup.minimized,
.chat-popup.chat-thread.minimized {
  height: auto;
  max-height: none;
  min-height: 0;
  width: auto;
  max-width: min(240px, calc(100vw - 2.5rem - var(--safe-left) - var(--safe-right)));
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
  background: color-mix(in srgb, var(--card-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--shadow) 40%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--paper) 55%, transparent);
}

.chat-popup-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.65rem 0.65rem 0.75rem;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-popup.minimized .chat-popup-header {
  border-bottom: none;
  padding: 0.32rem 0.35rem 0.32rem 0.42rem;
  gap: 0.12rem;
  background: transparent;
}
.chat-popup.minimized .chat-popup-identity {
  gap: 0.45rem;
}
.chat-popup.minimized .chat-avatar-wrap-sm .avatar-sm,
.chat-popup.minimized .chat-avatar-wrap-sm .avatar-preview.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
  border-width: 1px;
}
.chat-popup.minimized .chat-online-dot {
  width: 7px;
  height: 7px;
  border-width: 1.25px;
}
.chat-popup.minimized .chat-popup-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.chat-popup.minimized .chat-popup-name-row {
  gap: 0.2rem;
}
.chat-popup.minimized .chat-verified-badge {
  width: 12px;
  height: 12px;
  font-size: 0.5rem;
}
.chat-popup.minimized .chat-popup-social-badge.social-verified-badge--icon-only {
  width: 14px;
  height: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.chat-popup.minimized .chat-popup-social-badge.social-verified-badge--icon-only .social-verified-badge-icon svg {
  width: 7px;
  height: 7px;
}
.chat-popup.minimized .social-verified-badge-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chat-popup.minimized .chat-popup-icon-btn {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-popup.minimized .chat-popup-icon-btn svg {
  width: 13px;
  height: 13px;
}
.chat-popup-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  box-shadow: none;
  transform: none;
  width: auto;
  font-weight: inherit;
  font-size: inherit;
  border-radius: 0;
  transition: background-color 0.18s ease;
}
.chat-popup button.chat-popup-header-main:hover,
.chat-popup button.chat-popup-header-main:active,
.chat-popup button.chat-popup-header-main:focus,
.chat-popup button.chat-popup-header-main:focus-visible {
  background: transparent;
  color: inherit;
  box-shadow: none;
  transform: none;
}
.chat-popup.minimized button.chat-popup-header-main {
  border-radius: 999px;
  padding: 0.1rem 0.25rem;
  margin: 0;
  min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup.minimized button.chat-popup-header-main:hover {
    background: color-mix(in srgb, var(--ink) 5%, transparent);
  }
}
.chat-popup button.chat-popup-header-main:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  outline-offset: 1px;
}
.chat-popup.minimized .chat-popup-header-main .chat-popup-identity {
  pointer-events: none;
  color: inherit;
}
.chat-popup-header-main-expanded {
  cursor: default;
}
.chat-popup-header-main-expanded .chat-popup-identity {
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-header-main-expanded .chat-popup-identity:hover {
    opacity: 0.88;
  }
}
.chat-popup-identity {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.chat-popup-identity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.chat-popup-name-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.chat-popup-name {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.chat-verified-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success-strong);
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}
.chat-popup-header-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.chat-popup-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-icon-btn:hover {
    background: var(--paper-alt);
    color: var(--ink);
  }
}

.chat-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}
.chat-avatar-wrap-sm .avatar-sm,
.chat-avatar-wrap-sm .avatar-preview.avatar-sm {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  box-shadow: none;
}
.chat-avatar-wrap-md .conversation-row-avatar {
  width: 48px;
  height: 48px;
}
.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--card-bg);
  box-sizing: border-box;
}
.chat-online-dot.online { background: #22c55e; }
.chat-online-dot.offline { background: var(--ink-soft); opacity: 0.4; }
.chat-presence-label {
  font-size: 0.6875rem;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.2;
}
.chat-presence-label.online { color: #16a34a; }

.chat-block-menu-wrap {
  position: relative;
  display: inline-flex;
}
.chat-block-menu-wrap.is-open {
  z-index: 40;
}
.chat-block-menu-wrap .chat-block-menu {
  right: 0;
  min-width: 11rem;
  z-index: 41;
}
.chat-block-menu-portal {
  right: auto;
  margin: 0;
}

.chat-popup-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0.5rem;
  z-index: 10;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--shadow) 50%, transparent);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 168px;
}
.chat-popup-menu button {
  background: transparent;
  color: var(--ink);
  border: none;
  text-align: left;
  padding: 0.5rem 0.6rem;
  margin: 0;
  border-radius: 6px;
  font-size: 0.8125rem;
  width: auto;
  font-family: inherit;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-menu button:hover { background: var(--paper-alt); }
}
.chat-popup-menu-confirm p {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0.2rem 0.5rem 0.4rem;
  line-height: 1.4;
}

.chat-popup-context {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.35;
  flex-shrink: 0;
  min-width: 0;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-context:hover {
    color: var(--ink);
    background: var(--paper-alt);
  }
}
.chat-popup-context-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.chat-popup-context-sep {
  flex-shrink: 0;
  opacity: 0.5;
}
.chat-popup-context-price {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent);
}

.chat-popup-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 180px;
  max-height: 300px;
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.chat-popup-messages .messages-system-message {
  align-self: center;
}
.chat-popup-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  padding: 1.5rem 0.75rem;
  line-height: 1.5;
}
.chat-popup-bubble {
  max-width: 85%;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.chat-popup-bubble.own {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper-alt));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.chat-popup-bubble.other {
  align-self: flex-start;
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.chat-popup-bubble-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-message-translation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
}
.chat-message-translation-badge {
  font-size: 0.625rem;
  color: var(--ink-soft);
  line-height: 1.2;
}
.chat-message-translation-toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.625rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}
.chat-message-translation-toggle:hover {
  color: var(--accent-dark);
}
.chat-popup-timestamp {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}
.chat-popup-bubble.own .chat-popup-timestamp {
  justify-content: flex-end;
}
.chat-status-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 13px;
  height: 9px;
  margin-top: 0;
  line-height: 0;
  color: var(--ink-soft);
  opacity: 0.9;
}
.chat-status-tick svg {
  display: block;
  width: 13px;
  height: 9px;
  overflow: visible;
}
.chat-status-tick.seen {
  color: #0084ff;
  opacity: 1;
}
[data-theme="dark"] .chat-status-tick.seen {
  color: #53bdeb;
}
.chat-popup-timestamp .chat-status-tick,
.messages-bubble-time .chat-status-tick {
  margin-left: 0.15rem;
}

.chat-popup-compose {
  border-top: 1px solid var(--line);
  background: var(--card-bg);
  flex-shrink: 0;
  min-width: 0;
  padding: 0.4rem 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: visible;
}
.chat-popup:has(.chat-share-sheet) .chat-popup-messages {
  flex: 1 1 0;
  min-height: 5rem;
}


/* Chat popup — share phone sheet */
.chat-share-sheet {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, var(--line));
  background: var(--paper-alt);
  animation: chat-share-notice-in 0.18s ease-out;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.chat-share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.chat-share-sheet-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}
.chat-share-sheet-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chat-share-sheet-close:hover {
    background: var(--line);
    color: var(--ink);
  }
}
.chat-share-sheet-lead {
  margin: 0;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-soft);
  white-space: normal;
  overflow-wrap: anywhere;
}
.chat-share-sheet-agency-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.chat-share-sheet-error {
  margin: 0;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--error);
  white-space: normal;
  overflow-wrap: anywhere;
}
.chat-share-sheet-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
}
.chat-share-sheet-phone-num {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-share-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.chat-share-sheet-share {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chat-share-sheet-share:hover {
    opacity: 0.92;
  }
}
.chat-share-sheet-share:active {
  transform: scale(0.99);
}
.chat-share-sheet-report.agency-report-trigger {
  width: 100%;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--error) 28%, var(--line));
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chat-share-sheet-report.agency-report-trigger:hover {
    background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
    border-color: color-mix(in srgb, var(--error) 40%, var(--line));
    color: var(--error);
  }
}
[data-theme="dark"] .chat-share-sheet-report.agency-report-trigger {
  color: #f87171;
  border-color: color-mix(in srgb, #f87171 35%, var(--line));
}
@media (hover: hover) and (pointer: fine) {
  [data-theme="dark"] .chat-share-sheet-report.agency-report-trigger:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
  }
}

.chat-share-agency-warning {
  position: relative;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  overflow: hidden;
}
.chat-share-agency-warning-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.chat-share-agency-warning-trigger:hover {
  background: color-mix(in srgb, var(--ink-soft) 6%, transparent);
}
.chat-share-agency-warning-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: -2px;
}
.chat-share-agency-warning-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--ink-soft);
}
.chat-share-agency-warning.is-expanded {
  border-color: color-mix(in srgb, #f59e0b 22%, var(--line));
  background: color-mix(in srgb, #fef3c7 18%, var(--paper-alt));
}
.chat-share-agency-warning.is-expanded::before {
  display: none;
}
[data-theme="dark"] .chat-share-agency-warning.is-expanded {
  border-color: color-mix(in srgb, #f59e0b 20%, var(--line));
  background: color-mix(in srgb, #78350f 12%, var(--paper-alt));
}
.chat-share-agency-warning-body {
  padding: 0 0.65rem 0.35rem;
}
.chat-share-agency-warning.is-expanded .chat-share-agency-warning-trigger {
  padding-bottom: 0.2rem;
}
.chat-share-agency-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 18%, var(--paper-alt));
  border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--line));
  color: #b45309;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
[data-theme="dark"] .chat-share-agency-warning-icon {
  background: color-mix(in srgb, #f59e0b 16%, transparent);
  border-color: color-mix(in srgb, #fbbf24 30%, var(--line));
  color: #fcd34d;
}
.chat-share-agency-warning-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.chat-share-agency-warning.is-collapsed .chat-share-agency-warning-title {
  font-weight: 500;
  color: var(--ink-soft);
}
.chat-share-agency-warning.is-expanded .chat-share-agency-warning-title {
  color: #92400e;
}
[data-theme="dark"] .chat-share-agency-warning.is-expanded .chat-share-agency-warning-title {
  color: #fcd34d;
}
.chat-share-agency-warning-text {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.chat-share-agency-warning-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
[data-theme="dark"] .chat-share-agency-warning-btn {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
@media (hover: hover) and (pointer: fine) {
  .chat-share-agency-warning-btn:hover {
    opacity: 0.92;
  }
}
.chat-share-agency-warning-btn:active {
  transform: scale(0.98);
}
.chat-share-agency-warning-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chat-share-agency-warning-report.agency-report-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--error) 24%, var(--line));
  background: transparent;
  color: var(--error);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .chat-share-agency-warning-report.agency-report-trigger:hover {
    background: color-mix(in srgb, var(--error) 8%, transparent);
    border-color: color-mix(in srgb, var(--error) 36%, var(--line));
  }
}
[data-theme="dark"] .chat-share-agency-warning-report.agency-report-trigger {
  color: #f87171;
  border-color: color-mix(in srgb, #f87171 30%, var(--line));
  background: transparent;
}
@media (hover: hover) and (pointer: fine) {
  [data-theme="dark"] .chat-share-agency-warning-report.agency-report-trigger:hover {
    background: rgba(248, 113, 113, 0.1);
  }
}
.chat-share-agency-warning-actions .report-panel,
.chat-share-agency-warning-actions .report-success-card {
  width: 100%;
  margin-top: 0.15rem;
}
.chat-share-agency-warning-thread {
  margin: 0 0 0.45rem;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-trigger {
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  align-items: center;
}
.chat-share-agency-warning-thread.is-collapsed .chat-share-agency-warning-trigger {
  padding: 0.5rem 0.65rem;
}
.chat-share-agency-warning-thread.is-expanded .chat-share-agency-warning-trigger {
  min-height: 2.15rem;
  padding-top: 0.4rem;
  padding-bottom: 0.15rem;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-icon {
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.625rem;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-title {
  font-size: 0.76rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.chat-share-agency-warning-thread .chat-share-agency-warning-text {
  flex: 1 1 14rem;
  min-width: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.5rem;
  padding: 0 0.65rem 0.35rem;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-actions {
  flex: 0 0 auto;
  margin-left: auto;
  gap: 0.4rem;
}
.chat-share-agency-warning-thread .chat-share-agency-warning-btn,
.chat-share-agency-warning-thread .chat-share-agency-warning-report.agency-report-trigger {
  min-height: 2.125rem;
  padding: 0.48rem 0.95rem;
  font-size: 0.8125rem;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .messages-shell .messages-thread-compose {
    padding-inline: max(0.75rem, var(--safe-left)) max(0.75rem, var(--safe-right));
  }
  .phone-request-panel-thread {
    margin-inline: 0;
  }
}

@media (max-width: 768px) {
  .messages-shell .messages-compose-form input,
  .messages-shell .messages-compose-form textarea {
    min-height: var(--touch-min);
    padding-block: 0.65rem;
  }
  .messages-shell .messages-send-btn {
    width: var(--touch-min);
    min-width: var(--touch-min);
    height: var(--touch-min);
    min-height: var(--touch-min);
  }

  .phone-request-panel {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
  }
  .phone-request-panel-title {
    font-size: 0.8125rem;
  }
  .phone-request-panel-text,
  .phone-request-panel-note {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .phone-request-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .phone-request-panel-btn {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
    justify-content: center;
    text-align: center;
  }
  .phone-request-panel-actions:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  .chat-share-agency-warning {
    border-radius: 12px;
  }
  .chat-share-agency-warning-trigger {
    min-height: var(--touch-min);
    padding: 0.55rem 0.75rem;
    gap: 0.55rem;
    touch-action: manipulation;
  }
  .chat-share-agency-warning-chevron {
    width: var(--touch-min);
    height: var(--touch-min);
    margin-left: auto;
    margin-right: -0.35rem;
  }
  .chat-share-agency-warning-title {
    font-size: 0.8125rem;
    line-height: 1.35;
  }
  .chat-share-agency-warning-body {
    padding: 0 0.75rem 0.45rem;
  }
  .chat-share-agency-warning-text {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .chat-share-agency-warning-thread .chat-share-agency-warning-body {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .chat-share-agency-warning-thread .chat-share-agency-warning-text {
    flex: none;
  }
  .chat-share-agency-warning-thread .chat-share-agency-warning-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-left: 0;
    width: 100%;
  }
  .chat-share-agency-warning-thread .chat-share-agency-warning-btn,
  .chat-share-agency-warning-thread .chat-share-agency-warning-report.agency-report-trigger {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.55rem 0.65rem;
    font-size: max(0.8125rem, 15px);
    border-radius: 10px;
    justify-content: center;
    touch-action: manipulation;
  }
}

@media (max-width: 640px) {
  .chat-share-agency-warning-thread .chat-share-agency-warning-title {
    font-size: 0.78rem;
  }
  .phone-request-panel-actions {
    grid-template-columns: 1fr;
  }
  .chat-share-agency-warning-thread .chat-share-agency-warning-actions {
    grid-template-columns: 1fr;
  }
  .messages-thread-compose {
    padding-inline: max(0.75rem, var(--safe-left)) max(0.75rem, var(--safe-right));
  }
}
@keyframes chat-share-notice-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-share-agency-warning-popup {
  margin: 0 0 0.55rem;
}
.chat-share-agency-warning-popup .chat-share-agency-warning-trigger {
  padding: 0.6rem 0.75rem;
}
.chat-share-agency-warning-popup .chat-share-agency-warning-text {
  font-size: 0.75rem;
}
.chat-share-agency-warning-popup .chat-share-agency-warning-actions {
  gap: 0.35rem;
}
.chat-share-agency-warning-popup .chat-share-agency-warning-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  white-space: normal;
}
.chat-share-phone-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 72%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--line));
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.chat-share-phone-preview strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chat-popup-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chat-popup-phone-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-display), sans-serif;
}
.chat-popup-phone-btn.is-open {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper-alt));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-dark);
}
[data-theme="dark"] .chat-popup-phone-btn.is-open {
  color: var(--accent);
}
.chat-popup-phone-btn.is-open .chat-popup-phone-btn-icon {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-phone-btn:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    color: var(--ink);
    background: var(--line);
  }
  .chat-popup-phone-btn.is-open:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    color: var(--accent-dark);
  }
}
.chat-popup-input {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  max-width: none;
}
.chat-popup-input input,
.chat-popup-input textarea {
  flex: 1;
  min-width: 0;
  min-height: 2.25rem;
  max-height: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font-size: 16px;
  line-height: 1.35;
  background: var(--paper-alt);
  font-family: inherit;
  color: var(--ink);
  resize: none;
  field-sizing: content;
}
.chat-popup-input input:focus,
.chat-popup-input textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
}
.chat-popup-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.chat-popup-send svg {
  width: 15px;
  height: 15px;
}
.chat-popup-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.chat-popup-send .messages-send-btn-text {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .chat-popup-send:not(:disabled):hover {
    filter: brightness(1.05);
  }
}
.chat-popup-blocked-note {
  padding: 0.85rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  text-align: center;
  margin: 0;
  border-top: 1px solid var(--line);
}
.chat-popup .chat-blocked-banner {
  border-radius: 0 0 16px 16px;
}

@media (max-width: 640px) {
  .chat-dock {
    flex-direction: column-reverse;
    align-items: stretch;
    left: max(0.5rem, var(--safe-left));
    right: max(0.5rem, var(--safe-right));
    bottom: calc(0.5rem + var(--safe-bottom));
    gap: 0.5rem;
    max-width: calc(100vw - max(0.5rem, var(--safe-left)) - max(0.5rem, var(--safe-right)));
  }
  .chat-popup {
    width: 100%;
    max-width: none;
    height: min(88dvh, calc(var(--chat-frame-height) - var(--safe-bottom) - 0.5rem));
    max-height: min(88dvh, calc(var(--chat-frame-height) - var(--safe-bottom) - 0.5rem));
    min-height: clamp(17.5rem, 52dvh, 88dvh);
    display: flex;
    flex-direction: column;
    border-radius: 16px;
  }
  .chat-popup.minimized,
  .chat-popup.chat-thread.minimized {
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    max-width: min(240px, calc(100vw - 1.5rem - var(--safe-left) - var(--safe-right)));
    align-self: flex-end;
    border-radius: 999px;
  }
  .chat-popup-messages {
    max-height: none;
    flex: 1 1 0;
    min-height: 0;
  }
  .chat-popup:has(.chat-share-sheet) .chat-popup-messages {
    min-height: 4.5rem;
  }
  .chat-popup-compose {
    padding: 0.5rem 0.6rem max(0.5rem, calc(0.25rem + var(--safe-bottom)));
    flex-shrink: 0;
    overflow: visible;
  }
  .chat-share-sheet {
    margin: 0 0 0.45rem;
    padding: 0.75rem 0.8rem;
    gap: 0.6rem;
    min-width: 0;
  }
  .chat-share-sheet-head {
    gap: 0.4rem;
  }
  .chat-share-sheet-title {
    font-size: clamp(0.8125rem, 3.6vw, 0.9375rem);
    line-height: 1.35;
  }
  .chat-share-sheet-lead {
    font-size: clamp(0.75rem, 3.2vw, 0.8125rem);
    line-height: 1.45;
  }
  .chat-share-sheet-phone {
    padding: 0.55rem 0.65rem;
  }
  .chat-share-sheet-phone-num {
    font-size: clamp(0.9375rem, 4.2vw, 1.0625rem);
    word-break: break-word;
  }
  .chat-share-sheet-actions {
    gap: 0.45rem;
  }
  .chat-share-sheet-share,
  .chat-share-sheet-report.agency-report-trigger {
    min-height: var(--touch-min);
    padding: 0.72rem 0.85rem;
    font-size: max(0.8125rem, 15px);
    line-height: 1.3;
  }
  .chat-share-sheet-close {
    width: var(--touch-min);
    height: var(--touch-min);
  }
  .chat-popup-input {
    min-width: 0;
    gap: 0.4rem;
  }
  .chat-popup-input input,
  .chat-popup-input textarea {
    min-height: var(--touch-min);
    font-size: 16px;
  }
  .chat-popup-phone-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    flex-shrink: 0;
  }
  .chat-popup-send {
    width: var(--touch-min);
    height: var(--touch-min);
    flex-shrink: 0;
  }
  .chat-toast-stack {
    top: calc(var(--header-height-actual, var(--header-height)) + 0.35rem);
    left: max(0.5rem, var(--safe-left));
    right: max(0.5rem, var(--safe-right));
  }
  .chat-toast {
    max-width: none;
    min-height: var(--touch-min);
  }
  .chat-thread-actions:has(.chat-share-sheet) { flex-wrap: wrap; overflow: visible; }
}


/* Legal pages (Terms / Privacy) */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.legal-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.legal-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.legal-updated {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  margin: 0 0 1rem;
}
.legal-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.legal-section {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 1px 2px var(--shadow);
}
.legal-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-section-body p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}
.legal-section-body p:last-child {
  margin-bottom: 0;
}
[data-theme="dark"] .legal-section {
  background: color-mix(in srgb, var(--card-bg) 92%, var(--paper-alt));
  border-color: color-mix(in srgb, var(--line) 88%, var(--accent) 12%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
[data-theme="dark"] .legal-kicker {
  color: var(--brand-cyan-bright);
}


/* Choose-role page (first-time OAuth sign-ins) */
.choose-role-page {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.choose-role-page h1 { margin-bottom: 0.5rem; }
.choose-role-page .profile-intro {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.choose-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.choose-role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  width: 100%;
  color: var(--ink);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.choose-role-card:hover:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 12px 28px var(--shadow);
  transform: translateY(-2px);
}
.choose-role-icon { font-size: 2.5rem; }
.choose-role-card h2 { margin: 0.25rem 0 0; font-size: 1.15rem; }
.choose-role-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  flex: 1;
}
.choose-role-cta {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}


/* Profile edit & public pages */
.profile-edit-page {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.profile-hero,
.profile-public-hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  margin: var(--bleed-y) var(--bleed-right) 2rem var(--bleed-left);
  background:
    radial-gradient(ellipse 500px 260px at 10% -15%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 460px 240px at 92% 105%, color-mix(in srgb, var(--success) 10%, transparent), transparent 70%),
    var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.profile-hero h1,
.profile-public-hero h1 {
  margin: 0 auto 0.6rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 560px;
}
.profile-hero-subtitle,
.profile-public-since {
  margin: 0 auto;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}
.profile-hero-badges,
.profile-public-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}
.role-badge-lg {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.profile-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.profile-trust-pill-green {
  background: var(--success-soft);
  color: var(--success-strong);
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
}

.profile-wizard-bar {
  position: relative;
  margin: -1rem 0 1.5rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-wizard-bar p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.profile-wizard-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent) 35%, var(--accent-soft)));
  transition: width 0.25s ease;
}

.profile-edit-page--wizard {
  max-width: 560px;
  padding-bottom: 1rem;
}
.profile-wizard-head {
  margin-bottom: 1rem;
  text-align: center;
}
.profile-wizard-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
[data-theme="dark"] .profile-wizard-eyebrow { color: var(--accent); }
.profile-wizard-head h1 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}
.profile-wizard-lead {
  margin: 0 auto 1rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}
.profile-edit-page--wizard .profile-edit-layout {
  grid-template-columns: 1fr;
  gap: 0;
}
.profile-edit-page--wizard .profile-form {
  gap: 0.85rem;
}
.profile-edit-page--wizard .profile-panel--wizard-step {
  padding: 1rem 1.05rem;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--shadow) 45%, transparent);
}
.profile-edit-page--wizard .profile-panel--wizard-step .profile-panel-head {
  display: none;
}
.profile-edit-page--wizard .profile-photo-row {
  gap: 1rem;
  align-items: center;
}
.profile-edit-page--wizard .avatar-large {
  width: 6.25rem;
  height: 6.25rem;
  font-size: 2.35rem;
}
.profile-edit-page--wizard .avatar-edit-badge {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}
.profile-edit-page--wizard .upload-hint,
.profile-edit-page--wizard .field-hint {
  font-size: 0.78rem;
}
.profile-edit-page--wizard .profile-wizard-nav {
  margin-top: 0.15rem;
}
.profile-edit-page--wizard .profile-form {
  padding-bottom: 0.5rem;
}
.profile-edit-page--wizard .auth-stepper {
  margin-bottom: 0;
}
.profile-wizard-subsection {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-wizard-subsection-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.profile-wizard-subsection-hint {
  margin: -0.2rem 0 0.15rem;
}
.profile-roommate-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.profile-roommate-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.profile-roommate-toggle-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.profile-roommate-toggle-hint {
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.profile-phone-visibility-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.profile-phone-visibility-wrap .profile-phone-visibility {
  margin-top: 0;
}
.profile-private-mode-sidebar.profile-phone-visibility-wrap {
  margin-top: 0.35rem;
}
.profile-private-mode-sidebar.profile-phone-visibility-wrap .profile-phone-visibility {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.profile-phone-visibility {
  margin-top: 0.25rem;
  align-items: center;
}
.profile-phone-visibility-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0;
  border-radius: 10px;
  color: var(--accent-dark, var(--accent));
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
}
.profile-phone-visibility-copy {
  flex: 1;
  min-width: 0;
}
.profile-phone-visibility-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 0.15rem;
}
.profile-phone-visibility-error {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
}
.profile-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
  min-width: var(--touch-min, 44px);
  min-height: var(--touch-min, 44px);
  align-items: center;
  justify-content: flex-end;
}
.profile-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.profile-switch-track {
  display: block;
  width: 2.65rem;
  height: 1.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 70%, var(--paper-alt));
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.profile-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 45%, transparent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.profile-switch input:checked + .profile-switch-track {
  background: color-mix(in srgb, var(--accent) 55%, var(--accent-soft));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.profile-switch input:checked + .profile-switch-track .profile-switch-thumb {
  transform: translateX(1.15rem);
  background: var(--card-bg);
}
.profile-switch input:focus-visible + .profile-switch-track {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 2px;
}

.profile-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.profile-edit-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.profile-edit-page--clean .profile-edit-top {
  padding: 0 0 1.25rem;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.profile-edit-top-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.profile-edit-top-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}
.profile-edit-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}
.profile-edit-page--clean .profile-edit-top-copy h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.profile-edit-page--clean .profile-edit-layout {
  grid-template-columns: 1fr;
  gap: 0;
}
.profile-edit-top-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.profile-edit-top-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.profile-edit-top-avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 1.25rem;
  font-weight: 700;
}
.profile-edit-top-copy {
  min-width: 0;
}
.profile-edit-top-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.profile-edit-top-copy h1 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.profile-edit-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}
.profile-meta-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.role-badge-neutral {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
}
.profile-edit-top-link {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.profile-edit-top-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.profile-settings {
  position: relative;
}
.profile-settings-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  width: auto;
  min-height: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.profile-settings-trigger:hover:not(:disabled) {
  background: var(--paper-alt);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  color: var(--ink);
  transform: none;
}
.profile-settings-trigger[aria-expanded='true'] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent-dark);
}
.profile-settings-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 40;
  min-width: 12.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 12px 32px var(--shadow);
  animation: profile-settings-menu-in 0.16s ease-out;
}
@keyframes profile-settings-menu-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.profile-settings-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.profile-settings-menu-item:hover:not(:disabled) {
  background: var(--paper-alt);
  color: var(--ink);
  transform: none;
}
.profile-settings-menu-item-danger {
  color: #dc2626;
}
.profile-settings-menu-item-danger:hover:not(:disabled) {
  background: color-mix(in srgb, #ef4444 10%, var(--card-bg));
  color: #dc2626;
}
.profile-settings-menu-divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: var(--line);
}

.profile-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.profile-settings-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
body.header-auth-dialog-open {
  overflow: hidden;
}
.header-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  isolation: isolate;
}
.header-auth-overlay .profile-settings-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}
[data-theme="dark"] .header-auth-overlay .profile-settings-backdrop {
  background: rgba(2, 6, 23, 0.68);
}
.header-auth-overlay .profile-settings-dialog {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  width: min(100%, 26rem);
  margin: auto;
  pointer-events: auto;
}
.profile-settings-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: 0 24px 48px var(--shadow);
  animation: profile-settings-menu-in 0.18s ease-out;
}
.profile-settings-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.profile-settings-dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.profile-settings-dialog-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.profile-settings-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: var(--btn-radius);
  background: var(--paper-alt);
  color: var(--ink-soft);
  font: inherit;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.profile-settings-close svg {
  display: block;
  flex-shrink: 0;
}
.profile-settings-close:hover:not(:disabled) {
  background: var(--line);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.profile-settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-settings-form label {
  margin-top: 0.15rem;
}
.profile-settings-lead {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}
.profile-settings-error {
  margin: 0.15rem 0 0;
  color: var(--error);
  font-size: 0.8125rem;
}
.profile-settings-success {
  margin: 0.15rem 0 0;
  color: var(--success-strong);
  font-size: 0.8125rem;
}
.profile-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.profile-settings-cancel {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  width: auto;
  box-shadow: none;
  cursor: pointer;
}
.profile-settings-cancel:hover:not(:disabled) {
  background: var(--paper-alt);
  color: var(--ink);
  transform: none;
}

.profile-field-locked {
  background: var(--paper-alt);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.92;
}
.profile-confirm-card {
  max-width: 28rem;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px var(--shadow);
}
.profile-strength-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper-alt) 35%, var(--card-bg));
}
.profile-strength-strip-ring {
  --pct: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  background:
    radial-gradient(closest-side, var(--card-bg) 78%, transparent 80% 100%),
    conic-gradient(var(--ink-soft) calc(var(--pct) * 1%), var(--line) 0);
}
.profile-strength-strip-ring[data-complete='true'] {
  color: var(--success-strong);
  background:
    radial-gradient(closest-side, var(--card-bg) 78%, transparent 80% 100%),
    conic-gradient(var(--success-strong) calc(var(--pct) * 1%), var(--line) 0);
}
[data-theme="dark"] .profile-strength-strip-ring[data-complete='true'] {
  color: var(--success);
  background:
    radial-gradient(closest-side, var(--card-bg) 78%, transparent 80% 100%),
    conic-gradient(var(--success) calc(var(--pct) * 1%), var(--line) 0);
}
.profile-strength-strip-items {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-strength-strip-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
}
.profile-strength-strip-items li.done {
  color: var(--ink);
}
.profile-strength-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.profile-strength-strip-items li.done .profile-strength-strip-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--card-bg);
}
.profile-strength-strip-label {
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
@media (hover: hover) and (pointer: fine) {
  .profile-edit-top-link:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}

.profile-form-sheet {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.profile-edit-page--clean .profile-form-sheet {
  --sheet-pad-x: 1rem;
  padding: 0 var(--sheet-pad-x);
  overflow: visible;
}
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-section:last-child {
  border-bottom: none;
}
.profile-section-primary {
  padding-top: 0;
}
.profile-section-head--minimal h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.profile-section-head--minimal p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 36rem;
}
.profile-section-collapsible {
  padding: 0;
  gap: 0;
}
.profile-section-collapsible > .profile-section-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.85rem 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: color 0.15s ease;
}
.profile-section-collapsible > .profile-section-summary::-webkit-details-marker {
  display: none;
}
.profile-section-collapsible > .profile-section-summary::marker {
  content: '';
}
.profile-section-summary-title {
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.profile-section-summary-end {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.profile-section-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--ink-soft);
}
.profile-section-badge--reserved {
  visibility: hidden;
}
.profile-section-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.25rem -0.35rem -0.25rem 0;
  color: var(--ink-soft);
  transition: transform 0.2s ease, color 0.15s ease;
}
.profile-section-collapsible[open] > .profile-section-summary .profile-section-chevron {
  transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .profile-section-collapsible > .profile-section-summary:hover .profile-section-summary-title,
  .profile-section-collapsible > .profile-section-summary:hover .profile-section-chevron {
    color: var(--ink);
  }
}
.profile-section-collapsible .profile-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1.15rem;
}
.profile-section-body-hint {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 36rem;
}

.profile-social-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.profile-social-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 20rem;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.profile-social-connect-btn--facebook {
  color: #1877f2;
  border-color: color-mix(in srgb, #1877f2 35%, var(--line));
  background: color-mix(in srgb, #1877f2 6%, var(--card-bg));
}
@media (hover: hover) and (pointer: fine) {
  .profile-social-connect-btn--facebook:hover {
    border-color: color-mix(in srgb, #1877f2 55%, var(--line));
    background: color-mix(in srgb, #1877f2 10%, var(--card-bg));
    box-shadow: 0 2px 10px color-mix(in srgb, #1877f2 12%, transparent);
  }
}
.profile-social-connect-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.profile-social-connect-error {
  color: var(--error);
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.profile-social-link-unavailable {
  margin: 0;
  max-width: 24rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted-strong);
}
.profile-social-connected {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 24rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: var(--paper-alt);
}
.profile-social-connected--facebook {
  border-color: color-mix(in srgb, #1877f2 30%, var(--line));
  background: color-mix(in srgb, #1877f2 5%, var(--paper-alt));
}
.profile-social-connected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  background: #1877f2;
}
.profile-social-connected-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.profile-social-connected-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.profile-social-connected-name {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.profile-social-connected-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
}
.profile-social-connected-link:hover {
  text-decoration: underline;
}
.profile-social-manual {
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  padding-top: 0.65rem;
}
.profile-social-manual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  user-select: none;
  transition: color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .profile-social-manual-toggle:hover {
    color: var(--ink);
  }
}
.profile-social-manual-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}
.profile-social-manual-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.18s ease;
}
.profile-social-manual-chevron.is-open {
  transform: rotate(180deg);
}
.profile-social-manual-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.profile-social-manual-linked-hint {
  margin: 0;
}

.profile-section-head h2 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.profile-section-head p {
  margin: 0.3rem 0 0.15rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 42rem;
}
.profile-form-sheet .profile-field-label,
.profile-form-sheet label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.profile-form-sheet input,
.profile-form-sheet select,
.profile-form-sheet textarea {
  border-radius: 6px;
  border-color: var(--line);
  background: var(--card-bg);
  box-shadow: none;
}
.profile-bio-textarea {
  min-height: 2.75rem;
  max-height: 14rem;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}
.profile-bio-textarea:focus {
  overflow-y: auto;
}
.profile-edit-page--clean .profile-form-sheet input,
.profile-edit-page--clean .profile-form-sheet select {
  width: 100%;
  max-width: 18rem;
  padding: 0.35rem 0.65rem;
  font-size: max(16px, 0.9375rem);
  line-height: 1.35;
}
.profile-edit-page--clean .profile-form-sheet textarea,
.profile-edit-page--clean .profile-form-sheet .profile-bio-textarea {
  width: calc(100% + 2 * var(--sheet-pad-x));
  max-width: none;
  margin-inline: calc(-1 * var(--sheet-pad-x));
  padding: 0.45rem 0.7rem;
  font-size: max(16px, 0.9375rem);
  line-height: 1.4;
  min-height: 2.75rem;
  max-height: 14rem;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}
.profile-edit-page--clean .profile-form-sheet .profile-bio-textarea:focus {
  overflow-y: auto;
}
.profile-edit-page--clean .profile-section {
  gap: 0.5rem;
  padding: 1rem 0;
}
.profile-edit-page--clean .profile-section-collapsible {
  padding: 0;
  max-width: none;
  margin-inline: calc(-1 * var(--sheet-pad-x));
  width: calc(100% + 2 * var(--sheet-pad-x));
}
.profile-edit-page--clean .profile-section-collapsible > .profile-section-summary {
  min-height: 0;
  width: 100%;
  padding: 0.45rem var(--sheet-pad-x);
  gap: 0.35rem;
}
.profile-edit-page--clean .profile-section-summary-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.profile-edit-page--clean .profile-section-head--minimal h2 {
  font-family: var(--font-display), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.profile-edit-page--clean .profile-section-head--minimal p {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.4;
}
.profile-edit-page--clean .profile-section-summary-end {
  gap: 0.3rem;
}
.profile-edit-page--clean .profile-section-badge {
  font-size: 0.625rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.profile-edit-page--clean .profile-section-chevron {
  width: 1.625rem;
  height: 1.625rem;
  margin: -0.2rem calc(-1 * var(--sheet-pad-x) + 0.15rem) -0.2rem 0;
}
.profile-edit-page--clean .profile-section-collapsible .profile-section-body {
  gap: 0.5rem;
  padding: 0.15rem var(--sheet-pad-x) 0.65rem;
}
.profile-edit-page--clean .profile-section-chevron svg {
  width: 14px;
  height: 14px;
}
.profile-edit-page--clean .profile-section-body-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}
.profile-edit-page--clean .profile-form-sheet .field-row {
  max-width: 28rem;
}
.profile-edit-page--clean .profile-form-sheet .field-row > div {
  min-width: 0;
}
.profile-edit-page--clean .profile-form-sheet .field-row input,
.profile-edit-page--clean .profile-form-sheet .field-row select {
  max-width: none;
}
.profile-form-sheet input:focus,
.profile-form-sheet select:focus,
.profile-form-sheet textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent);
}
.profile-form-sheet .profile-photo-row {
  margin-top: 0;
}
.profile-form-actions {
  padding-top: 0.25rem;
}

.profile-text-btn {
  display: inline-block;
  width: fit-content;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .profile-text-btn:hover {
    text-decoration: underline;
  }
}
.profile-edit-page--clean .upload-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.profile-edit-page--clean .avatar-large {
  box-shadow: none;
  border: 1px solid var(--line);
}
.profile-edit-page--clean .avatar-edit-badge {
  width: 26px;
  height: 26px;
  font-size: 0;
  border-width: 1.5px;
}
.profile-edit-page--clean .profile-roommate-toggle {
  margin-top: 0;
  padding: 0.85rem 0;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.profile-edit-page--clean .profile-switch-track {
  background: var(--paper-alt);
  border-color: var(--line);
  box-shadow: none;
}
.profile-edit-page--clean .profile-switch-thumb {
  box-shadow: none;
}
.profile-edit-page--clean .field-optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.profile-strength-card {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 1.25rem 0 0;
}
.profile-strength-card--inline {
  margin-top: 1rem;
  padding: 1rem 0 0;
}
.profile-strength-card--header {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper-alt) 40%, var(--card-bg));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.profile-strength-card--header .profile-strength-inline {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}
.profile-strength-card--header .profile-completion-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
}
.profile-strength-header-label {
  margin: 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}
.profile-checklist-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: center;
}
.profile-checklist-header li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  min-width: 0;
  min-height: 1.85rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--ink-soft));
  background: var(--card-bg);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.profile-checklist-header li.done {
  color: var(--success-strong);
  background: color-mix(in srgb, var(--success-soft) 78%, var(--card-bg));
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
}
.profile-checklist-header .profile-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--line) 70%, var(--paper-alt));
  color: var(--ink-soft);
}
.profile-checklist-header li.done .profile-check-icon {
  background: var(--success-strong);
  color: #fff;
}
.profile-checklist-header .profile-check-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-strength-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.profile-strength-body {
  flex: 1;
  min-width: 0;
}
.profile-strength-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.profile-strength-copy h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.profile-strength-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}
.profile-strength-card--inline .profile-strength-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.45rem;
}
.profile-strength-card--inline .profile-strength-copy h2 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}
.profile-strength-card--inline .profile-strength-copy p {
  font-size: 0.75rem;
  line-height: 1.35;
}
.profile-strength-card .profile-completion-ring {
  width: 48px;
  height: 48px;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
}
.profile-strength-card--inline .profile-completion-ring {
  width: 52px;
  height: 52px;
  font-size: 0.8125rem;
}
.profile-completion-ring[data-complete='true'] {
  background:
    radial-gradient(closest-side, var(--card-bg) 78%, transparent 80% 100%),
    conic-gradient(var(--success-strong) calc(var(--pct) * 1%), var(--paper-alt) 0);
}
.profile-strength-card--inline .profile-strength-bar {
  margin-top: 0.75rem;
  height: 2px;
}
.profile-strength-bar span {
  background: var(--accent);
}
.profile-strength-card--inline .profile-strength-bar span {
  background: linear-gradient(90deg, var(--accent), var(--success-strong));
}
.profile-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 0.85rem;
}
.profile-checklist-grid li {
  padding: 0.28rem 0;
}
.profile-strength-bar {
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.profile-strength-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.25s ease;
}
.profile-checklist-minimal li {
  border-bottom: none;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  font-weight: 400;
  gap: 0.55rem;
}
.profile-checklist-minimal li.done {
  font-weight: 500;
}
.profile-checklist-minimal .profile-check-icon {
  width: auto;
  color: var(--ink-soft);
}
.profile-checklist-minimal li.done .profile-check-icon {
  color: var(--accent);
}
.profile-strength-card .profile-checklist li {
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}
.profile-strength-card .profile-check-icon {
  font-size: 0.75rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: none;
}
.profile-panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 4px 16px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.profile-panel h2 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.profile-panel-head p {
  margin: 0.35rem 0 0.25rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}
.profile-field-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.field-required {
  color: var(--error);
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1;
  margin-inline-start: 0.12em;
}
.profile-edit-page--wizard .field-required {
  font-size: 0.95em;
}
.listing-wizard-shell .field-required {
  font-size: 1em;
}
.listing-wizard-shell .wizard-form-block-title .field-required {
  font-size: 0.95em;
  vertical-align: super;
  font-weight: 700;
}
.form-field label .field-required,
.wizard-bedroom-select label .field-required {
  margin-inline-start: 0.15em;
}
.field-hint {
  margin: -0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.profile-inline-badge {
  display: inline-flex;
  width: fit-content;
  background: var(--success-soft);
  color: var(--success-strong);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: -0.35rem;
}
.profile-photo-copy { flex: 1; min-width: 180px; }

.profile-edit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}
.profile-completion-card,
.profile-trust-card,
.profile-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px var(--shadow);
}
.profile-completion-card { text-align: center; }
.profile-completion-card h3,
.profile-trust-card h3,
.profile-preview-card h3 {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-display), sans-serif;
  font-size: 1rem;
}
.profile-completion-card p,
.profile-trust-card p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}
.profile-completion-ring {
  --pct: 0;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--card-bg) 78%, transparent 80% 100%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--paper-alt) 0);
  font-family: var(--font-display), sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}
.profile-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.profile-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-checklist li:last-child { border-bottom: none; }
.profile-checklist li.done { color: var(--ink); font-weight: 600; }
.profile-check-icon {
  width: 1.1rem;
  text-align: center;
  flex-shrink: 0;
  color: var(--accent);
}
.profile-trust-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}
.profile-trust-card li + li { margin-top: 0.45rem; }
.profile-preview-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.profile-preview-mini .avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-preview-mini strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.profile-save-btn { width: fit-content; min-width: 160px; }
.profile-save-btn.is-saved {
  cursor: default;
}
@media (max-width: 768px) {
  .profile-save-btn.is-saved {
    background: var(--success-soft);
    color: var(--success-strong);
    border: 1px solid color-mix(in srgb, var(--success) 35%, var(--line));
    opacity: 1;
  }
  .profile-save-toast {
    bottom: calc(5.25rem + var(--safe-bottom, 0px));
  }
}
.profile-error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 25%, var(--line));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.92rem;
}
.profile-success {
  color: var(--success-strong);
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 25%, var(--line));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-public-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0.25rem 0 2.5rem;
}

.profile-public-top {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.profile-public-top-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.profile-public-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.profile-public-meta {
  min-width: 0;
  flex: 1;
}
.profile-public-meta h1 {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.profile-public-since {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.profile-public-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}
.profile-public-badges li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.profile-public-badge-verified {
  color: var(--success-strong);
}

.profile-public-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: none;
}
.profile-public-avatar-btn {
  position: relative;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: zoom-in;
}
.profile-public-avatar-btn:hover .profile-public-avatar {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.profile-public-avatar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 50%;
}
.profile-public-avatar-expand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, rgba(6, 11, 22, 0.55) 70%, transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.profile-public-avatar-btn:hover .profile-public-avatar-expand,
.profile-public-avatar-btn:focus-visible .profile-public-avatar-expand {
  opacity: 1;
}
.profile-public-avatar-placeholder {
  display: grid;
  place-items: center;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-public-sheet {
  display: flex;
  flex-direction: column;
}
.profile-public-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-public-section:last-of-type {
  border-bottom: none;
}
.profile-public-section h2 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.profile-public-page .profile-bio {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}
.profile-public-page .profile-bio-empty {
  font-size: 0.9375rem;
}

.profile-public-facts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}
.profile-public-fact {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: baseline;
  font-size: 0.875rem;
  line-height: 1.45;
}
.profile-public-fact dt {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 400;
}
.profile-public-fact dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}

.profile-public-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
}
.profile-public-social a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .profile-public-social a:hover {
    text-decoration: underline;
  }
}

.profile-avatar-lightbox {
  padding: 1.5rem;
}
.profile-avatar-lightbox-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(92vw, 520px);
  width: 100%;
}
.profile-avatar-lightbox-image {
  display: block;
  width: 100%;
  max-height: min(72dvh, 520px);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.04);
}
.profile-avatar-lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.profile-public-footer {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.profile-public-footer p {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.profile-public-footer .profile-public-report.report-trigger {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0;
  border: none;
  background: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .profile-public-footer .profile-public-report.report-trigger:hover {
    color: var(--ink);
  }
}

.profile-skeleton-hero {
  min-height: 180px;
  margin: var(--bleed-y) var(--bleed-right) 2rem var(--bleed-left);
  border-radius: 0;
  background: linear-gradient(90deg, var(--paper-alt) 25%, var(--line) 50%, var(--paper-alt) 75%);
  background-size: 200% 100%;
  animation: dashboard-shimmer 1.4s ease-in-out infinite;
}
.profile-skeleton-panel,
.profile-skeleton-sidebar {
  min-height: 420px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--paper-alt) 25%, var(--line) 50%, var(--paper-alt) 75%);
  background-size: 200% 100%;
  animation: dashboard-shimmer 1.4s ease-in-out infinite;
}

@media (max-width: 900px) {
  .profile-edit-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile-hero { margin: var(--bleed-y) var(--bleed-right) 1.75rem var(--bleed-left); padding: 2rem 1.25rem; }
  .profile-hero h1 { font-size: 1.65rem; }

  .profile-strength-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .profile-strength-strip-ring {
    align-self: center;
  }
  .profile-strength-strip-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.65rem;
    width: 100%;
    max-width: 100%;
  }
  .profile-strength-strip-items li {
    font-size: 0.75rem;
  }

  .profile-public-top-main {
    align-items: flex-start;
    gap: 0.85rem;
  }
  .profile-public-avatar,
  .profile-public-avatar-btn .profile-public-avatar,
  .profile-public-avatar-placeholder {
    width: 64px;
    height: 64px;
    font-size: 1.15rem;
  }
  .profile-public-fact {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}


/* Landlord dashboard */
.dashboard-page {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: max(1rem, var(--safe-bottom));
}

.dashboard-hero {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.dashboard-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.dashboard-section {
  margin-top: 0;
}
.dashboard-section-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-section-head .dashboard-section-title {
  margin-bottom: 0;
}
.dashboard-page:has(#property-listings) .dashboard-section-roommates {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
#roommate-adverts {
  scroll-margin-top: calc(var(--header-h, 4rem) + 0.75rem);
}
.dashboard-section-empty-cta {
  display: inline-flex;
  text-decoration: none;
}
.dashboard-hero h1 {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.dashboard-new-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  color: white;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.34);
  filter: brightness(0.96);
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}
.dashboard-stat {
  flex: 1 1 0;
  min-width: min(100%, 148px);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem 0.5rem 0.55rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 6px color-mix(in srgb, var(--shadow) 70%, transparent);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dashboard-stat-accent {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  background: linear-gradient(135deg, var(--card-bg) 0%, color-mix(in srgb, var(--success-soft) 45%, var(--card-bg)) 100%);
}
.dashboard-stat-warn {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
  background: linear-gradient(135deg, var(--card-bg) 0%, color-mix(in srgb, #fef3c7 45%, var(--card-bg)) 100%);
}
[data-theme="dark"] .dashboard-stat-warn {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(251, 191, 36, 0.08) 100%);
}
.dashboard-stat-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.dashboard-stat-icon-active {
  background: color-mix(in srgb, var(--success-soft) 70%, var(--paper-alt));
  color: var(--success-strong);
  font-size: 0.78rem;
  font-weight: 800;
}
.dashboard-stat-icon-pending {
  background: color-mix(in srgb, #fef3c7 60%, var(--paper-alt));
}
.dashboard-stat-icon-views {
  background: color-mix(in srgb, var(--accent-soft) 65%, var(--paper-alt));
}
.dashboard-stat-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}
.dashboard-stat-value {
  font-family: var(--font-display), sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.dashboard-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dashboard-stat-accent .dashboard-stat-value {
  color: var(--success-strong);
}
.dashboard-stat-warn .dashboard-stat-value {
  color: #b45309;
}
[data-theme="dark"] .dashboard-stat-warn .dashboard-stat-value {
  color: #fbbf24;
}

.dashboard-error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 25%, var(--line));
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
}

.dashboard-empty {
  text-align: center;
  padding: 3rem 1.75rem;
  background: var(--card-bg);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
}
.dashboard-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.85rem;
}
.dashboard-empty h2 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 1.35rem;
}
.dashboard-empty p {
  margin: 0 0 1.25rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}


/* Dashboard listing list */
.dashboard-list {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--shadow) 65%, transparent);
}
.dashboard-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s ease;
}
.dashboard-row:last-child {
  border-bottom: none;
}
.dashboard-row:hover {
  background: var(--paper-alt);
}
.dashboard-row-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.dashboard-row-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.dashboard-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dashboard-row-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  opacity: 0.45;
}
.dashboard-row-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dashboard-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.dashboard-row-title {
  font-family: var(--font-display), sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  min-width: 0;
}
.dashboard-row-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: white;
  line-height: 1.2;
}
.dashboard-row-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.dashboard-row-managed {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: white;
  line-height: 1.2;
  background: color-mix(in srgb, var(--accent) 82%, #0f172a);
}
.dashboard-status-active { background: rgba(22, 163, 74, 0.92); }
.dashboard-status-pending { background: rgba(217, 119, 6, 0.92); }
.dashboard-status-done { background: rgba(37, 99, 235, 0.88); }
.dashboard-status-inactive { background: rgba(100, 116, 139, 0.88); }
.dashboard-row-price {
  font-family: var(--font-display), sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.dashboard-row-price span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 0.1rem;
}
.dashboard-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.dashboard-row-dot {
  opacity: 0.5;
}
.dashboard-row-purpose {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.dashboard-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.85rem;
}
.dashboard-row-action {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dashboard-row-action:hover:not(:disabled) {
  background: var(--card-bg);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink-soft) 40%, var(--line));
  transform: none;
  box-shadow: none;
}
.dashboard-row-action-accent {
  color: var(--accent-dark);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.dashboard-row-action-accent:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 14%, var(--card-bg));
  color: var(--accent-dark);
  border-color: var(--accent);
}
[data-theme="dark"] .dashboard-row-action-accent {
  color: var(--accent);
}
.dashboard-row-action-danger {
  color: var(--error);
  border-color: color-mix(in srgb, var(--error) 30%, var(--line));
  background: transparent;
}
.dashboard-row-action-danger:hover:not(:disabled) {
  background: var(--error);
  color: white;
  border-color: var(--error);
}
.dashboard-row-skeleton {
  min-height: 120px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  animation: dashboard-pulse 1.4s ease-in-out infinite;
}


/* Listing create / edit form page */
.listing-form-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 2rem;
}
.listing-form-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.listing-form-back:hover { color: var(--accent); }

.listing-form-hero {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  margin: var(--bleed-y) var(--bleed-right) 1.75rem var(--bleed-left);
  background:
    radial-gradient(ellipse 480px 240px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 420px 220px at 95% 110%, color-mix(in srgb, var(--success) 10%, transparent), transparent 70%),
    var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.listing-form-hero .eyebrow { margin-bottom: 0.55rem; }
.listing-form-hero h1 {
  margin: 0 auto 0.55rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 480px;
}
.listing-form-subtitle {
  margin: 0 auto;
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.listing-form-page .listing-form {
  max-width: none;
  gap: 1.1rem;
}
.listing-form-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: 0 4px 18px var(--shadow);
}
.listing-form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.listing-form-step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
}
[data-theme="dark"] .listing-form-step { color: var(--accent); }
.listing-form-card-head h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.listing-form-card-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.listing-form-card .form-section {
  border: none;
  padding: 0;
  gap: 0.85rem;
}
.listing-form-card .form-section legend { display: none; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field-row-label {
  min-height: auto !important;
}

.property-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.property-type-btn {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.property-type-btn:hover { border-color: var(--accent); color: var(--ink); }
.property-type-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
[data-theme="dark"] .property-type-btn.active { color: var(--accent); }

.checkbox-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-alt);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.checkbox-chip input { width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox-chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
}
[data-theme="dark"] .checkbox-chip:has(input:checked) { color: var(--accent); }

.listing-form-card-collapsible {
  padding: 0;
  overflow: hidden;
}
.listing-form-card-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem;
  -webkit-tap-highlight-color: transparent;
}
.listing-form-card-collapsible > summary::-webkit-details-marker { display: none; }
.listing-form-card-collapsible > summary::marker { content: ''; }
.listing-form-card-collapsible > summary::after {
  content: 'âŚ„';
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
  line-height: 1.8;
}
.listing-form-card-collapsible[open] > summary::after { transform: rotate(180deg); }
.listing-form-card-collapsible .listing-form-card-body {
  padding: 0 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.listing-photo-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 148px;
  padding: 1.25rem 1rem;
  border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--paper-alt));
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.listing-photo-drop:hover,
.listing-photo-drop:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--paper-alt));
}
.listing-photo-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.listing-photo-drop-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.listing-photo-drop-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.listing-photo-drop-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 260px;
}
.listing-photo-watermark-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.45;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-bg) 70%, transparent);
  border: 1px solid var(--line);
}
.listing-photo-processing {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
}
[data-theme="dark"] .listing-photo-processing { color: var(--accent); }
.listing-photo-drop.is-processing {
  pointer-events: none;
  opacity: 0.72;
}
.listing-wizard-panel-step3 {
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1.25rem;
}
.wizard-photo-preview.photo-protected {
  position: relative;
}
.listing-photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.listing-photo-preview {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.listing-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 0.25rem;
  padding: 1rem 0 max(1rem, var(--safe-bottom));
  background: linear-gradient(to top, var(--paper) 75%, transparent);
}
.listing-form-footer-inner {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 -4px 24px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.listing-form-ownership {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  align-items: flex-start;
}
.listing-form-ownership input { flex-shrink: 0; margin-top: 0.15rem; }
.listing-form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--error) 10%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--error) 30%, var(--line));
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 600;
}
.listing-form-submit {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: 12px;
}

@media (max-width: 820px) {
  .listing-form-hero {
    margin: var(--bleed-y) var(--bleed-right) 1.5rem var(--bleed-left);
    padding: 1.75rem 1.15rem 1.5rem;
  }
  .listing-form-hero h1 { font-size: 1.65rem; }
}

@media (max-width: 480px) {
  .listing-form-card { padding: 1.1rem 1.05rem 1.15rem; }
  .listing-form-card-collapsible > summary { padding: 1.1rem 1.05rem; }
  .listing-form-card-collapsible .listing-form-card-body { padding: 0 1.05rem 1.1rem; }
  .property-type-grid { grid-template-columns: 1fr 1fr; }
}


/* Listing wizard */
.listing-wizard-shell.listing-form-page {
  max-width: 520px;
}
.listing-wizard-shell.listing-wizard-page {
  display: flex;
  flex-direction: column;
  min-height: calc(
    100dvh - var(--header-height) - (2 * var(--space-page-y)) - var(--safe-bottom)
  );
}
.listing-wizard-page {
  padding-bottom: max(0.75rem, var(--safe-bottom));
}
.listing-wizard-content {
  flex: 1 1 auto;
  min-height: 0;
}

.listing-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.listing-wizard-header-back {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.listing-wizard-header-back:hover {
  color: var(--accent);
}
.listing-wizard-header h1 {
  margin: 0;
  min-width: 0;
  flex: 1;
  text-align: right;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.listing-wizard-stepper {
  margin-bottom: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.listing-wizard-stepper-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.listing-wizard-stepper-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.listing-wizard-stepper-count {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 0;
}
.listing-wizard-stepper-track {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 0;
}
.listing-wizard-stepper-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.listing-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  position: relative;
}
.listing-wizard-steps::before {
  content: '';
  position: absolute;
  top: 1.15rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}
.listing-wizard-step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.listing-wizard-stepper button.listing-wizard-step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 74px;
  padding: 0.4rem 0.25rem 0.45rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.listing-wizard-stepper button.listing-wizard-step-btn:hover:not(:disabled) {
  background: var(--paper-alt);
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}
.listing-wizard-stepper button.listing-wizard-step-btn:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: none;
}
.listing-wizard-step.active button.listing-wizard-step-btn {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.listing-wizard-step.clickable button.listing-wizard-step-btn {
  cursor: pointer;
}
.listing-wizard-stepper button.listing-wizard-step-btn:disabled {
  cursor: default;
  opacity: 1;
}
.listing-wizard-step.future button.listing-wizard-step-btn {
  opacity: 0.72;
}
.listing-wizard-step-circle {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  border: 2px solid var(--line);
  background: var(--card-bg);
  color: var(--ink-soft);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--shadow) 35%, transparent);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.listing-wizard-step.active .listing-wizard-step-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.listing-wizard-step.complete .listing-wizard-step-circle {
  border-color: color-mix(in srgb, var(--success) 50%, var(--line));
  background: color-mix(in srgb, var(--success-soft) 70%, var(--card-bg));
  color: var(--success-strong);
}
.listing-wizard-step-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.25;
  max-width: 5.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-wizard-step.active .listing-wizard-step-name {
  color: var(--ink);
  font-weight: 700;
}
.listing-wizard-step.complete .listing-wizard-step-name {
  color: var(--ink);
}

.listing-wizard-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.listing-wizard-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.listing-wizard-panel-step1,
.listing-wizard-panel-step2,
.listing-wizard-panel-step3 {
  gap: 0;
  padding: 0;
}

.listing-wizard-shell .wizard-form-block-minimal {
  padding: 1.35rem 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  animation: none;
}
.listing-wizard-shell .wizard-form-block-minimal:last-child {
  border-bottom: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.viewing-schedule-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.viewing-schedule-fields .viewing-schedule-mode {
  margin: 0;
}

.viewing-schedule-card {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--card-bg) 96%, transparent) 0%,
      color-mix(in srgb, var(--paper-alt) 55%, var(--card-bg)) 100%
    );
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 12%, transparent);
  overflow: hidden;
}

.viewing-schedule-flexible-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.35rem 1rem 1.5rem;
  text-align: center;
}

.viewing-schedule-flexible-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--card-bg));
  color: var(--accent-dark);
}

.viewing-schedule-flexible-title {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.viewing-schedule-flexible-detail {
  margin: 0;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.viewing-schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
}

.viewing-schedule-toolbar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.viewing-schedule-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.viewing-schedule-fields button.viewing-schedule-quick-btn,
.viewing-schedule-fields button.viewing-schedule-day-toggle {
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.viewing-schedule-quick-btn {
  padding: 0.38rem 0.75rem;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: var(--card-bg);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.viewing-schedule-quick-btn:hover:not(.is-active) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
}

.viewing-schedule-quick-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--card-bg));
  color: var(--accent-dark);
}

.viewing-schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.viewing-schedule-day-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 4.75rem;
  border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: transparent;
  transition: background-color 0.15s ease;
}

.viewing-schedule-day-col:last-child {
  border-right: none;
}

.viewing-schedule-day-col.is-active {
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--card-bg));
}

.viewing-schedule-day-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.35rem 0.45rem;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.viewing-schedule-day-toggle:hover {
  color: var(--ink);
}

.viewing-schedule-day-col.is-active .viewing-schedule-day-toggle {
  color: var(--accent-dark);
}

.viewing-schedule-day-abbr {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.viewing-schedule-day-indicator {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 90%, var(--ink-soft));
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.viewing-schedule-day-col.is-active .viewing-schedule-day-indicator {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: scale(1.08);
}

.viewing-schedule-day-preview {
  display: block;
  padding: 0 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

.viewing-schedule-day-off {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink-soft) 65%, transparent);
}

.viewing-schedule-slots {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.35rem 0.75rem 0.45rem;
  list-style: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.viewing-schedule-slot-row {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.65rem;
  min-height: 2.375rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.viewing-schedule-slot-row:last-child {
  border-bottom: none;
}

.viewing-schedule-slot-day {
  flex: 0 0 2.15rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
}

.viewing-schedule-slot-times {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.viewing-schedule-time-input,
.viewing-schedule-slot-times input[type='time'] {
  width: 6.25rem;
  min-width: 6.25rem;
  min-height: 2rem;
  margin: 0;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: var(--card-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color-scheme: light dark;
}

[data-theme="dark"] .viewing-schedule-time-input,
[data-theme="dark"] .viewing-schedule-slot-times input[type='time'] {
  color-scheme: dark;
  background: color-mix(in srgb, var(--card-bg) 92%, #000);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}

.viewing-schedule-time-input:focus,
.viewing-schedule-slot-times input[type='time']:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.viewing-schedule-time-input::-webkit-calendar-picker-indicator,
.viewing-schedule-slot-times input[type='time']::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
  margin-inline-start: 0.1rem;
}

.viewing-schedule-time-input::-webkit-datetime-edit,
.viewing-schedule-time-input::-webkit-datetime-edit-fields-wrapper,
.viewing-schedule-time-input::-webkit-datetime-edit-hour-field,
.viewing-schedule-time-input::-webkit-datetime-edit-minute-field,
.viewing-schedule-slot-times input[type='time']::-webkit-datetime-edit,
.viewing-schedule-slot-times input[type='time']::-webkit-datetime-edit-fields-wrapper,
.viewing-schedule-slot-times input[type='time']::-webkit-datetime-edit-hour-field,
.viewing-schedule-slot-times input[type='time']::-webkit-datetime-edit-minute-field {
  color: var(--ink);
  font-weight: 700;
}

.viewing-schedule-time-sep {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}

.viewing-schedule-empty,
.viewing-schedule-summary {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.viewing-schedule-empty {
  color: var(--ink-soft);
  border-top: 1px dashed color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--paper-alt) 30%, transparent);
}

.viewing-schedule-summary {
  font-weight: 600;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent-soft) 22%, transparent);
}

.listing-form .viewing-schedule-fields {
  margin-top: 0;
}

.listing-wizard-shell .viewing-schedule-fields button.viewing-schedule-quick-btn:hover:not(:disabled),
.listing-wizard-shell .viewing-schedule-fields button.viewing-schedule-day-toggle:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .viewing-schedule-week {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .viewing-schedule-day-col {
    flex: 0 0 3.35rem;
    min-height: 4.5rem;
  }

  .viewing-schedule-slot-row {
    flex-wrap: wrap;
  }

  .viewing-schedule-slot-times {
    justify-content: flex-start;
    width: 100%;
  }

  .viewing-schedule-time-input,
  .viewing-schedule-slot-times input[type='time'] {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

.listing-edit-form .wizard-form-block,
.listing-edit-form .wizard-form-block-minimal {
  padding: 1rem 0 0;
  margin: 0;
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.listing-edit-form .wizard-form-block-head {
  margin-bottom: 0.55rem;
}

.listing-edit-form .wizard-form-block-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.listing-edit-form .wizard-form-block-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

.listing-edit-form .wizard-form-block-body {
  gap: 0.55rem;
}
.listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-head {
  align-items: flex-start;
  gap: 0;
  margin-bottom: 0.85rem;
}
.listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-head-text {
  min-width: 0;
}
.listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-hint {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-body {
  gap: 0.75rem;
}
.listing-wizard-shell .wizard-inline-note {
  margin: -0.35rem 0 0.5rem;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.listing-wizard-shell .wizard-property-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.listing-wizard-shell .wizard-field-hint {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.listing-wizard-shell .wizard-spec-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.listing-wizard-shell .wizard-spec-fields .form-field select {
  width: 100%;
}


/* Step 2 — extras (furnishing, allowed, amenities) */
.listing-wizard-shell .wizard-extras-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.listing-wizard-shell .wizard-extras-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.listing-wizard-shell .wizard-extras-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  line-height: 1.3;
}
.listing-wizard-shell .wizard-furnishing-toggle {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.listing-wizard-shell .wizard-furnishing-toggle .wizard-furnishing-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0.55rem 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink-soft);
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.listing-wizard-shell .wizard-furnishing-toggle .wizard-furnishing-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--paper-alt);
  transform: none;
}
.listing-wizard-shell .wizard-furnishing-toggle .wizard-furnishing-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}
[data-theme="dark"] .listing-wizard-shell .wizard-furnishing-toggle .wizard-furnishing-btn.active {
  color: #fff;
}

.listing-wizard-shell .wizard-multi-select-field {
  margin: 0;
}
.listing-wizard-shell .wizard-multi-select {
  position: relative;
}
.listing-wizard-shell .wizard-multi-select-field:has(.wizard-multi-select.is-open) {
  position: relative;
  z-index: 50;
}
.listing-wizard-shell .wizard-multi-select.is-open {
  z-index: 50;
}
.listing-wizard-shell .wizard-multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.65rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.listing-wizard-shell .wizard-multi-select-trigger:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.listing-wizard-shell .wizard-multi-select.is-open .wizard-multi-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.listing-wizard-shell .wizard-multi-select-tenant.is-open .wizard-multi-select-trigger {
  border-color: var(--success-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success-strong) 12%, transparent);
}
.listing-wizard-shell .wizard-multi-select-trigger-body {
  flex: 1;
  min-width: 0;
}
.listing-wizard-shell .wizard-multi-select-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.listing-wizard-shell .wizard-multi-select-value.is-placeholder {
  color: var(--ink-soft);
  font-weight: 400;
}
.listing-wizard-shell .wizard-multi-select-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.listing-wizard-shell .wizard-multi-select-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-wizard-shell .wizard-multi-select-tag-tenant {
  background: var(--success-soft);
  color: var(--success-strong);
}
[data-theme="dark"] .listing-wizard-shell .wizard-multi-select-tag-tenant {
  color: var(--success);
}
.listing-wizard-shell .wizard-multi-select-tag-more {
  background: var(--paper-alt);
  color: var(--ink-soft);
}
.listing-wizard-shell .wizard-multi-select-chevron {
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: transform 0.15s ease;
}
.listing-wizard-shell .wizard-multi-select.is-open .wizard-multi-select-chevron {
  transform: rotate(180deg);
}
.listing-wizard-shell .wizard-multi-select-menu {
  position: absolute;
  z-index: 1;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--shadow) 55%, transparent);
  max-height: 14.5rem;
  overflow: auto;
}
.listing-wizard-shell .wizard-multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.listing-wizard-shell .wizard-multi-select-option:hover {
  background: var(--paper-alt);
}
.listing-wizard-shell .wizard-multi-select-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid color-mix(in srgb, var(--ink) 42%, var(--line));
  border-radius: 5px;
  background: var(--card-bg);
  color: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.listing-wizard-shell .wizard-multi-select-option:hover .wizard-multi-select-box:not(.is-checked):not(.is-checked-tenant) {
  border-color: color-mix(in srgb, var(--ink) 58%, var(--line));
  background: var(--paper-alt);
}
.listing-wizard-shell .wizard-multi-select-box.is-checked {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.listing-wizard-shell .wizard-multi-select-box.is-checked-tenant {
  border-color: var(--success-strong);
  background: var(--success-strong);
  color: #fff;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--success-strong) 35%, transparent);
}
.listing-wizard-shell .wizard-multi-select-option-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.listing-wizard-shell .wizard-multi-select-option.is-selected {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}
.listing-wizard-shell .wizard-multi-select-menu-tenant .wizard-multi-select-option.is-selected-tenant {
  background: color-mix(in srgb, var(--success-soft) 70%, transparent);
}

.listing-wizard-shell .wizard-spec-selected {
  margin: 0 0 0.15rem;
}
.listing-wizard-shell .wizard-spec-selected-label {
  font-weight: 600;
  color: var(--ink);
}
.listing-wizard-shell .wizard-amenities-field {
  gap: 0.35rem;
}
.listing-wizard-shell .wizard-amenity-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (min-width: 480px) {
  .listing-wizard-shell .wizard-amenity-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.listing-wizard-shell button.wizard-amenity-chip {
  width: 100%;
  min-height: var(--touch-min);
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.listing-wizard-shell button.wizard-amenity-chip:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--paper-alt);
  color: var(--ink);
}
.listing-wizard-shell button.wizard-amenity-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
[data-theme="dark"] .listing-wizard-shell button.wizard-amenity-chip.active {
  color: var(--accent);
}

.listing-wizard-shell button.wizard-tenant-chip.active {
  border-color: var(--success-strong);
  background: var(--success-soft);
  color: var(--success-strong);
}
.listing-wizard-shell button.wizard-tenant-chip:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--success-strong) 35%, var(--line));
}
.listing-wizard-shell button.wizard-tenant-chip.active:hover:not(:disabled) {
  border-color: var(--success-strong);
  background: color-mix(in srgb, var(--success-soft) 85%, var(--card-bg));
  color: var(--success-strong);
}
[data-theme="dark"] .listing-wizard-shell button.wizard-tenant-chip.active {
  color: var(--success);
}

.listing-wizard-shell .wizard-subsection-label {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.listing-wizard-shell .wizard-tenant-prefs-section,
.listing-wizard-shell .wizard-property-features-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.listing-wizard-shell .wizard-tenant-prefs-hint {
  margin: 0;
}

.listing-wizard-shell .wizard-tenant-prefs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
}
.listing-wizard-shell .wizard-tenant-prefs li + li {
  border-top: 1px solid var(--line);
}
.listing-wizard-shell .wizard-tenant-pref {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--touch-min);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.listing-wizard-shell .wizard-tenant-pref input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.listing-wizard-shell .listing-wizard-panel button.wizard-tile {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: var(--touch-min);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-tile:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--paper-alt);
  color: var(--ink);
  transform: none;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-tile.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: none;
}
[data-theme="dark"] .listing-wizard-shell .listing-wizard-panel button.wizard-tile.active {
  color: var(--accent);
}
.listing-wizard-shell .wizard-bedroom-select {
  margin-top: 0.15rem;
}
.listing-wizard-shell .wizard-bedroom-select select,
.listing-wizard-shell .wizard-property-type-select select,
.listing-wizard-shell .wizard-listing-scope-select select {
  width: 100%;
}
.listing-wizard-shell .wizard-purpose-toggle {
  margin: 0.1rem 0 0.35rem;
}
.listing-wizard-shell .wizard-purpose-toggle .wizard-purpose-btn {
  min-height: var(--touch-min);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
}
.listing-wizard-shell .wizard-pricing-row-sale {
  grid-template-columns: 1fr;
}
.listing-wizard-shell .wizard-scope-tile {
  min-height: var(--touch-min);
  text-align: center;
}
.listing-wizard-shell .wizard-tile-text {
  text-align: center;
  line-height: 1.25;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-bedroom-card {
  min-height: 76px;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  box-shadow: none;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-bedroom-card:hover:not(:disabled) {
  transform: none;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-segment-btn,
.listing-wizard-shell .listing-wizard-panel button.wizard-amenity-btn {
  border-radius: 10px;
  box-shadow: none;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-segment-btn:hover:not(:disabled),
.listing-wizard-shell .listing-wizard-panel button.wizard-amenity-btn:hover:not(:disabled) {
  transform: none;
}
.listing-wizard-shell .listing-wizard-panel button.wizard-counter-btn {
  box-shadow: none;
}
.listing-wizard-shell .listing-photo-drop {
  min-height: 120px;
  padding: 1.15rem 1rem;
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  background: var(--paper-alt);
  gap: 0.35rem;
}
.listing-wizard-shell .listing-photo-drop:hover,
.listing-wizard-shell .listing-photo-drop:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--paper-alt));
}
.listing-wizard-shell .listing-photo-drop-label {
  font-size: 0.92rem;
  font-weight: 600;
}
.listing-wizard-shell .listing-photo-drop-hint {
  font-size: 0.8rem;
}
.listing-wizard-shell .listing-photo-watermark-note {
  font-size: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  line-height: 1.4;
}
.listing-wizard-shell .wizard-preview-card {
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.listing-wizard-shell .wizard-preview-card .seal-badge {
  display: none;
}
.listing-wizard-shell .wizard-ownership-row {
  margin-top: 0.65rem;
  padding: 0.65rem 0 0;
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}

.listing-wizard-shell .wizard-ownership-row input[type='checkbox'] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.listing-wizard-shell .wizard-ownership-copy {
  flex: 1;
  min-width: 0;
}

.listing-wizard-shell .wizard-ownership-copy .field-required {
  font-size: 0.9em;
  vertical-align: text-top;
}
.listing-wizard-shell .listing-form-error {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.86rem;
  background: color-mix(in srgb, var(--error) 8%, var(--paper-alt));
  border: 1px solid color-mix(in srgb, var(--error) 25%, var(--line));
  color: var(--error);
}

.wizard-form-block {
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-alt) 55%, var(--card-bg));
  animation: wizard-section-in 0.28s ease;
}
.wizard-form-block-flush {
  padding-bottom: 0.85rem;
}
.wizard-form-block-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.wizard-form-block-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 35%, transparent);
  color: var(--accent-dark);
}
[data-theme="dark"] .wizard-form-block-icon {
  color: var(--accent);
}
.wizard-form-block-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.wizard-form-block-title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.wizard-form-block-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.wizard-form-block-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.wizard-form-block-flush .wizard-form-block-body {
  gap: 0;
}
.wizard-form-block-flush .wizard-bedroom-embedded {
  animation: none;
}

.wizard-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  animation: wizard-section-in 0.28s ease;
}
.wizard-callout p { margin: 0; }
.wizard-callout-icon { flex-shrink: 0; line-height: 1.4; }
.wizard-callout-info {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
  color: var(--ink-soft);
}

.wizard-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.wizard-property-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 520px) {
  .wizard-property-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wizard-scope-grid {
  grid-template-columns: 1fr 1fr;
}
.wizard-tile-grid-2 { grid-template-columns: 1fr 1fr; }

.listing-wizard-panel button.wizard-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  width: 100%;
  min-height: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 40%, transparent);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.listing-wizard-panel button.wizard-tile:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--paper-alt);
  color: var(--ink);
  transform: translateY(-1px);
}
.listing-wizard-panel button.wizard-tile.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
[data-theme="dark"] .listing-wizard-panel button.wizard-tile.active { color: var(--accent); }

.wizard-tile-icon { font-size: 1.35rem; line-height: 1; }
.wizard-property-grid .wizard-property-tile {
  min-height: 88px;
}
.wizard-scope-tile {
  min-height: 76px;
  flex-direction: row;
  text-align: left;
  padding: 0.85rem 1rem;
  gap: 0.65rem;
}
.wizard-scope-tile .wizard-tile-icon {
  font-size: 1.25rem;
}
.wizard-scope-tile .wizard-tile-text {
  text-align: left;
  flex: 1;
}
.wizard-tile-text { text-align: center; line-height: 1.25; }

.wizard-bedroom-section {
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 40%, transparent);
  animation: wizard-section-in 0.28s ease;
}
.wizard-bedroom-embedded {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  animation: none;
}
@keyframes wizard-section-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-bedroom-header { margin-bottom: 0.95rem; }
.wizard-bedroom-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.wizard-bedroom-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.wizard-bedroom-grid {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.1rem 0.05rem 0.3rem;
  margin: 0 -0.1rem;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.wizard-bedroom-grid::-webkit-scrollbar { height: 4px; }

.listing-wizard-panel button.wizard-bedroom-card {
  position: relative;
  flex: 1 0 108px;
  min-width: 108px;
  max-width: 130px;
  width: auto;
  min-height: 92px;
  padding: 0.8rem 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 40%, transparent);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.listing-wizard-panel button.wizard-bedroom-card:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--card-bg);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow);
}
.listing-wizard-panel button.wizard-bedroom-card:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px var(--shadow);
}
.listing-wizard-panel button.wizard-bedroom-card.active {
  border-color: var(--accent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 80%, white) 0%, var(--card-bg) 100%);
  color: var(--accent-dark);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent) 16%, transparent);
}
.listing-wizard-panel button.wizard-bedroom-card.active:hover:not(:disabled) {
  background: linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 90%, white) 0%, var(--card-bg) 100%);
  border-color: var(--accent);
  color: var(--accent-dark);
}
[data-theme="dark"] .listing-wizard-panel button.wizard-bedroom-card.active { color: var(--accent); }

.wizard-bedroom-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}
.wizard-bedroom-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}
.wizard-bedroom-card-sub {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--ink-soft);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-wizard-panel button.wizard-bedroom-card.active .wizard-bedroom-card-sub {
  background: color-mix(in srgb, var(--accent) 14%, var(--card-bg));
  color: var(--accent-dark);
}
[data-theme="dark"] .listing-wizard-panel button.wizard-bedroom-card.active .wizard-bedroom-card-sub {
  color: var(--accent);
}

.wizard-bedroom-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}

.wizard-type-note {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.wizard-location-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.wizard-location-row {
  gap: 0.75rem;
}
.listing-wizard-panel-step1 .form-field select:disabled,
.listing-wizard-panel-step1 .form-field input:disabled,
.listing-wizard-panel-step1 .form-field .city-autocomplete input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: color-mix(in srgb, var(--paper-alt) 70%, var(--card-bg));
}
.listing-wizard-panel-step1 .form-field .city-autocomplete {
  width: 100%;
}

.wizard-spec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}
.wizard-spec-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wizard-spec-summary-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.wizard-spec-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}
.wizard-spec-metrics-compact {
  grid-template-columns: 1fr 1fr;
}
.wizard-spec-area {
  grid-column: 1 / -1;
}
@media (min-width: 520px) {
  .wizard-spec-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wizard-spec-metrics-compact {
    grid-template-columns: 1fr 1fr;
  }
  .wizard-spec-metrics-compact .wizard-spec-area,
  .wizard-spec-metrics:not(.wizard-spec-metrics-compact) .wizard-spec-area {
    grid-column: auto;
  }
}

.wizard-input-suffix {
  position: relative;
}
.wizard-input-suffix input { width: 100%; padding-right: 2.5rem; }
.wizard-input-suffix-label {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  pointer-events: none;
}

.wizard-counter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-alt);
  width: fit-content;
}
.wizard-counter-field .wizard-counter {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
}
.listing-wizard-panel button.wizard-counter-btn {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 35%, transparent);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.listing-wizard-panel button.wizard-counter-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--paper-alt);
  transform: translateY(-1px);
}
.listing-wizard-panel button.wizard-counter-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wizard-counter-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.wizard-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.listing-wizard-panel button.wizard-segment-btn {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.86rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 35%, transparent);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.listing-wizard-panel button.wizard-segment-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--paper-alt);
  color: var(--ink);
  transform: translateY(-1px);
}
.listing-wizard-panel button.wizard-segment-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
[data-theme="dark"] .listing-wizard-panel button.wizard-segment-btn.active { color: var(--accent); }

.wizard-amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
@media (min-width: 520px) {
  .wizard-amenity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.listing-wizard-panel button.wizard-amenity-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow) 35%, transparent);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.listing-wizard-panel button.wizard-amenity-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--paper-alt);
  color: var(--ink);
  transform: translateY(-1px);
}
.listing-wizard-panel button.wizard-amenity-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
[data-theme="dark"] .listing-wizard-panel button.wizard-amenity-btn.active { color: var(--accent); }

.field-error {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--error);
}

.wizard-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.wizard-photo-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wizard-photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.wizard-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wizard-photo-cover {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
}
.wizard-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wizard-photo-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.wizard-photo-action-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  width: auto;
  min-height: 36px;
  font-family: inherit;
}
.wizard-photo-action-btn:disabled { opacity: 0.45; }
.wizard-photo-action-cover { flex: 1; min-width: 0; }
.wizard-photo-remove {
  width: 100%;
  color: var(--error) !important;
  background: color-mix(in srgb, var(--error) 6%, var(--paper-alt));
  border-color: color-mix(in srgb, var(--error) 22%, var(--line));
}

.wizard-preview-wrap { margin-top: 0.25rem; }
.wizard-preview-heading {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}
.wizard-preview-card {
  max-width: 280px;
  margin-top: 0.75rem;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}
.wizard-preview-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--paper-alt);
}

.listing-wizard-nav {
  position: static;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  z-index: 1;
  padding: 1rem 0 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.listing-wizard-nav-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.listing-wizard-nav-back {
  flex: 0 0 auto;
  min-width: 5rem;
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}
.listing-wizard-nav-next {
  flex: 1;
  min-height: var(--touch-min);
}

@media (max-width: 640px) {
  .listing-wizard-steps {
    overflow-x: auto;
    gap: 0.25rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
  .listing-wizard-step {
    flex: 0 0 88px;
    min-width: 88px;
  }
  .listing-wizard-steps::before { display: none; }
  .listing-wizard-step-name { font-size: 0.66rem; max-width: 4.75rem; }
  .wizard-tile-grid { grid-template-columns: 1fr 1fr; }
  .listing-wizard-panel button.wizard-bedroom-card {
    flex: 0 0 118px;
    min-width: 118px;
    min-height: 96px;
  }
}

@media (min-width: 641px) {
  .wizard-bedroom-grid {
    overflow-x: visible;
    flex-wrap: nowrap;
  }
  .listing-wizard-panel button.wizard-bedroom-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
}


/* â”€â”€ Listing wizard — minimal mobile-first polish â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.listing-wizard-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
  animation: wizard-section-in 0.3s ease;
}
.listing-wizard-skeleton-head,
.listing-wizard-skeleton-stepper,
.listing-wizard-skeleton-block {
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    var(--paper-alt) 0%,
    color-mix(in srgb, var(--line) 35%, var(--paper-alt)) 50%,
    var(--paper-alt) 100%
  );
  background-size: 200% 100%;
  animation: listing-wizard-shimmer 1.4s ease-in-out infinite;
}
.listing-wizard-skeleton-head {
  height: 3rem;
}
.listing-wizard-skeleton-stepper {
  height: 2.5rem;
}
.listing-wizard-skeleton-block {
  height: 12rem;
}
.listing-wizard-skeleton-block-short {
  height: 7rem;
}
@keyframes listing-wizard-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 640px) {
  main:has(.listing-wizard-shell) {
    padding:
      max(0.75rem, var(--safe-top))
      max(1rem, var(--safe-right))
      0
      max(1rem, var(--safe-left));
  }

  .listing-wizard-shell.listing-form-page {
    max-width: none;
  }

  .listing-wizard-shell.listing-wizard-page {
    min-height: calc(
      100dvh - var(--header-height) - max(0.75rem, var(--safe-top)) - max(0.75rem, var(--safe-bottom))
    );
  }

  .listing-wizard-header {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
  }
  .listing-wizard-header h1 {
    font-size: 1.2rem;
  }
  .listing-wizard-header-back {
    font-size: 0.8rem;
  }

  .listing-wizard-stepper {
    margin-bottom: 1.15rem;
  }
  .listing-wizard-stepper-label {
    font-size: 1rem;
  }

  .listing-wizard-shell .wizard-form-block-minimal {
    padding: 1.15rem 0;
  }
  .listing-wizard-shell .wizard-form-block-minimal .wizard-form-block-title {
    font-size: 0.95rem;
  }

  .listing-wizard-shell .wizard-segment {
    flex-direction: column;
  }
  .listing-wizard-shell .wizard-furnishing-toggle {
    flex-direction: column;
    gap: 0.4rem;
  }
  .listing-wizard-shell .wizard-furnishing-toggle .wizard-furnishing-btn {
    flex: none;
    width: 100%;
    min-height: var(--touch-min);
    font-size: 0.86rem;
  }
  .listing-wizard-shell .listing-wizard-panel button.wizard-segment-btn {
    flex: none;
    width: 100%;
    min-height: var(--touch-min);
  }

  .listing-wizard-shell .wizard-amenity-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .listing-wizard-shell button.wizard-amenity-chip {
    min-height: var(--touch-min);
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
  }

  .listing-wizard-shell .wizard-amenity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .listing-wizard-shell .listing-wizard-panel button.wizard-amenity-btn {
    min-height: var(--touch-min);
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  .listing-wizard-shell .listing-wizard-panel button.wizard-bedroom-card {
    flex: 0 0 96px;
    min-width: 96px;
    min-height: 72px;
  }

  .listing-wizard-shell .wizard-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .listing-wizard-shell .listing-wizard-nav {
    padding-top: 0.85rem;
  }
  .listing-wizard-shell .listing-wizard-nav-inner {
    gap: 0.5rem;
  }
  .listing-wizard-shell .listing-wizard-nav-back {
    padding-inline: 0.85rem;
    font-size: 0.86rem;
  }
  .listing-wizard-shell .listing-wizard-nav-next {
    font-size: 0.92rem;
  }
}

@media (max-width: 380px) {
  .listing-wizard-header h1 {
    font-size: 1.1rem;
  }
  .listing-wizard-shell .wizard-property-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }
  .listing-wizard-shell .wizard-amenity-chips {
    grid-template-columns: 1fr;
  }
  .listing-wizard-shell .wizard-amenity-grid {
    grid-template-columns: 1fr;
  }
}


/* App error / not-found pages */
.app-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70dvh, 560px);
  padding: 2rem 0;
}
.app-error-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 18px var(--shadow);
}
.app-error-card h1 {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}
.app-error-card p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.app-error-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}
.app-error-actions .btn-green,
.app-error-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}
.app-error-link {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}
.app-error-link:hover {
  color: var(--accent);
}


/* Dashboard / profile progress card */
.growth-progress-card {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.growth-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.growth-progress-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.growth-progress-percent {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.growth-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-alt);
  overflow: hidden;
}
.growth-progress-track--segmented {
  display: flex;
  gap: 2px;
  background: transparent;
}
.growth-progress-zone {
  display: flex;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-alt);
  overflow: hidden;
}
.growth-progress-zone--social {
  background: color-mix(in srgb, var(--paper-alt) 88%, var(--accent) 12%);
}
.growth-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success-strong));
  transition: width 0.5s ease;
}
.growth-progress-fill--social {
  background: linear-gradient(90deg, var(--success-strong), var(--accent));
}
.growth-progress-legend {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
}
.growth-progress-legend-item--profile {
  flex: 1 1 80%;
  min-width: 0;
}
.growth-progress-legend-item--social {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}
.growth-progress-card--complete .growth-progress-fill {
  background: var(--success-strong);
}
.growth-progress-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.growth-progress-copy--complete {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.growth-progress-cta {
  align-self: flex-start;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}


/* Share & unlock modal */
.growth-share-lead {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.growth-share-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.growth-share-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.growth-share-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.growth-share-option:disabled {
  opacity: 0.6;
  cursor: default;
}
.growth-share-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  background: var(--paper-alt);
  color: var(--accent-dark);
  flex-shrink: 0;
}
[data-theme="dark"] .growth-share-option-icon {
  color: var(--accent);
}
.growth-share-note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.growth-share-confirm {
  margin-top: 0.85rem;
  display: flex;
  justify-content: stretch;
}
.growth-share-confirm .btn-green {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.growth-share-confirm .btn-green:disabled {
  opacity: 0.65;
  cursor: default;
}

.how-it-works-page .growth-onboarding-steps {
  margin-bottom: 1.5rem;
}
.how-it-works-page .growth-onboarding-step {
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 12px;
  background: var(--paper-alt);
}


/* Onboarding micro-modal */
.header-login-dialog {
  width: min(calc(100vw - 2rem), 26rem);
  max-height: min(92vh, 640px);
  overflow-y: auto;
}
.header-login-dialog-body {
  padding-bottom: 0.15rem;
}
.header-login-dialog-body .auth-form-stack {
  margin-top: 1rem;
}
.header-login-dialog .auth-login-switch {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.header-login-dialog .auth-login-switch .auth-inline-link,
.header-login-dialog .auth-login-switch .auth-mode-toggle {
  font-size: inherit;
  font-weight: 650;
}
.header-login-dialog .auth-mode-toggle {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-dark, var(--accent));
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.header-login-dialog .terms-agree-row.header-login-terms {
  margin-top: 0.15rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.growth-onboarding-dialog {
  width: min(calc(100vw - 2rem), 52rem);
  max-height: min(92vh, 720px);
  padding: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1.15rem, 3vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem);
}
.growth-onboarding-dialog .profile-settings-dialog-head {
  margin-bottom: clamp(0.85rem, 2vw, 1.15rem);
}
.growth-onboarding-dialog .profile-settings-dialog-head h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  line-height: 1.25;
}
.growth-onboarding-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 2vw, 1.1rem);
}
.growth-onboarding-step {
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 1vw, 0.55rem);
  padding: clamp(0.95rem, 2.2vw, 1.2rem) clamp(0.95rem, 2.5vw, 1.25rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.growth-onboarding-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.65rem, 4vw, 2rem);
  height: clamp(1.65rem, 4vw, 2rem);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 800;
  flex-shrink: 0;
}
[data-theme="dark"] .growth-onboarding-step-num {
  color: var(--accent);
}
.growth-onboarding-step-title {
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--ink);
  line-height: 1.35;
}
.growth-onboarding-step-text {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  color: var(--ink-soft);
  line-height: 1.55;
}
.growth-onboarding-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
}
.growth-onboarding-actions .btn-green {
  border: none;
  border-radius: 12px;
  padding: clamp(0.65rem, 1.5vw, 0.8rem) clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  min-height: 46px;
  cursor: pointer;
}
@media (min-width: 768px) {
  .growth-onboarding-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .growth-onboarding-dialog {
    width: min(calc(100vw - 1.25rem), 28rem);
  }
  .growth-onboarding-actions .btn-green {
    width: 100%;
  }
}


/* Success toast */
.growth-toast {
  position: fixed;
  bottom: calc(0.75rem + var(--safe-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--success-strong) 35%, var(--line));
  box-shadow: 0 12px 32px var(--shadow);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  max-width: min(92vw, 26rem);
  animation: chat-toast-in 0.2s ease-out;
}
.growth-toast-icon {
  display: inline-flex;
  color: var(--success-strong);
  flex-shrink: 0;
}
[data-theme="dark"] .growth-toast-icon {
  color: var(--success);
}

.listing-ai-enhance-row {
  margin-top: 0.55rem;
}

.listing-ai-enhance-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.listing-ai-enhance-actions .listing-ai-enhance-row {
  margin-top: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.listing-ai-enhance-hint {
  margin: 0;
  max-width: 36rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.listing-ai-enhance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--touch-min, 44px);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: auto;
  max-width: 100%;
}

.listing-ai-enhance-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--card-bg));
}

.listing-ai-enhance-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.listing-ai-enhance-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: listing-ai-spin 0.7s linear infinite;
}

@keyframes listing-ai-spin {
  to { transform: rotate(360deg); }
}

.listing-ai-enhance-error {
  margin-top: 0.35rem;
}

.listing-ai-toast-stack {
  pointer-events: none;
}


/* Legacy locked listing card styles (gate removed — kept for reference) */
.listing-card--locked {
  cursor: default;
}
.listing-card-locked-media {
  position: relative;
  overflow: hidden;
}
.listing-card-locked-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: blur(14px) saturate(0.85);
  transform: scale(1.06);
}
.listing-card-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  background: color-mix(in srgb, var(--paper) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.listing-card-locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: 0 4px 14px var(--shadow);
}
.listing-card-locked-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  text-shadow: 0 1px 6px var(--paper);
}
.listing-card-locked-cta {
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}


/* Listing detail gate */
.listing-gallery-wrap {
  position: relative;
}
.listing-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 30%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.listing-gate-overlay .btn-green,
.listing-gate-contact .btn-green {
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}
.listing-gate-text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  max-width: 26rem;
}
.listing-gate-contact {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper-alt);
  text-align: center;
  align-items: center;
}


/* Profile split-column layout */
.profile-edit-page--split {
  max-width: 1120px;
}

.profile-completion-banner {
  margin: 0 0 1.5rem;
  width: 100%;
}

.profile-split-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 992px) {
  .profile-split-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
  }
}

.profile-split-sidebar {
  min-width: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .profile-split-sidebar {
    grid-column: 1;
  }
  .profile-split-main {
    grid-column: 2;
  }
}

.profile-split-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1.35rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.profile-split-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.profile-split-photo-link {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-split-avatar-wrap .avatar-large {
  width: 7rem;
  height: 7rem;
  font-size: 2.5rem;
}

.profile-split-name {
  margin: 0;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0.2rem 0.45rem;
  box-shadow: none;
}

.profile-split-name:focus {
  outline: none;
  border-color: var(--line);
  background: var(--paper-alt);
}

.profile-split-since {
  margin: -0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.profile-split-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.1rem;
}

.profile-split-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  line-height: 1.25;
}

.profile-split-badge--role {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 7%, var(--card-bg));
  border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.profile-split-badge--verified {
  color: var(--success-strong);
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  background: var(--success-soft);
}

.profile-split-badges .social-verified-badge {
  max-width: 100%;
}

@media (max-width: 640px) {
  .profile-split-badges {
    gap: 0.3rem;
    padding-inline: 0.15rem;
  }
  .profile-split-badge,
  .profile-split-badges .social-verified-badge--compact {
    font-size: clamp(0.625rem, 2.5vw, 0.68rem);
    max-width: 100%;
  }
  .profile-split-badges .social-verified-badge-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.profile-split-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.15rem;
}

.profile-split-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  box-shadow: none;
}

.profile-split-btn--primary {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-dark);
}

@media (max-width: 768px) {
  .profile-split-btn--share {
    display: none;
  }
}

.profile-split-sidebar-fields {
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-split-sidebar-fields label {
  font-size: 0.78rem;
}

.profile-split-sidebar-fields input {
  width: 100%;
}

.profile-split-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.profile-split-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-split-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.profile-split-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.profile-split-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-split-panel-link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.profile-split-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.profile-social-connections {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.profile-social-connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-alt);
}

.profile-social-connection-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.profile-social-connection-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.profile-social-connection-status--linked {
  color: var(--success-strong);
}

.profile-edit-page--split .profile-section,
.profile-edit-page--split .profile-section-collapsible {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.profile-edit-page--split .profile-section-collapsible > .profile-section-summary {
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
}

.profile-edit-page--split .profile-section-collapsible[open] > .profile-section-summary {
  margin-bottom: 0.85rem;
}

.profile-edit-page--split .profile-section-summary-title {
  font-family: var(--font-sans), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-edit-page--split .profile-section-collapsible .profile-section-body {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.profile-edit-page--split .profile-form-actions {
  margin-top: 0.25rem;
}

.profile-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.profile-listings-grid--loading {
  min-height: 6rem;
}

.profile-listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.profile-listing-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-listing-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem 0.65rem;
  min-width: 0;
}

.profile-listing-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-listing-card-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.profile-listing-card-location {
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-listing-skeleton {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--paper-alt), var(--card-bg), var(--paper-alt));
  background-size: 200% 100%;
  animation: profile-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes profile-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (hover: hover) {
  .profile-split-btn:hover,
  .profile-split-panel-link:hover,
  .profile-listing-card:hover {
    border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  }
}

.profile-edit-page--split .profile-skeleton-split {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 992px) {
  .profile-edit-page--split .profile-skeleton-split {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr);
    gap: 2rem;
  }
}

@media (max-width: 991px) {
  .profile-edit-page--split {
    max-width: 100%;
    padding-bottom: calc(0.5rem + var(--safe-bottom, 0px));
  }

  .profile-split-sidebar,
  .profile-split-main {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .profile-edit-page--split {
    padding-bottom: 0.25rem;
  }

  .profile-edit-page--split .profile-completion-banner {
    margin-bottom: 0.75rem;
  }

  .profile-edit-page--split .growth-progress-card {
    margin: 0;
    padding: 0.75rem 0.85rem;
    gap: 0.45rem;
    border-radius: 12px;
  }

  .profile-edit-page--split .growth-progress-title {
    font-size: 0.9375rem;
  }

  .profile-edit-page--split .growth-progress-copy {
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .profile-edit-page--split .growth-progress-cta {
    width: 100%;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.5rem 0.85rem;
  }

  .profile-split-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .profile-split-sidebar {
    order: 1;
  }

  .profile-split-main {
    order: 2;
  }

  .profile-split-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 0.9rem;
    text-align: center;
    border-radius: 12px;
  }

  .profile-split-photo-link {
    display: inline-flex;
  }

  .profile-split-avatar-wrap .avatar-large {
    width: 5rem;
    height: 5rem;
    font-size: 1.75rem;
  }

  .profile-split-avatar-wrap .avatar-edit-badge {
    width: 1.65rem;
    height: 1.65rem;
  }

  .profile-split-name {
    width: 100%;
    font-size: 1.0625rem;
    text-align: center;
    padding: 0.15rem 0.45rem;
  }

  .profile-split-since {
    margin: -0.25rem 0 0;
    font-size: 0.75rem;
  }

  .profile-split-badges {
    justify-content: center;
    margin-top: 0;
    gap: 0.3rem;
  }

  .profile-split-actions {
    display: none;
  }

  .profile-split-sidebar-footer {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.15rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
  }

  .profile-split-sidebar-footer > .profile-settings {
    flex: 1;
    min-width: 0;
  }

  .profile-split-sidebar-footer > .profile-settings .profile-settings-trigger {
    width: 100%;
    min-height: 2.5rem;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    border-radius: 10px;
  }

  .profile-split-sidebar-footer > .profile-split-btn--view {
    flex: 1;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    border-radius: 10px;
  }

  .profile-split-sidebar-fields {
    width: 100%;
    margin-top: 0.1rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    text-align: left;
    gap: 0.45rem;
  }

  .profile-split-sidebar-fields label {
    font-size: 0.72rem;
  }

  .profile-split-sidebar-fields .field-hint {
    font-size: 0.72rem;
    margin-top: -0.15rem;
  }

  .profile-split-sidebar-fields .profile-roommate-toggle {
    margin-top: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
  }

  .profile-split-sidebar-fields .profile-roommate-toggle-label {
    font-size: 0.78rem;
  }

  .profile-split-sidebar-fields .profile-roommate-toggle-hint {
    font-size: 0.68rem;
  }

  .profile-split-sidebar-fields .profile-phone-visibility-status {
    font-size: 0.68rem;
  }

  .profile-split-main {
    gap: 0.65rem;
  }

  .profile-edit-page--split .profile-form-sheet {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-bg);
    overflow: hidden;
  }

  .profile-edit-page--split .profile-split-panel {
    padding: 0.8rem 0.85rem;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .profile-edit-page--split .profile-split-panel:last-child {
    border-bottom: none;
  }

  .profile-edit-page--split .profile-split-panel-head {
    margin-bottom: 0.65rem;
  }

  .profile-edit-page--split .profile-split-panel-title {
    font-size: 0.9375rem;
  }

  .profile-edit-page--split .profile-section-collapsible[open] > .profile-section-summary {
    margin-bottom: 0.65rem;
  }

  .profile-edit-page--split .profile-section-summary-title {
    font-size: 0.9375rem;
  }

  .profile-edit-page--split .profile-social-connection {
    padding: 0.45rem 0.55rem;
  }

  .profile-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .profile-edit-page--split .profile-form-actions {
    position: sticky;
    z-index: 25;
    bottom: calc(4.75rem + var(--safe-bottom, 0px));
    margin: 0.35rem 0 0;
    padding: 0.55rem 0 0.15rem;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--paper) 0%, transparent) 0%,
      color-mix(in srgb, var(--paper) 88%, transparent) 32%,
      var(--paper) 100%
    );
  }

  .profile-edit-page--split .profile-save-btn {
    min-height: 2.5rem;
    border-radius: 999px;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}


/* Roommate advert create wizard */
.roommate-create-page {
  --roommate-panel-bg: var(--card-bg);
  --roommate-panel-border: var(--line);
  --roommate-chip-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  --roommate-control-bg: var(--card-bg);
  --roommate-surface-bg: var(--paper-alt);
}
[data-theme="dark"] .roommate-create-page {
  --roommate-panel-bg: rgba(11, 15, 25, 0.82);
  --roommate-panel-border: rgba(148, 163, 184, 0.16);
  --roommate-chip-glow: rgba(59, 130, 246, 0.35);
  --roommate-control-bg: rgba(15, 23, 42, 0.65);
  --roommate-surface-bg: rgba(15, 23, 42, 0.65);
}

.roommate-wizard-header {
  align-items: flex-start;
}

.roommate-wizard-header-copy {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.roommate-wizard-header-copy h1 {
  flex: none;
  min-width: 0;
  width: auto;
}

.roommate-create-lead {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .roommate-wizard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .roommate-wizard-header-copy {
    text-align: left;
  }
}

.roommate-wizard-panel {
  background: var(--roommate-panel-bg);
  border: 1px solid var(--roommate-panel-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  color: var(--ink);
  box-shadow: 0 4px 18px var(--shadow);
}

[data-theme="dark"] .roommate-wizard-panel {
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

.roommate-wizard-panel-head h2 {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.roommate-wizard-panel-head p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.roommate-type-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .roommate-type-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.roommate-type-card {
  min-height: 5.5rem;
  border-radius: 1rem;
  border: 1px solid var(--roommate-panel-border, var(--line));
  background: var(--roommate-control-bg, var(--card-bg));
  color: var(--ink);
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.roommate-type-card.is-selected {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 0 24px var(--roommate-chip-glow);
}

.roommate-type-card-label {
  font-weight: 600;
  line-height: 1.35;
}

.roommate-chip-field + .roommate-chip-field {
  margin-top: 1rem;
}

.roommate-chip-label {
  margin: 0 0 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.roommate-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roommate-chip {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--roommate-panel-border, var(--line));
  background: var(--roommate-surface-bg, var(--paper-alt));
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.roommate-chip.is-selected {
  border-color: rgba(59, 130, 246, 0.8);
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--card-bg));
  color: var(--ink);
  box-shadow: 0 0 18px var(--roommate-chip-glow);
}

.roommate-wizard-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.roommate-wizard-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--roommate-panel-border, var(--line));
  background: var(--roommate-control-bg, var(--card-bg));
  color: var(--ink);
  font: inherit;
}

.roommate-wizard-field > span,
.roommate-wizard-field label,
.roommate-wizard-field .form-label {
  color: var(--ink);
}

.roommate-wizard-field input:not([type='checkbox']):not([type='file']) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--roommate-panel-border, var(--line));
  background: var(--roommate-control-bg, var(--card-bg));
  color: var(--ink);
  font: inherit;
}

.roommate-wizard-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .roommate-wizard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.roommate-wizard-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.roommate-wizard-photo-block {
  margin-top: 1.25rem;
}

.roommate-wizard-terms {
  max-width: 520px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
}

.roommate-wizard-terms .field-error {
  margin: 0.5rem 0 0;
}

.roommate-photo-drop {
  margin-top: 0.5rem;
}

.roommate-wizard-photo-block .wizard-photo-grid {
  margin-top: 0.85rem;
}

.roommate-advert-preview {
  margin-top: 1.25rem;
}

.roommate-advert-preview-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

.roommate-advert-preview-hint {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.roommate-advert-card,
.roommate-advert-card-preview {
  display: grid;
  gap: 0.85rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 16px var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .roommate-advert-card,
[data-theme="dark"] .roommate-advert-card-preview {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(11, 15, 25, 0.88);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

@media (min-width: 640px) {
  .roommate-advert-card,
  .roommate-advert-card-preview {
    grid-template-columns: 140px 1fr;
  }
}

.roommate-advert-card:hover,
.roommate-advert-card:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

.roommate-advert-card-photo-link,
.roommate-advert-card-body-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.roommate-advert-card-photo-link {
  height: 100%;
}

.roommate-advert-card-actions {
  grid-column: 1 / -1;
  padding: 0 0.95rem 0.95rem;
}

.roommate-advert-message-btn {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.roommate-advert-message-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.roommate-advert-detail-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.roommate-advert-detail-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 860px) {
  .roommate-advert-detail-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: start;
  }
}

.roommate-advert-detail-body {
  display: grid;
  gap: 1.25rem;
}

.roommate-advert-detail-gallery {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.roommate-advert-detail-gallery .photo-gallery {
  margin: 0;
}

.roommate-advert-detail-gallery .gallery-stage {
  aspect-ratio: 16 / 10;
}

.roommate-advert-detail-gallery .gallery-slide {
  min-height: 100%;
}

.roommate-advert-detail-gallery .gallery-slide .photo-protected-frame,
.roommate-advert-detail-gallery .gallery-slide .photo-protected-frame img,
.roommate-advert-detail-gallery .gallery-slide .photo-protected-frame .gallery-slide-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.roommate-advert-detail-header {
  display: grid;
  gap: 0.65rem;
}

.roommate-advert-detail-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.roommate-advert-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.roommate-advert-detail-author:hover .roommate-advert-detail-author-name {
  color: var(--accent);
}

.roommate-advert-detail-author-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.roommate-advert-detail-author-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.roommate-advert-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}

.roommate-advert-detail-fact {
  display: grid;
  gap: 0.2rem;
}

.roommate-advert-detail-fact-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.roommate-advert-detail-fact-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.roommate-advert-detail-spec-group {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem 1.05rem;
  background: var(--card-bg);
}

.roommate-advert-detail-spec-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.roommate-advert-detail-spec-list {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.roommate-advert-detail-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.roommate-advert-detail-spec-row dt {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.roommate-advert-detail-spec-row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.roommate-advert-detail-contact {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.25rem;
  background: var(--card-bg);
}

.roommate-advert-detail-contact h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

@media (max-width: 640px) {
  .roommate-advert-detail-spec-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.roommate-advert-card-photo {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  background: var(--paper-alt);
}

[data-theme="dark"] .roommate-advert-card-photo {
  background: rgba(30, 41, 59, 0.8);
}

.roommate-advert-card-photo-empty {
  min-height: 120px;
}

.roommate-advert-card-body {
  padding: 0.85rem 0.95rem 1rem;
}

.roommate-advert-card-body h3 {
  margin: 0.35rem 0 0.25rem;
  color: var(--ink);
}

.roommate-advert-card-author {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.roommate-advert-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.roommate-advert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.roommate-advert-badge-accent {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--card-bg));
  color: var(--accent-dark);
  box-shadow: none;
}

[data-theme="dark"] .roommate-advert-badge {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.65);
}

[data-theme="dark"] .roommate-advert-badge-accent {
  border-color: rgba(59, 130, 246, 0.55);
  background: transparent;
  color: #93c5fd;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}

.roommate-advert-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.roommate-advert-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.roommate-advert-tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--roommate-panel-border, var(--line));
  background: var(--roommate-surface-bg, var(--paper-alt));
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.25;
}

.roommates-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.roommates-create-cta {
  white-space: nowrap;
}

.roommate-adverts-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .roommate-adverts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.roommates-adverts-section h2,
.roommates-seekers-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.roommates-empty {
  color: var(--text-muted);
}


/* Roommate adverts dashboard */
.roommate-dashboard-page .dashboard-hero-top {
  align-items: flex-start;
}

.roommate-dashboard-lead {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 34rem;
}

.roommate-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roommate-dashboard-empty {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--paper-alt);
}

.roommate-dashboard-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.roommate-dashboard-row-photo {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}

.roommate-dashboard-row-photo-empty {
  background: linear-gradient(135deg, var(--paper-alt), color-mix(in srgb, var(--line) 35%, var(--paper-alt)));
}

.roommate-dashboard-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.roommate-dashboard-row-top h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.roommate-dashboard-row-meta {
  margin: 0.25rem 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.roommate-dashboard-row-actions {
  flex-wrap: wrap;
}

.dashboard-status-pill {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-status-active {
  background: var(--success-soft);
  color: var(--success-strong);
}

.dashboard-status-inactive {
  background: var(--paper-alt);
  color: var(--ink-soft);
}


/* Mobile UX polish — roommate wizard, AI actions, photos */
@media (max-width: 640px) {
  .listing-ai-enhance-actions {
    flex-direction: column;
    gap: 0.45rem;
  }

  .listing-ai-enhance-actions .listing-ai-enhance-row,
  .listing-ai-enhance-actions .listing-ai-enhance-btn {
    width: 100%;
  }

  .listing-ai-enhance-btn span {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .roommate-wizard-panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .roommate-wizard-panel-head h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .roommate-wizard-panel-head p {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .roommate-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .roommate-chip-row::-webkit-scrollbar {
    display: none;
  }

  .roommate-chip {
    flex: 0 0 auto;
    max-width: 100%;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
  }

  .roommate-type-card {
    min-height: 4.5rem;
    padding: 0.85rem;
  }

  .roommate-type-card-label {
    font-size: 0.92rem;
  }

  .roommate-wizard-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .roommate-wizard-field {
    margin-top: 0.65rem;
  }

  .roommate-advert-preview {
    margin-top: 1rem;
  }

  .roommate-advert-preview-title {
    font-size: 0.9rem;
  }

  .roommate-advert-card-photo {
    width: 100%;
    height: auto;
    max-height: 168px;
    min-height: 112px;
    object-fit: cover;
  }

  .roommate-advert-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .roommate-advert-card-body h3 {
    font-size: 0.95rem;
  }

  .roommate-advert-tag-row {
    gap: 0.3rem;
  }

  .roommate-advert-tag {
    font-size: 0.72rem;
    min-height: 1.75rem;
    padding: 0.15rem 0.55rem;
  }

  .roommate-advert-card-facts {
    font-size: 0.82rem;
    gap: 0.35rem 0.55rem;
  }

  .listing-wizard-shell .wizard-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .listing-wizard-shell .wizard-photo-preview {
    aspect-ratio: 4 / 3;
    max-height: 128px;
  }

  .roommate-dashboard-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .roommate-dashboard-row-photo {
    width: 72px;
    height: 54px;
  }

  .roommate-dashboard-page .dashboard-new-btn {
    width: 100%;
    justify-content: center;
  }

  .roommate-dashboard-page .dashboard-hero-top {
    flex-direction: column;
    gap: 0.85rem;
  }

  .roommate-create-lead {
    font-size: 0.84rem;
  }
}
