:root {
  color-scheme: light;
  --ink: #0f0f0f;
  --muted: #6d6d6d;
  --line: #dedbd4;
  --paper: #f5f3ef;
  --panel: #ffffff;
  --panel-soft: #f8f7f3;
  --field-bg: #ffffff;
  --header-bg: rgba(245, 243, 239, 0.92);
  --header-border: rgba(222, 219, 212, 0.9);
  --brand-bg: #0f0f0f;
  --brand-text: #ffffff;
  --dark-surface: #0f0f0f;
  --dark-surface-soft: #1c1c1c;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.76);
  --active-bg: #0f0f0f;
  --active-text: #ffffff;
  --toast-bg: #0f0f0f;
  --toast-text: #ffffff;
  --accent: #b6ff4d;
  --accent-dark: #75c90c;
  --mint: #eaffd3;
  --blue: #dfeafd;
  --gold: #b6ff4d;
  --shadow: 0 20px 50px rgba(15, 15, 15, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #f7f7f2;
  --muted: #b7b9ad;
  --line: #34372d;
  --paper: #0f100e;
  --panel: #191a16;
  --panel-soft: #141511;
  --field-bg: #10110f;
  --header-bg: rgba(15, 16, 14, 0.94);
  --header-border: rgba(58, 64, 45, 0.9);
  --brand-bg: #050505;
  --brand-text: #ffffff;
  --dark-surface: #050505;
  --dark-surface-soft: #1c1c1c;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --active-bg: #b6ff4d;
  --active-text: #0f100e;
  --toast-bg: #eaffd3;
  --toast-text: #0f100e;
  --mint: #263918;
  --blue: #182235;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(220px, 560px) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.search-wrap,
.catalog-toolbar,
.drawer-header,
.total-row {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 260px;
  height: 68px;
  padding: 8px 14px;
  overflow: hidden;
  border: 1px solid rgba(182, 255, 77, 0.24);
  border-radius: 8px;
  background: var(--brand-bg);
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 32px;
  overflow: hidden;
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.brand-text {
  color: var(--brand-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

.wordmark {
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
}

.search-wrap {
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.text-link {
  position: relative;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-message-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-message-link small {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.text-link:hover,
.text-link:focus-visible,
.text-link.active {
  background: var(--active-bg);
  color: var(--active-text);
}

.icon-button,
.primary-button,
.secondary-button,
.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
}

.icon-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.theme-toggle {
  isolation: isolate;
}

.theme-icon {
  grid-area: 1 / 1;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.theme-icon-moon,
:root[data-theme="night"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.76) rotate(-18deg);
}

:root[data-theme="night"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="night"] input,
:root[data-theme="night"] select,
:root[data-theme="night"] textarea {
  color: var(--ink);
  border-color: var(--line);
  background-color: var(--field-bg);
}

:root[data-theme="night"] .search-wrap input {
  background: transparent;
}

:root[data-theme="night"] .catalog-panel,
:root[data-theme="night"] .market-hero-panel,
:root[data-theme="night"] .market-section,
:root[data-theme="night"] .market-store-card,
:root[data-theme="night"] .listing-card,
:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .official-feature-card,
:root[data-theme="night"] .home-category-card,
:root[data-theme="night"] .home-sort-card,
:root[data-theme="night"] .owner-item,
:root[data-theme="night"] .owner-empty,
:root[data-theme="night"] .status-card,
:root[data-theme="night"] .connect-card,
:root[data-theme="night"] .shop-feature,
:root[data-theme="night"] .mini-story,
:root[data-theme="night"] .blog-card,
:root[data-theme="night"] .thread-feed,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .account-card,
:root[data-theme="night"] .admin-card,
:root[data-theme="night"] .terms-panel,
:root[data-theme="night"] .privacy-band .terms-panel,
:root[data-theme="night"] .help-panel,
:root[data-theme="night"] .help-card,
:root[data-theme="night"] .sell-guide-item,
:root[data-theme="night"] .seller-tier-card,
:root[data-theme="night"] .email-program-card,
:root[data-theme="night"] .email-program-column,
:root[data-theme="night"] .plan-card:not(.featured),
:root[data-theme="night"] .bag-drawer,
:root[data-theme="night"] .message-drawer {
  border-color: var(--line);
  background: var(--panel);
}

:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .rating-summary-card,
:root[data-theme="night"] .review-card,
:root[data-theme="night"] .conversation-tab,
:root[data-theme="night"] .photo-picker,
:root[data-theme="night"] .store-launch-panel {
  border-color: var(--line);
  background: var(--panel-soft);
}

:root[data-theme="night"] .secondary-button,
:root[data-theme="night"] .category-chip,
:root[data-theme="night"] .filter-chip,
:root[data-theme="night"] .message-pill {
  color: var(--ink);
  background: var(--mint);
}

main {
  display: grid;
  gap: 28px;
  padding: 28px 0 54px;
}

.page-view {
  scroll-margin-top: 96px;
}

.page-view[hidden] {
  display: none !important;
}

.home-page {
  display: grid;
  gap: 28px;
  margin-inline: clamp(16px, 4vw, 48px);
}

.official-home {
  align-items: start;
}

.official-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  min-height: 620px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.official-hero-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  min-width: 0;
  padding: 42px;
}

.official-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: 74px;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.official-hero-copy p {
  max-width: 44ch;
  margin: 0;
  color: var(--on-dark-muted);
  font-weight: 800;
  line-height: 1.55;
}

.official-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.light-button {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.official-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.official-stats span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.official-stats strong {
  font-size: 22px;
  line-height: 1;
}

.official-stats small {
  color: var(--on-dark-muted);
  font-weight: 800;
}

.official-hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.18), rgba(15, 15, 15, 0) 42%),
    #101010;
}

.official-hero-media::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(182, 255, 77, 0.16), transparent 28%),
    linear-gradient(135deg, #101010, #1c1c1c);
  content: "";
}

.official-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.28), rgba(15, 15, 15, 0));
  content: "";
  pointer-events: none;
}

.official-hero-media img,
.official-hero-media video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.official-hero-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: min(280px, calc(100% - 44px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 15, 15, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.official-hero-label span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.official-hero-label strong {
  font-size: 20px;
}

.official-section {
  display: grid;
  gap: 18px;
}

.official-listing-card {
  border-color: rgba(117, 201, 12, 0.35);
}

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

.official-feature-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.official-feature-card:nth-child(2) {
  border-color: rgba(182, 255, 77, 0.6);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.26), rgba(255, 255, 255, 0.92)),
    #fff;
}

.official-feature-card:nth-child(3) {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), rgba(255, 255, 255, 0.02)),
    #1c1c1c;
}

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

.official-feature-card h3 {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.official-feature-card p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.official-feature-card:nth-child(3) p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.owner-shop {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.owner-panel {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--dark-surface);
  color: var(--on-dark);
}

.owner-profile {
  display: grid;
  gap: 16px;
}

.owner-profile .profile-avatar {
  width: 82px;
  height: 82px;
}

.owner-profile h2,
.owner-profile p {
  margin: 0;
}

.owner-profile h2 {
  font-size: 30px;
  line-height: 1.05;
}

.owner-profile p {
  color: var(--on-dark-muted);
  font-weight: 800;
  line-height: 1.5;
}

.owner-actions {
  display: grid;
  gap: 10px;
}

.owner-listings {
  display: grid;
  gap: 18px;
}

.owner-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.owner-toolbar h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.92;
  text-transform: uppercase;
}

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

.owner-stat {
  padding: 16px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
}

.owner-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.owner-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-shop-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: start;
}

.home-category-card,
.home-sort-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
}

.home-category-card {
  display: grid;
  gap: 12px;
}

.category-browser {
  display: grid;
  gap: 14px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.all-category-button,
.category-list button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 900;
  text-align: left;
}

.all-category-button {
  width: 100%;
  padding: 0 12px;
  text-align: center;
}

.all-category-button.active,
.category-list button.active {
  color: var(--active-text);
  background: var(--active-bg);
}

.category-group {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.category-group h3 {
  margin: 0;
  font-size: 18px;
}

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

.category-list button {
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.2;
}

.home-sort-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.home-sort-card label {
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-sort-card select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 800;
}

.owner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.owner-item,
.owner-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.owner-item {
  overflow: hidden;
}

.owner-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.owner-item div {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.owner-item h3,
.owner-item p {
  margin: 0;
}

.owner-item p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-item strong {
  font-size: 22px;
}

.owner-empty {
  display: grid;
  gap: 12px;
  padding: 24px;
  grid-column: 1 / -1;
}

.owner-empty h2,
.owner-empty p {
  margin: 0;
}

.owner-empty p {
  color: var(--muted);
  font-weight: 800;
}

.owner-empty .primary-button {
  width: max-content;
}

.feed-shell {
  display: grid;
  grid-template-columns: minmax(340px, 540px) minmax(280px, 440px);
  gap: 28px;
  align-items: start;
  justify-content: center;
}

.feed-main {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 14px;
  border-radius: 28px;
  background: #efefed;
  box-shadow: var(--shadow);
}

.feed-tabs {
  display: grid;
  grid-template-columns: 44px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.avatar-chip,
.feed-chip {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.avatar-chip {
  width: 42px;
  color: var(--ink);
  background: #d9d9d6;
}

.feed-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.feed-chip.active {
  color: var(--active-text);
  background: var(--active-bg);
}

.status-card,
.connect-card,
.shop-feature,
.mini-story {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.06);
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.status-card span,
.side-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-card strong,
.side-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
}

.connect-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.connect-card h2 {
  max-width: 28ch;
  margin: 0;
  font-size: 21px;
  line-height: 1.16;
}

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

.connect-actions .secondary-button {
  min-width: 0;
  background: #f4f4f2;
  font-size: 13px;
}

.shop-feature {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.shop-heading {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
}

.store-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--dark-surface);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 900;
}

.shop-heading h2,
.shop-heading p {
  margin: 0;
}

.shop-heading h2 {
  font-size: 16px;
}

.shop-heading p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feature-product {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) 1fr;
  gap: 14px;
  align-items: center;
}

.feature-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.feature-product div {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.feature-product strong {
  font-size: 16px;
}

.feature-product span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.save-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
}

.shop-all-button {
  width: max-content;
  min-height: 42px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 30px;
  font-weight: 900;
}

.mini-story {
  overflow: hidden;
}

.story-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
}

