.account-data-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-glass);
}

.account-data-panel h2,
.account-data-panel p {
  margin-top: 0;
}

.account-delete-panel {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.account-delete-panel > summary {
  width: fit-content;
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
}

.account-delete-panel form {
  max-width: 520px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .account-data-panel {
    grid-template-columns: 1fr;
  }

  .account-data-panel > .button {
    width: 100%;
  }
}

:root {
  --bg: #050813;
  --bg-deep: #090d19;
  --surface: rgba(11, 16, 29, 0.9);
  --surface-strong: #0d1321;
  --surface-soft: rgba(17, 23, 38, 0.82);
  --surface-glass: rgba(14, 19, 33, 0.72);
  --text: #f5f7fb;
  --muted: #97a0b6;
  --muted-strong: #c0c7d8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 116, 39, 0.38);
  --accent: #ff6a1a;
  --accent-strong: #ff8a42;
  --accent-soft: rgba(255, 106, 26, 0.14);
  --accent-glow: rgba(255, 106, 26, 0.22);
  --success: #63d2a8;
  --warning: #ffba52;
  --danger: #ff7373;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --text-xs: 0.74rem;
  --text-sm: 0.86rem;
  --text-base: 0.96rem;
  --text-md: 1.02rem;
  --text-lg: 1.14rem;
  --text-xl: 1.3rem;
  --display-sm: 2.1rem;
  --display-md: 2.6rem;
  --display-lg: 3.2rem;
  --scroll-track: #24100a;
  --scroll-track-deep: #120806;
  --scroll-thumb-a: #ff8a42;
  --scroll-thumb-b: #ff4d25;
  --scroll-thumb-c: #b91f15;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--scroll-thumb-b) transparent;
  scrollbar-width: thin;
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

html::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  min-height: 64px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background:
    linear-gradient(180deg, var(--scroll-thumb-a), var(--scroll-thumb-b) 48%, var(--scroll-thumb-c)),
    var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 10px rgba(255, 77, 37, 0.16);
}

html::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #ffad68, #ff5f30 48%, #d72a1a),
    var(--accent-strong);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.16), transparent 28%),
    radial-gradient(circle at top center, rgba(65, 92, 163, 0.13), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 106, 26, 0.1), transparent 22%),
    linear-gradient(180deg, #050813 0%, #070b17 38%, #0a0f1c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(255, 255, 255, 0.02) 28px,
      rgba(255, 255, 255, 0.02) 29px
    );
  opacity: 0.42;
}

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

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

button {
  cursor: pointer;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
.hero,
.feature-card,
.listing-card,
.filter-card,
.auth-frame,
.form-card,
.note-card,
.detail-card,
.empty-state,
.flash,
.results-head {
  backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 16, 29, 0.82);
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.hero h1,
.section-head h1,
.section-head h2,
.detail-card h1,
.auth-story h1,
.auth-panel h2,
.form-card h1 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background: #ffffff;
  color: white;
  font-weight: 800;
  box-shadow: 0 0 32px rgba(255, 106, 26, 0.18);
}

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

.brand > span:last-child {
  min-width: 0;
}

.brand > span:last-child strong,
.brand > span:last-child small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav form {
  margin: 0;
}

.language-switcher label {
  display: block;
}

.language-switcher > label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-switcher select {
  min-height: 38px;
  width: auto;
  min-width: 118px;
  padding: 0 34px 0 13px;
  border-radius: 14px;
  border-color: var(--line);
  background-color: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.verification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.verification-form {
  min-width: 0;
}

.verification-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.verification-side-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 118px;
}

.verification-checklist {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.verification-checklist li {
  position: relative;
  padding-left: 18px;
}

.verification-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 16px rgba(255, 112, 36, 0.45);
}

.ai-review-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 112, 36, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 26, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.ai-review-card.compact {
  margin-top: 12px;
  padding: 12px;
}

.ai-review-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.main-nav > a:not(.button),
.main-nav button.text {
  color: var(--muted-strong);
}

.nav-role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 106, 26, 0.26);
  border-radius: 999px;
  background: rgba(255, 106, 26, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.notification-bell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 138, 66, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
  color: var(--accent-strong);
}

.notification-bell::before {
  content: "";
  width: 13px;
  height: 15px;
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 10px 10px 7px 7px;
  transform: translateY(1px);
}

.notification-bell::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 6px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.notification-bell > span {
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  color: transparent;
}

.notification-bell strong {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #0b1020;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a42, #ff3d25);
  color: white;
  font-size: 0.7rem;
  line-height: 1;
}

.nav-label-short {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  box-shadow: 0 18px 36px rgba(255, 106, 26, 0.22);
}

.button.secondary,
.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button.text {
  background: transparent;
  padding-inline: 8px;
  min-height: auto;
}

.button.danger {
  color: var(--danger);
}

.flash-stack {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.flash {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 19, 33, 0.92);
}

.flash.success {
  border-color: rgba(99, 210, 168, 0.22);
}

.flash.error {
  border-color: rgba(255, 106, 26, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  margin-top: 24px;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.95), rgba(8, 11, 23, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: var(--text-xs);
  font-weight: 800;
}

.hero h1,
.section-head h1,
.section-head h2,
.detail-card h1,
.auth-story h1,
.auth-panel h2,
.form-card h1 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: var(--display-lg);
  max-width: 11ch;
}

.hero-text,
.section-text,
.listing-card p,
.feature-card p,
.auth-note,
.note-card li,
.detail-card p,
.auth-story-copy p,
.auth-panel-copy p,
.auth-feature-item p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.dashboard-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-search {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 8px;
}

.hero-search input:focus {
  outline: none;
}

.stats-grid,
.feature-grid,
.listing-grid,
.detail-grid,
.auth-feature-list {
  display: grid;
  gap: 18px;
}

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

.stat-card,
.manifesto-card,
.results-head {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card span,
.manifesto-card p,
.results-head p {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.9rem;
  color: var(--text);
}

.manifesto-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.11), rgba(52, 88, 172, 0.12));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.feature-card,
.listing-card,
.filter-card,
.form-card,
.note-card,
.detail-card,
.empty-state,
.auth-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

.feature-card,
.listing-card,
.filter-card,
.form-card,
.note-card,
.detail-card,
.empty-state {
  overflow: hidden;
  padding: 24px;
}

.feature-card h2,
.detail-card h2,
.filter-card h2,
.results-head h2,
.note-card h2 {
  margin: 0 0 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.22rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 18px;
}

.catalog-section-head {
  margin-top: 24px;
}

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

.catalog-grid {
  align-content: start;
}

.listing-card {
  position: relative;
  overflow: hidden;
}

.listing-card-photo {
  display: block;
  overflow: hidden;
  margin: -6px -6px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.13), transparent 36%),
    rgba(5, 8, 19, 0.72);
}

.listing-card-photo img {
  display: block;
  width: 100%;
  height: 180px;
  padding: 8px;
  object-fit: contain;
}

.listing-card::before,
.feature-card::before,
.detail-card::before,
.form-card::before,
.filter-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.62), transparent 40%);
  pointer-events: none;
}

.listing-card h2,
.listing-card h3 {
  margin: 16px 0 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.accent {
  border-color: rgba(255, 106, 26, 0.24);
  background: rgba(255, 106, 26, 0.12);
  color: #ffd8bf;
}

.pill.success {
  border-color: rgba(99, 210, 168, 0.22);
  background: rgba(99, 210, 168, 0.1);
  color: #d4fff0;
}

.pill.warning {
  border-color: rgba(255, 186, 82, 0.24);
  background: rgba(255, 186, 82, 0.1);
  color: #ffe6b8;
}

.pill.danger {
  border-color: rgba(255, 88, 72, 0.3);
  background: rgba(255, 88, 72, 0.11);
  color: #ffd2cd;
}

.moderation-reason {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 88, 72, 0.26);
  border-radius: 16px;
  background: rgba(255, 88, 72, 0.08);
  color: #ffd2cd;
  font-weight: 800;
}

.form-error-panel {
  padding: 16px;
  border: 1px solid rgba(255, 88, 72, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 88, 72, 0.18), transparent 38%),
    rgba(255, 88, 72, 0.075);
  color: #ffd2cd;
}

.form-error-panel strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
}

.form-error-panel p {
  margin: 8px 0 0;
  color: #ffd2cd;
}

.form-error-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.form-error-panel li + li {
  margin-top: 6px;
}

.listing-location {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-weight: 700;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.catalog-layout,
.form-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

.results-panel {
  display: grid;
  gap: 18px;
}

.filter-card {
  position: sticky;
  top: 108px;
  padding: 22px;
}

.filter-header {
  margin-bottom: 20px;
}

.filter-form,
.form-grid,
.checkbox-grid {
  display: grid;
  gap: 16px;
}

.filter-section {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.choice-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill-group-column {
  display: grid;
}

.choice-pill {
  position: relative;
  min-width: 0;
}

.choice-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: auto;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-pill input:checked + span {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(255, 255, 255, 0.04));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 106, 26, 0.08);
}

.choice-pill-wide span {
  justify-content: center;
  width: 100%;
}

.filter-form-compact {
  gap: 12px;
}

.filter-accordion {
  display: grid;
  gap: 10px;
}

.filter-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 106, 26, 0.05), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.filter-group[open] {
  border-color: rgba(255, 106, 26, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-group summary {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 10px 40px 10px 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.filter-group[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}

.filter-group summary span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.filter-group summary em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-group-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.market-filter-panel {
  padding: 16px;
}

.market-filter-panel .filter-header {
  margin-bottom: 12px;
}

.market-filter-panel .filter-header h2 {
  font-size: 1.18rem;
}

.market-filter-panel .filter-section {
  gap: 8px;
  padding-bottom: 10px;
}

.market-filter-panel .filter-group-body .filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.market-filter-panel label span,
.market-filter-panel .filter-label {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.market-filter-panel input,
.market-filter-panel select {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  font-size: 0.88rem;
}

.market-filter-panel select {
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
}

.market-filter-panel .choice-pill-group {
  gap: 8px;
}

.market-filter-panel .choice-pill span {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.market-filter-panel .split-filter-row {
  gap: 8px;
}

.amenity-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.amenity-pill-grid .choice-pill span {
  width: 100%;
}

.filter-actions-compact {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 12, 24, 0.72);
}

.form-choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-search-shell {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 26, 0.18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(99, 210, 168, 0.12), transparent 30%),
    rgba(11, 16, 29, 0.84);
  box-shadow: var(--shadow);
}

.market-search-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.market-search-head h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: var(--display-sm);
  line-height: 1;
}

.market-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr) minmax(190px, 0.45fr) auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.market-search-input {
  position: relative;
}

.market-search-input span {
  position: absolute;
  left: 18px;
  top: 9px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-search-input input,
.market-search-input select {
  min-height: 58px;
  padding: 25px 16px 9px;
  border-radius: 18px;
  background: rgba(5, 8, 19, 0.72);
}

.market-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
}

.market-category-strip a.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 106, 26, 0.14);
  color: var(--text);
}

.market-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.market-filter-panel {
  position: sticky;
  top: 108px;
}

.market-results {
  display: grid;
  gap: 16px;
}

.market-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 16, 29, 0.74);
  box-shadow: var(--shadow);
}

.market-results-toolbar h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.45rem;
}

.market-list {
  display: grid;
  gap: 14px;
}

.market-listing-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(11, 16, 29, 0.78);
  box-shadow: var(--shadow);
}

.market-card-media {
  display: grid;
  place-items: center;
  min-height: 170px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 106, 26, 0.3), transparent 34%),
    radial-gradient(circle at 80% 90%, rgba(99, 210, 168, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.market-card-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  padding: 10px;
  object-fit: contain;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.13), transparent 36%),
    rgba(5, 8, 19, 0.42);
}

.market-card-media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}

.market-card-body {
  min-width: 0;
}

.market-card-body h2 {
  margin: 12px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.18;
}

.market-card-body p {
  color: var(--muted);
  line-height: 1.6;
}

