@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

: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;
}

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;
  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;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14), transparent 35%),
    linear-gradient(135deg, rgba(255, 106, 26, 0.9), rgba(116, 67, 255, 0.55));
  color: white;
  font-weight: 800;
  box-shadow: 0 0 32px rgba(255, 106, 26, 0.18);
}

.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(170px, 0.45fr) minmax(170px, 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: calc(100svh - 132px);
  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;
}

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

.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;
}

.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;
}

.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;
}

.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;
}

.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: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.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 {
    grid-template-columns: 1fr;
  }

  .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: calc(100svh - 112px);
    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;
  }
}

/* Full-screen community messenger */
.community-page {
  height: 100dvh;
  overflow: hidden;
}

.community-page .page-shell {
  width: 100%;
  max-width: none;
  height: 100dvh;
  padding: 0;
}

.community-page .site-header,
.community-page .flash-stack,
.community-page .site-footer {
  display: none;
}

.community-page main {
  height: 100dvh;
  min-height: 0;
}

.community-page .community-shell {
  grid-template-columns: 340px minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #080d19;
}

.community-page .community-sidebar {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  background: #0d1423;
}

.community-page .community-sidebar-head {
  min-height: 72px;
  padding: 10px 14px;
}

.community-home-link {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.community-home-link .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.community-sidebar-title {
  flex: 1;
  min-width: 0;
}

.community-room-search {
  position: relative;
  display: block;
  padding: 10px 12px 8px;
}

.community-room-search > span {
  position: absolute;
  top: 20px;
  left: 25px;
  color: var(--muted);
  pointer-events: none;
}

.community-room-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.community-page .community-room-list {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 4px 7px 14px;
}

.community-room-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.community-page .community-room-button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 62px;
  padding: 8px 36px 8px 9px;
  border-radius: 7px;
}

.community-room-avatar {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff6a1a, #7657d8);
  color: #fff;
  font-weight: 800;
}

.community-room-copy {
  display: grid;
  min-width: 0;
}

.community-page .community-room-button strong {
  font-size: 0.88rem;
}

.community-page .community-room-button small {
  font-size: 0.72rem;
}

.community-page .community-room-button.is-active {
  background: rgba(255, 106, 26, 0.14);
  box-shadow: none;
}

.community-page .community-room-delete {
  position: absolute;
  right: 8px;
  float: none;
  width: 28px;
  height: 28px;
  margin: 0;
}

.community-page .community-chat {
  min-height: 0;
  background:
    linear-gradient(#080d19, #080d19),
    radial-gradient(circle at 20% 20%, rgba(255, 106, 26, 0.08), transparent 30%);
}

.community-page .community-chat-head {
  min-height: 72px;
  padding: 10px 18px;
  background: #0d1423;
}

.community-page .community-messages {
  padding: 18px clamp(16px, 5vw, 72px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.community-page .community-message {
  max-width: min(72%, 620px);
}

.community-page .community-message-bubble {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px 10px 10px 3px;
  background: #141d2f;
}

.community-page .community-message.is-mine .community-message-bubble {
  border-radius: 10px 10px 3px;
  background: #213929;
}

.community-page .community-message-actions {
  opacity: 0.76;
}

.community-page .community-compose {
  position: relative;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  padding: 9px clamp(12px, 4vw, 54px);
  background: #0d1423;
}

.community-page .community-compose textarea {
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  background: #172032;
}

.community-emoji-wrap {
  position: relative;
}

.community-emoji-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 36px);
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #131c2d;
  box-shadow: var(--shadow);
}

.community-emoji-panel button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 1.15rem;
}

.community-emoji-panel button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.community-page .community-send-button {
  border-radius: 50%;
}

.community-page .community-info {
  display: none;
}

.community-sidebar-backdrop {
  display: none;
}