.story-image img,
.story-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #fff;
}

.story-row img {
  aspect-ratio: 1.1 / 1;
  border-radius: 14px;
}

.feed-side {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 8px;
  background: var(--dark-surface);
  color: var(--on-dark);
}

.feed-side h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 0.98;
  text-transform: uppercase;
}

.feed-side p {
  max-width: 36ch;
  margin: 0;
  color: var(--on-dark-muted);
  font-weight: 800;
  line-height: 1.55;
}

.side-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: #1c1c1c;
}

.feed-side .side-card strong {
  color: #fff;
}

.feed-side .primary-button {
  width: max-content;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: stretch;
}

.blog-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  min-height: 560px;
  padding: 32px;
  border-radius: 8px;
  background: var(--dark-surface);
  color: var(--on-dark);
}

.blog-hero-copy h1,
.featured-post h2,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.blog-hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.98;
  text-transform: uppercase;
}

.blog-hero-copy p {
  max-width: 35ch;
  margin: 0;
  color: var(--on-dark-muted);
  font-weight: 800;
  line-height: 1.55;
}

.home-cta {
  width: max-content;
  min-width: 180px;
}

.featured-post {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 560px;
  border-radius: 8px;
  background: #000;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.featured-post div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 10px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.featured-post h2 {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.featured-post p {
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.blog-section {
  display: grid;
  gap: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-help {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.heading-button {
  width: max-content;
}

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 0;
}

.thread-feed-shell {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 15, 15, 0.09);
}

.thread-feed-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.thread-feed-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.thread-feed-header strong {
  font-size: 17px;
}

.thread-feed-header span:not(.profile-avatar) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.thread-post {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
}

.thread-post + .thread-post {
  border-top: 1px solid var(--line);
}

.thread-rail {
  display: grid;
  grid-template-rows: 48px 1fr;
  justify-items: center;
}

.thread-rail .profile-avatar {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: var(--accent);
}

.thread-line {
  width: 2px;
  min-height: 100%;
  margin-top: 10px;
  border-radius: 999px;
  background: #dedbd4;
}

.thread-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.thread-post-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.thread-post-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.thread-post-header strong {
  font-size: 16px;
}

.thread-post-header span,
.thread-stats,
.thread-reply,
.thread-reply-prompt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.thread-menu-button {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  width: 34px;
  height: 34px;
  place-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.thread-menu-button:hover,
.thread-menu-button:focus-visible {
  background: #f0efea;
}

.thread-menu-button span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.thread-post-copy {
  display: grid;
  gap: 7px;
}

.thread-post-copy h3,
.thread-post-copy p,
.thread-reply span {
  margin: 0;
}

.thread-post-copy h3 {
  font-size: 20px;
  line-height: 1.18;
}

.thread-post-copy p {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.thread-post-image {
  width: min(100%, 520px);
  max-height: 340px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
  object-fit: cover;
}

.thread-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.thread-action-button {
  display: inline-flex;
  width: auto;
  min-width: 46px;
  height: 38px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.thread-action-button:hover,
.thread-action-button:focus-visible,
.thread-action-button.active {
  background: var(--mint);
}

.thread-action-button.active {
  color: #4f9000;
}

.thread-action-button.active svg path:first-child {
  fill: currentColor;
}

.thread-actions svg {
  width: 21px;
  height: 21px;
}

.thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thread-stats span + span::before {
  margin-right: 8px;
  color: #b2b0aa;
  content: "·";
}

.thread-reply {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8f7f3;
}

.thread-reply strong {
  color: var(--ink);
}

.thread-reply-prompt {
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.thread-reply-prompt:hover,
.thread-reply-prompt:focus-visible {
  color: var(--ink);
  background: var(--mint);
}

.thread-comment-form {
  display: grid;
  gap: 10px;
  width: min(100%, 520px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.thread-comment-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.thread-comment-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--field-bg);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.thread-comment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.thread-comment-actions .primary-button,
.thread-comment-actions .secondary-button {
  min-height: 40px;
  padding-inline: 16px;
}

.thread-comments {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
}

.thread-comment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.thread-comment .profile-avatar {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.thread-comment > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.thread-comment header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.thread-comment strong {
  color: var(--ink);
}

.thread-comment time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.thread-comment p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.blog-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.feed-post-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 10px;
}

.feed-post-header .profile-avatar {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.feed-post-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.feed-post-header strong {
  font-size: 16px;
}

.feed-post-header small {
  color: var(--muted);
  font-weight: 800;
}

.feed-icon-button {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  width: 34px;
  height: 34px;
  place-content: center;
  border: 0;
  border-radius: 8px;
  background: #f0efea;
}

.feed-icon-button span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.feed-post-copy {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
}

.feed-post-image {
  max-height: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feed-post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.feed-post-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feed-post-actions button,
.feed-comment-box {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #f0efea;
  font-weight: 900;
}

.feed-post-actions button:hover,
.feed-post-actions button:focus-visible,
.feed-comment-box:hover,
.feed-comment-box:focus-visible {
  background: var(--mint);
}

.feed-comment-box {
  margin: 14px 16px;
  padding: 0 14px;
  color: var(--muted);
  text-align: left;
}

.feed-comment {
  display: grid;
  gap: 4px;
  margin: 0 16px 16px 76px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0efea;
}

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

.blog-card h3 {
  font-size: 21px;
  line-height: 1.16;
}

.blog-card .eyebrow {
  color: #4f9000;
}

.blog-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.market-shell {
  display: block;
  min-height: calc(100vh - 98px);
  margin-inline: clamp(16px, 4vw, 48px);
}

.market-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 22px;
  align-items: stretch;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff 0%, #fbfaf6 56%, rgba(182, 255, 77, 0.14) 100%),
    var(--panel);
  box-shadow: 0 16px 42px rgba(15, 15, 15, 0.07);
}

.market-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.market-hero-copy .eyebrow {
  color: #4f9000;
}

.market-hero-copy h1,
.market-hero-copy p {
  margin: 0;
}

.market-hero-copy h1 {
  max-width: 15ch;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 0.94;
}

.market-hero-copy p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

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

.market-hero-actions .primary-button,
.market-hero-actions .secondary-button {
  min-width: 180px;
}

.market-hero-proof {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-hero-proof span {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.market-hero-proof strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.brand-lockup {
  display: grid;
  gap: 5px;
  width: min(100%, 260px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
  text-align: center;
}

.brand-lockup .wordmark {
  font-size: 48px;
}

.brand-lockup > span:last-child {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.control-rail h1,
.catalog-toolbar h2,
.section-copy h2,
.drawer-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.control-rail h1 {
  max-width: 100%;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-copy {
  max-width: 24ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-heading {
  display: grid;
  gap: 4px;
  padding: 2px 2px 0;
}

.filter-heading span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-heading strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.market-filter-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 15, 0.05);
}

.market-filter-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(260px, 1fr) minmax(300px, 1.15fr) minmax(180px, 0.65fr);
  gap: 12px;
  align-items: stretch;
}

.control-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.control-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.control-group-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.segmented button:hover,
.segmented button:focus-visible {
  border-color: rgba(117, 201, 12, 0.54);
  background: var(--mint);
}

.segmented button.active {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.control-group input[type="range"] {
  height: 6px;
  border-radius: 999px;
  background: #ece9df;
}

.range-row,
.check-row,
.listing-meta,
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.range-row {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.range-row strong {
  color: var(--ink);
}

.check-row {
  min-height: 42px;
  justify-content: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 850;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.check-row:hover,
.check-row:focus-within {
  border-color: rgba(182, 255, 77, 0.52);
  background: var(--mint);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.seller-summary {
  display: grid;
  align-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(117, 201, 12, 0.28);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  background:
    linear-gradient(135deg, var(--mint), #fff),
    #fff;
}

.summary-number {
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.catalog-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.catalog-toolbar {
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff, #f7f6f1),
    var(--panel);
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.06);
}

.catalog-toolbar .eyebrow,
.section-copy .eyebrow,
.drawer-header .eyebrow {
  color: #4f9000;
}

.catalog-toolbar h2,
.section-copy h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.toolbar-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

select,
.listing-form input,
.listing-form select,
.profile-form input,
.profile-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.catalog-toolbar select {
  min-width: 220px;
  padding: 0 34px 0 12px;
  font-weight: 900;
}

.sort-field {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.sort-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.market-overview div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #fbfaf6),
    #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
}

.market-overview span {
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.market-overview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.market-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.04);
}

.market-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.market-section-heading h3,
.market-section-heading span {
  margin: 0;
}

.market-section-heading h3 {
  font-size: 20px;
}

.market-section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.listing-heading {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

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

.category-chips button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.05);
}

.category-chips button.active {
  border-color: var(--accent);
  background: var(--accent);
}

.category-chips small {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #f0efea;
  font-size: 12px;
  font-weight: 900;
}

.category-chips button.active small {
  background: rgba(255, 255, 255, 0.72);
}

.marketplace-store-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 12px;
  align-items: stretch;
}

.market-store-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff, #fbfaf6),
    var(--panel);
  text-align: left;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
}

.market-store-card.premium-store-card {
  border-color: rgba(117, 201, 12, 0.54);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.market-store-card:hover,
.market-store-card:focus-visible {
  border-color: rgba(117, 201, 12, 0.65);
  transform: translateY(-1px);
}

.market-store-card .profile-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(117, 201, 12, 0.35);
  font-size: 20px;
}

.market-store-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.market-store-card strong,
.market-store-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-store-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.market-store-topline,
.market-store-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.market-store-topline {
  justify-content: space-between;
}

.market-store-topline em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #4f9000;
  background: var(--mint);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.market-store-stats small {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f7f3;
  color: #4f4f4f;
  font-size: 11px;
  font-weight: 900;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.market-listing-card {
  border-color: rgba(222, 219, 212, 0.92);
  background:
    linear-gradient(180deg, #fff, #fbfaf6),
    var(--panel);
  box-shadow: 0 10px 26px rgba(15, 15, 15, 0.06);
}

.market-listing-card:hover,
.market-listing-card:focus-within {
  border-color: rgba(117, 201, 12, 0.62);
  box-shadow: 0 18px 38px rgba(15, 15, 15, 0.1);
  transform: translateY(-1px);
}

.listing-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blue);
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--listing-image-scale, 1));
  transition: transform 180ms ease;
}

.listing-card:hover .listing-image img {
  transform: scale(var(--listing-image-hover-scale, 1.035));
}

.media-button,
.title-button,
.seller-link {
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.media-button {
  display: block;
  width: 100%;
  padding: 0;
}

.title-button {
  width: 100%;
  padding: 0;
  font-weight: 900;
}

.title-button:hover,
.seller-link:hover {
  text-decoration: underline;
}

.seller-link {
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.listing-image-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 15, 15, 0.78);
  font-size: 11px;
  font-weight: 950;
}

.listing-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 322px;
  padding: 12px;
}

.listing-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}

.seller-mini-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.seller-mini-link span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.seller-mini-link strong,
.seller-mini-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-mini-link strong {
  font-size: 13px;
  font-weight: 950;
}

.seller-mini-link small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.seller-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.shipping-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #4f9000;
  background: var(--mint);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.seller-premium-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(117, 201, 12, 0.46);
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.listing-info {
  display: grid;
  grid-template-rows: 44px auto;
  flex: 0 0 92px;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.listing-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.listing-title .title-button {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 38px;
  overflow: hidden;
}

.listing-chip-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f4f4f;
  background: #f8f7f3;
  font-size: 11px;
  font-weight: 900;
}

.listing-store-row {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.listing-store-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-body > .primary-button {
  flex: 0 0 60px;
  margin-top: auto;
  min-height: 60px;
  align-self: stretch;
}

.detail-page,
.store-page {
  margin-inline: clamp(16px, 4vw, 48px);
}

.detail-shell,
.store-shell {
  display: grid;
  gap: 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 900;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.product-photo {
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.product-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-info,
.store-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.product-info h1,
.store-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.96;
}

.product-price {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-list li,
.seller-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f7f3;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.detail-list strong {
  color: var(--ink);
}

.seller-card {
  border: 0;
  color: var(--ink);
  text-align: left;
}

.seller-card:hover {
  background: var(--mint);
}

.seller-mini {
  display: grid;
  gap: 4px;
}

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

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

.store-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
  border-color: #1c1c1c;
  background:
    radial-gradient(circle at 88% 12%, rgba(182, 255, 77, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(28, 28, 28, 0.98) 56%, rgba(18, 30, 9, 0.96)),
    #0f0f0f;
  color: #fff;
  box-shadow: 0 22px 60px rgba(15, 15, 15, 0.16);
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(182, 255, 77, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 42px);
  opacity: 0.5;
  pointer-events: none;
}

.store-hero > * {
  position: relative;
  z-index: 1;
}

.store-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 20px);
  align-items: center;
  min-width: 0;
}

.store-avatar-frame {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(182, 255, 77, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0.04)),
    #111;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.store-hero .profile-avatar {
  width: 78px;
  height: 78px;
  font-size: 30px;
}

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

.store-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.store-kicker-row .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.store-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.store-badge.muted {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

.store-hero p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.store-hero h1 {
  max-width: 14ch;
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: 0;
}

.store-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.store-meta-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 900;
}

.store-contact,
.store-bio {
  max-width: 68ch;
}

.store-bio {
  font-size: 14px;
  line-height: 1.5;
}

.store-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.store-trust-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.store-actions .primary-button,
.store-actions .secondary-button {
  width: auto;
  min-height: 42px;
  padding-inline: 16px;
}

.store-action-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.store-showcase {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.store-cover-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 8px;
  min-height: 154px;
}

.store-cover-strip button {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #191919;
}

.store-cover-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--listing-image-scale, 1));
}

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

.store-metric {
  display: grid;
  align-content: space-between;
  gap: 6px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-metric span,
.store-section-heading span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-metric strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1;
}

.store-metric small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.store-count {
  display: grid;
  min-width: 94px;
  min-height: 70px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
  text-align: center;
}

.store-count strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.store-launch-panel,
.store-empty-state {
  display: grid;
  gap: 14px;
  align-content: center;
  min-width: 0;
  border: 1px solid rgba(182, 255, 77, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(182, 255, 77, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.store-launch-panel {
  min-height: 320px;
  padding: 24px;
}

.store-launch-panel h2,
.store-launch-panel p,
.store-empty-state h3,
.store-empty-state p {
  margin: 0;
}

.store-launch-panel h2 {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.95;
}

.store-launch-panel p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  line-height: 1.45;
}

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

.store-launch-checks span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.store-launch-checks span.complete {
  border-color: rgba(182, 255, 77, 0.48);
  color: var(--ink);
  background: var(--accent);
}

.store-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.14), rgba(255, 255, 255, 0.72)),
    #fff;
}

.store-empty-state .eyebrow {
  color: #4f9000;
}

.store-empty-state h3 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 0.98;
}

.store-empty-state p {
  max-width: 54ch;
  color: var(--muted);
  font-weight: 800;
}

.store-empty-state .primary-button,
.store-empty-state .secondary-button,
.store-launch-panel .primary-button,
.store-launch-panel .secondary-button {
  width: max-content;
  min-width: 210px;
}

.store-catalog-panel {
  display: grid;
  gap: 16px;
}

.store-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.store-section-heading .eyebrow {
  color: #4f9000;
}

.store-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.store-section-heading span {
  color: var(--muted);
  text-align: right;
}

.store-listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.listing-status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #4f9000;
  background: var(--mint);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.listing-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.listing-meta > span {
  display: -webkit-box;
  overflow: hidden;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.listing-meta .seller-link {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-line {
  display: flex;
  flex: 0 0 44px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  overflow: hidden;
}

.price-line strong {
  font-size: 22px;
}

.price-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rating-compact {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #d3d0c8;
  letter-spacing: 0;
}

.rating-stars .filled {
  color: var(--accent-dark);
}

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

.rating-summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.rating-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-summary-card strong {
  font-size: 16px;
  line-height: 1.2;
}

.review-panel {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.review-panel-header,
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-panel-header h2,
.review-card p {
  margin: 0;
}

.review-panel-header h2 {
  font-size: 22px;
  line-height: 1.15;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.review-gate,
.review-form,
.review-card,
.review-empty {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.review-gate span,
.review-form span,
.review-card small,
.review-empty {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.review-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.review-form textarea {
  min-height: 94px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rating-options label {
  display: block;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.rating-options label:has(input:checked) span,
.rating-options label:focus-within span {
  border-color: var(--accent-dark);
  background: var(--accent);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 60px;
  gap: 8px;
  min-height: 60px;
}

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

.card-actions .secondary-button {
  min-width: 0;
  font-size: 13px;
}

.card-actions.triple .secondary-button {
  gap: 5px;
  padding-inline: 8px;
  font-size: 12px;
}

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

.primary-button:hover,
.primary-button:focus-visible {
  color: #fff;
  background: var(--accent-dark);
}

.primary-button:disabled,
.primary-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button {
  color: var(--ink);
  background: var(--mint);
}

.publish-status {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.publish-status[data-status="success"] {
  color: #4c8f0a;
}

.publish-status[data-status="warning"] {
  color: #7a5b00;
}

.publish-status[data-status="error"] {
  color: #b42318;
}

.profile-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  background: #1c1c1c;
  font-weight: 900;
}

.profile-reset-button:hover,
.profile-reset-button:focus-visible {
  color: var(--ink);
  background: var(--accent);
}

.primary-button.home-cta,
.secondary-button.heading-button {
  width: max-content;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.sell-band,
.profile-band,
.plans-band,
.admin-band,
.terms-band,
.privacy-band,
.help-band {
  display: grid;
  grid-template-columns: minmax(190px, 0.54fr) minmax(0, 1.46fr);
  gap: 20px;
  align-items: start;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.profile-band .section-copy h2 {
  font-size: 30px;
  line-height: 1.12;
}

.account-assurance {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.account-assurance span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.account-assurance span::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.terms-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.terms-intro {
  display: grid;
  gap: 8px;
}

.terms-intro h1,
.terms-intro p,
.terms-item h3,
.terms-item p {
  margin: 0;
}

.terms-intro h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
}

.terms-intro p,
.terms-item p {
  color: var(--muted);
  line-height: 1.45;
}

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

.terms-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.terms-item > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
}

.terms-protection {
  border-color: rgba(166, 255, 51, 0.65);
  background: #101010;
}

.terms-protection h3,
.terms-protection p {
  color: #fff;
}

.terms-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.terms-item h3 {
  font-size: 18px;
}

.terms-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.terms-contact button {
  border: 0;
  border-bottom: 2px solid currentColor;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

.help-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.help-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--dark-surface);
  color: var(--on-dark);
}

.help-hero h1,
.help-hero p,
.help-card h3,
.help-card p,
.help-contact-card span {
  margin: 0;
}

.help-hero h1 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.help-hero p {
  max-width: 62ch;
  color: var(--on-dark-muted);
  line-height: 1.45;
}

.help-contact-card {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
}

.help-contact-card span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-contact-card strong {
  font-size: 30px;
  line-height: 1;
}

.help-contact-card a {
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

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

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

.help-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.help-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
}

.help-card p {
  color: var(--muted);
  line-height: 1.45;
}

.help-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.admin-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

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

.admin-auth-card {
  overflow: hidden;
  border-color: rgba(182, 255, 77, 0.32);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.18), rgba(15, 15, 15, 0) 44%),
    #101010;
  box-shadow: 0 24px 60px rgba(15, 15, 15, 0.22);
}

.admin-lock-panel,
.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-lock-panel {
  max-width: 680px;
}

.admin-login-copy,
.admin-session-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-login-copy {
  grid-template-columns: 54px minmax(0, 1fr);
}

.admin-lock-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(182, 255, 77, 0.36);
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
}

.admin-lock-icon svg {
  width: 24px;
  height: 24px;
}

.admin-auth-card .eyebrow {
  color: var(--accent);
}

.admin-auth-card h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
}

.admin-auth-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.admin-protected-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-protected-list span {
  min-height: 38px;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  background: #1a1a1a;
  font-size: 13px;
  font-weight: 900;
}

.admin-browser-warning {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.45);
  border-radius: 8px;
  background: rgba(182, 255, 77, 0.1);
}

.admin-browser-warning strong,
.admin-browser-warning a {
  color: var(--accent);
  font-weight: 950;
}

.admin-browser-warning span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-browser-warning a {
  width: fit-content;
  text-decoration: underline;
  text-underline-offset: 5px;
}

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

.admin-login-form > div,
.admin-login-form .primary-button {
  grid-column: 1 / -1;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.admin-login-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  background: #1a1a1a;
}

.admin-login-form input[readonly] {
  color: rgba(255, 255, 255, 0.78);
  background: #111;
}

.admin-field-note {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-inline-button {
  width: auto;
  min-width: 120px;
}

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

.admin-form > div,
.admin-form label,
.admin-form .admin-actions,
.admin-form .primary-button {
  min-width: 0;
}

.admin-form > div:first-child,
.admin-form label:has(textarea),
.admin-form .primary-button,
.admin-form .admin-actions {
  grid-column: 1 / -1;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.blog-composer-profile {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f7f3;
}

.blog-composer-profile div {
  display: grid;
  gap: 3px;
}

.blog-composer-profile span:last-child {
  color: var(--muted);
  font-weight: 800;
}

.blog-content-field textarea {
  min-height: 150px;
  font-size: 18px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

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

.admin-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-status-row.admin-session-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.admin-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: stretch;
}

.admin-command-copy,
.admin-owner-contact,
.admin-metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.admin-command-copy {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-command-copy h3 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.admin-command-copy p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.4;
}

.admin-owner-contact {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  color: var(--ink);
  background: var(--accent);
}

.admin-owner-contact span,
.admin-metric-card span,
.admin-metric-card small {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-owner-contact strong {
  font-size: 28px;
  line-height: 1;
}

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

.admin-metric-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.admin-metric-card strong {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.admin-metric-card span,
.admin-metric-card small {
  color: var(--muted);
}

.admin-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-rules span {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

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

.admin-list-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.admin-list-item img {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.admin-list-item div:not(.admin-actions) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-list-item strong,
.admin-list-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-comment-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.admin-comment-list.empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-comment-list > strong {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-comment-item span {
  display: grid;
  gap: 3px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.admin-comment-item b,
.admin-comment-item small {
  display: inline-block;
}

.admin-comment-item small {
  color: var(--muted);
  font-size: 12px;
}

.admin-comment-item .danger-button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 12px;
}

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

.admin-actions.compact .secondary-button,
.admin-actions.compact .danger-button {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1c1c1c;
  font-weight: 900;
}

.danger-button:hover,
.danger-button:focus-visible {
  color: var(--ink);
  background: var(--accent);
}

.seller-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  min-width: 0;
}

.sell-copy {
  position: sticky;
  top: 104px;
}

.sell-intro-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.sell-guide {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.sell-guide-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sell-guide-item > span,
.sell-section-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
}

.sell-guide-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sell-guide-item small,
.sell-profile-note,
.field-hint {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.sell-profile-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.sell-profile-note button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 900;
}

.profile-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(182, 255, 77, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.12), rgba(255, 255, 255, 0.02) 42%),
    var(--ink);
  color: #fff;
  box-shadow: 0 22px 54px rgba(15, 15, 15, 0.2);
}

.account-card {
  order: -1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.account-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #101010;
}

.account-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-weight: 900;
}

.account-mode-switch button.active,
.account-mode-switch button:focus-visible {
  color: var(--ink);
  background: var(--accent);
}

.firebase-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.firebase-connect div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.firebase-connect strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.firebase-connect span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.firebase-button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: var(--accent);
  font-weight: 950;
  white-space: nowrap;
}

.firebase-button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.firebase-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.account-heading,
.account-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.account-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 0;
  color: #5b5b5b;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.account-menu {
  display: grid;
}

.account-row {
  min-height: 58px;
  padding: 7px 0;
  font-size: 22px;
  font-weight: 900;
}

.account-row:has(.account-row-meta) {
  grid-template-columns: 54px minmax(0, 1fr) auto 10px;
}

.account-row + .account-row {
  border-top: 1px solid rgba(222, 219, 212, 0.8);
}

.account-row svg {
  width: 28px;
  height: 28px;
  color: #303030;
  stroke-width: 1.8;
}

.account-row-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.account-row-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-row-copy strong {
  color: inherit;
  font-size: 22px;
  line-height: 1.05;
}

.account-row-copy small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.account-row-meta {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
  font-size: 14px;
  font-weight: 950;
}

.account-count-badge {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.account-row.has-unread {
  color: #1d4f00;
}

.account-row::after {
  width: 10px;
  height: 10px;
  border-top: 2px solid #303030;
  border-right: 2px solid #303030;
  content: "";
  transform: rotate(45deg);
}

.account-row:has(.account-row-meta)::after {
  grid-column: 4;
}

.account-row:hover,
.account-row:focus-visible {
  color: var(--accent-dark);
}

.account-legal {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.account-legal p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.account-legal button {
  border: 0;
  border-bottom: 2px solid currentColor;
  color: var(--accent-dark);
  background: transparent;
  font: inherit;
}

.profile-legal {
  grid-column: 1 / -1;
  padding: 0 0 10px;
  border-color: rgba(255, 255, 255, 0.16);
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-legal p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.profile-legal button {
  color: var(--accent);
}

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

.profile-identity {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-size: 21px;
  font-weight: 900;
}

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

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

.profile-preview h3 {
  font-size: 20px;
}

.profile-preview p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.seller-tier-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.seller-tier-card.premium {
  border-color: rgba(182, 255, 77, 0.74);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
}

.seller-tier-card h4,
.seller-tier-card p {
  margin: 0;
}

.seller-tier-card h4 {
  color: #fff;
  font-size: 17px;
}

.seller-tier-card .primary-button {
  min-height: 42px;
  padding-inline: 16px;
  white-space: nowrap;
}

.account-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.account-dashboard-actions .primary-button,
.account-dashboard-actions .secondary-button,
.account-dashboard-actions .profile-reset-button {
  min-height: 44px;
}

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

.profile-form.signin-mode {
  grid-template-columns: 1fr;
}

.profile-form.connected-mode input[readonly] {
  border-color: rgba(182, 255, 77, 0.34);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(182, 255, 77, 0.08);
}

.seller-store-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.34);
  border-radius: 8px;
  background: rgba(182, 255, 77, 0.08);
}

.seller-store-heading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.seller-store-heading > span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seller-store-heading strong,
.seller-store-heading small {
  display: block;
}

.seller-store-heading strong {
  color: var(--on-dark);
  font-size: 18px;
}

.seller-store-heading small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.4;
}

.listing-form {
  align-self: start;
}

.sell-form {
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.sell-form-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.sell-section-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sell-section-heading h3,
.sell-section-heading p {
  margin: 0;
}

.sell-section-heading h3 {
  font-size: 20px;
}

.sell-section-heading p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.sell-photo-field {
  color: var(--muted);
}

.sell-publish-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.sell-publish-bar div {
  display: grid;
  gap: 4px;
}

.sell-publish-bar span {
  color: var(--on-dark-muted);
  font-weight: 800;
}

.listing-form label,
.profile-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.listing-form input,
.listing-form select,
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 0 12px;
}

.profile-form label {
  color: rgba(255, 255, 255, 0.72);
}

.profile-form input,
.profile-form textarea {
  border-color: #303030;
  background: #1c1c1c;
  color: #fff;
}

.profile-form textarea {
  min-height: 72px;
  padding-block: 10px;
  resize: vertical;
}

.location-assist {
  display: grid;
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.26fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #171717;
}

.location-map {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(166, 255, 51, 0.18), rgba(255, 255, 255, 0.02)),
    #0f0f0f;
}

.location-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.location-map::before {
  position: absolute;
  inset: 22px 34px 30px 42px;
  border: 2px solid rgba(166, 255, 51, 0.72);
  border-radius: 48% 44% 52% 38%;
  content: "";
  transform: rotate(-8deg);
}

.location-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(166, 255, 51, 0.22);
  transform: translate(-50%, -50%);
  transition:
    left 180ms ease,
    top 180ms ease;
}

.location-map-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 15, 15, 0.82);
}

.location-map-copy strong,
.location-map-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-map-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.location-suggestions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.location-suggestions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  background: #1c1c1c;
  text-align: left;
}

.location-suggestions button:hover,
.location-suggestions button:focus-visible {
  border-color: var(--accent);
  background: #242424;
}

.location-suggestions span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.location-suggestions small {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 800;
}

.location-suggestions em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.location-empty {
  padding: 12px;
  border: 1px dashed #303030;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  line-height: 1.45;
}

.seller-pill {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.photo-field {
  cursor: pointer;
}

.photo-picker {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.photo-preview {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
}

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

.photo-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

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

.photo-picker input[type="file"] {
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.profile-form .photo-picker {
  border-color: #303030;
  background: #1c1c1c;
}

.profile-form .photo-preview {
  color: rgba(255, 255, 255, 0.72);
  background: #101010;
}

.profile-form .photo-copy strong {
  color: #fff;
}

.profile-form .photo-copy span {
  color: rgba(255, 255, 255, 0.66);
}

.profile-form .photo-picker input[type="file"] {
  border-color: #303030;
  background: #101010;
  color: #fff;
}

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

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

.plan-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.plan-card.featured {
  border-color: var(--accent);
  color: var(--on-dark);
  background: var(--dark-surface);
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 12px 32px rgba(182, 255, 77, 0.18);
}

.plan-badge {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0;
  font-size: 20px;
}

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

.plan-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.plan-price {
  font-size: 30px;
  font-weight: 900;
}

.plan-price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.plan-card.featured .plan-price small {
  color: rgba(255, 255, 255, 0.7);
}

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

.plan-limit-row span,
.plan-usage {
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(182, 255, 77, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.plan-card.featured .plan-limit-row span,
.plan-card.featured .plan-usage {
  border-color: rgba(182, 255, 77, 0.28);
  color: var(--on-dark);
  background: rgba(182, 255, 77, 0.12);
}

.plan-perks,
.email-program-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-perks li,
.email-program-column li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.plan-perks li::before,
.email-program-column li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.plan-card.featured .plan-perks li {
  color: rgba(255, 255, 255, 0.78);
}

.email-program-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 15, 15, 0.06);
}

.email-program-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.email-program-header h3,
.email-program-header p,
.email-program-column h4,
.email-program-note {
  margin: 0;
}

.email-program-header h3 {
  font-size: 24px;
}

.email-program-header p,
.email-program-note {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.email-queue-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

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

.email-program-column {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.email-program-column h4 {
  font-size: 17px;
}

.bag-drawer,
.message-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  padding: 22px;
  border-left: 1px solid var(--line);
  background: var(--panel);
  box-shadow: -20px 0 60px rgba(15, 15, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.98);
  transform-origin: right center;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.message-drawer {
  inset: 16px 16px 16px auto;
  display: block;
  width: min(920px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  background: #f7f6f2;
}

.message-app {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.message-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #fbfaf7;
}

.message-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.message-sidebar-header h2,
.message-chat-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.message-chat {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f4f2ec;
}

.bag-drawer.open,
.message-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: scaleX(1);
  visibility: visible;
}

.drawer-header {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.message-chat-header {
  min-height: 82px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.message-inbox-button {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
}

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

.bag-items {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 18px 4px 18px 0;
}

.bag-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
}

.bag-item img {
  width: 68px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.bag-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.bag-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: var(--mint);
}

.bag-footer {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.total-row {
  justify-content: space-between;
  font-size: 18px;
}

.conversation-list {
  grid-area: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 11px;
  border: 0;
  border-radius: 0;
  background: #fbfaf7;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-color: rgba(15, 15, 15, 0.24) transparent;
  scrollbar-width: thin;
}

.conversation-list::-webkit-scrollbar,
.message-history::-webkit-scrollbar {
  width: 6px;
}

.conversation-list::-webkit-scrollbar-track,
.message-history::-webkit-scrollbar-track {
  background: transparent;
}

.conversation-list::-webkit-scrollbar-thumb,
.message-history::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.26);
}

.conversation-list::-webkit-scrollbar-thumb:hover,
.message-history::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 15, 15, 0.38);
}

.conversation-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 0 8px;
  color: var(--muted);
  background: #fbfaf7;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-list-heading strong {
  color: #4f9000;
  font-size: 11px;
}

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

.conversation-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.conversation-group-heading small {
  color: #5f6a56;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.conversation-list-empty {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.conversation-tab {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15, 15, 15, 0.04);
}

.conversation-tab.active {
  border-color: rgba(166, 255, 51, 0.9);
  background: linear-gradient(135deg, var(--mint), #fff);
}

.conversation-tab.unread {
  border-color: var(--accent);
  background: #f0ffd9;
}

.conversation-thumb {
  display: block;
  width: 42px;
  height: 50px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark-surface);
}

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

.conversation-tab-body,
.conversation-tab-top {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.conversation-tab-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.conversation-tab strong,
.conversation-tab time,
.conversation-tab-meta,
.conversation-tab em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-tab strong {
  font-size: 12px;
  font-weight: 950;
}

.conversation-tab time,
.conversation-tab-meta,
.conversation-tab em,
.conversation-list-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.conversation-tab em {
  display: block;
  font-style: normal;
}

.conversation-tab b {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.conversation-tab-state {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #4f9000;
  background: var(--mint);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.conversation-list-empty {
  padding: 12px;
  text-align: center;
}

.conversation-product {
  grid-area: auto;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.conversation-product img {
  width: 64px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.conversation-product-copy,
.conversation-product-actions {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.conversation-product-actions {
  justify-items: end;
}

.conversation-product strong,
.conversation-product span,
.conversation-product small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-product span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-product small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.message-mini-button,
.conversation-status-pill {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 950;
}

.conversation-status-pill {
  display: inline-flex;
  align-items: center;
  color: #4f9000;
  background: var(--mint);
}

.message-history {
  grid-area: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(244, 242, 236, 0.92), rgba(244, 242, 236, 0.92)),
    radial-gradient(circle at 18px 18px, rgba(15, 15, 15, 0.05) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-color: rgba(15, 15, 15, 0.24) transparent;
  scrollbar-width: thin;
}

.message-empty {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 800;
}

.message-bubble {
  display: grid;
  justify-self: start;
  gap: 6px;
  max-width: min(76%, 430px);
  padding: 10px 12px;
  border: 1px solid rgba(15, 15, 15, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 15, 15, 0.06);
}

.message-bubble.mine {
  justify-self: end;
  border-color: rgba(90, 154, 0, 0.5);
  background: #eaffcf;
}

.message-bubble div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.message-bubble span,
.message-bubble small {
  color: #555;
  font-size: 11px;
  font-weight: 900;
}

.message-bubble strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.message-bubble p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.message-form {
  grid-area: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(142px, 0.28fr);
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border: 0;
  border-top: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 0;
  background: #101010;
  box-shadow: 0 -8px 24px rgba(15, 15, 15, 0.08);
}

.message-form label {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-form textarea {
  width: 100%;
  min-height: 58px;
  max-height: 112px;
  resize: none;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.message-form .primary-button {
  min-height: 58px;
  align-self: stretch;
  border: 0;
  box-shadow: 0 10px 26px rgba(166, 255, 51, 0.28);
  font-size: 16px;
  font-weight: 950;
}

.message-form textarea::placeholder {
  color: #5f5f5f;
  opacity: 1;
}

.message-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(166, 255, 51, 0.45);
  background: #fff;
}

.email-notice {
  grid-area: notice;
  display: none;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #f8f7f3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

:root[data-theme="night"] .feed-main,
:root[data-theme="night"] .thread-feed-shell,
:root[data-theme="night"] .market-filter-panel,
:root[data-theme="night"] .market-section,
:root[data-theme="night"] .market-store-card,
:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .product-info,
:root[data-theme="night"] .review-gate,
:root[data-theme="night"] .review-form,
:root[data-theme="night"] .review-card,
:root[data-theme="night"] .review-empty,
:root[data-theme="night"] .terms-item,
:root[data-theme="night"] .help-card,
:root[data-theme="night"] .admin-list-item,
:root[data-theme="night"] .admin-command-copy,
:root[data-theme="night"] .admin-metric-card,
:root[data-theme="night"] .sell-guide-item,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .message-drawer,
:root[data-theme="night"] .conversation-product,
:root[data-theme="night"] .message-empty,
:root[data-theme="night"] .email-notice {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="night"] .market-hero-panel,
:root[data-theme="night"] .seller-summary,
:root[data-theme="night"] .catalog-toolbar,
:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .market-store-card,
:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .market-section {
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.08), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

:root[data-theme="night"] .official-feature-card,
:root[data-theme="night"] .home-category-card,
:root[data-theme="night"] .home-sort-card,
:root[data-theme="night"] .owner-item,
:root[data-theme="night"] .owner-empty,
:root[data-theme="night"] .status-card,
:root[data-theme="night"] .connect-card,
:root[data-theme="night"] .shop-feature,
:root[data-theme="night"] .mini-story,
:root[data-theme="night"] .blog-card,
:root[data-theme="night"] .account-card,
:root[data-theme="night"] .admin-card,
:root[data-theme="night"] .terms-panel,
:root[data-theme="night"] .privacy-band .terms-panel,
:root[data-theme="night"] .help-panel,
:root[data-theme="night"] .plan-card:not(.featured),
:root[data-theme="night"] .email-program-card,
:root[data-theme="night"] .bag-drawer,
:root[data-theme="night"] .store-launch-panel {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="night"] .thread-feed-header,
:root[data-theme="night"] .thread-reply,
:root[data-theme="night"] .thread-post-image,
:root[data-theme="night"] .thread-reply-prompt,
:root[data-theme="night"] .thread-comment-form,
:root[data-theme="night"] .thread-comment > div,
:root[data-theme="night"] .admin-comment-item,
:root[data-theme="night"] .feed-icon-button,
:root[data-theme="night"] .feed-post-actions button,
:root[data-theme="night"] .feed-comment,
:root[data-theme="night"] .avatar-chip,
:root[data-theme="night"] .feed-chip,
:root[data-theme="night"] .connect-actions .secondary-button,
:root[data-theme="night"] .story-row,
:root[data-theme="night"] .market-filter-panel .control-group,
:root[data-theme="night"] .segmented button,
:root[data-theme="night"] .range-row,
:root[data-theme="night"] .check-row,
:root[data-theme="night"] .category-chips button,
:root[data-theme="night"] .category-chips small,
:root[data-theme="night"] .market-store-stats small,
:root[data-theme="night"] .listing-chip-row span,
:root[data-theme="night"] .detail-list li,
:root[data-theme="night"] .seller-card,
:root[data-theme="night"] .seller-tier-card,
:root[data-theme="night"] .plan-limit-row span,
:root[data-theme="night"] .plan-usage,
:root[data-theme="night"] .email-program-column,
:root[data-theme="night"] .rating-summary-card,
:root[data-theme="night"] .conversation-list-empty,
:root[data-theme="night"] .account-mode-switch,
:root[data-theme="night"] .firebase-connect {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--ink);
}

:root[data-theme="night"] .category-chips button.active,
:root[data-theme="night"] .segmented button.active,
:root[data-theme="night"] .rating-options label:has(input:checked) span,
:root[data-theme="night"] .conversation-tab b,
:root[data-theme="night"] .seller-premium-badge {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f100e;
}

:root[data-theme="night"] .market-store-card.premium-store-card,
:root[data-theme="night"] .seller-tier-card.premium {
  border-color: rgba(182, 255, 77, 0.6);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

:root[data-theme="night"] .email-program-header p,
:root[data-theme="night"] .email-program-note,
:root[data-theme="night"] .email-program-column li,
:root[data-theme="night"] .plan-perks li,
:root[data-theme="night"] .plan-price small {
  color: var(--muted);
}

:root[data-theme="night"] .profile-card {
  border-color: rgba(182, 255, 77, 0.32);
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.12), rgba(255, 255, 255, 0.02) 42%),
    var(--dark-surface);
  color: var(--on-dark);
}

:root[data-theme="night"] .profile-card input,
:root[data-theme="night"] .profile-card textarea,
:root[data-theme="night"] .profile-card select,
:root[data-theme="night"] .review-form textarea,
:root[data-theme="night"] .rating-options span,
:root[data-theme="night"] .message-form textarea,
:root[data-theme="night"] .message-mini-button,
:root[data-theme="night"] .message-inbox-button,
:root[data-theme="night"] .listing-form input,
:root[data-theme="night"] .listing-form select,
:root[data-theme="night"] .listing-form textarea,
:root[data-theme="night"] .admin-form input,
:root[data-theme="night"] .admin-form select,
:root[data-theme="night"] .admin-form textarea {
  border-color: var(--line);
  background: var(--field-bg);
  color: var(--ink);
}

:root[data-theme="night"] .profile-card input::placeholder,
:root[data-theme="night"] .profile-card textarea::placeholder,
:root[data-theme="night"] .review-form textarea::placeholder,
:root[data-theme="night"] .message-form textarea::placeholder,
:root[data-theme="night"] .listing-form input::placeholder,
:root[data-theme="night"] .listing-form textarea::placeholder,
:root[data-theme="night"] .admin-form input::placeholder,
:root[data-theme="night"] .admin-form textarea::placeholder {
  color: var(--muted);
}

:root[data-theme="night"] .message-sidebar,
:root[data-theme="night"] .message-sidebar-header,
:root[data-theme="night"] .message-chat,
:root[data-theme="night"] .message-chat-header,
:root[data-theme="night"] .conversation-list,
:root[data-theme="night"] .conversation-list-heading {
  border-color: var(--line);
  background: var(--panel-soft);
}

:root[data-theme="night"] .conversation-tab {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="night"] .conversation-tab.active,
:root[data-theme="night"] .conversation-tab.unread {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.2), rgba(182, 255, 77, 0.06)),
    var(--panel);
}

:root[data-theme="night"] .conversation-tab-state,
:root[data-theme="night"] .conversation-status-pill {
  background: var(--mint);
  color: var(--accent);
}

:root[data-theme="night"] .message-history {
  background:
    linear-gradient(rgba(15, 16, 14, 0.94), rgba(15, 16, 14, 0.94)),
    radial-gradient(circle at 18px 18px, rgba(182, 255, 77, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  scrollbar-color: rgba(182, 255, 77, 0.3) transparent;
}

:root[data-theme="night"] .conversation-list {
  scrollbar-color: rgba(182, 255, 77, 0.3) transparent;
}

:root[data-theme="night"] .conversation-list::-webkit-scrollbar-thumb,
:root[data-theme="night"] .message-history::-webkit-scrollbar-thumb {
  background: rgba(182, 255, 77, 0.34);
}

:root[data-theme="night"] .message-bubble {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}

:root[data-theme="night"] .message-bubble.mine {
  border-color: rgba(182, 255, 77, 0.48);
  background: #203b12;
}

:root[data-theme="night"] .message-bubble span,
:root[data-theme="night"] .message-bubble small {
  color: var(--muted);
}

:root[data-theme="night"] .message-form {
  border-color: var(--line);
  background: var(--dark-surface);
}

:root[data-theme="night"] .message-form textarea:focus {
  border-color: var(--accent);
  background: var(--field-bg);
}

:root[data-theme="night"] .thread-line {
  background: var(--line);
}

:root[data-theme="night"] .thread-menu-button:hover,
:root[data-theme="night"] .thread-menu-button:focus-visible {
  background: var(--panel-soft);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 8px;
  color: var(--toast-text);
  background: var(--toast-bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .message-drawer {
    inset: 10px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .message-app {
    grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  }

  .app-header,
  .official-hero,
  .official-feature-grid,
  .owner-shop,
  .home-shop-controls,
  .feed-shell,
  .blog-hero,
  .market-shell,
  .market-hero-panel,
  .product-detail,
  .store-hero,
  .sell-band,
  .profile-band,
  .plans-band,
  .admin-band,
  .terms-band,
  .privacy-band,
  .help-band,
  .help-hero,
  .help-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

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

  .market-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }

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

  .app-header {
    position: static;
    width: 100%;
    gap: 12px;
  }

  .header-actions {
    justify-content: start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .text-link,
  .icon-button {
    flex: 0 0 auto;
  }

  .brand {
    justify-self: start;
  }

  .search-wrap {
    width: 100%;
  }

  .control-rail h1 {
    max-width: 15ch;
  }

  .official-hero {
    min-height: 0;
  }

  .official-hero-media {
    min-height: 420px;
  }

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

  .email-program-grid {
    grid-template-columns: 1fr;
  }

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

  .feed-main {
    max-width: none;
  }

  .owner-panel,
  .control-rail,
  .sell-copy,
  .feed-side {
    position: static;
  }

  .control-rail {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .seller-workspace {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 620px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .seller-tier-card,
  .email-program-header {
    grid-template-columns: 1fr;
  }

  .seller-tier-card {
    align-items: stretch;
  }

  .seller-tier-card .primary-button {
    width: 100%;
  }

  .email-program-header {
    display: grid;
  }

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

  .message-drawer {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--paper);
  }

  .message-app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 100%;
    min-height: 0;
  }

  .message-sidebar,
  .message-chat {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .message-drawer.show-chat .message-sidebar,
  .message-drawer.show-inbox .message-chat {
    display: none;
  }

  .message-sidebar {
    grid-template-rows: auto minmax(0, 1fr);
    border-right: 0;
    border-bottom: 0;
    background: var(--paper);
  }

  .message-chat {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    background: var(--paper);
  }

  .message-sidebar-header,
  .message-chat-header {
    min-height: 58px;
    padding: 12px 14px;
    background: var(--panel);
  }

  .message-sidebar-header h2,
  .message-chat-header h2 {
    overflow: hidden;
    font-size: 22px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .message-chat-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .message-chat-header > div {
    min-width: 0;
  }

  .message-chat-header .eyebrow {
    display: none;
  }

  .message-sidebar-close {
    display: grid;
  }

  .message-inbox-button {
    display: inline-flex;
  }

  .message-inbox-button svg {
    width: 18px;
    height: 18px;
  }

  .conversation-list,
  .message-history {
    padding: 12px 14px;
  }

  .conversation-list {
    gap: 12px;
  }

  .conversation-list-heading {
    padding: 0 0 10px;
    background: var(--paper);
  }

  .conversation-group {
    gap: 9px;
  }

  .conversation-group-heading {
    font-size: 11px;
  }

  .conversation-group-heading small {
    font-size: 10px;
  }

  .conversation-tab {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 76px;
    padding: 10px;
    border-radius: 12px;
  }

  .conversation-thumb {
    width: 52px;
    height: 56px;
    border-radius: 10px;
  }

  .conversation-tab strong {
    font-size: 14px;
  }

  .conversation-tab time,
  .conversation-tab-meta,
  .conversation-tab em {
    font-size: 12px;
  }

  .conversation-tab-state {
    min-width: 40px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .conversation-product {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px;
    border-right: 0;
    border-left: 0;
    background: var(--panel);
  }

  .conversation-product img {
    width: 48px;
    height: 56px;
    border-radius: 8px;
  }

  .conversation-product span {
    display: none;
  }

  .conversation-product strong {
    font-size: 15px;
  }

  .conversation-product small {
    font-size: 12px;
  }

  .conversation-product-actions {
    display: none;
  }

  .message-mini-button,
  .conversation-status-pill {
    justify-content: center;
    width: 100%;
  }

  .message-bubble {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 18px 18px 18px 5px;
  }

  .message-bubble.mine {
    border-radius: 18px 18px 5px 18px;
  }

  .message-bubble div {
    gap: 8px;
  }

  .message-bubble strong {
    font-size: 12px;
  }

  .message-bubble p {
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
  }

  .message-bubble small {
    display: none;
  }

  .message-history {
    min-height: 0;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 14px;
  }

  .message-form textarea {
    min-height: 48px;
    max-height: 92px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.35;
  }

  .message-form {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .message-form label {
    display: none;
  }

  .message-form .primary-button {
    display: grid;
    width: 52px;
    min-width: 52px;
    min-height: 48px;
    place-items: center;
    padding: 0;
    border-radius: 16px;
    font-size: 0;
  }

  .message-form .primary-button svg {
    width: 22px;
    height: 22px;
  }

  .app-header {
    padding: 12px 20px;
  }

  .brand {
    width: 230px;
    height: 58px;
    padding: 7px 12px;
  }

  .wordmark {
    font-size: 29px;
  }

  .search-wrap {
    padding-inline: 12px;
  }

  .search-wrap input {
    height: 44px;
  }

  .header-actions {
    gap: 10px;
    padding-right: 16px;
  }

  .text-link {
    padding: 12px 16px;
    font-size: 14px;
  }

  main {
    padding-top: 18px;
  }

  .control-rail,
  .official-hero-copy,
  .blog-hero-copy,
  .sell-band,
  .profile-band,
  .plans-band,
  .admin-band,
  .terms-band,
  .privacy-band,
  .help-band {
    padding: 20px;
  }

  .official-hero-copy h1 {
    font-size: 48px;
  }

  .official-stats {
    grid-template-columns: 1fr;
  }

  .official-hero-actions {
    display: grid;
  }

  .official-hero-actions .primary-button,
  .official-hero-actions .secondary-button {
    width: 100%;
  }

  .official-hero-media {
    min-height: 360px;
  }

  .blog-hero-copy,
  .featured-post {
    min-height: 430px;
  }

  .thread-post {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .thread-feed-header {
    padding: 14px;
  }

  .thread-rail .profile-avatar,
  .thread-feed-header .profile-avatar {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .thread-post-image {
    width: 100%;
    max-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .market-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-button,
  .home-cta,
  .feed-side .primary-button {
    width: 100%;
  }

  .owner-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-stats {
    grid-template-columns: 1fr;
  }

  .home-sort-card,
  .market-overview,
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-empty .primary-button {
    width: 100%;
  }

  .connect-actions,
  .feature-product {
    grid-template-columns: 1fr;
  }

  .seller-workspace,
  .profile-stack,
  .firebase-connect,
  .account-dashboard-actions,
  .home-sort-card,
  .category-chips,
  .market-filter-grid,
  .market-hero-proof,
  .store-hero-main,
  .store-metrics,
  .rating-summary-grid,
  .rating-options,
  .sell-field-grid,
  .sell-publish-bar,
  .seller-store-fields,
  .help-quick-actions,
  .location-assist,
  .admin-login-copy,
  .admin-protected-list,
  .admin-command-center,
  .admin-command-grid,
  .admin-status-row.admin-session-card,
  .listing-form,
  .profile-form,
  .admin-login-form,
  .admin-form,
  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .admin-status-row,
  .admin-actions,
  .admin-actions.compact,
  .review-panel-header,
  .store-section-heading,
  .terms-contact,
  .help-note {
    align-items: stretch;
    flex-direction: column;
  }

  .store-actions {
    display: grid;
  }

  .store-actions .primary-button,
  .store-actions .secondary-button,
  .admin-inline-button,
  .store-section-heading span {
    width: 100%;
    text-align: left;
  }

  .store-cover-strip,
  .store-launch-checks {
    grid-template-columns: 1fr;
  }

  .store-empty-state .primary-button,
  .store-empty-state .secondary-button,
  .store-launch-panel .primary-button,
  .store-launch-panel .secondary-button {
    width: 100%;
  }

  .admin-actions.compact .secondary-button,
  .admin-actions.compact .danger-button {
    width: 100%;
  }

  .account-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 72px;
    gap: 12px;
    font-size: 22px;
  }

  .account-row:has(.account-row-meta) {
    grid-template-columns: 42px minmax(0, 1fr) auto 10px;
  }

  .account-row svg {
    width: 30px;
    height: 30px;
  }

  .feed-post-stats {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-comment {
    margin-left: 16px;
  }

  .thread-post {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .thread-rail .profile-avatar {
    width: 42px;
    height: 42px;
  }

  .thread-actions {
    flex-wrap: wrap;
  }

  .thread-comment-actions {
    display: grid;
  }

  .thread-comment-actions .primary-button,
  .thread-comment-actions .secondary-button {
    width: 100%;
  }

  .account-legal p {
    font-size: 16px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field,
  .catalog-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .market-hero-panel,
  .market-filter-panel,
  .market-section {
    padding: 14px;
  }

  .market-hero-actions {
    display: grid;
  }

  .market-hero-actions .primary-button,
  .market-hero-actions .secondary-button {
    min-width: 0;
  }

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

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

/* Final theme pass: keep every page readable after responsive rules. */
:root[data-theme="night"] .sell-band,
:root[data-theme="night"] .profile-band,
:root[data-theme="night"] .plans-band,
:root[data-theme="night"] .admin-band,
:root[data-theme="night"] .terms-band,
:root[data-theme="night"] .privacy-band,
:root[data-theme="night"] .help-band,
:root[data-theme="night"] .catalog-panel,
:root[data-theme="night"] .store-catalog-panel,
:root[data-theme="night"] .sell-form,
:root[data-theme="night"] .sell-form-section,
:root[data-theme="night"] .photo-picker,
:root[data-theme="night"] .empty-state {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="night"] .sell-form-section,
:root[data-theme="night"] .photo-picker,
:root[data-theme="night"] .empty-state {
  background: var(--panel-soft);
}

:root[data-theme="night"] .market-hero-proof span,
:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .owner-stat,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .blog-composer-profile,
:root[data-theme="night"] .admin-rules span {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--muted);
}

:root[data-theme="night"] .market-hero-proof strong,
:root[data-theme="night"] .market-overview strong,
:root[data-theme="night"] .owner-stat strong,
:root[data-theme="night"] .account-assurance strong,
:root[data-theme="night"] .blog-composer-profile strong,
:root[data-theme="night"] .admin-rules strong {
  color: var(--ink);
}

:root[data-theme="night"] .official-feature-card:nth-child(2) {
  border-color: rgba(182, 255, 77, 0.38);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), rgba(255, 255, 255, 0.02)),
    var(--panel);
  color: var(--ink);
}

:root[data-theme="night"] .listing-form label,
:root[data-theme="night"] .sell-section-heading p,
:root[data-theme="night"] .field-hint,
:root[data-theme="night"] .sell-photo-field,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .market-hero-proof span {
  color: var(--muted);
}

:root[data-theme="night"] .sell-section-heading h3,
:root[data-theme="night"] .listing-form input,
:root[data-theme="night"] .listing-form select,
:root[data-theme="night"] .listing-form textarea {
  color: var(--ink);
}

:root[data-theme="night"] .listing-form input,
:root[data-theme="night"] .listing-form select,
:root[data-theme="night"] .listing-form textarea {
  border-color: var(--line);
  background: var(--field-bg);
}

:root[data-theme="night"] .primary-button {
  color: #0f100e;
}

:root[data-theme="night"] .secondary-button:not(.light-button) {
  color: var(--ink);
  background: var(--mint);
}

:root[data-theme="night"] .market-hero-actions .secondary-button,
:root[data-theme="night"] .official-hero-actions .secondary-button {
  color: var(--ink);
  background: var(--mint);
}

/* Night contrast polish: badges, counters, and compact labels must stay readable. */
:root[data-theme="night"] .nav-message-link small,
:root[data-theme="night"] .icon-button span,
:root[data-theme="night"] .account-count-badge,
:root[data-theme="night"] .conversation-tab b,
:root[data-theme="night"] .badge,
:root[data-theme="night"] .shipping-pill,
:root[data-theme="night"] .verified-badge,
:root[data-theme="night"] .plan-badge,
:root[data-theme="night"] .store-badge:not(.muted),
:root[data-theme="night"] .seller-pill,
:root[data-theme="night"] .admin-pill,
:root[data-theme="night"] .store-count,
:root[data-theme="night"] .conversation-tab-state,
:root[data-theme="night"] .conversation-status-pill {
  border-color: rgba(182, 255, 77, 0.7);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .icon-button span,
:root[data-theme="night"] .nav-message-link small,
:root[data-theme="night"] .account-count-badge,
:root[data-theme="night"] .account-row-meta {
  border-color: var(--dark-surface);
  box-shadow: 0 0 0 1px rgba(182, 255, 77, 0.38);
}

:root[data-theme="night"] .profile-avatar,
:root[data-theme="night"] .thread-rail .profile-avatar,
:root[data-theme="night"] .thread-feed-header .profile-avatar,
:root[data-theme="night"] .feed-post-header .profile-avatar,
:root[data-theme="night"] .thread-comment .profile-avatar {
  border-color: rgba(182, 255, 77, 0.58);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .store-badge.muted,
:root[data-theme="night"] .store-meta-row span,
:root[data-theme="night"] .store-trust-row span,
:root[data-theme="night"] .message-pill,
:root[data-theme="night"] .filter-chip,
:root[data-theme="night"] .category-chip {
  border-color: rgba(182, 255, 77, 0.28);
  color: var(--on-dark);
  background: rgba(5, 5, 5, 0.62);
}

:root[data-theme="night"] .market-hero-proof span,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .blog-composer-profile,
:root[data-theme="night"] .admin-rules span,
:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .owner-stat {
  border-color: rgba(182, 255, 77, 0.24);
  color: var(--on-dark-muted);
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.08), rgba(255, 255, 255, 0.02)),
    #10110f;
}

:root[data-theme="night"] .market-hero-proof strong,
:root[data-theme="night"] .account-assurance strong,
:root[data-theme="night"] .blog-composer-profile strong,
:root[data-theme="night"] .admin-rules strong,
:root[data-theme="night"] .market-overview strong,
:root[data-theme="night"] .owner-stat strong {
  color: var(--on-dark);
}

:root[data-theme="night"] .account-assurance span::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.13);
}

:root[data-theme="night"] .conversation-list-heading strong,
:root[data-theme="night"] .conversation-group-heading small,
:root[data-theme="night"] .thread-action-button.active,
:root[data-theme="night"] .account-row.has-unread {
  color: var(--accent);
}

:root[data-theme="night"] .thread-action-button:hover,
:root[data-theme="night"] .thread-action-button:focus-visible,
:root[data-theme="night"] .thread-action-button.active {
  background: rgba(182, 255, 77, 0.14);
}

/* Night audit pass: keep small labels, counters, forms, and cards readable on every page. */
:root[data-theme="night"] .icon-button {
  border-color: rgba(182, 255, 77, 0.28);
  color: var(--on-dark);
  background: #1f3515;
}

:root[data-theme="night"] .icon-button:hover,
:root[data-theme="night"] .icon-button:focus-visible {
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .theme-toggle svg,
:root[data-theme="night"] .icon-button svg {
  color: currentColor;
}

:root[data-theme="night"] .text-link:not(.active) {
  color: var(--on-dark);
}

:root[data-theme="night"] .text-link:not(.active):hover,
:root[data-theme="night"] .text-link:not(.active):focus-visible {
  color: var(--accent);
}

:root[data-theme="night"] .search-wrap {
  border-color: rgba(182, 255, 77, 0.22);
  color: var(--ink);
  background: var(--field-bg);
}

:root[data-theme="night"] .search-wrap svg {
  color: var(--muted);
}

:root[data-theme="night"] .search-wrap input::placeholder {
  color: var(--muted);
  opacity: 1;
}

:root[data-theme="night"] .category-chips small,
:root[data-theme="night"] .category-chips button.active small,
:root[data-theme="night"] .market-store-topline em,
:root[data-theme="night"] .listing-status-chip,
:root[data-theme="night"] .store-launch-checks span.complete,
:root[data-theme="night"] .seller-dot,
:root[data-theme="night"] .listing-image-tag,
:root[data-theme="night"] .market-store-card .store-count {
  border-color: rgba(182, 255, 77, 0.72);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .market-store-stats small,
:root[data-theme="night"] .listing-chip-row span,
:root[data-theme="night"] .listing-store-row,
:root[data-theme="night"] .listing-meta,
:root[data-theme="night"] .seller-mini-link small,
:root[data-theme="night"] .seller-link,
:root[data-theme="night"] .seller-mini span,
:root[data-theme="night"] .toolbar-help,
:root[data-theme="night"] .market-section-heading span,
:root[data-theme="night"] .store-section-heading span,
:root[data-theme="night"] .store-metric span,
:root[data-theme="night"] .store-metric small,
:root[data-theme="night"] .detail-list span,
:root[data-theme="night"] .review-card span,
:root[data-theme="night"] .review-empty,
:root[data-theme="night"] .plan-price small,
:root[data-theme="night"] .plan-card p {
  color: var(--muted);
}

:root[data-theme="night"] .market-store-stats small,
:root[data-theme="night"] .listing-chip-row span,
:root[data-theme="night"] .detail-list li,
:root[data-theme="night"] .store-metric,
:root[data-theme="night"] .store-cover-strip button,
:root[data-theme="night"] .location-assist,
:root[data-theme="night"] .location-empty,
:root[data-theme="night"] .photo-preview,
:root[data-theme="night"] .sell-publish-bar,
:root[data-theme="night"] .profile-reset-button,
:root[data-theme="night"] .store-launch-checks span,
:root[data-theme="night"] .seller-card,
:root[data-theme="night"] .rating-summary-card,
:root[data-theme="night"] .review-gate {
  border-color: rgba(182, 255, 77, 0.22);
  color: var(--ink);
  background: #10110f;
}

:root[data-theme="night"] .store-empty-state {
  border-color: rgba(182, 255, 77, 0.28);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.1), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

:root[data-theme="night"] .store-empty-state h3 {
  color: var(--ink);
}

:root[data-theme="night"] .store-empty-state p {
  color: var(--muted);
}

:root[data-theme="night"] .store-empty-state .eyebrow {
  color: var(--accent);
}

:root[data-theme="night"] .account-heading,
:root[data-theme="night"] .account-row {
  color: var(--ink);
}

:root[data-theme="night"] .account-row-copy small {
  color: var(--muted);
}

:root[data-theme="night"] .account-row-meta {
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .account-row svg,
:root[data-theme="night"] .account-row::after {
  color: var(--muted);
  border-color: var(--muted);
}

:root[data-theme="night"] .account-row + .account-row,
:root[data-theme="night"] .account-legal,
:root[data-theme="night"] .profile-legal {
  border-color: rgba(182, 255, 77, 0.22);
}

:root[data-theme="night"] .profile-preview p,
:root[data-theme="night"] .profile-form label,
:root[data-theme="night"] .seller-store-heading small,
:root[data-theme="night"] .profile-legal p,
:root[data-theme="night"] .firebase-connect span,
:root[data-theme="night"] .photo-copy span,
:root[data-theme="night"] .sell-profile-note span {
  color: var(--on-dark-muted);
}

:root[data-theme="night"] .seller-store-heading strong,
:root[data-theme="night"] .firebase-connect strong,
:root[data-theme="night"] .photo-copy strong,
:root[data-theme="night"] .sell-profile-note strong {
  color: var(--on-dark);
}

:root[data-theme="night"] .profile-form.connected-mode input[readonly] {
  border-color: rgba(182, 255, 77, 0.34);
  color: var(--ink);
  background: rgba(182, 255, 77, 0.08);
}

:root[data-theme="night"] .account-mode-switch,
:root[data-theme="night"] .firebase-connect,
:root[data-theme="night"] .profile-form .photo-picker,
:root[data-theme="night"] .profile-form .photo-picker input[type="file"],
:root[data-theme="night"] .seller-store-fields {
  border-color: rgba(182, 255, 77, 0.22);
  background: #10110f;
}

:root[data-theme="night"] .location-suggestions button,
:root[data-theme="night"] .location-suggestions button:hover,
:root[data-theme="night"] .location-suggestions button:focus-visible {
  border-color: rgba(182, 255, 77, 0.26);
  color: var(--ink);
  background: #10110f;
}

:root[data-theme="night"] .location-suggestions small {
  color: var(--muted);
}

:root[data-theme="night"] .terms-contact,
:root[data-theme="night"] .help-note,
:root[data-theme="night"] .admin-status-row,
:root[data-theme="night"] .admin-command-copy,
:root[data-theme="night"] .admin-metric-card,
:root[data-theme="night"] .admin-protected-list span,
:root[data-theme="night"] .admin-browser-warning {
  border: 1px solid rgba(182, 255, 77, 0.22);
  color: var(--muted);
  background: #10110f;
}

:root[data-theme="night"] .admin-owner-contact {
  border-color: rgba(182, 255, 77, 0.72);
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .terms-contact strong,
:root[data-theme="night"] .help-note strong,
:root[data-theme="night"] .admin-status-row h3,
:root[data-theme="night"] .admin-status-row strong,
:root[data-theme="night"] .admin-command-copy h3,
:root[data-theme="night"] .admin-metric-card strong,
:root[data-theme="night"] .admin-protected-list strong {
  color: var(--ink);
}

:root[data-theme="night"] .admin-command-copy p:not(.eyebrow),
:root[data-theme="night"] .admin-metric-card span,
:root[data-theme="night"] .admin-metric-card small {
  color: var(--muted);
}

:root[data-theme="night"] .admin-owner-contact span,
:root[data-theme="night"] .admin-owner-contact strong {
  color: #071006;
}

:root[data-theme="night"] .help-contact-card {
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .help-contact-card a,
:root[data-theme="night"] .help-contact-card strong,
:root[data-theme="night"] .help-contact-card span {
  color: #071006;
}

:root[data-theme="night"] .plan-card.featured {
  border-color: rgba(182, 255, 77, 0.66);
  color: var(--on-dark);
  background: #050505;
}

:root[data-theme="night"] .plan-card.featured p,
:root[data-theme="night"] .plan-card.featured small {
  color: var(--on-dark-muted);
}

:root[data-theme="night"] .conversation-list-heading,
:root[data-theme="night"] .conversation-group-heading,
:root[data-theme="night"] .conversation-tab-meta,
:root[data-theme="night"] .conversation-product span,
:root[data-theme="night"] .conversation-product small,
:root[data-theme="night"] .message-form label {
  color: var(--muted);
}

:root[data-theme="night"] .conversation-product strong,
:root[data-theme="night"] .message-sidebar-header h2,
:root[data-theme="night"] .message-chat-header h2,
:root[data-theme="night"] .message-bubble strong,
:root[data-theme="night"] .message-bubble p {
  color: var(--ink);
}

:root[data-theme="night"] .message-bubble.mine strong,
:root[data-theme="night"] .message-bubble.mine p {
  color: var(--on-dark);
}

:root[data-theme="night"] .message-bubble.mine span,
:root[data-theme="night"] .message-bubble.mine small {
  color: rgba(255, 255, 255, 0.76);
}

:root[data-theme="night"] .message-form .primary-button {
  color: #071006;
}

:root[data-theme="night"] .thread-feed-shell,
:root[data-theme="night"] .thread-post,
:root[data-theme="night"] .thread-reply,
:root[data-theme="night"] .thread-comment-form,
:root[data-theme="night"] .feed-comment {
  color: var(--ink);
}

:root[data-theme="night"] .thread-post-meta,
:root[data-theme="night"] .thread-comment-meta,
:root[data-theme="night"] .thread-reply-prompt,
:root[data-theme="night"] .feed-comment time {
  color: var(--muted);
}

:root[data-theme="night"] .thread-action-button,
:root[data-theme="night"] .feed-post-actions button {
  color: var(--on-dark);
}

/* Sell page night fix: step numbers must stay dark on Hangah green. */
:root[data-theme="night"] .sell-guide-item > span,
:root[data-theme="night"] .sell-section-heading > span {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .sell-profile-note button {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}