.market-card-description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.market-card-price {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.02rem;
}

.start-hero {
  display: grid;
  place-items: center;
  min-height: min(650px, calc(100svh - 180px));
  padding: 22px 0 28px;
}

.start-hero-content {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 106, 26, 0.24), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(99, 210, 168, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(12, 17, 31, 0.9), rgba(7, 11, 22, 0.96));
  box-shadow: var(--shadow);
  text-align: center;
}

.start-hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 106, 26, 0.75), transparent 48%, rgba(99, 210, 168, 0.5)),
    linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  height: 1px;
}

.start-hero-content > * {
  position: relative;
}

.start-hero h1 {
  max-width: 700px;
  margin: 0 auto;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: var(--display-md);
  line-height: 1.04;
  letter-spacing: 0;
}

.start-hero-text {
  max-width: 660px;
  margin: 16px auto 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.62;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.start-button {
  display: grid;
  gap: 6px;
  min-width: 230px;
  min-height: 72px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.start-button:hover {
  transform: translateY(-3px);
}

.start-button span {
  font-size: 1.05rem;
  font-weight: 800;
}

.start-button small {
  color: rgba(245, 247, 251, 0.76);
  line-height: 1.45;
}

.start-button-home {
  background:
    radial-gradient(circle at 16% 10%, rgba(99, 210, 168, 0.3), transparent 36%),
    linear-gradient(135deg, rgba(18, 82, 68, 0.9), rgba(14, 20, 34, 0.96));
  box-shadow: 0 20px 44px rgba(99, 210, 168, 0.12);
}

.start-button-work {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 138, 66, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(116, 50, 21, 0.92), rgba(14, 20, 34, 0.96));
  box-shadow: 0 20px 44px rgba(255, 106, 26, 0.15);
}

.start-button-community {
  background:
    radial-gradient(circle at 16% 10%, rgba(89, 132, 255, 0.34), transparent 36%),
    linear-gradient(135deg, rgba(40, 57, 119, 0.92), rgba(14, 20, 34, 0.96));
  box-shadow: 0 20px 44px rgba(76, 111, 224, 0.14);
}

.start-button-home:hover {
  border-color: rgba(99, 210, 168, 0.48);
  box-shadow: 0 24px 52px rgba(99, 210, 168, 0.18);
}

.start-button-work:hover {
  border-color: rgba(255, 138, 66, 0.55);
  box-shadow: 0 24px 52px rgba(255, 106, 26, 0.22);
}

.start-button-community:hover {
  border-color: rgba(112, 149, 255, 0.55);
  box-shadow: 0 24px 52px rgba(76, 111, 224, 0.22);
}

.home-switchboard {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}

.switchboard-copy {
  display: grid;
  align-content: center;
  min-height: 260px;
}

.switchboard-copy h1,
.category-topbar h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.market-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.market-choice {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 16, 29, 0.62), rgba(11, 16, 29, 0.96)),
    radial-gradient(circle at top right, rgba(255, 106, 26, 0.2), transparent 42%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.market-choice::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.72), transparent 56%);
}

.market-choice-housing {
  background:
    linear-gradient(180deg, rgba(11, 16, 29, 0.62), rgba(11, 16, 29, 0.96)),
    radial-gradient(circle at top right, rgba(99, 210, 168, 0.17), transparent 42%);
}

.choice-kicker,
.choice-count {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-choice-housing .choice-kicker,
.market-choice-housing .choice-count {
  color: var(--success);
}

.market-choice strong {
  display: block;
  margin-top: 12px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  line-height: 1.08;
}

.market-choice p {
  color: var(--muted);
  line-height: 1.55;
}

.choice-count {
  margin-top: 18px;
}

.catalog-hub {
  margin-bottom: 24px;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.compact-head {
  align-items: center;
  margin-top: 0;
}

.preview-stack {
  display: grid;
  gap: 10px;
}

.preview-row {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.preview-row span {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.preview-row strong {
  line-height: 1.3;
}

.category-topbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin: 30px 0 22px;
}

.category-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.category-tabs a {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--muted-strong);
  font-weight: 800;
}

.category-tabs a.is-active {
  background: rgba(255, 106, 26, 0.14);
  color: var(--accent-strong);
}

.split-filter-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-fields {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 106, 26, 0.2);
  background:
    radial-gradient(circle at top right, rgba(255, 106, 26, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.category-fields[hidden] {
  display: none;
}

.category-fields[data-category-panel="housing"] {
  border-color: rgba(99, 210, 168, 0.2);
  background:
    radial-gradient(circle at top right, rgba(99, 210, 168, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.category-checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.panel-title-row h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.form-choice-group-wide {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.custom-select {
  position: relative;
}

.custom-select > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

.custom-select-trigger {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 106, 26, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-select.is-open .custom-select-trigger {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(255, 106, 26, 0.12);
}

.custom-select-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-1px);
  flex: 0 0 auto;
}

.custom-select.is-open .custom-select-arrow {
  transform: rotate(225deg) translateY(-1px);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 13, 24, 0.98);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-option {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  border-color: rgba(255, 106, 26, 0.2);
  background: rgba(255, 106, 26, 0.12);
  color: var(--text);
}

.auth-page .site-footer {
  display: none;
}

.auth-page .site-header {
  position: relative;
  top: auto;
}

.auth-stage {
  margin-top: 18px;
}

.auth-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
  gap: 16px;
  padding: 14px;
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 106, 26, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(8, 12, 23, 0.98), rgba(9, 13, 25, 0.96));
}

.auth-story,
.auth-panel {
  min-width: 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 21, 0.78);
}

.auth-story {
  position: relative;
  overflow: hidden;
}

.auth-story::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.16), transparent 70%);
  filter: blur(8px);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.7);
}

.auth-story-copy {
  max-width: 640px;
  margin-top: 18px;
}

.auth-story h1 {
  font-size: 2.5rem;
  max-width: 15ch;
}

.accent-word {
  color: var(--accent-strong);
}

.auth-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  min-height: 0;
  margin-top: 18px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(6, 9, 18, 0.85), rgba(11, 15, 28, 0.92)),
    radial-gradient(circle at 70% 24%, rgba(255, 106, 26, 0.22), transparent 26%);
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 34px,
      rgba(255, 255, 255, 0.03) 34px,
      rgba(255, 255, 255, 0.03) 35px
    );
  opacity: 0.38;
}

.auth-visual::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.26), transparent 65%);
}

.auth-visual-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 24, 0.76);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.auth-visual-card span {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-visual-card strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.auth-visual-card-primary {
  grid-column: 1;
}

.auth-visual-card-secondary {
  grid-column: 2;
}

.auth-visual-card-accent {
  grid-column: 1 / -1;
  border-color: rgba(255, 106, 26, 0.28);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.16), rgba(11, 16, 29, 0.74));
}

.auth-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.auth-feature-item {
  padding: 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.auth-feature-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.auth-panel {
  display: grid;
  align-content: start;
  min-width: 0;
}

.auth-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  width: fit-content;
}

.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.auth-tabs a.is-active {
  background: rgba(255, 106, 26, 0.12);
  color: var(--accent-strong);
}

.auth-panel-copy {
  margin-top: 18px;
  margin-bottom: 8px;
}

.auth-panel h2 {
  font-size: 1.9rem;
}

.auth-form .button {
  margin-top: 4px;
}

.auth-form {
  gap: 13px;
}

.auth-method-card,
.standalone-auth-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-method-card {
  display: grid;
  gap: 16px;
  margin: 10px 0 12px;
}

.auth-method-card h3 {
  margin: 4px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.auth-method-card p {
  margin: 0;
  color: var(--muted);
}

.primary-auth-method {
  border-color: rgba(255, 106, 26, 0.28);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 106, 26, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.email-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, 154px);
  gap: 12px;
  align-items: end;
  margin: 0;
}

.email-code-form label {
  margin: 0;
}

.email-code-form input,
.email-code-form .button {
  min-height: 52px;
}

.email-code-form .button {
  width: 100%;
  padding-inline: 14px;
  white-space: nowrap;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.compact-auth-stage {
  max-width: 980px;
  margin-inline: auto;
}

.standalone-auth-card {
  max-width: 520px;
  margin-inline: auto;
}

.auth-inline-form {
  margin-top: 12px;
}

.password-login-panel {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.password-login-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--muted-strong);
  font-weight: 900;
}

.password-login-panel .auth-form {
  padding: 0 16px 16px;
}

.role-picker {
  display: grid;
  gap: 10px;
}

.role-picker > span {
  color: var(--muted-strong);
  font-weight: 800;
}

.role-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.role-card {
  position: relative;
  min-width: 0;
}

.role-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.role-card > span {
  display: grid;
  gap: 8px;
  min-height: 124px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 26, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.role-card strong {
  font-size: 0.95rem;
}

.role-card small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.38;
}

.role-card input:checked + span {
  border-color: rgba(255, 106, 26, 0.55);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 26, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 106, 26, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow: 0 16px 36px rgba(255, 106, 26, 0.12);
}

.role-card:hover > span {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 26, 0.36);
}

.auth-submit {
  width: 100%;
}

.form-layout {
  margin-top: 24px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.listing-form-card {
  padding: 24px;
}

.listing-form-card h1 {
  font-size: 2.35rem;
  line-height: 1;
}

.form-lead {
  max-width: 680px;
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.form-note-card {
  position: sticky;
  top: 108px;
}

.post-form {
  gap: 20px;
}

.post-step {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.post-step-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-step-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: white;
  font-weight: 900;
}

.post-step-title h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.25rem;
}

.post-step-title p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.publisher-role-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 26, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.publisher-role-note span {
  margin: 0;
  color: var(--accent-strong);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.publisher-role-note strong {
  font-size: 1.02rem;
}

.publisher-role-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.post-submit {
  min-height: 58px;
  font-weight: 800;
}

.post-modal-page {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: calc(100svh - 112px);
  padding: 28px 0;
  isolation: isolate;
}

.post-modal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 106, 26, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(99, 210, 168, 0.12), transparent 26%),
    rgba(3, 6, 14, 0.58);
  backdrop-filter: blur(10px);
}

.post-modal {
  width: min(860px, 100%);
  max-height: calc(100svh - 150px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 106, 26, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(12, 17, 31, 0.96), rgba(7, 11, 22, 0.98));
  box-shadow: var(--shadow);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.post-modal::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.post-editor-modal {
  width: min(920px, 100%);
}

.post-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.post-modal-head h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: var(--display-sm);
  line-height: 1;
  letter-spacing: 0;
}

.post-modal-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 1.35rem;
  font-weight: 800;
}

.category-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-choice-card {
  display: grid;
  align-content: end;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 106, 26, 0.24), transparent 34%),
    rgba(255, 255, 255, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 60px rgba(255, 106, 26, 0.14);
}