@media (max-width: 700px) {
  .community-page .community-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
  }

  .community-page .community-chat {
    position: relative;
    z-index: 1;
    height: 100dvh;
  }

  .community-page .community-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(86vw, 350px);
    height: 100dvh;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.48);
  }

  .community-page .community-shell.is-sidebar-open .community-sidebar {
    transform: translateX(0);
  }

  .community-sidebar-backdrop {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: block;
    border: 0;
    background: rgba(1, 5, 13, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .community-page .community-shell.is-sidebar-open .community-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .community-page .community-sidebar-head,
  .community-page .community-chat-head {
    min-height: 64px;
  }

  .community-page .community-sidebar-close {
    display: none;
  }

  .community-page .community-mobile-rooms {
    display: inline-grid;
    border: 0;
    background: transparent;
    font-size: 1.15rem;
  }

  .community-page .community-room-list {
    padding-inline: 5px;
  }

  .community-page .community-room-button {
    min-height: 68px;
  }

  .community-page .community-messages {
    padding: 12px 9px;
  }

  .community-page .community-message {
    width: auto;
    max-width: 88%;
    margin-bottom: 8px;
  }

  .community-page .community-avatar {
    display: none;
  }

  .community-page .community-message,
  .community-page .community-message.is-mine {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-page .community-message.is-mine .community-message-bubble {
    grid-column: 1;
  }

  .community-page .community-message-bubble {
    border-radius: 10px 10px 10px 3px;
  }

  .community-page .community-message.is-mine .community-message-bubble {
    border-radius: 10px 10px 3px;
  }

  .community-page .community-compose {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
    gap: 4px;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
  }

  .community-page .community-compose textarea {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }

  .community-page .community-compose [data-community-attach],
  .community-page .community-compose [data-community-voice],
  .community-page .community-compose [data-community-video],
  .community-page .community-compose .community-send-button {
    display: inline-grid;
    grid-column: auto;
    grid-row: auto;
    width: 36px;
    height: 36px;
  }

  .community-page .community-compose button small {
    display: none;
  }

  .community-page .community-compose-error {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .community-emoji-panel {
    position: fixed;
    right: 8px;
    bottom: 62px;
    left: 8px;
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 390px) {
  .community-page .community-compose {
    grid-template-columns: auto auto minmax(80px, 1fr) auto auto auto;
  }
}

/* Community rooms */
.nav-community-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
}

.community-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  height: calc(100vh - 126px);
  min-height: 620px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 23, 0.94);
}

.community-sidebar,
.community-info {
  min-width: 0;
  background: rgba(14, 19, 33, 0.72);
}

.community-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.community-sidebar-head,
.community-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.community-sidebar-head h1,
.community-chat-head h2,
.community-info h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.community-sidebar-head .eyebrow,
.community-chat-head .eyebrow,
.community-info .eyebrow {
  margin-bottom: 3px;
}

.community-sidebar-actions {
  display: flex;
  gap: 6px;
}

.community-sidebar-close {
  display: none;
}

.community-icon-button,
.community-record-button,
.community-send-button,
.community-mobile-rooms {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
}

.community-compose button small {
  display: none;
}

.community-icon-button:hover,
.community-record-button:hover,
.community-mobile-rooms:hover {
  border-color: var(--line-strong);
  color: var(--accent-strong);
}

.community-room-create {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.community-room-create input,
.community-room-create select {
  padding: 8px 10px;
}

.community-room-create label span {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.community-form-error,
.community-compose-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.76rem;
}

.community-room-list {
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
}

.community-room-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.community-room-delete {
  position: relative;
  float: right;
  width: 26px;
  height: 26px;
  margin: -39px 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
}

.community-room-delete:hover {
  background: rgba(255, 115, 115, 0.12);
  color: var(--danger);
}

.community-room-button:has(+ .community-room-delete) {
  padding-right: 42px;
}

.community-room-button:hover,
.community-room-button.is-active {
  background: rgba(255, 106, 26, 0.1);
}

.community-room-button.is-active {
  box-shadow: inset 3px 0 var(--accent);
}

.community-room-button span {
  display: grid;
  min-width: 0;
}

.community-room-button strong,
.community-room-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-room-button .community-room-creator {
  color: var(--accent);
  white-space: normal;
}

.community-room-button strong {
  font-size: 0.82rem;
}

.community-room-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.community-room-button em,
.community-head-status strong {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
}

.community-chat {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
}

.community-chat-head {
  background: rgba(10, 15, 28, 0.88);
}

.community-head-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.community-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(99, 210, 168, 0.55);
}

.community-mobile-rooms {
  display: none;
}

.community-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  scroll-behavior: smooth;
}

