:root {
  --ink: #18211f;
  --muted: #63716d;
  --line: #dce7e3;
  --surface: #ffffff;
  --soft: #eef7f3;
  --page: #f5f8f6;
  --primary: #176b5d;
  --primary-strong: #0f4f44;
  --accent: #cf5135;
  --gold: #d99d28;
  --sky: #d9edf5;
  --blue: #245c82;
  --shadow: 0 14px 34px rgba(28, 50, 45, 0.1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf8f5;
  --muted: #a8bbb5;
  --line: #294b44;
  --surface: #10231f;
  --soft: #183b34;
  --page: #071512;
  --primary: #55d6ba;
  --primary-strong: #a9ffee;
  --accent: #ff8a65;
  --gold: #ffd166;
  --sky: #12333b;
  --blue: #82c7ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 46px);
  border-bottom: 1px solid rgba(220, 231, 227, 0.86);
  background: rgba(245, 248, 246, 0.92);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .topbar {
  background: rgba(7, 21, 18, 0.9);
}

.brand,
.top-actions,
.hero-actions,
.card-actions,
.category-chips {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 107, 93, 0.18);
}

.brand-mark img {
  width: 118%;
  height: 118%;
  display: block;
  object-fit: cover;
  transform: scale(1.12);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.inbox-button {
  position: relative;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.inbox-button span {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  min-height: 20px;
  padding: 1px 5px;
  border-radius: 10px;
  background: #c43d35;
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.account-avatar-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 42px;
  min-width: 42px !important;
  max-width: 42px !important;
  aspect-ratio: 1;
}

.account-avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.community-banner {
  order: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #4c9a88;
  border-radius: 8px;
  background: #eef9f5;
  color: #123f37;
}

.organization-nudge {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 14px 16px;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), color-mix(in srgb, #ff8a65 16%, var(--surface)));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
  animation: organizationNudgePulse 2.2s ease-in-out infinite;
}

.organization-nudge[hidden] {
  display: none;
}

.organization-nudge-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  font-size: 24px;
}

.organization-nudge div {
  display: grid;
  gap: 3px;
}

.organization-nudge strong {
  color: var(--text);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.25;
}

.organization-nudge small {
  color: var(--muted);
}

@keyframes organizationNudgePulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent); }
  50% { transform: translateY(-2px); box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 32%, transparent); }
}

@media (max-width: 680px) {
  .organization-nudge {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .organization-nudge .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .organization-nudge {
    animation: none;
  }
}

[data-theme="dark"] .community-banner {
  background: #102f29;
  color: #f5fffc;
}

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

.community-banner h2 {
  font-size: 20px;
}

.community-banner-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #176b5d;
  font-size: 24px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-height: 32px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-status {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.theme-status:hover {
  color: var(--primary);
  background: var(--soft);
}

main {
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 46px) 98px;
}

.market-pulse { order: 1; }
.hero { order: 2; }
.relocation-actions { order: 3; }
.popular-categories { order: 4; }
.controls { order: 5; }
.search-feedback { order: 6; }
.marketplace-head { order: 7; }
.grid { order: 8; }
.empty-state { order: 9; }
.similar-results { order: 10; }
.trust-section { order: 11; }
.how-it-works { order: 12; }
.security-panel { order: 13; }
.growth-logistics { order: 14; }
.transporter-strip { order: 15; }
.profile-page { order: 16; }
.user-options { order: 17; }
.footer-info { order: 18; }
.feedback-section { order: 19; }

.market-pulse {
  overflow: hidden;
  margin: 4px 0 14px;
  border: 1px solid #f0d488;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff5cf, #e7f8f1, #eef5ff, #fff0e8);
  box-shadow: 0 10px 24px rgba(97, 69, 12, 0.08);
}

[data-theme="dark"] .market-pulse {
  border-color: #4b3a17;
  background: linear-gradient(90deg, #1b2f29, #16263b, #2a1d16, #10231f);
}

.pulse-track {
  display: flex;
  width: max-content;
  min-height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  animation: pulseMarquee 30s linear infinite;
}

.pulse-track span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(31, 67, 60, 0.08);
}

[data-theme="dark"] .pulse-track span {
  background: rgba(16, 35, 31, 0.88);
}

.pulse-track strong {
  color: #e75a3c;
  font-size: 18px;
}

@keyframes pulseMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 6px 0 10px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 155px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(217, 157, 40, 0.24), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(36, 92, 130, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4fbf7 54%, #fff1e8 100%);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .hero-copy {
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, 0.18), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(130, 199, 255, 0.15), transparent 30%),
    linear-gradient(135deg, #10231f 0%, #122a25 54%, #251912 100%);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: inline;
  color: var(--text);
  font-size: 0.58em;
  font-weight: 850;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-highlights span {
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(28, 50, 45, 0.08);
}

[data-theme="dark"] .hero-highlights span,
[data-theme="dark"] .photo-callout,
[data-theme="dark"] .stats div,
[data-theme="dark"] .listing-card,
[data-theme="dark"] .controls {
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 175px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #13221f;
  box-shadow: var(--shadow);
}

.photo-collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: repeat(3, 55px);
  gap: 8px;
  height: 100%;
  padding: 10px;
}

.photo-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.photo-collage .wide {
  grid-row: span 3;
}

.photo-callout {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.photo-callout strong {
  color: var(--primary-strong);
}

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

.relocation-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 14px;
}

.relocation-actions button {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid #f0c766 !important;
  border-radius: 8px;
  background: #fffdf6 !important;
  color: #071512 !important;
  text-align: left;
  box-shadow: 0 10px 24px rgba(25, 48, 43, 0.16);
}

.relocation-actions button:hover,
.relocation-actions button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  outline: 0;
  box-shadow: var(--shadow);
}

.relocation-actions span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #071512 !important;
  font-size: 19px;
  font-weight: 950;
}

.action-icon,
.relocation-actions b {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #073c35 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
}

.action-icon::before,
.action-icon::after,
.relocation-actions b::before,
.relocation-actions b::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.buy-icon::before,
.relocation-actions [data-relocation-action="buy"] b::before {
  left: 8px;
  top: 12px;
  width: 23px;
  height: 14px;
  border: 3px solid #ffffff;
  border-top: 0;
  border-radius: 3px;
  transform: skewX(-8deg);
}

.buy-icon::after,
.relocation-actions [data-relocation-action="buy"] b::after {
  left: 10px;
  bottom: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 17px 0 0 #ffffff, -2px -15px 0 -1px #ffffff;
}

.sell-icon::before,
.relocation-actions [data-relocation-action="sell"] b::before {
  inset: 8px;
  border: 4px solid #ffffff;
  border-radius: 50%;
}

.sell-icon::after,
.relocation-actions [data-relocation-action="sell"] b::after {
  left: 18px;
  top: 11px;
  width: 7px;
  height: 20px;
  border-top: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 28%, 42% 28%, 42% 42%, 100% 42%, 100% 100%, 0 100%, 0 72%, 58% 72%, 58% 58%, 0 58%);
}

.rent-icon::before,
.relocation-actions [data-relocation-action="rent"] b::before {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 19px;
  border-radius: 3px;
  background: #ffffff;
}