.category-choice-card-housing {
  background:
    radial-gradient(circle at 18% 8%, rgba(99, 210, 168, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.category-choice-card span {
  color: var(--accent-strong);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-choice-card-housing span {
  color: var(--success);
}

.category-choice-card strong {
  display: block;
  margin-top: 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.category-choice-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-post-form {
  gap: 14px;
}

.post-step-compact {
  gap: 16px;
}

.photo-uploader {
  display: grid;
  gap: 12px;
}

.photo-dropzone {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px dashed rgba(255, 138, 66, 0.46);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 26, 0.12), transparent 28%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.photo-dropzone input {
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.photo-dropzone span {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.photo-dropzone small,
.photo-uploader-message {
  color: var(--muted);
  line-height: 1.5;
}

.photo-uploader-message {
  margin: 0;
}

.document-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.document-dropzone {
  min-height: 92px;
}

.document-selected-files {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-selected-files[hidden] {
  display: none;
}

.document-selected-files span {
  padding: 8px 11px;
  border: 1px solid rgba(99, 210, 168, 0.28);
  border-radius: 999px;
  background: rgba(99, 210, 168, 0.1);
  color: var(--success);
  font-size: var(--text-xs);
  font-weight: 800;
}

.document-ai-hints {
  padding: 14px 16px;
  border: 1px solid rgba(99, 210, 168, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 210, 168, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.document-ai-hints > span {
  color: var(--success);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.document-ai-hints ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-strong);
  line-height: 1.5;
}

.document-ai-hints li::before {
  content: "• ";
  color: var(--success);
}

.document-ocr-text {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.document-ocr-text summary {
  cursor: pointer;
  padding: 11px 13px;
  color: var(--muted-strong);
  font-weight: 800;
}

.document-ocr-text pre {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 0 13px 13px;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--text-xs);
  line-height: 1.55;
}

.verification-document-list {
  display: grid;
  gap: 14px;
}

.verification-document-list.compact {
  margin-top: 12px;
}

.verification-document-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 112, 36, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 106, 26, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.verification-document-card.compact {
  grid-template-columns: 1fr;
  padding: 14px;
  border-radius: 18px;
}

.document-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 106, 26, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.2);
}

.document-preview img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 8px;
}

.document-preview-file span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.9), rgba(164, 65, 255, 0.72));
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.document-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.document-card-head h3 {
  margin: 6px 0 6px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.document-card-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.document-warning-list {
  margin-top: 0;
}

.document-fields-form {
  grid-column: 2;
  display: grid;
  gap: 12px;
}

.document-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.document-fields-grid input[readonly] {
  color: var(--muted-strong);
  background-color: rgba(255, 255, 255, 0.025);
}

.document-card-actions,
.document-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  justify-content: flex-end;
}

.document-footer-actions {
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 4px;
}

.button.danger,
.button.text.danger {
  color: #ff8b7b;
}

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

.existing-photo-grid .filter-label {
  grid-column: 1 / -1;
}

.photo-preview-card,
.existing-photo-grid img {
  overflow: hidden;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.photo-preview-card {
  position: relative;
  display: grid;
  align-content: end;
}

.photo-preview-card img,
.existing-photo-grid img {
  width: 100%;
  height: 128px;
  padding: 7px;
  object-fit: contain;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.14), transparent 36%),
    rgba(5, 8, 19, 0.62);
}

.photo-remove-button {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 115, 115, 0.62);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #ff5b4a, #b91f15);
  color: white;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(255, 77, 37, 0.28);
}

.photo-remove-button:hover {
  transform: translateY(-1px);
}

.photo-preview-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.photo-preview-radio {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.photo-preview-choice span {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.lightbox-open {
  overflow: hidden;
}

.document-modal[hidden] {
  display: none;
}

.document-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 30px);
}

.document-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(16px);
}

.document-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1050px, 100%);
  height: min(900px, 92svh);
  overflow: hidden;
  border: 1px solid rgba(255, 116, 39, 0.36);
  border-radius: 22px;
  background: #0b1020;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.document-modal-head,
.document-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.document-modal-head > div {
  display: grid;
  gap: 3px;
}

.document-modal-head span {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.document-modal-head strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.document-modal-head .modal-close {
  position: static;
}

.document-modal-content {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(2, 5, 12, 0.76);
}

.document-modal-content img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  border-radius: 12px;
}

.document-modal-content img[hidden],
.document-modal-content iframe[hidden] {
  display: none;
}

.document-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f4f4f4;
}

.document-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 42px);
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 106, 26, 0.16), transparent 28%),
    rgba(3, 6, 14, 0.68);
  backdrop-filter: blur(18px) saturate(1.12);
}

.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(1100px, 100%);
  max-height: min(760px, 86svh);
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid rgba(255, 116, 39, 0.34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 106, 26, 0.16), transparent 28%),
    rgba(8, 13, 25, 0.72);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
}

.photo-lightbox-dialog figure {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.photo-lightbox-dialog img {
  width: 100%;
  max-height: min(650px, 72svh);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.12), transparent 34%),
    rgba(5, 8, 19, 0.76);
}

.photo-lightbox-dialog figcaption {
  color: var(--muted-strong);
  font-weight: 800;
  text-align: center;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.photo-lightbox-close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  font-size: 1.45rem;
  font-weight: 900;
}

.photo-lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 72px;
  padding: 0;
  border-radius: 18px;
  font-size: 2.25rem;
  font-weight: 800;
}

.photo-lightbox-close:hover,
.photo-lightbox-nav:hover {
  border-color: var(--line-strong);
  background: rgba(255, 106, 26, 0.14);
}

.chat-open {
  overflow: hidden;
}

.chat-toast-layer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 28px));
  pointer-events: none;
}

.chat-toast {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 116, 39, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 106, 26, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(15, 22, 38, 0.96), rgba(7, 11, 22, 0.97));
  color: var(--text);
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  pointer-events: auto;
  animation: toast-in 0.22s ease-out;
}

.chat-toast.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}

.chat-toast span {
  color: var(--accent-strong);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chat-toast strong {
  font-size: 1rem;
}

.chat-toast small {
  color: var(--muted);
  font-weight: 800;
}

.chat-toast p {
  margin: 0;
  color: var(--muted-strong);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chat-push-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.72rem;
  white-space: nowrap;
}

.chat-push-control-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.chat-push-control.is-enabled {
  border-color: rgba(80, 212, 166, 0.35);
  color: #bceedd;
}

.chat-push-control.is-enabled .chat-push-control-dot {
  background: #50d4a6;
  box-shadow: 0 0 10px rgba(80, 212, 166, 0.55);
}

@media (max-width: 520px) {
  .chat-push-control span:last-child {
    display: none;
  }

  .chat-push-control {
    width: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }
}

.chat-emoji-row {
  display: flex;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  scrollbar-width: none;
}

.chat-emoji-row::-webkit-scrollbar {
  display: none;
}

.chat-emoji-row button {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.chat-emoji-row button:hover,
.chat-emoji-row button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.facebook-community-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 22px 26px;
  border-block: 1px solid var(--line);
  background: rgba(14, 21, 37, 0.72);
}

.facebook-community-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1877f2;
  color: #fff;
  font: 800 2rem/1 Arial, sans-serif;
}

.facebook-community-band h2,
.facebook-community-band p {
  margin: 0;
}

.facebook-community-band h2 {
  margin-block: 3px 5px;
  font-size: 1.2rem;
}

.facebook-community-band > div:nth-child(2) > p:last-child {
  color: var(--muted-strong);
}

.facebook-community-button {
  border-color: rgba(24, 119, 242, 0.55);
  background: rgba(24, 119, 242, 0.16);
  color: #dbeaff;
  white-space: nowrap;
}

.push-permission {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(620px, calc(100% - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 116, 39, 0.42);
  border-radius: 16px;
  background: rgba(8, 14, 27, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.push-permission[hidden] {
  display: none;
}

.push-permission-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 116, 39, 0.5);
  border-radius: 12px;
}

.push-permission-icon::before {
  content: "";
  position: absolute;
  inset: 9px 10px 11px;
  border: 2px solid var(--accent-strong);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.push-permission-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 2px;
  background: var(--accent-strong);
  box-shadow: 8px 4px 0 -1px var(--accent-strong);
}

.push-permission p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.push-permission-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}

.app-notification-toast {
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.app-notification-mark {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ff7132, #294bba);
  color: #fff !important;
  font-size: 0.74rem !important;
}

.app-notification-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.app-notification-copy strong,
.app-notification-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-notification-close {
  color: var(--muted) !important;
  font-size: 1rem !important;
}

.offline-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 60vh;
  padding: 80px 20px;
  text-align: center;
}

.offline-state h1,
.offline-state p {
  margin: 0;
}

.offline-state > p:last-of-type {
  max-width: 520px;
  color: var(--muted);
}

.partner-recommendation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 26px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.56);
}

.partner-recommendation-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fc3f1d;
  color: #fff;
  font: 800 1rem/1 Arial, sans-serif;
}

.partner-recommendation > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.partner-recommendation small {
  color: var(--muted);
  font-size: 0.66rem;
}

.partner-recommendation strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-recommendation a {
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.partner-recommendation a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

@media (max-width: 700px) {
  .facebook-community-band {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
  }

  .facebook-community-mark {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .facebook-community-band h2 {
    font-size: 1rem;
  }

  .facebook-community-band > div:nth-child(2) > p:last-child {
    font-size: 0.82rem;
  }

  .facebook-community-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-toast-layer {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
  }

  .chat-toast {
    border-radius: 14px;
    background: rgba(15, 22, 38, 0.98);
  }

  .push-permission {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: auto;
  }

  .push-permission .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .partner-recommendation {
    margin: 18px 6px 0;
    padding: 10px;
  }

  .partner-recommendation strong {
    font-size: 0.76rem;
  }

  .partner-recommendation a {
    padding-inline: 8px;
  }
}

.chat-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.chat-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.2), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(99, 210, 168, 0.1), transparent 30%),
    rgba(3, 6, 14, 0.68);
  backdrop-filter: blur(18px) saturate(1.08);
}

.chat-modal {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, 88svh);
  border: 1px solid rgba(255, 116, 39, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 106, 26, 0.17), transparent 30%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(7, 11, 22, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.chat-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-modal-head h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.chat-modal-head a {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.chat-thread-list {
  display: grid;
  gap: 10px;
  max-height: min(610px, 70svh);
  padding: 14px;
  overflow-y: auto;
}

.chat-thread-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-thread-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scroll-thumb-a), var(--scroll-thumb-b));
}

.chat-thread-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.chat-thread-card:hover,
.chat-thread-open:hover {
  border-color: rgba(255, 106, 26, 0.36);
  background: rgba(255, 106, 26, 0.08);
}

.chat-thread-open {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.chat-thread-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chat-thread-top em {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a42, #ff3d25);
  color: white;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.chat-thread-listing {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.chat-thread-card small,
.chat-muted {
  color: var(--muted);
}

.chat-thread-card p {
  margin: 0;
  color: var(--muted-strong);
}

.chat-delete-button,
.chat-delete-current {
  align-self: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 115, 115, 0.28);
  border-radius: 12px;
  background: rgba(255, 115, 115, 0.08);
  color: var(--danger);
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-delete-current {
  flex: 0 0 auto;
}

.chat-window-modal {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  width: min(780px, 100%);
}

.chat-window-head {
  align-items: center;
}

.chat-back-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 900;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    rgba(5, 8, 18, 0.52);
}

.chat-message {
  display: grid;
  gap: 7px;
  width: fit-content;
  max-width: min(78%, 520px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.chat-message.is-mine {
  justify-self: end;
  border-color: rgba(255, 106, 26, 0.3);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(255, 255, 255, 0.045));
}

.chat-message-meta {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chat-message p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-file-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(99, 210, 168, 0.28);
  border-radius: 12px;
  background: rgba(99, 210, 168, 0.08);
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 900;
}

.chat-typing {
  margin: 0;
  padding: 9px 16px 0;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 900;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-emoji-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chat-emoji-row button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

.chat-emoji-row button:hover {
  border-color: rgba(255, 106, 26, 0.36);
  background: rgba(255, 106, 26, 0.1);
}

.chat-compose textarea {
  min-height: 48px;
  resize: none;
}

.chat-file-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px dashed rgba(255, 138, 66, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.chat-file-input input {
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.chat-file-input span {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.chat-compose-error {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-note {
  margin: 18px 0 0;
}

.auth-note a {
  color: var(--accent-strong);
}

.form-grid.tight {
  gap: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field-narrow {
  max-width: 360px;
}

label,
.note-card li {
  display: block;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select option {
  background: #111827;
  color: var(--text);
}

select option:disabled {
  color: #75809b;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #75809b;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 106, 26, 0.16);
  border-color: rgba(255, 106, 26, 0.4);
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-row span {
  margin: 0;
}

.note-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.detail-shell {
  margin-top: 28px;
}

.detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin: 28px 0;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
}

.listing-window-shell {
  margin-top: 28px;
}

.listing-window {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 106, 26, 0.2), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(82, 111, 209, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(9, 13, 25, 0.96), rgba(6, 10, 21, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.listing-window::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 106, 26, 0.72), transparent 44%);
  pointer-events: none;
}

.listing-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 8px 14px;
}

.window-controls {
  display: inline-flex;
  gap: 8px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.window-controls span:first-child {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 106, 26, 0.46);
}

.window-back-link {
  color: var(--muted-strong);
  font-weight: 800;
}

.listing-window-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.listing-id-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-radius: 999px;
  background: rgba(255, 106, 26, 0.08);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.listing-window-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  gap: 14px;
}

.listing-hero-panel,
.contact-window-card,
.detail-panel-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 13, 25, 0.78);
}

.listing-hero-panel {
  padding: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 106, 26, 0.16), transparent 26%),
    radial-gradient(circle at 20% 78%, rgba(255, 106, 26, 0.08), transparent 34%),
    rgba(8, 13, 25, 0.78);
}

.access-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.access-chip span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 106, 26, 0.6);
}

.listing-hero-panel h1 {
  margin: 0;
  max-width: 15ch;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 3.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.detail-location {
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-weight: 800;
}

.listing-signal-row,
.author-rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.freshness-badge,
.rating-badge,
.verified-interaction {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.freshness-fresh,
.verified-interaction {
  border-color: rgba(99, 210, 168, 0.3);
  background: rgba(99, 210, 168, 0.08);
  color: var(--success);
}

.freshness-stale {
  border-color: rgba(255, 190, 82, 0.32);
  color: #ffd58c;
}

.rating-badge,
.rating-pill {
  border-color: rgba(255, 190, 82, 0.3);
  color: #ffd58c;
}

.detail-price-card {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 106, 26, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
}

.detail-price-card span,
.detail-chip-grid span,
.detail-benefit-grid span,
.panel-title-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-price-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.75rem;
}

.cost-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-breakdown strong {
  margin: 0;
  font-size: 1rem;
  text-align: right;
}

.detail-photo-gallery {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.detail-photo-main,
.detail-photo-strip img {
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 106, 26, 0.14), transparent 34%),
    rgba(5, 8, 19, 0.72);
}

.detail-photo-main {
  height: min(340px, 34vw);
  min-height: 220px;
  padding: 10px;
}

.detail-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
}