.community-loading,
.community-empty {
  margin: 20px auto;
  color: var(--muted);
  text-align: center;
}

.community-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  max-width: min(78%, 680px);
  margin: 0 0 12px;
}

.community-message.is-mine {
  grid-template-columns: minmax(0, 1fr) 32px;
  margin-left: auto;
}

.community-message.is-mine .community-avatar {
  grid-column: 2;
}

.community-message.is-mine .community-message-bubble {
  grid-column: 1;
  grid-row: 1;
}

.community-message.is-addressed .community-message-bubble {
  box-shadow: inset 3px 0 var(--accent);
}

.community-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6d4ae0);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.community-message-bubble {
  min-width: 0;
  padding: 9px 11px 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: transparent;
}

.community-message-bubble > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.community-message-bubble > header strong {
  color: var(--accent-strong);
  font-size: 0.76rem;
}

.community-message-bubble time {
  color: var(--muted);
  font-size: 0.64rem;
}

.community-message-bubble > p {
  margin: 5px 0 3px;
  overflow-wrap: anywhere;
  line-height: 1.45;
  white-space: pre-wrap;
}

.community-message-quote {
  display: grid;
  width: 100%;
  margin: 6px 0;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 5px 5px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
  text-align: left;
}

.community-message-quote span,
.community-message-quote small {
  color: var(--muted);
  font-size: 0.66rem;
}

.community-message-quote strong {
  font-size: 0.72rem;
}

.community-message-image {
  display: block;
  width: min(360px, 100%);
  max-height: 360px;
  margin-top: 7px;
  border-radius: 7px;
  object-fit: contain;
}

.community-message audio {
  width: min(320px, 100%);
  margin-top: 7px;
}

.community-video-circle {
  display: block;
  width: min(220px, 55vw);
  aspect-ratio: 1;
  margin-top: 7px;
  border-radius: 50%;
  background: #000;
  object-fit: cover;
}

.community-message-actions {
  display: flex;
  gap: 10px;
  min-height: 18px;
  margin-top: 3px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.community-message:hover .community-message-actions,
.community-message:focus-within .community-message-actions {
  opacity: 1;
}

.community-message-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
}

.community-message-actions button:hover {
  color: var(--accent-strong);
}

.community-message-actions button.is-danger {
  color: var(--danger);
}

.community-compose-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px;
  padding: 7px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 106, 26, 0.07);
}

.community-compose-context div {
  display: grid;
  min-width: 0;
}

.community-compose-context strong,
.community-compose-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-compose-context strong {
  font-size: 0.74rem;
}

.community-compose-context span {
  color: var(--muted);
  font-size: 0.68rem;
}

.community-compose-context button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.community-compose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: end;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.96);
}

.community-compose textarea {
  min-width: 0;
  min-height: 36px;
  max-height: 130px;
  padding: 8px 11px;
  resize: none;
}

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

.community-record-button.is-video {
  color: var(--accent-strong);
}

.community-send-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.community-compose-error {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 111, 74, 0.38);
  border-radius: 8px;
  background: rgba(255, 111, 74, 0.1);
}

.community-compose-error[hidden] {
  display: none;
}

.community-compose-error-action {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

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

.role-choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.role-choice-card.is-recommended {
  border-color: var(--accent);
}

.role-choice-card h2 {
  margin: 4px 0 8px;
}

.role-choice-card p:not(.eyebrow) {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .role-choice-grid {
    grid-template-columns: 1fr;
  }

  .role-choice-card {
    padding: 18px;
  }

  .role-choice-card .button {
    width: 100%;
  }
}

.community-recorder {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 28, 0.98);
}

.community-recorder video {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.community-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  animation: community-pulse 1s infinite;
}

.community-recorder button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.community-recorder [data-community-recorder-cancel] {
  color: var(--danger);
}

.community-recorder [data-community-recorder-stop] {
  background: var(--accent);
  color: #fff;
}

.community-chat.is-recording .community-compose {
  display: none;
}