.rent-icon::after,
.relocation-actions [data-relocation-action="rent"] b::after {
  left: 7px;
  top: 8px;
  width: 28px;
  height: 28px;
  background: #ffffff;
  clip-path: polygon(50% 0, 100% 40%, 88% 40%, 88% 100%, 12% 100%, 12% 40%, 0 40%);
}

.services-icon::before,
.relocation-actions [data-relocation-action="services"] b::before {
  left: 19px;
  top: 7px;
  width: 5px;
  height: 28px;
  border-radius: 4px;
  background: #ffffff;
  transform: rotate(42deg);
}

.services-icon::after,
.relocation-actions [data-relocation-action="services"] b::after {
  left: 10px;
  top: 18px;
  width: 22px;
  height: 6px;
  border-radius: 5px;
  background: #ffffff;
  transform: rotate(42deg);
}

.relocation-actions strong {
  padding: 5px 7px;
  border-radius: 8px;
  background: #073c35 !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.relocation-actions [data-relocation-action="rent"],
.relocation-actions [data-relocation-action="services"] {
  background: #ffffff !important;
}

.section-heading {
  display: grid;
  gap: 4px;
}

.trust-section,
.how-it-works,
.popular-categories,
.user-options,
.footer-info {
  display: grid;
  gap: 14px;
  margin: 8px 0 14px;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(85, 214, 186, 0.16), transparent 36%),
    var(--surface);
  box-shadow: 0 10px 24px rgba(28, 50, 45, 0.07);
}

.feedback-section h2 {
  margin-bottom: 8px;
}

.feedback-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.feedback-form textarea {
  min-height: 110px;
}

.trust-grid,
.steps-grid,
.category-icon-grid,
.option-grid,
.footer-info {
  display: grid;
  gap: 12px;
}

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

.trust-grid article,
.steps-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(28, 50, 45, 0.07);
}

.trust-grid article {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 138px;
  padding: 16px 14px 14px;
  overflow: hidden;
}

.trust-grid article::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.9) 43% 57%, transparent 58%),
    var(--primary);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.2);
}

.trust-grid article:nth-child(2)::before {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.9) 43% 57%, transparent 58%),
    var(--blue);
}

.trust-grid article:nth-child(3)::before {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.9) 43% 57%, transparent 58%),
    var(--accent);
}

.trust-grid article:nth-child(4)::before {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.9) 43% 57%, transparent 58%),
    var(--gold);
}

.trust-grid article span,
.steps-grid article span {
  color: var(--ink);
  font-weight: 900;
}

.trust-grid article p,
.steps-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.steps-grid article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: start;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,247,243,0.96)),
    var(--surface);
}

[data-theme="dark"] .steps-grid article {
  background: var(--surface);
}

.steps-grid strong {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 16px;
}

.steps-grid article:nth-child(2) strong {
  background: var(--accent);
}

.steps-grid article:nth-child(3) strong {
  background: var(--blue);
}

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

.category-icon-grid button {
  display: grid;
  gap: 10px;
  min-height: 124px;
  align-content: center;
  justify-items: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(85, 214, 186, 0.18), transparent 42%),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(28, 50, 45, 0.07);
}

.category-icon-grid button:hover,
.category-icon-grid button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 14px 30px rgba(23, 107, 93, 0.16);
}

.category-icon-grid strong {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.category-icon {
  position: relative;
  display: block;
  width: 58px;
  height: 46px;
  color: var(--primary);
}

.category-icon.rental-home,
.category-icon.local-services {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0d5, #fff8e9);
  font-size: 25px;
}

.category-icon.local-services {
  background: linear-gradient(135deg, #eee9ff, #f8f6ff);
}

.category-icon.rental-home::before {
  content: "\1F3E0";
  position: static;
}

.category-icon.rental-home::after {
  content: "";
}

.category-icon.local-services::before {
  content: "\1F527";
  position: static;
}

.category-icon.local-services::after {
  content: "";
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.category-icon.sofa::before {
  inset: 18px 4px 8px;
  border-radius: 8px 8px 6px 6px;
  background: var(--primary);
}

.category-icon.sofa::after {
  left: 9px;
  right: 9px;
  bottom: 22px;
  height: 20px;
  border-radius: 8px 8px 4px 4px;
  background: var(--gold);
  box-shadow: -14px 10px 0 -4px var(--blue), 14px 10px 0 -4px var(--blue);
}

.category-icon.bed::before {
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 22px;
  border-radius: 5px;
  background: var(--blue);
}

.category-icon.bed::after {
  left: 7px;
  top: 11px;
  width: 20px;
  height: 15px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 23px 0 0 #ffffff, 0 25px 0 -9px var(--primary), 36px 25px 0 -9px var(--primary);
}

.category-icon.tv::before {
  inset: 4px 5px 12px;
  border: 5px solid var(--blue);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--sky), #ffffff);
}

.category-icon.tv::after {
  left: 21px;
  bottom: 4px;
  width: 16px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: -7px 6px 0 -3px var(--primary), 7px 6px 0 -3px var(--primary);
}

.category-icon.laptop::before {
  left: 10px;
  top: 5px;
  width: 38px;
  height: 27px;
  border: 4px solid var(--primary);
  border-radius: 5px 5px 2px 2px;
  background: var(--sky);
}

.category-icon.laptop::after {
  left: 4px;
  right: 4px;
  bottom: 5px;
  height: 10px;
  border-radius: 2px 2px 8px 8px;
  background: var(--accent);
}

.category-icon.refrigerator::before {
  left: 14px;
  top: 3px;
  width: 30px;
  height: 40px;
  border: 4px solid var(--blue);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: inset 0 18px 0 -14px var(--line);
}

.category-icon.refrigerator::after {
  right: 18px;
  top: 15px;
  width: 4px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
}

.category-icon.washer::before {
  left: 10px;
  top: 4px;
  width: 38px;
  height: 40px;
  border: 4px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
}

.category-icon.washer::after {
  left: 20px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  background: var(--sky);
  box-shadow: -7px -9px 0 -6px var(--accent), 8px -9px 0 -6px var(--gold);
}

.category-icon.bike::before {
  left: 5px;
  bottom: 6px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--blue);
  border-radius: 50%;
  box-shadow: 31px 0 0 -4px transparent, 31px 0 0 0 var(--blue);
}

.category-icon.bike::after {
  left: 16px;
  bottom: 16px;
  width: 29px;
  height: 17px;
  border-left: 4px solid var(--primary);
  border-bottom: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  transform: skewX(-22deg);
  box-shadow: 14px -12px 0 -10px var(--accent);
}

.category-icon.study-table::before {
  left: 7px;
  right: 7px;
  top: 14px;
  height: 10px;
  border-radius: 4px;
  background: var(--gold);
}

.category-icon.study-table::after {
  left: 12px;
  top: 24px;
  width: 8px;
  height: 18px;
  background: var(--primary);
  box-shadow: 27px 0 0 var(--primary), 8px -20px 0 -2px var(--blue);
}

.user-options {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,245,207,0.78), rgba(231,248,241,0.88)),
    var(--surface);
}

[data-theme="dark"] .user-options {
  background: var(--surface);
}

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

.option-grid button {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  text-align: left;
}

.option-grid button:hover,
.option-grid button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 12px 28px rgba(23, 107, 93, 0.14);
}

.option-grid strong {
  color: var(--primary-strong);
  font-size: 13px;
  line-height: 1.25;
}

.option-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