.detail-photo-main-button,
.detail-photo-strip button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-photo-main-button:focus-visible,
.detail-photo-strip button:focus-visible {
  outline: 2px solid rgba(255, 106, 26, 0.72);
  outline-offset: 4px;
}

.detail-photo-strip img {
  height: 96px;
  padding: 6px;
  border-radius: 16px;
}

.detail-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-chip-grid div,
.detail-benefit-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-chip-grid strong {
  display: block;
  margin-top: 6px;
}

.detail-story-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-story-card p:last-child {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.65;
}

.detail-benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-benefit-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.listing-side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.trust-passport {
  padding: 20px;
  border: 1px solid rgba(99, 210, 168, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 210, 168, 0.12), transparent 38%),
    rgba(8, 13, 25, 0.84);
}

.trust-passport.trust-attention {
  border-color: rgba(255, 190, 82, 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 82, 0.13), transparent 38%),
    rgba(8, 13, 25, 0.84);
}

.trust-passport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trust-passport-head h2 {
  margin: 2px 0 0;
  font-size: 1.15rem;
}

.trust-passport-head > strong {
  color: var(--success);
  font-size: 1.45rem;
}

.trust-attention .trust-passport-head > strong {
  color: #ffbe52;
}

.trust-meter {
  height: 7px;
  margin: 14px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.trust-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.trust-attention .trust-meter span {
  background: #ffbe52;
}

.trust-checks {
  display: grid;
  gap: 10px;
}

.trust-checks > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.trust-checks > div > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 210, 168, 0.12);
  color: var(--success);
  font-weight: 900;
}

.trust-checks .is-missing > span {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.trust-checks p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.trust-checks small {
  color: var(--muted);
  line-height: 1.4;
}

.trust-warning {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 190, 82, 0.28);
  border-radius: 12px;
  background: rgba(255, 190, 82, 0.08);
  color: #ffd58c;
  font-size: 0.88rem;
  line-height: 1.45;
}

.detail-value-warning {
  color: #ffd58c;
}

.checkbox-row-wide {
  grid-column: 1 / -1;
}

.contact-window-card,
.detail-panel-card {
  padding: 20px;
}

.contact-window-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 210, 168, 0.11), transparent 35%),
    rgba(8, 13, 25, 0.82);
}

.contact-window-card h2 {
  margin: 0 0 10px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.author-rating-summary {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(255, 190, 82, 0.22);
  border-radius: 14px;
  background: rgba(255, 190, 82, 0.06);
}

.author-rating-summary strong {
  color: #ffd58c;
  font-size: 1.15rem;
}

.author-rating-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.reviews-section,
.report-section {
  margin-top: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 13, 25, 0.82);
}

.reviews-head,
.review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reviews-head h2,
.compact-head h2 {
  margin: 4px 0 0;
}

.reviews-score {
  display: grid;
  text-align: right;
}

.reviews-score strong {
  color: #ffd58c;
  font-size: 2rem;
}

.reviews-score span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(99, 210, 168, 0.24);
  border-radius: 18px;
  background: rgba(99, 210, 168, 0.05);
}

.review-form-intro {
  display: grid;
  gap: 4px;
}

.review-form-intro span,
.review-eligibility-note {
  color: var(--muted);
}

.rating-input-grid,
.reputation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reviews-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.review-card,
.reviews-empty {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.review-card-head > div:first-child {
  display: grid;
  gap: 8px;
}

.review-stars {
  color: #ffd58c;
  font-weight: 900;
  white-space: nowrap;
}

.review-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.review-dimensions span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
}

.review-card > p {
  margin: 14px 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.review-response {
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 106, 26, 0.06);
}

.review-response p {
  margin: 5px 0 0;
}

.review-response-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.reviews-empty {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.report-section details summary {
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 800;
}

.report-section form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reputation-summary {
  margin-bottom: 24px;
}

.reputation-summary article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 16, 29, 0.78);
}

.reputation-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.reputation-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.reputation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Marketing and conversion surfaces */
.marketing-hero {
  position: relative;
  min-height: min(680px, calc(100dvh - 118px));
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #11151d;
  box-shadow: var(--shadow);
}

.marketing-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.marketing-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, 0.38);
}

.marketing-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(650px, 62%);
  min-height: inherit;
  padding: clamp(28px, 6vw, 72px);
}

.marketing-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.45rem, 5.5vw, 4.65rem);
  line-height: 0.98;
}

.marketing-hero-copy > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 20px 0 0;
  color: #e2e6ef;
  font-size: 1.05rem;
  line-height: 1.65;
}

.marketing-hero-actions,
.marketing-cta > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.community-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-hero-actions .button {
  min-height: 48px;
  padding-inline: 20px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof-row span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 19, 0.62);
  color: #f2f4f8;
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-band,
.value-comparison,
.calculator-promo,
.audience-band,
.marketing-cta,
.safety-warning-band {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 15, 28, 0.82);
}

.journey-band,
.value-comparison,
.calculator-promo,
.marketing-cta,
.safety-warning-band {
  padding: clamp(22px, 4vw, 38px);
}

.journey-intro,
.value-comparison-copy {
  max-width: 660px;
}

.journey-intro h2,
.value-comparison h2,
.calculator-promo h2,
.audience-band h2,
.marketing-page-head h1,
.marketing-cta h2,
.safety-warning-band h2 {
  margin: 0;
  line-height: 1.08;
}

.journey-intro > p:last-child,
.value-comparison-copy > p,
.calculator-promo p,
.audience-band p,
.marketing-page-head > p:last-child,
.marketing-cta p,
.safety-warning-band li {
  color: var(--muted);
  line-height: 1.65;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.journey-steps a {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 16px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
}

.journey-steps span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.journey-steps strong {
  margin-top: 24px;
  font-size: 1.04rem;
}

.journey-steps small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.value-comparison {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(20px, 4vw, 48px);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.value-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.value-facts article {
  padding: 18px;
  background: #0b101d;
}

.value-facts span {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-facts strong {
  display: block;
  margin-top: 8px;
}

.value-facts p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.calculator-promo,
.marketing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.calculator-promo > div,
.marketing-cta > div:first-child {
  max-width: 690px;
}

.audience-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.audience-band article {
  padding: clamp(22px, 4vw, 36px);
}

.audience-band article + article {
  border-left: 1px solid var(--line);
}

.marketing-page-head {
  max-width: 900px;
  padding: clamp(34px, 7vw, 76px) 0 28px;
}

.marketing-page-head h1 {
  max-width: 14ch;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
}

.marketing-page-head > p:last-child {
  max-width: 66ch;
  font-size: 1.05rem;
}

.safety-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.safety-process article {
  min-height: 220px;
  padding: 22px;
  background: #0a0f1c;
}

.safety-process span {
  color: var(--accent-strong);
  font-weight: 900;
}

.safety-process h2 {
  margin: 34px 0 8px;
  font-size: 1.2rem;
}

.safety-process p {
  color: var(--muted);
  line-height: 1.55;
}

.safety-warning-band {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 28px;
}

.safety-warning-band ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-warning-band li {
  padding-left: 18px;
  border-left: 2px solid var(--warning);
}

.relocation-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
  align-items: start;
}

.calculator-form,
.calculator-result {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 15, 28, 0.84);
}

.calculator-form {
  padding: clamp(18px, 3vw, 30px);
}

.calculator-section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.calculator-section-title:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.calculator-section-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 900;
}

.calculator-section-title h2,
.calculator-section-title p {
  margin: 0;
}

.calculator-section-title p {
  color: var(--muted);
  font-size: 0.84rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-result {
  position: sticky;
  top: 108px;
  padding: 22px;
}

.calculator-result-main {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.calculator-result-main span,
.calculator-result dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.calculator-result-main strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.calculator-result dl {
  display: grid;
  gap: 0;
  margin: 12px 0;
}

.calculator-result dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.calculator-result dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.calculator-verdict {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted-strong);
}

.calculator-verdict[data-level="success"] {
  border-color: rgba(99, 210, 168, 0.36);
  color: var(--success);
}

.calculator-verdict[data-level="warning"] {
  border-color: rgba(255, 186, 82, 0.38);
  color: #ffd58c;
}

.calculator-verdict[data-level="danger"] {
  border-color: rgba(255, 115, 115, 0.4);
  color: var(--danger);
}

.market-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-filter-trigger,
.filter-drawer-close,
.filter-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .marketing-hero-copy {
    width: min(720px, 88%);
  }

  .journey-steps,
  .safety-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-comparison,
  .safety-warning-band,
  .relocation-calculator {
    grid-template-columns: 1fr;
  }

  .calculator-result {
    position: static;
  }

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

@media (max-width: 760px) {
  .marketing-hero {
    min-height: min(640px, calc(100dvh - 112px));
    border-radius: 20px;
  }

  .marketing-hero > img {
    object-position: 58% center;
  }

  .marketing-hero-overlay {
    background: rgba(4, 7, 13, 0.58);
  }

  .marketing-hero-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 22px 18px 26px;
  }

  .marketing-hero h1 {
    max-width: 11ch;
    font-size: 2.35rem;
  }

  .marketing-hero-copy > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .marketing-hero-actions,
  .marketing-hero-actions .button,
  .calculator-promo .button,
  .marketing-cta .button,
  .community-band-actions,
  .community-band-actions .button {
    width: 100%;
  }

  .journey-steps,
  .value-facts,
  .audience-band,
  .safety-process,
  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .journey-steps a {
    min-height: 112px;
  }

  .journey-steps strong {
    margin-top: 14px;
  }

  .calculator-promo,
  .marketing-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .audience-band article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .nav-secondary-link {
    display: none;
  }

  .mobile-filter-trigger,
  .filter-drawer-close {
    display: inline-flex;
  }

  .filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(2, 4, 10, 0.72);
  }

  .market-filter-panel {
    position: fixed;
    z-index: 71;
    inset: auto 8px 8px;
    top: max(8px, env(safe-area-inset-top));
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top));
    overflow: hidden;
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 0.22s ease, visibility 0.22s;
  }

  .market-filter-panel.is-open {
    visibility: visible;
    transform: translateY(0);
  }

  .market-filter-panel .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
  }

  .market-filter-panel .filter-form {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .filter-drawer-close {
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.35rem;
  }

  html.filter-drawer-open {
    overflow: hidden;
  }

  .market-results-toolbar {
    align-items: stretch;
  }

  .market-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.smart-field {
  position: relative;
  width: 100%;
  min-width: 0;
}

.smart-field > input,
.smart-field > textarea {
  width: 100%;
}

.smart-suggestions {
  position: absolute;
  z-index: 240;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: min(320px, 45dvh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 116, 39, 0.34);
  border-radius: 12px;
  background: #0b1020;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.56);
  transform-origin: top center;
  animation: smart-suggestions-in 140ms ease-out;
}

.smart-suggestions[hidden] {
  display: none;
}

.smart-suggestions.is-loading::before {
  display: block;
  height: 2px;
  margin: -6px -6px 5px;
  background: #ff7427;
  content: "";
  animation: smart-loading 900ms ease-in-out infinite;
}

.smart-suggestions button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.smart-suggestions button:hover,
.smart-suggestions button.is-active {
  background: rgba(255, 116, 39, 0.12);
}

.smart-suggestions button strong,
.smart-suggestions button small {
  overflow-wrap: anywhere;
}

.smart-suggestions button small {
  color: var(--muted);
}

.smart-field-confirmed {
  animation: smart-confirm 520ms ease-out;
}

.smart-form-progress {
  position: sticky;
  z-index: 18;
  top: 86px;
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 116, 39, 0.3);
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.96);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.smart-form-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.smart-form-progress > div:first-child span,
.smart-form-progress p {
  color: var(--muted-strong);
}