@keyframes community-pulse {
  50% { opacity: 0.35; }
}

.community-info {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.community-info > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.community-rule {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.community-rule strong {
  font-size: 0.8rem;
}

.community-rule span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

@media (max-width: 1080px) {
  .community-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .community-info {
    display: none;
  }
}

@media (max-width: 700px) {
  .community-page .page-shell {
    width: 100%;
    padding-inline: 6px;
  }

  .community-page .site-header {
    max-width: 100%;
    overflow: hidden;
  }

  .community-page .header-tools {
    min-width: 0;
  }

  .community-shell {
    position: relative;
    grid-template-columns: 1fr;
    height: calc(100svh - 142px);
    min-height: 440px;
    margin-top: 8px;
  }

  .community-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 35;
    width: min(82vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.48);
  }

  .community-shell.is-sidebar-open .community-sidebar {
    transform: translateX(0);
  }

  .community-shell.is-sidebar-open .community-sidebar {
    z-index: 40;
    background: #0b1120;
  }

  .community-sidebar-close {
    display: inline-grid;
  }

  .community-mobile-rooms {
    display: inline-grid;
  }

  .community-message {
    width: fit-content;
    max-width: calc(100% - 36px);
  }

  .community-message-actions {
    opacity: 1;
  }

  .community-compose {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .community-compose textarea {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
  }

  .community-compose [data-community-attach] {
    grid-column: 1;
    grid-row: 2;
  }

  .community-compose [data-community-voice] {
    grid-column: 2;
    grid-row: 2;
  }

  .community-compose [data-community-video] {
    display: inline-grid;
    grid-column: 3;
    grid-row: 2;
  }

  .community-compose .community-send-button {
    grid-column: 4;
    grid-row: 2;
  }

  .community-compose .community-icon-button,
  .community-compose .community-record-button,
  .community-compose .community-send-button {
    display: inline-flex;
    width: 100%;
    height: 38px;
    min-width: 0;
    gap: 5px;
    font-size: 0.76rem;
  }

  .community-compose button small {
    display: inline;
    color: inherit;
    font-size: 0.68rem;
  }

  .community-compose-error {
    grid-row: 3;
    align-items: stretch;
    flex-direction: column;
  }

  .community-compose-error-action {
    text-align: center;
  }

  .community-recorder {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: 7px;
    padding-inline: 8px;
  }

  .community-recorder strong {
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .community-recorder button {
    padding-inline: 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 430px) {
  .community-page {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .community-page .page-shell,
  .community-page .site-header,
  .community-shell,
  .community-chat {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .community-page .brand {
    max-width: 145px;
  }

  .community-page .favorites-button {
    display: none;
  }

  .community-page .notification-bell {
    display: none;
  }

  .community-chat-head {
    padding-inline: 10px;
  }

  .community-head-status > span:not(.community-live-dot) {
    display: none;
  }

  .community-messages {
    padding-inline: 10px;
  }

  .community-compose {
    gap: 5px;
    padding-inline: 8px;
  }

  .community-compose button small {
    font-size: 0.64rem;
  }

  .community-message {
    width: fit-content;
    max-width: calc(100% - 36px);
  }

  .community-message.is-mine {
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 7px;
  }

  .language-switcher select,
  .main-nav > a:not(.button),
  .main-nav button.text,
  .main-nav .button,
  .nav-role-pill {
    min-height: 31px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.8rem;
  }

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

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

  .start-hero h1 {
    font-size: 1.54rem;
  }

  .start-hero-content {
    padding: 16px 12px 12px;
    border-radius: 18px;
  }

  .start-hero-text {
    font-size: 0.82rem;
  }

  .start-button {
    min-height: 50px;
  }

  .post-step-title {
    display: grid;
  }
}

/* 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;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.footer-support-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
}

.footer-support-button:hover {
  border-color: rgba(255, 106, 26, 0.38);
  color: var(--accent-strong);
}

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

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

.footer-security-link: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 {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-support-button,
  .footer-security-link {
    width: 100%;
  }

  .footer-security-link {
    padding: 10px 0;
    text-align: center;
  }

  .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);
  }
}