[data-theme="dark"] .option-grid button {
  background: var(--soft);
}

.pickup-qr-demo {
  width: 132px;
  height: 132px;
  margin: 10px auto;
  border: 8px solid white;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 52px, transparent 52px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px 40px, #111 40px 52px, transparent 52px),
    radial-gradient(circle at 22px 22px, #111 0 14px, transparent 15px),
    radial-gradient(circle at 104px 22px, #111 0 14px, transparent 15px),
    radial-gradient(circle at 22px 104px, #111 0 14px, transparent 15px),
    #f7fbf8;
  background-size: 58px 58px, 58px 58px, 58px 58px, 58px 58px, 58px 58px, auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.footer-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.footer-info article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.footer-info h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-info p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-info ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-info li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer-info li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.footer-info li strong {
  color: var(--ink);
}

.controls {
  position: sticky;
  top: 78px;
  z-index: 8;
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(28, 50, 45, 0.06);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.search-box label {
  display: grid;
  gap: 6px;
}

.search-submit {
  min-height: 46px;
  min-width: 138px;
  white-space: nowrap;
}

.filter-toggle {
  min-height: 46px;
  min-width: 104px;
  justify-content: center;
  white-space: nowrap;
}

.filter-toggle::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  clip-path: polygon(0 0, 100% 0, 62% 52%, 62% 100%, 38% 100%, 38% 52%);
}

.filter-toggle.active {
  background: var(--primary);
  color: white;
}

.advanced-filters {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.advanced-filters[hidden] {
  display: none !important;
}

.search-feedback {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #9bd5c9;
  border-radius: 8px;
  background: #e5f6f0;
  color: #145748;
  font-weight: 800;
}

.location-button::before {
  content: "📍";
  margin-right: 6px;
}

.location-button {
  background: #fff4dc;
  color: #80520c;
  border: 1px solid #e5bc82;
}

[data-theme="dark"] .location-button {
  background: #3d2d0a;
  color: #ffd166;
  border-color: #6f5319;
}

.search-feedback.not-found {
  border-color: #e5bc82;
  background: #fff4dc;
  color: #744b11;
}

.search-active .security-panel,
.search-active .growth-logistics,
.search-active .transporter-strip {
  display: none;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

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

.profile-summary h3,
.profile-summary p {
  margin: 0;
}

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

.profile-listings {
  display: grid;
  gap: 8px;
}

.profile-listing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-listing-row span,
.profile-listing-row small {
  display: block;
}

.profile-page {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 20px;
  padding: 24px 0 80px;
  overflow-x: clip;
}

.profile-page *,
.profile-section,
.profile-listings,
.profile-listing-row > div,
.organization-group-row,
.organization-group-copy {
  min-width: 0;
}

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

body.profile-open main > :not(.profile-page) {
  display: none !important;
}

.profile-page-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.profile-page .profile-avatar {
  width: 92px;
  height: 92px;
  min-width: 92px;
  max-width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.profile-avatar-upload {
  position: relative;
  padding: 0;
  cursor: pointer;
}

.profile-avatar-upload span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font-size: 10px;
}

.profile-crop-preview {
  width: min(280px, 75vw);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid var(--primary);
  border-radius: 50%;
  background: var(--soft);
}

.profile-crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.profile-groups-section .group-summary-grid,
.organization-group-list {
  width: min(100%, 620px);
}

.group-summary-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.group-summary-grid strong,
.group-summary-grid span {
  display: block;
}

.group-summary-grid strong {
  color: var(--primary);
  font-size: 24px;
}

.group-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.group-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.group-member:hover,
.group-member:focus-visible {
  border-color: var(--primary);
}

.group-member > span:last-child {
  display: grid;
  gap: 2px;
}

.group-member-avatar,
.group-member-profile-photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.group-member-avatar {
  width: 46px;
  height: 46px;
  padding: 4px;
  font-size: 8px;
  line-height: 1.05;
}

.group-member-avatar img,
.group-member-profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.group-member-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.group-member-profile-photo {
  width: 96px;
  height: 96px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.1;
}

.group-member small {
  color: var(--muted);
}

.privacy-controls {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.listing-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.video-link {
  display: inline-flex;
  margin: 8px 0;
}

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

@media (max-width: 700px) {
  .community-banner {
    grid-template-columns: auto 1fr;
  }

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

  .group-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-groups-section .group-summary-grid,
  .organization-group-list {
    width: 100%;
  }

  .profile-page {
    padding: 16px 0 76px;
  }

  .profile-details-form,
  .profile-organization-form {
    width: 100%;
  }

  .profile-page-head {
    gap: 12px;
  }

  .profile-page-head h1,
  .profile-listing-row span,
  .profile-listing-row small,
  .organization-group-copy strong,
  .organization-group-copy small {
    overflow-wrap: anywhere;
  }

  .profile-listing-row,
  .inbox-row,
  .organization-group-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-listing-actions,
  .group-delete-button {
    width: 100%;
  }
}

.profile-page-head h1,
.profile-page-head p {
  margin: 0;
}

.profile-page-head p {
  color: var(--muted);
}

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-details-form {
  width: min(100%, 760px);
}

.profile-organization-form {
  width: min(100%, 620px);
}

.profile-section h2 {
  margin: 0;
  font-size: 22px;
}

.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.inbox-row p,
.inbox-row small {
  margin: 0;
  color: var(--muted);
}

.profile-listing-row small {
  color: var(--muted);
}

h1,
h2,
h3,
h4,
.eyebrow {
  text-transform: capitalize;
}

.organization-group-card {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.organization-group-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.group-delete-button {
  white-space: nowrap;
}

.organization-group-card:hover,
.organization-group-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.organization-group-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 20px;
  overflow: hidden;
  flex: 0 0 auto;
}

.organization-group-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

.organization-group-icon.has-photo {
  padding: 2px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.group-members-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.group-members-toggle span:first-child {
  font-weight: 800;
}

.group-member[hidden],
.group-member-list[hidden] {
  display: none;
}

.listing-photo-placeholder {
  width: 100%;
  min-height: 14rem;
  border: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .5rem;
  padding: 1rem;
  color: var(--ink);
  background: #e9f7f2;
  text-align: center;
}

.listing-photo-placeholder span {
  font-size: 3.25rem;
}

.listing-photo-placeholder strong {
  font-size: .92rem;
}

.organization-group-copy {
  display: grid;
  gap: 3px;
}

.organization-group-copy small,
.organization-group-open,
.group-chat-summary small {
  color: var(--muted);
}

.organization-group-open {
  font-size: 13px;
  font-weight: 800;
}

.group-chat-summary {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.group-chat-summary > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.group-chat-summary > div:first-child div {
  display: grid;
  gap: 2px;
}

.group-invite-controls {
  display: grid;
  gap: 8px;
}

.similar-results {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.similar-results h2 {
  margin: 0;
  font-size: 22px;
}

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

.suggestion-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.suggestion-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.suggestion-card div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.suggestion-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-card span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 850;
}

.celebration {
  position: fixed;
  z-index: 30;
  top: 84px;
  left: 50%;
  right: auto;
  max-width: min(320px, calc(100vw - 32px));
  text-align: center;
  padding: 12px 14px;
  border: 1px solid #93d8c6;
  border-radius: 8px;
  background: #e8fff6;
  box-shadow: 0 12px 30px rgba(12, 63, 51, 0.2);
  color: #0e4c3e;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -20px) rotate(-1deg) scale(0.92);
}

.celebration.show {
  animation: celebration-pop 2.8s ease both;
}

@keyframes celebration-pop {
  0% { opacity: 0; transform: translate(-50%, -20px) rotate(-1deg) scale(0.92); }
  16% { opacity: 1; transform: translate(-50%, 0) rotate(1deg) scale(1.04); }
  28% { transform: translate(-50%, -5px) rotate(-1deg) scale(1); }
  84% { opacity: 1; transform: translate(-50%, 0) rotate(0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, 10px) rotate(0) scale(0.96); }
}

.search-box span,
.dialog-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .chip {
  background: #0b1d19;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 93, 0.12);
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.filter-row,
.stats,
.grid {
  display: grid;
  gap: 12px;
}

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

.distance-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

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

.price-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.ai-assist-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(25, 166, 144, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(84, 215, 192, 0.14), rgba(255, 132, 92, 0.08));
}

.ai-assist-panel h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.ai-assist-panel p {
  margin: 0;
  color: var(--muted);
}

.ai-assist-result {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

[data-theme="dark"] .ai-assist-result {
  background: rgba(8, 31, 26, 0.9);
}

.ai-assist-result strong {
  color: var(--ink);
}

.ai-assist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.distance-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.category-chips {
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

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

.chip[data-category-chip="Furniture"].active {
  border-color: var(--primary);
  background: var(--primary);
}

.chip[data-category-chip="Electronics"].active {
  border-color: var(--blue);
  background: var(--blue);
}

.chip[data-category-chip="Appliances"].active {
  border-color: var(--gold);
  background: var(--gold);
  color: #2b2108;
}

.stats {
  margin: 14px 0;
}

.stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 25px;
}

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

.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 16px;
  align-items: center;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #ead6a4;
  border-radius: 8px;
  background: #fffaf0;
}

[data-theme="dark"] .security-panel {
  border-color: #5c4a1e;
  background: #211a0e;
}

.security-panel p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.growth-panel,
.logistics-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(25, 48, 43, 0.07);
}

.growth-panel {
  background: linear-gradient(135deg, #fff3d4, #ffffff);
}

.logistics-panel {
  background: linear-gradient(135deg, #e3f4ff, #ffffff);
}

[data-theme="dark"] .growth-panel {
  background: linear-gradient(135deg, #30250e, var(--surface));
}

[data-theme="dark"] .logistics-panel {
  background: linear-gradient(135deg, #102a3c, var(--surface));
}

.growth-panel p,
.logistics-panel p {
  color: var(--muted);
  line-height: 1.5;
}

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

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

.transporter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.transporter-card div,
.transporter-card strong,
.transporter-card span {
  display: block;
}

.transporter-card span,
.transporter-card p {
  color: var(--muted);
  font-size: 13px;
}

.transporter-card p {
  margin: 0;
}

.transporter-card b {
  color: var(--primary);
}

.marketplace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 14px;
}

.marketplace-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(25, 48, 43, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.listing-photo {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  background: var(--soft);
}

.listing-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}

.listing-photo-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 190px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.listing-photo-track::-webkit-scrollbar {
  display: none;
}

.listing-photo-slide {
  min-width: 100%;
  height: 190px;
  padding: 0;
  border: 0;
  scroll-snap-align: start;
  background: var(--soft);
}

.listing-photo-slide img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.listing-card:hover .listing-photo-slide img {
  transform: scale(1.035);
}

.ask-more-slide,
.ask-more-detail {
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--soft), #fff5cf);
  color: var(--primary-strong);
  font-weight: 900;
  text-align: center;
}

.photo-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.photo-count {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 8px 11px;
  border-radius: 8px;
  border: 2px solid #ffd166;
  background: #071512 !important;
  color: #ffffff !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 900;
}

.photo-swipe-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(7, 21, 18, 0.62);
  transform: translateX(-50%);
  pointer-events: none;
}

.photo-swipe-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
}

.listing-photo.furniture .photo-badge {
  background: var(--primary);
}

.listing-photo.electronics .photo-badge {
  background: var(--blue);
}

.listing-photo.appliances .photo-badge {
  background: var(--gold);
}

.listing-photo.other .photo-badge {
  background: var(--accent);
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #ffd166;
  background: rgba(7, 21, 18, 0.86) !important;
  color: #ffffff !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.5);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.save-button.saved {
  color: white !important;
  background: #c43d35 !important;
}

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

.listing-body {
  display: grid;
  gap: 7px;
  padding: 12px;
  cursor: pointer;
}

.listing-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.listing-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.listing-title .price {
  text-align: right;
}

.listing-title .rental-price {
  white-space: normal;
  line-height: 1.15;
}

.seller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moving-soon-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 2px 0 4px;
  padding: 8px 10px;
  border: 1px solid rgba(207, 81, 53, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff0e8, #fff8d9);
  color: #8b2f1f;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(207, 81, 53, 0.12);
}

[data-theme="dark"] .moving-soon-badge {
  border-color: rgba(255, 138, 101, 0.4);
  background: linear-gradient(135deg, #341c14, #33270f);
  color: #ffd7c8;
}

.detail-badge {
  margin: 8px 0 10px;
}

.seller-badges span {
  padding: 5px 7px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

[data-theme="dark"] .seller-badges span {
  background: #102b3d;
}

.price {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.meta,
.description,
.seller-row {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.description {
  margin-bottom: 0;
}

.compact-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.tag:nth-child(2) {
  background: #fff1d1;
  color: #8b5b00;
}

.tag:nth-child(3) {
  background: #f9e6df;
  color: #9b321d;
}

[data-theme="dark"] .tag:nth-child(2) {
  background: #3d2d0a;
  color: #ffd166;
}

[data-theme="dark"] .tag:nth-child(3) {
  background: #3b1d16;
  color: #ffad95;
}

.seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.card-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.transport-action {
  color: #0a6c7a;
  background: #e8f8fb;
  border-color: #a7e4ec;
}

[data-theme="dark"] .transport-action {
  color: #9ceaf2;
  background: #0d2d32;
  border-color: #22646e;
}

.primary-button,
.text-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.primary-button {
  min-height: 46px;
  padding: 0 16px;
  background: #0b5f52;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 95, 82, 0.18);
}

.primary-button:hover,
.icon-button:hover {
  background: #083f38;
}

.primary-button:active,
.text-button:active,
.icon-button:active,
.save-button:active,
.floating-sell-button:active {
  transform: scale(0.96);
}

.text-button {
  min-height: 40px;
  padding: 0 12px;
  background: var(--soft);
  color: var(--primary);
}

.text-button:hover {
  background: #dcefe7;
}

.floating-sell-button {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 12;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(207, 81, 53, 0.28);
}

.detail-view,
.detail-summary {
  display: grid;
  gap: 12px;
}

.detail-gallery {
  direction: ltr;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-color: var(--primary) rgba(23, 107, 93, 0.14);
  scrollbar-width: thin;
}

.detail-gallery .detail-photo-button {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.detail-gallery img {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 8px;
}

.photo-viewer-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.photo-viewer-thumb {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--soft);
}

.photo-viewer-thumb.active {
  border-color: var(--primary);
}

.photo-viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ask-more-detail {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.detail-actions {
  justify-content: flex-start;
}

.edit-photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.edit-photo-preview img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 8px;
}

.profile-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.profile-close-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 20px;
  font-weight: 950;
}

.danger-button {
  background: #f9e6df;
  color: #9b321d;
}

.danger-button:hover {
  background: #f3cfc2;
}

[data-theme="dark"] .danger-button {
  background: #3b1d16;
  color: #ffad95;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--primary);
  color: white;
  font-size: 22px;
}

.empty-state {
  margin: 40px 0;
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.nav-item.active {
  color: var(--primary);
  background: var(--soft);
}

dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 28, 25, 0.52);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dialog-head,
.split {
  display: grid;
  gap: 10px;
}

.dialog-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.dialog-card label {
  display: grid;
  gap: 6px;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.google-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-weight: 850;
}

.google-button::before {
  content: "G";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: #ffffff;
  background: #1a73e8;
  font-weight: 900;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

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

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.auth-mode-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-mode-tabs button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 18px rgba(23, 107, 93, 0.2);
}
.auth-signup-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 12px; }
.auth-signup-progress span { padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--panel); font-size: 11px; font-weight: 800; text-align: center; }
.auth-signup-progress span.active { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--panel)); }
.auth-signup-progress span.complete { color: #0b795f; }
.auth-enterprise-organization { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 88%, var(--primary) 12%); }
.auth-enterprise-organization small { color: var(--muted); line-height: 1.45; }

.auth-note.auth-error,
.auth-note.auth-success,
.auth-note.auth-attention {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 900;
}

.auth-note.auth-error {
  border: 1px solid #ffb4a8;
  background: #fff0ed;
  color: #b42318;
}

.auth-note.auth-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.auth-note.auth-attention {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.auth-note.auth-shake {
  animation: authShake 420ms ease;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.auth-action-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(85, 214, 186, 0.22), transparent 32%),
    var(--bg);
}

.auth-action-card {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(7, 21, 18, 0.16);
}

.auth-action-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.auth-action-card h1 {
  margin: 0;
}

.auth-checks label,
.inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  line-height: 1.4;
}

.auth-checks input,
.inline-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.location-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

[data-theme="dark"] .location-box,
[data-theme="dark"] .photo-preview {
  background: #0d211d;
}

.photo-preview {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.photo-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-preview span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.camera-capture-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.camera-capture-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.camera-capture-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.camera-capture-button {
  display: inline-flex !important;
  width: fit-content;
  margin: 0;
  cursor: pointer;
}

.camera-capture-control small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.is-hidden {
  display: none !important;
}

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

@media (max-width: 920px) {
  .hero,
  .grid,
  .growth-logistics,
  .transporter-strip,
  .footer-info,
  .feedback-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

  .category-icon-grid,
  .option-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand span {
    display: none !important;
  }

  .topbar {
    padding: calc(18px + env(safe-area-inset-top)) 14px 12px;
  }

  .brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .brand strong {
    font-size: 16px;
  }

  .top-actions .text-button {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main {
    padding: 14px 14px 104px;
  }

  .hero-copy {
    min-height: 0;
    padding: 14px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-visual {
    min-height: 160px;
  }

  .photo-collage {
    grid-template-rows: repeat(3, 48px);
  }

  .controls {
    position: static;
    top: auto;
    z-index: auto;
  }

  .filter-row,
  .price-row,
  .stats,
  .security-panel,
  .trust-grid,
  .steps-grid,
  .category-icon-grid,
  .option-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

  .relocation-actions button {
    min-height: 76px;
  }

  .relocation-actions strong {
    white-space: normal;
  }

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

  .category-icon-grid button {
    min-height: 112px;
  }

  .option-grid button {
    min-height: 48px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    width: 100%;
  }

  .search-submit {
    width: 100%;
    min-height: 50px;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .profile-page-head {
    grid-template-columns: auto 1fr;
  }

  .profile-page-head > .profile-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .marketplace-head {
    align-items: start;
  }

  .grid,
  .service-grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr !important;
    grid-template-rows: none;
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .grid .listing-card,
  .service-card {
    scroll-snap-align: none;
  }

  .seller-row {
    align-items: stretch;
    flex-direction: column;
  }

  .floating-sell-button {
    right: 16px;
    bottom: 88px;
  }

  .card-actions {
    justify-content: stretch;
  }

.card-actions button {
    flex: 1 1 120px;
  }

  .bottom-nav {
    display: grid;
  }
}

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

.message-list {
  max-height: 300px;
  overflow: auto;
}

.message-row,
.admin-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blocked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.blocked-row div,
.blocked-row strong,
.blocked-row span {
  display: block;
}

.blocked-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.message-row span,
.admin-row span,
.message-row small {
  color: var(--muted);
  font-size: 13px;
}

.admin-member-list {
  max-height: 360px;
  overflow: auto;
}

.admin-member-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-member-row span,
.admin-member-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.live-chat {
  gap: 8px;
}

.chat-bubble {
  display: grid;
  width: fit-content;
  max-width: 82%;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 8px;
}

.chat-bubble.mine {
  justify-self: end;
  background: var(--primary);
  color: white;
}

.chat-bubble.theirs {
  justify-self: start;
  background: var(--soft);
  color: var(--ink);
}

.chat-bubble small {
  font-size: 12px;
  opacity: 0.78;
}

.chat-media {
  display: block;
  width: min(230px, 100%);
  border-radius: 6px;
}

.chat-location {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
}

.chat-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chat-tools label {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.chat-tools input {
  display: none;
}

.chat-tools span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.chat-composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.emoji-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 19px;
}

.emoji-toggle:hover,
.emoji-toggle:focus-visible,
.emoji-picker button:hover,
.emoji-picker button:focus-visible {
  border-color: var(--primary);
  background: var(--soft);
}

.emoji-picker {
  display: grid;
  gap: 10px;
  max-height: 260px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.emoji-picker[hidden] {
  display: none;
}

.emoji-group {
  display: grid;
  gap: 6px;
}

.emoji-group strong {
  color: var(--muted);
  font-size: 12px;
}

.emoji-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-picker button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 19px;
}

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

.admin-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-grid strong,
.admin-grid span {
  display: block;
}

.admin-grid strong {
  font-size: 24px;
  color: var(--primary);
}

.admin-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 46px) 88px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer div,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.site-footer div {
  justify-content: flex-end;
  text-align: right;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--primary);
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.environment-label {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 32px auto;
  padding-bottom: 48px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 20px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-page a {
  color: var(--primary);
  font-weight: 750;
}

@media (max-width: 680px) {
  .distance-row,
  .admin-grid,
  .photo-preview-grid {
    grid-template-columns: 1fr;
  }

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

/* Keep the marketplace column aligned to the visible phone screen, even when header actions are wider. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    padding-inline: 20px;
  }
}

/* Keep every header action visible on narrow phones. */
@media (max-width: 680px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 10px;
    align-items: stretch;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  .brand {
    width: 100%;
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy span {
    display: block !important;
    font-size: 11px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .top-actions > button {
    min-width: 0;
    max-width: 100% !important;
    min-height: 40px;
    padding-inline: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #accountButton:not(.account-avatar-button) {
    grid-column: 1 / -1;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
  }

  #accountButton.account-avatar-button {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    justify-self: end;
    flex-basis: 46px;
  }
}

/* Final overrides for the primary relocation action strip. */
.relocation-actions {
  gap: 12px;
}

.relocation-actions button {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  min-height: 76px;
  align-content: center;
  justify-content: initial;
  padding: 12px 14px !important;
  border: 1px solid #d8e6e1 !important;
  background: #ffffff !important;
  color: #071512 !important;
  box-shadow: 0 8px 18px rgba(7, 21, 18, 0.08) !important;
}

.relocation-actions span {
  display: flex !important;
  grid-column: 1 / -1;
  align-items: center;
  gap: 10px;
  color: #071512 !important;
  font-size: 20px;
  font-weight: 950;
}

.action-icon,
.relocation-actions b {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #e9f7f1 !important;
}

.relocation-actions strong {
  grid-column: 2;
  width: fit-content;
  max-width: 100%;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #48615b !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.relocation-actions [data-relocation-action="rent"] strong,
.relocation-actions [data-relocation-action="services"] strong {
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: #f3f6f5 !important;
  color: #5b6b67 !important;
}

.relocation-actions [data-relocation-action="buy"] .action-icon,
.relocation-actions [data-relocation-action="buy"] b {
  background: #e7f6ff !important;
}

.relocation-actions [data-relocation-action="sell"] .action-icon,
.relocation-actions [data-relocation-action="sell"] b {
  background: #e9f7f1 !important;
}

.relocation-actions [data-relocation-action="rent"] .action-icon,
.relocation-actions [data-relocation-action="rent"] b {
  background: #fff3df !important;
}

.relocation-actions [data-relocation-action="services"] .action-icon,
.relocation-actions [data-relocation-action="services"] b {
  background: #f1edff !important;
}

.relocation-actions [data-relocation-action] .action-icon::before,
.relocation-actions [data-relocation-action] .action-icon::after,
.relocation-actions [data-relocation-action] b::before,
.relocation-actions [data-relocation-action] b::after {
  background: #176b5d;
  border-color: #176b5d;
}

.relocation-actions .action-icon {
  display: grid !important;
  place-items: center;
  color: #176b5d !important;
  font-size: 22px !important;
  font-style: normal;
  font-weight: 950;
  line-height: 1 !important;
}

.relocation-actions .rent-icon,
.relocation-actions .services-icon {
  font-size: 27px !important;
}

.relocation-actions .action-icon::before,
.relocation-actions .action-icon::after {
  display: none !important;
}

.feedback-section {
  margin: 6px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feedback-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feedback-section summary {
  padding: 12px 14px;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.feedback-section details[open] {
  padding-bottom: 12px;
}

.feedback-section .feedback-form {
  padding: 0 14px;
}

/* Final service and header refinements. */
.brand-copy {
  display: none !important;
}

.brand-mark {
  width: 92px !important;
  height: 92px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(23, 107, 93, 0.18) !important;
}

.brand-mark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.market-pulse .is-hidden {
  display: none !important;
}

.services-section {
  order: 9;
  display: grid;
  gap: 14px;
  margin: 8px 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-grid {
  display: grid;
  direction: ltr;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  grid-template-rows: none;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 14px;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--primary) rgba(23, 107, 93, 0.14);
  scrollbar-width: thin;
}

.service-grid::-webkit-scrollbar,
.grid::-webkit-scrollbar {
  height: 12px;
}

.service-grid::-webkit-scrollbar-track,
.grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 107, 93, 0.14);
}

.service-grid::-webkit-scrollbar-thumb,
.grid::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  background-clip: content-box;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  scroll-snap-align: start;
}

.service-card img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
}

.service-card-placeholder {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(82, 211, 190, 0.14), rgba(255, 177, 122, 0.12));
  color: var(--primary-strong);
  font-weight: 950;
  text-align: center;
}

.hero {
  grid-template-columns: 1fr !important;
}

.service-media-gallery {
  direction: ltr;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.service-media-gallery .detail-photo-button,
.service-media-gallery img {
  width: 100%;
  height: 220px;
}

.service-media-gallery .detail-photo-button {
  min-width: 220px;
}

.service-media-gallery img {
  border-radius: 8px;
  object-fit: cover;
}

.service-card > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.service-card h3,
.service-card p {
  margin: 0;
}

.heart-button.saved {
  border-color: #ffb088 !important;
  background: #fff1e9 !important;
  color: #8b2f1f !important;
}

.optional-details {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.rent-section {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

/* v84: Rent actions appear before rental results; Services has its own Browse/List area and results. */
.rent-section { order: 7; }
.marketplace-head { order: 8; }
.grid { order: 9; }
.empty-state { order: 10; }
.search-feedback { order: 6; }
.similar-results { order: 11; }
.services-section { order: 12; }
.profile-page { order: 13; }
.user-options { order: 14; }
.trust-section { order: 15; }
.how-it-works { order: 16; }
.security-panel { order: 17; }
.growth-logistics { order: 18; }
.transporter-strip { order: 19; }
.footer-info { order: 20; }
.feedback-section { order: 21; }

.profile-page { order: 18; }
.user-options { order: 19; }
.footer-info { order: 20; }
.feedback-section { order: 21; }

.marketplace-head { order: 7; }
.grid {
  order: 8;
  direction: ltr;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 370px);
  grid-template-columns: none !important;
  grid-template-rows: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 16px;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--primary) rgba(23, 107, 93, 0.14);
  scrollbar-width: thin;
}

.grid .listing-card {
  scroll-snap-align: start;
}

.listing-photo-slide {
  cursor: zoom-in;
}

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

.photo-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.photo-viewer-stage {
  display: grid;
  place-items: center;
  max-height: min(72vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071512;
  touch-action: pinch-zoom;
}

.photo-viewer-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 700px);
  object-fit: contain;
  transform-origin: center center;
  transition: transform 160ms ease;
}

.detail-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.detail-photo-button img {
  display: block;
  width: 100%;
  height: auto;
}

.empty-state { order: 8; }
.search-feedback { order: 6; }
.similar-results { order: 11; }
.trust-section { order: 12; }
.how-it-works { order: 13; }
.security-panel { order: 14; }
.growth-logistics { order: 15; }
.transporter-strip { order: 16; }

.relocation-actions .action-icon {
  font-size: 0 !important;
}

.relocation-actions .action-icon::before {
  display: grid !important;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: 0 !important;
  color: #176b5d;
  font-size: 23px;
  line-height: 1;
}

.relocation-actions .buy-icon::before { content: "\1F6D2"; }
.relocation-actions .sell-icon::before { content: "\1F3F7"; }
.relocation-actions .rent-icon::before { content: "\1F3E0"; }
.relocation-actions .services-icon::before {
  content: "\1F527";
  font-size: 25px;
}

.relocation-actions [data-relocation-action="services"] strong {
  background: #e9f7f1 !important;
  color: #176b5d !important;
}

@media (max-width: 920px) {
  .service-grid {
    grid-template-rows: none;
    grid-auto-columns: minmax(260px, 82vw);
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 68px !important;
    height: 68px !important;
    border-radius: 17px !important;
  }

  .service-grid {
    grid-template-rows: none;
    grid-auto-columns: minmax(260px, 88vw);
  }

  .grid {
    grid-template-rows: none;
    grid-auto-columns: minmax(270px, 88vw);
  }
}

/* v90: use the wide desktop header and keep the account photo readable. */
.topbar {
  display: flex;
}

.header-hub {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 48px);
}

.header-hub > div:first-child {
  display: grid;
  gap: 2px;
}

.header-hub strong,
.header-hub span {
  display: block;
}

.header-hub strong {
  color: var(--ink);
  font-size: 15px;
}

.header-hub span {
  color: var(--muted);
  font-size: 12px;
}

.header-hub-actions {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.header-hub-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.header-hub-actions button:hover,
.header-hub-actions button:focus-visible {
  background: var(--soft);
  color: var(--primary);
}

.account-avatar-button {
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  flex-basis: 92px;
  min-height: 92px !important;
  padding: 0 !important;
  line-height: 0;
  box-shadow: 0 0 0 3px var(--surface), 0 4px 14px rgb(23 107 93 / 25%);
}

.account-avatar-button.profile-avatar {
  overflow: hidden;
  border-color: var(--primary);
  border-radius: 50% !important;
  background: var(--soft);
}

.account-avatar-button.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 1180px) {
  .top-actions {
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .account-avatar-button {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    flex-basis: 78px;
    min-height: 78px !important;
  }
}

/* v91: relocation shortcuts float above the hero rather than filling the header. */
.market-pulse {
  align-self: stretch;
  min-height: 58px;
  margin-top: 12px;
  border-radius: 12px;
}

.pulse-track {
  min-width: 100%;
  min-height: 58px;
}

.marquee-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #176b5d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 14px rgb(23 107 93 / 20%);
}

.marquee-action:hover,
.marquee-action:focus-visible {
  background: #0d4d42;
}

.market-pulse:hover .pulse-track,
.market-pulse:focus-within .pulse-track {
  animation-play-state: paused;
}

/* v70: keep Buy / Sell / Rent / Services icons centered and aligned. */
.relocation-actions {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.relocation-actions button {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 4px 12px !important;
  min-height: 74px !important;
  padding: 12px !important;
  text-align: left !important;
}

.relocation-actions button > span {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

.relocation-actions .action-icon {
  grid-column: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.relocation-actions .action-icon::before {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  color: #0f5f53 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  transform: none !important;
}

.relocation-actions .action-icon::after {
  display: none !important;
}

.relocation-actions strong {
  grid-column: 2 !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  .relocation-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v71: draw action icons from the card, not from the old inline title icon. */
.relocation-actions button {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 4px !important;
}

.relocation-actions button::before {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  justify-self: center !important;
  align-self: center !important;
  border-radius: 14px !important;
  color: #0f5f53 !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.relocation-actions [data-relocation-action="buy"]::before {
  content: "\1F6D2";
  background: #e7f6ff !important;
}

.relocation-actions [data-relocation-action="sell"]::before {
  content: "\1F3F7";
  background: #e9f7f1 !important;
}

.relocation-actions [data-relocation-action="rent"]::before {
  content: "\1F3E0";
  background: #fff3df !important;
}

.relocation-actions [data-relocation-action="services"]::before {
  content: "\1F527";
  background: #f1edff !important;
  font-size: 25px !important;
}

.relocation-actions button > span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  margin: 0 !important;
  color: #071512 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

.relocation-actions button > span .action-icon {
  display: none !important;
}

.relocation-actions button > strong {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: inline-block !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #48615b !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.relocation-actions [data-relocation-action="rent"] > strong,
.relocation-actions [data-relocation-action="services"] > strong {
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: #e9f7f1 !important;
  color: #176b5d !important;
}

/* v72: hide the older broken action strip and show a clean replacement. */
.relocation-actions {
  display: none !important;
}

.relocation-actions-fixed {
  order: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

/* The four marketplace choices belong directly below the hero title. */
.hero-copy > .lead,
.hero-copy > .hero-highlights,
.hero-copy > .hero-actions {
  display: none;
}

.hero-relocation-actions {
  order: initial;
  margin-top: 24px;
}

.hero-tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero-platform-label {
  color: var(--accent);
}

.hero h1 {
  color: var(--primary);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 950;
  line-height: 0.98;
  text-shadow: 0 5px 18px rgba(15, 95, 83, 0.16);
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: #e75a3c;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1.14;
  text-shadow: 0 3px 12px rgba(217, 157, 40, 0.2);
}

[data-theme="dark"] .hero h1 span {
  color: #ff9a70;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero h1 span {
    font-size: clamp(21px, 6.6vw, 29px);
  }
}

.relocation-actions-fixed:not(.hero-relocation-actions) {
  display: none;
}

.relocation-actions-fixed button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #d8e6e1;
  border-radius: 8px;
  background: #ffffff;
  color: #071512;
  text-align: left;
  box-shadow: 0 8px 18px rgba(7, 21, 18, 0.08);
  cursor: pointer;
}

.fixed-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e9f7f1;
  color: #0f5f53;
  font-size: 22px;
  line-height: 1;
}

.relocation-actions-fixed [data-relocation-action="buy"] .fixed-action-icon {
  background: #e7f6ff;
}

.relocation-actions-fixed [data-relocation-action="sell"] .fixed-action-icon {
  background: #dcfff2;
}

.sell-fixed-icon {
  color: #075c50;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 950;
}

.relocation-actions-fixed [data-relocation-action="rent"] .fixed-action-icon {
  background: #fff3df;
}

.relocation-actions-fixed [data-relocation-action="services"] .fixed-action-icon {
  background: #f1edff;
}

.fixed-action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fixed-action-copy b {
  color: #071512;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.fixed-action-copy strong {
  color: #48615b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.relocation-actions-fixed .fixed-action-copy strong {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #e9f7f1;
  color: #176b5d;
}

@media (max-width: 760px) {
  .relocation-actions-fixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-relocation-actions {
    margin-top: 18px;
  }
}

/* v84 final order: Rent controls, rent results, then Services controls/results. */
.rent-section { order: 7 !important; }
.marketplace-head { order: 8 !important; }
.grid { order: 9 !important; }
.empty-state { order: 10 !important; }
.search-feedback { order: 6 !important; }
.similar-results { order: 11 !important; }
.services-section { order: 12 !important; }
.profile-page { order: 13 !important; }
.user-options { order: 14 !important; }
.trust-section { order: 15 !important; }
.how-it-works { order: 16 !important; }
.security-panel { order: 17 !important; }
.growth-logistics { order: 18 !important; }
.transporter-strip { order: 19 !important; }
.footer-info { order: 20 !important; }
.feedback-section { order: 21 !important; }

/* Enterprise organization communities: additive UI beside the legacy groups. */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row h2 { margin: 0; }

.enterprise-membership-list,
.enterprise-organization-list {
  display: grid;
  gap: 10px;
}

.enterprise-membership-row,
.enterprise-organization-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 92%, var(--primary) 8%);
}

.enterprise-organization-logo {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #dff6ed;
  color: #076b5b;
  font-weight: 900;
}

.enterprise-organization-logo.small { width: 38px; border-radius: 10px; }
.enterprise-organization-logo img { width: 100%; height: 100%; object-fit: cover; }
.enterprise-membership-row strong,
.enterprise-organization-card strong { display: block; }
.enterprise-membership-row small,
.enterprise-organization-card small { display: block; margin-top: 3px; color: var(--muted); }

.verified-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e1f8ea;
  color: #0c765e;
  font-size: 12px;
  font-weight: 800;
}

.enterprise-directory { display: grid; gap: 16px; }
.enterprise-search-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr) auto; align-items: end; gap: 12px; }
.enterprise-request-panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.enterprise-request-panel summary { cursor: pointer; font-weight: 800; color: var(--primary); }
.enterprise-request-panel .tool-form { margin-top: 16px; }

.enterprise-community-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 86%, var(--primary) 14%);
}

.enterprise-organization-logo.large { width: 72px; border-radius: 18px; font-size: 28px; }
.enterprise-community-hero h3 { margin: 2px 0 6px; }
.enterprise-community-hero p { margin: 0 0 6px; color: var(--muted); }
.enterprise-community-tabs { display: flex; gap: 6px; margin: 16px 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.enterprise-community-tabs button { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.enterprise-community-tabs button:hover,
.enterprise-community-tabs button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.enterprise-community-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.enterprise-community-stat-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--panel) 92%, var(--primary) 8%); }
.enterprise-community-stat-grid strong,
.enterprise-community-stat-grid span { display: block; }
.enterprise-community-stat-grid strong { font-size: 20px; color: var(--primary); }
.enterprise-community-stat-grid span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.enterprise-marketplace-list { display: grid; gap: 10px; margin-top: 12px; }
.enterprise-marketplace-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.enterprise-marketplace-card strong,
.enterprise-marketplace-card small { display: block; }
.enterprise-marketplace-card small { margin-top: 4px; color: var(--primary); font-weight: 750; }
.enterprise-marketplace-card p { margin: 7px 0 0; color: var(--muted); }
.enterprise-member-directory { max-height: 480px; }
.enterprise-member-search { max-width: 260px; }
.enterprise-community-settings { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.admin-dashboard-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.admin-dashboard-toolbar label { flex: 1; min-width: 0; }
.enterprise-community-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 18px; margin-top: 18px; }
.enterprise-community-layout h3,
.enterprise-community-chat h3 { margin: 0 0 10px; }
.enterprise-announcement { padding: 12px; border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--panel) 94%, var(--primary) 6%); }
.enterprise-announcement + .enterprise-announcement { margin-top: 8px; }
.enterprise-announcement p { margin: 6px 0; white-space: pre-wrap; }
.enterprise-announcement small { color: var(--muted); }
.enterprise-member-list { display: grid; gap: 8px; max-height: 310px; overflow: auto; padding-right: 4px; }
.enterprise-member-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 10px; }
.enterprise-member-card .profile-avatar { width: 34px; height: 34px; min-width: 34px; }
.enterprise-member-card strong,
.enterprise-member-card small { display: block; }
.enterprise-member-card small { margin-top: 2px; color: var(--muted); }
.enterprise-member-card .verified-pill { text-transform: capitalize; }
.enterprise-community-chat { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.enterprise-community-posts { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.enterprise-community-verification { margin-top: 14px; }
.enterprise-community-posts h3 { margin: 0 0 10px; }
.enterprise-community-posts .tool-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.enterprise-community-posts textarea { min-height: 68px; }
.enterprise-post-list { display: grid; gap: 10px; margin-top: 14px; }
.enterprise-community-post { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.enterprise-community-post p { margin: 6px 0; white-space: pre-wrap; }
.enterprise-community-post small { color: var(--muted); }
.enterprise-post-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.enterprise-post-footer .text-button { padding: 4px 7px; color: #9b483a; }
.enterprise-community-chat .chat-message-list { min-height: 140px; max-height: 300px; overflow: auto; padding: 4px; }
.enterprise-community-chat .chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; }
.enterprise-community-chat textarea { min-height: 48px; }
.enterprise-community-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.enterprise-community-events,
.enterprise-community-polls,
.enterprise-community-resources { padding-top: 18px; border-top: 1px solid var(--line); }
.enterprise-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.enterprise-section-heading h3 { margin: 0; }
.enterprise-section-heading p { margin: 4px 0 0; color: var(--muted); }
.enterprise-event-list,
.enterprise-poll-list,
.enterprise-resource-list { display: grid; gap: 10px; }
.enterprise-event-card,
.enterprise-poll-card,
.enterprise-resource-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); }
.enterprise-event-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.enterprise-event-card p,
.enterprise-resource-card p { margin: 6px 0; white-space: pre-wrap; }
.enterprise-event-card small,
.enterprise-poll-card > small,
.enterprise-resource-card small { color: var(--muted); }
.enterprise-poll-options { display: grid; gap: 7px; margin: 10px 0; }
.enterprise-poll-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 10px; text-align: left; color: var(--ink); background: color-mix(in srgb, var(--panel) 94%, var(--primary) 6%); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.enterprise-poll-choice:hover,
.enterprise-poll-choice.selected { border-color: var(--primary); background: color-mix(in srgb, var(--panel) 84%, var(--primary) 16%); }
.enterprise-poll-choice small { color: var(--muted); white-space: nowrap; }
.enterprise-resource-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.enterprise-resource-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.enterprise-resource-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--panel)); font-size: 12px; font-weight: 800; }
.enterprise-resource-image { width: 46px; height: 46px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.enterprise-resource-image img { width: 100%; height: 100%; object-fit: cover; }

/* Accessibility safeguards that work without changing the active theme. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #d96b3a;
  outline-offset: 3px;
}

@media (prefers-contrast: more) {
  :root { --line: #2c3f3a; --muted: #253c36; }
  button, input, select, textarea, .listing-card, .enterprise-member-card, .enterprise-marketplace-card { border-width: 2px !important; }
  .text-button, .tag, .verified-pill { font-weight: 850; }
}

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

@media (max-width: 640px) {
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .enterprise-search-form { grid-template-columns: 1fr; }
  .enterprise-membership-row,
  .enterprise-organization-card { grid-template-columns: 40px minmax(0, 1fr); }
  .enterprise-membership-row .verified-pill,
  .enterprise-organization-card .text-button { grid-column: 2; justify-self: start; }
  .enterprise-community-layout { grid-template-columns: 1fr; }
  .enterprise-community-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-member-search { max-width: none; width: 100%; }
  .admin-dashboard-toolbar { align-items: stretch; flex-direction: column; }
  .enterprise-community-tools { grid-template-columns: 1fr; }
  .enterprise-community-posts .tool-form { grid-template-columns: 1fr; }
  .enterprise-community-chat .chat-compose { grid-template-columns: 1fr; }
  .enterprise-section-heading { align-items: stretch; flex-direction: column; }
  .enterprise-event-card { align-items: stretch; flex-direction: column; }
  .enterprise-resource-card { grid-template-columns: 46px minmax(0, 1fr); }
  .enterprise-resource-card .text-button { grid-column: 2; justify-self: start; }
}

/* Final mobile-header safeguard: later legacy rules must not force a wide flex row. */
@media (max-width: 680px) {
  .topbar {
    display: grid !important;
  }

  .top-actions {
    display: grid !important;
  }
}
.profile-preference-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-preference-actions button {
  display: grid;
  gap: 3px;
  min-height: 64px;
  text-align: left;
}

.profile-preference-actions button strong,
.profile-preference-actions button span {
  display: block;
}

.profile-preference-actions button span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 520px) {
  .profile-preference-actions {
    grid-template-columns: 1fr;
  }
}