.smart-form-progress p {
  margin: 0;
  font-size: 0.78rem;
}

.smart-form-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.smart-form-progress-track span {
  display: block;
  width: var(--smart-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #ff7427;
  transition: width 260ms ease;
}

.smart-assistant {
  position: fixed;
  z-index: 190;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: grid;
  width: min(340px, calc(100vw - 24px));
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 116, 39, 0.4);
  border-radius: 14px;
  background: #0b1020;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.66);
  animation: smart-assistant-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.smart-assistant[hidden] {
  display: none;
}

.smart-assistant.is-input-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.smart-assistant > span {
  color: #ff8a4c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.smart-assistant > strong {
  padding-right: 30px;
  font-size: 1.05rem;
}

.smart-assistant p {
  margin: 0 0 4px;
  color: var(--muted-strong);
  line-height: 1.5;
}

.smart-assistant-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.smart-assistant-toggle {
  display: none;
}

.calculator-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.calculator-presets > span {
  margin-right: 4px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.calculator-presets button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
}

.calculator-presets button:hover,
.calculator-presets button.is-active {
  border-color: rgba(255, 116, 39, 0.55);
  background: rgba(255, 116, 39, 0.12);
  color: var(--text);
}

.budget-visual {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.budget-visual > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.budget-visual span,
.budget-visual strong {
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.budget-visual strong {
  text-align: right;
}

.budget-visual i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.budget-visual i::after {
  display: block;
  width: var(--budget-part, 0%);
  height: 100%;
  border-radius: inherit;
  background: #ff7427;
  content: "";
  transition: width 320ms ease;
}

[data-budget-part="daily"] i::after {
  background: #47a8bd;
}

[data-budget-part="free"] i::after {
  background: #42d696;
}

.market-listing-card,
.recommendation-card,
.guide-grid > article,
.journey-steps a {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.market-listing-card:hover,
.recommendation-card:hover,
.guide-grid > article:hover,
.journey-steps a:hover {
  border-color: rgba(255, 116, 39, 0.34);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

@keyframes smart-suggestions-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes smart-loading {
  0%,
  100% {
    transform: scaleX(0.15);
    transform-origin: left;
  }
  50% {
    transform: scaleX(0.8);
    transform-origin: center;
  }
}

@keyframes smart-confirm {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 214, 150, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(66, 214, 150, 0.16);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 214, 150, 0);
  }
}

@keyframes smart-assistant-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .smart-form-progress {
    top: max(6px, env(safe-area-inset-top, 0px));
  }

  .smart-assistant {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: 8px;
    width: auto;
  }

  .smart-assistant.is-collapsed {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: auto;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .smart-assistant.is-collapsed > :not(.smart-assistant-toggle) {
    display: none;
  }

  .smart-assistant.is-collapsed .smart-assistant-toggle {
    display: block;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 116, 39, 0.48);
    border-radius: 12px;
    background: #0b1020;
    color: var(--text);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48);
    font-weight: 750;
  }

  .calculator-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calculator-presets > span {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.save-search-inline {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.save-search-inline label {
  display: grid;
  flex: 1;
  gap: 6px;
}

.save-search-inline label span,
.save-search-login {
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.save-search-login {
  margin: 12px 0 0;
}

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

.growth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1020;
  color: var(--text);
}

.growth-row h2,
.growth-row p {
  margin: 6px 0 0;
}

.growth-row p {
  color: var(--muted-strong);
}

.growth-row-actions,
.admin-dispute-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-card,
.guide-grid > article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1020;
}

.recommendation-card h2,
.guide-grid h2 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
}

.recommendation-card > p,
.guide-grid p {
  color: var(--muted-strong);
}

.publisher-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 116, 39, 0.28);
  border-radius: 18px;
  background: #0b1020;
}

.publisher-hero h1 {
  margin: 6px 0 12px;
}

.publisher-hero p {
  color: var(--muted-strong);
}

.publisher-score {
  display: grid;
  align-content: center;
  min-width: 220px;
  padding: 18px;
  border-left: 1px solid var(--line);
}

.publisher-score span,
.publisher-score small {
  color: var(--muted-strong);
}

.publisher-score strong {
  margin: 8px 0;
  font-size: 1.7rem;
}

.publisher-facts,
.analytics-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.publisher-facts article,
.analytics-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b1020;
}

.publisher-facts span,
.analytics-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.content-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1020;
}

.clean-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.privacy-note,
.guide-lead {
  color: var(--muted-strong);
}

.metric-list {
  display: grid;
  gap: 0;
}

.metric-list div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  background: #0b1020;
}

.analytics-table th,
.analytics-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seo-link-grid a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.seo-link-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dispute-form,
.appeal-form {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

.dispute-form label,
.appeal-form label {
  display: grid;
  gap: 7px;
}

.dispute-thread {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.dispute-thread > div,
.resolution-box {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dispute-thread > div.is-staff,
.resolution-box {
  border-color: rgba(255, 116, 39, 0.35);
  background: rgba(255, 116, 39, 0.06);
}

.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  border-block: 1px solid var(--line);
  background: #0b1020;
}

.newsletter-band label {
  display: grid;
  gap: 6px;
}

.guide-article {
  max-width: 820px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b1020;
}

.guide-article h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.guide-article > p {
  line-height: 1.75;
}

.guide-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .recommendation-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publisher-facts,
  .analytics-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .save-search-inline,
  .growth-row,
  .growth-row-actions,
  .admin-dispute-form,
  .publisher-hero,
  .newsletter-band,
  .guide-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .growth-row,
  .publisher-hero,
  .newsletter-band {
    display: flex;
  }

  .recommendation-grid,
  .guide-grid,
  .profile-columns,
  .publisher-facts,
  .analytics-summary,
  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .publisher-score {
    min-width: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .save-search-inline .button,
  .newsletter-band .button,
  .guide-actions .button {
    width: 100%;
  }
}

.contact-window-card p:not(.eyebrow) {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-window-card .button {
  width: 100%;
  margin-top: 18px;
}

.listing-contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.listing-contact-actions form {
  margin: 0;
}

.listing-contact-actions .button {
  margin-top: 0;
}

.favorite-button.is-active {
  border-color: rgba(99, 210, 168, 0.36);
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 210, 168, 0.18), transparent 36%),
    rgba(99, 210, 168, 0.08);
  color: var(--success);
}

.owner-engagement-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 106, 26, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.owner-engagement-card > span {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-strong);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-engagement-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.owner-engagement-card strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.owner-engagement-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-listing-note {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  font-weight: 800;
  text-align: center;
}

.admin-inline-action {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-inline-action label {
  display: grid;
  gap: 8px;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.admin-stat-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 106, 26, 0.16), transparent 34%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-stat-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 2.2rem;
}

.admin-moderation-grid {
  display: grid;
  gap: 18px;
}

.admin-moderation-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 106, 26, 0.14), transparent 28%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-card-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 106, 26, 0.2), transparent 38%),
    rgba(5, 8, 19, 0.74);
}

.admin-card-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  padding: 8px;
  object-fit: contain;
}

.admin-card-media span {
  color: var(--muted-strong);
  font-weight: 900;
}

.admin-card-body h2 {
  margin: 14px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.admin-card-description {
  color: var(--muted-strong);
  line-height: 1.55;
}

.admin-card-details {
  margin-top: 12px;
}

.admin-card-actions {
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-card-actions form {
  margin: 0;
}

.admin-card-actions .button {
  width: 100%;
}

.admin-reject-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 88, 72, 0.2);
  border-radius: 18px;
  background: rgba(255, 88, 72, 0.055);
}

.admin-reject-form label {
  display: grid;
  gap: 8px;
}

.admin-reviewed-section {
  margin-top: 28px;
}

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

.admin-reviewed-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-reviewed-list span {
  color: var(--accent-strong);
  font-weight: 900;
}

.admin-reviewed-list strong {
  min-width: 0;
}

.admin-reviewed-list em {
  font-style: normal;
  font-weight: 900;
}

.success-text {
  color: var(--success);
}

.danger-text {
  color: #ffb6ad;
}

.admin-user-groups {
  display: grid;
  gap: 22px;
}

.admin-create-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 210, 168, 0.12), transparent 34%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-create-card h2 {
  margin: 6px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-create-card p:not(.eyebrow) {
  color: var(--muted);
}

.admin-create-form,
.admin-password-form {
  display: grid;
  gap: 10px;
}

.admin-create-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-create-form label,
.admin-password-form label {
  display: grid;
  gap: 8px;
}

.admin-user-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 106, 26, 0.12), transparent 30%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-user-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-user-group-head h2 {
  margin: 6px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.65rem;
}

.admin-user-group-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.admin-user-group-head > strong {
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  border: 1px solid rgba(255, 106, 26, 0.26);
  border-radius: 18px;
  background: rgba(255, 106, 26, 0.09);
  color: var(--accent-strong);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

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

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-card.is-banned {
  border-color: rgba(255, 88, 72, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 88, 72, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.admin-user-main h3 {
  margin: 12px 0 6px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.22rem;
}

.admin-user-bio {
  color: var(--muted-strong);
  line-height: 1.55;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.admin-user-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-user-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-user-facts dd {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.admin-user-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-user-actions form {
  margin: 0;
}

.admin-user-actions .button {
  width: 100%;
}

.auth-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.auth-admin-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-admin-card h3 {
  margin: 6px 0 12px;
}

.login-event-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.login-event-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.login-event-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.login-event-row small {
  color: var(--muted);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.integration-grid-main {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: stretch;
}

.integration-overview,
.integration-playbook {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(99, 210, 168, 0.1), transparent 30%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.integration-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.integration-overview h2,
.integration-playbook h2 {
  margin: 6px 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.integration-overview p,
.integration-playbook p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.integration-health-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-health-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.integration-health-card.ready {
  border-color: rgba(99, 210, 168, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(99, 210, 168, 0.15), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.integration-health-card.attention {
  border-color: rgba(255, 167, 38, 0.3);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 167, 38, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.integration-health-card span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.integration-health-card strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.integration-health-card small {
  color: var(--muted);
  line-height: 1.4;
}

.integration-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 106, 26, 0.12), transparent 30%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.integration-card-wide {
  min-height: auto;
}

.integration-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.integration-card h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.integration-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.integration-test-form {
  display: grid;
  gap: 10px;
}

.integration-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.integration-facts.single {
  grid-template-columns: 1fr;
}

.integration-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}

.integration-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.integration-facts dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.integration-attention {
  padding: 12px 14px;
  border: 1px solid rgba(255, 167, 38, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 167, 38, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.integration-attention strong {
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.integration-attention p {
  margin: 5px 0 0;
}

.integration-playbook {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
}

.integration-playbook ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
  line-height: 1.55;
}

.code-sample {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 6, 13, 0.72);
  color: var(--muted-strong);
  line-height: 1.55;
}

.admin-ban-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 88, 72, 0.2);
  border-radius: 18px;
  background: rgba(255, 88, 72, 0.055);
}

.admin-ban-form label {
  display: grid;
  gap: 8px;
}

.admin-empty-users {
  padding: 24px;
}

.admin-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.admin-top-decision-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 106, 26, 0.34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 106, 26, 0.16), transparent 32%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-top-decision-card h2 {
  margin: 12px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-top-decision-card p {
  margin: 0;
  color: var(--muted);
}

.admin-top-decision-actions {
  display: grid;
  gap: 10px;
}

.admin-top-decision-actions form {
  margin: 0;
}

.admin-top-decision-actions .button {
  width: 100%;
}

.inline-review-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.inline-review-form textarea {
  min-height: 64px;
  resize: vertical;
}

.admin-top-decision-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-profile-queue {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-profile-queue .section-head {
  margin-bottom: 16px;
}

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

.admin-profile-queue-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-profile-queue-card h3 {
  margin: 10px 0 5px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-profile-queue-card p,
.admin-profile-queue-empty span {
  margin: 0;
  color: var(--muted);
}

.admin-profile-queue-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-profile-queue-facts div {
  min-width: 0;
}

.admin-profile-queue-facts dt {
  color: var(--muted);
  font-size: var(--text-xs);
}

.admin-profile-queue-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.admin-profile-queue-empty {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.admin-user-profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-user-profile-card h2 {
  margin: 12px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-user-profile-card p {
  color: var(--muted-strong);
}

.admin-user-listing-list {
  display: grid;
  gap: 16px;
}

.admin-user-listing-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 106, 26, 0.1), transparent 30%),
    var(--surface-glass);
  box-shadow: var(--shadow);
}

.admin-auth-section {
  grid-template-columns: minmax(0, 1fr);
}

.admin-verification-section {
  grid-template-columns: minmax(0, 1fr);
}

.admin-verification-section .admin-user-listing-body {
  min-width: 0;
}

.admin-verification-section .admin-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.admin-verification-section .admin-verification-documents {
  width: 100%;
}

.admin-verification-section .verification-document-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.admin-auth-section .admin-user-listing-body {
  min-width: 0;
}

.admin-auth-section .panel-title-row {
  align-items: flex-start;
}

.admin-auth-section .card-meta {
  justify-content: flex-end;
}

.admin-verification-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: 18px;
  background: rgba(255, 106, 26, 0.055);
}

.admin-verification-decision h3 {
  margin: 6px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.admin-verification-decision p {
  margin: 0;
  color: var(--muted);
}

.admin-verification-actions {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-verification-actions form {
  margin: 0;
}

.admin-verification-review-forms {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-verification-review-forms .admin-reject-form {
  margin: 0;
}

.admin-verification-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-verification-documents {
  margin-top: 18px;
}

.verification-document-card.compact .admin-document-preview {
  min-height: 240px;
  max-height: 420px;
}

.verification-document-card.compact .admin-document-preview img {
  max-height: 420px;
}

.auth-admin-card,
.auth-admin-card dd,
.login-event-row > * {
  min-width: 0;
}

.auth-admin-card dd {
  overflow-wrap: anywhere;
}

.login-event-row .pill {
  white-space: nowrap;
}

.admin-user-listing-body h2 {
  margin: 14px 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.3rem;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-title-row .eyebrow {
  margin: 0;
}

.detail-list.compact {
  gap: 0;
}

.detail-list.compact div {
  padding: 15px 0;
}

.detail-list.compact div:last-child {
  border-bottom: 0;
}

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

.empty-switch-card {
  width: min(520px, 100%);
  margin: 24px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 106, 26, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.empty-switch-card h3 {
  margin: 8px 0;
  font-size: 1.25rem;
}

.empty-switch-card .button {
  margin-top: 12px;
}

.site-footer {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(11, 16, 29, 0.78);
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .main-nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-start;
    gap: 7px;
  }

  .main-nav > a:not(.button),
  .main-nav button.text,
  .main-nav .button {
    min-height: 38px;
    padding: 0 11px;
  }

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

  .verification-side-panel {
    position: static;
  }
}

@media (max-width: 1120px) {
  .hero,
  .catalog-layout,
  .market-layout,
  .form-layout,
  .detail-grid,
  .auth-frame,
  .home-switchboard,
  .category-topbar,
  .category-preview-grid,
  .integration-overview,
  .integration-grid-main,
  .integration-playbook,
  .admin-moderation-card,
  .admin-create-card,
  .admin-profile-grid,
  .integration-grid,
  .admin-user-listing-card,
  .admin-user-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .feature-grid,
  .listing-grid,
  .auth-feature-list,
  .market-choice-grid,
  .admin-stat-grid,
  .admin-create-form,
  .admin-user-facts {
    grid-template-columns: 1fr;
  }

  .filter-card {
    position: static;
  }

  .market-filter-panel {
    position: static;
  }

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

  .listing-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-profile-queue-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-top-decision-card {
    grid-template-columns: 1fr;
  }

  .admin-verification-decision,
  .admin-verification-review-forms {
    grid-template-columns: 1fr;
  }

  .admin-verification-actions {
    justify-content: stretch;
  }

  .admin-verification-actions form,
  .admin-verification-actions .button {
    width: 100%;
  }

  .admin-profile-queue-card .button {
    width: 100%;
  }

  .form-note-card {
    position: static;
  }

  .auth-feature-list {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .document-modal {
    padding: 6px;
  }

  .document-modal-dialog {
    height: calc(100svh - 12px);
    border-radius: 16px;
  }

  .document-modal-content {
    padding: 0;
  }

  .document-modal-content img {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }

  img,
  video,
  canvas,
  iframe,
  table {
    max-width: 100%;
  }

  pre,
  code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  main,
  section,
  article,
  form,
  fieldset,
  label,
  .site-header,
  .main-nav,
  .market-search-shell,
  .market-layout,
  .market-search-bar,
  .market-listing-card,
  .listing-window,
  .listing-window-grid,
  .post-modal,
  .chat-modal,
  .form-grid {
    min-width: 0;
  }

  .page-shell {
    width: min(100% - 16px, 1320px);
    padding-top: 8px;
    padding-bottom: 18px;
  }

  .site-header,
  .section-head,
  .market-search-head,
  .market-results-toolbar,
  .hero-actions,
  .dashboard-actions,
  .hero-search,
  .market-search-bar,
  .split-grid,
  .listing-footer,
  .filter-actions {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    top: auto;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    align-items: stretch;
  }

  .brand {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: none;
  }

  .auth-page .main-nav > a,
  .auth-page .main-nav > button,
  .auth-page .main-nav > form:not(.language-switcher) {
    display: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav > *,
  .main-nav form {
    width: auto;
    min-width: 0;
  }

  .language-switcher label {
    width: auto;
  }

  .language-switcher > label > span {
    display: none;
  }

  .language-switcher select {
    width: auto;
    min-width: 0;
    max-width: 145px;
    min-height: 32px;
    padding: 0 30px 0 11px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .main-nav > a:not(.button),
  .main-nav button.text,
  .main-nav .button,
  .nav-role-pill {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    line-height: 1.15;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.82rem;
  }

  .main-nav form .button,
  .main-nav form button {
    width: auto;
  }

  .notification-bell {
    width: 36px;
    height: 32px;
    min-height: 32px;
    border-radius: 14px;
    justify-content: center;
  }

  .admin-moderation-card,
  .admin-user-card,
  .admin-stat-grid,
  .admin-create-card,
  .admin-create-form,
  .admin-profile-grid,
  .admin-user-listing-card,
  .admin-user-facts,
  .admin-reviewed-list a,
  .integration-health-row,
  .integration-facts {
    grid-template-columns: 1fr;
  }

  .admin-user-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-card-media {
    min-height: 150px;
  }

  .start-hero {
    min-height: auto;
    padding: 10px 0 8px;
  }

  .start-hero-content {
    width: 100%;
    padding: 18px 14px 14px;
    border-radius: 20px;
  }

  .start-hero h1 {
    max-width: 17rem;
    font-size: 1.72rem;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .start-hero-text {
    max-width: 20rem;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 10px;
  }

  .start-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .start-button {
    min-height: 54px;
    min-width: 0;
    padding: 10px 13px;
    border-radius: 16px;
    width: 100%;
  }

  .start-button span {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .start-button small {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .landing-page .site-footer {
    display: none;
  }

  .market-search-shell {
    margin-top: 16px;
    padding: 16px;
    border-radius: 22px;
    gap: 14px;
    overflow: hidden;
  }

  .market-search-head {
    width: 100%;
    align-items: flex-start;
    gap: 14px;
  }

  .market-search-head > *,
  .market-search-bar {
    width: 100%;
    max-width: 100%;
  }

  .market-search-head h1 {
    font-size: 1.8rem;
    letter-spacing: 0;
  }

  .market-search-head .button {
    align-self: stretch;
    width: auto;
    max-width: 100%;
    min-height: 46px;
    padding-inline: 14px;
    white-space: normal;
  }

  .market-search-head .section-text {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .market-search-input input,
  .market-search-input select {
    min-height: 50px;
    border-radius: 16px;
  }

  .market-search-bar {
    gap: 8px;
    border-radius: 20px;
  }

  .market-search-bar .button {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border-radius: 16px;
    white-space: normal;
  }

  .market-category-strip {
    gap: 8px;
  }

  .market-category-strip a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .listing-window {
    padding: 8px;
    border-radius: 24px;
  }

  .listing-window-top {
    align-items: center;
    flex-direction: row;
    padding: 2px 4px 10px;
  }

  .listing-window-top-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .listing-hero-panel,
  .contact-window-card,
  .detail-panel-card {
    border-radius: 22px;
  }

  .listing-hero-panel h1 {
    max-width: none;
    font-size: 1.9rem;
    line-height: 1.06;
  }

  .detail-chip-grid,
  .detail-benefit-grid,
  .listing-side-panel,
  .rating-input-grid,
  .reputation-summary,
  .reputation-columns {
    grid-template-columns: 1fr;
  }

  .reviews-head,
  .review-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviews-score {
    text-align: left;
  }

  .cost-breakdown {
    grid-template-columns: 1fr;
  }

  .cost-breakdown strong {
    margin-bottom: 6px;
    text-align: left;
  }

  .market-search-bar {
    padding: 8px;
  }

  .market-search-bar .button {
    width: 100%;
  }

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

  .market-card-media {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .post-step {
    padding: 16px;
  }

  .post-modal-page {
    min-height: auto;
    padding: 14px 0;
  }

  .post-modal {
    max-height: none;
    overflow: visible;
    padding: 16px;
    border-radius: 24px;
  }

  .post-modal-head {
    align-items: flex-start;
  }

  .post-modal-head h1 {
    font-size: 1.85rem;
  }

  .category-choice-grid {
    grid-template-columns: 1fr;
  }

  .role-card-grid {
    grid-template-columns: 1fr;
  }

  .email-code-form,
  .login-event-row {
    grid-template-columns: 1fr;
  }

  .email-code-form .button {
    width: 100%;
  }

  .role-card > span {
    min-height: auto;
  }

  .category-choice-card {
    min-height: 170px;
    padding: 18px;
  }

  .photo-preview-grid,
  .existing-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-upload-form,
  .verification-document-card,
  .document-card-head,
  .document-fields-grid {
    grid-template-columns: 1fr;
  }

  .admin-verification-section .admin-card-details,
  .admin-verification-section .verification-document-list.compact {
    grid-template-columns: 1fr;
  }

  .document-fields-form {
    grid-column: 1;
  }

  .document-card-actions,
  .document-footer-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .document-card-actions .button,
  .document-footer-actions .button,
  .document-footer-actions form {
    width: 100%;
  }

  .photo-lightbox {
    padding: 10px;
  }

  .photo-lightbox-dialog {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 24px;
  }

  .photo-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 58px;
    transform: translateY(-50%);
  }

  .photo-lightbox-prev {
    left: 16px;
  }

  .photo-lightbox-next {
    right: 16px;
  }

  .photo-lightbox-dialog img {
    max-height: 70svh;
  }

  .chat-modal-layer {
    padding: 8px;
  }

  .chat-modal {
    max-height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .chat-window-modal {
    grid-template-rows: auto minmax(220px, 1fr) auto;
  }

  .chat-modal-head,
  .chat-window-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .chat-delete-current {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-thread-card,
  .owner-engagement-card {
    grid-template-columns: 1fr;
  }

  .chat-delete-button {
    justify-self: stretch;
  }

  .chat-message {
    max-width: 92%;
  }

  .hero {
    padding: 22px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-story,
  .auth-panel {
    padding: 18px;
  }

  .auth-stage {
    margin-top: 14px;
  }

  .auth-frame {
    width: 100%;
    max-width: calc(100vw - 16px);
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
    overflow: hidden;
  }

  .auth-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .auth-panel > *,
  .auth-method-card,
  .auth-form,
  .role-picker,
  .role-card-grid {
    max-width: 100%;
    min-width: 0;
  }

  .auth-panel input,
  .auth-panel select,
  .auth-panel textarea {
    width: 100%;
  }

  .auth-story {
    display: none;
  }

  .auth-panel h2 {
    font-size: 1.6rem;
  }

  .listing-form-card {
    padding: 18px;
  }

  .listing-form-card h1 {
    font-size: 1.95rem;
  }

  .category-fields {
    padding: 16px;
  }

  .form-choice-group {
    grid-template-columns: 1fr;
  }

  .form-choice-group-wide,
  .split-filter-row,
  .category-checkbox-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    min-width: 0;
  }

  .market-results-toolbar,
  .listing-window-top-actions,
  .listing-contact-actions,
  .admin-head-actions,
  .admin-card-actions,
  .admin-user-actions,
  .hero-actions,
  .dashboard-actions,
  .filter-actions {
    flex-wrap: wrap;
  }

  .listing-contact-actions .button,
  .listing-contact-actions form,
  .admin-head-actions .button,
  .admin-card-actions .button,
  .admin-card-actions form,
  .admin-user-actions .button,
  .admin-user-actions form,
  .dashboard-actions .button,
  .filter-actions .button {
    width: 100%;
  }

  .form-grid > .button {
    width: 100%;
  }

  .auth-visual,
  .auth-feature-list {
    display: none;
  }
}

/* Ordered application header */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.main-nav {
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.header-tools form {
  margin: 0;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  display: grid;
  place-items: center;
  width: 46px;
  height: 40px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher[open] summary {
  border-color: rgba(255, 106, 26, 0.38);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  width: 168px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(9, 13, 24, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: rgba(255, 106, 26, 0.11);
  color: var(--text);
}

.language-flag {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.flag-ru {
  background: linear-gradient(#fff 0 33.33%, #1d5db8 33.33% 66.66%, #d52b1e 66.66%);
}

.flag-de {
  background: linear-gradient(#151515 0 33.33%, #d12f2f 33.33% 66.66%, #f2c230 66.66%);
}

.flag-fr {
  background: linear-gradient(90deg, #2455a4 0 33.33%, #fff 33.33% 66.66%, #e43b3b 66.66%);
}

.flag-es {
  background: linear-gradient(#b82828 0 25%, #f2c33a 25% 75%, #b82828 75%);
}

.flag-en {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 1.23px,
    #fff 1.23px 2.46px
  );
}

.flag-en::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 44%;
  height: 54%;
  background:
    radial-gradient(circle, #fff 0 0.55px, transparent 0.7px) 0 0 / 3px 3px,
    #3c3b6e;
}

.header-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
}

.header-icon-button:hover {
  border-color: rgba(255, 106, 26, 0.38);
  color: var(--accent-strong);
}

.favorites-button {
  color: var(--accent-strong);
}

.bookmark-icon {
  display: block;
  width: 13px;
  height: 17px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

.notification-bell {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 13px;
}

.header-logout,
.header-login {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 700;
}

.header-logout:hover,
.header-login:hover {
  color: var(--text);
}

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

.header-register-short {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr);
  align-items: start;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 72px);
  padding: 26px;
}

.site-footer p {
  max-width: 310px;
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-brand {
  min-width: 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.footer-brand-link .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-brand > small {
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-support-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.footer-support-button:hover {
  border-color: rgba(255, 106, 26, 0.38);
  color: var(--accent-strong);
}

.footer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  align-items: start;
  gap: 24px;
}

.footer-group {
  min-width: 0;
}

.footer-group summary {
  min-height: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  pointer-events: none;
}

.footer-group summary::-webkit-details-marker {
  display: none;
}

.footer-group nav {
  display: grid;
  gap: 8px;
}

.footer-group a {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-group a:hover,
.footer-support-button:hover {
  color: var(--accent-strong);
}

.content-page {
  width: min(900px, 100%);
  margin: 34px auto 0;
}

.content-page > header {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.content-page h1 {
  max-width: 18ch;
  margin: 6px 0 14px;
  font-size: var(--display-sm);
}

.content-lead {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: var(--text-lg);
}

.content-page section {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.content-page section h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.content-page section p,
.content-page section li {
  color: var(--muted-strong);
}

.content-page section a,
.public-safety-band a {
  color: var(--accent-strong);
  font-weight: 800;
}

.content-page ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.public-info-band,
.public-listings-band,
.public-safety-band,
.public-guide-band,
.public-faq-band {
  margin-top: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.public-info-head {
  max-width: 760px;
}

.public-info-head h2,
.public-safety-band h2 {
  margin: 5px 0 10px;
  font-size: 1.7rem;
}

.public-info-head > p:last-child,
.public-safety-band p {
  color: var(--muted-strong);
}

.public-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.public-info-grid article {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.public-info-grid article > span {
  color: var(--accent-strong);
  font-weight: 800;
}

.public-info-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
}

.public-info-grid p {
  margin: 0;
  color: var(--muted);
}

.public-listing-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.public-listing-links a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 20px;
  background: var(--bg-deep);
}

.public-listing-links a:hover {
  background: var(--surface-strong);
}

.public-listing-links span,
.public-listing-links small {
  color: var(--muted);
}

.public-listing-links strong {
  overflow-wrap: anywhere;
}

.public-safety-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
}

.public-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.public-guide-grid article {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.public-guide-grid h3 {
  margin: 0 0 8px;
}

.public-guide-grid p {
  color: var(--muted-strong);
}

.public-guide-grid a {
  color: var(--accent-strong);
  font-weight: 800;
}

.public-faq-list {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.public-faq-list details {
  padding: 17px 20px;
  background: var(--bg-deep);
}

.public-faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.public-faq-list p {
  margin: 10px 0 0;
  color: var(--muted-strong);
}

.legal-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.legal-consent a {
  color: var(--accent-strong);
  font-weight: 700;
}

.public-contact-form {
  max-width: 680px;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(720px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #111625;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.46);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 5px 0;
  color: var(--muted-strong);
}

.cookie-banner a {
  color: var(--accent-strong);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 720px) {
  .public-guide-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.security-page {
  margin-top: 28px;
}

.security-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.security-page-head p {
  max-width: 720px;
}

.security-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: var(--text-sm);
  font-weight: 800;
}

.security-status.is-enabled {
  border-color: rgba(99, 210, 168, 0.36);
  color: var(--success);
}

.security-layout,
.security-setup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.security-section,
.security-qr-section,
.security-confirm-section {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 29, 0.72);
}

.security-layout .security-section:first-child {
  grid-column: 1 / -1;
}

.security-section h2,
.security-qr-section h2,
.security-confirm-section h2 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
}

.security-section > p,
.security-qr-section p,
.security-confirm-section p {
  color: var(--muted);
}

.security-danger-section {
  border-color: rgba(255, 115, 115, 0.2);
}

.security-step,
.security-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 106, 26, 0.34);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.totp-qr {
  width: min(260px, 100%);
  margin: 22px auto;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
}

.totp-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.manual-secret,
.recovery-code-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.manual-secret summary,
.recovery-code-panel summary {
  cursor: pointer;
  color: var(--muted-strong);
  font-weight: 800;
}

.manual-secret code {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
}

.security-enable-form,
.security-action-form {
  margin-top: 22px;
}

.totp-code-input {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.recovery-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
}

.recovery-count strong {
  font-size: 2rem;
  color: var(--accent-strong);
}

.recovery-count span {
  color: var(--muted-strong);
}

.security-auth-card {
  text-align: left;
}

.recovery-code-panel .auth-form {
  margin-top: 14px;
}

.recovery-page {
  max-width: 780px;
  margin-inline: auto;
}

.recovery-code-sheet {
  margin-top: 24px;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.recovery-code-grid code {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0;
}

.security-note {
  margin-bottom: 20px;
  color: var(--warning) !important;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .header-tools {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .language-switcher summary,
  .header-icon-button,
  .notification-bell {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 12px;
  }

  .language-switcher summary {
    width: 36px;
    height: 36px;
  }

  .language-menu {
    right: 0;
  }

  .nav-role-pill {
    display: none;
  }

  .header-logout {
    min-height: 36px;
    padding: 0 4px;
    font-size: 0.8rem;
  }

  .header-login {
    min-height: 36px;
    padding: 0 5px;
    font-size: 0.82rem;
  }

  .header-register {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .auth-page .main-nav {
    display: none;
  }

  .auth-page .header-login,
  .auth-page .header-register {
    display: none;
  }

  .auth-page .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .auth-page .auth-stage,
  .auth-page .auth-frame {
    width: 100%;
    max-width: 100%;
  }

  .auth-page .header-tools > a:not(.header-login):not(.header-register),
  .auth-page .header-tools > button,
  .auth-page .header-tools > form:not(.language-switcher) {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
  }

  .footer-actions {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-group {
    border-top: 1px solid var(--line);
  }

  .footer-group summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .footer-group summary::after {
    content: "+";
    color: var(--muted);
    font-size: 1rem;
    font-weight: 400;
  }

  .footer-group[open] summary::after {
    content: "−";
  }

  .footer-group nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    padding: 0 0 12px;
  }

  .footer-group a,
  .footer-support-button {
    display: flex;
    align-items: center;
    min-height: 36px;
    width: 100%;
    font-size: 0.74rem;
  }

  .footer-brand p {
    margin-block: 6px;
  }

  .security-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-layout,
  .security-setup {
    grid-template-columns: 1fr;
  }

  .security-layout .security-section:first-child {
    grid-column: auto;
  }

  .recovery-code-grid {
    grid-template-columns: 1fr;
  }

  .public-info-grid,
  .public-listing-links,
  .public-safety-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .header-tools {
    gap: 4px;
  }

  .header-logout {
    width: 34px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .header-logout::before {
    content: "↪";
    color: var(--muted-strong);
    font-size: 1.2rem;
  }

  .main-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
}
.site-verification-token {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact product typography and wider desktop workspace. */
:root {
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 0.96rem;
  --text-lg: 1.05rem;
  --text-xl: 1.18rem;
  --display-sm: 1.8rem;
  --display-md: 2.2rem;
  --display-lg: 2.65rem;
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
}

.site-header {
  gap: 14px;
  padding: 11px 14px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  font-size: 0.74rem;
}

.main-nav a {
  min-height: 34px;
  padding-inline: 9px;
  font-size: 0.82rem;
}

.language-switcher summary,
.header-icon-button,
.notification-bell {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
}

.nav-role-pill,
.header-logout,
.header-login,
.header-register {
  min-height: 34px;
  font-size: 0.8rem;
}

.button {
  min-height: 38px;
  padding-inline: 13px;
  border-radius: 11px;
  font-size: 0.86rem;
}

input,
select,
textarea {
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
}

label span {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.content-page h1 {
  max-width: none;
}

@media (max-width: 760px) {
  :root {
    --text-base: 0.88rem;
    --display-sm: 1.65rem;
    --display-md: 1.9rem;
    --display-lg: 2.15rem;
  }

  .page-shell {
    width: calc(100% - 12px);
  }

  .section-head {
    align-items: stretch;
  }

  .section-head > div {
    width: 100%;
  }

  .section-head > .button {
    width: 100%;
  }

  .section-head > .pill {
    align-self: flex-start;
  }

  .button,
  input,
  select {
    min-height: 42px;
  }

  .main-nav a {
    min-height: 38px;
  }

  .language-switcher summary,
  .header-icon-button,
  .notification-bell {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .admin-top-decision-actions,
  .admin-top-decision-actions form,
  .admin-top-decision-actions .button {
    width: 100%;
  }

  .community-compose button,
  .community-compose .community-media-button {
    min-width: 40px;
    min-height: 40px;
  }

  .header-register-full {
    display: none;
  }

  .header-register-short {
    display: inline;
  }
}

@media (max-width: 350px) {
  .site-header .brand > span:last-child {
    display: none;
  }
}

@media (min-width: 761px) {
  .landing-page .start-hero + section {
    margin-top: 18px;
  }
}

/* Unified control geometry. Keep icons, labels and touch targets on one visual grid. */
:root {
  --control-height: 38px;
  --control-radius: 12px;
  --icon-control-size: 38px;
}

button,
.button,
input,
select,
textarea,
summary {
  box-sizing: border-box;
}

button,
.button {
  text-align: center;
}

.button,
.header-login,
.header-logout,
.header-register,
.main-nav a,
.nav-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  line-height: 1.2;
}

.button.text {
  min-height: var(--control-height);
  padding: 0 12px;
}

.header-tools {
  align-items: center;
  gap: 8px;
}

.header-tools > form {
  display: flex;
  align-items: center;
}

.language-switcher summary,
.header-icon-button,
.notification-bell {
  width: var(--icon-control-size);
  min-width: var(--icon-control-size);
  height: var(--icon-control-size);
  min-height: var(--icon-control-size);
  border-radius: var(--control-radius);
}

.language-switcher summary {
  padding: 0;
}

.language-switcher summary .language-flag {
  margin: 0;
}

.header-login,
.header-logout {
  height: var(--control-height);
  padding: 0 10px;
  border-radius: var(--control-radius);
  white-space: nowrap;
}

.header-logout-label {
  margin: 0;
  line-height: 1;
}

.header-register {
  height: var(--control-height);
  min-height: var(--control-height);
  padding: 0 13px;
  border-radius: var(--control-radius);
  white-space: nowrap;
}

.header-register > span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.header-register > .header-register-short {
  display: none;
}

.header-icon-button > span,
.community-icon-button > span,
.community-record-button > span,
.community-send-button > span,
.community-mobile-rooms > span {
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  margin: 0;
  line-height: 1;
}

.modal-close,
.community-icon-button,
.community-record-button,
.community-send-button,
.community-mobile-rooms {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  line-height: 1;
}

.modal-close {
  width: 40px;
  height: 40px;
  min-height: 40px;
}

.community-icon-button,
.community-record-button,
.community-send-button,
.community-mobile-rooms {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.community-room-delete {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  line-height: 1;
}

.public-faq-list summary,
.security-section summary,
.password-login-panel summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  line-height: 1.3;
}

.community-compose {
  align-items: center;
}

.community-compose textarea {
  min-height: 38px;
  padding-block: 9px;
  line-height: 1.35;
}

.button,
button,
summary,
a {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  :root {
    --control-height: 40px;
    --icon-control-size: 40px;
  }

  .header-tools {
    gap: 6px;
  }

  .nav-role-pill {
    display: none;
  }

  .header-login,
  .header-logout {
    height: var(--control-height);
    min-height: var(--control-height);
    padding-inline: 8px;
  }

  .header-register {
    height: var(--control-height);
    min-height: var(--control-height);
    padding-inline: 11px;
  }

  .header-register > .header-register-full {
    display: none;
  }

  .header-register > .header-register-short {
    display: inline-flex;
  }

  .community-icon-button,
  .community-record-button,
  .community-send-button,
  .community-mobile-rooms {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 430px) {
  .has-session .site-header .brand > span:last-child {
    display: none;
  }

  .header-logout {
    width: var(--icon-control-size);
    min-width: var(--icon-control-size);
    padding: 0;
  }

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

  .header-logout::before {
    display: block;
  }
}

/* Installed web app: iOS safe areas and a language menu above every content layer. */
.site-header {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.language-switcher {
  z-index: 101;
}

.language-menu {
  z-index: 103;
  background: #0b1020;
}

@media (max-width: 760px) {
  .is-standalone body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }

  .is-standalone .page-shell {
    min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    z-index: 100;
  }

  .language-switcher[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 102;
    background: rgba(2, 5, 12, 0.58);
    backdrop-filter: blur(2px);
  }

  .language-switcher summary {
    position: relative;
    z-index: 104;
  }

  .language-menu {
    position: fixed;
    top: max(72px, calc(env(safe-area-inset-top, 0px) + 60px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 105;
    width: min(230px, calc(100vw - 24px));
    max-height: calc(100dvh - max(88px, calc(env(safe-area-inset-top, 0px) + 76px)));
    overflow-y: auto;
    padding: 8px;
    border-color: rgba(255, 106, 26, 0.34);
    background: #0b1020;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  }

  .language-menu a {
    min-height: 44px;
    font-size: 0.9rem;
  }
}

/* Stable mobile application viewport. Device quirks are normalized in app-core.js. */
:root {
  --app-height: 100dvh;
  --app-width: 100vw;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --keyboard-height: 0px;
}

html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: var(--app-height, 100dvh);
  overflow-x: clip;
}

body,
.page-shell,
.site-header,
.main-nav,
.header-tools,
main {
  min-width: 0;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

@media (max-width: 760px) {
  body {
    min-height: var(--app-height, 100dvh);
  }

  .page-shell {
    width: 100%;
    max-width: 100%;
    padding: 6px max(6px, var(--safe-right)) max(18px, var(--safe-bottom))
      max(6px, var(--safe-left));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    padding: 10px;
    border-radius: 18px;
  }

  .site-header .brand {
    min-width: 0;
    overflow: hidden;
  }

  .site-header .brand > span:last-child {
    min-width: 0;
  }

  .site-header .brand strong,
  .site-header .brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .brand-mark {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .header-tools {
    max-width: 100%;
  }

  .main-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .is-standalone body {
    padding: 0;
  }

  .is-standalone .page-shell {
    min-height: var(--app-height, 100dvh);
    padding-top: max(6px, var(--safe-top));
    padding-right: max(6px, var(--safe-right));
    padding-bottom: max(18px, var(--safe-bottom));
    padding-left: max(6px, var(--safe-left));
  }

  .language-menu {
    top: calc(var(--safe-top) + 58px);
    right: max(8px, var(--safe-right));
    max-height: calc(var(--app-height, 100dvh) - var(--safe-top) - 72px);
  }
}

@media (max-width: 430px) {
  .site-header {
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .brand small {
    display: none;
  }

  .header-tools {
    gap: 4px;
  }

  .header-login,
  .header-register {
    padding-inline: 8px;
  }
}

@media (max-width: 370px) {
  .site-header .brand > span:last-child {
    display: none;
  }
}

.smart-start-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.6fr);
  gap: 28px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 116, 39, 0.24);
  border-radius: 20px;
  background: #0b1020;
}

.smart-start-copy h2,
.smart-start-copy p {
  margin: 0;
}

.smart-start-copy h2 {
  margin-top: 7px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.smart-start-copy > p:last-child {
  margin-top: 12px;
  color: var(--muted-strong);
  line-height: 1.6;
}

.smart-start-form {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.15fr auto;
  align-items: end;
  gap: 10px;
}

.smart-start-form > label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.smart-start-form > label > span,
.smart-start-mode legend {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.smart-start-form input[type="text"] {
  width: 100%;
  min-height: 48px;
}

.smart-start-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.smart-start-mode legend {
  grid-column: 1 / -1;
  margin-bottom: 7px;
}

.smart-start-mode label {
  min-width: 0;
}

.smart-start-mode input {
  position: absolute;
  opacity: 0;
}

.smart-start-mode span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-weight: 750;
  cursor: pointer;
}

.smart-start-mode input:checked + span {
  border-color: rgba(255, 116, 39, 0.7);
  background: rgba(255, 116, 39, 0.14);
  color: var(--text);
}

.smart-start-form .button {
  min-height: 48px;
  white-space: nowrap;
}

.smart-start-note {
  grid-column: 2;
  margin: -12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-command {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 116, 39, 0.28);
  border-radius: 18px;
  background: #0b1020;
}

.progress-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-command-head h2 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.progress-command-head > strong {
  color: #ff8a4c;
  font-size: 1.35rem;
}

.progress-command-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-command-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ff7427;
}

.progress-command-bar.progress-1 span {
  width: 33.333%;
}

.progress-command-bar.progress-2 span {
  width: 66.667%;
}

.progress-command-bar.progress-3 span,
.progress-command-bar.publisher-progress-2 span {
  width: 100%;
}

.progress-command-bar.publisher-progress-1 span {
  width: 50%;
}

.progress-command-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.progress-command-steps.publisher-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-command-steps a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.progress-command-steps a > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-strong);
  font-weight: 800;
}

.progress-command-steps a.is-complete > span {
  background: rgba(50, 190, 130, 0.16);
  color: #83e4b7;
}

.progress-command-steps strong,
.progress-command-steps small {
  display: block;
}

.progress-command-steps small {
  margin-top: 3px;
  color: var(--muted);
}

.progress-command-action {
  justify-self: start;
}

@media (max-width: 980px) {
  .smart-start-band {
    grid-template-columns: 1fr;
  }

  .smart-start-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-start-note {
    grid-column: 1;
    margin-top: -4px;
  }
}

@media (max-width: 760px) {
  .smart-start-band {
    gap: 20px;
    padding: 20px 16px;
  }

  .smart-start-form,
  .progress-command-steps,
  .progress-command-steps.publisher-steps {
    grid-template-columns: 1fr;
  }

  .smart-start-form .button,
  .progress-command-action {
    width: 100%;
  }

  .progress-command {
    padding: 18px 14px;
  }

  .progress-command-steps a {
    min-height: 62px;
  }
}

/* Keep the catalog filters above legacy responsive rules. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .mobile-nav-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-size: 1.2rem;
  }

  .site-header .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding-top: 10px;
    overflow: visible;
    border-top: 1px solid var(--line);
  }

  .site-header.is-mobile-nav-open .main-nav {
    display: grid;
  }

  .site-header .main-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  html.filter-drawer-open {
    overflow: hidden;
  }

  .market-filter-panel[data-filter-drawer] {
    position: fixed !important;
    z-index: 211;
    top: max(8px, env(safe-area-inset-top, 0px));
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: 8px;
    display: flex;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    background: #0b1020;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    opacity: 0;
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      visibility 180ms ease;
  }

  .market-filter-panel[data-filter-drawer].is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .filter-drawer-backdrop {
    position: fixed;
    z-index: 210;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(3, 6, 15, 0.78);
    backdrop-filter: blur(5px);
  }

  .filter-drawer-backdrop[hidden] {
    display: none;
  }

  .mobile-filter-trigger,
  .filter-drawer-close {
    display: inline-flex;
  }

  .facebook-community-band {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .facebook-community-mark {
    width: 42px;
    height: 42px;
  }

  .community-band-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .community-band-actions .button {
    width: 100%;
  }
}
