/* ============================================================
   PRE-LAUNCH GATE STYLES
   Activated by html[data-maintenance="true"]
   Brand: #050705 dark slate · #9dfc23 neon green · #ffffff text
   ============================================================ */

/* Hide the pre-launch section by default (shown only in maintenance mode) */
.maintenance-page {
  display: none;
}

/* ---- Maintenance-mode overrides ---- */

/* Dark body — no page margin, no theme interference */
html[data-maintenance="true"] body {
  margin: 0 !important;
  padding: 0 !important;
  background: #050705 !important;
  color: #ffffff !important;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide every sibling (the real app) */
html[data-maintenance="true"] body > :not(.maintenance-page) {
  display: none !important;
}

/* ---- Page shell ---- */
html[data-maintenance="true"] .maintenance-page {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh; /* fallback */
  padding: 40px 24px 56px;
  box-sizing: border-box;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(157, 252, 35, 0.07) 0%, transparent 70%),
    #050705;
}

/* ---- Inner container ---- */
html[data-maintenance="true"] .pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  max-width: 480px;
}

/* ---- Logo ---- */
html[data-maintenance="true"] .pl-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-maintenance="true"] .pl-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ---- Divider accent line ---- */
html[data-maintenance="true"] .pl-brand::after {
  content: none;
}

/* ---- Hero copy ---- */
html[data-maintenance="true"] .pl-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

html[data-maintenance="true"] .pl-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9dfc23;
}

html[data-maintenance="true"] .pl-headline {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
}

html[data-maintenance="true"] .pl-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #86998b;
  max-width: 400px;
}

/* ---- Password gate form ---- */
html[data-maintenance="true"] .pl-gate {
  width: 100%;
}

html[data-maintenance="true"] .pl-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

html[data-maintenance="true"] .pl-label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #86998b;
}

html[data-maintenance="true"] .pl-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

html[data-maintenance="true"] .pl-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: #111813;
  border: 1.5px solid #1e2a20;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

html[data-maintenance="true"] .pl-input::placeholder {
  color: #3d4f40;
}

html[data-maintenance="true"] .pl-input:focus {
  border-color: #9dfc23;
  box-shadow: 0 0 0 3px rgba(157, 252, 35, 0.12);
}

html[data-maintenance="true"] .pl-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  background: #9dfc23;
  color: #050705;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
}

html[data-maintenance="true"] .pl-submit:hover {
  background: #b3ff50;
  transform: translateY(-1px);
}

html[data-maintenance="true"] .pl-submit:active {
  transform: translateY(0);
}

html[data-maintenance="true"] .pl-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---- Error state ---- */
html[data-maintenance="true"] .pl-error {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #ff6b6b;
  text-align: left;
}

/* ---- Footer note ---- */
html[data-maintenance="true"] .pl-footnote {
  margin: 0;
  font-size: 13px;
  color: #3d4f40;
}

/* ---- Responsive: stack on very narrow screens ---- */
@media (max-width: 400px) {
  html[data-maintenance="true"] .pl-input-row {
    flex-direction: column;
  }

  html[data-maintenance="true"] .pl-submit {
    width: 100%;
    justify-content: center;
  }
}


: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;
  /* Shared semantic theme contract. New and repaired components use these
     names instead of literal white/black values. */
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text-primary: #0f0f0f;
  --text-secondary: #475143;
  --text-muted: #687265;
  --border: #d7ded2;
  --input-bg: #ffffff;
  --button-bg: #111111;
  --button-text: #ffffff;
  --accent-ink: #14200a;
  --danger: #b42318;
  --success: #387400;
  --rating: #8a5a00;
  --focus-ring: rgba(75, 134, 8, 0.52);
  --disabled-bg: #d9ded5;
  --disabled-text: #566053;
  --text-on-dark: #f5f7f2;
  --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: #c0c3b8;
  --line: #2f3728;
  --paper: #0b0d0a;
  --panel: #141712;
  --panel-soft: #10130f;
  --field-bg: #10110f;
  --header-bg: rgba(8, 10, 8, 0.94);
  --header-border: rgba(58, 76, 42, 0.72);
  --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: #071006;
  --toast-bg: #eaffd3;
  --toast-text: #0f100e;
  --bg: #080a08;
  --surface: #111510;
  --surface-elevated: #181d16;
  --text-primary: #f5f7f2;
  --text-secondary: #d1d8cb;
  --text-muted: #aeb7a8;
  --border: #384331;
  --input-bg: #0f130e;
  --button-bg: #b6ff4d;
  --button-text: #071006;
  --accent-ink: #071006;
  --danger: #ffaaa4;
  --success: #c7ff72;
  --rating: #ffd36b;
  --focus-ring: rgba(182, 255, 77, 0.66);
  --disabled-bg: #272d24;
  --disabled-text: #b4bcb0;
  --text-on-dark: #f5f7f2;
  --mint: #263918;
  --blue: #182235;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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-auth-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-auth-login {
  color: var(--ink);
  background: var(--panel);
}

.nav-auth-signup {
  border-color: var(--accent);
  color: #050505;
  background: var(--accent);
}

.nav-account-menu {
  position: relative;
  flex: 0 0 auto;
}

.nav-account-summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.nav-account-summary::-webkit-details-marker {
  display: none;
}

.nav-account-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  color: #050505;
  background: var(--accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-account-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.nav-account-dropdown button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.nav-account-dropdown button:hover,
.nav-account-dropdown button:focus-visible {
  color: var(--active-text);
  background: var(--active-bg);
}

.nav-account-dropdown .nav-dropdown-signout {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

@media (max-width: 1180px) {
  .app-header {
    grid-template-columns: auto minmax(180px, 1fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .text-link,
  .icon-button,
  .nav-account-menu,
  .nav-auth-actions {
    flex: 0 0 auto;
  }
}

/* Admin dashboard live QA repair: keep controls readable and contained. */
#admin .admin-dashboard-live-shell {
  align-items: start;
}

@media (min-width: 1101px) {
  #admin .admin-dashboard-sidebar {
    position: sticky !important;
    top: 88px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #admin .admin-module-rail {
    gap: 6px;
  }

  #admin .admin-module-rail button {
    min-height: 38px;
    padding-block: 7px;
  }
}

#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-system-alert-row {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#admin .admin-listing-row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(150px, 0.7fr) minmax(88px, max-content) minmax(180px, 240px);
}

#admin .admin-order-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.85fr) minmax(88px, max-content) minmax(104px, max-content) minmax(180px, 240px);
}

#admin .admin-premium-row {
  grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 0.75fr) minmax(104px, max-content) minmax(180px, 240px);
}

#admin .admin-support-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.75fr) minmax(96px, max-content) minmax(88px, max-content) minmax(180px, 220px);
}

#admin .admin-system-alert-row {
  grid-template-columns: 52px minmax(0, 1fr) minmax(142px, 0.5fr) minmax(92px, max-content) minmax(150px, 190px);
}

#admin .admin-listing-actions,
#admin .admin-order-actions,
#admin .admin-premium-actions,
#admin .admin-safety-actions,
#admin .admin-support-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  justify-self: stretch;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

#admin .admin-listing-actions .admin-user-row-button,
#admin .admin-order-actions .admin-user-row-button,
#admin .admin-premium-actions .admin-user-row-button,
#admin .admin-safety-actions .admin-user-row-button,
#admin .admin-support-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin .admin-user-row-button:disabled,
#admin .secondary-button:disabled,
#admin .danger-button:disabled,
#admin .admin-action-chip:disabled,
#admin .admin-inline-button:disabled,
#admin .admin-cleanup-actions button:disabled {
  opacity: 1;
  color: rgba(7, 9, 7, 0.62);
  border-color: rgba(7, 9, 7, 0.16);
  background: rgba(182, 255, 77, 0.1);
  cursor: not-allowed;
}

:root[data-theme="night"] #admin .admin-user-row-button:disabled,
:root[data-theme="night"] #admin .secondary-button:disabled,
:root[data-theme="night"] #admin .danger-button:disabled,
:root[data-theme="night"] #admin .admin-action-chip:disabled,
:root[data-theme="night"] #admin .admin-inline-button:disabled,
:root[data-theme="night"] #admin .admin-cleanup-actions button:disabled {
  color: rgba(247, 248, 243, 0.62);
  border-color: rgba(182, 255, 77, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

#admin .admin-email-row strong,
#admin .admin-email-row span,
#admin .admin-email-queue-item strong,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small,
#admin .admin-marketing-row strong,
#admin .admin-marketing-row span,
#admin .admin-marketing-card strong,
#admin .admin-marketing-card span,
#admin .admin-system-alert-details span,
#admin .admin-support-row > span:not(.admin-user-status),
#admin .admin-order-row > span:not(.admin-user-status) {
  color: var(--admin-muted-ui);
}

#admin .admin-email-row strong,
#admin .admin-email-queue-item strong,
#admin .admin-marketing-row strong,
#admin .admin-system-alert-row .admin-user-main strong {
  color: var(--admin-text-ui);
}

#admin .admin-user-status,
#admin .admin-pill,
#admin .account-row-meta {
  color: #071006;
  text-shadow: none;
}

#admin .admin-user-status.system-info,
#admin .admin-user-status.system-warning,
#admin .admin-user-status.system-critical,
#admin .admin-user-status.listing-removed,
#admin .admin-user-status.listing-flagged,
#admin .admin-user-status.listing-rejected,
#admin .admin-user-status.support-closed,
#admin .admin-user-status.premium-basic,
#admin .admin-user-status.premium-cancelled,
#admin .admin-user-status.premium-expired,
#admin .admin-user-status.premium-failed {
  color: var(--admin-text-ui);
}

:root[data-theme="night"] #admin .admin-user-status.system-info,
:root[data-theme="night"] #admin .admin-user-status.system-warning,
:root[data-theme="night"] #admin .admin-user-status.system-critical,
:root[data-theme="night"] #admin .admin-user-status.listing-removed,
:root[data-theme="night"] #admin .admin-user-status.listing-flagged,
:root[data-theme="night"] #admin .admin-user-status.listing-rejected,
:root[data-theme="night"] #admin .admin-user-status.support-closed,
:root[data-theme="night"] #admin .admin-user-status.premium-basic,
:root[data-theme="night"] #admin .admin-user-status.premium-cancelled,
:root[data-theme="night"] #admin .admin-user-status.premium-expired,
:root[data-theme="night"] #admin .admin-user-status.premium-failed {
  color: #f7f8f3;
}

@media (max-width: 1320px) {
  #admin .admin-listing-row,
  #admin .admin-order-row,
  #admin .admin-premium-row,
  #admin .admin-safety-row,
  #admin .admin-support-row,
  #admin .admin-system-alert-row {
    grid-template-columns: 1fr;
  }

  #admin .admin-listing-row img,
  #admin .admin-premium-row img {
    width: 64px;
    height: 64px;
  }
}



.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"] .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;
}

.home-footer {
  overflow: hidden;
  margin-top: clamp(18px, 4vw, 42px);
  padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 48px) 24px;
  border: 1px solid rgba(182, 255, 77, 0.18);
  border-radius: 8px;
  color: #fff;
  background: #030403;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.home-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(130px, 0.72fr)) minmax(220px, 1fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
}

.home-footer-brand,
.home-footer-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-footer-logo {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  color: #fff;
}

.home-footer-wordmark {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.home-footer-dot {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: #b6ff4d;
  box-shadow: 0 0 0 4px rgba(182, 255, 77, 0.14);
}

.home-footer-brand p,
.home-footer-newsletter p {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.home-footer-brand p:first-of-type {
  color: #b6ff4d;
  font-weight: 900;
}

.home-footer-column h3 {
  margin: 0 0 4px;
  color: #b6ff4d;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-footer-column a,
.home-footer-column button {
  width: fit-content;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.home-footer-column a:hover,
.home-footer-column a:focus-visible,
.home-footer-column button:hover,
.home-footer-column button:focus-visible {
  color: #b6ff4d;
  outline: 0;
}

.home-footer-newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: #080908;
}

.home-footer-newsletter label {
  min-width: 0;
}

.home-footer-newsletter input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 750;
}

.home-footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.home-footer-newsletter form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  color: #101010;
  background: #b6ff4d;
  line-height: 1;
  padding: 0;
}

.home-footer-newsletter form button[type="submit"] {
  padding: 0;
}

.home-footer-newsletter form button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.home-footer-bottom {
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 18px;
  border-top: 1px solid rgba(182, 255, 77, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.official-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  overflow: hidden;
  min-height: 590px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.official-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}

.official-hero-copy h1 {
  max-width: 11.5ch;
  margin: 0;
  font-size: clamp(46px, 4.7vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
}

.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;
}

.official-hero-actions .primary-button,
.official-hero-actions .secondary-button {
  width: auto;
  min-width: 178px;
  min-height: 52px;
  padding-inline: 22px;
}

.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;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.official-stats strong {
  color: #fff;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.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(8, 8, 8, 0.36), rgba(8, 8, 8, 0.04) 42%, rgba(8, 8, 8, 0.18)),
    linear-gradient(0deg, rgba(8, 8, 8, 0.34), rgba(8, 8, 8, 0) 36%);
  content: "";
  pointer-events: none;
}

.official-hero-media img,
.official-hero-media video {
  position: relative;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: right center;
  background: #050505;
}

.official-hero-media-mark {
  position: absolute;
  right: clamp(18px, 2.5vw, 34px);
  bottom: clamp(18px, 2.5vw, 34px);
  z-index: 1;
  display: none;
  gap: 4px;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(182, 255, 77, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 5, 5, 0.76);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.official-hero-media-mark strong {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.official-hero-media-mark span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.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, 1180px);
  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);
}

:root[data-theme="night"] .social-blog-shell {
  border-color: #2b3c21;
  color: #f7f7f2;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.12), rgba(255, 255, 255, 0.02) 42%),
    #0d120c;
  box-shadow: none;
}

:root[data-theme="night"] .social-feed-panel,
:root[data-theme="night"] .social-blog-metrics span,
:root[data-theme="night"] .social-post-card {
  border-color: #26351f;
  color: #f7f7f2;
  background: #11160f;
  box-shadow: none;
}

:root[data-theme="night"] .social-post-actions button,
:root[data-theme="night"] .social-feed-heading button:hover,
:root[data-theme="night"] .social-feed-heading button:focus-visible,
:root[data-theme="night"] .social-feed-tabs button.active,
:root[data-theme="night"] .social-replies-link,
:root[data-theme="night"] .social-story-empty,
:root[data-theme="night"] .social-post-card .thread-comment-form {
  border-color: #314623;
  color: #e7eadf;
  background: #1a2614;
}

:root[data-theme="night"] .social-post-media {
  color: #f7f7f2;
  background: #0d120c;
}

:root[data-theme="night"] .social-post-copy h3,
:root[data-theme="night"] .social-post-author strong,
:root[data-theme="night"] .social-blog-header h3,
:root[data-theme="night"] .social-feed-heading h3 {
  color: #f7f7f2;
}

:root[data-theme="night"] .social-blog-header > div:first-child p:not(.eyebrow),
:root[data-theme="night"] .social-blog-metrics small,
:root[data-theme="night"] .social-story strong,
:root[data-theme="night"] .social-post-author small,
:root[data-theme="night"] .social-post-copy p,
:root[data-theme="night"] .social-feed-heading button,
:root[data-theme="night"] .social-feed-tabs button {
  color: #c0c3b8;
}

.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;
}

.social-blog-shell {
  display: grid;
  overflow: hidden;
  gap: 22px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.1), rgba(255, 255, 255, 0.62) 36%),
    var(--panel);
  box-shadow: 0 22px 56px rgba(15, 15, 15, 0.1);
}

.social-camera-mark,
.social-mini-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-weight: 950;
}

.social-camera-mark {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.social-blog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.social-blog-header h3,
.social-blog-header p {
  margin: 0;
}

.social-blog-header h3 {
  max-width: 15ch;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.social-blog-header > div:first-child {
  display: grid;
  gap: 10px;
}

.social-blog-header > div:first-child p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.social-blog-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px;
  min-width: 280px;
}

.social-blog-metrics span {
  display: grid;
  gap: 2px;
  min-height: 66px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--panel);
}

.social-blog-metrics strong {
  font-size: 20px;
  line-height: 1;
}

.social-blog-metrics small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.social-post-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.social-feed-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.social-feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.social-feed-heading h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.social-feed-heading button,
.social-feed-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.social-feed-heading button:hover,
.social-feed-heading button:focus-visible,
.social-feed-tabs button.active {
  color: var(--ink);
  background: var(--mint);
}

.social-story-strip {
  display: grid;
  grid-auto-columns: 84px;
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.social-story-strip.empty {
  grid-auto-columns: minmax(220px, 1fr);
}

.social-story-empty {
  display: grid;
  min-height: 74px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 850;
}

.social-story {
  display: grid;
  width: 84px;
  gap: 7px;
  justify-items: center;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
}

.social-story span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), #ff6f91 58%, #77c8ff);
}

.social-story img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--panel);
  border-radius: inherit;
  object-fit: cover;
}

.social-story strong {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.story-viewer-open {
  overflow: hidden;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 4, 0.82);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  backdrop-filter: blur(12px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.story-viewer.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.story-viewer-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(430px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(182, 255, 77, 0.26);
  border-radius: 8px;
  color: #f7f7f2;
  background: #080b08;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.story-viewer-header,
.story-viewer-footer {
  position: relative;
  z-index: 2;
}

.story-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
}

.story-viewer-header > div {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
}

.story-viewer-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-weight: 950;
}

.story-viewer-header strong,
.story-viewer-header small {
  display: block;
}

.story-viewer-header strong {
  color: #fff;
  line-height: 1.05;
}

.story-viewer-header small,
.story-viewer-footer span {
  color: rgba(247, 247, 242, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.story-viewer-close,
.story-viewer-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
}

.story-viewer-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.story-viewer-close svg,
.story-viewer-nav svg {
  width: 20px;
  height: 20px;
}

.story-viewer-media {
  position: relative;
  min-height: 0;
  margin-top: -66px;
  margin-bottom: -96px;
}

.story-viewer-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.story-viewer-footer {
  display: grid;
  gap: 10px;
  align-items: end;
  min-height: 120px;
  padding: 54px 18px 18px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.82));
}

.story-viewer-footer h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 0.98;
  letter-spacing: 0;
}

.story-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 58px;
  border-radius: 8px;
  transform: translateY(-50%);
}

.story-viewer-nav.previous {
  left: 10px;
}

.story-viewer-nav.next {
  right: 10px;
}

.story-viewer-close:hover,
.story-viewer-close:focus-visible,
.story-viewer-nav:hover,
.story-viewer-nav:focus-visible {
  border-color: rgba(182, 255, 77, 0.72);
  background: rgba(34, 55, 24, 0.88);
}

.social-feed-tabs {
  display: inline-flex;
  gap: 4px;
}

.social-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-post-empty {
  grid-column: 1 / -1;
}

.social-post-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 15, 15, 0.08);
}

.social-post-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--panel-soft);
}

.social-post-media img,
.social-post-fallback {
  width: 100%;
  height: 100%;
}

.social-post-media img {
  display: block;
  object-fit: cover;
}

.social-post-fallback {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: var(--on-dark);
  background:
    linear-gradient(transparent, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 20% 15%, rgba(182, 255, 77, 0.46), transparent 34%),
    #0f0f0f;
}

.social-post-fallback span,
.social-post-fallback strong {
  position: relative;
  z-index: 1;
}

.social-post-fallback span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.social-post-fallback strong {
  font-size: 22px;
  line-height: 1.05;
}

.social-post-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  width: 34px;
  height: 34px;
  place-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.social-post-menu span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.social-post-body {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.social-post-author {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.social-mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.social-post-author div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.social-post-author strong,
.social-post-author small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-post-author strong {
  color: var(--ink);
  font-size: 13px;
}

.social-post-author small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.social-post-copy {
  display: grid;
  gap: 5px;
}

.social-post-copy h3,
.social-post-copy p {
  margin: 0;
}

.social-post-copy h3 {
  font-size: 18px;
  line-height: 1.12;
}

.social-post-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.social-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-post-actions button {
  display: inline-flex;
  min-height: 34px;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 950;
}

.social-post-actions button:hover,
.social-post-actions button:focus-visible,
.social-post-actions button.active {
  border-color: rgba(182, 255, 77, 0.52);
  background: var(--mint);
}

.social-post-comments {
  display: grid;
  gap: 8px;
}

.social-replies-link {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 900;
}

.social-replies-link:hover,
.social-replies-link:focus-visible {
  color: var(--ink);
  background: var(--mint);
}

.social-post-card .thread-comment-form {
  width: 100%;
  padding: 10px;
  background: var(--panel-soft);
}

.social-post-card .thread-comment-form textarea {
  min-height: 58px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.social-post-card .thread-comment-actions {
  justify-content: stretch;
}

.social-post-card .thread-comment-actions .primary-button,
.social-post-card .thread-comment-actions .secondary-button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 12px;
}

.social-post-comments .thread-comment {
  grid-template-columns: 30px minmax(0, 1fr);
}

.social-post-comments .thread-comment .profile-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.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(320px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.market-store-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), transparent 38%),
    linear-gradient(180deg, #fff, #fbfaf6),
    var(--panel);
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.08);
}

.market-store-card:hover,
.market-store-card:focus-visible {
  border-color: rgba(117, 201, 12, 0.65);
  transform: translateY(-1px);
  outline: 0;
  box-shadow: 0 18px 42px rgba(15, 15, 15, 0.12);
}

.market-store-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  content: "";
}

.market-store-avatar-wrap {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background: #10110f;
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.16);
}

.market-store-card .profile-avatar {
  width: 62px;
  height: 62px;
  border: 2px solid #b6ff4d;
  border-radius: 16px;
  font-size: 22px;
}

.market-store-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.market-store-card strong,
.market-store-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-store-card strong {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.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: 8px;
}

.market-store-topline {
  justify-content: space-between;
}

.market-store-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.market-store-topline em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #4f9000;
  background: var(--mint);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.market-store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-store-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 247, 243, 0.9);
}

.market-store-stat b {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-store-stat small {
  display: block;
  min-height: 0;
  align-items: initial;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.market-store-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #0f100e;
  background: #b6ff4d;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.marketplace-pagination {
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
}

.marketplace-pagination[hidden] {
  display: none;
}

.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;
}

.sold-out-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 15, 15, 0.86);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.listing-card.sold-out .listing-image img,
.product-detail.sold-out .product-photo img {
  filter: grayscale(0.35) saturate(0.72);
}

.listing-card.sold-out .price-line strong,
.product-detail.sold-out .product-price {
  color: var(--muted);
}

.sold-out-button,
.sold-out-button:disabled {
  border-color: rgba(15, 15, 15, 0.14);
  color: #fff;
  background: #171717;
  cursor: not-allowed;
  opacity: 0.82;
}

.sold-out-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(182, 255, 77, 0.48);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(182, 255, 77, 0.12);
  font-size: 14px;
  font-weight: 800;
}

/* Official Sold Out product layout */
.sold-out-product-page {
  display: grid;
  gap: 24px;
  width: min(100%, 1280px);
  margin-inline: auto;
}

.sold-out-back-button {
  background: transparent;
}

.sold-out-product-detail {
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(15, 18, 14, 0.08);
}

.sold-out-product-gallery {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sold-out-product-main {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #111613;
}

.sold-out-product-detail .sold-out-product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: scale(var(--listing-image-scale, 1));
}

.sold-out-product-detail .sold-out-badge {
  right: auto;
  left: 16px;
  top: 16px;
  min-height: 34px;
  padding-inline: 13px;
  border-radius: 6px;
  background: #d94545;
  box-shadow: 0 8px 20px rgba(93, 15, 15, 0.24);
  text-transform: uppercase;
}

.sold-out-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #101410;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-50%);
}

.sold-out-gallery-arrow.previous {
  left: 14px;
}

.sold-out-gallery-arrow.next {
  right: 14px;
}

.sold-out-gallery-arrow:hover,
.sold-out-gallery-arrow:focus-visible {
  background: var(--accent);
}

.sold-out-product-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.sold-out-product-thumbnail {
  overflow: hidden;
  min-width: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f4ef;
  aspect-ratio: 1;
}

.sold-out-product-thumbnail.active,
.sold-out-product-thumbnail:focus-visible {
  border-color: var(--accent-dark);
  outline: 0;
}

.sold-out-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--listing-image-scale, 1));
}

.sold-out-product-info {
  align-content: start;
  gap: 22px;
  padding: clamp(24px, 3vw, 42px);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sold-out-product-seller {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.sold-out-seller-avatar {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #101410;
  background: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.sold-out-seller-avatar.large {
  width: 62px;
  height: 62px;
  font-size: 22px;
}

.sold-out-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-out-seller-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sold-out-seller-copy strong,
.sold-out-seller-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
}

.sold-out-seller-copy small,
.sold-out-seller-summary small {
  color: var(--muted);
}

.sold-out-verified {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #148b49;
  font-size: 11px;
  line-height: 1;
}

.sold-out-product-seller .shipping-pill {
  position: static;
  justify-self: end;
}

.sold-out-product-heading {
  display: grid;
  gap: 16px;
}

.sold-out-product-info .sold-out-product-heading h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}

.sold-out-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sold-out-detail-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #343831;
  background: #f2f3ef;
  font-size: 13px;
  font-weight: 850;
}

.sold-out-price-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sold-out-product-detail .product-price {
  color: var(--ink);
  font-size: clamp(32px, 3.4vw, 46px);
}

.sold-out-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}

.sold-out-product-info > .sold-out-button,
.sold-out-product-info > .sold-out-button:disabled {
  width: 100%;
  min-height: 66px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #999e9e;
  opacity: 1;
}

.sold-out-product-info .sold-out-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-color: #f3c7c7;
  color: #6d2d2d;
  background: #fff2f2;
  font-weight: 650;
}

.sold-out-product-info .sold-out-note svg {
  color: #d94545;
}

.sold-out-product-info .sold-out-note span {
  display: grid;
  gap: 4px;
}

.sold-out-product-info .sold-out-note strong {
  color: #a72f2f;
}

.sold-out-detail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sold-out-detail-actions .secondary-button {
  min-width: 0;
  min-height: 52px;
  padding-inline: 10px;
  border-color: rgba(137, 190, 58, 0.18);
  background: rgba(182, 255, 77, 0.15);
  font-size: 13px;
}

.sold-out-detail-actions .secondary-button:hover,
.sold-out-detail-actions .secondary-button:focus-visible {
  border-color: var(--accent-dark);
  background: rgba(182, 255, 77, 0.3);
}

.sold-out-date {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #3d423b;
  font-size: 14px;
  font-weight: 750;
}

.sold-out-date svg {
  width: 20px;
  height: 20px;
}

.sold-out-seller-panel,
.sold-out-stores-panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sold-out-seller-panel {
  display: grid;
  gap: 18px;
}

.sold-out-seller-panel h2,
.sold-out-stores-panel h2 {
  margin: 0;
  font-size: 20px;
}

.sold-out-seller-summary {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.sold-out-seller-summary > div:not(.sold-out-seller-stats) {
  display: grid;
  gap: 4px;
}

.sold-out-seller-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #3d423b;
  font-size: 13px;
  font-weight: 750;
}

.sold-out-seller-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sold-out-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sold-out-section-heading button {
  padding: 0;
  border: 0;
  color: #547e16;
  background: transparent;
  font-weight: 850;
}

.sold-out-store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sold-out-store-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.sold-out-store-card:hover,
.sold-out-store-card:focus-visible {
  border-color: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(52, 75, 27, 0.1);
}

.sold-out-store-image {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #eff1eb;
}

.sold-out-store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-out-store-card > span:last-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sold-out-store-card strong,
.sold-out-store-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sold-out-store-card small {
  color: var(--muted);
  font-size: 12px;
}

.sold-out-store-rating {
  display: flex;
  gap: 5px;
}

.sold-out-store-rating span {
  color: #d89c14;
}

.sold-out-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px clamp(18px, 3vw, 32px);
  border: 1px solid #edf0e9;
  background: #fafbf8;
}

.sold-out-trust-strip > span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}

.sold-out-trust-strip svg {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  color: #5d881f;
}

.sold-out-trust-strip strong {
  font-size: 13px;
}

.sold-out-trust-strip small {
  color: var(--muted);
  font-size: 11px;
}

.sold-out-aftercare {
  display: grid;
  gap: 20px;
}

:root[data-theme="night"] .sold-out-product-detail,
:root[data-theme="night"] .sold-out-product-gallery,
:root[data-theme="night"] .sold-out-seller-panel,
:root[data-theme="night"] .sold-out-stores-panel,
:root[data-theme="night"] .sold-out-store-card,
:root[data-theme="night"] .sold-out-trust-strip {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
}

:root[data-theme="night"] .sold-out-detail-tags span,
:root[data-theme="night"] .sold-out-detail-actions .secondary-button {
  color: #edf0e8;
  background: #1f2b19;
}

:root[data-theme="night"] .sold-out-product-info .sold-out-note {
  border-color: #703e3e;
  color: #f2c8c8;
  background: #2b1717;
}

:root[data-theme="night"] .sold-out-product-info .sold-out-note strong {
  color: #ffb2b2;
}

:root[data-theme="night"] .sold-out-date,
:root[data-theme="night"] .sold-out-seller-stats {
  color: #d4d8cf;
}

@media (max-width: 980px) {
  .sold-out-product-detail {
    grid-template-columns: 1fr;
  }

  .sold-out-product-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sold-out-product-main {
    aspect-ratio: 4 / 3;
  }

  .sold-out-seller-summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .sold-out-seller-stats {
    grid-column: 2 / 3;
  }

  .sold-out-store-grid,
  .sold-out-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .detail-page:has(.sold-out-product-page) {
    margin-inline: 12px;
  }

  .sold-out-product-page {
    gap: 14px;
  }

  .sold-out-product-detail {
    border-radius: 8px;
  }

  .sold-out-product-gallery {
    padding: 8px;
  }

  .sold-out-product-main {
    aspect-ratio: 4 / 5;
  }

  .sold-out-product-info {
    gap: 18px;
    padding: 20px 16px;
  }

  .sold-out-product-info .sold-out-product-heading h1 {
    font-size: 32px;
  }

  .sold-out-price-rating {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .sold-out-rating {
    justify-content: flex-start;
    text-align: left;
  }

  .sold-out-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sold-out-seller-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sold-out-seller-summary > .secondary-button,
  .sold-out-seller-stats {
    grid-column: 1 / -1;
  }

  .sold-out-seller-summary > .secondary-button {
    width: 100%;
  }

  .sold-out-section-heading {
    align-items: flex-start;
  }

  .sold-out-store-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .sold-out-store-card {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
  }

  .sold-out-trust-strip {
    grid-template-columns: 1fr;
  }
}


:root[data-theme="night"] .sold-out-badge,
:root[data-theme="night"] .listing-status-chip.sold_out,
:root[data-theme="night"] .admin-user-status.listing-sold_out {
  color: #111;
  background: #f5f5f0;
}

:root[data-theme="night"] .sold-out-button,
:root[data-theme="night"] .sold-out-button:disabled {
  border-color: rgba(245, 245, 240, 0.24);
  color: #f5f5f0;
  background: #232323;
}

.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;
}

.shipping-pill.premium-pill {
  color: var(--ink);
  background: var(--accent);
}

.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(3, minmax(0, 1fr));
  gap: 12px;
}

.store-hero {
  position: relative;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.64fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(20px, 2.3vw, 30px);
  border-color: var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(182, 255, 77, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 244, 0.98) 58%, rgba(239, 250, 224, 0.96)),
    var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.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(0, 0, 0, 0.025) 0 1px, transparent 1px 42px);
  opacity: 0.34;
  pointer-events: none;
}

.store-hero > * {
  position: relative;
  z-index: 1;
}

.store-hero-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  align-items: center;
  min-width: 0;
}

.store-avatar-frame {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(51, 72, 32, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(182, 255, 77, 0.22), rgba(255, 255, 255, 0.72)),
    #f8f7f3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 34px rgba(15, 15, 15, 0.12);
}

.store-hero .profile-avatar {
  width: 84px;
  height: 84px;
  font-size: 32px;
}

.store-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.store-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.store-kicker-row .eyebrow {
  margin: 0;
  color: var(--green);
}

.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(51, 72, 32, 0.26);
  color: var(--ink);
  background: var(--mint);
}

.store-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.store-hero h1 {
  max-width: 22ch;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(28px, 2.75vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.store-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.store-meta-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(51, 72, 32, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.store-contact,
.store-bio {
  max-width: 58ch;
}

.store-bio {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.store-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.store-trust-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(232, 255, 205, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.store-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.store-actions .primary-button,
.store-actions .secondary-button {
  width: auto;
  min-height: 42px;
  padding-inline: 18px;
}

.store-action-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.store-showcase {
  display: grid;
  align-content: center;
  gap: 12px;
  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: 10px;
}

.store-metric {
  display: grid;
  align-content: space-between;
  gap: 7px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(51, 72, 32, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.store-metric span,
.store-section-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-metric strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(20px, 1.85vw, 28px);
  font-weight: 900;
  line-height: 1;
}

.store-metric small {
  color: var(--muted);
  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-status-chip.premium-pill {
  color: var(--ink);
  background: var(--accent);
}

.listing-status-chip.sold_out,
.admin-user-status.listing-sold_out {
  color: #fff;
  background: #171717;
}

.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.quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-actions .secondary-button {
  min-width: 0;
  font-size: 13px;
}

.card-actions.triple .secondary-button,
.card-actions.quad .secondary-button {
  gap: 5px;
  padding-inline: 8px;
  font-size: 12px;
}

.wishlist-button.active,
.save-icon-button.active {
  border-color: rgba(182, 255, 77, 0.74);
  color: #071006;
  background: var(--accent);
}

.wishlist-button svg,
.save-icon-button svg {
  fill: transparent;
}

.wishlist-button.active svg,
.save-icon-button.active svg {
  fill: currentColor;
}

.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);
}

.sell-band {
  grid-template-columns: minmax(0, 1fr);
}

.sell-band > .section-copy,
.sell-band > .seller-management-panel,
.sell-band > .sell-form {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.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: #f8f7f3;
}

.terms-protection h3 {
  color: var(--ink);
}

.terms-protection p {
  color: var(--muted);
}

.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-legacy-control {
  display: none !important;
}

.admin-publishing-intro {
  border-color: rgba(182, 255, 77, 0.36);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), rgba(255, 255, 255, 0)),
    var(--panel);
}

.admin-publishing-intro h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
}

.admin-publishing-card {
  border-color: rgba(15, 15, 15, 0.12);
}

.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 {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 8px;
  color: #fff;
  background: #1a1a1a;
  font-size: 13px;
  font-weight: 900;
}

.admin-feature-dashboard {
  display: grid;
  gap: 14px;
}

.admin-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8f7f3;
}

.admin-feature-check {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
}

.admin-feature-check svg {
  width: 18px;
  height: 18px;
}

.admin-feature-item strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  align-items: stretch;
  padding: 22px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0) 42%),
    #101010;
  box-shadow: 0 24px 70px rgba(15, 15, 15, 0.16);
}

.admin-dashboard-hero > div:first-child {
  display: grid;
  gap: 8px;
}

.admin-dashboard-hero h3,
.admin-dashboard-section-heading h3 {
  margin: 0;
  line-height: 1.05;
}

.admin-dashboard-hero h3 {
  font-size: clamp(30px, 4vw, 48px);
  color: #fff;
}

.admin-dashboard-hero p:not(.eyebrow) {
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
  line-height: 1.45;
}

.admin-dashboard-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard-status-row span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(182, 255, 77, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-dashboard-live {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
}

.admin-dashboard-live span,
.admin-dashboard-metric span,
.admin-dashboard-group h4 {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-dashboard-live strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.admin-dashboard-live small {
  color: rgba(7, 16, 6, 0.72);
  font-weight: 950;
}

.admin-workspace-shell {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-module-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.admin-module-rail button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-module-rail button:hover,
.admin-module-rail button:focus-visible {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(15, 15, 15, 0.08);
}

.admin-module-rail span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-module-rail strong {
  min-width: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.admin-module-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-dashboard-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-dashboard-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-dashboard-section-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-dashboard-section-heading h3 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.admin-dashboard-section-heading > strong {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #071006;
  background: var(--accent);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
}

.admin-dashboard-section-summary {
  max-width: 76ch;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.admin-dashboard-section-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard-section:first-of-type .admin-dashboard-section-body {
  grid-template-columns: 1fr;
}

.admin-dashboard-section.wide .admin-dashboard-section-body {
  grid-template-columns: 1fr;
}

.admin-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-dashboard-metric,
.admin-dashboard-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.admin-dashboard-metric {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 112px;
  padding: 14px;
}

.admin-dashboard-metric strong {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1;
}

.admin-dashboard-group {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-dashboard-group h4 {
  margin: 0;
  color: var(--muted);
}

.admin-dashboard-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-dashboard-chip,
.admin-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.admin-dashboard-chip strong {
  color: var(--ink);
  font-weight: 950;
}

.admin-dashboard-chip.notice {
  border-color: rgba(15, 15, 15, 0.12);
  background: #fff;
}

.admin-dashboard-chip.notice b {
  padding: 4px 7px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.admin-action-chip {
  cursor: pointer;
  color: #071006;
  background: var(--accent);
  border-color: rgba(15, 15, 15, 0.1);
}

.admin-action-chip:hover,
.admin-action-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.12);
}

.admin-email-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-email-category {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.admin-email-category h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-email-rows {
  display: grid;
  gap: 8px;
}

.admin-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-email-row span {
  min-width: 0;
  font-weight: 900;
  line-height: 1.25;
}

.admin-email-row strong {
  padding: 6px 9px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.admin-email-queue {
  grid-column: 1 / -1;
}

.admin-email-queue-list {
  display: grid;
  gap: 8px;
}

.admin-email-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.admin-email-queue-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-email-queue-item strong,
.admin-email-queue-item span,
.admin-email-queue-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-email-queue-item span,
.admin-email-queue-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-email-queue-item em {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-state.compact {
  min-height: 120px;
}

.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(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
}

.sell-copy {
  position: static;
}

.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;
}

.seller-management-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 18px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.08);
}

.seller-management-empty {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 160px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8f7f3;
}

.seller-management-empty.small {
  min-height: 0;
}

.seller-management-empty h3,
.seller-management-empty h4,
.seller-management-empty p {
  margin: 0;
}

.seller-management-empty p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.seller-management-empty .primary-button {
  width: fit-content;
}

.seller-management-header,
.seller-management-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.seller-management-header h3,
.seller-management-list-head strong,
.seller-listing-row strong {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.05;
}

.seller-management-header h3 {
  font-size: clamp(24px, 4vw, 36px);
}

.seller-management-header span,
.seller-management-list-head span,
.seller-listing-row span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.seller-management-actions,
.seller-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.seller-management-actions .secondary-button,
.seller-listing-actions .secondary-button {
  min-height: 40px;
}

.seller-management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.seller-management-metrics span {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f3;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.seller-management-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 1000;
  line-height: 0.95;
}

.seller-editing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(117, 201, 12, 0.38);
  border-radius: 8px;
  background: rgba(182, 255, 77, 0.16);
}

.seller-editing-banner strong {
  color: var(--ink);
  font-weight: 950;
}

.seller-editing-banner span {
  color: var(--muted);
  font-weight: 800;
}

.seller-management-list {
  display: grid;
  gap: 12px;
}

.seller-listing-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seller-listing-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #eef3e8;
  object-fit: cover;
}

.seller-listing-row > div {
  min-width: 0;
}

.secondary-button.danger {
  border-color: rgba(210, 44, 44, 0.28);
  color: #9f1d1d;
  background: rgba(210, 44, 44, 0.08);
}

.secondary-button.danger:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.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);
}

.auth-entry-card {
  display: grid;
  gap: 12px;
}

.auth-entry-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-entry-signin,
.auth-entry-signup {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.auth-entry-signin {
  color: #0f0f0f !important;
  background: var(--accent);
}

.auth-entry-signin:hover,
.auth-entry-signin:focus,
.auth-entry-signin:active {
  color: #0f0f0f !important;
}

.auth-entry-signin:disabled {
  color: #0f0f0f !important;
  opacity: 0.6;
}

.auth-entry-signup {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.auth-entry-signin:hover,
.auth-entry-signup:hover {
  opacity: 0.88;
}

.auth-entry-signin:active,
.auth-entry-signup:active {
  transform: scale(0.97);
}

.auth-entry-signout {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: start;
  justify-self: start;
}

.auth-entry-signout:hover {
  opacity: 0.75;
}

.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;
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  --auth-accent: #b6ff4d;
  --auth-accent-hover: #a7f238;
  --auth-ink: #111111;
  --auth-muted: #666666;
  --auth-line: #e5e5e5;
  --auth-surface: #ffffff;
  --auth-surface-soft: #f8f8f8;
  --auth-field-bg: #20211f;
  --auth-field-ink: #ffffff;
  --auth-field-muted: #cfcfc8;
  --auth-field-icon: #e7e7de;
  --auth-danger-bg: #fff1f1;
  --auth-danger-ink: #b42318;
  --auth-success-bg: rgba(182, 255, 77, 0.18);
  --auth-success-ink: #315300;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

:root[data-theme="night"] .auth-modal {
  --auth-ink: #f7f7f2;
  --auth-muted: #b7b7ad;
  --auth-line: #343631;
  --auth-surface: #141513;
  --auth-surface-soft: #1d1f1a;
  --auth-field-bg: #242620;
  --auth-field-ink: #ffffff;
  --auth-field-muted: #c9c9bf;
  --auth-field-icon: #d9d9d0;
  --auth-danger-bg: rgba(180, 35, 24, 0.16);
  --auth-danger-ink: #ffb9b1;
  --auth-success-bg: rgba(182, 255, 77, 0.14);
  --auth-success-ink: #d8ff98;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 22px 26px 24px;
  border: 1px solid var(--auth-line);
  border-radius: 24px;
  background: var(--auth-surface);
  color: var(--auth-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  scrollbar-width: thin;
  scrollbar-color: rgba(182, 255, 77, 0.75) transparent;
}

.auth-modal-card::-webkit-scrollbar {
  width: 8px;
}

.auth-modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.auth-modal-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(182, 255, 77, 0.75);
  background-clip: content-box;
}

.auth-screen[hidden] {
  display: none;
}

.auth-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-top-spacer {
  width: 40px;
  height: 40px;
}

.auth-brand {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--auth-ink);
  text-transform: lowercase;
}

.auth-brand::after {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--auth-accent);
  box-shadow: 0 0 0 5px rgba(182, 255, 77, 0.16);
  content: "";
}

.auth-title {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--auth-ink);
  margin: 0 0 8px;
  letter-spacing: 0;
  line-height: 1.08;
}

.auth-subtitle {
  max-width: 34ch;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 46px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--auth-field-bg);
  color: var(--auth-field-ink);
  font-size: 15px;
  font-weight: 650;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-input-wrap input::placeholder {
  color: var(--auth-field-muted);
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: rgba(182, 255, 77, 0.9);
  background: #191a17;
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.2);
}

.auth-input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--auth-field-icon);
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--auth-field-icon);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, background 0.15s;
}

.auth-eye:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-eye svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.auth-eye .auth-eye-hide {
  fill: currentColor;
  stroke: none;
}

.auth-eye.is-visible .auth-eye-show {
  display: none;
}

.auth-eye.is-visible .auth-eye-hide {
  display: block !important;
}

.auth-link-end {
  justify-self: end;
  padding: 0;
  margin-top: -2px;
}

.auth-primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--auth-accent);
  color: #050505 !important;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}

.auth-primary-button:hover {
  color: #050505 !important;
  background: var(--auth-accent-hover);
}

.auth-primary-button:active {
  color: #050505 !important;
  transform: scale(0.985);
}

.auth-primary-button:disabled {
  color: #050505 !important;
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 15px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

.auth-divider span {
  color: var(--auth-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.auth-social-buttons {
  display: grid;
  gap: 12px;
}

.auth-google-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.auth-google-button:hover {
  border-color: rgba(182, 255, 77, 0.78);
  background: var(--auth-surface-soft);
}

.auth-google-button:active {
  transform: scale(0.985);
}

.auth-google-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-link {
  padding: 0;
  border: 0;
  color: var(--auth-ink);
  background: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.auth-link:hover {
  color: #5e8c00;
  text-decoration: underline;
}

:root[data-theme="night"] .auth-link:hover {
  color: var(--auth-accent);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 2px solid var(--auth-line);
  border-radius: 5px;
  background: var(--auth-surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-checkbox input[type="checkbox"]:checked {
  border-color: var(--auth-accent);
  background: var(--auth-accent);
  box-shadow: inset 0 0 0 3px var(--auth-surface);
}

.auth-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(182, 255, 77, 0.45);
  outline-offset: 2px;
}

.auth-error {
  padding: 10px 12px;
  border: 1px solid rgba(183, 28, 28, 0.22);
  border-radius: 12px;
  background: var(--auth-danger-bg);
  color: var(--auth-danger-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-success {
  padding: 10px 12px;
  border: 1px solid rgba(117, 201, 12, 0.35);
  border-radius: 12px;
  background: var(--auth-success-bg);
  color: var(--auth-success-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-back {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--auth-line);
  border-radius: 50%;
  background: var(--auth-surface);
  color: var(--auth-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.auth-back:hover {
  border-color: rgba(182, 255, 77, 0.78);
  background: var(--auth-surface-soft);
}

.auth-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 640px) {
  .auth-modal {
    align-items: center;
    padding: 10px;
  }

  .auth-modal-backdrop {
    background: rgba(0, 0, 0, 0.52);
  }

  .auth-modal-card {
    min-height: 0;
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
    padding: 14px 18px 16px;
  }

  .auth-top {
    grid-template-columns: 36px 1fr 36px;
    margin-bottom: 10px;
  }

  .auth-back,
  .auth-top-spacer {
    width: 36px;
    height: 36px;
  }

  .auth-title {
    font-size: 29px;
  }

  .auth-subtitle {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .auth-form {
    gap: 8px;
  }

  .auth-field {
    gap: 6px;
  }

  .auth-input-wrap input,
  .auth-google-button {
    min-height: 0;
    height: 44px;
  }

  .auth-primary-button {
    min-height: 46px;
  }

  .auth-divider {
    margin: 14px 0 10px;
  }

  .auth-switch {
    margin-top: 12px;
  }

  .auth-checkbox {
    gap: 8px;
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .auth-modal {
    padding: 8px;
  }

  .auth-modal-card {
    max-height: calc(100dvh - 16px);
    padding: 12px 14px 14px;
  }

  .auth-title {
    font-size: 28px;
  }

  .auth-field > span,
  .auth-switch {
    font-size: 13px;
  }
}

.account-heading,.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;
}

.saved-pieces-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.saved-pieces-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-pieces-heading h4 {
  margin: 0;
  font-size: 22px;
}

.saved-pieces-heading span {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-weight: 950;
}

.saved-pieces-grid {
  display: grid;
  gap: 10px;
}

.saved-piece-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--panel);
}

.saved-piece-card .media-button {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
}

.saved-piece-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-piece-card > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.saved-piece-card .title-button {
  justify-content: start;
  padding: 0;
  font-size: 16px;
  line-height: 1.1;
  text-align: left;
}

.saved-piece-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.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 minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-sign-out-button {
  min-width: 124px;
}

.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;
}

.account-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-dashboard-actions .primary-button,
.account-dashboard-actions .secondary-button,
.account-dashboard-actions .profile-reset-button {
  min-height: 44px;
}

.seller-plan-dashboard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(182, 255, 77, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.12), rgba(255, 255, 255, 0.03)),
    #111;
}

.seller-plan-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.seller-plan-header h4,
.seller-plan-header p {
  margin: 0;
}

.seller-plan-header h4 {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.seller-plan-header p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  line-height: 1.35;
}

.seller-plan-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mint);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.seller-plan-badge.premium {
  background: var(--accent);
}

.seller-plan-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.seller-plan-meter span {
  display: block;
  width: var(--seller-plan-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.seller-plan-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seller-plan-benefits span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.seller-momo-status {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(182, 255, 77, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
}

.seller-momo-status strong {
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.seller-momo-status span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.seller-momo-status.missing {
  border-color: rgba(255, 204, 85, 0.58);
  background: rgba(255, 204, 85, 0.12);
}

.seller-momo-status.ready {
  border-color: rgba(182, 255, 77, 0.48);
  background: rgba(182, 255, 77, 0.12);
}

.seller-plan-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;
  width: 100%;
  min-width: 0;
  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: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 8px;
  color: var(--on-dark);
  background: var(--dark-surface);
}

.sell-publish-bar > div {
  display: grid;
  flex: 1 1 280px;
  gap: 4px;
  min-width: 0;
}

.sell-publish-bar .primary-button,
.sell-publish-bar .secondary-button {
  flex: 0 1 180px;
  min-width: 150px;
}

.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;
}

.checkbox-field {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: flex-start;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.checkbox-field input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.checkbox-field span {
  min-width: 0;
}

.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);
}

.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.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.06);
}

.message-bubble.mine {
  justify-self: end;
  border-color: rgba(90, 154, 0, 0.5);
  background: #eaffcf;
}

.message-bubble.blocked {
  justify-self: center;
  max-width: min(88%, 520px);
  border-color: rgba(170, 60, 45, 0.35);
  color: #3b120d;
  background: #fff0ed;
}

.message-bubble.blocked strong,
.message-bubble.blocked p {
  color: #3b120d;
}

.message-bubble.blocked span,
.message-bubble.blocked small {
  color: #8a271b;
}

.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;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  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;
}

:root[data-theme="night"] .message-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.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"] .admin-dashboard-hero,
:root[data-theme="night"] .admin-dashboard-metric,
:root[data-theme="night"] .admin-dashboard-group,
:root[data-theme="night"] .admin-dashboard-chip,
:root[data-theme="night"] .admin-dashboard-section,
:root[data-theme="night"] .admin-module-rail,
:root[data-theme="night"] .admin-module-rail button:hover,
:root[data-theme="night"] .admin-module-rail button:focus-visible,
:root[data-theme="night"] .admin-email-category,
:root[data-theme="night"] .admin-email-row,
: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"] .admin-dashboard-section {
  border-color: var(--line);
}

:root[data-theme="night"] .admin-dashboard-section-summary {
  color: var(--muted);
}

:root[data-theme="night"] .admin-dashboard-hero {
  border: 1px solid rgba(182, 255, 77, 0.16);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.09), rgba(255, 255, 255, 0.018) 42%),
    #10130f;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.28);
}

:root[data-theme="night"] .admin-dashboard-live {
  border: 1px solid rgba(182, 255, 77, 0.34);
  color: #f7f7f2;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), rgba(255, 255, 255, 0.02)),
    #1b2713;
}

:root[data-theme="night"] .admin-dashboard-live span {
  color: #dfffad;
}

:root[data-theme="night"] .admin-dashboard-live small {
  color: rgba(234, 255, 211, 0.72);
}

:root[data-theme="night"] .admin-dashboard-status-row span,
:root[data-theme="night"] .admin-dashboard-section-heading > strong,
:root[data-theme="night"] .admin-module-rail strong,
:root[data-theme="night"] .admin-dashboard-chip.notice b,
:root[data-theme="night"] .admin-email-row strong {
  color: #eaffd3;
  background: #263918;
  border: 1px solid rgba(182, 255, 77, 0.24);
}

:root[data-theme="night"] .admin-action-chip {
  color: #eaffd3;
  background: #263918;
  border-color: rgba(182, 255, 77, 0.28);
}

:root[data-theme="night"] .admin-action-chip:hover,
:root[data-theme="night"] .admin-action-chip:focus-visible {
  background: #314b1d;
}

:root[data-theme="night"] .admin-dashboard-chip.notice {
  border-color: var(--line);
  background: var(--panel-soft);
}

:root[data-theme="night"] .admin-publishing-intro {
  border-color: rgba(182, 255, 77, 0.24);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.08), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

:root[data-theme="night"] .admin-feature-check {
  color: #eaffd3;
  background: #263918;
  border: 1px solid rgba(182, 255, 77, 0.28);
}

: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"] .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"] .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 {
  border-color: var(--accent);
  background: var(--accent);
  color: #0f100e;
}

: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: rgba(255, 255, 255, 0.08);
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

: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: rgba(255, 255, 255, 0.65);
}

: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: visible;
    padding-bottom: 2px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .text-link,
  .icon-button,
  .nav-account-menu,
  .nav-auth-actions {
    flex: 0 0 auto;
  }

  .nav-account-dropdown {
    position: fixed;
    top: 118px;
    right: 16px;
    left: 16px;
    min-width: 0;
  }

  .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;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .home-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer-brand,
  .home-footer-newsletter {
    grid-column: 1 / -1;
  }

  .social-blog-shell {
    grid-template-columns: 1fr;
  }

  .social-blog-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .social-blog-header h3 {
    max-width: 16ch;
  }

  .social-blog-metrics {
    width: min(100%, 520px);
    min-width: 0;
  }

  .social-post-grid {
    grid-template-columns: repeat(2, minmax(0, 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(0, 1fr);
  }
}

@media (max-width: 620px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .social-blog-shell {
    padding: 16px;
    border-radius: 8px;
  }

  .social-blog-header {
    gap: 14px;
    padding-bottom: 14px;
  }

  .social-blog-header h3 {
    max-width: none;
    font-size: clamp(30px, 9vw, 42px);
  }

  .social-blog-header > div:first-child p:not(.eyebrow) {
    font-size: 14px;
  }

  .social-blog-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .social-blog-metrics span {
    min-height: 58px;
    padding: 8px;
  }

  .social-blog-metrics strong {
    font-size: 17px;
  }

  .social-blog-metrics small {
    font-size: 10px;
  }

  .social-story-strip {
    grid-auto-columns: 66px;
  }

  .social-story {
    width: 66px;
  }

  .social-story span {
    width: 56px;
    height: 56px;
  }

  .social-post-grid {
    grid-template-columns: 1fr;
  }

  .social-post-media {
    aspect-ratio: 16 / 12;
  }

  .story-viewer {
    padding: 10px;
  }

  .story-viewer-card {
    width: min(100%, 430px);
    height: calc(100dvh - 20px);
  }

  .story-viewer-nav {
    width: 38px;
    height: 52px;
  }

  .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;
  }

  .nav-auth-actions {
    order: -1;
    gap: 6px;
  }

  .nav-auth-button {
    min-height: 42px;
    padding: 0 14px;
  }

  .nav-account-name {
    max-width: 88px;
  }

  .nav-account-dropdown {
    top: 126px;
  }

  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;
  }

  .official-hero-media-mark {
    right: 16px;
    bottom: 16px;
    min-width: 0;
    padding: 12px 14px;
  }

  .official-hero-media-mark strong {
    font-size: 17px;
  }

  .home-footer {
    padding: 26px 20px 22px;
  }

  .home-footer-grid {
    grid-template-columns: 1fr;
  }

  .home-footer-brand,
  .home-footer-newsletter {
    grid-column: auto;
  }

  .home-footer-column a,
  .home-footer-column button {
    min-height: 32px;
  }

  .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,
  .seller-plan-benefits,
  .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-feature-grid,
  .admin-dashboard-hero,
  .admin-workspace-shell,
  .admin-dashboard-section-body,
  .admin-dashboard-metrics,
  .admin-email-settings,
  .admin-email-row,
  .admin-email-queue-item,
  .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;
  }

  .profile-identity {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .profile-sign-out-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-status-row,
  .admin-actions,
  .admin-actions.compact,
  .admin-dashboard-section-heading,
  .seller-plan-header,
  .review-panel-header,
  .store-section-heading,
  .terms-contact,
  .help-note {
    align-items: stretch;
    flex-direction: column;
  }

  .store-actions {
    display: grid;
    gap: 8px;
  }

  .admin-module-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-module-rail button {
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 72px;
  }

  .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-hero {
    gap: 16px;
    padding: 16px;
  }

  .store-hero-main {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .store-avatar-frame {
    width: 72px;
    height: 72px;
  }

  .store-hero .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .store-kicker-row {
    gap: 6px;
  }

  .store-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
  }

  .store-hero h1 {
    max-width: 100%;
    font-size: clamp(25px, 7.5vw, 32px);
    line-height: 1.08;
  }

  .store-meta-row span {
    min-height: 28px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .store-contact,
  .store-bio {
    max-width: 100%;
  }

  .store-trust-row span {
    min-height: 26px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .store-showcase {
    gap: 10px;
  }

  .store-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-metric {
    min-height: 72px;
    padding: 10px;
  }

  .store-metric strong {
    font-size: clamp(18px, 5.8vw, 24px);
  }

  .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"] .seller-management-panel,
:root[data-theme="night"] .seller-listing-row {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="night"] .seller-management-empty,
:root[data-theme="night"] .seller-management-metrics span {
  border-color: var(--line);
  background: var(--panel-soft);
}

:root[data-theme="night"] .seller-management-header h3,
:root[data-theme="night"] .seller-management-list-head strong,
:root[data-theme="night"] .seller-management-metrics strong,
:root[data-theme="night"] .seller-listing-row strong,
:root[data-theme="night"] .seller-editing-banner strong {
  color: var(--ink);
}

:root[data-theme="night"] .seller-management-header span,
:root[data-theme="night"] .seller-management-list-head span,
:root[data-theme="night"] .seller-management-empty p,
:root[data-theme="night"] .seller-management-metrics span,
:root[data-theme="night"] .seller-listing-row span,
:root[data-theme="night"] .seller-editing-banner span {
  color: var(--muted);
}

:root[data-theme="night"] .seller-editing-banner {
  border-color: rgba(182, 255, 77, 0.34);
  background: rgba(182, 255, 77, 0.12);
}

: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"] .seller-store-heading > span {
  border: 1px solid rgba(182, 255, 77, 0.38);
  color: var(--accent);
  background: #152111;
  box-shadow: none;
}

: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: #ffffff;
}

: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(7, 16, 6, 0.62);
}

: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;
}

/* Terms and privacy night fix: section numbers must stay dark on Hangah green. */
:root[data-theme="night"] .terms-item > span {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .terms-protection {
  border-color: rgba(166, 255, 51, 0.65);
  background: #101010;
}

:root[data-theme="night"] .terms-protection h3,
:root[data-theme="night"] .terms-protection p {
  color: #fff;
}

:root[data-theme="night"] .sell-profile-note button {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

/* Unified night mode: match the dark admin form treatment across the whole app. */
:root[data-theme="night"] body {
  color: #f7f7f2;
  background: #0b0f0a;
}

:root[data-theme="night"] .app-header {
  border-bottom-color: #26371c;
  background: rgba(8, 12, 7, 0.96);
}

:root[data-theme="night"] .text-link.active {
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .primary-button,
:root[data-theme="night"] .heading-button.primary-button,
:root[data-theme="night"] .admin-form .primary-button,
:root[data-theme="night"] .listing-form .primary-button,
:root[data-theme="night"] .profile-form .primary-button,
:root[data-theme="night"] .message-form .primary-button {
  border-color: rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .primary-button:hover,
:root[data-theme="night"] .primary-button:focus-visible {
  background: #c6ff70;
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.18);
}

:root[data-theme="night"] .secondary-button,
:root[data-theme="night"] .light-button,
:root[data-theme="night"] .text-button,
:root[data-theme="night"] .message-mini-button,
:root[data-theme="night"] .profile-reset-button,
:root[data-theme="night"] .admin-inline-button {
  border-color: #314623;
  color: #f7f7f2;
  background: #1f3515;
}

:root[data-theme="night"] input,
:root[data-theme="night"] select,
:root[data-theme="night"] textarea,
:root[data-theme="night"] .search-wrap,
:root[data-theme="night"] .admin-login-form input,
:root[data-theme="night"] .admin-form input,
:root[data-theme="night"] .admin-form select,
:root[data-theme="night"] .admin-form textarea,
: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"] .profile-form input,
:root[data-theme="night"] .profile-form select,
:root[data-theme="night"] .profile-form textarea,
:root[data-theme="night"] .message-form textarea {
  border-color: #2f3f25;
  color: #f7f7f2;
  background: #080b08;
}

:root[data-theme="night"] input::placeholder,
:root[data-theme="night"] textarea::placeholder,
:root[data-theme="night"] .search-wrap input::placeholder {
  color: #8f9788;
  opacity: 1;
}

:root[data-theme="night"] label,
:root[data-theme="night"] .admin-form label,
:root[data-theme="night"] .listing-form label,
:root[data-theme="night"] .profile-form label,
:root[data-theme="night"] .sort-field,
:root[data-theme="night"] .control-group label,
:root[data-theme="night"] .field-hint {
  color: #d4d6c8;
}

: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"] .market-hero-panel,
:root[data-theme="night"] .market-section,
:root[data-theme="night"] .catalog-toolbar,
:root[data-theme="night"] .market-filter-panel,
:root[data-theme="night"] .market-store-card,
:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .listing-card,
:root[data-theme="night"] .official-feature-card,
:root[data-theme="night"] .thread-feed-shell,
:root[data-theme="night"] .thread-post,
:root[data-theme="night"] .admin-card,
:root[data-theme="night"] .admin-dashboard-section,
:root[data-theme="night"] .admin-dashboard-metric,
:root[data-theme="night"] .admin-dashboard-group,
:root[data-theme="night"] .admin-module-rail,
:root[data-theme="night"] .admin-email-category,
:root[data-theme="night"] .admin-email-row,
:root[data-theme="night"] .account-card,
:root[data-theme="night"] .saved-pieces-panel,
:root[data-theme="night"] .saved-piece-card,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .sell-form,
:root[data-theme="night"] .sell-form-section,
:root[data-theme="night"] .photo-picker,
:root[data-theme="night"] .plan-card:not(.featured),
:root[data-theme="night"] .terms-panel,
:root[data-theme="night"] .terms-item,
:root[data-theme="night"] .help-panel,
:root[data-theme="night"] .help-card,
:root[data-theme="night"] .bag-drawer,
:root[data-theme="night"] .message-drawer,
:root[data-theme="night"] .conversation-product,
:root[data-theme="night"] .conversation-tab,
:root[data-theme="night"] .store-launch-panel,
:root[data-theme="night"] .store-empty-state,
:root[data-theme="night"] .empty-state {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
  box-shadow: none;
}

:root[data-theme="night"] .admin-dashboard-hero,
:root[data-theme="night"] .admin-auth-card,
:root[data-theme="night"] .owner-panel,
:root[data-theme="night"] .official-hero,
:root[data-theme="night"] .market-hero-copy,
:root[data-theme="night"] .blog-hero-copy,
:root[data-theme="night"] .featured-post,
:root[data-theme="night"] .plan-card.featured {
  border-color: #2b3c21;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.1), rgba(255, 255, 255, 0.015) 42%),
    #080b08;
}

:root[data-theme="night"] .admin-dashboard-live {
  border: 1px solid rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .admin-dashboard-live span,
:root[data-theme="night"] .admin-dashboard-live strong,
:root[data-theme="night"] .admin-dashboard-live small {
  color: #071006;
}

:root[data-theme="night"] .admin-dashboard-status-row span,
:root[data-theme="night"] .admin-dashboard-section-heading > strong,
:root[data-theme="night"] .admin-module-rail strong,
:root[data-theme="night"] .admin-dashboard-chip.notice b,
:root[data-theme="night"] .admin-email-row strong,
:root[data-theme="night"] .admin-pill,
:root[data-theme="night"] .badge,
:root[data-theme="night"] .shipping-pill,
:root[data-theme="night"] .account-row-meta {
  border-color: rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .admin-dashboard-chip,
:root[data-theme="night"] .admin-action-chip,
:root[data-theme="night"] .category-chip,
:root[data-theme="night"] .filter-chip,
:root[data-theme="night"] .message-pill,
:root[data-theme="night"] .listing-chip-row span,
:root[data-theme="night"] .detail-list li,
:root[data-theme="night"] .market-hero-proof span,
:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .blog-composer-profile,
:root[data-theme="night"] .admin-rules span {
  border-color: #314623;
  color: #e7eadf;
  background: #1a2614;
}

:root[data-theme="night"] .section-help,
:root[data-theme="night"] .toolbar-help,
:root[data-theme="night"] .listing-meta,
:root[data-theme="night"] .seller-link,
:root[data-theme="night"] .seller-mini-link small,
:root[data-theme="night"] .admin-dashboard-section-summary,
:root[data-theme="night"] .admin-dashboard-group h4,
:root[data-theme="night"] .admin-dashboard-metric span,
:root[data-theme="night"] .thread-feed-header span:not(.profile-avatar),
:root[data-theme="night"] .thread-post-header span,
:root[data-theme="night"] .thread-stats,
:root[data-theme="night"] .thread-reply-prompt,
:root[data-theme="night"] .plan-card p,
:root[data-theme="night"] .conversation-product small {
  color: #c0c3b8;
}

:root[data-theme="night"] .eyebrow,
:root[data-theme="night"] .admin-auth-card .eyebrow,
:root[data-theme="night"] .store-empty-state .eyebrow {
  color: var(--accent);
}

:root[data-theme="night"] input:focus,
:root[data-theme="night"] select:focus,
:root[data-theme="night"] textarea:focus {
  border-color: rgba(182, 255, 77, 0.88);
  outline: 3px solid rgba(182, 255, 77, 0.18);
}

/* Night cleanup for dynamic cards, drawers, and marketplace controls. */
:root[data-theme="night"] .feed-main,
: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-header,
:root[data-theme="night"] .thread-reply,
: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"] .control-group,
:root[data-theme="night"] .seller-summary,
:root[data-theme="night"] .range-row,
:root[data-theme="night"] .check-row,
:root[data-theme="night"] .conversation-list-empty,
:root[data-theme="night"] .conversation-tab,
:root[data-theme="night"] .message-mini-button,
:root[data-theme="night"] .conversation-product,
:root[data-theme="night"] .message-empty,
:root[data-theme="night"] .message-bubble,
:root[data-theme="night"] .email-notice,
:root[data-theme="night"] .sell-publish-bar,
:root[data-theme="night"] .seller-pill,
:root[data-theme="night"] .admin-list-item,
:root[data-theme="night"] .admin-comment-list,
:root[data-theme="night"] .admin-comment-item,
:root[data-theme="night"] .product-detail,
:root[data-theme="night"] .product-info,
:root[data-theme="night"] .seller-card,
:root[data-theme="night"] .rating-summary-card,
:root[data-theme="night"] .review-panel,
:root[data-theme="night"] .review-card,
:root[data-theme="night"] .review-gate,
:root[data-theme="night"] .review-form,
:root[data-theme="night"] .review-empty,
:root[data-theme="night"] .store-hero,
:root[data-theme="night"] .store-showcase,
:root[data-theme="night"] .store-metric,
:root[data-theme="night"] .store-badge,
:root[data-theme="night"] .terms-contact,
:root[data-theme="night"] .help-contact-card,
:root[data-theme="night"] .help-quick-actions {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
  box-shadow: none;
}

:root[data-theme="night"] .feed-chip,
:root[data-theme="night"] .feed-icon-button,
:root[data-theme="night"] .feed-post-actions button,
:root[data-theme="night"] .feed-comment-box,
:root[data-theme="night"] .feed-comment,
:root[data-theme="night"] .thread-menu-button:hover,
:root[data-theme="night"] .thread-menu-button:focus-visible,
: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,
:root[data-theme="night"] .segmented button,
:root[data-theme="night"] .category-chips button,
:root[data-theme="night"] .category-chips small,
:root[data-theme="night"] .conversation-status-pill,
:root[data-theme="night"] .conversation-tab-state,
:root[data-theme="night"] .remove-button {
  border-color: #314623;
  color: #e7eadf;
  background: #1a2614;
}

:root[data-theme="night"] .segmented button.active,
:root[data-theme="night"] .category-chips button.active,
:root[data-theme="night"] .conversation-tab.unread,
:root[data-theme="night"] .conversation-tab b {
  border-color: rgba(182, 255, 77, 0.8);
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] .conversation-tab.active {
  border-color: rgba(182, 255, 77, 0.88);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.18), rgba(255, 255, 255, 0.02)),
    #11160f;
}

:root[data-theme="night"] .message-drawer,
: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: #2b3c21;
  color: #f7f7f2;
  background: #0d120c;
}

:root[data-theme="night"] .message-history {
  background:
    linear-gradient(rgba(8, 11, 8, 0.94), rgba(8, 11, 8, 0.94)),
    radial-gradient(circle at 18px 18px, rgba(182, 255, 77, 0.07) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

:root[data-theme="night"] .message-bubble.mine {
  border-color: rgba(182, 255, 77, 0.62);
  color: #071006;
  background: #dfffaf;
}

:root[data-theme="night"] .message-bubble.mine strong,
:root[data-theme="night"] .message-bubble.mine p,
:root[data-theme="night"] .message-bubble.mine span,
:root[data-theme="night"] .message-bubble.mine small {
  color: #071006;
}

:root[data-theme="night"] .thread-line {
  background: #304420;
}

:root[data-theme="night"] .thread-post-copy p,
:root[data-theme="night"] .thread-comment p,
:root[data-theme="night"] .thread-comment strong,
:root[data-theme="night"] .blog-card h3,
:root[data-theme="night"] .blog-card p,
:root[data-theme="night"] .listing-title,
:root[data-theme="night"] .title-button,
:root[data-theme="night"] .price-line,
:root[data-theme="night"] .seller-card strong,
:root[data-theme="night"] .product-info h2,
:root[data-theme="night"] .store-copy h2 {
  color: #f7f7f2;
}

:root[data-theme="night"] .feed-post-actions button:hover,
:root[data-theme="night"] .feed-post-actions button:focus-visible,
:root[data-theme="night"] .feed-comment-box:hover,
:root[data-theme="night"] .feed-comment-box:focus-visible,
:root[data-theme="night"] .check-row:hover,
:root[data-theme="night"] .check-row:focus-within,
:root[data-theme="night"] .segmented button:hover,
:root[data-theme="night"] .segmented button:focus-visible {
  border-color: rgba(182, 255, 77, 0.62);
  background: #223718;
}

:root[data-theme="night"] input[type="range"] {
  accent-color: var(--accent);
}

:root[data-theme="night"] input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 6px;
  color: #071006;
  background: var(--accent);
  font: inherit;
  font-weight: 900;
}

/* Admin console redesign: dense, professional, operations-first. */
.admin-band {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px clamp(12px, 3vw, 28px) 32px;
  border-color: #1c2b15;
  background:
    radial-gradient(circle at 12% 0%, rgba(182, 255, 77, 0.08), transparent 30%),
    #070b06;
}

.admin-band > .section-copy {
  display: none;
}

.admin-panel {
  width: min(1480px, 100%);
  margin: 0 auto;
  gap: 14px;
}

#adminStatus.admin-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-auth-card {
  padding: 12px;
  border-color: #314623;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.12), rgba(7, 11, 6, 0) 42%),
    #0c110b;
  box-shadow: none;
}

.admin-session-card {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 70px;
}

.admin-lock-icon {
  width: 46px;
  height: 46px;
}

.admin-auth-card h3 {
  font-size: 20px;
}

.admin-auth-card p {
  font-size: 14px;
}

.admin-dashboard {
  gap: 12px;
}

.admin-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px;
  padding: 16px;
  border: 1px solid #2a3b20;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.1), rgba(7, 11, 6, 0) 44%),
    #0b100a;
  box-shadow: none;
}

.admin-dashboard-hero h3 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.admin-dashboard-hero p:not(.eyebrow) {
  max-width: 82ch;
  color: #cbd3c3;
  font-size: 15px;
}

.admin-dashboard-status-row {
  gap: 6px;
}

.admin-dashboard-status-row span {
  min-height: 30px;
  padding: 7px 9px;
  border-color: #334824;
  color: #edf6e8;
  background: rgba(182, 255, 77, 0.07);
  font-size: 11px;
}

.admin-dashboard-live {
  padding: 14px;
  border: 1px solid rgba(182, 255, 77, 0.42);
  color: #f7f7f2;
  background: #14220f;
}

.admin-dashboard-live span,
.admin-dashboard-live small {
  color: #d8e0d3;
}

.admin-dashboard-live strong {
  color: var(--accent);
  font-size: clamp(26px, 2.6vw, 36px);
}

.admin-dashboard-section {
  gap: 12px;
  padding: 14px;
  border-color: #26371c;
  background: #0b100a;
}

.admin-dashboard-section-heading h3 {
  font-size: clamp(22px, 2.2vw, 30px);
}

.admin-dashboard-section-summary {
  color: #b8c0b2;
  font-size: 14px;
}

.admin-dashboard-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.admin-dashboard-metric,
.admin-dashboard-group,
.admin-email-category {
  border-color: #25371b;
  background: #0f160d;
}

.admin-dashboard-metric {
  min-height: 96px;
  padding: 12px;
}

.admin-dashboard-metric span,
.admin-dashboard-group h4,
.admin-email-category h4 {
  color: #b8c0b2;
  font-size: 11px;
}

.admin-dashboard-metric strong {
  color: #f7f7f2;
  font-size: clamp(24px, 2.6vw, 34px);
}

.admin-workspace-shell {
  grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
  gap: 12px;
}

.admin-module-rail {
  top: 88px;
  gap: 6px;
  padding: 8px;
  border-color: #25371b;
  background: #0f160d;
}

.admin-module-rail button {
  min-height: 40px;
  padding: 8px;
  color: #f7f7f2;
}

.admin-module-rail button:hover,
.admin-module-rail button:focus-visible {
  border-color: #3f5b2a;
  background: #182512;
  box-shadow: none;
}

.admin-module-rail strong,
.admin-dashboard-section-heading > strong {
  color: #071006;
  background: var(--accent);
}

.admin-dashboard-chip,
.admin-action-chip,
.admin-email-row,
.admin-email-queue-item {
  border-color: #2a3b20;
  color: #f7f7f2;
  background: #111a0e;
}

.admin-dashboard-chip strong {
  color: var(--accent);
}

.admin-dashboard-chip.notice {
  border-color: rgba(182, 255, 77, 0.22);
  background: rgba(182, 255, 77, 0.06);
}

.admin-action-chip {
  color: #071006;
  background: var(--accent);
}

.admin-email-row strong {
  color: #071006;
}

.admin-email-queue-item span,
.admin-email-queue-item small {
  color: #aeb7a8;
}

.admin-publishing-intro {
  padding: 16px;
  border-color: rgba(182, 255, 77, 0.32);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.12), rgba(7, 11, 6, 0) 46%),
    #0b100a;
}

.admin-publishing-intro h3 {
  color: #f7f7f2;
  font-size: clamp(24px, 2.4vw, 32px);
}

.admin-publishing-card {
  border-color: #26371c;
  background: #0b100a;
  box-shadow: none;
}

.admin-publishing-card h3,
.admin-form h3 {
  color: #f7f7f2;
  font-size: 22px;
}

@media (max-width: 980px) {
  .admin-dashboard-hero,
  .admin-workspace-shell,
  .admin-dashboard-section-body,
  .admin-email-settings {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-module-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-users-panel {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #0a0f09;
}

.admin-users-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.admin-users-toolbar h4 {
  margin: 0;
  color: #f7f7f2;
  font-size: 22px;
  letter-spacing: 0;
}

.admin-users-toolbar span {
  color: #aeb7a8;
  font-size: 13px;
}

.admin-users-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 8px;
}

.admin-users-search input {
  min-height: 44px;
  border-color: #304420;
  color: #f7f7f2;
  background: #070b06;
}

.admin-users-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.admin-users-summary span {
  min-height: 60px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #b8c0b2;
  background: #0f160d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-users-summary strong {
  display: block;
  color: #f7f7f2;
  font-size: 26px;
  line-height: 1;
}

.admin-users-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 116, 116, 0.5);
  border-radius: 8px;
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.08);
  font-weight: 800;
}

.admin-users-list {
  display: grid;
  gap: 8px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.2fr) minmax(170px, 0.8fr) 110px auto;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-user-row[data-status="suspended"] {
  border-color: rgba(255, 116, 116, 0.55);
  background: linear-gradient(135deg, rgba(255, 116, 116, 0.08), rgba(15, 22, 13, 0) 42%), #0f160d;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  color: #071006;
  background: var(--accent);
  font-weight: 950;
}

.admin-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.admin-user-main,
.admin-user-meta,
.admin-user-actions {
  display: grid;
  gap: 4px;
}

.admin-user-main strong {
  color: #f7f7f2;
  font-size: 16px;
}

.admin-user-main span,
.admin-user-meta span {
  overflow: hidden;
  color: #b8c0b2;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payout-check {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 208, 93, 0.45);
  border-radius: 8px;
  color: #f7f7f2;
  background: rgba(255, 208, 93, 0.08);
}

.admin-payout-check.match {
  border-color: rgba(171, 255, 56, 0.62);
  background: rgba(171, 255, 56, 0.1);
}

.admin-payout-check span,
.admin-user-meta .admin-payout-check span {
  display: grid;
  gap: 1px;
  overflow: visible;
  color: #f7f7f2;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.admin-payout-check strong {
  color: var(--accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-payout-check small {
  grid-column: 1 / -1;
  color: #b8c0b2;
  font-size: 11px;
  font-weight: 800;
}

.admin-user-status {
  justify-self: start;
  min-width: 88px;
  padding: 7px 9px;
  border: 1px solid #3f5b2a;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.admin-user-status.suspended {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-user-row-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.admin-user-row-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-seller-row {
  grid-template-columns:
    44px
    minmax(220px, 1.2fr)
    minmax(180px, 0.8fr)
    minmax(116px, max-content);
  align-items: stretch;
  overflow: hidden;
}

.admin-seller-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-seller-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) minmax(96px, 120px) minmax(96px, 120px) minmax(126px, 150px);
  width: 100%;
}

.admin-seller-panel .admin-users-search button {
  min-width: 0;
  white-space: nowrap;
}

.admin-seller-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.admin-seller-actions {
  display: grid;
  grid-column: 1 / -1;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-seller-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

.admin-seller-action-group {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-panel);
}

.admin-seller-action-label {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-seller-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-seller-action-note {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--admin-neutral-line);
  border-radius: 8px;
  color: var(--admin-neutral-ink);
  background: var(--admin-neutral-bg);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  cursor: default;
  pointer-events: none;
}

.admin-seller-action-note.success {
  border-color: rgba(182, 255, 77, 0.62);
  color: var(--admin-ink);
  background: rgba(182, 255, 77, 0.12);
}

.admin-seller-action-note.warning {
  border-color: var(--admin-warning-line);
  color: var(--admin-warning-ink);
  background: var(--admin-warning);
}

.admin-seller-status-stack {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.admin-user-status.seller-pending {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.seller-rejected {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-user-status.payout-verified {
  border-color: rgba(171, 255, 56, 0.7);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.payout-warning,
.admin-user-status.payout-unchecked {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.payout-inactive {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-seller-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-seller-filter-row button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #304420;
  border-radius: 8px;
  color: #f7f7f2;
  background: #10190d;
  font-weight: 900;
}

.admin-seller-filter-row button.active,
.admin-seller-filter-row button:hover,
.admin-seller-filter-row button:focus-visible {
  color: #071006;
  background: var(--accent);
}

.admin-seller-listings-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #070b06;
}

.admin-users-toolbar.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-seller-listing-list {
  display: grid;
  gap: 8px;
}

.admin-seller-listing-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #0f160d;
}

.admin-seller-listing-row img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-seller-listing-row strong {
  display: block;
  color: #f7f7f2;
}

.admin-seller-listing-row span {
  color: #b8c0b2;
  font-size: 13px;
}

.admin-listing-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-listing-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, auto));
  width: 100%;
}

.admin-listing-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.admin-listing-list {
  display: grid;
  gap: 8px;
}

.admin-listing-row {
  display: grid;
  grid-template-columns: 58px minmax(220px, 1.1fr) minmax(180px, 0.8fr) 100px minmax(300px, auto);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #0f160d;
}

.admin-listing-row[data-status="pending"] {
  border-color: rgba(255, 208, 93, 0.45);
}

.admin-listing-row[data-status="flagged"],
.admin-listing-row[data-status="rejected"],
.admin-listing-row[data-status="removed"] {
  border-color: rgba(255, 116, 116, 0.45);
}

.admin-listing-row img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-listing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-user-status.listing-pending {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.listing-flagged,
.admin-user-status.listing-rejected,
.admin-user-status.listing-removed {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-listing-edit-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #070b06;
}

.admin-listing-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.admin-listing-edit-grid label {
  display: grid;
  gap: 6px;
  color: #b8c0b2;
  font-size: 13px;
  font-weight: 900;
}

.admin-listing-edit-grid input,
.admin-listing-edit-grid select {
  min-height: 42px;
  border-color: #304420;
  color: #f7f7f2;
  background: #0b100a;
}

.admin-order-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-order-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, auto));
  width: 100%;
}

.admin-order-panel .admin-users-summary {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.admin-order-list {
  display: grid;
  gap: 8px;
}

.admin-order-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(230px, 1fr) 110px 124px minmax(300px, auto);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-order-row[data-status="pending"],
.admin-order-row[data-status="refund-requested"] {
  border-color: rgba(255, 208, 93, 0.45);
}

.admin-order-row[data-status="disputed"],
.admin-order-row[data-status="refunded"],
.admin-order-row[data-status="cancelled"] {
  border-color: rgba(255, 116, 116, 0.45);
}

.admin-order-row > span:not(.admin-user-status) {
  color: #b8c0b2;
  font-size: 13px;
  font-weight: 850;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-user-status.order-pending,
.admin-user-status.order-refund-requested {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.order-completed {
  border-color: rgba(182, 255, 77, 0.65);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.order-disputed,
.admin-user-status.order-refunded,
.admin-user-status.order-cancelled {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-order-detail-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #070b06;
}

.admin-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.admin-order-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
  font-weight: 850;
}

.admin-order-detail-grid strong,
.admin-order-note-form label {
  color: #b8c0b2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-order-detail-grid small {
  color: #b8c0b2;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-order-note-form {
  display: grid;
  gap: 10px;
}

.admin-order-note-form label {
  display: grid;
  gap: 6px;
}

.admin-order-note-form textarea {
  min-height: 90px;
  resize: vertical;
  border-color: #304420;
  color: #f7f7f2;
  background: #0b100a;
}

.admin-premium-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-premium-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(104px, auto));
  width: 100%;
}

.admin-premium-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.admin-premium-list {
  display: grid;
  gap: 8px;
}

.admin-premium-row {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.1fr) minmax(190px, 0.8fr) 118px minmax(330px, auto);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-premium-row[data-status="pending"] {
  border-color: rgba(255, 208, 93, 0.48);
}

.admin-premium-row[data-status="active"] {
  border-color: rgba(182, 255, 77, 0.48);
}

.admin-premium-row[data-status="cancelled"],
.admin-premium-row[data-status="expired"],
.admin-premium-row[data-status="failed"] {
  border-color: rgba(255, 116, 116, 0.45);
}

.admin-premium-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-user-status.premium-pending {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.premium-active {
  border-color: rgba(182, 255, 77, 0.65);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.premium-basic,
.admin-user-status.premium-cancelled,
.admin-user-status.premium-expired,
.admin-user-status.premium-failed {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-premium-analytics-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #070b06;
}

.admin-premium-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.admin-premium-analytics-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #b8c0b2;
  background: #0f160d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-premium-analytics-grid strong {
  color: #f7f7f2;
  font-size: 22px;
  line-height: 1.05;
  text-transform: none;
}

.admin-safety-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-safety-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, auto));
  width: 100%;
}

.admin-safety-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.admin-safety-list {
  display: grid;
  gap: 8px;
}

.admin-safety-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(230px, 0.9fr) 110px 104px minmax(360px, auto);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-safety-row[data-type="report"] {
  border-color: rgba(255, 208, 93, 0.45);
}

.admin-safety-row[data-type="dispute"] {
  border-color: rgba(255, 116, 116, 0.45);
}

.admin-safety-row > span:not(.admin-user-status) {
  color: #b8c0b2;
  font-size: 13px;
  font-weight: 850;
}

.admin-safety-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-user-status.safety-report {
  border-color: rgba(255, 208, 93, 0.65);
  color: #1a1200;
  background: #ffd05d;
}

.admin-user-status.safety-dispute {
  border-color: rgba(255, 116, 116, 0.7);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.12);
}

.admin-safety-detail-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #070b06;
}

.admin-safety-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.admin-safety-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
  font-weight: 850;
}

.admin-safety-detail-grid strong {
  color: #b8c0b2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-safety-detail-grid small {
  color: #b8c0b2;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-support-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-support-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, auto));
  width: 100%;
}

.admin-support-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.admin-support-list {
  display: grid;
  gap: 8px;
}

.admin-support-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1fr) 104px 96px minmax(220px, 240px);
  gap: 10px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-support-row .admin-user-main,
.admin-support-row .admin-user-meta {
  min-width: 0;
}

.admin-support-row[data-status="open"] {
  border-color: rgba(182, 255, 77, 0.45);
}

.admin-support-row[data-status="assigned"] {
  border-color: rgba(182, 255, 77, 0.45);
}

.admin-support-row[data-status="closed"] {
  border-color: rgba(142, 154, 134, 0.35);
  opacity: 0.78;
}

.admin-support-row > span:not(.admin-user-status) {
  color: #b8c0b2;
  font-size: 13px;
  font-weight: 850;
}

.admin-support-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-support-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

.admin-support-actions .danger-button {
  border-color: rgba(255, 116, 116, 0.55);
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.1);
}

.admin-support-actions .danger-button:hover,
.admin-support-actions .danger-button:focus-visible {
  color: #fff3f3;
  background: rgba(255, 116, 116, 0.2);
}

.admin-user-status.support-open {
  border-color: rgba(182, 255, 77, 0.68);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.support-assigned {
  border-color: rgba(182, 255, 77, 0.65);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.support-closed {
  border-color: rgba(142, 154, 134, 0.65);
  color: #dce4d7;
  background: rgba(142, 154, 134, 0.12);
}

.admin-support-detail-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #070b06;
}

.admin-support-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.admin-support-detail-grid span,
.admin-support-message-preview {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
  font-weight: 850;
}

.admin-support-detail-grid strong,
.admin-support-message-preview strong,
.admin-support-reply-form label {
  color: #b8c0b2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-support-detail-grid small,
.admin-support-message-preview small {
  color: #b8c0b2;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-support-message-preview p {
  margin: 0;
  color: #f7f7f2;
  overflow-wrap: anywhere;
}

.admin-support-reply-form {
  display: grid;
  gap: 10px;
}

.admin-support-reply-form label {
  display: grid;
  gap: 6px;
}

.admin-support-reply-form textarea {
  min-height: 100px;
  resize: vertical;
  border-color: #304420;
  color: #f7f7f2;
  background: #0b100a;
}

.admin-marketing-panel .admin-users-toolbar {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-marketing-panel .admin-users-search {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(96px, auto));
  width: 100%;
}

.admin-marketing-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.admin-marketing-list,
.admin-marketing-card-grid {
  display: grid;
  gap: 8px;
}

.admin-marketing-row {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.1fr) minmax(210px, 0.9fr) 112px minmax(230px, 240px);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-marketing-row[data-featured="true"] {
  border-color: rgba(182, 255, 77, 0.52);
  background: linear-gradient(135deg, rgba(182, 255, 77, 0.08), rgba(15, 22, 13, 0) 42%), #0f160d;
}

.admin-marketing-row.product img,
.admin-marketing-card img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #070b06;
}

.admin-marketing-row .admin-user-main,
.admin-marketing-row .admin-user-meta {
  min-width: 0;
}

.admin-marketing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-marketing-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

.admin-user-status.marketing-active {
  border-color: rgba(182, 255, 77, 0.68);
  color: #071006;
  background: var(--accent);
}

.admin-user-status.marketing-idle {
  border-color: rgba(142, 154, 134, 0.6);
  color: #dce4d7;
  background: rgba(142, 154, 134, 0.12);
}

.admin-marketing-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  background: #070b06;
}

.admin-marketing-form label {
  display: grid;
  gap: 6px;
  color: #b8c0b2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-marketing-form label.wide {
  grid-column: 1 / -1;
}

.admin-marketing-form input,
.admin-marketing-form select,
.admin-marketing-form textarea {
  min-height: 44px;
  border-color: #304420;
  color: #f7f7f2;
  background: #0b100a;
}

.admin-marketing-form textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-marketing-form .primary-button,
.admin-marketing-form .secondary-button {
  grid-column: 1 / -1;
}

.admin-form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #b8c0b2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.admin-marketing-card-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.admin-marketing-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 130px;
  padding: 12px;
  border: 1px solid #26371c;
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-marketing-card img {
  width: 100%;
  height: 120px;
}

.admin-marketing-card h5 {
  margin: 0;
  color: #f7f7f2;
  font-size: 17px;
  letter-spacing: 0;
}

.admin-marketing-card p,
.admin-marketing-card small {
  margin: 0;
  color: #b8c0b2;
  overflow-wrap: anywhere;
}

.admin-marketing-drop-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.38);
  border-radius: 8px;
  color: #f7f7f2;
  background: #0f160d;
}

.admin-marketing-drop-summary strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.official-hero-promo {
  display: grid;
  gap: 8px;
  max-width: 540px;
  padding: 12px;
  border: 1px solid rgba(182, 255, 77, 0.35);
  border-radius: 8px;
  background: rgba(182, 255, 77, 0.06);
}

.official-hero-promo span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.official-hero-promo strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.official-hero-promo small {
  color: #dce4d7;
  font-size: 14px;
}

.official-hero-promo .secondary-button {
  width: fit-content;
  min-height: 40px;
  padding-inline: 16px;
}

.listing-featured-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-suspension-notice {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 116, 116, 0.55);
  border-radius: 8px;
  color: #ffd7d7;
  background: rgba(255, 116, 116, 0.09);
}

.account-suspension-notice strong {
  color: #fff3f3;
  font-size: 15px;
}

.account-suspension-notice span {
  color: #ffd7d7;
  font-size: 13px;
}

/* Admin color system: follows the same day/night theme switch as the rest of Hangah. */
#admin {
  --admin-ink: #0f0f0f;
  --admin-muted: #676b61;
  --admin-soft: #83887b;
  --admin-bg: #f5f3ef;
  --admin-panel: #ffffff;
  --admin-card: #ffffff;
  --admin-card-soft: #f8f7f3;
  --admin-field: #ffffff;
  --admin-line: #dedbd4;
  --admin-line-strong: #cdd8c2;
  --admin-button: #eaffd3;
  --admin-button-hover: #d8ffb4;
  --admin-danger: #fff3f0;
  --admin-danger-hover: #ffe2dc;
  --admin-danger-line: #e4a09a;
  --admin-danger-ink: #8a1f16;
  --admin-danger-hover-ink: #66150f;
  --admin-disabled-bg: #eeeee9;
  --admin-disabled-line: #d9d8d1;
  --admin-disabled-ink: #8b8b82;
  --admin-neutral-bg: #f2f2ec;
  --admin-neutral-line: #d9ded0;
  --admin-neutral-ink: #5e6759;
  --admin-warning: #fff7df;
  --admin-warning-line: #e3c66e;
  --admin-warning-ink: #5f4700;
  --admin-glow: rgba(182, 255, 77, 0.16);
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 12% 0%, var(--admin-glow), transparent 30%),
    var(--admin-bg);
}

:root[data-theme="night"] #admin {
  --admin-ink: #f7f7f2;
  --admin-muted: #c0c8b8;
  --admin-soft: #8f9a86;
  --admin-bg: #070b06;
  --admin-panel: #0b100a;
  --admin-card: #0f160d;
  --admin-card-soft: #111a0e;
  --admin-field: #080b08;
  --admin-line: #26371c;
  --admin-line-strong: #314623;
  --admin-button: #1f3515;
  --admin-button-hover: #2b4a1d;
  --admin-danger: #2a1814;
  --admin-danger-hover: #3a1d18;
  --admin-danger-line: #6b3a34;
  --admin-danger-ink: #ffd7d7;
  --admin-danger-hover-ink: #fff3f3;
  --admin-disabled-bg: #172113;
  --admin-disabled-line: #24331c;
  --admin-disabled-ink: #7f8a79;
  --admin-neutral-bg: rgba(142, 154, 134, 0.12);
  --admin-neutral-line: rgba(142, 154, 134, 0.58);
  --admin-neutral-ink: #dce4d7;
  --admin-warning: #221d0e;
  --admin-warning-line: #5f552a;
  --admin-warning-ink: #f4e3a3;
  --admin-glow: rgba(182, 255, 77, 0.08);
}

#admin .admin-card,
#admin .admin-dashboard-section,
#admin .admin-users-panel,
#admin .admin-auth-card,
#admin .admin-publishing-card,
#admin .admin-module-rail,
#admin .admin-dashboard-metric,
#admin .admin-dashboard-group,
#admin .admin-email-category,
#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row,
#admin .admin-marketing-card,
#admin .admin-seller-listing-row,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid span,
#admin .admin-support-detail-grid span,
#admin .admin-support-message-preview,
#admin .admin-dashboard-chip,
#admin .admin-email-row,
#admin .admin-email-queue-item {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-card);
  box-shadow: none;
}

#admin .admin-dashboard-live {
  border: 1px solid rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
  box-shadow: none;
}

#admin .admin-dashboard-live span,
#admin .admin-dashboard-live strong,
#admin .admin-dashboard-live small {
  color: #071006;
}

#admin .admin-module-rail button {
  border-color: transparent;
  color: var(--admin-ink);
  background: transparent;
}

#admin .admin-module-rail button:hover,
#admin .admin-module-rail button:focus-visible {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-button);
  box-shadow: none;
}

#admin .admin-dashboard-hero,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-listing-edit-panel,
#admin .admin-seller-listings-panel,
#admin .admin-marketing-form {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.07), rgba(7, 11, 6, 0) 42%),
    var(--admin-panel);
  box-shadow: none;
}

#admin input,
#admin select,
#admin textarea,
#admin .admin-users-search input,
#admin .admin-form input,
#admin .admin-form select,
#admin .admin-form textarea {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-field);
}

#admin input::placeholder,
#admin textarea::placeholder {
  color: var(--admin-soft);
  opacity: 1;
}

#admin .secondary-button,
#admin .admin-inline-button,
#admin .admin-user-row-button,
#admin .admin-seller-filter-row button,
#admin .admin-support-form-actions button {
  border: 1px solid var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-button);
  text-shadow: none;
  box-shadow: none;
}

#admin .secondary-button:hover,
#admin .secondary-button:focus-visible,
#admin .admin-inline-button:hover,
#admin .admin-inline-button:focus-visible,
#admin .admin-user-row-button:hover,
#admin .admin-user-row-button:focus-visible,
#admin .admin-seller-filter-row button:hover,
#admin .admin-seller-filter-row button:focus-visible {
  color: var(--admin-ink);
  background: var(--admin-button-hover);
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.12);
}

#admin .primary-button,
#admin .admin-seller-filter-row button.active,
#admin .admin-action-chip,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-user-status.active,
#admin .admin-user-avatar,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-module-rail strong,
#admin .admin-dashboard-chip.notice b,
#admin .admin-pill,
#admin .account-row-meta {
  border-color: rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
  box-shadow: none;
}

#admin .primary-button:hover,
#admin .primary-button:focus-visible,
#admin .admin-seller-filter-row button.active:hover,
#admin .admin-seller-filter-row button.active:focus-visible {
  color: #071006;
  background: #c6ff70;
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.16);
}

#admin .danger-button,
#admin .admin-support-actions .danger-button {
  border: 1px solid var(--admin-danger-line);
  color: var(--admin-danger-ink);
  background: var(--admin-danger);
  box-shadow: none;
}

#admin .danger-button:hover,
#admin .danger-button:focus-visible,
#admin .admin-support-actions .danger-button:hover,
#admin .admin-support-actions .danger-button:focus-visible {
  color: var(--admin-danger-hover-ink);
  background: var(--admin-danger-hover);
  box-shadow: 0 0 0 3px rgba(255, 116, 116, 0.12);
}

#admin button:disabled,
#admin .admin-user-row-button:disabled,
#admin .primary-button:disabled,
#admin .secondary-button:disabled {
  border-color: var(--admin-disabled-line);
  color: var(--admin-disabled-ink);
  background: var(--admin-disabled-bg);
  opacity: 1;
  box-shadow: none;
}

/* Hangah fashion storefront polish */
.official-home {
  gap: clamp(22px, 3vw, 36px);
}

.official-hero {
  grid-template-columns: minmax(300px, 0.76fr) minmax(420px, 1.24fr);
  min-height: 640px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  color: #fff;
  background: #0b0d0a;
  box-shadow: 0 24px 68px rgba(15, 15, 15, 0.12);
}

.official-hero-copy {
  position: relative;
  gap: 20px;
  align-content: end;
  padding: clamp(30px, 4.6vw, 58px);
  background: #090d08;
}

.official-hero-copy::before {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.official-hero-copy .eyebrow {
  color: var(--accent);
}

.official-hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.92;
}

.official-hero-copy p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  font-weight: 760;
}

.official-hero-actions {
  margin-top: 4px;
}

.official-hero-actions .primary-button,
.official-hero-actions .secondary-button {
  min-height: 54px;
  border-radius: 8px;
}

.official-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.official-stats {
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 0;
}

.official-stats span {
  min-height: 58px;
  align-content: center;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.official-stats strong {
  color: #fff;
  font-size: 12px;
}

.official-stats small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.official-hero-media {
  min-height: 640px;
  background: #f4f6f1;
}

.official-hero-media::before,
.official-hero-media::after {
  display: none;
}

.official-hero-media img,
.official-hero-media video {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #f4f6f1;
}

.market-hero-panel {
  position: relative;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.48fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 4vw, 44px);
  border-color: rgba(15, 15, 15, 0.1);
  background: #fff;
  box-shadow: 0 18px 56px rgba(15, 15, 15, 0.08);
}

.market-hero-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
  content: "";
}

.market-hero-copy {
  gap: 16px;
}

.market-hero-copy .eyebrow {
  color: #4f8f00;
}

.market-hero-copy h1 {
  max-width: 17ch;
  font-size: clamp(40px, 5.8vw, 78px);
  line-height: 0.9;
}

.market-hero-copy p {
  max-width: 58ch;
  color: #5b6158;
  font-size: 17px;
  font-weight: 760;
}

.market-hero-actions .primary-button,
.market-hero-actions .secondary-button {
  min-height: 52px;
  border-radius: 8px;
}

.market-hero-proof {
  gap: 12px;
}

.market-hero-proof span {
  min-height: 92px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  color: rgba(255, 255, 255, 0.72);
  background: #0b0d0a;
}

.market-hero-proof strong {
  color: var(--accent);
  font-size: 26px;
}

.market-listing-card,
.official-listing-card {
  border-color: rgba(15, 15, 15, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.07);
}

.market-listing-card:hover,
.market-listing-card:focus-within,
.official-listing-card:hover,
.official-listing-card:focus-within {
  border-color: rgba(92, 160, 0, 0.42);
  box-shadow: 0 18px 42px rgba(15, 15, 15, 0.12);
}

.listing-image {
  background: #f1f4ec;
}

.listing-body {
  gap: 14px;
  padding: 16px;
}

.listing-title {
  line-height: 1.08;
}

.listing-title .title-button {
  font-size: 18px;
}

.listing-meta {
  color: #62675f;
}

.price-line strong {
  color: #0b0d0a;
  font-size: 20px;
}

:root[data-theme="night"] .official-hero,
:root[data-theme="night"] .market-hero-panel {
  border-color: #2b3c21;
  color: #fff;
  background: #080b08;
  box-shadow: none;
}

:root[data-theme="night"] .official-hero-copy {
  background: #080b08;
}

:root[data-theme="night"] .official-hero-media {
  background: #10150f;
}

:root[data-theme="night"] .official-hero-media img,
:root[data-theme="night"] .official-hero-media video {
  background: #10150f;
}

:root[data-theme="night"] .market-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="night"] .market-hero-proof span {
  border-color: #2b3c21;
  background: #11160f;
}

:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .official-listing-card {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
}

:root[data-theme="night"] .listing-image {
  background: #171d14;
}

:root[data-theme="night"] .listing-meta {
  color: rgba(255, 255, 255, 0.64);
}

:root[data-theme="night"] .price-line strong {
  color: #fff;
}

@media (max-width: 980px) {
  .official-hero,
  .market-hero-panel {
    grid-template-columns: 1fr;
  }

  .official-hero,
  .official-hero-media {
    min-height: 0;
  }

  .official-hero-media {
    aspect-ratio: 4 / 3;
  }

  .market-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .official-hero-copy,
  .market-hero-panel {
    padding: 22px;
  }

  .official-hero-copy h1,
  .market-hero-copy h1 {
    max-width: 12ch;
    font-size: 42px;
  }

  .official-hero-copy p,
  .market-hero-copy p {
    font-size: 15px;
  }

  .market-hero-panel::before {
    inset: 0 0 auto;
    width: auto;
    height: 5px;
  }

  .market-hero-proof {
    grid-template-columns: 1fr;
  }
}

/* Live local storefront visibility lock: keep the marketplace refresh as the last cascade winner. */
.market-shell {
  max-width: min(1680px, calc(100vw - 32px));
  padding-top: clamp(18px, 3vw, 34px);
}

.market-shell .catalog-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.market-hero-panel {
  min-height: clamp(420px, 52vw, 620px);
  overflow: hidden;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.58fr);
  padding: clamp(28px, 5vw, 72px);
  border: 1px solid rgba(182, 255, 77, 0.22);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(182, 255, 77, 0.38), transparent 22rem),
    linear-gradient(135deg, #050705 0%, #0d140a 56%, #17210f 100%);
  box-shadow: 0 28px 80px rgba(8, 12, 6, 0.2);
}

.market-hero-panel::before {
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #b6ff4d, rgba(182, 255, 77, 0.12));
}

.market-hero-copy {
  align-self: end;
  max-width: 820px;
}

.market-hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #101010;
  background: #b6ff4d;
}

.market-hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 6.8vw, 104px);
  line-height: 0.92;
}

.market-hero-copy p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
}

.market-hero-actions .primary-button {
  background: #b6ff4d;
  color: #101010;
}

.market-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.market-hero-proof {
  align-self: stretch;
  grid-template-columns: 1fr;
  gap: 14px;
}

.market-hero-proof span {
  min-height: 0;
  align-content: end;
  border-color: rgba(182, 255, 77, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.market-hero-proof strong {
  color: #b6ff4d;
  font-size: 30px;
}

@media (max-width: 980px) {
  .market-hero-panel {
    grid-template-columns: 1fr;
  }

  .market-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .market-shell {
    max-width: calc(100vw - 20px);
  }

  .market-hero-panel {
    min-height: 520px;
    padding: 24px;
    border-radius: 24px;
  }

  .market-hero-copy h1 {
    max-width: 11ch;
    font-size: 48px;
  }

  .market-hero-proof {
    grid-template-columns: 1fr;
  }
}

/* Visible fashion refresh for local review. */
.market-shell {
  margin-inline: clamp(14px, 3vw, 42px);
}

.market-hero-panel {
  min-height: 430px;
  align-items: end;
  overflow: hidden;
  border-color: rgba(15, 15, 15, 0.16);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.16), transparent 42%),
    #090d08;
}

.market-hero-panel::before {
  width: 8px;
}

.market-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.market-hero-copy .eyebrow {
  width: max-content;
  padding: 8px 10px;
  border-radius: 8px;
  color: #071006;
  background: var(--accent);
}

.market-hero-copy h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 0.86;
}

.market-hero-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.74);
}

.market-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.market-hero-proof {
  position: relative;
  z-index: 1;
  align-self: stretch;
}

.market-hero-proof span {
  min-height: 110px;
  border-color: rgba(182, 255, 77, 0.3);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.market-hero-proof strong {
  color: var(--accent);
  font-size: 31px;
}

.market-section,
.catalog-toolbar,
.market-filter-panel {
  border-radius: 8px;
}

.market-listing-card {
  border-color: rgba(15, 15, 15, 0.12);
  background: #fff;
}

.market-listing-card .listing-body {
  padding: 18px;
}

:root[data-theme="night"] .market-hero-panel {
  border-color: #314623;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), transparent 44%),
    #070a06;
}

:root[data-theme="night"] .market-hero-proof span {
  border-color: rgba(182, 255, 77, 0.32);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .market-hero-panel {
    min-height: 0;
  }

  .market-hero-copy h1 {
    max-width: 10ch;
    font-size: 46px;
  }
}

/* Approved admin dashboard preview style applied to the live owner console. */
#admin {
  --admin-ink: #f7f8f3;
  --admin-muted: #aeb7aa;
  --admin-soft: #899583;
  --admin-bg: #080b08;
  --admin-panel: #101510;
  --admin-card: #111711;
  --admin-card-soft: #151b14;
  --admin-field: #080c08;
  --admin-line: rgba(182, 255, 77, 0.16);
  --admin-line-strong: rgba(182, 255, 77, 0.32);
  --admin-button: rgba(255, 255, 255, 0.04);
  --admin-button-hover: rgba(182, 255, 77, 0.12);
  --admin-danger: rgba(255, 255, 255, 0.04);
  --admin-danger-hover: rgba(182, 255, 77, 0.1);
  --admin-danger-line: rgba(255, 255, 255, 0.16);
  --admin-danger-ink: #f7f8f3;
  --admin-danger-hover-ink: #ffffff;
  --admin-disabled-bg: rgba(255, 255, 255, 0.03);
  --admin-disabled-line: rgba(255, 255, 255, 0.1);
  --admin-disabled-ink: #808a7a;
  --admin-neutral-bg: rgba(255, 255, 255, 0.035);
  --admin-neutral-line: rgba(255, 255, 255, 0.12);
  --admin-neutral-ink: #c4ccbf;
  --admin-warning: rgba(182, 255, 77, 0.1);
  --admin-warning-line: rgba(182, 255, 77, 0.35);
  --admin-warning-ink: #f7f8f3;
  --admin-glow: rgba(182, 255, 77, 0.13);
}

#admin.admin-band {
  min-height: 100vh;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(182, 255, 77, 0.12), transparent 30rem),
    linear-gradient(135deg, #050705 0%, #0d130d 56%, #050705 100%);
}

#admin .admin-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#adminStatus.admin-card {
  width: 100%;
}

#admin .admin-dashboard-live-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
}

#admin .admin-dashboard-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--admin-line);
  background: rgba(8, 11, 8, 0.94);
  padding: 28px 18px;
}

#admin .admin-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--admin-ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

#admin .admin-sidebar-brand i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(182, 255, 77, 0.72);
}

#admin .admin-sidebar-badge {
  margin-bottom: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(182, 255, 77, 0.1);
  color: var(--accent);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#admin .admin-dashboard-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 44px) 44px;
}

#admin .admin-dashboard-hero,
#admin .admin-dashboard-section,
#admin .admin-users-panel,
#admin .admin-dashboard-metric,
#admin .admin-dashboard-group,
#admin .admin-email-category,
#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row,
#admin .admin-marketing-card,
#admin .admin-seller-listing-row,
#admin .admin-users-summary span,
#admin .admin-order-detail-grid span,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid span,
#admin .admin-support-detail-grid span,
#admin .admin-support-message-preview,
#admin .admin-dashboard-chip,
#admin .admin-email-row,
#admin .admin-email-queue-item {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: rgba(16, 21, 16, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

#admin .admin-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 36px);
}

#admin .admin-dashboard-hero h3 {
  margin: 0;
  color: var(--admin-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
}

#admin .admin-dashboard-hero p:not(.eyebrow),
#admin .admin-dashboard-section-summary,
#admin .admin-users-toolbar span,
#admin .admin-user-main span,
#admin .admin-user-meta span,
#admin .admin-dashboard-group h4,
#admin .admin-dashboard-metric span,
#admin .admin-email-category h4,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small {
  color: var(--admin-muted);
}

#admin .admin-dashboard-live {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #0b100b;
  padding: 22px;
}

#admin .admin-dashboard-live span,
#admin .admin-dashboard-live small {
  color: var(--admin-muted);
}

#admin .admin-dashboard-live strong {
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
}

#admin .admin-dashboard-status-row span {
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: var(--admin-muted);
  background: rgba(255, 255, 255, 0.04);
}

#admin .admin-module-rail {
  position: static;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#admin .admin-module-rail button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 42px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--admin-muted);
  background: transparent;
  padding: 0 12px;
  font-weight: 850;
  text-align: left;
}

#admin .admin-module-rail button:hover,
#admin .admin-module-rail button:focus-visible {
  border-color: transparent;
  color: var(--admin-ink);
  background: rgba(182, 255, 77, 0.12);
  box-shadow: none;
}

#admin .admin-module-rail strong,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-dashboard-chip.notice b {
  min-width: 34px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(182, 255, 77, 0.76);
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

#admin .admin-dashboard-section,
#admin .admin-cleanup-panel {
  margin-bottom: 18px;
  padding: 20px;
}

#admin .admin-dashboard-section-heading {
  gap: 16px;
  margin-bottom: 14px;
}

#admin .admin-dashboard-section-heading h3,
#admin .admin-users-toolbar h4,
#admin .admin-user-main strong,
#admin .admin-dashboard-metric strong,
#admin .admin-users-summary strong,
#admin .admin-publishing-card h3,
#admin .admin-form h3 {
  color: var(--admin-ink);
}

#admin .admin-dashboard-section-heading h3 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
}

#admin .admin-dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#admin .admin-dashboard-metric {
  min-height: 118px;
  padding: 18px;
}

#admin .admin-dashboard-metric strong {
  margin-top: 14px;
  font-size: 30px;
  line-height: 1;
}

#admin .admin-dashboard-section-body {
  gap: 14px;
}

#admin .admin-dashboard-group,
#admin .admin-email-category {
  padding: 16px;
}

#admin .admin-dashboard-chip {
  background: rgba(255, 255, 255, 0.035);
}

#admin .admin-dashboard-chip.notice {
  background: rgba(182, 255, 77, 0.08);
}

#admin .admin-action-chip,
#admin .primary-button,
#admin .admin-seller-filter-row button.active,
#admin .admin-user-avatar,
#admin .admin-user-status.active,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-pill,
#admin .account-row-meta {
  border-color: transparent;
  color: #071006;
  background: var(--accent);
  text-shadow: none;
  box-shadow: none;
}

#admin .secondary-button,
#admin .admin-inline-button,
#admin .admin-user-row-button,
#admin .admin-seller-filter-row button,
#admin .admin-support-form-actions button,
#admin .admin-cleanup-actions button {
  min-height: 40px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: rgba(255, 255, 255, 0.04);
  text-shadow: none;
  box-shadow: none;
}

#admin .secondary-button:hover,
#admin .secondary-button:focus-visible,
#admin .admin-inline-button:hover,
#admin .admin-inline-button:focus-visible,
#admin .admin-user-row-button:hover,
#admin .admin-user-row-button:focus-visible,
#admin .admin-seller-filter-row button:hover,
#admin .admin-seller-filter-row button:focus-visible {
  color: var(--admin-ink);
  background: rgba(182, 255, 77, 0.12);
  box-shadow: none;
}

#admin input,
#admin select,
#admin textarea,
#admin .admin-users-search input,
#admin .admin-listing-edit-grid input,
#admin .admin-listing-edit-grid select,
#admin .admin-order-note-form textarea,
#admin .admin-form input,
#admin .admin-form select,
#admin .admin-form textarea {
  border-color: var(--admin-line-strong);
  border-radius: 8px;
  color: var(--admin-ink);
  background: var(--admin-field);
}

#admin .admin-users-panel {
  padding: 20px;
}

#admin .admin-users-toolbar {
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

#admin .admin-users-search {
  gap: 8px;
}

#admin .admin-users-summary {
  gap: 10px;
}

#admin .admin-users-summary span {
  min-height: 74px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row {
  background: rgba(255, 255, 255, 0.035);
}

#admin .admin-publishing-intro,
#admin .admin-publishing-card,
#admin .admin-auth-card,
#admin .admin-listing-edit-panel,
#admin .admin-order-detail-panel,
#admin .admin-seller-listings-panel,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-marketing-form {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: rgba(16, 21, 16, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

#admin .admin-legacy-control,
#admin .admin-publishing-intro,
#admin .admin-publishing-card {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

@media (max-width: 1120px) {
  #admin .admin-dashboard-live-shell {
    grid-template-columns: 1fr;
  }

  #admin .admin-dashboard-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  #admin .admin-module-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #admin .admin-dashboard-hero,
  #admin .admin-users-toolbar {
    grid-template-columns: 1fr;
  }

  #admin .admin-dashboard-metrics,
  #admin .admin-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #admin .admin-dashboard-main {
    padding: 18px 14px 32px;
  }

  #admin .admin-module-rail,
  #admin .admin-dashboard-metrics,
  #admin .admin-users-summary {
    grid-template-columns: 1fr;
  }

  #admin .admin-dashboard-section-heading,
  #admin .admin-users-toolbar {
    display: grid;
  }

  #admin .admin-users-search,
  #admin #admin-users-panel .admin-users-search,
  #admin .admin-seller-panel .admin-users-search {
    grid-template-columns: 1fr;
  }

  #admin .admin-legacy-control,
  #admin .admin-publishing-intro,
  #admin .admin-publishing-card {
    width: calc(100% - 28px);
  }
}

@media (max-width: 760px) {
  .sell-publish-bar {
    display: grid;
  }

  .sell-publish-bar .primary-button,
  .sell-publish-bar .secondary-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .seller-management-header,
  .seller-management-list-head,
  .seller-editing-banner {
    display: grid;
  }

  .seller-management-actions,
  .seller-listing-actions {
    justify-content: stretch;
  }

  .seller-management-actions .secondary-button,
  .seller-listing-actions .secondary-button,
  .seller-management-list-head .primary-button {
    width: 100%;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-listing-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .seller-listing-row img {
    width: 64px;
    height: 64px;
  }

  .seller-listing-row .listing-status-chip,
  .seller-listing-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .seller-management-panel {
    padding: 14px;
  }

  .seller-management-metrics {
    grid-template-columns: 1fr;
  }
}

/* Final contrast guard: bright Hangah green surfaces must never use light text. */
#admin .primary-button,
#admin .admin-seller-filter-row button.active,
#admin .admin-action-chip.active,
#admin .admin-user-avatar,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-module-rail strong,
#admin .admin-dashboard-chip.notice b,
#admin .admin-email-row strong,
#admin .admin-pill,
#admin .account-row-meta,
#admin .admin-user-status.active,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.payout-verified,
:root[data-theme="night"] #admin .primary-button,
:root[data-theme="night"] #admin .admin-seller-filter-row button.active,
:root[data-theme="night"] #admin .admin-action-chip.active,
:root[data-theme="night"] #admin .admin-user-avatar,
:root[data-theme="night"] #admin .admin-dashboard-section-heading > strong,
:root[data-theme="night"] #admin .admin-module-rail strong,
:root[data-theme="night"] #admin .admin-dashboard-chip.notice b,
:root[data-theme="night"] #admin .admin-email-row strong,
:root[data-theme="night"] #admin .admin-pill,
:root[data-theme="night"] #admin .account-row-meta,
:root[data-theme="night"] #admin .admin-user-status.active,
:root[data-theme="night"] #admin .admin-user-status.marketing-active,
:root[data-theme="night"] #admin .admin-user-status.support-open,
:root[data-theme="night"] #admin .admin-user-status.support-assigned,
:root[data-theme="night"] #admin .admin-user-status.order-completed,
:root[data-theme="night"] #admin .admin-user-status.premium-active,
:root[data-theme="night"] #admin .admin-user-status.seller-approved,
:root[data-theme="night"] #admin .admin-user-status.payout-verified {
  border-color: rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

#admin .admin-system-alert-panel {
  grid-column: 1 / -1;
}

#admin .admin-cleanup-panel {
  grid-column: 1 / -1;
}

#admin .admin-cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#admin .admin-cleanup-actions button {
  min-height: 52px;
  padding-inline: 24px;
}

#admin .admin-cleanup-note {
  margin: 14px 0 0;
  color: var(--admin-muted);
  font-weight: 800;
}

#admin .admin-users-search.compact-actions {
  grid-template-columns: auto;
  justify-content: end;
}

#admin .admin-system-alert-row {
  grid-template-columns: 44px minmax(0, 1.45fr) minmax(150px, 0.55fr) minmax(108px, max-content) minmax(118px, 132px);
}

#admin .admin-system-alert-row[data-severity="critical"] {
  border-color: var(--admin-danger-line);
  background:
    linear-gradient(135deg, rgba(255, 116, 116, 0.08), transparent 44%),
    var(--admin-card);
}

#admin .admin-system-alert-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

#admin .admin-system-alert-details span {
  max-width: 260px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--admin-muted);
  background: var(--admin-button);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin .admin-user-status.system-info {
  border-color: var(--admin-neutral-line);
  color: var(--admin-neutral-ink);
  background: var(--admin-neutral-bg);
}

#admin .admin-user-status.system-warning {
  border-color: var(--admin-warning-line);
  color: var(--admin-warning-ink);
  background: var(--admin-warning);
}

#admin .admin-user-status.system-critical {
  border-color: var(--admin-danger-line);
  color: var(--admin-danger-ink);
  background: var(--admin-danger);
}

@media (max-width: 1180px) {
  #admin .admin-system-alert-row {
    grid-template-columns: 1fr;
  }

  #admin .admin-users-search.compact-actions {
    justify-content: stretch;
  }
}

/* Account profile theme fix: keep profile/Gmail copy readable in day and night mode. */
.profile-card .profile-preview,
.profile-card .profile-preview h3,
.profile-card .profile-identity h3,
.profile-card .firebase-connect strong {
  color: var(--ink);
}

.profile-card .profile-preview p,
.profile-card .profile-identity p,
.profile-card .profile-form label,
.profile-card .profile-legal p,
.profile-card .firebase-connect span {
  color: var(--muted);
}

.profile-card .profile-legal,
.profile-card .firebase-connect {
  border-color: var(--line);
}

.profile-card .firebase-connect,
.profile-card .firebase-button.secondary {
  background: var(--panel-soft);
}

.profile-card .firebase-button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

.profile-card .primary-button,
.profile-card .firebase-button:not(.secondary) {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .profile-card .profile-preview,
:root[data-theme="night"] .profile-card .profile-preview h3,
:root[data-theme="night"] .profile-card .profile-identity h3,
:root[data-theme="night"] .profile-card .firebase-connect strong {
  color: var(--on-dark);
}

:root[data-theme="night"] .profile-card .profile-preview p,
:root[data-theme="night"] .profile-card .profile-identity p,
:root[data-theme="night"] .profile-card .profile-form label,
:root[data-theme="night"] .profile-card .profile-legal p,
:root[data-theme="night"] .profile-card .firebase-connect span {
  color: var(--on-dark-muted);
}

:root[data-theme="night"] .profile-card .firebase-connect,
:root[data-theme="night"] .profile-card .firebase-button.secondary {
  border-color: rgba(182, 255, 77, 0.22);
  background: #10110f;
}

:root[data-theme="night"] .profile-card .firebase-button.secondary {
  color: var(--on-dark);
}

:root[data-theme="night"] .profile-card .primary-button,
:root[data-theme="night"] .profile-card .firebase-button:not(.secondary) {
  color: #071006;
  background: var(--accent);
  text-shadow: none;
}

:root[data-theme="night"] .checkbox-field {
  border-color: #314623;
  color: var(--on-dark);
  background: #152111;
}

:root[data-theme="night"] .seller-momo-status {
  border-color: rgba(182, 255, 77, 0.3);
  background: rgba(182, 255, 77, 0.08);
}

:root[data-theme="night"] .seller-momo-status strong {
  color: var(--on-dark);
}

:root[data-theme="night"] .seller-momo-status span {
  color: var(--on-dark-muted);
}

:root[data-theme="night"] .seller-momo-status.missing {
  border-color: rgba(255, 204, 85, 0.5);
  background: rgba(255, 204, 85, 0.12);
}

:root[data-theme="night"] .message-bubble.blocked {
  border-color: rgba(255, 117, 97, 0.5);
  background: #2a1511;
}

:root[data-theme="night"] .message-bubble.blocked strong,
:root[data-theme="night"] .message-bubble.blocked p {
  color: #ffe7e2;
}

:root[data-theme="night"] .message-bubble.blocked span,
:root[data-theme="night"] .message-bubble.blocked small {
  color: #ffb7a8;
}

/* Admin users layout fix: keep the search/export toolbar and profile rows aligned. */
#admin #admin-users-panel {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#admin #admin-users-panel .admin-users-toolbar {
  grid-template-columns: minmax(260px, 0.78fr) minmax(560px, 1.22fr);
  min-width: 0;
  align-items: end;
}

#admin #admin-users-panel .admin-users-search {
  grid-template-columns: minmax(0, 1fr) minmax(94px, max-content) minmax(104px, max-content) minmax(126px, max-content);
  min-width: 0;
  max-width: 100%;
}

#admin #admin-users-panel .admin-users-search input {
  min-width: 0;
}

#admin #admin-users-panel .admin-users-search button {
  min-width: 0;
  white-space: nowrap;
}

#admin #admin-users-panel .admin-user-row {
  grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(116px, max-content) minmax(132px, 150px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#admin #admin-users-panel .admin-user-main,
#admin #admin-users-panel .admin-user-meta,
#admin #admin-users-panel .admin-user-actions {
  min-width: 0;
  max-width: 100%;
}

#admin #admin-users-panel .admin-user-main strong,
#admin #admin-users-panel .admin-user-main span,
#admin #admin-users-panel .admin-user-meta span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin #admin-users-panel .admin-user-actions {
  justify-self: stretch;
}

#admin #admin-users-panel .admin-user-row-button {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1180px) {
  #admin #admin-users-panel .admin-users-toolbar,
  #admin #admin-users-panel .admin-users-search,
  #admin #admin-users-panel .admin-user-row {
    grid-template-columns: 1fr;
  }

  #admin #admin-users-panel .admin-user-main strong,
  #admin #admin-users-panel .admin-user-main span,
  #admin #admin-users-panel .admin-user-meta span {
    white-space: normal;
  }
}

/* Admin premium row layout fix: keep subscription controls compact in day and night mode. */
#admin .admin-premium-panel,
#admin .admin-premium-list {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#admin .admin-premium-panel .admin-users-search {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(104px, max-content)) minmax(132px, max-content);
  min-width: 0;
  max-width: 100%;
}

#admin .admin-premium-panel .admin-users-search input {
  min-width: 0;
}

#admin .admin-premium-panel .admin-users-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  max-width: 100%;
}

#admin .admin-premium-row {
  grid-template-columns:
    56px
    minmax(0, 1.2fr)
    minmax(0, 0.9fr)
    minmax(118px, max-content)
    minmax(190px, 220px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#admin .admin-premium-row .admin-user-main,
#admin .admin-premium-row .admin-user-meta {
  min-width: 0;
  max-width: 100%;
}

#admin .admin-premium-row .admin-user-main strong,
#admin .admin-premium-row .admin-user-main span,
#admin .admin-premium-row .admin-user-meta span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin .admin-premium-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

#admin .admin-premium-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  #admin .admin-premium-panel .admin-users-search,
  #admin .admin-premium-row {
    grid-template-columns: 1fr;
  }

  #admin .admin-premium-panel .admin-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #admin .admin-premium-row .admin-user-main strong,
  #admin .admin-premium-row .admin-user-main span,
  #admin .admin-premium-row .admin-user-meta span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  #admin .admin-premium-panel .admin-users-summary,
  #admin .admin-premium-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin order row layout fix: long payment references must never break the dashboard grid. */
#admin .admin-order-panel,
#admin .admin-order-list {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

#admin .admin-order-panel .admin-users-search {
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(96px, max-content));
  min-width: 0;
  max-width: 100%;
}

#admin .admin-order-panel .admin-users-search input {
  min-width: 0;
}

#admin .admin-order-row {
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(0, 0.95fr)
    minmax(86px, 0.35fr)
    minmax(108px, max-content)
    minmax(190px, 220px);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#admin .admin-order-row .admin-user-main,
#admin .admin-order-row .admin-user-meta {
  min-width: 0;
  max-width: 100%;
}

#admin .admin-order-row .admin-user-main strong,
#admin .admin-order-row .admin-user-main span,
#admin .admin-order-row .admin-user-meta span,
#admin .admin-order-row > span:not(.admin-user-status) {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin .admin-order-row .admin-user-main strong {
  display: block;
}

#admin .admin-order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
}

#admin .admin-order-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  white-space: nowrap;
}

#admin .admin-order-payment-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}

#admin .admin-order-payment-flow.detail {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  margin: 10px 0;
}

#admin .admin-order-flow-step {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-ink);
  background: var(--admin-card);
}

#admin .admin-order-flow-step strong {
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#admin .admin-order-flow-step span,
#admin .admin-order-row .admin-user-meta .admin-order-flow-step span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 950;
  text-overflow: clip;
  white-space: normal;
}

#admin .admin-order-flow-step small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 800;
}

#admin .admin-order-flow-step.received,
#admin .admin-order-flow-step.settled {
  border-color: rgba(182, 255, 77, 0.62);
}

#admin .admin-order-flow-step.pending,
#admin .admin-order-flow-step.opened,
#admin .admin-order-flow-step.waiting {
  border-color: rgba(255, 208, 93, 0.62);
}

#admin .admin-order-flow-step.failed,
#admin .admin-order-flow-step.refunded {
  border-color: rgba(255, 116, 116, 0.62);
}

#admin .admin-order-payout-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0;
}

@media (max-width: 1180px) {
  #admin .admin-order-panel .admin-users-search,
  #admin .admin-order-row {
    grid-template-columns: 1fr;
  }

  #admin .admin-order-row .admin-user-main strong,
  #admin .admin-order-row .admin-user-main span,
  #admin .admin-order-row .admin-user-meta span,
  #admin .admin-order-row > span:not(.admin-user-status) {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  #admin .admin-order-actions {
    grid-template-columns: 1fr;
  }

  #admin .admin-order-payment-flow,
  #admin .admin-order-payment-flow.detail {
    grid-template-columns: 1fr;
  }
}

#admin .admin-user-row[data-status="suspended"],
#admin .admin-premium-row[data-status="pending"],
#admin .admin-premium-row[data-status="active"],
#admin .admin-premium-row[data-status="cancelled"],
#admin .admin-premium-row[data-status="expired"],
#admin .admin-premium-row[data-status="failed"],
#admin .admin-safety-row[data-type="report"],
#admin .admin-safety-row[data-type="dispute"],
#admin .admin-support-row[data-status="open"],
#admin .admin-support-row[data-status="assigned"],
#admin .admin-support-row[data-status="closed"],
#admin .admin-listing-row[data-status="pending"],
#admin .admin-listing-row[data-status="flagged"],
#admin .admin-listing-row[data-status="rejected"],
#admin .admin-listing-row[data-status="removed"] {
  border-color: var(--admin-line);
  background: var(--admin-card);
}

#admin .admin-user-status.suspended,
#admin .admin-user-status.premium-basic,
#admin .admin-user-status.premium-cancelled,
#admin .admin-user-status.premium-expired,
#admin .admin-user-status.premium-failed,
#admin .admin-user-status.safety-dispute,
#admin .admin-user-status.order-disputed,
#admin .admin-user-status.order-refunded,
#admin .admin-user-status.order-cancelled,
#admin .admin-user-status.listing-flagged,
#admin .admin-user-status.listing-rejected,
#admin .admin-user-status.listing-removed,
#admin .admin-user-status.seller-rejected,
#admin .admin-user-status.payout-inactive {
  border-color: var(--admin-danger-line);
  color: var(--admin-danger-ink);
  background: var(--admin-danger);
}

#admin .admin-user-status.seller-pending,
#admin .admin-user-status.premium-pending,
#admin .admin-user-status.order-pending,
#admin .admin-user-status.order-refund-requested,
#admin .admin-user-status.safety-report,
#admin .admin-user-status.listing-pending,
#admin .admin-user-status.payout-warning {
  border-color: var(--admin-warning-line);
  color: var(--admin-warning-ink);
  background: var(--admin-warning);
}

#admin .admin-user-status.marketing-idle,
#admin .admin-user-status.support-closed {
  border-color: var(--admin-neutral-line);
  color: var(--admin-neutral-ink);
  background: var(--admin-neutral-bg);
}

#admin .admin-users-toolbar span,
#admin .admin-user-main span,
#admin .admin-user-meta span,
#admin .admin-dashboard-section-summary,
#admin .admin-dashboard-group h4,
#admin .admin-dashboard-metric span,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid small,
#admin .admin-support-detail-grid small,
#admin .admin-marketing-card p,
#admin .admin-marketing-card small {
  color: var(--admin-muted);
}

#admin .admin-dashboard-hero p:not(.eyebrow),
#admin .admin-auth-card p,
#admin .admin-publishing-intro p,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small {
  color: var(--admin-muted);
}

#admin .admin-users-toolbar h4,
#admin .admin-dashboard-hero h3,
#admin .admin-dashboard-section-heading h3,
#admin .admin-dashboard-metric strong,
#admin .admin-user-main strong,
#admin .admin-premium-analytics-grid strong,
#admin .admin-marketing-card h5,
#admin .admin-support-message-preview p,
#admin .admin-email-row strong,
#admin .admin-publishing-intro h3,
#admin .admin-publishing-card h3,
#admin .admin-form h3 {
  color: var(--admin-ink);
}

#admin .admin-dashboard-status-row span,
#admin .admin-dashboard-chip,
#admin .admin-email-row {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-button);
}

#admin .admin-dashboard-chip strong {
  color: var(--admin-ink);
}

#admin .admin-email-category {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-panel);
}

#admin .admin-email-category h4 {
  color: var(--admin-muted);
}

#admin .admin-email-row,
#admin .admin-email-queue-item {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-card);
}

#admin .admin-email-row span {
  color: var(--admin-ink);
}

#admin .admin-email-row strong {
  border: 1px solid rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
}

:root[data-theme="night"] #admin .admin-email-category {
  border-color: #26371c;
  background: #0b100a;
}

:root[data-theme="night"] #admin .admin-email-row,
:root[data-theme="night"] #admin .admin-email-queue-item {
  border-color: #26371c;
  color: #f7f7f2;
  background: #0f160d;
}

/* Theme parity: every page follows the same day/night surface logic as Sell. */
.home-page,
.market-shell,
.detail-page,
.store-page,
.sell-band,
.profile-band,
.plans-band,
.admin-band,
.terms-band,
.privacy-band,
.help-band {
  color: var(--ink);
}

.market-hero-panel,
.market-section,
.market-filter-panel,
.catalog-toolbar,
.market-store-card,
.market-listing-card,
.listing-card,
.product-info,
.seller-card,
.rating-summary-card,
.review-panel,
.review-card,
.review-gate,
.review-form,
.store-hero,
.store-showcase,
.store-empty-state,
.profile-card,
.account-card,
.saved-pieces-panel,
.saved-piece-card,
.plan-card:not(.featured),
.terms-panel,
.terms-item,
.help-panel,
.help-card,
.admin-card,
.admin-dashboard-section,
.admin-users-panel,
.sell-form {
  border-color: var(--line);
  color: var(--ink);
  background: var(--panel);
}

.sell-form-section,
.photo-picker,
.store-metric,
.detail-list li,
.account-assurance span,
.market-hero-proof span,
.market-overview div,
.blog-composer-profile,
.admin-rules span,
.empty-state {
  border-color: var(--line);
  color: var(--muted);
  background: var(--panel-soft);
}

.listing-form input,
.listing-form select,
.listing-form textarea,
.profile-form input,
.profile-form select,
.profile-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.message-form textarea,
.search-wrap {
  border-color: var(--line);
  color: var(--ink);
  background: var(--field-bg);
}

.section-help,
.toolbar-help,
.field-hint,
.sell-section-heading p,
.listing-meta,
.seller-link,
.seller-mini-link small,
.store-section-heading span,
.store-metric span,
.store-metric small,
.detail-list span,
.review-card span,
.review-empty,
.plan-card p,
.terms-intro p,
.terms-item p,
.help-card p {
  color: var(--muted);
}

:root[data-theme="night"] .market-hero-panel,
:root[data-theme="night"] .market-section,
:root[data-theme="night"] .market-filter-panel,
:root[data-theme="night"] .catalog-toolbar,
:root[data-theme="night"] .market-store-card,
:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .listing-card,
:root[data-theme="night"] .product-info,
:root[data-theme="night"] .seller-card,
:root[data-theme="night"] .rating-summary-card,
:root[data-theme="night"] .review-panel,
:root[data-theme="night"] .review-card,
:root[data-theme="night"] .review-gate,
:root[data-theme="night"] .review-form,
:root[data-theme="night"] .store-hero,
:root[data-theme="night"] .store-showcase,
:root[data-theme="night"] .store-empty-state,
:root[data-theme="night"] .profile-card,
:root[data-theme="night"] .account-card,
:root[data-theme="night"] .saved-pieces-panel,
:root[data-theme="night"] .saved-piece-card,
:root[data-theme="night"] .plan-card:not(.featured),
:root[data-theme="night"] .terms-panel,
:root[data-theme="night"] .terms-item,
:root[data-theme="night"] .help-panel,
:root[data-theme="night"] .help-card,
:root[data-theme="night"] .admin-card,
:root[data-theme="night"] .admin-dashboard-section,
:root[data-theme="night"] .admin-users-panel,
:root[data-theme="night"] .sell-form {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
  box-shadow: none;
}

:root[data-theme="night"] .sell-form-section,
:root[data-theme="night"] .photo-picker,
:root[data-theme="night"] .store-metric,
:root[data-theme="night"] .detail-list li,
:root[data-theme="night"] .account-assurance span,
:root[data-theme="night"] .market-hero-proof span,
:root[data-theme="night"] .market-overview div,
:root[data-theme="night"] .blog-composer-profile,
:root[data-theme="night"] .admin-rules span,
:root[data-theme="night"] .empty-state {
  border-color: #314623;
  color: #c0c3b8;
  background: #1a2614;
}

: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"] .profile-form input,
:root[data-theme="night"] .profile-form select,
:root[data-theme="night"] .profile-form textarea,
:root[data-theme="night"] .admin-form input,
:root[data-theme="night"] .admin-form select,
:root[data-theme="night"] .admin-form textarea,
:root[data-theme="night"] .message-form textarea,
:root[data-theme="night"] .search-wrap {
  border-color: #2f3f25;
  color: #f7f7f2;
  background: #080b08;
}

@media (max-width: 980px) {
  .admin-users-toolbar,
  .admin-users-search,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-seller-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-seller-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-seller-action-grid {
    grid-template-columns: 1fr;
  }

  .admin-seller-action-group {
    padding: 10px;
  }

  .admin-seller-action-note {
    width: 100%;
  }

  .admin-seller-panel .admin-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-listing-panel .admin-users-summary,
  .admin-listing-edit-grid,
  .admin-listing-row {
    grid-template-columns: 1fr;
  }

  .admin-order-panel .admin-users-summary,
  .admin-order-detail-grid,
  .admin-order-row {
    grid-template-columns: 1fr;
  }

  .admin-premium-panel .admin-users-summary,
  .admin-premium-analytics-grid,
  .admin-premium-row {
    grid-template-columns: 1fr;
  }

  .admin-safety-panel .admin-users-summary,
  .admin-safety-detail-grid,
  .admin-safety-row,
  .admin-support-panel .admin-users-summary,
  .admin-support-detail-grid,
  .admin-support-row,
  .admin-marketing-panel .admin-users-summary,
  .admin-marketing-row,
  .admin-marketing-form,
  .admin-marketing-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-listing-actions {
    justify-content: stretch;
  }

  .admin-listing-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-order-actions {
    justify-content: stretch;
  }

  .admin-order-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-premium-actions {
    justify-content: stretch;
  }

  .admin-premium-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-safety-actions {
    justify-content: stretch;
  }

  .admin-safety-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-support-actions,
  .admin-support-form-actions {
    justify-content: stretch;
  }

  .admin-support-actions .admin-user-row-button,
  .admin-support-form-actions button {
    width: 100%;
  }

  .admin-marketing-actions {
    grid-template-columns: 1fr;
  }

  .admin-marketing-actions .admin-user-row-button {
    width: 100%;
  }

  .admin-users-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-avatar {
    display: none;
  }

  .admin-user-main span,
  .admin-user-meta span {
    white-space: normal;
  }
}

/* Theme toggle fix: keep the dynamic admin dashboard on the same day/night system as the rest of the app. */
#admin.admin-band {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background:
    radial-gradient(circle at 12% 0%, var(--admin-glow), transparent 30%),
    var(--admin-bg);
}

#admin .admin-card,
#admin .admin-auth-card,
#admin .admin-publishing-card,
#admin .admin-publishing-intro,
#admin .admin-dashboard-section,
#admin .admin-users-panel,
#admin .admin-dashboard-metric,
#admin .admin-dashboard-group,
#admin .admin-email-category,
#admin .admin-module-rail,
#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row,
#admin .admin-marketing-card,
#admin .admin-seller-listing-row,
#admin .admin-users-summary span,
#admin .admin-order-detail-grid span,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid span,
#admin .admin-support-detail-grid span,
#admin .admin-support-message-preview,
#admin .admin-dashboard-chip,
#admin .admin-email-row,
#admin .admin-email-queue-item {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background: var(--admin-card);
  box-shadow: none;
}

#admin .admin-dashboard-hero,
#admin .admin-publishing-intro,
#admin .admin-listing-edit-panel,
#admin .admin-order-detail-panel,
#admin .admin-seller-listings-panel,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-marketing-form {
  border-color: var(--admin-line);
  color: var(--admin-ink);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.07), transparent 42%),
    var(--admin-panel);
  box-shadow: none;
}

#admin .admin-dashboard-status-row span,
#admin .admin-seller-filter-row button,
#admin .admin-action-chip,
#admin .admin-rules span {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-button);
}

#admin .admin-module-rail button,
#admin .admin-user-row-button,
#admin .secondary-button,
#admin .admin-inline-button,
#admin .admin-support-form-actions button {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-button);
}

#admin .admin-module-rail button:hover,
#admin .admin-module-rail button:focus-visible,
#admin .admin-user-row-button:hover,
#admin .admin-user-row-button:focus-visible,
#admin .secondary-button:hover,
#admin .secondary-button:focus-visible,
#admin .admin-inline-button:hover,
#admin .admin-inline-button:focus-visible,
#admin .admin-seller-filter-row button:hover,
#admin .admin-seller-filter-row button:focus-visible {
  color: var(--admin-ink);
  background: var(--admin-button-hover);
  box-shadow: 0 0 0 3px rgba(182, 255, 77, 0.12);
}

#admin input,
#admin select,
#admin textarea,
#admin .admin-users-search input,
#admin .admin-listing-edit-grid input,
#admin .admin-listing-edit-grid select,
#admin .admin-order-note-form textarea,
#admin .admin-form input,
#admin .admin-form select,
#admin .admin-form textarea {
  border-color: var(--admin-line-strong);
  color: var(--admin-ink);
  background: var(--admin-field);
}

#admin input::placeholder,
#admin textarea::placeholder {
  color: var(--admin-soft);
  opacity: 1;
}

#admin .admin-users-toolbar span,
#admin .admin-user-main span,
#admin .admin-user-meta span,
#admin .admin-dashboard-section-summary,
#admin .admin-dashboard-group h4,
#admin .admin-dashboard-metric span,
#admin .admin-email-category h4,
#admin .admin-order-row > span:not(.admin-user-status),
#admin .admin-order-detail-grid strong,
#admin .admin-order-detail-grid small,
#admin .admin-order-note-form label,
#admin .admin-listing-edit-grid label,
#admin .admin-seller-listing-row span,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid small,
#admin .admin-support-detail-grid small,
#admin .admin-marketing-card p,
#admin .admin-marketing-card small,
#admin .admin-publishing-intro p,
#admin .admin-dashboard-hero p:not(.eyebrow),
#admin .admin-auth-card p,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small {
  color: var(--admin-muted);
}

#admin .admin-users-toolbar h4,
#admin .admin-dashboard-hero h3,
#admin .admin-dashboard-section-heading h3,
#admin .admin-dashboard-metric strong,
#admin .admin-user-main strong,
#admin .admin-users-summary strong,
#admin .admin-seller-listing-row strong,
#admin .admin-premium-analytics-grid strong,
#admin .admin-marketing-card h5,
#admin .admin-support-message-preview p,
#admin .admin-email-row strong,
#admin .admin-publishing-intro h3,
#admin .admin-publishing-card h3,
#admin .admin-form h3 {
  color: var(--admin-ink);
}

#admin .primary-button,
#admin .admin-seller-filter-row button.active,
#admin .admin-user-avatar,
#admin .admin-user-status.active,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-module-rail strong,
#admin .admin-dashboard-chip.notice b,
#admin .admin-pill,
#admin .account-row-meta {
  border-color: rgba(182, 255, 77, 0.76);
  color: #071006;
  background: var(--accent);
  text-shadow: none;
  box-shadow: none;
}

#admin .admin-user-status.suspended,
#admin .admin-user-status.premium-basic,
#admin .admin-user-status.premium-cancelled,
#admin .admin-user-status.premium-expired,
#admin .admin-user-status.premium-failed,
#admin .admin-user-status.safety-dispute,
#admin .admin-user-status.order-disputed,
#admin .admin-user-status.order-refunded,
#admin .admin-user-status.order-cancelled,
#admin .admin-user-status.listing-flagged,
#admin .admin-user-status.listing-rejected,
#admin .admin-user-status.listing-removed,
#admin .admin-user-status.seller-rejected,
#admin .admin-user-status.payout-inactive,
#admin .danger-button,
#admin .admin-support-actions .danger-button {
  border-color: var(--admin-danger-line);
  color: var(--admin-danger-ink);
  background: var(--admin-danger);
}

#admin .admin-user-status.seller-pending,
#admin .admin-user-status.premium-pending,
#admin .admin-user-status.order-pending,
#admin .admin-user-status.order-refund-requested,
#admin .admin-user-status.safety-report,
#admin .admin-user-status.listing-pending,
#admin .admin-user-status.payout-warning {
  border-color: var(--admin-warning-line);
  color: var(--admin-warning-ink);
  background: var(--admin-warning);
}

#admin .admin-user-status.marketing-idle,
#admin .admin-user-status.support-closed,
#admin .admin-user-status.payout-unchecked {
  border-color: var(--admin-neutral-line);
  color: var(--admin-neutral-ink);
  background: var(--admin-neutral-bg);
}

#admin button:disabled,
#admin .admin-user-row-button:disabled,
#admin .primary-button:disabled,
#admin .secondary-button:disabled {
  border-color: var(--admin-disabled-line);
  color: var(--admin-disabled-ink);
  background: var(--admin-disabled-bg);
  opacity: 1;
  box-shadow: none;
}

/* Final storefront override: keep the boutique polish above later shared theme resets. */
.official-hero {
  grid-template-columns: minmax(300px, 0.76fr) minmax(420px, 1.24fr);
  min-height: 640px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  color: #fff;
  background: #0b0d0a;
  box-shadow: 0 24px 68px rgba(15, 15, 15, 0.12);
}

.official-hero-copy {
  align-content: end;
  background: #090d08;
}

.official-hero-media {
  min-height: 640px;
  background: #f4f6f1;
}

.official-hero-media::before,
.official-hero-media::after {
  display: none;
}

.official-hero-media img,
.official-hero-media video {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #f4f6f1;
}

.market-hero-panel {
  position: relative;
  min-height: clamp(420px, 52vw, 620px);
  overflow: hidden;
  align-items: stretch;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.58fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(28px, 5vw, 72px);
  border-color: rgba(182, 255, 77, 0.22);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(182, 255, 77, 0.38), transparent 22rem),
    linear-gradient(135deg, #050705 0%, #0d140a 56%, #17210f 100%);
  box-shadow: 0 28px 80px rgba(8, 12, 6, 0.2);
}

.market-hero-panel::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #b6ff4d, rgba(182, 255, 77, 0.12));
  content: "";
}

.market-hero-copy {
  align-self: end;
  max-width: 820px;
}

.market-hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #101010;
  background: #b6ff4d;
}

.market-hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(50px, 6.8vw, 104px);
  line-height: 0.92;
}

.market-hero-copy p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.55;
}

.market-hero-actions .primary-button {
  background: #b6ff4d;
  color: #101010;
}

.market-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.market-hero-proof {
  align-self: stretch;
  grid-template-columns: 1fr;
  gap: 14px;
}

.market-hero-proof span {
  min-height: 0;
  align-content: end;
  border-color: rgba(182, 255, 77, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.market-hero-proof strong {
  color: #b6ff4d;
  font-size: 30px;
}

.market-listing-card,
.official-listing-card {
  border-color: rgba(15, 15, 15, 0.1);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.07);
}

.listing-image {
  background: #f1f4ec;
}

.listing-meta {
  color: #62675f;
}

.price-line strong {
  color: #0b0d0a;
}

:root[data-theme="night"] .official-hero,
:root[data-theme="night"] .market-hero-panel {
  border-color: #2b3c21;
  color: #fff;
  background: #080b08;
  box-shadow: none;
}

:root[data-theme="night"] .official-hero-copy {
  background: #080b08;
}

:root[data-theme="night"] .official-hero-media,
:root[data-theme="night"] .official-hero-media img,
:root[data-theme="night"] .official-hero-media video {
  background: #10150f;
}

:root[data-theme="night"] .market-hero-proof span {
  border-color: #2b3c21;
  color: rgba(255, 255, 255, 0.72);
  background: #11160f;
}

:root[data-theme="night"] .market-listing-card,
:root[data-theme="night"] .official-listing-card {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
}

:root[data-theme="night"] .listing-image {
  background: #171d14;
}

:root[data-theme="night"] .listing-meta {
  color: rgba(255, 255, 255, 0.64);
}

:root[data-theme="night"] .price-line strong {
  color: #fff;
}

@media (max-width: 980px) {
  .official-hero,
  .market-hero-panel {
    grid-template-columns: 1fr;
  }

  .official-hero,
  .official-hero-media {
    min-height: 0;
  }

  .official-hero-media {
    aspect-ratio: 4 / 3;
  }

  .market-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 640px) {
  .official-hero-copy,
  .market-hero-panel {
    padding: 22px;
  }

  .official-hero-copy h1,
  .market-hero-copy h1 {
    max-width: 12ch;
    font-size: 42px;
  }

  .official-hero-copy p,
  .market-hero-copy p {
    font-size: 15px;
  }

  .market-hero-panel::before {
    inset: 0 0 auto;
    width: auto;
    height: 5px;
  }

  .market-hero-proof {
    grid-template-columns: 1fr;
  }
}

/* Final visible marketplace cache-bust lock. */
.market-hero-panel {
  min-height: clamp(420px, 52vw, 620px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(182, 255, 77, 0.38), transparent 22rem),
    linear-gradient(135deg, #050705 0%, #0d140a 56%, #17210f 100%);
}

.market-hero-copy h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(50px, 6.8vw, 104px);
  line-height: 0.92;
}

.market-hero-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.market-hero-proof span {
  border-color: rgba(182, 255, 77, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .market-hero-panel {
    min-height: 520px;
  }

  .market-hero-copy h1 {
    max-width: 11ch;
    font-size: 48px;
  }
}

/* Marketplace category-first top section. */
.market-shell .market-hero-panel {
  display: none;
}

.market-shell .catalog-panel {
  gap: 14px;
}

.market-category-top {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(15, 15, 15, 0.05);
}

.market-category-nav,
.market-category-top .category-chips {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.market-category-nav::-webkit-scrollbar,
.market-category-top .category-chips::-webkit-scrollbar {
  display: none;
}

.market-category-nav button,
.market-category-top .category-chips button {
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 950;
  white-space: nowrap;
}

.market-category-nav button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel-soft);
}

.market-category-nav button:hover,
.market-category-nav button:focus-visible,
.market-category-nav button.active,
.market-category-nav button.open {
  border-color: #b6ff4d;
  color: #050505;
  background: #b6ff4d;
}

.market-mega-menu {
  min-width: 0;
}

.market-mega-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 8px;
  color: #050505;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 15, 15, 0.1);
}

.market-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.market-mega-head > span {
  font-size: 22px;
  font-weight: 950;
}

.market-mega-head button,
.market-mega-column button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.market-mega-head button {
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
  white-space: nowrap;
}

.market-mega-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.market-mega-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.market-mega-column strong {
  color: #5f665a;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-mega-column > div {
  display: grid;
  gap: 3px;
}

.market-mega-column button {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 8px;
  font-weight: 800;
}

.market-mega-column button small,
.market-mega-head button small {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #050505;
  background: #e7ffd3;
  font-size: 11px;
  font-weight: 950;
}

.market-mega-head button:hover,
.market-mega-head button:focus-visible,
.market-mega-head button.active,
.market-mega-column button:hover,
.market-mega-column button:focus-visible,
.market-mega-column button.active {
  color: #050505;
  background: #b6ff4d;
}

.market-mega-head button:hover small,
.market-mega-head button:focus-visible small,
.market-mega-head button.active small,
.market-mega-column button:hover small,
.market-mega-column button:focus-visible small,
.market-mega-column button.active small {
  background: rgba(5, 5, 5, 0.12);
}

.market-category-top .category-chips button {
  min-height: 38px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.market-category-top .category-chips button.active {
  border-color: var(--ink);
  color: var(--panel);
  background: var(--ink);
}

.market-category-top .category-chips small {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #050505;
  background: #b6ff4d;
  font-size: 11px;
  font-weight: 950;
}

.catalog-toolbar.compact {
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.catalog-toolbar.compact h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.market-filter-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-filter-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.15fr);
  gap: 12px;
}

.market-filter-grid .control-group,
.market-filter-grid .seller-summary {
  border-radius: 8px;
  background: var(--panel);
}

.market-shell .listing-grid {
  margin-top: 0;
  scroll-margin-top: 96px;
}

:root[data-theme="night"] .market-category-top,
:root[data-theme="night"] .catalog-toolbar.compact,
:root[data-theme="night"] .market-filter-grid .control-group,
:root[data-theme="night"] .market-filter-grid .seller-summary {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #11160f;
  box-shadow: none;
}

:root[data-theme="night"] .market-category-nav button {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #0c110b;
}

:root[data-theme="night"] .market-category-nav button:hover,
:root[data-theme="night"] .market-category-nav button:focus-visible,
:root[data-theme="night"] .market-category-nav button.active,
:root[data-theme="night"] .market-category-nav button.open,
:root[data-theme="night"] .market-category-top .category-chips button.active {
  border-color: #b6ff4d;
  color: #050505;
  background: #b6ff4d;
}

:root[data-theme="night"] .market-category-top .category-chips button {
  border-color: #2b3c21;
  color: #f7f7f2;
}

:root[data-theme="night"] .market-mega-panel {
  border-color: #2b3c21;
  color: #f7f7f2;
  background: #0c110b;
  box-shadow: none;
}

:root[data-theme="night"] .market-mega-head {
  border-color: #2b3c21;
}

:root[data-theme="night"] .market-mega-column strong {
  color: rgba(247, 247, 242, 0.58);
}

:root[data-theme="night"] .market-mega-head button {
  border-color: #2b3c21;
}

:root[data-theme="night"] .market-mega-column button small,
:root[data-theme="night"] .market-mega-head button small {
  background: rgba(182, 255, 77, 0.18);
  color: #f7f7f2;
}

:root[data-theme="night"] .market-mega-head button:hover,
:root[data-theme="night"] .market-mega-head button:focus-visible,
:root[data-theme="night"] .market-mega-head button.active,
:root[data-theme="night"] .market-mega-column button:hover,
:root[data-theme="night"] .market-mega-column button:focus-visible,
:root[data-theme="night"] .market-mega-column button.active {
  color: #050505;
  background: #b6ff4d;
}

:root[data-theme="night"] .market-mega-head button:hover small,
:root[data-theme="night"] .market-mega-head button:focus-visible small,
:root[data-theme="night"] .market-mega-head button.active small,
:root[data-theme="night"] .market-mega-column button:hover small,
:root[data-theme="night"] .market-mega-column button:focus-visible small,
:root[data-theme="night"] .market-mega-column button.active small {
  color: #050505;
  background: rgba(5, 5, 5, 0.12);
}

@media (max-width: 980px) {
  .market-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filter-grid .seller-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .market-shell {
    padding-top: 8px;
  }

  .market-category-top {
    padding: 12px;
  }

  .market-mega-panel {
    gap: 14px;
    padding: 14px;
  }

  .market-mega-head {
    align-items: stretch;
    flex-direction: column;
  }

  .market-mega-head button {
    width: 100%;
  }

  .market-mega-columns {
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .market-category-nav button {
    min-height: 40px;
    padding: 0 15px;
  }

  .market-category-top .category-chips button {
    min-height: 36px;
  }

  .catalog-toolbar.compact {
    align-items: stretch;
    gap: 12px;
  }

  .market-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile-only seller management compact layout. */
@media (max-width: 760px) {
  .seller-management-panel {
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
  }

  .seller-management-header {
    display: grid;
    gap: 12px;
  }

  .seller-management-header .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .seller-management-header h3 {
    font-size: 26px;
    line-height: 1;
  }

  .seller-management-header span {
    font-size: 14px;
  }

  .seller-management-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .seller-management-actions .secondary-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .seller-management-metrics span {
    display: grid;
    min-height: 70px;
    align-content: center;
    gap: 4px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.1;
  }

  .seller-management-metrics strong {
    margin-bottom: 0;
    font-size: clamp(22px, 8vw, 30px);
    line-height: 0.95;
  }

  .seller-management-list {
    gap: 10px;
  }

  .seller-management-list-head {
    gap: 10px;
  }

  .seller-management-list-head .primary-button {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .seller-management-panel {
    margin-inline: -2px;
    padding: 10px;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-management-metrics span {
    min-height: 62px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 11px;
  }

  .seller-management-metrics strong {
    font-size: 26px;
  }
}

/* Marketplace seller store cards: final polish layer. */
.marketplace-store-strip {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.market-store-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 132px;
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.14), transparent 38%),
    linear-gradient(180deg, #fff, #fbfaf6);
  box-shadow: 0 14px 34px rgba(15, 15, 15, 0.08);
}

.market-store-card:hover,
.market-store-card:focus-visible {
  box-shadow: 0 18px 42px rgba(15, 15, 15, 0.12);
}

.market-store-avatar-wrap {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background: #10110f;
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.16);
}

.market-store-body {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.market-store-title {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.market-store-card strong {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
}

.market-store-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.market-store-stat {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 247, 243, 0.9);
}

.market-store-stat b {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-store-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.market-store-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #0f100e;
  background: #b6ff4d;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

:root[data-theme="night"] .market-store-card {
  border-color: rgba(182, 255, 77, 0.2);
  background:
    linear-gradient(135deg, rgba(182, 255, 77, 0.12), transparent 42%),
    #10130f;
}

:root[data-theme="night"] .market-store-stat {
  border-color: rgba(182, 255, 77, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="night"] .market-store-stat b {
  color: #f7f7f2;
}

@media (max-width: 640px) {
  .marketplace-store-strip {
    grid-template-columns: 1fr;
  }

  .market-store-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .market-store-avatar-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .market-store-card .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .market-store-topline {
    align-items: flex-start;
    gap: 8px;
  }

  .market-store-topline em {
    min-height: 26px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .market-store-card strong {
    font-size: 21px;
  }

  .market-store-stats {
    gap: 6px;
  }

  .market-store-stat {
    padding: 8px;
    border-radius: 10px;
  }

  .market-store-stat b {
    font-size: 15px;
  }

  .market-store-cta {
    grid-column: 1 / -1;
    min-height: 40px;
    width: 100%;
  }
}

/* Admin dashboard UI final polish: layout, theme parity, and overflow fixes. */
#admin {
  --admin-page-bg: #f6f8f1;
  --admin-shell-bg: #ffffff;
  --admin-sidebar-bg: #f0f6e8;
  --admin-card-bg: #ffffff;
  --admin-card-soft-bg: #f7fbf0;
  --admin-field-bg: #ffffff;
  --admin-line-ui: rgba(8, 12, 7, 0.12);
  --admin-line-strong-ui: rgba(8, 12, 7, 0.2);
  --admin-text-ui: #070907;
  --admin-muted-ui: #5d6659;
  --admin-soft-ui: #7b8476;
  --admin-accent-ui: #b6ff4d;
  --admin-accent-soft-ui: rgba(182, 255, 77, 0.22);
  --admin-danger-ui: #9f1111;
  --admin-danger-bg-ui: #fff0f0;
  --admin-shadow-ui: 0 18px 48px rgba(16, 24, 12, 0.08);
  color: var(--admin-text-ui);
  background: var(--admin-page-bg);
}

:root[data-theme="night"] #admin {
  --admin-page-bg: #060906;
  --admin-shell-bg: #0c110c;
  --admin-sidebar-bg: #091009;
  --admin-card-bg: #111811;
  --admin-card-soft-bg: #172017;
  --admin-field-bg: #080c08;
  --admin-line-ui: rgba(182, 255, 77, 0.16);
  --admin-line-strong-ui: rgba(182, 255, 77, 0.28);
  --admin-text-ui: #f7f8f3;
  --admin-muted-ui: #c1c8bd;
  --admin-soft-ui: #9ea896;
  --admin-danger-ui: #ffb8b8;
  --admin-danger-bg-ui: rgba(255, 91, 91, 0.12);
  --admin-shadow-ui: none;
}

#admin.admin-band {
  min-height: 100dvh;
  padding: clamp(14px, 2vw, 24px);
  overflow-x: hidden;
  border: 0;
  color: var(--admin-text-ui);
  background:
    radial-gradient(circle at 92% 0%, rgba(182, 255, 77, 0.13), transparent 28rem),
    var(--admin-page-bg);
}

#admin .section-copy,
#admin .eyebrow,
#admin .admin-dashboard-section-summary,
#admin .admin-dashboard-hero p:not(.eyebrow),
#admin .admin-users-toolbar span,
#admin .admin-user-main span,
#admin .admin-user-meta span,
#admin .admin-dashboard-group h4,
#admin .admin-dashboard-metric span,
#admin .admin-email-category h4,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small,
#admin .admin-form label,
#admin .admin-rules span,
#admin small {
  color: var(--admin-muted-ui);
}

#admin .admin-panel,
#admin #adminStatus.admin-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#admin .admin-dashboard-live-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  min-height: 0;
  width: 100%;
  max-width: 1840px;
  margin-inline: auto;
  padding: clamp(14px, 1.8vw, 20px);
  overflow: visible;
  border: 1px solid var(--admin-line-ui);
  border-radius: 24px;
  color: var(--admin-text-ui);
  background: var(--admin-shell-bg);
  box-shadow: var(--admin-shadow-ui);
}

#admin .admin-dashboard-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  max-height: none;
  min-width: 0;
  overflow: visible;
  padding: 16px;
  border: 1px solid var(--admin-line-ui);
  border-radius: 20px;
  color: var(--admin-text-ui);
  background: var(--admin-sidebar-bg);
}

#admin .admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--admin-text-ui);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

#admin .admin-sidebar-brand i {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--admin-accent-ui);
  box-shadow: 0 0 28px rgba(182, 255, 77, 0.55);
}

#admin .admin-sidebar-badge {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--admin-line-strong-ui);
  border-radius: 14px;
  color: #071006;
  background: var(--admin-accent-ui);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#admin .admin-module-rail {
  position: static;
  display: grid;
  gap: 8px;
  height: auto;
  max-height: none;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#admin .admin-module-rail button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--admin-line-ui);
  border-radius: 14px;
  color: var(--admin-text-ui);
  background: var(--admin-card-bg);
  text-align: left;
  box-shadow: none;
}

#admin .admin-module-rail button:hover,
#admin .admin-module-rail button:focus-visible {
  border-color: var(--admin-line-strong-ui);
  color: #071006;
  background: var(--admin-accent-ui);
  outline: none;
  box-shadow: none;
}

#admin .admin-module-rail span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin .admin-module-rail strong,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-dashboard-chip.notice b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 34px;
  min-height: 28px;
  padding-inline: 8px;
  border: 1px solid rgba(182, 255, 77, 0.7);
  border-radius: 999px;
  color: #071006;
  background: var(--admin-accent-ui);
  font-size: 12px;
  font-weight: 950;
}

#admin .admin-dashboard-main,
#admin .admin-module-stack,
#admin .admin-dashboard-section,
#admin .admin-users-panel,
#admin .admin-dashboard-section-body,
#admin .admin-users-list,
#admin .admin-dashboard-group,
#admin .admin-dashboard-metric,
#admin .admin-card,
#admin .admin-publishing-card,
#admin .admin-publishing-intro,
#admin .admin-auth-card,
#admin .admin-listing-edit-panel,
#admin .admin-order-detail-panel,
#admin .admin-seller-listings-panel,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-marketing-form {
  min-width: 0;
  max-width: 100%;
}

#admin .admin-dashboard-main {
  padding: 0;
}

#admin .admin-dashboard-hero,
#admin .admin-dashboard-section,
#admin .admin-users-panel,
#admin .admin-dashboard-metric,
#admin .admin-dashboard-group,
#admin .admin-email-category,
#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row,
#admin .admin-marketing-card,
#admin .admin-seller-listing-row,
#admin .admin-users-summary span,
#admin .admin-order-detail-grid span,
#admin .admin-premium-analytics-grid span,
#admin .admin-safety-detail-grid span,
#admin .admin-support-detail-grid span,
#admin .admin-support-message-preview,
#admin .admin-dashboard-chip,
#admin .admin-email-row,
#admin .admin-email-queue-item,
#admin .admin-publishing-card,
#admin .admin-publishing-intro,
#admin .admin-auth-card,
#admin .admin-listing-edit-panel,
#admin .admin-order-detail-panel,
#admin .admin-seller-listings-panel,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-marketing-form {
  border-color: var(--admin-line-ui);
  color: var(--admin-text-ui);
  background: var(--admin-card-bg);
  box-shadow: none;
}

#admin .admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
  margin: 0 0 18px;
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, var(--admin-accent-soft-ui), transparent 46%),
    var(--admin-card-bg);
}

#admin .admin-dashboard-hero h3 {
  max-width: 11ch;
  margin: 0;
  color: var(--admin-text-ui);
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

#admin .admin-dashboard-status-row,
#admin .admin-actions,
#admin .admin-actions.compact,
#admin .admin-user-actions,
#admin .admin-listing-actions,
#admin .admin-order-actions,
#admin .admin-premium-actions,
#admin .admin-safety-actions,
#admin .admin-support-actions,
#admin .admin-support-form-actions,
#admin .admin-seller-actions,
#admin .admin-cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

#admin .admin-dashboard-status-row span,
#admin .admin-dashboard-chip,
#admin .admin-user-status,
#admin .admin-pill,
#admin .account-row-meta {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

#admin .admin-dashboard-live {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid var(--admin-line-ui);
  border-radius: 18px;
  background: var(--admin-card-soft-bg);
}

#admin .admin-dashboard-live strong {
  color: var(--admin-accent-ui);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

#admin .admin-dashboard-section,
#admin .admin-users-panel {
  margin-bottom: 18px;
  padding: clamp(16px, 2vw, 22px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--admin-card-bg);
}

#admin .admin-dashboard-section-heading,
#admin .admin-users-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

#admin .admin-dashboard-section-heading h3,
#admin .admin-users-toolbar h4,
#admin .admin-user-main strong,
#admin .admin-dashboard-metric strong,
#admin .admin-users-summary strong,
#admin .admin-publishing-card h3,
#admin .admin-form h3 {
  color: var(--admin-text-ui);
  overflow-wrap: anywhere;
}

#admin .admin-dashboard-metrics,
#admin .admin-users-summary,
#admin .admin-order-detail-grid,
#admin .admin-premium-analytics-grid,
#admin .admin-safety-detail-grid,
#admin .admin-support-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

#admin .admin-dashboard-metric,
#admin .admin-dashboard-group,
#admin .admin-users-summary span {
  overflow: hidden;
  border-radius: 18px;
  background: var(--admin-card-soft-bg);
}

#admin .admin-dashboard-section-body,
#admin .admin-users-list {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

#admin .admin-users-toolbar,
#admin .admin-users-search,
#admin #admin-users-panel .admin-users-toolbar,
#admin #admin-users-panel .admin-users-search,
#admin .admin-seller-panel .admin-users-search,
#admin .admin-listing-panel .admin-users-search,
#admin .admin-order-panel .admin-users-search,
#admin .admin-premium-panel .admin-users-search,
#admin .admin-safety-panel .admin-users-search,
#admin .admin-support-panel .admin-users-search,
#admin .admin-marketing-panel .admin-users-search {
  min-width: 0;
  max-width: 100%;
}

#admin .admin-users-search,
#admin #admin-users-panel .admin-users-search,
#admin .admin-seller-panel .admin-users-search,
#admin .admin-listing-panel .admin-users-search,
#admin .admin-order-panel .admin-users-search,
#admin .admin-premium-panel .admin-users-search,
#admin .admin-safety-panel .admin-users-search,
#admin .admin-support-panel .admin-users-search,
#admin .admin-marketing-panel .admin-users-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, max-content);
  gap: 10px;
  align-items: center;
}

#admin .admin-users-search.compact-actions {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: stretch;
}

#admin input,
#admin select,
#admin textarea,
#admin .admin-users-search input,
#admin .admin-listing-edit-grid input,
#admin .admin-listing-edit-grid select,
#admin .admin-order-note-form textarea,
#admin .admin-form input,
#admin .admin-form select,
#admin .admin-form textarea {
  min-width: 0;
  max-width: 100%;
  border-color: var(--admin-line-strong-ui);
  color: var(--admin-text-ui);
  background: var(--admin-field-bg);
}

#admin input::placeholder,
#admin textarea::placeholder {
  color: var(--admin-soft-ui);
  opacity: 1;
}

#admin .admin-user-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-marketing-row,
#admin .admin-email-row,
#admin .admin-email-queue-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--admin-card-soft-bg);
}

#admin .admin-user-main,
#admin .admin-user-meta,
#admin .admin-listing-main,
#admin .admin-order-main,
#admin .admin-premium-main,
#admin .admin-safety-main,
#admin .admin-support-main,
#admin .admin-marketing-main {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#admin .admin-user-main strong,
#admin .admin-user-main span,
#admin .admin-user-meta span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin button,
#admin .primary-button,
#admin .secondary-button,
#admin .danger-button,
#admin .admin-action-chip,
#admin .admin-inline-button,
#admin .admin-user-row-button,
#admin .admin-seller-filter-row button,
#admin .admin-support-form-actions button,
#admin .admin-cleanup-actions button {
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  border-radius: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#admin .primary-button,
#admin .admin-action-chip.active,
#admin .admin-seller-filter-row button.active,
#admin .admin-user-avatar,
#admin .admin-user-status.active,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-pill,
#admin .account-row-meta {
  border-color: transparent;
  color: #071006;
  background: var(--admin-accent-ui);
  box-shadow: none;
  text-shadow: none;
}

#admin .secondary-button,
#admin .admin-inline-button,
#admin .admin-user-row-button,
#admin .admin-seller-filter-row button,
#admin .admin-support-form-actions button,
#admin .admin-cleanup-actions button {
  border: 1px solid var(--admin-line-strong-ui);
  color: var(--admin-text-ui);
  background: var(--admin-card-soft-bg);
  box-shadow: none;
}

#admin .danger-button,
#admin .admin-support-actions .danger-button {
  border: 1px solid rgba(159, 17, 17, 0.22);
  color: var(--admin-danger-ui);
  background: var(--admin-danger-bg-ui);
  box-shadow: none;
}

#admin .secondary-button:hover,
#admin .secondary-button:focus-visible,
#admin .admin-inline-button:hover,
#admin .admin-inline-button:focus-visible,
#admin .admin-user-row-button:hover,
#admin .admin-user-row-button:focus-visible,
#admin .admin-seller-filter-row button:hover,
#admin .admin-seller-filter-row button:focus-visible,
#admin .admin-support-form-actions button:hover,
#admin .admin-support-form-actions button:focus-visible,
#admin .admin-cleanup-actions button:hover,
#admin .admin-cleanup-actions button:focus-visible {
  border-color: var(--admin-line-strong-ui);
  color: #071006;
  background: var(--admin-accent-ui);
  outline: none;
  box-shadow: none;
}

#admin .admin-cleanup-panel,
#admin .admin-publishing-intro,
#admin .admin-publishing-card,
#admin .admin-legacy-control {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

@media (max-height: 820px) and (min-width: 1101px) {
  #admin .admin-dashboard-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1100px) {
  #admin.admin-band {
    padding: 12px;
  }

  #admin .admin-dashboard-live-shell {
    grid-template-columns: 1fr;
  }

  #admin .admin-dashboard-sidebar {
    position: relative;
    top: auto;
  }

  #admin .admin-module-rail {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }

  #admin .admin-dashboard-hero,
  #admin .admin-dashboard-section-heading,
  #admin .admin-users-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #admin.admin-band {
    padding: 8px;
  }

  #admin .admin-dashboard-live-shell,
  #admin .admin-dashboard-sidebar,
  #admin .admin-dashboard-hero,
  #admin .admin-dashboard-section,
  #admin .admin-users-panel {
    border-radius: 16px;
  }

  #admin .admin-sidebar-brand {
    font-size: 28px;
  }

  #admin .admin-module-rail,
  #admin .admin-dashboard-metrics,
  #admin .admin-users-summary,
  #admin .admin-users-search,
  #admin #admin-users-panel .admin-users-search,
  #admin .admin-seller-panel .admin-users-search,
  #admin .admin-listing-panel .admin-users-search,
  #admin .admin-order-panel .admin-users-search,
  #admin .admin-premium-panel .admin-users-search,
  #admin .admin-safety-panel .admin-users-search,
  #admin .admin-support-panel .admin-users-search,
  #admin .admin-marketing-panel .admin-users-search,
  #admin .admin-users-search.compact-actions {
    grid-template-columns: 1fr;
  }

  #admin .admin-dashboard-hero h3 {
    max-width: 100%;
    font-size: clamp(38px, 14vw, 58px);
  }

  #admin .admin-dashboard-live strong {
    font-size: 40px;
  }

  #admin .admin-actions,
  #admin .admin-actions.compact,
  #admin .admin-user-actions,
  #admin .admin-listing-actions,
  #admin .admin-order-actions,
  #admin .admin-premium-actions,
  #admin .admin-safety-actions,
  #admin .admin-support-actions,
  #admin .admin-support-form-actions,
  #admin .admin-seller-actions,
  #admin .admin-cleanup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #admin .admin-actions button,
  #admin .admin-actions .secondary-button,
  #admin .admin-actions .danger-button,
  #admin .admin-user-actions button,
  #admin .admin-user-row-button,
  #admin .admin-support-form-actions button,
  #admin .admin-cleanup-actions button {
    width: 100%;
  }
}

/* Admin dashboard live QA repair: final cascade layer. */
#admin .admin-dashboard-live-shell {
  align-items: start;
}

@media (min-width: 1101px) {
  #admin .admin-dashboard-sidebar {
    position: sticky !important;
    top: 88px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  #admin .admin-module-rail {
    gap: 6px;
  }

  #admin .admin-module-rail button {
    min-height: 38px;
    padding-block: 7px;
  }
}

#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-system-alert-row {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#admin .admin-listing-row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(150px, 0.7fr) minmax(88px, max-content) minmax(180px, 240px);
}

#admin .admin-order-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.85fr) minmax(88px, max-content) minmax(104px, max-content) minmax(180px, 240px);
}

#admin .admin-premium-row {
  grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 0.75fr) minmax(104px, max-content) minmax(180px, 240px);
}

#admin .admin-support-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.75fr) minmax(96px, max-content) minmax(88px, max-content) minmax(180px, 220px);
}

#admin .admin-system-alert-row {
  grid-template-columns: 52px minmax(0, 1fr) minmax(142px, 0.5fr) minmax(92px, max-content) minmax(150px, 190px);
}

#admin .admin-listing-actions,
#admin .admin-order-actions,
#admin .admin-premium-actions,
#admin .admin-safety-actions,
#admin .admin-support-actions {
  display: grid !important;
  grid-template-columns: 1fr;
  justify-self: stretch;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

#admin .admin-listing-actions .admin-user-row-button,
#admin .admin-order-actions .admin-user-row-button,
#admin .admin-premium-actions .admin-user-row-button,
#admin .admin-safety-actions .admin-user-row-button,
#admin .admin-support-actions .admin-user-row-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#admin .admin-user-row-button:disabled,
#admin .secondary-button:disabled,
#admin .danger-button:disabled,
#admin .admin-action-chip:disabled,
#admin .admin-inline-button:disabled,
#admin .admin-cleanup-actions button:disabled {
  opacity: 1;
  color: rgba(7, 9, 7, 0.62);
  border-color: rgba(7, 9, 7, 0.16);
  background: rgba(182, 255, 77, 0.1);
  cursor: not-allowed;
}

:root[data-theme="night"] #admin .admin-user-row-button:disabled,
:root[data-theme="night"] #admin .secondary-button:disabled,
:root[data-theme="night"] #admin .danger-button:disabled,
:root[data-theme="night"] #admin .admin-action-chip:disabled,
:root[data-theme="night"] #admin .admin-inline-button:disabled,
:root[data-theme="night"] #admin .admin-cleanup-actions button:disabled {
  color: rgba(247, 248, 243, 0.62);
  border-color: rgba(182, 255, 77, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

#admin .admin-email-row strong,
#admin .admin-email-row span,
#admin .admin-email-queue-item strong,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small,
#admin .admin-marketing-row strong,
#admin .admin-marketing-row span,
#admin .admin-marketing-card strong,
#admin .admin-marketing-card span,
#admin .admin-system-alert-details span,
#admin .admin-support-row > span:not(.admin-user-status),
#admin .admin-order-row > span:not(.admin-user-status) {
  color: var(--admin-muted-ui);
}

#admin .admin-email-row strong,
#admin .admin-email-queue-item strong,
#admin .admin-marketing-row strong,
#admin .admin-system-alert-row .admin-user-main strong {
  color: var(--admin-text-ui);
}

#admin .admin-user-status,
#admin .admin-pill,
#admin .account-row-meta {
  color: #071006;
  text-shadow: none;
}

#admin .admin-user-status.system-info,
#admin .admin-user-status.system-warning,
#admin .admin-user-status.system-critical,
#admin .admin-user-status.listing-removed,
#admin .admin-user-status.listing-flagged,
#admin .admin-user-status.listing-rejected,
#admin .admin-user-status.support-closed,
#admin .admin-user-status.premium-basic,
#admin .admin-user-status.premium-cancelled,
#admin .admin-user-status.premium-expired,
#admin .admin-user-status.premium-failed {
  color: var(--admin-text-ui);
}

:root[data-theme="night"] #admin .admin-user-status.system-info,
:root[data-theme="night"] #admin .admin-user-status.system-warning,
:root[data-theme="night"] #admin .admin-user-status.system-critical,
:root[data-theme="night"] #admin .admin-user-status.listing-removed,
:root[data-theme="night"] #admin .admin-user-status.listing-flagged,
:root[data-theme="night"] #admin .admin-user-status.listing-rejected,
:root[data-theme="night"] #admin .admin-user-status.support-closed,
:root[data-theme="night"] #admin .admin-user-status.premium-basic,
:root[data-theme="night"] #admin .admin-user-status.premium-cancelled,
:root[data-theme="night"] #admin .admin-user-status.premium-expired,
:root[data-theme="night"] #admin .admin-user-status.premium-failed {
  color: #f7f8f3;
}

@media (max-width: 1320px) {
  #admin .admin-listing-row,
  #admin .admin-order-row,
  #admin .admin-premium-row,
  #admin .admin-safety-row,
  #admin .admin-support-row,
  #admin .admin-system-alert-row {
    grid-template-columns: 1fr;
  }

  #admin .admin-listing-row img,
  #admin .admin-premium-row img {
    width: 64px;
    height: 64px;
  }
}

/* Admin dashboard light-mode contrast repair. Keep this at the end of the
   stylesheet so older hard-coded admin colors cannot win the cascade. */
#admin {
  --admin-panel: var(--admin-card-bg);
  --admin-panel-soft: var(--admin-card-soft-bg);
  --admin-line: var(--admin-line-ui);
  --admin-ink: var(--admin-text-ui);
  --admin-muted: var(--admin-muted-ui);
  --admin-neutral-bg: #f8faf3;
  --admin-neutral-line: #d7dfcf;
  --admin-neutral-ink: #2c3527;
  --admin-warning: #fff7d6;
  --admin-warning-line: #dfbd50;
  --admin-warning-ink: #4d3900;
  --admin-disabled-bg-ui: #f1f6eb;
  --admin-disabled-line-ui: #d8e4cd;
  --admin-disabled-ink-ui: #52604d;
}

:root[data-theme="night"] #admin {
  --admin-panel: var(--admin-card-bg);
  --admin-panel-soft: var(--admin-card-soft-bg);
  --admin-line: var(--admin-line-ui);
  --admin-ink: var(--admin-text-ui);
  --admin-muted: var(--admin-muted-ui);
  --admin-neutral-bg: rgba(255, 255, 255, 0.045);
  --admin-neutral-line: rgba(255, 255, 255, 0.14);
  --admin-neutral-ink: #f7f8f3;
  --admin-warning: rgba(255, 208, 93, 0.13);
  --admin-warning-line: rgba(255, 208, 93, 0.58);
  --admin-warning-ink: #ffe199;
  --admin-disabled-bg-ui: rgba(255, 255, 255, 0.045);
  --admin-disabled-line-ui: rgba(255, 255, 255, 0.14);
  --admin-disabled-ink-ui: rgba(247, 248, 243, 0.72);
}

#admin,
#admin.admin-band,
#admin .admin-dashboard-live-shell,
#admin .admin-dashboard-main {
  color: var(--admin-text-ui) !important;
  background: var(--admin-page-bg) !important;
}

#admin .admin-dashboard-sidebar {
  color: var(--admin-text-ui) !important;
  background: var(--admin-sidebar-bg) !important;
  border-color: var(--admin-line-ui) !important;
}

#admin .admin-dashboard-section,
#admin .admin-dashboard-hero,
#admin .admin-dashboard-panel,
#admin .admin-dashboard-card,
#admin .admin-users-panel,
#admin .admin-seller-panel,
#admin .admin-listing-panel,
#admin .admin-order-panel,
#admin .admin-premium-panel,
#admin .admin-safety-panel,
#admin .admin-support-panel,
#admin .admin-marketing-panel,
#admin .admin-role-panel,
#admin .admin-email-panel,
#admin .admin-official-panel,
#admin .admin-module-card,
#admin .admin-panel,
#admin .admin-cleanup-panel,
#admin .admin-publishing-card,
#admin .admin-listing-edit-panel,
#admin .admin-order-detail-panel,
#admin .admin-premium-analytics-panel,
#admin .admin-safety-detail-panel,
#admin .admin-support-detail-panel,
#admin .admin-modal,
#admin .admin-dropdown {
  color: var(--admin-text-ui) !important;
  background: var(--admin-card-bg) !important;
  border-color: var(--admin-line-ui) !important;
  box-shadow: var(--admin-shadow-ui);
}

#admin .admin-dashboard-group,
#admin .admin-stat-panel,
#admin .admin-action-panel,
#admin .admin-email-category,
#admin .admin-email-settings,
#admin .admin-publishing-intro,
#admin .admin-legacy-control,
#admin .admin-seller-action-group,
#admin .admin-seller-listings-panel,
#admin .admin-marketing-card-grid,
#admin .admin-marketing-list,
#admin .admin-email-queue,
#admin .admin-table-wrap,
#admin .admin-users-summary,
#admin .admin-cleanup-row,
#admin .admin-notification-row,
#admin .admin-notification-group {
  color: var(--admin-text-ui) !important;
  background: var(--admin-card-soft-bg) !important;
  border-color: var(--admin-line-ui) !important;
}

#admin .admin-user-row,
#admin .admin-seller-row,
#admin .admin-seller-listing-row,
#admin .admin-listing-row,
#admin .admin-order-row,
#admin .admin-premium-row,
#admin .admin-safety-row,
#admin .admin-support-row,
#admin .admin-system-alert-row,
#admin .admin-marketing-row,
#admin .admin-email-row,
#admin .admin-email-queue-item,
#admin .admin-payout-check,
#admin .admin-support-message-preview,
#admin .admin-report-row {
  color: var(--admin-text-ui) !important;
  background: var(--admin-card-bg) !important;
  border-color: var(--admin-line-ui) !important;
}

#admin .admin-actions,
#admin .admin-seller-actions,
#admin .admin-listing-actions,
#admin .admin-order-actions,
#admin .admin-premium-actions,
#admin .admin-safety-actions,
#admin .admin-support-actions,
#admin .admin-cleanup-actions,
#admin .admin-support-form-actions,
#admin .admin-user-actions {
  background: transparent !important;
  color: var(--admin-text-ui) !important;
}

#admin h1,
#admin h2,
#admin h3,
#admin h4,
#admin h5,
#admin h6,
#admin strong,
#admin label,
#admin th,
#admin .admin-dashboard-title,
#admin .admin-module-title,
#admin .admin-user-main strong,
#admin .admin-seller-listing-row strong,
#admin .admin-listing-row strong,
#admin .admin-email-row strong,
#admin .admin-email-queue-item strong,
#admin .admin-marketing-row strong,
#admin .admin-system-alert-row .admin-user-main strong {
  color: var(--admin-text-ui) !important;
}

#admin p,
#admin span,
#admin small,
#admin td,
#admin li,
#admin em,
#admin .admin-dashboard-copy,
#admin .admin-user-main span,
#admin .admin-user-meta,
#admin .admin-user-meta span,
#admin .admin-seller-listing-row span,
#admin .admin-listing-row span,
#admin .admin-email-row span,
#admin .admin-email-queue-item span,
#admin .admin-email-queue-item small,
#admin .admin-marketing-row span,
#admin .admin-system-alert-details span,
#admin .admin-support-row > span:not(.admin-user-status),
#admin .admin-order-row > span:not(.admin-user-status),
#admin .admin-seller-action-label {
  color: var(--admin-muted-ui) !important;
}

#admin input,
#admin select,
#admin textarea,
#admin .admin-users-search input,
#admin .admin-users-search select {
  color: var(--admin-text-ui) !important;
  background: var(--admin-field-bg) !important;
  border-color: var(--admin-line-strong-ui) !important;
}

#admin input::placeholder,
#admin textarea::placeholder {
  color: var(--admin-soft-ui) !important;
  opacity: 1;
}

#admin table,
#admin thead,
#admin tbody,
#admin tr,
#admin th,
#admin td {
  color: var(--admin-text-ui) !important;
  border-color: var(--admin-line-ui) !important;
}

#admin .secondary-button,
#admin .admin-user-row-button,
#admin .admin-inline-button,
#admin .admin-action-chip,
#admin .admin-module-rail button,
#admin .admin-seller-filter-row button,
#admin .admin-filter-row button,
#admin .admin-users-search button,
#admin .admin-cleanup-actions button,
#admin .admin-support-form-actions button,
#admin .admin-actions button {
  color: var(--admin-text-ui) !important;
  background: var(--admin-field-bg) !important;
  border-color: var(--admin-line-strong-ui) !important;
  text-shadow: none !important;
}

#admin .primary-button,
#admin .admin-action-chip.active,
#admin .admin-module-rail button.active,
#admin .admin-seller-filter-row button.active,
#admin .admin-filter-row button.active,
#admin .admin-dashboard-badge,
#admin .admin-user-avatar,
#admin .admin-user-status.active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-user-status.listing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.system-ok,
#admin .admin-pill.success,
#admin .account-row-meta {
  color: #071006 !important;
  background: var(--admin-accent-ui) !important;
  border-color: rgba(7, 16, 6, 0.18) !important;
}

#admin .danger-button,
#admin .admin-user-row-button.danger,
#admin .admin-user-status.suspended,
#admin .admin-user-status.seller-rejected,
#admin .admin-user-status.payout-inactive,
#admin .admin-user-status.listing-removed,
#admin .admin-user-status.listing-flagged,
#admin .admin-user-status.listing-rejected,
#admin .admin-user-status.support-closed,
#admin .admin-user-status.premium-cancelled,
#admin .admin-user-status.premium-expired,
#admin .admin-user-status.premium-failed {
  color: var(--admin-danger-ui) !important;
  background: var(--admin-danger-bg-ui) !important;
  border-color: rgba(159, 17, 17, 0.28) !important;
}

:root[data-theme="night"] #admin .danger-button,
:root[data-theme="night"] #admin .admin-user-row-button.danger,
:root[data-theme="night"] #admin .admin-user-status.suspended,
:root[data-theme="night"] #admin .admin-user-status.seller-rejected,
:root[data-theme="night"] #admin .admin-user-status.payout-inactive,
:root[data-theme="night"] #admin .admin-user-status.listing-removed,
:root[data-theme="night"] #admin .admin-user-status.listing-flagged,
:root[data-theme="night"] #admin .admin-user-status.listing-rejected,
:root[data-theme="night"] #admin .admin-user-status.support-closed,
:root[data-theme="night"] #admin .admin-user-status.premium-cancelled,
:root[data-theme="night"] #admin .admin-user-status.premium-expired,
:root[data-theme="night"] #admin .admin-user-status.premium-failed {
  color: #ffb8b8 !important;
  background: rgba(255, 91, 91, 0.12) !important;
  border-color: rgba(255, 91, 91, 0.32) !important;
}

#admin .admin-user-status.seller-pending,
#admin .admin-user-status.payout-warning,
#admin .admin-user-status.payout-unchecked,
#admin .admin-user-status.system-info,
#admin .admin-user-status.system-warning,
#admin .admin-user-status.system-critical,
#admin .admin-user-status.premium-basic,
#admin .admin-user-status:not(.active):not(.seller-approved):not(.payout-verified):not(.listing-active):not(.support-open):not(.premium-active):not(.system-ok):not(.suspended):not(.seller-rejected):not(.payout-inactive):not(.listing-removed):not(.listing-flagged):not(.listing-rejected):not(.support-closed):not(.premium-cancelled):not(.premium-expired):not(.premium-failed) {
  color: var(--admin-warning-ink) !important;
  background: var(--admin-warning) !important;
  border-color: var(--admin-warning-line) !important;
}

#admin .admin-seller-action-note,
#admin .admin-user-status,
#admin .admin-pill,
#admin .admin-dashboard-badge {
  opacity: 1 !important;
  text-shadow: none !important;
}

#admin button:disabled,
#admin .secondary-button:disabled,
#admin .danger-button:disabled,
#admin .admin-user-row-button:disabled,
#admin .admin-action-chip:disabled,
#admin .admin-inline-button:disabled,
#admin .admin-cleanup-actions button:disabled,
#admin [aria-disabled="true"] {
  opacity: 1 !important;
  color: var(--admin-disabled-ink-ui) !important;
  background: var(--admin-disabled-bg-ui) !important;
  border-color: var(--admin-disabled-line-ui) !important;
  cursor: not-allowed !important;
}

#admin button:disabled *,
#admin [aria-disabled="true"] * {
  color: inherit !important;
}

#admin img {
  border-color: var(--admin-line-ui) !important;
}

@media (max-width: 760px) {
  #admin .admin-dashboard-section,
  #admin .admin-dashboard-hero,
  #admin .admin-dashboard-panel {
    border-radius: 14px;
  }
}

/* Admin night-mode action contrast repair. */
:root[data-theme="night"] #admin {
  --admin-disabled-bg-ui: rgba(182, 255, 77, 0.12);
  --admin-disabled-line-ui: rgba(182, 255, 77, 0.48);
  --admin-disabled-ink-ui: rgba(247, 248, 243, 0.88);
}

:root[data-theme="night"] #admin .secondary-button,
:root[data-theme="night"] #admin .admin-user-row-button,
:root[data-theme="night"] #admin .admin-inline-button,
:root[data-theme="night"] #admin .admin-action-chip,
:root[data-theme="night"] #admin .admin-module-rail button,
:root[data-theme="night"] #admin .admin-seller-filter-row button,
:root[data-theme="night"] #admin .admin-filter-row button,
:root[data-theme="night"] #admin .admin-users-search button,
:root[data-theme="night"] #admin .admin-support-form-actions button,
:root[data-theme="night"] #admin .admin-actions button,
:root[data-theme="night"] #admin .admin-seller-actions button,
:root[data-theme="night"] #admin .admin-listing-actions button,
:root[data-theme="night"] #admin .admin-order-actions button,
:root[data-theme="night"] #admin .admin-premium-actions button,
:root[data-theme="night"] #admin .admin-safety-actions button,
:root[data-theme="night"] #admin .admin-support-actions button,
:root[data-theme="night"] #admin .admin-marketing-actions button,
:root[data-theme="night"] #admin .admin-dashboard-items.actions button {
  color: #f7f8f3 !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(182, 255, 77, 0.38) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

:root[data-theme="night"] #admin button * {
  color: inherit !important;
}

:root[data-theme="night"] #admin .primary-button,
:root[data-theme="night"] #admin .admin-action-chip.active,
:root[data-theme="night"] #admin .admin-module-rail button.active,
:root[data-theme="night"] #admin .admin-seller-filter-row button.active,
:root[data-theme="night"] #admin .admin-filter-row button.active {
  color: #071006 !important;
  background: var(--admin-accent-ui) !important;
  border-color: var(--admin-accent-ui) !important;
}

:root[data-theme="night"] #admin .danger-button,
:root[data-theme="night"] #admin .admin-user-row-button.danger {
  color: #ffb8b8 !important;
  background: rgba(255, 91, 91, 0.14) !important;
  border-color: rgba(255, 126, 126, 0.56) !important;
}

:root[data-theme="night"] #admin button:disabled,
:root[data-theme="night"] #admin .secondary-button:disabled,
:root[data-theme="night"] #admin .danger-button:disabled,
:root[data-theme="night"] #admin .admin-user-row-button:disabled,
:root[data-theme="night"] #admin .admin-action-chip:disabled,
:root[data-theme="night"] #admin .admin-inline-button:disabled,
:root[data-theme="night"] #admin [aria-disabled="true"] {
  color: var(--admin-disabled-ink-ui) !important;
  background: var(--admin-disabled-bg-ui) !important;
  border-color: var(--admin-disabled-line-ui) !important;
  opacity: 1 !important;
}

:root[data-theme="night"] #admin .danger-button:disabled,
:root[data-theme="night"] #admin .admin-user-row-button.danger:disabled {
  color: #ffc5c5 !important;
  background: rgba(255, 91, 91, 0.16) !important;
  border-color: rgba(255, 126, 126, 0.42) !important;
}

/* ==========================================
   HOMEPAGE HERO STYLING REFACTOR (MOCKUP ACCENTS)
   ========================================== */

.official-hero {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  align-items: stretch !important;
  min-height: 520px !important;
  padding: 0 !important;
  color: #ffffff !important;
  background: #000000 !important;
  border: 1px solid rgba(182, 255, 77, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.official-hero-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: clamp(32px, 5.5vw, 64px) clamp(24px, 4.5vw, 52px) !important;
}

.official-hero-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: clamp(14px, 2.5vw, 20px) !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
}

.official-hero-copy::before {
  display: none !important;
}

.official-hero-copy .eyebrow {
  color: #b6ff4d !important;
  font-size: clamp(13px, 1.8vw, 15px) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.official-hero-copy h1 {
  font-size: clamp(34px, 4.8vw, 56px) !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  color: #ffffff !important;
  margin: 0 !important;
  max-width: 15ch !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}

.official-hero-copy p.description {
  font-size: clamp(15px, 2.2vw, 17px) !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.74) !important;
  max-width: 44ch !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.official-hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  width: 100% !important;
  margin-top: clamp(12px, 2.5vw, 20px) !important;
}

.official-hero-actions .primary-button {
  background: #b6ff4d !important;
  color: #000000 !important;
  border: none !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  height: 52px !important;
  padding-inline: 32px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  min-width: 150px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.official-hero-actions .primary-button:hover {
  background: #c5ff6b !important;
  transform: translateY(-1px) !important;
}

.official-hero-actions .secondary-button {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  height: 52px !important;
  padding-inline: 32px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  min-width: 170px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.official-hero-actions .secondary-button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

.official-hero-features {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: clamp(16px, 3vw, 28px) !important;
  width: 100% !important;
  margin-top: clamp(28px, 4.5vw, 48px) !important;
  align-items: center !important;
}

.feature-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.feature-icon {
  width: 18px !important;
  height: 18px !important;
  color: #b6ff4d !important;
  stroke-width: 2.2px !important;
  flex-shrink: 0 !important;
}

.feature-text {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.official-hero-media {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #000000 !important;
}

.official-hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: right center !important;
  display: block !important;
}

@media (max-width: 1024px) {
  .official-hero {
    display: flex !important;
    flex-direction: column !important;
  }
  .official-hero-media {
    height: 380px !important;
  }
  .official-hero-features {
    gap: 16px 24px !important;
  }
}

/* Hide all category count badges in the marketplace UI */
.category-chips small,
.category-chips button small,
.market-category-top .category-chips small,
.market-mega-column button small,
.market-mega-head button small {
  display: none !important;
}

/* ==========================================
   ADMIN HIGH-CONTRAST NUMBERS/BADGES STYLING
   ========================================== */

#admin .admin-module-rail button strong,
#admin .admin-module-rail strong,
#admin .admin-dashboard-section-heading > strong,
#admin .admin-dashboard-chip.notice b,
#admin .admin-email-row strong,
#admin .admin-pill,
#admin .badge,
#admin .shipping-pill,
#admin .account-row-meta,
#admin .admin-user-status.active,
#admin .admin-user-status.seller-approved,
#admin .admin-user-status.payout-verified,
#admin .admin-user-status.premium-active,
#admin .admin-user-status.marketing-active,
#admin .admin-user-status.support-open,
#admin .admin-user-status.support-assigned,
#admin .admin-user-status.order-completed {
  color: #000000 !important;
}

:root[data-theme="night"] #admin .admin-module-rail button strong,
:root[data-theme="night"] #admin .admin-module-rail strong,
:root[data-theme="night"] #admin .admin-dashboard-section-heading > strong,
:root[data-theme="night"] #admin .admin-dashboard-chip.notice b,
:root[data-theme="night"] #admin .admin-email-row strong,
:root[data-theme="night"] #admin .admin-pill,
:root[data-theme="night"] #admin .badge,
:root[data-theme="night"] #admin .shipping-pill,
:root[data-theme="night"] #admin .account-row-meta,
:root[data-theme="night"] #admin .admin-user-status.active,
:root[data-theme="night"] #admin .admin-user-status.seller-approved,
:root[data-theme="night"] #admin .admin-user-status.payout-verified,
:root[data-theme="night"] #admin .admin-user-status.premium-active,
:root[data-theme="night"] #admin .admin-user-status.marketing-active,
:root[data-theme="night"] #admin .admin-user-status.support-open,
:root[data-theme="night"] #admin .admin-user-status.support-assigned,
:root[data-theme="night"] #admin .admin-user-status.order-completed {
  color: #000000 !important;
  background: var(--accent) !important;
}

/* ============================================================
   HANGAH LOADING DESIGN SYSTEM - P0
   ============================================================ */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hangah-region-local {
  transition: opacity 160ms ease;
}

.hangah-region-local.hangah-region-preserved {
  opacity: 0.78;
  pointer-events: none;
}

.hangah-region-progress {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  z-index: 12;
  display: flex;
  justify-content: center;
  width: min(100%, 520px);
  min-height: 12px;
  margin: 0 auto -12px;
  pointer-events: none;
}

.hangah-loading-status {
  width: 100%;
}

.hangah-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.hangah-skeleton-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hangah-skeleton-block,
.hangah-skeleton-line {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  background-color: var(--panel-soft);
  background: linear-gradient(100deg, var(--panel-soft) 22%, color-mix(in srgb, var(--line) 72%, var(--panel)) 42%, var(--panel-soft) 62%);
  background-size: 220% 100%;
  animation: hangah-skeleton-shimmer 1.35s ease-in-out infinite;
}

.hangah-skeleton-line {
  width: 100%;
  height: 12px;
}

.hangah-skeleton-line.tall {
  height: 22px;
}

.hangah-skeleton-line.width-25 { width: 25%; }
.hangah-skeleton-line.width-30 { width: 30%; }
.hangah-skeleton-line.width-35 { width: 35%; }
.hangah-skeleton-line.width-45 { width: 45%; }
.hangah-skeleton-line.width-55 { width: 55%; }
.hangah-skeleton-line.width-60 { width: 60%; }
.hangah-skeleton-line.width-65 { width: 65%; }
.hangah-skeleton-line.width-75 { width: 75%; }
.hangah-skeleton-line.width-80 { width: 80%; }
.hangah-skeleton-line.width-85 { width: 85%; }
.hangah-skeleton-line.width-90 { width: 90%; }

.hangah-skeleton-product-image {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.hangah-skeleton-button {
  width: 100%;
  height: 44px;
}

.hangah-skeleton-detail,
.hangah-skeleton-store {
  display: grid;
  gap: 18px;
  width: 100%;
}

.hangah-skeleton-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(18px, 4vw, 44px);
  width: 100%;
}

.hangah-skeleton-detail-image {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.hangah-skeleton-detail-copy,
.hangah-skeleton-store-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.hangah-skeleton-summary {
  width: 100%;
  height: 92px;
}

.hangah-skeleton-store-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hangah-skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.hangah-skeleton-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hangah-skeleton-metrics .hangah-skeleton-block {
  height: 72px;
}

.hangah-skeleton-profile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 92px;
}

.hangah-skeleton-profile > div {
  display: grid;
  gap: 10px;
}

.hangah-skeleton-conversations,
.hangah-skeleton-messages {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
}

.hangah-skeleton-conversation-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 8px;
}

.hangah-skeleton-conversation-row .hangah-skeleton-avatar {
  width: 48px;
  height: 48px;
}

.hangah-skeleton-conversation-row > div {
  display: grid;
  gap: 9px;
}

.hangah-skeleton-bubble {
  width: min(78%, 340px);
  height: 62px;
  border-radius: 8px;
}

.hangah-skeleton-bubble.short {
  width: min(54%, 230px);
  height: 44px;
}

.hangah-skeleton-bubble.outgoing {
  justify-self: end;
}

.hangah-image-shell {
  background-color: var(--panel-soft);
}

.hangah-image-shell.hangah-image-pending {
  background-color: var(--panel-soft);
  background-image: linear-gradient(100deg, var(--panel-soft) 22%, color-mix(in srgb, var(--line) 72%, var(--panel)) 42%, var(--panel-soft) 62%);
  background-size: 220% 100%;
  animation: hangah-skeleton-shimmer 1.35s ease-in-out infinite;
}

.hangah-image-shell.hangah-image-pending > img {
  opacity: 0;
}

.hangah-image-shell > img {
  transition: opacity 220ms ease;
}

.hangah-image-shell.hangah-image-ready {
  animation: none;
  background-image: none;
}

.hangah-image-shell.hangah-image-ready > img {
  opacity: 1;
}

.hangah-button-loading {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: wait;
}

.hangah-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-width: 100%;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  color: #ffffff;
  text-align: center;
  background: rgba(5, 7, 5, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hangah-loading-overlay[hidden] {
  display: none !important;
}

.hangah-loading-overlay.secure {
  background: rgba(5, 7, 5, 0.985);
}

.hangah-loading-overlay-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 360px);
}

.hangah-loading-overlay-panel img {
  width: min(210px, 58vw);
  height: 54px;
  object-fit: contain;
  margin-bottom: 10px;
}

.hangah-loading-overlay-panel strong {
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.15;
}

.hangah-loading-overlay-panel p {
  max-width: 32ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.55;
}

.hangah-loading-overlay-loader {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 32px;
  color: var(--accent);
}

.hangah-secure-note {
  padding-top: 12px;
  border-top: 1px solid rgba(182, 255, 77, 0.24);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

@keyframes hangah-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

@media (min-width: 768px) {
  .hangah-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hangah-skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .hangah-skeleton-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hangah-skeleton-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hangah-skeleton-store-hero {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 14px;
  }

  .hangah-skeleton-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hangah-region-progress {
    top: calc(env(safe-area-inset-top, 0px) + 66px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hangah-skeleton-block,
  .hangah-skeleton-line,
  .hangah-image-shell.hangah-image-pending {
    animation: none !important;
    background-position: 0 0 !important;
  }

  .hangah-image-shell > img,
  .hangah-region-local {
    transition: none !important;
  }

  .hangah-loading-overlay l-ring,
  .hangah-loading-overlay l-dot-pulse,
  .hangah-region-progress l-line-wobble,
  .hangah-button-loading l-ring {
    display: none !important;
  }

  .hangah-loading-overlay-loader::after,
  .hangah-button-loading::before {
    content: "Loading";
    color: currentColor;
    font-size: 12px;
    font-weight: 700;
  }
}

/* Notification center */
.nav-notification-badge,
.account-row-meta#accountNotificationsBadge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #071006;
  background: var(--accent);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.nav-notification-badge[hidden],
.account-row-meta#accountNotificationsBadge[hidden] {
  display: none;
}

.nav-dropdown button:has(.nav-notification-badge) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notifications-band {
  min-height: calc(100dvh - 78px);
  padding: 28px clamp(16px, 4vw, 48px) 72px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.notifications-shell {
  display: grid;
  gap: 22px;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.notifications-heading,
.notification-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notifications-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.notifications-heading h2,
.notification-section-heading h3,
.notification-section-heading h5 {
  margin: 0;
  color: var(--ink);
}

.notifications-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.notifications-heading p,
.notification-section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.notifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.notification-center-panel,
.notification-preferences-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(15, 15, 15, 0.06);
}

.notification-section-heading {
  min-height: 42px;
  margin-bottom: 12px;
}

.notification-section-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.notification-list {
  display: grid;
}

.notification-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.notification-row:first-child {
  border-top: 0;
}

.notification-row.is-unread {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.notification-open {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 16px 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.notification-open:hover,
.notification-open:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.notification-row-marker {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.notification-row.is-unread .notification-row-marker {
  border-color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.notification-row-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.notification-row-copy > b,
.notification-row-copy > span {
  overflow-wrap: anywhere;
}

.notification-row-copy > b {
  font-size: 15px;
  line-height: 1.3;
}

.notification-row-copy > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.notification-row-meta strong {
  color: var(--accent-dark);
  font-size: 10px;
  text-transform: uppercase;
}

.notification-mark-read {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font-size: 11px;
  font-weight: 850;
}

.notification-mark-read:hover,
.notification-mark-read:focus-visible {
  border-color: var(--accent-dark);
  background: var(--mint);
}

.notification-load-more {
  width: 100%;
  margin-top: 12px;
}

.notification-empty-state {
  min-height: 270px;
  padding: 28px;
  gap: 10px;
}

.notification-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.notification-empty-state p {
  max-width: 42ch;
  margin: 0;
}

.notification-preferences-panel {
  display: grid;
  gap: 0;
}

.notification-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.notification-preference-row > span {
  display: grid;
  gap: 4px;
}

.notification-preference-row strong {
  color: var(--ink);
  font-size: 14px;
}

.notification-preference-row small {
  color: var(--muted);
  line-height: 1.35;
}

.notification-preference-row input[type="checkbox"] {
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  appearance: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.notification-preference-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 160ms ease, background-color 160ms ease;
}

.notification-preference-row input[type="checkbox"]:checked {
  border-color: var(--accent-dark);
  background: var(--accent);
}

.notification-preference-row input[type="checkbox"]:checked::after {
  background: #071006;
  transform: translateX(20px);
}

.notification-preference-row input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}

.notification-preference-row input[type="checkbox"]:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.notification-preference-row.is-required {
  cursor: default;
}

.notification-preferences-panel > .primary-button {
  width: 100%;
  margin-top: 14px;
}

.notification-preferences-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.notification-skeleton-list,
.notification-skeleton-copy {
  display: grid;
}

.notification-skeleton-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 12px 8px;
  border-top: 1px solid var(--line);
}

.notification-skeleton-row:first-child {
  border-top: 0;
}

.notification-skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.notification-skeleton-copy {
  gap: 8px;
}

.admin-notification-campaigns {
  display: grid;
  gap: 14px;
}

.admin-notification-preview {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid #304420;
  border-radius: 8px;
  background: #0f160d;
}

.admin-notification-preview > span,
.admin-notification-preview > small {
  color: #a9b3a3;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-notification-preview > strong {
  color: var(--accent);
  font-size: 18px;
}

.admin-notification-preview > p {
  margin: 0;
  color: #f7f7f2;
  line-height: 1.5;
}

.admin-notification-preview > b {
  min-height: 18px;
  color: var(--accent);
  font-size: 12px;
}

.admin-notification-history {
  display: grid;
  gap: 10px;
}

#admin .admin-notification-history .notification-section-heading h5 {
  color: #f7f7f2;
}

#admin .admin-notification-history .notification-section-heading p {
  color: #a9b3a3;
}

.admin-notification-history-row {
  grid-template-columns: minmax(220px, 1.1fr) minmax(230px, 0.9fr) auto;
}

@media (max-width: 900px) {
  .notifications-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-preferences-panel {
    order: -1;
  }

  .admin-notification-history-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-notification-history-row .admin-user-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .notifications-band {
    padding: 18px 12px 92px;
  }

  .notifications-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notifications-heading .secondary-button {
    width: 100%;
  }

  .notification-center-panel,
  .notification-preferences-panel {
    padding: 14px;
  }

  .notification-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .notification-open {
    padding-inline: 4px;
  }

  .notification-mark-read {
    width: max-content;
    margin: 0 4px 12px 24px;
  }

  .notification-row-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-notification-history-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-notification-history-row .admin-user-meta,
  .admin-notification-history-row .admin-user-status {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-preference-row input[type="checkbox"],
  .notification-preference-row input[type="checkbox"]::after {
    transition: none;
  }
}

/* ============================================================
   OFFICIAL MARKETPLACE CATALOG - DESKTOP REFERENCE DESIGN
   ============================================================ */

body[data-active-page="marketplace"] {
  background: #ffffff;
}

body[data-active-page="marketplace"] main {
  padding-top: 0;
}

.market-catalog-page {
  width: 100%;
  margin: 0;
  padding: 18px clamp(20px, 2.5vw, 38px) 64px;
  color: #111111;
  background: #ffffff;
}

.market-catalog-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 32px;
  width: min(100%, 1500px);
  margin-inline: auto;
}

.market-filter-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  align-self: start;
  gap: 10px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 18px 0;
  scrollbar-width: thin;
}

.market-filter-sidebar-heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
}

.market-filter-sidebar-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.market-filter-sidebar-heading button,
.market-reset-filters {
  padding: 4px;
  border: 0;
  color: #5f8f12;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}

.market-filter-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid #e4e4df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 25, 19, 0.035);
}

.market-filter-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #181818;
  font-size: 14px;
}

.market-filter-icon {
  width: 22px;
  height: 22px;
  color: #63970e;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-budget-summary {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

.market-filter-card input[type="range"] {
  width: 100%;
  accent-color: #79b91a;
}

.market-filter-card .range-row {
  color: #303030;
  font-size: 11px;
}

.market-filter-card .check-row,
.market-radio-row {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 9px;
  color: #2e2e2e;
  font-size: 12px;
  font-weight: 650;
}

.market-filter-card input[type="checkbox"],
.market-filter-card input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #79b91a;
}

.market-radio-row small {
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #5a7e18;
  background: #f1fbdc;
  font-size: 9px;
  font-weight: 800;
}

.market-select-card select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #deded9;
  border-radius: 6px;
  color: #222222;
  background: #ffffff;
  font-size: 12px;
}

.market-apply-filters {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #101010;
  font-size: 13px;
  font-weight: 850;
}

.market-reset-filters {
  min-height: 34px;
}

.market-catalog-content {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.market-catalog-heading {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-catalog-heading h1 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1;
}

.market-catalog-heading p {
  margin: 0;
  color: #5e5e5e;
  font-size: 14px;
}

.market-new-deals {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #526f1e;
  background: #f3f9e6;
  font-size: 13px;
  font-weight: 850;
}

.market-new-deals span {
  font-size: 19px;
}

.market-catalog-page .market-category-top {
  gap: 11px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.market-catalog-page .market-category-nav {
  gap: 34px;
  min-height: 48px;
  align-items: stretch;
  border-bottom: 1px solid #e2e2dd;
}

.market-catalog-page .market-category-nav button {
  position: relative;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: #171717;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.market-catalog-page .market-category-nav button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.market-catalog-page .market-category-nav button:hover,
.market-catalog-page .market-category-nav button:focus-visible,
.market-catalog-page .market-category-nav button.active,
.market-catalog-page .market-category-nav button.open {
  color: #5f920f;
  background: transparent;
}

.market-catalog-page .market-category-nav button.active::after {
  background: #77b71a;
}

.market-catalog-page .category-chips {
  gap: 10px;
}

.market-catalog-page .market-category-top .category-chips button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #deded9;
  border-radius: 7px;
  color: #222222;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.market-catalog-page .market-category-top .category-chips button:hover,
.market-catalog-page .market-category-top .category-chips button:focus-visible {
  border-color: #8cbe3d;
}

.market-catalog-page .market-category-top .category-chips button.active {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

.market-confidence-strip,
.market-service-strip {
  display: grid;
  border: 1px solid #e3e3de;
  border-radius: 8px;
  background: #fbfbfa;
}

.market-confidence-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-confidence-strip div,
.market-service-strip div {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 3px;
  padding: 15px 18px 15px 58px;
}

.market-confidence-strip div:not(:last-child),
.market-service-strip div:not(:last-child) {
  border-right: 1px solid #e5e5e0;
}

.market-confidence-strip svg,
.market-service-strip svg {
  position: absolute;
  left: 20px;
  width: 27px;
  height: 27px;
  color: #618d17;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.market-confidence-strip strong,
.market-service-strip strong {
  font-size: 12px;
  line-height: 1.2;
}

.market-confidence-strip span,
.market-service-strip span {
  overflow: hidden;
  color: #5d5d5d;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-catalog-page .catalog-toolbar.compact {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  background: transparent;
}

.market-result-count {
  margin: 0;
  color: #272727;
  font-size: 13px;
  font-weight: 650;
}

.market-toolbar-actions,
.market-view-switcher,
.market-catalog-page .sort-field {
  display: flex;
  align-items: center;
}

.market-toolbar-actions {
  gap: 10px;
}

.market-catalog-page .sort-field {
  flex-direction: row;
  gap: 8px;
}

.market-catalog-page .sort-field span {
  color: #484848;
  font-size: 12px;
  font-weight: 650;
}

.market-catalog-page .sort-field select {
  min-width: 132px;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #deded9;
  border-radius: 7px;
  color: #171717;
  background: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.market-view-switcher {
  gap: 6px;
}

.market-view-switcher button,
.market-mobile-filter-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #deded9;
  border-radius: 7px;
  color: #171717;
  background: #ffffff;
  font-size: 17px;
}

.market-view-switcher button.active {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

.market-mobile-filter-button {
  display: none;
  width: auto;
  padding-inline: 13px;
  font-size: 12px;
  font-weight: 800;
}

.market-catalog-page #listingGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.market-catalog-page .market-listing-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e0dc;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  transform: none;
}

.market-catalog-page .market-listing-card:hover,
.market-catalog-page .market-listing-card:focus-within {
  border-color: #a4c96b;
  box-shadow: 0 13px 30px rgba(21, 24, 18, 0.09);
  transform: translateY(-2px);
}

.market-card-media {
  position: relative;
  min-width: 0;
}

.market-catalog-page .market-listing-card .listing-image {
  aspect-ratio: 1 / 1;
  background: #f0f0ec;
}

.market-catalog-page .market-listing-card .listing-image img {
  object-fit: cover;
}

.market-catalog-page .market-listing-card .badge {
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 5px;
  color: #17200f;
  background: #b6ff4d;
  font-size: 10px;
}

.market-card-wishlist {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
}

.market-card-wishlist .save-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(16, 16, 16, 0.42);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.market-card-wishlist .save-icon-button.active {
  border-color: #b6ff4d;
  color: #111111;
  background: #b6ff4d;
}

.market-card-wishlist svg {
  width: 19px;
  height: 19px;
}

.market-card-media .sold-out-badge {
  right: auto;
  left: 10px;
}

.market-catalog-page .market-listing-card .listing-body {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 7px;
  min-height: 0;
  padding: 12px 12px 13px;
}

.market-catalog-page .market-listing-card .listing-info {
  display: block;
  min-height: 0;
  overflow: visible;
}

.market-catalog-page .market-listing-card .listing-title {
  min-height: 36px;
  font-size: 14px;
  line-height: 1.3;
}

.market-catalog-page .market-listing-card .title-button {
  font-weight: 850;
}

.market-card-seller {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #4d4d4d;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-card-seller b {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #4c9b20;
  font-size: 9px;
}

.market-card-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #707070;
  font-size: 10px;
}

.market-card-meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-catalog-page .market-listing-card .rating-compact {
  gap: 4px;
  color: #6a6a6a;
  font-size: 10px;
}

.market-catalog-page .market-listing-card .rating-stars {
  color: #e1b521;
}

.market-catalog-page .market-listing-card .price-line {
  min-height: 28px;
  flex-basis: auto;
}

.market-catalog-page .market-listing-card .price-line strong {
  color: #111111;
  font-size: 17px;
}

.market-catalog-page .market-listing-card .listing-chip-row {
  flex-wrap: nowrap;
  min-height: 24px;
  gap: 5px;
}

.market-catalog-page .market-listing-card .listing-chip-row span {
  min-height: 23px;
  padding: 0 7px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  color: #4c4c4c;
  background: #f5f5f2;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-catalog-page #listingGrid[data-view="list"] {
  grid-template-columns: 1fr;
}

.market-catalog-page #listingGrid[data-view="list"] .market-listing-card {
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-rows: 1fr;
}

.market-catalog-page #listingGrid[data-view="list"] .market-card-media,
.market-catalog-page #listingGrid[data-view="list"] .listing-image {
  height: 100%;
  min-height: 170px;
}

.market-catalog-page #listingGrid[data-view="list"] .market-listing-card .listing-body {
  align-content: center;
  padding: 18px 22px;
}

.market-catalog-page #listingGrid[data-view="list"] .market-listing-card .listing-title {
  min-height: 0;
  font-size: 18px;
}

.market-deal-callout {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px 13px 70px;
  border: 1px solid #e4e4df;
  border-radius: 8px;
  background: #fbfbfa;
}

.market-deal-callout div {
  position: relative;
  display: grid;
  gap: 3px;
}

.market-deal-callout div::before {
  position: absolute;
  left: -48px;
  top: 1px;
  color: #659617;
  font-size: 30px;
  font-weight: 900;
  content: "%";
}

.market-deal-callout strong {
  font-size: 13px;
}

.market-deal-callout span {
  color: #616161;
  font-size: 11px;
}

.market-deal-callout button {
  min-width: 162px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #111111;
  font-size: 12px;
  font-weight: 800;
}

.market-catalog-page .market-section {
  padding: 18px;
  border: 1px solid #e4e4df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.market-catalog-page .marketplace-store-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-catalog-page .market-store-card {
  min-height: 112px;
  border-radius: 8px;
}

.market-service-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

:root[data-theme="night"] .market-catalog-page,
:root[data-theme="night"] body[data-active-page="marketplace"] {
  color: #f7f7f2;
  background: #0b0d0a;
}

:root[data-theme="night"] .market-filter-card,
:root[data-theme="night"] .market-select-card select,
:root[data-theme="night"] .market-catalog-page .market-category-top .category-chips button,
:root[data-theme="night"] .market-catalog-page .sort-field select,
:root[data-theme="night"] .market-view-switcher button,
:root[data-theme="night"] .market-mobile-filter-button,
:root[data-theme="night"] .market-catalog-page .market-listing-card,
:root[data-theme="night"] .market-catalog-page .market-section {
  border-color: #2d3827;
  color: #f7f7f2;
  background: #11160f;
}

:root[data-theme="night"] .market-confidence-strip,
:root[data-theme="night"] .market-service-strip,
:root[data-theme="night"] .market-deal-callout {
  border-color: #2d3827;
  color: #f7f7f2;
  background: #10130f;
}

:root[data-theme="night"] .market-catalog-heading p,
:root[data-theme="night"] .market-result-count,
:root[data-theme="night"] .market-catalog-page .sort-field span,
:root[data-theme="night"] .market-card-seller,
:root[data-theme="night"] .market-card-meta,
:root[data-theme="night"] .market-confidence-strip span,
:root[data-theme="night"] .market-service-strip span,
:root[data-theme="night"] .market-deal-callout span {
  color: #bdc2b8;
}

:root[data-theme="night"] .market-catalog-page .market-category-nav button {
  color: #f7f7f2;
}

:root[data-theme="night"] .market-catalog-page .market-listing-card .price-line strong {
  color: #f7f7f2;
}

@media (min-width: 981px) {
  body[data-active-page="marketplace"] .app-header {
    grid-template-columns: 180px minmax(300px, 570px) minmax(0, 1fr);
    gap: 22px;
    padding: 8px clamp(22px, 2.8vw, 44px);
    border-color: #202020;
    background: #0c0c0c;
    backdrop-filter: none;
  }

  body[data-active-page="marketplace"] .brand {
    width: 176px;
    height: 54px;
    padding: 6px 8px;
    border: 0;
  }

  body[data-active-page="marketplace"] .search-wrap {
    border-color: #d7d7d2;
    color: #1a1a1a;
    background: #ffffff;
  }

  body[data-active-page="marketplace"] .header-actions .text-link,
  body[data-active-page="marketplace"] .theme-toggle {
    color: #ffffff;
  }

  body[data-active-page="marketplace"] .header-actions .text-link.active {
    color: #b6ff4d;
  }

  body[data-active-page="marketplace"] .header-actions .text-link.active::after {
    background: #b6ff4d;
  }

  body[data-active-page="marketplace"] .nav-auth-login {
    border-color: #3d3d3d;
    color: #ffffff;
    background: #171717;
  }
}

@media (max-width: 1220px) {
  .market-catalog-layout {
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 22px;
  }

  .market-catalog-page #listingGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-catalog-page .marketplace-store-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-catalog-page {
    padding: 18px 16px 92px;
  }

  .market-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-filter-sidebar {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 72px);
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    left: 12px;
    z-index: 40;
    display: grid;
    max-height: none;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid #deded9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: translateY(calc(100% + 100px));
    transition: transform 180ms ease;
  }

  .market-filter-sidebar.open {
    transform: translateY(0);
  }

  .market-mobile-filter-button {
    display: inline-grid;
  }

  .market-confidence-strip {
    grid-template-columns: 1fr;
  }

  .market-confidence-strip div:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid #e5e5e0;
  }

  .market-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-service-strip div:nth-child(2) {
    border-right: 0;
  }

  .market-service-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e5e0;
  }
}

@media (max-width: 680px) {
  .market-catalog-heading {
    min-height: 0;
    align-items: flex-start;
  }

  .market-catalog-heading h1 {
    font-size: 28px;
  }

  .market-new-deals {
    min-height: 38px;
    padding-inline: 12px;
  }

  .market-catalog-page .market-category-nav {
    gap: 18px;
  }

  .market-catalog-page .catalog-toolbar.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-toolbar-actions {
    width: 100%;
  }

  .market-catalog-page .sort-field {
    flex: 1 1 auto;
  }

  .market-catalog-page .sort-field select {
    width: 100%;
    min-width: 0;
  }

  .market-catalog-page #listingGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .market-catalog-page .market-listing-card .listing-body {
    gap: 6px;
    padding: 9px;
  }

  .market-catalog-page .market-listing-card .listing-title {
    min-height: 34px;
    font-size: 12px;
  }

  .market-catalog-page .market-listing-card .price-line strong {
    font-size: 15px;
  }

  .market-catalog-page .market-listing-card .listing-chip-row span:nth-child(3) {
    display: none;
  }

  .market-catalog-page #listingGrid[data-view="list"] {
    grid-template-columns: 1fr;
  }

  .market-catalog-page #listingGrid[data-view="list"] .market-listing-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .market-catalog-page #listingGrid[data-view="list"] .market-card-media,
  .market-catalog-page #listingGrid[data-view="list"] .listing-image {
    min-height: 132px;
  }

  .market-deal-callout {
    align-items: stretch;
    flex-direction: column;
    padding: 15px 15px 15px 62px;
  }

  .market-deal-callout button {
    width: 100%;
    min-width: 0;
  }

  .market-catalog-page .marketplace-store-strip,
  .market-service-strip {
    grid-template-columns: 1fr;
  }

  .market-service-strip div {
    border-right: 0 !important;
    border-bottom: 1px solid #e5e5e0;
  }

  .market-service-strip div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-filter-sidebar,
  .market-catalog-page .market-listing-card,
  .market-catalog-page .market-listing-card .listing-image img {
    transition: none;
  }
}

/* Marketplace desktop header and seller stores: reference-aligned containment. */
@media (min-width: 1181px) {
  body[data-active-page="marketplace"] .app-header {
    grid-template-columns: minmax(168px, 196px) minmax(320px, 1fr) auto;
    gap: clamp(14px, 1.4vw, 24px);
    min-height: 72px;
    padding: 9px clamp(20px, 2.4vw, 40px);
  }

  body[data-active-page="marketplace"] .brand {
    width: 100%;
    height: 52px;
    padding: 5px 8px;
  }

  body[data-active-page="marketplace"] .search-wrap {
    width: 100%;
    max-width: 720px;
    justify-self: stretch;
  }

  body[data-active-page="marketplace"] .search-wrap input {
    height: 46px;
  }

  body[data-active-page="marketplace"] .header-actions {
    min-width: 0;
    gap: 3px;
  }

  body[data-active-page="marketplace"] .header-actions .text-link {
    padding: 10px 11px;
    font-size: 13px;
  }

  body[data-active-page="marketplace"] .nav-auth-actions {
    gap: 6px;
  }

  body[data-active-page="marketplace"] .nav-auth-button {
    min-height: 42px;
    padding-inline: 14px;
  }
}

.market-catalog-page .marketplace-store-strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.market-catalog-page .market-store-card {
  width: 100%;
  min-width: 0;
  min-height: 138px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 20px;
}

.market-catalog-page .market-store-avatar-wrap {
  width: 72px;
  height: 72px;
}

.market-catalog-page .market-store-card .profile-avatar {
  width: 66px;
  height: 66px;
}

.market-catalog-page .market-store-body {
  gap: 14px;
}

.market-catalog-page .market-store-topline {
  flex-wrap: nowrap;
  gap: 12px;
}

.market-catalog-page .market-store-title {
  flex: 1 1 auto;
}

.market-catalog-page .market-store-card strong {
  font-size: clamp(18px, 1.35vw, 22px);
}

.market-catalog-page .market-store-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-catalog-page .market-store-topline em {
  flex: 0 0 auto;
}

.market-catalog-page .market-store-stats {
  gap: 10px;
}

.market-catalog-page .market-store-stat {
  min-height: 54px;
  padding: 9px 11px;
  border-radius: 8px;
}

.market-catalog-page .market-store-cta {
  min-width: 104px;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 8px;
}

@media (max-width: 1220px) and (min-width: 641px) {
  .market-catalog-page .marketplace-store-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  }

  .market-catalog-page .market-store-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .market-catalog-page .market-store-avatar-wrap {
    width: 64px;
    height: 64px;
  }

  .market-catalog-page .market-store-card .profile-avatar {
    width: 58px;
    height: 58px;
  }

  .market-catalog-page .market-store-cta {
    grid-column: 2;
    width: max-content;
    min-width: 0;
    min-height: 38px;
  }
}

@media (max-width: 640px) {
  .market-catalog-page .market-store-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .market-catalog-page .market-store-body {
    display: contents;
  }

  .market-catalog-page .market-store-topline {
    grid-column: 2;
    align-self: center;
    flex-wrap: wrap;
  }

  .market-catalog-page .market-store-card small {
    white-space: normal;
  }

  .market-catalog-page .market-store-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .market-catalog-page .market-store-stat {
    padding-inline: 8px;
  }

  .market-catalog-page .market-store-stat b {
    font-size: 14px;
  }

  .market-catalog-page .market-store-stat small {
    font-size: 9px;
  }

  .market-catalog-page .market-store-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }
}

/* Sell workspace: four-step listing flow based on the approved desktop reference. */
body[data-active-page="sell"] {
  background: #f7f8f5;
}

body[data-active-page="sell"] .app-header {
  border-color: #1f211f;
  color: #fff;
  background: #090a0a;
}

@media (min-width: 1101px) {
  body[data-active-page="profile"] main,
  body[data-active-page="sell"] main {
    padding-top: 0;
  }

  body[data-active-page="profile"] .app-header,
  body[data-active-page="sell"] .app-header {
    grid-template-columns: 240px minmax(220px, 360px) minmax(0, 1fr);
    padding: 8px clamp(16px, 2vw, 36px);
    border-color: #1f211f;
    color: #fff;
    background: #090a0a;
  }

  body[data-active-page="profile"] .app-header .brand,
  body[data-active-page="sell"] .app-header .brand {
    width: 240px;
    height: 52px;
    padding: 6px 12px;
  }

  body[data-active-page="profile"] .app-header .text-link,
  body[data-active-page="sell"] .app-header .text-link {
    color: #fff;
  }

  body[data-active-page="profile"] .app-header .search-wrap,
  body[data-active-page="sell"] .app-header .search-wrap {
    background: #fff;
  }

  body[data-active-page="profile"] .app-header .search-wrap input,
  body[data-active-page="sell"] .app-header .search-wrap input {
    color: #171a17;
  }
}

body[data-active-page="sell"] .app-header .search-wrap {
  border-color: #2f322f;
  background: #fff;
}

body[data-active-page="sell"] .app-header .text-link {
  color: #fff;
}

body[data-active-page="sell"] .app-header .text-link:hover,
body[data-active-page="sell"] .app-header .text-link:focus-visible,
body[data-active-page="sell"] .app-header .text-link.active {
  color: var(--accent);
  background: rgba(182, 255, 77, 0.08);
}

.sell-band {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 88px);
  padding: 0;
  border: 0;
  background: #f7f8f5;
}

.sell-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  height: calc(100vh - 88px);
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 14px;
  color: #fff;
  background: #0a0c0b;
}

.sell-sidebar nav {
  display: grid;
  gap: 6px;
}

.sell-sidebar-label {
  margin: 0 16px 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sell-sidebar button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.sell-sidebar button:hover,
.sell-sidebar button:focus-visible,
.sell-sidebar button.active {
  color: var(--accent);
  background: rgba(182, 255, 77, 0.12);
}

.sell-sidebar-secondary {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sell-workspace {
  display: grid;
  gap: 20px;
  width: min(100%, 1480px);
  padding: 28px clamp(24px, 3vw, 52px) 48px;
}

.sell-workspace-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.sell-workspace-header h2,
.sell-workspace-header p {
  margin: 0;
}

.sell-workspace-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0;
  line-height: 1.05;
}

.sell-workspace-header > div > p:last-child {
  margin-top: 8px;
  color: #5f645e;
  font-size: 14px;
  font-weight: 650;
}

.sell-save-draft {
  flex: 0 0 auto;
  width: max-content;
  min-height: 42px;
  background: #fff;
}

.sell-workspace-header > div {
  min-width: 0;
}

.sell-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sell-form .seller-pill {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #dce2d5;
  border-radius: 8px;
  color: #3a4435;
  background: #f0f7e8;
  font-size: 12px;
  font-weight: 850;
}

.sell-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sell-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-height: 68px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  color: #171a17;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.sell-step > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #dfe2dd;
  border-radius: 6px;
  color: #474d46;
  background: #fafbf9;
  font-size: 12px;
  font-weight: 900;
}

.sell-step strong,
.sell-step small {
  display: block;
  min-width: 0;
}

.sell-step strong {
  font-size: 13px;
  line-height: 1.25;
}

.sell-step small {
  margin-top: 3px;
  color: #757a74;
  font-size: 10px;
  font-weight: 650;
}

.sell-step.is-active {
  border-color: #9ecf4c;
  background: #f4f9e9;
  box-shadow: inset 0 0 0 1px rgba(158, 207, 76, 0.12);
}

.sell-step.is-active > span,
.sell-step.is-complete > span {
  border-color: #75a918;
  color: #fff;
  background: #75a918;
}

.sell-step.is-complete > span {
  font-size: 0;
}

.sell-step.is-complete > span::after {
  content: "✓";
  font-size: 15px;
}

.sell-builder {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sell-listing-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fff;
}

.sell-preview-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: #737873;
  background: #111514;
  font-size: 12px;
  font-weight: 750;
}

.sell-preview-photo img,
.sell-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101312;
}

.sell-listing-preview > strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-listing-preview > span {
  color: #555b54;
  font-size: 12px;
}

.sell-listing-preview button {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #679810;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.sell-step-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sell-form-section {
  display: grid;
  gap: 18px;
  min-height: 278px;
  padding: 18px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fff;
}

.sell-form-section[hidden] {
  display: none;
}

.sell-section-heading {
  grid-template-columns: 38px minmax(0, 1fr);
}

.sell-section-heading > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
  color: #31420f;
  background: #eff8d9;
  font-size: 13px;
  font-weight: 950;
}

.sell-section-heading h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.sell-section-heading p {
  margin-top: 3px;
  color: #686e67;
  font-size: 12px;
  font-weight: 650;
}

.sell-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.sell-form label {
  color: #272b27;
  font-size: 12px;
  font-weight: 800;
}

.sell-form label > small {
  display: inline;
  color: #b43b35;
}

.sell-form input,
.sell-form select {
  min-height: 44px;
  border-color: #dfe2dd;
  border-radius: 6px;
  color: #171a17;
  background: #fff;
}

.sell-form .field-hint {
  color: #777d76;
  font-size: 10px;
  font-weight: 650;
}

.sell-tip {
  min-height: 40px;
  padding: 11px 14px;
  border-left: 3px solid #8bbd31;
  color: #4f5a43;
  background: #f4f8ea;
  font-size: 12px;
  font-weight: 700;
}

.sell-photo-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.55fr);
  gap: 22px;
}

.sell-upload-panel {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px dashed #bfc5bb;
  border-radius: 8px;
  background: #fbfcfa;
  text-align: center;
  cursor: pointer;
}

.sell-upload-panel .photo-preview {
  width: 62px;
  height: 62px;
  border: 0;
  background: transparent;
}

.sell-upload-panel .photo-preview img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.sell-upload-panel .photo-copy {
  display: grid;
  gap: 4px;
}

.sell-upload-panel .photo-copy strong {
  color: #171a17;
  font-size: 14px;
}

.sell-upload-panel .photo-copy span,
.sell-upload-panel .photo-copy small {
  color: #6d736c;
  font-size: 10px;
}

.sell-upload-panel input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.sell-photo-slots {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sell-photo-slots > strong {
  font-size: 12px;
}

.sell-photo-slot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sell-photo-slot {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe2dd;
  border-radius: 6px;
  color: #747a73;
  background: #f7f8f6;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.sell-photo-slot.muted {
  color: #a0a59f;
  background: #fafbfa;
}

.sell-review-section {
  min-height: 340px;
}

.sell-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.65fr);
  gap: 18px;
}

.sell-review-card,
.sell-publishing-options {
  padding: 16px;
  border: 1px solid #e0e3de;
  border-radius: 8px;
  background: #fff;
}

.sell-review-card h4,
.sell-publishing-options h4 {
  margin: 0 0 14px;
  font-size: 16px;
}

.sell-review-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 16px;
}

.sell-review-card dl > div {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef0ec;
}

.sell-review-card dt {
  color: #626861;
  font-size: 11px;
  font-weight: 700;
}

.sell-review-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #171a17;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.sell-confidence-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 3px solid #82b525;
  background: #f2f8e8;
}

.sell-confidence-note strong {
  font-size: 12px;
}

.sell-confidence-note span {
  color: #626b5b;
  font-size: 10px;
}

.sell-publishing-options fieldset {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.sell-publishing-options legend {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 850;
}

.sell-publishing-options label {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
}

.sell-publishing-options input {
  width: 16px;
  min-height: 16px;
  accent-color: #75a918;
}

.sell-publish-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  padding: 0;
  color: #171a17;
  background: transparent;
}

.sell-publish-bar > div {
  flex: 1 1 auto;
  gap: 2px;
}

.sell-publish-bar > div strong {
  font-size: 12px;
}

.sell-publish-bar span {
  color: #6e746d;
  font-size: 11px;
  font-weight: 650;
}

.sell-publish-bar .primary-button,
.sell-publish-bar .secondary-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
  min-height: 44px;
}

.sell-publish-bar .primary-button {
  margin-left: auto;
}

.sell-workspace > .seller-management-panel {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
}

@media (min-width: 1101px) {
  .sell-sidebar {
    top: 69px;
    height: calc(100vh - 69px);
  }

  .sell-workspace {
    padding-top: 20px;
  }
}

:root[data-theme="night"] body[data-active-page="sell"],
:root[data-theme="night"] .sell-band {
  color: #f7f7f2;
  background: #0b0d0a;
}

:root[data-theme="night"] .sell-workspace {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-workspace-header h2,
:root[data-theme="night"] .sell-workspace-header > div > p:last-child {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-workspace-header > div > p:last-child {
  color: #aeb5aa;
}

:root[data-theme="night"] .sell-save-draft {
  border-color: #33402d;
  color: #f7f7f2;
  background: #151a13;
}

:root[data-theme="night"] .sell-save-draft:hover,
:root[data-theme="night"] .sell-save-draft:focus-visible {
  border-color: #6f963e;
  color: #0a0d08;
  background: #b6ff4d;
}

:root[data-theme="night"] .sell-form .seller-pill {
  border-color: #314623;
  color: #e6eedf;
  background: #14200f;
}

:root[data-theme="night"] .sell-step {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .sell-step > span {
  border-color: #3a4335;
  color: #d5dbd0;
  background: #0e110d;
}

:root[data-theme="night"] .sell-step small {
  color: #aeb5aa;
}

:root[data-theme="night"] .sell-step:hover,
:root[data-theme="night"] .sell-step:focus-visible {
  border-color: #6f963e;
  background: #182014;
}

:root[data-theme="night"] .sell-step.is-active {
  border-color: #8fbd43;
  color: #f7f7f2;
  background: #1a2614;
  box-shadow: inset 0 0 0 1px rgba(182, 255, 77, 0.08);
}

:root[data-theme="night"] .sell-step.is-active > span,
:root[data-theme="night"] .sell-step.is-complete > span {
  border-color: #b6ff4d;
  color: #071006;
  background: #b6ff4d;
}

:root[data-theme="night"] .sell-form-section,
:root[data-theme="night"] .sell-listing-preview,
:root[data-theme="night"] .sell-review-card,
:root[data-theme="night"] .sell-publishing-options {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .sell-section-heading h3,
:root[data-theme="night"] .sell-review-card h4,
:root[data-theme="night"] .sell-publishing-options h4,
:root[data-theme="night"] .sell-listing-preview > strong,
:root[data-theme="night"] .sell-photo-slots > strong,
:root[data-theme="night"] .sell-publish-bar > div strong {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-section-heading > span {
  color: #0b1306;
  background: #b6ff4d;
}

:root[data-theme="night"] .sell-section-heading p,
:root[data-theme="night"] .sell-listing-preview > span,
:root[data-theme="night"] .sell-form .field-hint,
:root[data-theme="night"] .sell-review-card dt,
:root[data-theme="night"] .sell-confidence-note span,
:root[data-theme="night"] .sell-publish-bar span {
  color: #aeb5aa;
}

:root[data-theme="night"] .sell-form label,
:root[data-theme="night"] .sell-publishing-options legend {
  color: #e7ebe3;
}

:root[data-theme="night"] .sell-form input,
:root[data-theme="night"] .sell-form select {
  border-color: #34402f;
  color: #f7f7f2;
  background: #090c09;
  caret-color: #b6ff4d;
}

:root[data-theme="night"] .sell-form input::placeholder {
  color: #737c70;
}

:root[data-theme="night"] .sell-form input:hover,
:root[data-theme="night"] .sell-form select:hover {
  border-color: #53664a;
}

:root[data-theme="night"] .sell-form input:focus,
:root[data-theme="night"] .sell-form select:focus {
  border-color: #9bdc3c;
  outline: 3px solid rgba(182, 255, 77, 0.12);
}

:root[data-theme="night"] .sell-preview-photo,
:root[data-theme="night"] .sell-preview-photo img,
:root[data-theme="night"] .sell-photo-slot img {
  color: #aeb5aa;
  background: #080a08;
}

:root[data-theme="night"] .sell-listing-preview button {
  color: #b6ff4d;
}

:root[data-theme="night"] .sell-tip {
  border-left-color: #b6ff4d;
  color: #dce5d5;
  background: #172410;
}

:root[data-theme="night"] .sell-upload-panel {
  border-color: #53634b;
  color: #f7f7f2;
  background: #0d100c;
}

:root[data-theme="night"] .sell-upload-panel:hover,
:root[data-theme="night"] .sell-upload-panel:focus-within {
  border-color: #9bdc3c;
  background: #131b10;
}

:root[data-theme="night"] .sell-upload-panel .photo-copy strong {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-upload-panel .photo-copy span,
:root[data-theme="night"] .sell-upload-panel .photo-copy small {
  color: #aeb5aa;
}

:root[data-theme="night"] .sell-photo-slot {
  border-color: #30382b;
  color: #b8bfb4;
  background: #0e110d;
}

:root[data-theme="night"] .sell-photo-slot.muted {
  color: #778073;
  background: #10130f;
}

:root[data-theme="night"] .sell-review-card dl > div {
  border-bottom-color: #293025;
}

:root[data-theme="night"] .sell-review-card dd {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-confidence-note {
  border-left-color: #b6ff4d;
  color: #eef5e8;
  background: #172410;
}

:root[data-theme="night"] .sell-publishing-options input {
  accent-color: #b6ff4d;
}

:root[data-theme="night"] .sell-publish-bar {
  color: #f7f7f2;
}

:root[data-theme="night"] .sell-publish-bar .secondary-button {
  border-color: #34402f;
  color: #f7f7f2;
  background: #151a13;
}

:root[data-theme="night"] .sell-workspace > .seller-management-panel {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

@media (max-width: 1100px) {
  .sell-band {
    grid-template-columns: 1fr;
  }

  .sell-sidebar {
    position: static;
    display: none;
  }

  .sell-workspace {
    padding: 24px;
  }

  .sell-builder {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .sell-stepper {
    gap: 8px;
  }

  .sell-step {
    padding: 9px;
  }

  .sell-step small {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-active-page="sell"] .app-header {
    background: #090a0a;
  }

  .sell-workspace {
    gap: 16px;
    padding: 18px 14px 100px;
  }

  .sell-workspace-header {
    display: grid;
  }

  .sell-save-draft {
    width: 100%;
  }

  .sell-stepper {
    display: flex;
    width: calc(100vw - 28px);
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .sell-stepper::-webkit-scrollbar {
    display: none;
  }

  .sell-step {
    flex: 0 0 172px;
    scroll-snap-align: start;
  }

  .sell-builder {
    grid-template-columns: 1fr;
  }

  .sell-listing-preview {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
  }

  .sell-preview-photo {
    grid-row: 1 / 3;
    width: 72px;
    aspect-ratio: 1;
  }

  .sell-listing-preview > strong,
  .sell-listing-preview > span {
    grid-column: 2;
  }

  .sell-listing-preview button {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .sell-form-section {
    min-height: 0;
    padding: 14px;
  }

  .sell-field-grid,
  .sell-photo-workspace,
  .sell-review-layout,
  .sell-review-card dl {
    grid-template-columns: 1fr;
  }

  .sell-photo-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sell-photo-slot-grid .sell-photo-slot:nth-child(n + 4) {
    display: none;
  }

  .sell-publish-bar {
    position: sticky;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
    border: 1px solid #dfe2dd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 15, 15, 0.12);
    backdrop-filter: blur(14px);
  }

  .sell-publish-bar > div {
    grid-column: 2;
    grid-row: 1;
  }

  .sell-publish-bar .primary-button {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .sell-publish-bar .secondary-button {
    min-width: 82px;
  }
}

/* Account and Seller Management dashboard presentation. */
.profile-card.has-account-dashboard {
  padding: 0;
  border: 0;
  color: #171a17;
  background: transparent;
  box-shadow: none;
}

.profile-card.has-account-dashboard .profile-preview {
  gap: 14px;
}

.profile-card.has-account-dashboard + .account-card {
  display: none;
}

.account-shortcut-deck,
.account-identity-panel,
.account-lower-grid > *,
.account-trust-strip {
  border: 1px solid #e1e4de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
}

.account-shortcut-deck {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.account-shortcut-deck > p {
  color: #181b17 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.account-shortcut-grid button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 8px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #dfe3dc;
  border-radius: 8px;
  color: #171a17;
  background: #fff;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.account-shortcut-grid button:hover,
.account-shortcut-grid button:focus-visible {
  border-color: #8ecb2d;
  background: #f8fdec;
  transform: translateY(-1px);
}

.account-shortcut-grid svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #4f8b00;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-shortcut-grid span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-shortcut-grid strong,
.account-shortcut-grid small {
  overflow-wrap: anywhere;
}

.account-shortcut-grid strong {
  color: #171a17;
  font-size: 14px;
  line-height: 1.1;
}

.account-shortcut-grid small {
  color: #646a62;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.account-shortcut-grid b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #1d2b0c;
  background: #c9fa75;
  font-size: 11px;
}

.account-shortcut-grid i {
  width: 7px;
  height: 7px;
  border-top: 2px solid #6d736c;
  border-right: 2px solid #6d736c;
  transform: rotate(45deg);
}

.account-profile-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.85fr);
  overflow: hidden;
  border: 1px solid #e1e4de;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 15, 0.07);
}

.account-identity-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 0;
  border-right: 1px solid #e5e7e2;
  border-radius: 0;
  box-shadow: none;
}

.account-identity-panel .profile-identity {
  grid-template-columns: 76px minmax(0, 1fr);
}

.account-identity-panel .profile-avatar,
.seller-management-avatar {
  width: 76px;
  height: 76px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #b6ff4d;
}

.account-identity-panel .profile-sign-out-button {
  grid-column: 1 / -1;
  width: 100%;
}

.account-identity-panel h3 {
  color: #171a17;
  font-size: clamp(22px, 2.1vw, 30px);
}

.account-identity-panel p,
.account-customer-panel p {
  color: #626961 !important;
}

.account-plan-panel {
  min-width: 0;
  padding: 12px;
  background: #f8f9f6;
}

.account-plan-panel .seller-plan-dashboard {
  height: 100%;
}

.account-customer-panel {
  display: grid;
  height: 100%;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #101210;
}

.account-customer-panel h4 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}

.account-customer-panel p {
  max-width: 520px;
  color: #c5cbc1 !important;
}

.seller-plan-dashboard {
  gap: 10px;
  padding: 16px;
  border-color: #41571f;
  background: linear-gradient(145deg, #0b0c0b, #11150e);
}

.seller-plan-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.seller-plan-store-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #79b71c;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.seller-plan-store-button:hover,
.seller-plan-store-button:focus-visible {
  color: #0a0c09;
  background: #b6ff4d;
}

.seller-plan-benefits span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 10px;
  background: #111410;
}

.seller-plan-benefits span > b {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 1px solid #74a827;
  border-radius: 50%;
}

.seller-plan-benefits span > b::after {
  display: block;
  width: 5px;
  height: 8px;
  margin: 3px auto 0;
  border-right: 2px solid #b6ff4d;
  border-bottom: 2px solid #b6ff4d;
  content: "";
  transform: rotate(45deg);
}

.seller-plan-benefits strong {
  color: #fff;
  font-size: 12px;
}

.seller-plan-benefits small {
  color: #abb2a7;
  font-size: 10px;
  line-height: 1.25;
}

.account-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(190px, 0.48fr);
  gap: 12px;
}

.account-lower-grid > * {
  min-width: 0;
}

.account-lower-grid .saved-pieces-panel {
  background: #fff;
}

.account-lower-grid .empty-state.compact {
  min-height: 116px;
  border: 1px solid #e4e7e1;
  color: #656c63;
  background: linear-gradient(135deg, #fff, #f6faef);
}

.account-quick-actions {
  padding: 10px;
}

.account-quick-actions .account-dashboard-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-quick-actions .account-dashboard-actions > *:last-child {
  grid-column: 1 / -1;
}

.account-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
  background: linear-gradient(90deg, #fbfff4, #fff);
}

.account-trust-strip span {
  display: grid;
  gap: 3px;
  padding: 0 16px;
  border-right: 1px solid #e4eadc;
}

.account-trust-strip span:last-child {
  border-right: 0;
}

.account-trust-strip strong {
  color: #1c211a;
  font-size: 13px;
}

.account-trust-strip small {
  color: #697067;
  font-size: 11px;
  line-height: 1.35;
}

.profile-card.has-account-dashboard .profile-form:not([hidden]) {
  padding: 18px;
  border: 1px solid #35442d;
  border-radius: 8px;
  color: #fff;
  background: #111510;
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.16);
}

.seller-management-panel {
  gap: 14px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(15, 15, 15, 0.07);
}

.seller-management-header {
  align-items: center;
}

.seller-management-header h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.seller-management-actions .primary-button,
.seller-management-actions .secondary-button {
  width: auto;
  min-width: 132px;
}

.seller-management-metrics {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.seller-management-metrics .seller-management-metric {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e4dd;
  border-radius: 8px;
  color: #626a60;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.seller-management-metrics .seller-management-metric:hover,
.seller-management-metrics .seller-management-metric:focus-visible {
  border-color: #8ecb2d;
  background: #f8fdec;
  transform: translateY(-1px);
}

.seller-management-metrics strong {
  margin: 0;
  font-size: clamp(21px, 2vw, 28px);
}

.seller-management-metrics small {
  grid-column: 2;
  color: #5c9900;
  font-size: 10px;
  font-weight: 900;
}

.seller-metric-icon {
  display: grid;
  grid-row: 1 / span 3;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: #152008;
  background: #c8ff75;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.seller-metric-icon.danger {
  color: #8e2020;
  background: #ffdede;
}

.seller-metric-icon.cool {
  color: #17475d;
  background: #d8f4ff;
}

.seller-management-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 0.72fr);
  gap: 14px;
}

.seller-management-main,
.seller-management-side > section {
  border: 1px solid #e0e4dd;
  border-radius: 8px;
  background: #fff;
}

.seller-management-main {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.seller-management-identity {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 4px;
}

.seller-management-avatar {
  display: grid;
  overflow: hidden;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
}

.seller-management-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-management-identity h4,
.seller-management-identity p {
  margin: 0;
}

.seller-management-identity h4 {
  color: #171a17;
  font-size: 22px;
}

.seller-management-identity p,
.seller-management-identity small {
  color: #626a60;
  font-weight: 750;
  line-height: 1.35;
}

.seller-management-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-management-summary-grid > section,
.seller-management-side > section {
  padding: 12px;
}

.seller-management-summary-grid header,
.seller-management-side header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.seller-management-summary-grid header button,
.seller-management-side header button {
  border: 0;
  color: #579000;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.seller-summary-empty,
.seller-side-status {
  display: grid;
  min-height: 88px;
  place-content: center;
  gap: 4px;
  margin-top: 10px;
  border: 1px solid #e2e7dc;
  border-radius: 8px;
  color: #656c63;
  background: linear-gradient(135deg, #fff, #f5faed);
  text-align: center;
}

.seller-summary-empty b,
.seller-side-status b {
  color: #2b3b16;
  font-size: 22px;
}

.seller-summary-empty span,
.seller-side-status span {
  padding-inline: 10px;
  font-size: 11px;
}

.seller-management-action-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seller-management-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.seller-quick-actions {
  display: grid;
  gap: 6px;
}

.seller-quick-actions > button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  color: #252924;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.seller-rating-card {
  display: grid;
  gap: 3px;
  background: #10120f !important;
}

.seller-rating-card span,
.seller-rating-card small {
  color: #bac0b6;
  font-size: 11px;
}

.seller-rating-card strong {
  color: #b6ff4d;
  font-size: 28px;
}

.seller-management-list {
  padding-top: 4px;
}

.sell-workspace > .seller-management-panel {
  order: -1;
  margin-top: 0;
}

@media (max-width: 1480px) {
  .account-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .account-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-quick-actions {
    grid-column: 1 / -1;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-management-overview {
    grid-template-columns: 1fr;
  }

  .seller-management-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-shortcut-grid,
  .account-profile-overview,
  .account-lower-grid,
  .account-trust-strip,
  .seller-management-summary-grid,
  .seller-management-action-strip,
  .seller-management-side {
    grid-template-columns: 1fr;
  }

  .account-shortcut-grid button {
    min-height: 66px;
  }

  .account-identity-panel {
    border-right: 0;
    border-bottom: 1px solid #e5e7e2;
  }

  .account-trust-strip span {
    padding: 12px 4px;
    border-right: 0;
    border-bottom: 1px solid #e4eadc;
  }

  .account-trust-strip span:last-child {
    border-bottom: 0;
  }

  .seller-management-identity {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .seller-management-avatar {
    width: 64px;
    height: 64px;
  }

  .seller-management-identity .profile-reset-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .seller-plan-header,
  .seller-plan-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .seller-plan-store-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .account-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-management-metrics .seller-management-metric:last-child {
    grid-column: 1 / -1;
  }

  .seller-management-actions {
    grid-template-columns: 1fr;
  }

  .seller-management-actions .primary-button,
  .seller-management-actions .secondary-button {
    width: 100%;
  }
}

:root[data-theme="night"] .profile-card.has-account-dashboard,
:root[data-theme="night"] .account-profile-overview {
  color: #f5f7f2;
  background: transparent;
}

:root[data-theme="night"] .account-shortcut-deck,
:root[data-theme="night"] .account-identity-panel,
:root[data-theme="night"] .account-lower-grid > *,
:root[data-theme="night"] .account-trust-strip,
:root[data-theme="night"] .seller-management-main,
:root[data-theme="night"] .seller-management-side > section {
  border-color: #31382e;
  background: #141713;
}

:root[data-theme="night"] .account-shortcut-grid button,
:root[data-theme="night"] .seller-management-summary-grid > section,
:root[data-theme="night"] .seller-quick-actions > button {
  border-color: #343d30;
  color: #f4f6f1;
  background: #10130f;
}

:root[data-theme="night"] .account-shortcut-deck > p,
:root[data-theme="night"] .account-shortcut-grid strong,
:root[data-theme="night"] .account-identity-panel h3,
:root[data-theme="night"] .account-trust-strip strong,
:root[data-theme="night"] .seller-management-identity h4,
:root[data-theme="night"] .seller-management-summary-grid strong,
:root[data-theme="night"] .seller-management-side header strong {
  color: #f4f6f1 !important;
}

:root[data-theme="night"] .account-shortcut-grid small,
:root[data-theme="night"] .account-identity-panel p,
:root[data-theme="night"] .account-trust-strip small,
:root[data-theme="night"] .seller-management-identity p,
:root[data-theme="night"] .seller-management-identity small {
  color: #adb5a9 !important;
}

:root[data-theme="night"] .account-plan-panel {
  background: #0d100c;
}

:root[data-theme="night"] .account-lower-grid .saved-pieces-panel,
:root[data-theme="night"] .seller-management-metrics .seller-management-metric {
  border-color: #343d30;
  color: #b7beb3;
  background: #111410;
}

:root[data-theme="night"] .seller-management-metrics .seller-management-metric:hover,
:root[data-theme="night"] .seller-management-metrics .seller-management-metric:focus-visible {
  border-color: #739d39;
  background: #182014;
}

:root[data-theme="night"] .seller-summary-empty,
:root[data-theme="night"] .seller-side-status {
  border-color: #30392c;
  color: #b9c0b5;
  background: #0d100c;
}

:root[data-theme="night"] .seller-summary-empty b,
:root[data-theme="night"] .seller-side-status b {
  color: #b6ff4d;
}

@media (max-width: 390px) {
  .sell-workspace {
    padding-inline: 10px;
  }

  .sell-stepper {
    width: calc(100vw - 20px);
  }

  .sell-listing-preview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sell-preview-photo {
    width: 64px;
  }

  .sell-listing-preview button {
    grid-column: 2;
    grid-row: auto;
  }
}

/* Premium workspace: approved desktop comparison layout. */
body[data-active-page="premium"] {
  background: #f7f8f5;
}

body[data-active-page="premium"] .app-header {
  border-color: #1f211f;
  color: #fff;
  background: #090a0a;
}

body[data-active-page="premium"] .app-header .search-wrap {
  border-color: #2f322f;
  background: #fff;
}

body[data-active-page="premium"] .app-header .text-link {
  color: #fff;
}

body[data-active-page="premium"] .app-header .text-link:hover,
body[data-active-page="premium"] .app-header .text-link:focus-visible,
body[data-active-page="premium"] .app-header .text-link.active {
  color: var(--accent);
  background: rgba(182, 255, 77, 0.08);
}

.plans-band {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100vh - 88px);
  padding: 0;
  background: #f7f8f5;
}

.premium-sidebar,
.message-workspace-nav {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 14px;
  color: #fff;
  background: #0a0c0b;
}

.premium-sidebar {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
}

.premium-sidebar nav,
.message-workspace-nav nav {
  display: grid;
  gap: 6px;
}

.premium-sidebar button,
.message-workspace-nav button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.premium-sidebar button:hover,
.premium-sidebar button:focus-visible,
.message-workspace-nav button:hover,
.message-workspace-nav button:focus-visible,
.message-workspace-nav button.active {
  color: var(--accent);
  background: rgba(182, 255, 77, 0.12);
}

.premium-sidebar-secondary,
.message-workspace-nav-secondary {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-workspace {
  display: grid;
  gap: 34px;
  width: min(100%, 1480px);
  padding: 42px clamp(28px, 4vw, 64px) 28px;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(560px, 2fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.premium-copy {
  max-width: 350px;
  padding-top: 12px;
}

.premium-copy h2 {
  max-width: 330px;
  margin: 8px 0 16px;
  font-size: clamp(38px, 4.2vw, 62px);
  letter-spacing: 0;
  line-height: 1.03;
}

.premium-copy > p:last-child,
.premium-benefits header p {
  margin: 0;
  color: #5f645e;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.plans-band .plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.plans-band .plan-card {
  min-height: 420px;
  padding: 30px;
  border-color: #dfe2dd;
  background: #f4f5ed;
  box-shadow: none;
}

.plans-band .plan-card.featured {
  border-color: #151715;
  color: #fff;
  background: #0b0c0c;
}

.plans-band .plan-card.selected {
  box-shadow: inset 0 0 0 1px rgba(182, 255, 77, 0.65);
}

.plans-band .plan-card h3 {
  font-size: 22px;
}

.plans-band .plan-card > p {
  min-height: 44px;
  font-size: 14px;
}

.plan-free-label {
  padding: 4px 10px;
  border: 1px solid #d7dbd4;
  border-radius: 999px;
  color: #272a26;
  background: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-perk-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-perk-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.plan-perk-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #72aa09;
  content: "\2713";
  font-weight: 950;
}

.plans-band .plan-price {
  margin-top: auto;
  color: #72aa09;
  font-size: 38px;
  letter-spacing: 0;
}

.plans-band .plan-price small {
  display: inline;
  margin-left: 4px;
}

.plans-band .plan-card .primary-button,
.plans-band .plan-card .secondary-button {
  width: 100%;
  min-height: 48px;
}

.premium-benefits {
  display: grid;
  gap: 24px;
}

.premium-benefits h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.premium-benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.premium-benefit-grid article {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 190px;
  padding: 22px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fff;
}

.premium-benefit-grid article > span,
.premium-assurance > div > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: #609600;
  background: #f3f8e7;
  font-size: 18px;
  font-weight: 950;
}

.premium-benefit-grid strong {
  font-size: 15px;
}

.premium-benefit-grid p {
  margin: 0;
  color: #5f645e;
  font-size: 13px;
  line-height: 1.5;
}

.premium-assurance {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 36px;
  padding: 22px 26px;
  border: 1px solid #e2e5df;
  border-radius: 8px;
  background: #f3f5e9;
}

.premium-assurance > div {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.premium-assurance p {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #565d53;
  font-size: 13px;
}

.premium-assurance strong {
  color: #151715;
}

/* Messages workspace: desktop inbox, active conversation and context rail. */
.message-drawer {
  inset: 88px 0 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: calc(100dvh - 88px);
  max-height: calc(100dvh - 88px);
  border: 0;
  border-radius: 0;
  background: #f7f8f5;
  overscroll-behavior: contain;
  transform: translateY(8px);
  transform-origin: center top;
}

.message-workspace-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.message-drawer.open {
  transform: translateY(0);
}

.message-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 16px 238px;
  background: #f7f8f5;
}

.message-page-close {
  display: grid;
  flex: 0 0 auto;
  border-color: #dfe2dd;
  background: #fff;
}

.message-page-heading h1,
.message-page-heading p {
  margin: 0;
}

.message-page-heading h1 {
  font-size: 32px;
  letter-spacing: 0;
}

.message-page-heading p {
  margin-top: 4px;
  color: #676d65;
  font-size: 14px;
}

.message-app {
  grid-template-columns: 208px minmax(290px, 0.82fr) minmax(440px, 1.65fr) minmax(250px, 0.72fr);
  gap: 18px;
  padding: 0 28px 24px 0;
  background: #f7f8f5;
}

.message-workspace-nav {
  grid-row: 1;
  min-height: 0;
}

.message-sidebar,
.message-chat,
.message-context-card {
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fff;
}

.message-sidebar {
  border-right: 1px solid #dfe2dd;
}

.message-sidebar-header,
.message-chat-header {
  min-height: 68px;
  padding: 14px 16px;
  border-color: #e3e6e1;
}

.message-sidebar-header .eyebrow,
.message-chat-header .eyebrow {
  display: none;
}

.message-sidebar-header h2,
.message-chat-header h2 {
  font-size: 18px;
}

.conversation-list {
  gap: 0;
  padding: 0;
  background: #fff;
}

.conversation-list-heading {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e9e5;
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.conversation-group {
  gap: 0;
}

.conversation-group-heading {
  padding: 8px 16px;
}

.conversation-tab {
  min-height: 86px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #e7e9e5;
  border-radius: 0;
  box-shadow: none;
}

.conversation-tab.active,
.conversation-tab.unread {
  border-color: #e7e9e5;
  background: #f3f7e7;
}

.conversation-thumb {
  width: 48px;
  height: 58px;
}

.message-chat {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
}

.message-chat-header {
  display: none;
}

.conversation-product {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #e3e6e1;
}

.conversation-product img {
  width: 44px;
  height: 50px;
}

.conversation-product-copy span,
.conversation-product-copy small {
  text-transform: none;
  letter-spacing: 0;
}

.conversation-product-actions {
  display: flex;
  align-items: center;
}

.message-history {
  padding: 28px 24px;
  background: #fff;
}

  .message-bubble {
    max-width: min(62%, 420px);
    padding: 13px 15px;
    border-color: rgba(15, 15, 15, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 15, 15, 0.06);
  }

  .message-bubble.mine {
    border-color: rgba(90, 154, 0, 0.35);
    background: #eaffcf;
  }

.message-form {
  grid-template-columns: minmax(0, 1fr) 110px;
  margin: 0 14px 14px;
  padding: 8px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.message-form label {
  display: none;
}

.message-form textarea {
  min-height: 44px;
  max-height: 90px;
  padding: 11px 12px;
  border: 0;
  background: #fff;
}

.message-form textarea:focus {
  border: 0;
  outline: 2px solid rgba(182, 255, 77, 0.55);
}

.message-form .primary-button {
  min-height: 44px;
  box-shadow: none;
  font-size: 14px;
}

.message-context-rail {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  overflow-y: auto;
}

.message-context-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.message-context-card h3,
.message-context-card p {
  margin: 0;
}

.message-context-card h3 {
  font-size: 17px;
}

.message-context-card p,
.message-context-card span {
  color: #666c63;
  font-size: 13px;
  line-height: 1.45;
}

.message-context-store,
.message-context-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.message-context-store img,
.message-context-item img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #0b0c0c;
}

.message-context-item img {
  height: 74px;
}

.message-context-store div,
.message-context-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-context-store strong,
.message-context-item strong,
.message-context-item b {
  overflow: hidden;
  color: #161816;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-context-card .secondary-button {
  width: 100%;
  min-height: 42px;
}

.message-safety-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #444a42;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .premium-hero {
    grid-template-columns: 1fr;
  }

  .premium-copy {
    max-width: 620px;
  }

  .premium-copy h2 {
    max-width: 620px;
  }

  .premium-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-app {
    grid-template-columns: 180px minmax(270px, 0.72fr) minmax(420px, 1.4fr);
  }

  .message-context-rail {
    display: none;
  }

  .message-page-heading {
    padding-left: 208px;
  }
}

@media (max-width: 900px) {
  .plans-band {
    grid-template-columns: 1fr;
  }

  .premium-sidebar {
    display: none;
  }

  .premium-workspace {
    padding: 28px 20px;
  }

  .premium-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-assurance {
    grid-template-columns: 1fr;
  }

  .message-drawer {
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
  }

  .message-page-heading,
  .message-workspace-nav {
    display: none;
  }

  .message-sidebar-close {
    display: grid;
  }

  .message-app {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.4fr);
    padding: 0;
  }
}

@media (max-width: 620px) {
  .plans-band .plan-grid,
  .premium-benefit-grid {
    grid-template-columns: 1fr;
  }

  .plans-band .plan-card {
    min-height: 360px;
    padding: 22px;
  }

  .premium-copy h2 {
    font-size: 38px;
  }

  .premium-benefit-grid article {
    min-height: 0;
  }

  .premium-assurance {
    padding: 18px;
  }

  .premium-assurance > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-app {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .message-context-rail {
    display: none;
  }

  .message-chat {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .message-chat-header {
    display: flex;
  }

  .conversation-product {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .conversation-product-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .message-form {
    grid-template-columns: minmax(0, 1fr) 92px;
    margin: 0;
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
  }
}

:root[data-theme="night"] body[data-active-page="premium"],
:root[data-theme="night"] .plans-band,
:root[data-theme="night"] .premium-workspace {
  color: #f7f7f2;
  background: #0b0d0a;
}

:root[data-theme="night"] .plans-band .plan-card:not(.featured),
:root[data-theme="night"] .premium-benefit-grid article,
:root[data-theme="night"] .premium-assurance {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .premium-copy > p:last-child,
:root[data-theme="night"] .premium-benefits header p,
:root[data-theme="night"] .premium-benefit-grid p,
:root[data-theme="night"] .premium-assurance p {
  color: #aeb5aa;
}

:root[data-theme="night"] .premium-assurance strong,
:root[data-theme="night"] .plan-free-label {
  color: #f7f7f2;
}

:root[data-theme="night"] .plan-free-label {
  border-color: #36402f;
  background: #0e110d;
}

:root[data-theme="night"] .message-drawer,
:root[data-theme="night"] .message-page-heading,
:root[data-theme="night"] .message-app {
  color: #f7f7f2;
  background: #0b0d0a;
}

:root[data-theme="night"] .message-sidebar,
:root[data-theme="night"] .message-chat,
:root[data-theme="night"] .message-context-card,
:root[data-theme="night"] .message-sidebar-header,
:root[data-theme="night"] .conversation-list,
:root[data-theme="night"] .conversation-list-heading,
:root[data-theme="night"] .conversation-product,
:root[data-theme="night"] .message-history,
:root[data-theme="night"] .message-form {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .conversation-tab {
  border-color: #30382b;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .conversation-tab.active,
:root[data-theme="night"] .conversation-tab.unread,
:root[data-theme="night"] .message-bubble.mine {
  color: #f7f7f2;
  background: #1a2614;
}

:root[data-theme="night"] .message-bubble.mine strong,
:root[data-theme="night"] .message-bubble.mine p {
  color: #f7f7f2;
}

:root[data-theme="night"] .message-bubble.mine span,
:root[data-theme="night"] .message-bubble.mine small {
  color: rgba(7, 16, 6, 0.62);
}

:root[data-theme="night"] .message-bubble {
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  background: #141712;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

:root[data-theme="night"] .message-form textarea {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: #0b0e0a;
}

:root[data-theme="night"] .message-context-store strong,
:root[data-theme="night"] .message-context-item strong,
:root[data-theme="night"] .message-context-item b,
:root[data-theme="night"] .message-safety-card ul {
  color: #f7f7f2;
}

/* Seller storefront reference design */
.store-page .store-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.storefront-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 16px;
  align-items: start;
}

.storefront-main {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.storefront-hero {
  display: grid;
  grid-template-columns: 152px minmax(300px, 1fr) 304px;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.storefront-avatar-frame {
  display: grid;
  width: 152px;
  height: 152px;
  place-items: center;
  border: 1px solid #d5dccb;
  border-radius: 8px;
  background: #f4f8ec;
}

.storefront-avatar-frame .profile-avatar {
  width: 124px;
  height: 124px;
  border: 0;
  border-radius: 8px;
  font-size: 38px;
}

.storefront-identity {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.storefront-kicker-row,
.storefront-meta,
.storefront-trust-row,
.storefront-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.storefront-kicker-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.storefront-kicker-row strong,
.storefront-kicker-row em,
.storefront-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.storefront-kicker-row strong {
  color: #15200d;
  background: var(--accent);
}

.storefront-kicker-row em {
  border: 1px solid #c7dbac;
  color: #28351f;
  background: #f0ffdc;
}

.storefront-identity h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.storefront-verified {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #65a900;
  font-size: 13px;
}

.storefront-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.storefront-identity > p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.storefront-trust-row span {
  color: #26351d;
  background: #ecffd0;
}

.storefront-benefits li::before {
  content: "\2713";
  margin-right: 6px;
  color: #68a900;
  font-weight: 900;
}

.storefront-actions {
  margin-top: 2px;
}

.storefront-actions .primary-button,
.storefront-actions .secondary-button {
  width: auto;
  min-height: 44px;
  padding-inline: 20px;
}

.storefront-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.storefront-metrics > div {
  display: grid;
  gap: 5px;
  min-height: 105px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f6;
}

.storefront-metrics span,
.storefront-metrics small {
  color: var(--muted);
  font-weight: 800;
}

.storefront-metrics span {
  font-size: 11px;
  text-transform: uppercase;
}

.storefront-metrics strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1;
}

.storefront-metrics small {
  font-size: 11px;
}

.storefront-catalog {
  display: grid;
  min-width: 0;
}

.storefront-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.storefront-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  overflow-x: auto;
}

.storefront-tabs button {
  position: relative;
  min-width: max-content;
  padding: 0 16px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.storefront-tabs button[aria-selected="true"] {
  color: #4f8300;
}

.storefront-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  background: #76b800;
}

.storefront-view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.storefront-view-controls label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.storefront-view-controls select,
.storefront-view-controls button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.storefront-view-controls select {
  min-width: 112px;
  padding: 0 30px 0 12px;
}

.storefront-view-controls button {
  width: 42px;
}

.storefront-view-controls button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-view-controls button.active {
  color: #4d8500;
  background: #efffd9;
}

.storefront-tab-panel {
  display: grid;
  gap: 18px;
  min-height: 320px;
  padding: 18px;
}

.storefront-availability-note {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e5ebdc;
  border-radius: 8px;
  background: #f8faf4;
}

.storefront-note-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #5f9700;
  background: #edffd2;
}

.storefront-note-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-availability-note strong,
.storefront-availability-note p {
  display: block;
  margin: 0;
}

.storefront-availability-note strong {
  color: var(--ink);
  font-size: 14px;
}

.storefront-availability-note .primary-button,
.storefront-availability-note .secondary-button {
  width: auto;
  white-space: nowrap;
}

.storefront-availability-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.storefront-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.storefront-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.storefront-product-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111411;
}

.storefront-product-media .media-button {
  width: 100%;
  height: 100%;
}

.storefront-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--listing-image-scale, 1));
  transition: transform 180ms ease;
}

.storefront-product-media:hover img {
  transform: scale(var(--listing-image-hover-scale, 1.035));
}

.storefront-condition-badge,
.storefront-sold-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.storefront-condition-badge {
  left: 10px;
  color: #18220f;
  background: var(--accent);
}

.storefront-sold-badge {
  right: 10px;
  color: #fff;
  background: #111;
}

.storefront-product-media .save-icon-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(10, 12, 9, 0.72);
}

.storefront-product-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.storefront-product-title {
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-product-body p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.storefront-product-price strong {
  color: var(--ink);
  font-size: 17px;
}

.storefront-product-price span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-product-price span.sold {
  padding: 5px 8px;
  border-radius: 999px;
  color: #477800;
  background: #e9ffd0;
}

.storefront-card-cart {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #111;
  background: var(--accent);
  font-weight: 900;
}

.storefront-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.storefront-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.storefront-section-title button,
.storefront-recommendations > div > button {
  border: 0;
  color: #5a9100;
  background: transparent;
  font-weight: 900;
}

.storefront-empty-panel,
.storefront-about-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf9f6;
}

.storefront-empty-panel h3,
.storefront-about-panel h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.storefront-empty-panel p,
.storefront-about-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.storefront-about-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.storefront-about-panel dl > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.storefront-about-panel dt,
.storefront-about-panel dd {
  margin: 0;
}

.storefront-about-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.storefront-about-panel dd {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 900;
}

.storefront-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.storefront-review-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.storefront-review-card p {
  color: var(--ink);
  line-height: 1.5;
}

.storefront-review-card small {
  color: var(--muted);
  font-weight: 700;
}

.storefront-sidebar {
  display: grid;
  gap: 12px;
}

.storefront-sidebar > section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.storefront-sidebar h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
}

.storefront-sidebar p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.storefront-sidebar ul {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.storefront-sidebar li {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}

.storefront-sidebar .secondary-button {
  width: 100%;
  margin-top: 4px;
}

.storefront-sidebar .storefront-benefits {
  padding-bottom: 0;
  border-top: 0;
}

.storefront-recommendations > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.storefront-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.storefront-recommendation-grid button {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.storefront-recommendation-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
}

.storefront-recommendation-grid strong,
.storefront-recommendation-grid span {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-recommendation-grid span {
  color: var(--muted);
}

.storefront-assurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.storefront-assurance > div {
  display: grid;
  gap: 4px;
  padding: 4px 24px;
  border-right: 1px solid var(--line);
}

.storefront-assurance > div:last-child {
  border-right: 0;
}

.storefront-assurance strong {
  color: var(--ink);
  font-size: 13px;
}

.storefront-assurance span {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .storefront-layout {
    grid-template-columns: 1fr;
  }

  .storefront-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storefront-hero {
    grid-template-columns: 132px minmax(280px, 1fr) 280px;
  }

  .storefront-avatar-frame {
    width: 132px;
    height: 132px;
  }

  .storefront-avatar-frame .profile-avatar {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 900px) {
  .storefront-hero {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .storefront-avatar-frame {
    width: 116px;
    height: 116px;
  }

  .storefront-avatar-frame .profile-avatar {
    width: 94px;
    height: 94px;
  }

  .storefront-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .storefront-metrics > div {
    min-height: 88px;
  }

  .storefront-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storefront-availability-note {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .storefront-availability-note .primary-button,
  .storefront-availability-note .secondary-button {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .store-page {
    margin-inline: 12px;
  }

  .storefront-hero {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .storefront-avatar-frame {
    width: 84px;
    height: 84px;
  }

  .storefront-avatar-frame .profile-avatar {
    width: 68px;
    height: 68px;
    font-size: 24px;
  }

  .storefront-identity h1 {
    font-size: 28px;
  }

  .storefront-identity > p,
  .storefront-trust-row {
    grid-column: 1 / -1;
  }

  .storefront-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-toolbar {
    display: grid;
    padding: 0 14px 12px;
  }

  .storefront-tabs {
    min-height: 54px;
  }

  .storefront-view-controls {
    justify-content: space-between;
  }

  .storefront-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-sidebar {
    grid-template-columns: 1fr;
  }

  .storefront-assurance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storefront-assurance > div:nth-child(2) {
    border-right: 0;
  }

  .storefront-assurance > div:nth-child(-n + 2) {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .storefront-about-panel dl,
  .storefront-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .storefront-hero {
    grid-template-columns: 1fr;
  }

  .storefront-avatar-frame {
    width: 100%;
    height: 148px;
  }

  .storefront-avatar-frame .profile-avatar {
    width: 116px;
    height: 116px;
  }

  .storefront-actions,
  .storefront-actions .primary-button,
  .storefront-actions .secondary-button {
    width: 100%;
  }

  .storefront-product-grid,
  .storefront-assurance {
    grid-template-columns: 1fr;
  }

  .storefront-availability-note {
    grid-template-columns: 1fr;
  }

  .storefront-assurance > div {
    padding: 12px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .storefront-assurance > div:last-child {
    border-bottom: 0;
  }
}

:root[data-theme="night"] .storefront-main,
:root[data-theme="night"] .storefront-hero,
:root[data-theme="night"] .storefront-catalog,
:root[data-theme="night"] .storefront-sidebar > section,
:root[data-theme="night"] .storefront-assurance,
:root[data-theme="night"] .storefront-product-card,
:root[data-theme="night"] .storefront-review-card,
:root[data-theme="night"] .storefront-about-panel dl > div {
  border-color: #34402f;
  color: #f7f7f2;
  background: #141712;
}

:root[data-theme="night"] .storefront-avatar-frame,
:root[data-theme="night"] .storefront-metrics > div,
:root[data-theme="night"] .storefront-empty-panel,
:root[data-theme="night"] .storefront-about-panel,
:root[data-theme="night"] .storefront-availability-note {
  border-color: #34402f;
  background: #1a2017;
}

:root[data-theme="night"] .storefront-meta span,
:root[data-theme="night"] .storefront-view-controls select,
:root[data-theme="night"] .storefront-view-controls button {
  border-color: #3b4636;
  color: #f7f7f2;
  background: #0d100c;
}

:root[data-theme="night"] .storefront-identity h1,
:root[data-theme="night"] .storefront-metrics strong,
:root[data-theme="night"] .storefront-product-title,
:root[data-theme="night"] .storefront-product-price strong,
:root[data-theme="night"] .storefront-section-title h3,
:root[data-theme="night"] .storefront-empty-panel h3,
:root[data-theme="night"] .storefront-about-panel h3,
:root[data-theme="night"] .storefront-about-panel dd,
:root[data-theme="night"] .storefront-review-card p,
:root[data-theme="night"] .storefront-sidebar h2,
:root[data-theme="night"] .storefront-sidebar li,
:root[data-theme="night"] .storefront-recommendation-grid button,
:root[data-theme="night"] .storefront-assurance strong,
:root[data-theme="night"] .storefront-availability-note strong {
  color: #f7f7f2;
}

:root[data-theme="night"] .storefront-identity > p,
:root[data-theme="night"] .storefront-metrics span,
:root[data-theme="night"] .storefront-metrics small,
:root[data-theme="night"] .storefront-product-body p,
:root[data-theme="night"] .storefront-product-price span,
:root[data-theme="night"] .storefront-empty-panel p,
:root[data-theme="night"] .storefront-about-panel p,
:root[data-theme="night"] .storefront-about-panel dt,
:root[data-theme="night"] .storefront-review-card small,
:root[data-theme="night"] .storefront-sidebar p,
:root[data-theme="night"] .storefront-recommendation-grid span,
:root[data-theme="night"] .storefront-assurance span,
:root[data-theme="night"] .storefront-availability-note p {
  color: #b9c2b3;
}
.sell-band {
  grid-template-columns: 222px minmax(0, 1fr);
  background: #f7f8f5;
}

.sell-sidebar {
  padding: 18px 14px 14px;
  background: #0d0f0e;
}

.sell-sidebar-primary {
  align-content: start;
}

.sell-sidebar-label {
  margin: 4px 11px 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.sell-sidebar button,
.sell-sidebar-disabled {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.sell-sidebar button svg,
.sell-sidebar-disabled svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sell-sidebar button:hover,
.sell-sidebar button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sell-sidebar button.active {
  color: #132006;
  background: #9bee23;
}

.sell-sidebar-disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.sell-sidebar-disabled small {
  color: #a6ed43;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sell-sidebar-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #132006;
  background: #a7ef3d;
  font-size: 10px;
}

.sell-sidebar-count[hidden] {
  display: none;
}

.sell-sidebar-footer {
  display: grid;
  gap: 12px;
}

.sell-sidebar-upgrade {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: linear-gradient(145deg, #1b1e1c, #151715);
}

.sell-sidebar-upgrade > span {
  color: #a5f32f;
  font-size: 18px;
  line-height: 1;
}

.sell-sidebar-upgrade strong {
  align-self: center;
  color: #fff;
  font-size: 12px;
}

.sell-sidebar-upgrade p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.sell-sidebar .sell-sidebar-upgrade button {
  grid-column: 1 / -1;
  display: block;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 10px;
  color: #132006;
  background: #9bee23;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.sell-sidebar .sell-sidebar-upgrade button:hover,
.sell-sidebar .sell-sidebar-upgrade button:focus-visible {
  color: #0d1605;
  background: #b1ff42;
}

.sell-sidebar-store {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 8px;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sell-sidebar-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: #454945;
  font-size: 12px;
  font-weight: 900;
}

.sell-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-sidebar-store > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sell-sidebar-store strong,
.sell-sidebar-store small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sell-sidebar-store strong {
  color: #fff;
  font-size: 11px;
}

.sell-sidebar-store small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.sell-sidebar-store i {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.65);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.65);
  transform: rotate(45deg) translateY(-2px);
}

.sell-workspace {
  gap: 18px;
  width: 100%;
  max-width: 1480px;
  padding: 22px clamp(22px, 2.6vw, 42px) 44px;
}

.sell-workspace > .seller-management-panel {
  display: grid;
  order: -1;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.seller-management-header {
  min-height: 54px;
  align-items: center;
}

.seller-management-header h3 {
  color: #141714;
  font-size: clamp(24px, 2.4vw, 31px);
  letter-spacing: -0.035em;
}

.seller-management-header span {
  margin-top: 5px;
  color: #6a7068;
  font-size: 12px;
  font-weight: 650;
}

.seller-management-actions {
  flex-wrap: nowrap;
}

.seller-management-actions .primary-button,
.seller-management-actions .secondary-button,
.seller-management-list-head .primary-button {
  display: inline-flex;
  width: auto;
  min-width: 132px;
  min-height: 40px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
}

.seller-management-actions svg,
.seller-management-list-head .primary-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.seller-management-actions .secondary-button {
  border-color: #d9ddd6;
  color: #242824;
  background: #fff;
}

.seller-store-summary,
.seller-management-list,
.seller-trust-strip {
  border: 1px solid #e3e6e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 24, 18, 0.045);
}

.seller-store-summary {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(510px, 1.25fr);
  gap: 22px;
  padding: 20px 22px;
}

.seller-store-profile {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.seller-management-avatar {
  position: relative;
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #090b0a;
  box-shadow: 0 8px 20px rgba(12, 14, 12, 0.14);
  font-size: 28px;
  font-weight: 950;
}

.seller-management-avatar img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  object-fit: cover;
}

.seller-management-avatar > span {
  position: absolute;
  right: 1px;
  bottom: 3px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #96ec21;
}

.seller-management-avatar > span::after {
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.seller-store-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.seller-store-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.seller-store-title h4 {
  margin: 0;
  color: #111411;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1;
}

.seller-store-plan {
  padding: 5px 8px;
  border-radius: 5px;
  color: #77550a;
  background: #fff4cc;
  font-size: 9px;
  font-weight: 850;
}

.seller-store-location,
.seller-store-description {
  margin: 0;
  color: #6a7068;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.seller-store-location b {
  padding: 0 3px;
  color: #adb1ac;
}

.seller-store-description {
  max-width: 390px;
  color: #535a52;
}

.seller-store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.seller-store-meta > span {
  display: inline-flex;
  min-height: 25px;
  gap: 5px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e5e8e2;
  border-radius: 5px;
  color: #545b53;
  background: #fafbf9;
  font-size: 8px;
  font-weight: 750;
}

.seller-store-meta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.seller-management-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seller-management-metrics .seller-management-metric {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-width: 0;
  min-height: 98px;
  gap: 3px 8px;
  align-content: center;
  align-items: center;
  padding: 10px;
  border: 1px solid #e6e9e3;
  border-radius: 8px;
  color: #666d64;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(20, 24, 18, 0.025);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.seller-management-metrics .seller-management-metric:hover,
.seller-management-metrics .seller-management-metric:focus-visible {
  border-color: #a4dc50;
  background: #fbfff6;
  transform: translateY(-1px);
}

.seller-management-metrics .seller-management-metric strong {
  margin: 0;
  color: #111411;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 950;
  line-height: 1;
}

.seller-management-metrics .seller-management-metric > span {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #626961;
  background: transparent;
  font-size: 9px;
  font-weight: 750;
}

.seller-management-metrics .seller-management-metric small {
  grid-column: 1 / -1;
  color: #65a800;
  font-size: 8px;
  font-weight: 900;
}

.seller-metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  color: #4c9200;
  background: #eeffdb;
}

.seller-metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.seller-management-metric.is-sold .seller-metric-icon {
  color: #9a6600;
  background: #fff4d9;
}

.seller-management-metric.is-slots .seller-metric-icon,
.seller-management-metric.is-orders .seller-metric-icon {
  color: #286078;
  background: #e9f7fc;
}

.seller-management-metric.is-remaining .seller-metric-icon {
  color: #6c42ac;
  background: #f3eaff;
}

.seller-management-metric.is-removed .seller-metric-icon {
  color: #b83737;
  background: #ffe9e9;
}

.seller-management-metric.is-messages .seller-metric-icon {
  color: #2c8a3e;
  background: #e5ffe9;
}

.seller-management-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.seller-management-list-head {
  align-items: center;
  padding: 14px 0;
  border: 0;
  background: #f7f8f5;
}

.seller-management-list-head strong {
  color: #171a17;
  font-size: 18px;
}

.seller-management-list-head span {
  margin-top: 4px;
  color: #71766f;
  font-size: 10px;
  font-weight: 650;
}

.seller-management-list-head .primary-button {
  min-width: 176px;
}

.seller-listing-toolbar {
  display: flex;
  min-height: 54px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e6e9e3;
}

.seller-listing-tabs {
  display: flex;
  align-self: stretch;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.seller-listing-tabs::-webkit-scrollbar {
  display: none;
}

.seller-listing-tabs button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  color: #6e746d;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.seller-listing-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.seller-listing-tabs button.active {
  color: #61a600;
}

.seller-listing-tabs button.active::after {
  background: #8fe523;
}

.seller-listing-tabs button span {
  display: inline;
  color: inherit;
  font-weight: inherit;
}

.seller-listing-sort select {
  min-height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #e4e7e1;
  border-radius: 6px;
  color: #343934;
  background-color: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
}

.seller-listing-table {
  display: grid;
}

.seller-listing-row {
  display: grid;
  grid-template-columns: 94px minmax(150px, 0.75fr) minmax(330px, 1.65fr) 138px 12px;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid #eef0ec;
  border-radius: 0;
  background: #fff;
}

.seller-listing-row:last-child {
  border-bottom: 0;
}

.seller-listing-row > img {
  width: 94px;
  height: 94px;
  border-radius: 8px;
  background: #eff2ec;
  object-fit: cover;
}

.seller-listing-primary {
  display: grid;
  min-width: 0;
  gap: 4px;
  align-content: center;
}

.seller-listing-primary > strong {
  overflow: hidden;
  color: #151815;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-listing-primary > span {
  color: #777c76;
  font-size: 9px;
  font-weight: 650;
}

.seller-listing-primary > b {
  color: #171a17;
  font-size: 13px;
  font-weight: 950;
}

.seller-listing-primary > .listing-status-chip {
  display: none;
}

.seller-listing-details {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.72fr 0.9fr;
  gap: 12px;
  margin: 0;
}

.seller-listing-details > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.seller-listing-details dt {
  color: #7f847e;
  font-size: 8px;
  font-weight: 650;
}

.seller-listing-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #292e29;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.3;
}

.listing-status-chip {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 18px;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  color: #2f4d11;
  background: #eaffcf;
  font-size: 8px;
  font-weight: 850;
  text-transform: none;
}

.listing-status-chip.sold_out {
  color: #384135;
  background: #e6e9e3;
}

.listing-status-chip.removed,
.listing-status-chip.rejected {
  color: #8d2727;
  background: #ffe2e2;
}

.seller-listing-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.seller-listing-actions .secondary-button {
  width: 100%;
  min-height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #294317;
  background: #efffe3;
  font-size: 8px;
  font-weight: 850;
}

.seller-listing-actions .secondary-button.edit {
  color: #2b4a19;
  background: #f3ffe9;
}

.seller-listing-actions .secondary-button.sold-out {
  color: #6a4b16;
  background: #fff4d9;
}

.seller-listing-actions .secondary-button.danger {
  color: #9b2d2d;
  background: #ffe8e8;
}

.seller-listing-actions .secondary-button:disabled {
  opacity: 0.45;
}

.seller-listing-more {
  color: #3d433d;
  font-size: 18px;
  line-height: 1;
}

.seller-management-list .seller-management-empty {
  margin: 20px;
}

.seller-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 14px;
  background: #f7ffec;
}

.seller-trust-strip > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
}

.seller-trust-strip i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #4f9c00;
  background: #e4ffc1;
}

.seller-trust-strip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.seller-trust-strip span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.seller-trust-strip strong {
  color: #202420;
  font-size: 10px;
}

.seller-trust-strip small {
  color: #6b7268;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 1260px) {
  .seller-store-summary {
    grid-template-columns: minmax(300px, 0.8fr) minmax(470px, 1.2fr);
    padding: 18px;
  }

  .seller-listing-row {
    grid-template-columns: 82px minmax(130px, 0.65fr) minmax(280px, 1.45fr) 124px 10px;
    gap: 11px;
    padding-inline: 16px;
  }

  .seller-listing-row > img {
    width: 82px;
    height: 82px;
  }

  .seller-listing-details {
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  .sell-band {
    grid-template-columns: 1fr;
  }

  .seller-store-summary {
    grid-template-columns: minmax(280px, 0.9fr) minmax(440px, 1.2fr);
  }
}

@media (max-width: 900px) {
  .seller-store-summary {
    grid-template-columns: 1fr;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .seller-listing-row {
    grid-template-columns: 82px minmax(0, 1fr) 130px;
  }

  .seller-listing-details {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .seller-listing-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .seller-listing-more {
    display: none;
  }

  .seller-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }
}

@media (max-width: 760px) {
  .sell-workspace {
    padding: 16px 12px 100px;
  }

  .seller-management-header {
    display: grid;
    gap: 12px;
  }

  .seller-management-header h3 {
    font-size: 26px;
  }

  .seller-management-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-management-actions .primary-button,
  .seller-management-actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .seller-store-profile {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .seller-management-avatar {
    width: 78px;
    height: 78px;
    font-size: 22px;
  }

  .seller-management-avatar > span {
    width: 23px;
    height: 23px;
  }

  .seller-store-summary {
    gap: 18px;
    padding: 15px;
  }

  .seller-store-title h4 {
    font-size: 20px;
  }

  .seller-management-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-management-metrics .seller-management-metric {
    min-height: 92px;
  }

  .seller-management-metrics .seller-management-metric:last-child {
    grid-column: auto;
  }

  .seller-management-list-head {
    display: flex;
    gap: 12px;
    padding-top: 4px;
  }

  .seller-management-list-head .primary-button {
    width: auto;
    min-width: 130px;
  }

  .seller-listing-toolbar {
    display: grid;
    gap: 10px;
    padding: 10px 14px;
  }

  .seller-listing-tabs {
    width: 100%;
    min-height: 38px;
    gap: 18px;
  }

  .seller-listing-sort,
  .seller-listing-sort select {
    width: 100%;
  }

  .seller-listing-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .seller-listing-row > img {
    width: 74px;
    height: 86px;
  }

  .seller-listing-primary > .listing-status-chip {
    display: inline-flex;
  }

  .seller-listing-details {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 0;
    border-top: 1px solid #ecefea;
    border-bottom: 1px solid #ecefea;
  }

  .seller-listing-details > div:last-child {
    display: none;
  }

  .seller-listing-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-listing-actions .secondary-button {
    min-height: 34px;
  }

  .seller-trust-strip {
    padding: 16px 8px;
  }

  .seller-trust-strip > div {
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .seller-store-profile {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .seller-management-avatar {
    width: 66px;
    height: 66px;
  }

  .seller-store-description,
  .seller-store-meta {
    grid-column: 1 / -1;
  }

  .seller-store-meta {
    display: grid;
  }

  .seller-store-meta > span {
    width: 100%;
  }

  .seller-management-metrics .seller-management-metric {
    min-height: 88px;
    padding: 9px;
  }

  .seller-management-list-head {
    align-items: center;
  }

  .seller-management-list-head .primary-button {
    min-width: 116px;
    padding-inline: 10px;
  }

  .seller-trust-strip {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="night"] .sell-workspace > .seller-management-panel {
  color: #f5f7f2;
  background: transparent;
}

:root[data-theme="night"] .seller-management-header h3,
:root[data-theme="night"] .seller-store-title h4,
:root[data-theme="night"] .seller-management-metrics .seller-management-metric strong,
:root[data-theme="night"] .seller-management-list-head strong,
:root[data-theme="night"] .seller-listing-primary > strong,
:root[data-theme="night"] .seller-listing-primary > b,
:root[data-theme="night"] .seller-listing-details dd,
:root[data-theme="night"] .seller-trust-strip strong {
  color: #f5f7f2;
}

:root[data-theme="night"] .seller-store-summary,
:root[data-theme="night"] .seller-management-list,
:root[data-theme="night"] .seller-listing-row,
:root[data-theme="night"] .seller-management-metrics .seller-management-metric {
  border-color: #323a2f;
  background: #141713;
}

:root[data-theme="night"] .seller-listing-toolbar,
:root[data-theme="night"] .seller-listing-row {
  border-color: #30372d;
}

:root[data-theme="night"] .seller-management-list-head {
  background: #0b0d0a;
}

:root[data-theme="night"] .seller-trust-strip {
  border-color: #34432c;
  background: #172013;
}

:root[data-theme="night"] .seller-store-location,
:root[data-theme="night"] .seller-store-description,
:root[data-theme="night"] .seller-management-header span,
:root[data-theme="night"] .seller-management-list-head span,
:root[data-theme="night"] .seller-listing-primary > span,
:root[data-theme="night"] .seller-listing-details dt,
:root[data-theme="night"] .seller-trust-strip small {
  color: #adb5a9;
}

/* Account page reference redesign. */
.profile-band {
  grid-template-columns: minmax(210px, 0.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px clamp(22px, 2.4vw, 38px) 18px;
  background: #fbfcfa;
}

.profile-band > .section-copy {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 11px;
  padding: 10px 4px 0 0;
}

.profile-band .section-copy .eyebrow {
  font-size: 12px;
  font-weight: 950;
}

.profile-band .section-copy h2 {
  max-width: 245px;
  color: #161916;
  font-size: clamp(27px, 2.55vw, 35px);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.profile-band .section-copy .section-help {
  max-width: 240px;
  color: #5f655d;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.profile-band .account-assurance {
  gap: 7px;
  margin-top: 5px;
}

.profile-band .account-assurance span {
  min-height: 42px;
  border-color: #e0e4dd;
  border-radius: 6px;
  font-size: 11px;
}

.profile-band .account-assurance span::before {
  width: 19px;
  height: 19px;
  border: 1px solid #81c522;
  background: #efffdb;
  box-shadow: inset 0 0 0 5px #efffdb;
}

.profile-card.has-account-dashboard .profile-preview {
  gap: 12px;
}

.account-shortcut-deck,
.account-profile-overview,
.account-lower-grid > *,
.account-trust-strip {
  border-color: #e5e8e1;
  border-radius: 7px;
  box-shadow: 0 6px 20px rgba(22, 28, 19, 0.045);
}

.account-shortcut-deck {
  gap: 10px;
  padding: 14px 16px 15px;
}

.account-shortcut-deck > p {
  font-size: 11px !important;
}

.account-shortcut-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.account-shortcut-grid button {
  grid-template-columns: 31px minmax(0, 1fr) auto 7px;
  gap: 8px;
  min-height: 69px;
  padding: 10px 11px;
  border-color: #e1e5de;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(22, 28, 19, 0.025);
}

.account-shortcut-grid svg {
  width: 25px;
  height: 25px;
  stroke: #4f9700;
}

.account-shortcut-grid strong {
  font-size: 11px;
}

.account-shortcut-grid small {
  font-size: 9px;
  line-height: 1.3;
}

.account-shortcut-grid b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 9px;
}

.account-profile-overview {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.8fr);
  min-height: 300px;
}

.account-identity-panel {
  align-content: start;
  gap: 13px;
  padding: 24px 18px;
}

.account-identity-panel .profile-identity {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.account-avatar-wrap {
  position: relative;
  width: 78px;
  height: 78px;
}

.account-identity-panel .profile-avatar {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e2e6de;
}

.account-avatar-verified {
  position: absolute;
  right: -2px;
  bottom: 1px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #17210e;
  background: #9af019;
  font-size: 11px;
  font-weight: 950;
}

.account-identity-panel h3 {
  max-width: 190px;
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.account-identity-panel p {
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

.account-plan-panel {
  padding: 11px;
  background: #fbfcfa;
}

.account-plan-panel .seller-plan-dashboard {
  align-content: start;
  gap: 8px;
  padding: 15px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(145deg, #080a08, #10130f);
}

.seller-plan-header {
  align-items: center;
}

.seller-plan-header .eyebrow {
  margin-bottom: 5px;
  color: #8fe519;
  font-size: 9px;
}

.seller-plan-title-row {
  display: flex;
  gap: 9px;
  align-items: center;
}

.seller-plan-header h4 {
  font-size: 22px;
}

.seller-plan-header p {
  margin-top: 6px;
  color: #aab0a7;
  font-size: 9px;
}

.seller-plan-badge {
  min-height: 21px;
  padding: 0 9px;
  color: #21310e;
  background: #b9f85d;
  font-size: 9px;
}

.seller-plan-store-button {
  display: inline-flex;
  min-height: 37px;
  gap: 7px;
  align-items: center;
  padding-inline: 14px;
  border-color: #527d18;
  font-size: 10px;
}

.seller-plan-store-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-plan-panel .seller-plan-meter {
  display: none;
}

.account-plan-panel .seller-plan-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.account-plan-panel .seller-plan-benefits span {
  position: relative;
  grid-template-columns: 27px minmax(0, 1fr) 7px;
  gap: 2px 8px;
  min-height: 65px;
  align-content: center;
  padding: 8px 9px;
  border: 1px solid #2d332b;
  border-radius: 6px;
  background: #111410;
}

.account-plan-panel .seller-plan-benefits span:nth-child(4) {
  grid-column: span 1;
}

.account-plan-panel .seller-plan-benefits span > b {
  grid-row: 1 / span 2;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #9ae52f;
  background: #192314;
}

.account-plan-panel .seller-plan-benefits span > b::after {
  display: none;
}

.account-plan-panel .seller-plan-benefits svg,
.seller-momo-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-plan-panel .seller-plan-benefits strong {
  font-size: 10px;
  line-height: 1.1;
}

.account-plan-panel .seller-plan-benefits small {
  font-size: 8px;
}

.account-plan-panel .seller-plan-benefits i {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 6px;
  height: 6px;
  align-self: center;
  border-top: 1px solid #9ba298;
  border-right: 1px solid #9ba298;
  transform: rotate(45deg);
}

.account-plan-panel .seller-plan-benefits .seller-momo-status {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  grid-column: span 2;
  gap: 8px;
  align-items: center;
  min-height: 57px;
  padding: 8px 10px;
  border: 1px solid #2d332b;
  border-radius: 6px;
  background: #111410;
}

.account-plan-panel .seller-momo-status > b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #9ae52f;
  background: #192314;
}

.account-plan-panel .seller-plan-benefits .seller-momo-status > span {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-plan-panel .seller-momo-status strong {
  color: #fff;
  font-size: 10px;
}

.account-plan-panel .seller-momo-status small {
  color: #aab0a7;
  font-size: 8px;
}

.account-plan-panel .seller-plan-benefits .seller-momo-status > i {
  grid-column: auto;
  grid-row: auto;
  width: auto;
  height: auto;
  border: 0;
  color: #9be928;
  font-size: 11px;
  font-style: normal;
  transform: none;
}

.account-plan-panel .seller-plan-button {
  min-height: 36px;
  gap: 8px;
  border-radius: 5px;
  color: #14200a;
  background: linear-gradient(90deg, #95e715, #b6ff4d);
  font-size: 10px;
}

.account-lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(225px, 0.56fr);
  gap: 10px;
}

.account-lower-grid .saved-pieces-panel {
  padding: 12px;
}

.account-lower-grid .saved-pieces-heading h4 {
  font-size: 16px;
}

.account-lower-grid .saved-pieces-heading .eyebrow {
  font-size: 8px;
}

.account-panel-heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.account-panel-heading-actions > span {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  color: #19240d;
  background: #aaf33b;
  font-size: 8px;
  font-weight: 950;
}

.account-panel-heading-actions > button {
  padding: 0;
  border: 0;
  color: #579900;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.account-lower-grid .empty-state.compact.account-panel-empty {
  display: grid;
  min-height: 107px;
  place-content: center;
  gap: 3px;
  padding: 12px;
  color: #656c63;
  background: #fff;
  text-align: center;
}

.account-panel-empty svg {
  width: 32px;
  height: 32px;
  margin: 0 auto 4px;
  fill: none;
  stroke: #c5d1ba;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.account-panel-empty strong {
  color: #4e554c;
  font-size: 10px;
}

.account-panel-empty span {
  font-size: 8px;
}

.account-quick-actions {
  padding: 8px;
}

.account-quick-actions .account-dashboard-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.account-quick-actions .account-dashboard-actions > button {
  min-width: 0;
  min-height: 58px;
  gap: 5px;
  padding: 7px 5px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1.15;
}

.account-quick-actions .account-dashboard-actions > button svg {
  width: 18px;
  height: 18px;
}

.account-quick-actions .account-dashboard-actions > button:nth-child(3) {
  grid-column: auto;
}

.account-quick-actions .account-dashboard-actions > .account-action-edit,
.account-quick-actions .account-dashboard-actions > .account-action-switch {
  grid-column: 1 / -1;
  min-height: 37px;
  flex-direction: row;
  color: #fff;
  background: #111;
}

.account-quick-actions .account-dashboard-actions > .account-action-switch {
  color: #171a17;
  background: #fff;
}

.account-trust-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 13px 16px;
  background: #f8ffef;
}

.account-trust-strip > div {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 0 14px;
}

.account-trust-strip > div:first-child {
  padding-left: 0;
}

.account-trust-strip > div:last-child {
  padding-right: 0;
}

.account-trust-strip i {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  color: #4f9700;
  background: #e1ffba;
}

.account-trust-strip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-trust-strip span {
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
}

.account-trust-strip strong {
  font-size: 10px;
}

.account-trust-strip small {
  font-size: 8px;
}

@media (max-width: 1120px) {
  .profile-band {
    grid-template-columns: 1fr;
  }

  .profile-band > .section-copy {
    position: static;
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
    gap: 8px 22px;
    padding: 0;
  }

  .profile-band .section-copy .eyebrow,
  .profile-band .section-copy h2 {
    grid-column: 1;
  }

  .profile-band .section-copy .section-help,
  .profile-band .account-assurance {
    grid-column: 2;
  }

  .profile-band .section-copy .section-help {
    grid-row: 1 / span 2;
    max-width: none;
  }

  .profile-band .account-assurance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-shortcut-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .account-shortcut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-profile-overview {
    grid-template-columns: 1fr;
  }

  .account-identity-panel {
    border-right: 0;
    border-bottom: 1px solid #e5e7e2;
  }

  .account-lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-quick-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .profile-band {
    gap: 14px;
    padding: 16px 12px 92px;
  }

  .profile-band > .section-copy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-band .section-copy .eyebrow,
  .profile-band .section-copy h2,
  .profile-band .section-copy .section-help,
  .profile-band .account-assurance {
    grid-column: 1;
    grid-row: auto;
  }

  .profile-band .section-copy h2,
  .profile-band .section-copy .section-help {
    max-width: none;
  }

  .profile-band .account-assurance {
    grid-template-columns: 1fr;
  }

  .account-shortcut-grid {
    grid-template-columns: 1fr;
  }

  .account-shortcut-grid button {
    min-height: 62px;
  }

  .account-plan-panel .seller-plan-benefits {
    grid-template-columns: 1fr;
  }

  .account-plan-panel .seller-plan-benefits span:nth-child(4) {
    grid-column: auto;
  }

  .account-plan-panel .seller-plan-benefits .seller-momo-status {
    grid-column: auto;
  }

  .account-lower-grid,
  .account-trust-strip {
    grid-template-columns: 1fr;
  }

  .account-quick-actions {
    grid-column: auto;
  }

  .account-trust-strip > div,
  .account-trust-strip > div:first-child,
  .account-trust-strip > div:last-child {
    padding: 10px 0;
    border-bottom: 1px solid #dfe8d5;
  }

  .account-trust-strip > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .account-identity-panel {
    padding: 20px 15px;
  }

  .account-identity-panel .profile-identity {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .account-avatar-wrap,
  .account-identity-panel .profile-avatar {
    width: 66px;
    height: 66px;
  }

  .seller-plan-header,
  .seller-plan-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-quick-actions .account-dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

:root[data-theme="night"] .profile-band {
  background: #0b0d0a;
}

:root[data-theme="night"] .profile-band .section-copy h2 {
  color: #f5f7f2;
}

:root[data-theme="night"] .profile-band .account-assurance span,
:root[data-theme="night"] .account-shortcut-deck,
:root[data-theme="night"] .account-profile-overview,
:root[data-theme="night"] .account-lower-grid > *,
:root[data-theme="night"] .account-trust-strip {
  border-color: #31382e;
  background: #141713;
}

:root[data-theme="night"] .account-plan-panel {
  background: #0d100c;
}

:root[data-theme="night"] .account-trust-strip {
  background: #172013;
}

:root[data-theme="night"] .account-quick-actions .account-dashboard-actions > .account-action-switch {
  border-color: #4b5348;
  color: #f5f7f2;
  background: #171a16;
}
/* Create Store — five-step seller onboarding. */
.profile-band.is-store-setup {
  display: block;
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 3vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 2%, rgba(156, 255, 34, 0.08), transparent 25%),
    #050605;
}

.profile-band.is-store-setup > .section-copy,
.profile-band.is-store-setup .profile-preview,
.profile-band.is-store-setup .profile-form > *:not(.seller-store-fields) {
  display: none !important;
}

.profile-band.is-store-setup .profile-stack,
.profile-band.is-store-setup .profile-card,
.profile-band.is-store-setup .profile-form,
.profile-band.is-store-setup .seller-store-fields {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.profile-band.is-store-setup .profile-stack {
  display: block;
}

.profile-band.is-store-setup .profile-card,
.profile-band.is-store-setup .profile-card.has-account-dashboard {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-band.is-store-setup .profile-form:not([hidden]),
.profile-band.is-store-setup .profile-card.has-account-dashboard .profile-form:not([hidden]) {
  display: block;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.profile-band.is-store-setup .seller-store-fields {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
}

.create-store-header {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  width: min(1440px, 100%);
  margin: 0 auto 26px;
}

.create-store-header > div {
  display: grid;
  gap: 7px;
}

.create-store-header .eyebrow {
  margin: 0;
  color: #9cff22;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.create-store-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.create-store-header p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
}

.create-store-account-back,
.create-store-back,
.create-store-next,
.create-store-publish {
  display: inline-flex;
  min-height: 48px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  color: #fff;
  background: #121312;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.create-store-account-back svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.create-store-account-back:hover,
.create-store-back:hover {
  border-color: rgba(156, 255, 34, 0.55);
  background: #181a17;
  transform: translateY(-1px);
}

.create-store-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.create-store-rail,
.create-store-stage,
.create-store-trust-strip {
  border: 1px solid rgba(255, 255, 255, 0.095);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.create-store-rail {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  background: #0d0e0d;
}

.create-store-stepper {
  position: relative;
  display: grid;
  gap: 4px;
}

.create-store-stepper::before {
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 21px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.create-store-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.48);
  text-align: left;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.create-store-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: #161716;
  font-size: 12px;
  font-weight: 900;
}

.create-store-step > strong {
  display: grid;
  gap: 3px;
}

.create-store-step strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.15;
}

.create-store-step small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  line-height: 1.25;
}

.create-store-step.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.create-store-step.is-active > span {
  border-color: #9cff22;
  color: #050605;
  background: #9cff22;
  box-shadow: 0 0 0 6px rgba(156, 255, 34, 0.08);
}

.create-store-step.is-complete {
  color: rgba(255, 255, 255, 0.82);
}

.create-store-step.is-complete > span {
  border-color: rgba(156, 255, 34, 0.48);
  color: #9cff22;
  background: #121710;
}

.create-store-step.is-complete > span::before {
  content: "✓";
}

.create-store-step.is-complete > span {
  font-size: 0;
}

.create-store-step.is-complete > span::before {
  font-size: 13px;
}

.create-store-help-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(156, 255, 34, 0.16);
  border-radius: 18px;
  background: rgba(156, 255, 34, 0.055);
}

.create-store-help-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(156, 255, 34, 0.5);
  border-radius: 50%;
  color: #9cff22;
  font-weight: 900;
}

.create-store-help-card div {
  display: grid;
  gap: 5px;
}

.create-store-help-card strong {
  color: #fff;
  font-size: 12px;
}

.create-store-help-card small,
.create-store-help-card a {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.45;
}

.create-store-help-card a {
  color: #9cff22;
  font-weight: 800;
  text-decoration: none;
}

.create-store-stage {
  overflow: hidden;
  border-radius: 28px;
  background: #101110;
}

.create-store-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.create-store-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: #9cff22;
  box-shadow: 0 0 16px rgba(156, 255, 34, 0.45);
  transition: width 240ms ease;
}

.create-store-panel {
  min-height: 590px;
  padding: clamp(28px, 4vw, 56px);
}

.create-store-panel-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

.create-store-panel-heading > div {
  display: grid;
  gap: 7px;
}

.create-store-panel-heading p {
  margin: 0;
  color: #9cff22;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.create-store-panel-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.create-store-panel-heading span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.create-store-panel-heading > b {
  color: rgba(255, 255, 255, 0.06);
  font-size: clamp(50px, 6vw, 78px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.create-store-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.create-store-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: #fff;
}

.create-store-field.wide {
  grid-column: 1 / -1;
}

.create-store-field > span:first-child {
  display: grid;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.create-store-field > span:first-child small,
.create-store-field > small,
.create-store-field > em {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.create-store-field > em.is-ready {
  color: #9cff22;
}

.create-store-field input,
.create-store-field select,
.create-store-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  outline: 0;
  color: #fff;
  background: #181918;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.create-store-field textarea {
  min-height: 122px;
  padding-top: 14px;
  resize: vertical;
}

.create-store-field input::placeholder,
.create-store-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.27);
}

.create-store-field input:focus,
.create-store-field select:focus,
.create-store-field textarea:focus {
  border-color: #9cff22;
  background: #1b1d1a;
  box-shadow: 0 0 0 4px rgba(156, 255, 34, 0.1);
}

.create-store-field select {
  color-scheme: dark;
}

.create-store-counter {
  justify-self: end;
  margin-top: -3px;
}

.create-store-handle-input,
.create-store-money-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: #181918;
}

.create-store-handle-input:focus-within,
.create-store-money-input:focus-within {
  border-color: #9cff22;
  box-shadow: 0 0 0 4px rgba(156, 255, 34, 0.1);
}

.create-store-handle-input b,
.create-store-money-input b {
  flex: 0 0 auto;
  padding: 0 0 0 16px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 750;
}

.create-store-handle-input input,
.create-store-money-input input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.create-store-money-input b {
  color: #9cff22;
}

.create-store-field.is-disabled {
  opacity: 0.45;
}

.create-store-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.create-store-upload-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #151615;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.create-store-upload-card:hover {
  border-color: #9cff22;
  background: #191b18;
  transform: translateY(-2px);
}

.create-store-upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.create-store-upload-card > span:nth-child(2) {
  display: grid;
  gap: 6px;
}

.create-store-upload-card strong {
  color: #fff;
  font-size: 13px;
}

.create-store-upload-card small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.4;
}

.create-store-upload-card > b {
  grid-column: 2;
  width: max-content;
  padding-bottom: 2px;
  border-bottom: 1px solid #9cff22;
  color: #9cff22;
  font-size: 10px;
}

.create-store-upload-preview {
  grid-row: 1 / span 2;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9cff22;
  background: #0b0c0b;
}

.create-store-upload-preview.logo {
  border-radius: 50%;
}

.create-store-upload-preview.cover {
  border-radius: 14px;
}

.create-store-upload-preview svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.create-store-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-store-live-preview {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #f7f8f5;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.create-store-preview-cover {
  display: grid;
  min-height: 170px;
  place-items: center;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(135deg, rgba(156, 255, 34, 0.23), transparent 44%),
    #e8ebe4;
  font-size: 11px;
  font-weight: 800;
}

.create-store-preview-cover img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.create-store-preview-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0 22px 22px;
  color: #080908;
}

.create-store-preview-logo,
.create-store-review-logo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 5px solid #f7f8f5;
  border-radius: 50%;
  color: #070807;
  background: #9cff22;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  font-size: 24px;
  font-weight: 950;
}

.create-store-preview-logo {
  margin-top: -26px;
}

.create-store-preview-logo img,
.create-store-review-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-store-preview-body > div {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.create-store-preview-body strong {
  font-size: 18px;
  letter-spacing: -0.025em;
}

.create-store-preview-body small {
  color: rgba(0, 0, 0, 0.48);
  font-size: 10px;
}

.create-store-preview-body p {
  max-width: 650px;
  margin: 5px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  line-height: 1.45;
}

.create-store-secure-note,
.create-store-connected-payout,
.create-store-publish-note {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 24px;
  padding: 15px 17px;
  border: 1px solid rgba(156, 255, 34, 0.2);
  border-radius: 17px;
  background: rgba(156, 255, 34, 0.055);
}

.create-store-secure-note svg {
  width: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9cff22;
  stroke-width: 1.8;
}

.create-store-secure-note span,
.create-store-connected-payout div {
  display: grid;
  gap: 3px;
}

.create-store-secure-note strong,
.create-store-connected-payout strong {
  color: #fff;
  font-size: 11px;
}

.create-store-secure-note small,
.create-store-connected-payout small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.create-store-connected-payout > span,
.create-store-publish-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #050605;
  background: #9cff22;
  font-weight: 950;
}

.create-store-toggle-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.create-store-toggle {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: #151615;
  cursor: pointer;
}

.create-store-toggle > span {
  display: grid;
  gap: 4px;
}

.create-store-toggle strong {
  color: #fff;
  font-size: 12px;
}

.create-store-toggle small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.create-store-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.create-store-toggle i {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: #2a2c29;
  transition: background 160ms ease, border-color 160ms ease;
}

.create-store-toggle i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.create-store-toggle input:checked + i {
  border-color: #9cff22;
  background: #9cff22;
}

.create-store-toggle input:checked + i::after {
  background: #050605;
  transform: translateX(20px);
}

.create-store-toggle input:focus-visible + i {
  outline: 3px solid rgba(156, 255, 34, 0.28);
  outline-offset: 3px;
}

.create-store-review-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #151615;
}

.create-store-review-card > header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.create-store-review-logo {
  width: 62px;
  height: 62px;
  border-width: 3px;
  border-color: #151615;
  font-size: 21px;
}

.create-store-review-card header > div {
  display: grid;
  gap: 3px;
}

.create-store-review-card header strong {
  color: #fff;
  font-size: 18px;
}

.create-store-review-card header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.create-store-review-card header button {
  padding: 8px 12px;
  border: 1px solid rgba(156, 255, 34, 0.3);
  border-radius: 10px;
  color: #9cff22;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.create-store-review-card > p {
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.55;
}

.create-store-review-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.create-store-review-card dl > div {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.create-store-review-card dl > div:nth-child(odd) {
  padding-right: 20px;
}

.create-store-review-card dt {
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.create-store-review-card dd {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.create-store-publish-note {
  margin: 16px 0 0;
}

.create-store-publish-note p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  line-height: 1.4;
}

.create-store-publish-note strong {
  color: #fff;
  font-size: 11px;
}

.create-store-actions {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #0c0d0c;
}

.create-store-actions > span {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  font-weight: 800;
}

.create-store-back {
  grid-column: 1;
  justify-self: start;
}

.create-store-next,
.create-store-publish {
  grid-column: 3;
  justify-self: end;
  min-width: 154px;
  border-color: #9cff22;
  color: #060706;
  background: #9cff22;
  box-shadow: 0 12px 28px rgba(156, 255, 34, 0.14);
}

.create-store-publish {
  min-width: 220px;
  min-height: 56px;
  font-size: 14px;
}

.create-store-next:hover,
.create-store-publish:hover {
  color: #060706;
  background: #afff48;
  transform: translateY(-1px);
}

.create-store-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1440px, 100%);
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 22px;
  background: #0d0e0d;
}

.create-store-trust-strip > span {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2px 11px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.create-store-trust-strip > span:last-child {
  border-right: 0;
}

.create-store-trust-strip b {
  grid-row: 1 / span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #080908;
  background: #9cff22;
  font-size: 13px;
}

.create-store-trust-strip strong {
  color: #fff;
  font-size: 11px;
}

.create-store-trust-strip small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  line-height: 1.35;
}

.create-store-step:focus-visible,
.create-store-account-back:focus-visible,
.create-store-back:focus-visible,
.create-store-next:focus-visible,
.create-store-publish:focus-visible,
.create-store-review-card button:focus-visible,
.create-store-upload-card:focus-within {
  outline: 3px solid rgba(156, 255, 34, 0.34);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .profile-band.is-store-setup {
    padding: 24px;
  }

  .create-store-layout {
    grid-template-columns: 1fr;
  }

  .create-store-rail {
    position: static;
    padding: 12px;
  }

  .create-store-stepper {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .create-store-stepper::before,
  .create-store-step small {
    display: none;
  }

  .create-store-step {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 54px;
  }

  .create-store-step > span {
    width: 34px;
    height: 34px;
  }

  .create-store-help-card {
    display: none;
  }
}

@media (max-width: 720px) {
  .profile-band.is-store-setup {
    min-height: calc(100vh - 62px);
    padding: 18px 14px 28px;
  }

  .create-store-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
  }

  .create-store-header h2 {
    font-size: 36px;
  }

  .create-store-account-back {
    min-height: 42px;
  }

  .create-store-rail,
  .create-store-stage,
  .create-store-trust-strip {
    border-radius: 20px;
  }

  .create-store-stepper {
    grid-template-columns: repeat(5, minmax(50px, 1fr));
  }

  .create-store-step {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-width: 52px;
    padding: 6px 2px;
  }

  .create-store-step > strong {
    display: none;
  }

  .create-store-panel {
    min-height: 0;
    padding: 28px 20px;
  }

  .create-store-panel-heading {
    margin-bottom: 26px;
  }

  .create-store-panel-heading > b {
    display: none;
  }

  .create-store-panel-heading h3 {
    font-size: 29px;
  }

  .create-store-fields-grid,
  .create-store-upload-grid,
  .create-store-review-card dl {
    grid-template-columns: 1fr;
  }

  .create-store-field.wide {
    grid-column: auto;
  }

  .create-store-handle-input {
    align-items: stretch;
    flex-direction: column;
  }

  .create-store-handle-input b {
    padding: 11px 14px 0;
  }

  .create-store-upload-card {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 110px;
  }

  .create-store-upload-preview {
    width: 62px;
    height: 62px;
  }

  .create-store-preview-cover,
  .create-store-preview-cover img {
    min-height: 125px;
    height: 125px;
  }

  .create-store-preview-body {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 0 16px 18px;
  }

  .create-store-preview-logo {
    width: 58px;
    height: 58px;
  }

  .create-store-review-card {
    padding: 18px;
  }

  .create-store-review-card > header {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .create-store-review-card header button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .create-store-review-logo {
    width: 52px;
    height: 52px;
  }

  .create-store-review-card dl > div:nth-child(odd) {
    padding-right: 0;
  }

  .create-store-actions {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 18px 18px;
  }

  .create-store-actions > span {
    grid-row: 1;
    grid-column: 1 / -1;
    justify-self: center;
  }

  .create-store-back {
    grid-row: 2;
    grid-column: 1;
  }

  .create-store-next,
  .create-store-publish {
    grid-row: 2;
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  .create-store-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-store-trust-strip > span {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .create-store-trust-strip > span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .create-store-header p:not(.eyebrow) {
    font-size: 12px;
  }

  .create-store-panel {
    padding: 24px 16px;
  }

  .create-store-field input,
  .create-store-field select,
  .create-store-field textarea {
    font-size: 16px;
  }

  .create-store-toggle {
    padding: 14px;
  }

  .create-store-actions {
    grid-template-columns: 1fr;
  }

  .create-store-back,
  .create-store-next,
  .create-store-publish {
    grid-column: 1;
    justify-self: stretch;
  }

  .create-store-back {
    grid-row: 2;
  }

  .create-store-next,
  .create-store-publish {
    grid-row: 3;
  }

  .create-store-trust-strip {
    grid-template-columns: 1fr;
  }

  .create-store-trust-strip > span,
  .create-store-trust-strip > span:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .create-store-trust-strip > span:last-child {
    border-bottom: 0;
  }
}

:root[data-theme="night"] .profile-band.is-store-setup {
  background:
    radial-gradient(circle at 82% 2%, rgba(156, 255, 34, 0.08), transparent 25%),
    #050605;
}

.create-store-fulfilment {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.create-store-fulfilment legend {
  margin-bottom: 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.create-store-fulfilment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.create-store-fulfilment-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.create-store-fulfilment-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.create-store-fulfilment-options span {
  display: grid;
  min-height: 92px;
  gap: 6px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: #fff;
  background: #151615;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.create-store-fulfilment-options b {
  font-size: 12px;
}

.create-store-fulfilment-options small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.4;
}

.create-store-fulfilment-options input:checked + span {
  border-color: #9cff22;
  color: #080908;
  background: #9cff22;
  box-shadow: 0 12px 26px rgba(156, 255, 34, 0.12);
  transform: translateY(-1px);
}

.create-store-fulfilment-options input:checked + span small {
  color: rgba(0, 0, 0, 0.6);
}

.create-store-fulfilment-options input:focus-visible + span {
  outline: 3px solid rgba(156, 255, 34, 0.34);
  outline-offset: 3px;
}

.create-store-settings-block {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: #151615;
}

.create-store-settings-block[hidden] {
  display: none;
}

.create-store-settings-block > header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.create-store-settings-block > header > div {
  display: grid;
  gap: 4px;
}

.create-store-settings-block > header strong {
  color: #fff;
  font-size: 13px;
}

.create-store-settings-block > header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1.4;
}

.create-store-settings-block > header > span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #0a0b09;
  background: #9cff22;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.create-store-fee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.create-store-settings-block .create-store-toggle {
  margin-top: 0;
  background: #101110;
}

.create-store-processing-field {
  max-width: 430px;
  margin-top: 22px;
}

:root[data-theme="day"] .profile-band.is-store-setup {
  color: #0a0b09;
  background:
    radial-gradient(circle at 82% 2%, rgba(156, 255, 34, 0.2), transparent 25%),
    #f4f6f1;
}

:root[data-theme="day"] .profile-band.is-store-setup .profile-form:not([hidden]),
:root[data-theme="day"] .profile-band.is-store-setup .profile-card.has-account-dashboard .profile-form:not([hidden]),
:root[data-theme="day"] .profile-band.is-store-setup .seller-store-fields {
  color: #0a0b09;
}

:root[data-theme="day"] .create-store-header h2,
:root[data-theme="day"] .create-store-panel-heading h3,
:root[data-theme="day"] .create-store-field,
:root[data-theme="day"] .create-store-field > span:first-child,
:root[data-theme="day"] .create-store-upload-card strong,
:root[data-theme="day"] .create-store-secure-note strong,
:root[data-theme="day"] .create-store-connected-payout strong,
:root[data-theme="day"] .create-store-toggle strong,
:root[data-theme="day"] .create-store-review-card header strong,
:root[data-theme="day"] .create-store-review-card dd,
:root[data-theme="day"] .create-store-publish-note strong,
:root[data-theme="day"] .create-store-trust-strip strong,
:root[data-theme="day"] .create-store-help-card strong,
:root[data-theme="day"] .create-store-fulfilment legend,
:root[data-theme="day"] .create-store-settings-block > header strong {
  color: #0a0b09;
}

:root[data-theme="day"] .create-store-header p:not(.eyebrow),
:root[data-theme="day"] .create-store-panel-heading span,
:root[data-theme="day"] .create-store-field > span:first-child small,
:root[data-theme="day"] .create-store-field > small,
:root[data-theme="day"] .create-store-field > em,
:root[data-theme="day"] .create-store-upload-card small,
:root[data-theme="day"] .create-store-secure-note small,
:root[data-theme="day"] .create-store-connected-payout small,
:root[data-theme="day"] .create-store-toggle small,
:root[data-theme="day"] .create-store-review-card header small,
:root[data-theme="day"] .create-store-review-card > p,
:root[data-theme="day"] .create-store-review-card dt,
:root[data-theme="day"] .create-store-publish-note p,
:root[data-theme="day"] .create-store-trust-strip small,
:root[data-theme="day"] .create-store-help-card small,
:root[data-theme="day"] .create-store-settings-block > header small {
  color: rgba(10, 11, 9, 0.54);
}

:root[data-theme="day"] .create-store-panel-heading > b {
  color: rgba(10, 11, 9, 0.055);
}

:root[data-theme="day"] .create-store-account-back,
:root[data-theme="day"] .create-store-back {
  border-color: #d9ded4;
  color: #0a0b09;
  background: #fff;
}

:root[data-theme="day"] .create-store-account-back:hover,
:root[data-theme="day"] .create-store-back:hover {
  border-color: #9cff22;
  background: #f5ffe9;
}

:root[data-theme="day"] .create-store-rail,
:root[data-theme="day"] .create-store-stage,
:root[data-theme="day"] .create-store-trust-strip {
  border-color: #dde1d9;
  background: #fff;
  box-shadow: 0 24px 64px rgba(23, 31, 18, 0.09);
}

:root[data-theme="day"] .create-store-stepper::before,
:root[data-theme="day"] .create-store-review-card > p,
:root[data-theme="day"] .create-store-review-card dl > div,
:root[data-theme="day"] .create-store-actions,
:root[data-theme="day"] .create-store-trust-strip > span {
  border-color: #e1e5dd;
}

:root[data-theme="day"] .create-store-step {
  color: rgba(10, 11, 9, 0.55);
}

:root[data-theme="day"] .create-store-step > span {
  border-color: #d8ddd3;
  color: #4e554a;
  background: #f1f3ef;
}

:root[data-theme="day"] .create-store-step small {
  color: rgba(10, 11, 9, 0.43);
}

:root[data-theme="day"] .create-store-step.is-active {
  color: #0a0b09;
  background: #f1f4ee;
}

:root[data-theme="day"] .create-store-step.is-complete {
  color: #20241e;
}

:root[data-theme="day"] .create-store-step.is-complete > span {
  background: #efffde;
}

:root[data-theme="day"] .create-store-help-card,
:root[data-theme="day"] .create-store-secure-note,
:root[data-theme="day"] .create-store-connected-payout,
:root[data-theme="day"] .create-store-publish-note {
  border-color: rgba(94, 167, 10, 0.23);
  background: #f3ffe5;
}

:root[data-theme="day"] .create-store-progress {
  background: #e9ece6;
}

:root[data-theme="day"] .create-store-field input,
:root[data-theme="day"] .create-store-field select,
:root[data-theme="day"] .create-store-field textarea,
:root[data-theme="day"] .create-store-handle-input,
:root[data-theme="day"] .create-store-money-input {
  border-color: #d9ded5;
  color: #0a0b09;
  background: #fbfcfa;
}

:root[data-theme="day"] .create-store-field input::placeholder,
:root[data-theme="day"] .create-store-field textarea::placeholder,
:root[data-theme="day"] .create-store-handle-input b {
  color: rgba(10, 11, 9, 0.36);
}

:root[data-theme="day"] .create-store-field input:focus,
:root[data-theme="day"] .create-store-field select:focus,
:root[data-theme="day"] .create-store-field textarea:focus {
  background: #fff;
}

:root[data-theme="day"] .create-store-field select {
  color-scheme: light;
}

:root[data-theme="day"] .create-store-upload-card,
:root[data-theme="day"] .create-store-toggle,
:root[data-theme="day"] .create-store-review-card,
:root[data-theme="day"] .create-store-settings-block,
:root[data-theme="day"] .create-store-fulfilment-options span {
  border-color: #dce1d8;
  color: #0a0b09;
  background: #fbfcfa;
}

:root[data-theme="day"] .create-store-upload-card:hover {
  background: #f6ffe9;
}

:root[data-theme="day"] .create-store-upload-preview {
  border-color: #dce1d8;
  background: #eef1eb;
}

:root[data-theme="day"] .create-store-review-logo {
  border-color: #fbfcfa;
}

:root[data-theme="day"] .create-store-toggle i {
  border-color: #cbd1c6;
  background: #dfe3dc;
}

:root[data-theme="day"] .create-store-actions {
  background: #f8faf6;
}

:root[data-theme="day"] .create-store-actions > span {
  color: rgba(10, 11, 9, 0.48);
}

:root[data-theme="day"] .create-store-trust-strip b {
  color: #080908;
}

:root[data-theme="day"] .create-store-fulfilment-options small {
  color: rgba(10, 11, 9, 0.5);
}

:root[data-theme="day"] .create-store-fulfilment-options input:checked + span {
  border-color: #83e900;
  color: #080908;
  background: #9cff22;
  box-shadow: 0 12px 26px rgba(100, 180, 10, 0.18);
}

:root[data-theme="day"] .create-store-fulfilment-options input:checked + span small {
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
  .create-store-fulfilment-options,
  .create-store-fee-grid {
    grid-template-columns: 1fr;
  }
}

/* HOMEPAGE DISCOVERY HUB — premium black / white / neon green system */
#home.home-page {
  --home-lime: #9cff22;
  --home-lime-soft: rgba(156, 255, 34, 0.14);
  --home-white: #ffffff;
  --home-muted: rgba(255, 255, 255, 0.58);
  --home-border: rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  max-width: 1660px;
  margin: 0 auto;
  padding: 20px 18px 34px;
  color: var(--home-white);
  background: #000;
}

#home.home-page > * {
  min-width: 0;
}

#home.home-page .official-hero,
#home.home-page .home-blog-section,
#home.home-page .home-newsletter,
#home.home-page .home-footer {
  grid-column: 1 / -1;
}

#home.home-page .home-official-section {
  grid-column: 1 / -1;
}

#home.home-page .official-hero {
  min-height: 352px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

#home.home-page .official-hero-content {
  max-width: 58%;
  padding: 48px 42px 42px;
}

#home.home-page .official-hero-copy h1 {
  max-width: 590px;
  margin: 14px 0 14px;
  color: var(--home-white);
  font-size: clamp(2.45rem, 4.2vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

#home.home-page .official-hero-copy .description {
  max-width: 520px;
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.55;
}

#home.home-page .official-hero .eyebrow,
#home.home-page .home-section-kicker {
  color: var(--home-lime);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#home.home-page .official-hero-actions {
  margin-top: 26px;
}

#home.home-page .official-hero-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#home.home-page .official-hero .primary-button {
  color: #000;
  background: var(--home-lime);
  box-shadow: 0 12px 28px rgba(156, 255, 34, 0.2);
}

#home.home-page .official-hero .secondary-button {
  color: var(--home-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

#home.home-page .official-hero-media {
  inset: 0 0 0 auto;
  width: 52%;
}

#home.home-page .official-hero-media::after {
  background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.4) 27%, rgba(5, 5, 5, 0) 70%);
}

#home.home-page .official-hero-media img {
  opacity: 0.82;
  filter: saturate(0.76) contrast(1.08);
}

#home.home-page .official-hero-features,
#home.home-page .official-hero-promo {
  display: none;
}

#home.home-page .home-discovery-card {
  border: 1px solid var(--home-border);
  border-radius: 18px;
  padding: 18px;
  background: #050505;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

#home.home-page .home-official-section {
  padding: clamp(22px, 2.4vw, 34px);
}

#home.home-page .home-official-section .home-section-heading {
  align-items: center;
  margin-bottom: 24px;
}

#home.home-page .home-official-section .home-section-heading h2 {
  margin-top: 0;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

#home.home-page .home-official-section .home-section-heading p {
  font-size: 0.92rem;
}

#home.home-page .home-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

#home.home-page .home-section-heading > div {
  min-width: 0;
}

#home.home-page .home-section-heading h2 {
  margin: 3px 0 4px;
  color: var(--home-white);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

#home.home-page .home-section-heading p {
  max-width: 610px;
  margin: 0;
  color: var(--home-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

#home.home-page .home-section-link {
  color: var(--home-lime);
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

#home.home-page .home-official-section .home-section-link {
  min-height: 44px;
  padding: 0 20px;
  color: #050505;
  border: 1px solid var(--home-lime);
  border-radius: 12px;
  background: var(--home-lime);
  box-shadow: 0 12px 26px rgba(156, 255, 34, 0.16);
  font-size: 0.78rem;
}

#home.home-page .home-section-link::after {
  content: "  →";
}

#home.home-page .home-feed-actions svg,
#home.home-page .home-blog-meta svg,
#home.home-page .home-section-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#home.home-page .home-official-grid,
#home.home-page .home-blog-grid {
  display: grid;
  gap: 10px;
}

#home.home-page .home-official-grid,
#home.home-page .home-blog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#home.home-page .home-official-product,
#home.home-page .home-blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #000;
}

#home.home-page .home-official-product {
  position: relative;
  border-radius: 16px;
}

#home.home-page .home-official-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
}

#home.home-page .home-official-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home.home-page .home-official-product > .save-icon-button {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  color: #000;
  background: rgba(255, 255, 255, 0.88);
}

#home.home-page .home-official-product > div {
  padding: 13px 13px 15px;
}

#home.home-page .home-official-product h3 button {
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

#home.home-page .home-official-product strong {
  display: block;
  color: var(--home-lime);
  font-size: 0.86rem;
}

#home.home-page .home-blog-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
}

#home.home-page .home-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home.home-page .home-blog-media > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--home-lime);
}

#home.home-page .home-blog-media svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

#home.home-page .home-blog-body {
  padding: 11px 12px 9px;
}

#home.home-page .home-blog-body > span {
  color: var(--home-lime);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#home.home-page .home-blog-body h3 {
  margin-top: 5px;
}

#home.home-page .home-blog-body p {
  display: -webkit-box;
  min-height: 33px;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 0.64rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#home.home-page .home-blog-meta {
  padding: 12px 0 0;
}

#home.home-page .home-blog-meta small {
  margin-right: auto;
  color: var(--home-muted);
}

#home.home-page .home-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(156, 255, 34, 0.22);
  border-radius: 18px;
  background: #070a04;
}

#home.home-page .home-newsletter > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

#home.home-page .home-newsletter-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  border: 1px solid rgba(156, 255, 34, 0.45);
  border-radius: 8px;
  overflow: hidden;
}

#home.home-page .home-newsletter-mark img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
}

#home.home-page .home-newsletter h2 {
  margin: 0 0 5px;
  color: var(--home-white);
  font-size: 1rem;
}

#home.home-page .home-newsletter p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.7rem;
}

#home.home-page .home-newsletter form {
  display: flex;
  flex: 0 1 430px;
  gap: 7px;
}

#home.home-page .home-newsletter input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  color: var(--home-white);
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: #000;
}

#home.home-page .home-newsletter button {
  width: 42px;
  color: #000;
  border: 0;
  border-radius: 8px;
  background: var(--home-lime);
  font-size: 1.1rem;
  font-weight: 900;
}

#home.home-page .home-footer {
  display: block;
  padding: 20px 4px 6px;
  border-top: 1px solid var(--home-border);
}

#home.home-page .home-footer-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(110px, 1fr)) minmax(180px, 1.25fr);
  gap: 22px;
}

#home.home-page .home-footer-logo-image {
  width: 124px;
  height: auto;
  filter: grayscale(1) brightness(0) invert(1);
}

#home.home-page .home-footer p,
#home.home-page .home-footer small {
  color: var(--home-muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

#home.home-page .home-footer h3 {
  margin: 2px 0 9px;
  color: var(--home-white);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#home.home-page .home-footer a,
#home.home-page .home-footer-column button {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--home-muted);
  border: 0;
  background: transparent;
  font-size: 0.65rem;
  text-align: left;
}

#home.home-page .home-footer a:hover,
#home.home-page .home-footer-column button:hover {
  color: var(--home-lime);
}

#home.home-page .home-footer-social {
  display: block;
}

#home.home-page .home-footer-social > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

#home.home-page .home-footer-social > div a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--home-white);
  border: 1px solid var(--home-border);
  border-radius: 50%;
  text-decoration: none;
}

#home.home-page .home-footer-social > div a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

#home.home-page .home-footer-social > div a:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
}

#home.home-page .home-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--home-border);
}

#home.home-page .home-empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  text-align: center;
}

#home.home-page .home-empty-state strong {
  color: var(--home-white);
  font-size: 0.78rem;
}

#home.home-page .home-empty-state p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.67rem;
}

@media (max-width: 1100px) {
  #home.home-page .home-official-section {
    grid-column: 1 / -1;
  }

  #home.home-page .home-official-grid,
  #home.home-page .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #home.home-page {
    padding: 12px 10px 22px;
  }

  #home.home-page .official-hero {
    min-height: 460px;
  }

  #home.home-page .official-hero-content {
    max-width: 100%;
    padding: 30px 22px;
  }

  #home.home-page .official-hero-media {
    top: auto;
    width: 100%;
    height: 44%;
  }

  #home.home-page .official-hero-media::after {
    background: linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.25) 55%, rgba(5, 5, 5, 0) 100%);
  }

  #home.home-page .home-newsletter,
  #home.home-page .home-footer {
    display: block;
  }

  #home.home-page .home-newsletter form {
    margin-top: 14px;
  }

  #home.home-page .home-official-section {
    padding: 18px;
  }

  #home.home-page .home-official-section .home-section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  #home.home-page .home-official-section .home-section-heading h2 {
    font-size: 1.35rem;
  }

  #home.home-page .home-official-section .home-section-heading p {
    font-size: 0.78rem;
  }

  #home.home-page .home-official-section .home-section-link {
    min-height: 40px;
    padding: 0 14px;
  }

  #home.home-page .home-official-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  #home.home-page .home-official-product {
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }

  #home.home-page .home-official-grid > .home-empty-state {
    flex: 1 0 100%;
  }

  #home.home-page .home-footer-grid > * {
    margin-bottom: 18px;
  }
}

/* Keep the discovery hub visually continuous with its black template header. */
body:has(#home.home-page.active) {
  color: #fff;
  background: #000;
}

body:has(#home.home-page.active) .app-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.96);
}

body:has(#home.home-page.active) .brand {
  border-color: rgba(156, 255, 34, 0.35);
  background: #000;
}

body:has(#home.home-page.active) .search-wrap {
  border-color: rgba(255, 255, 255, 0.16);
  background: #050505;
}

body:has(#home.home-page.active) .search-wrap input {
  color: #fff;
}

body:has(#home.home-page.active) .search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

body:has(#home.home-page.active) .app-header .text-link,
body:has(#home.home-page.active) .app-header .icon-button,
body:has(#home.home-page.active) .app-header .theme-toggle {
  color: #fff;
}

body:has(#home.home-page.active) .app-header .text-link:hover,
body:has(#home.home-page.active) .app-header .text-link:focus-visible,
body:has(#home.home-page.active) .app-header .text-link.active {
  color: #9cff22;
}

body:has(#home.home-page.active) .nav-auth-login,
body:has(#home.home-page.active) .nav-account-summary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: #050505;
}

body:has(#home.home-page.active) .theme-toggle,
body:has(#home.home-page.active) .icon-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: #050505;
}

/* Day mode keeps the same hierarchy while switching the discovery hub to a
   readable paper surface. The dark template is reserved for night mode. */
:root[data-theme="day"] body:has(#home.home-page.active) {
  color: #0f0f0f;
  background: #f5f3ef;
}

:root[data-theme="day"] body:has(#home.home-page.active) .app-header {
  border-bottom-color: rgba(15, 15, 15, 0.12);
  background: rgba(245, 243, 239, 0.96);
}

:root[data-theme="day"] body:has(#home.home-page.active) .search-wrap {
  border-color: rgba(15, 15, 15, 0.14);
  background: #fff;
}

:root[data-theme="day"] body:has(#home.home-page.active) .search-wrap input {
  color: #0f0f0f;
}

:root[data-theme="day"] body:has(#home.home-page.active) .search-wrap input::placeholder {
  color: rgba(15, 15, 15, 0.5);
}

:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .icon-button,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .theme-toggle {
  color: #0f0f0f;
}

:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link:hover,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link:focus-visible,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link.active {
  color: #75c90c;
}

:root[data-theme="day"] body:has(#home.home-page.active) .nav-auth-login,
:root[data-theme="day"] body:has(#home.home-page.active) .nav-account-summary,
:root[data-theme="day"] body:has(#home.home-page.active) .theme-toggle,
:root[data-theme="day"] body:has(#home.home-page.active) .icon-button {
  color: #0f0f0f;
  border-color: rgba(15, 15, 15, 0.14);
  background: #fff;
}

:root[data-theme="day"] #home.home-page {
  --home-white: #0f0f0f;
  --home-muted: rgba(15, 15, 15, 0.62);
  --home-border: rgba(15, 15, 15, 0.13);
  --home-lime-soft: rgba(117, 201, 12, 0.13);
  color: #0f0f0f;
  background: #f5f3ef;
}

:root[data-theme="day"] #home.home-page .official-hero {
  border-color: rgba(15, 15, 15, 0.14);
  color: #0f0f0f !important;
  background: #fff !important;
  box-shadow: 0 24px 68px rgba(15, 15, 15, 0.12);
}

:root[data-theme="day"] #home.home-page .official-hero-media {
  background: #f8f7f3 !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy h1 {
  color: #0f0f0f !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy .description {
  color: rgba(15, 15, 15, 0.68) !important;
}

:root[data-theme="day"] #home.home-page .official-hero-media::after {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.52) 27%, rgba(255, 255, 255, 0) 70%);
}

:root[data-theme="day"] #home.home-page .official-hero-copy .secondary-button {
  color: #0f0f0f !important;
  border-color: rgba(15, 15, 15, 0.46) !important;
}

:root[data-theme="day"] #home.home-page .home-discovery-card,
:root[data-theme="day"] #home.home-page .home-official-product,
:root[data-theme="day"] #home.home-page .home-blog-card {
  border-color: rgba(15, 15, 15, 0.13);
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 15, 15, 0.08);
}

:root[data-theme="day"] #home.home-page .home-official-media,
:root[data-theme="day"] #home.home-page .home-blog-media {
  border-color: rgba(15, 15, 15, 0.1);
  background: #f8f7f3;
}

:root[data-theme="day"] #home.home-page .home-newsletter {
  border-color: rgba(117, 201, 12, 0.45);
  background: #efffdc;
}

:root[data-theme="day"] #home.home-page .home-newsletter input {
  color: #0f0f0f;
  border-color: rgba(15, 15, 15, 0.14);
  background: #fff;
}

:root[data-theme="day"] #home.home-page .home-empty-state {
  border-color: rgba(15, 15, 15, 0.2);
}

#home.home-page .home-footer-logo-image,
#home.home-page .home-newsletter-mark img {
  display: block;
  filter: none;
}

/* Home / day mode — the discovery hub uses a paper palette rather than simply
   swapping the page background. This keeps the small editorial text and lime
   accents readable, and gives the hero image its own framed surface. */
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link:hover,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link:focus-visible,
:root[data-theme="day"] body:has(#home.home-page.active) .app-header .text-link.active {
  color: #356b00;
}

:root[data-theme="day"] #home.home-page {
  --home-lime-ink: #356b00;
  --home-muted: #50594e;
  --home-border: #d8ded3;
  --home-lime-soft: #e5f4d1;
  background: #f3f4f0;
}

:root[data-theme="day"] #home.home-page .official-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr) !important;
  gap: 12px;
  min-height: 432px !important;
  padding: 12px !important;
  border: 1px solid #d8ded3 !important;
  border-radius: 24px !important;
  background: #e8ede3 !important;
  box-shadow: 0 20px 48px rgba(25, 35, 22, 0.1) !important;
}

:root[data-theme="day"] #home.home-page .official-hero-content {
  width: auto !important;
  max-width: none !important;
  padding: clamp(28px, 3vw, 36px) !important;
  border-radius: 16px;
  background: #fff !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy h1 {
  font-size: clamp(42px, 3.6vw, 50px) !important;
  line-height: 1.06 !important;
}

:root[data-theme="day"] #home.home-page .official-hero-features {
  margin-top: 24px !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy .eyebrow,
:root[data-theme="day"] #home.home-page .home-section-kicker,
:root[data-theme="day"] #home.home-page .home-blog-body > span,
:root[data-theme="day"] #home.home-page .home-official-product strong {
  color: var(--home-lime-ink) !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy .description,
:root[data-theme="day"] #home.home-page .home-section-heading p,
:root[data-theme="day"] #home.home-page .home-blog-body p,
:root[data-theme="day"] #home.home-page .home-newsletter p {
  color: #50594e !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy .secondary-button {
  color: #1d251b !important;
  border-color: #6d7869 !important;
  background: #fff !important;
}

:root[data-theme="day"] #home.home-page .official-hero-copy .secondary-button:hover,
:root[data-theme="day"] #home.home-page .official-hero-copy .secondary-button:focus-visible {
  color: #243b11 !important;
  border-color: #356b00 !important;
  background: #f0f8e7 !important;
}

:root[data-theme="day"] #home.home-page .official-hero-media {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: #dce5d4 !important;
}

:root[data-theme="day"] #home.home-page .official-hero-media::after {
  display: none !important;
}

:root[data-theme="day"] #home.home-page .official-hero-media img {
  object-position: 58% center !important;
  opacity: 1 !important;
  filter: brightness(1.14) contrast(0.94) saturate(0.88) !important;
}

:root[data-theme="day"] #home.home-page .home-official-section .home-section-link {
  color: #fff;
  border-color: #111;
  background: #111;
  box-shadow: 0 12px 24px rgba(15, 15, 15, 0.14);
}

:root[data-theme="day"] #home.home-page .home-newsletter h2 {
  color: #172015;
}

:root[data-theme="day"] #home.home-page .home-newsletter input::placeholder {
  color: #687365;
}

:root[data-theme="day"] #home.home-page .home-footer {
  padding: 28px 28px 16px;
  border: 1px solid #d8ded3;
  border-radius: 18px;
  color: #182015;
  background: #fff;
  box-shadow: 0 16px 44px rgba(25, 35, 22, 0.06);
}

:root[data-theme="day"] #home.home-page .home-footer h3 {
  color: #315f00;
}

:root[data-theme="day"] #home.home-page .home-footer p,
:root[data-theme="day"] #home.home-page .home-footer small,
:root[data-theme="day"] #home.home-page .home-footer a,
:root[data-theme="day"] #home.home-page .home-footer button,
:root[data-theme="day"] #home.home-page .home-footer-bottom {
  color: #465143;
}

:root[data-theme="day"] #home.home-page .home-footer a:hover,
:root[data-theme="day"] #home.home-page .home-footer a:focus-visible,
:root[data-theme="day"] #home.home-page .home-footer button:hover,
:root[data-theme="day"] #home.home-page .home-footer button:focus-visible {
  color: #356b00;
}

:root[data-theme="day"] #home.home-page .home-footer .social-link {
  color: #2c3629;
  border-color: #d8ded3;
  background: #f5f7f2;
}

:root[data-theme="day"] #home.home-page .home-footer-bottom {
  border-top-color: #dde2da;
}

@media (max-width: 1024px) {
  :root[data-theme="day"] #home.home-page .official-hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  :root[data-theme="day"] #home.home-page .official-hero-media {
    min-height: 300px !important;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  :root[data-theme="day"] #home.home-page .official-hero {
    gap: 8px;
    padding: 8px !important;
    border-radius: 20px !important;
  }

  :root[data-theme="day"] #home.home-page .official-hero-content,
  :root[data-theme="day"] #home.home-page .official-hero-media {
    border-radius: 14px;
  }

  :root[data-theme="day"] #home.home-page .official-hero-media {
    min-height: 220px !important;
  }

  :root[data-theme="day"] #home.home-page .home-footer {
    padding: 24px 20px 16px;
  }
}

/* Keep the campaign image and the full hero message above the fold in night
   mode too. This overrides only the inherited legacy hero sizing, not markup. */
:root[data-theme="night"] #home.home-page .official-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr) !important;
  gap: 12px;
  min-height: 432px !important;
  padding: 12px !important;
  border: 1px solid rgba(198, 255, 0, 0.17) !important;
  border-radius: 24px !important;
  background: #050605 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36) !important;
}

:root[data-theme="night"] #home.home-page .official-hero-content {
  width: auto !important;
  max-width: none !important;
  padding: clamp(28px, 3vw, 36px) !important;
  border-radius: 16px;
  background: #030403 !important;
}

:root[data-theme="night"] #home.home-page .official-hero-copy h1 {
  font-size: clamp(42px, 3.6vw, 50px) !important;
  line-height: 1.06 !important;
}

:root[data-theme="night"] #home.home-page .official-hero-features {
  margin-top: 24px !important;
}

:root[data-theme="night"] #home.home-page .official-hero-media {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: #0c0e0b !important;
}

:root[data-theme="night"] #home.home-page .official-hero-media::after {
  background: linear-gradient(90deg, rgba(3, 4, 3, 0.3) 0%, rgba(3, 4, 3, 0) 30%) !important;
}

:root[data-theme="night"] #home.home-page .official-hero-media img {
  object-position: 58% center !important;
  opacity: 1 !important;
  filter: brightness(1.05) contrast(0.96) saturate(0.92) !important;
}

@media (max-width: 1024px) {
  :root[data-theme="night"] #home.home-page .official-hero {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  :root[data-theme="night"] #home.home-page .official-hero-media {
    min-height: 300px !important;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  :root[data-theme="night"] #home.home-page .official-hero {
    gap: 8px;
    padding: 8px !important;
    border-radius: 20px !important;
  }

  :root[data-theme="night"] #home.home-page .official-hero-content,
  :root[data-theme="night"] #home.home-page .official-hero-media {
    border-radius: 14px;
  }

  :root[data-theme="night"] #home.home-page .official-hero-media {
    min-height: 220px !important;
  }
}

/* Light-mode hero highlights need their own ink colour: the legacy feature
   token is white for the night campaign and disappears on the paper panel. */
:root[data-theme="day"] #home.home-page .official-hero-features .feature-text {
  color: #28351f !important;
}

:root[data-theme="day"] #home.home-page .official-hero-features .feature-icon {
  color: #4b8608 !important;
}

/* Day-mode button system: action controls use the same confident black
   treatment as the reference Home button. Utility/media controls keep their
   compact geometry, while still sharing the same high-contrast ink. */
:root[data-theme="day"] {
  --day-button-bg: #111111;
  --day-button-bg-hover: #292929;
  --day-button-fg: #ffffff;
  --day-button-border: #111111;
  --day-button-focus: #4b8608;
  --day-button-radius: 12px;
}

:root[data-theme="day"] button[class*="button"]:not(.media-button):not(.title-button),
:root[data-theme="day"] button[class*="Button"]:not(.media-button):not(.title-button),
:root[data-theme="day"] .home-section-link,
:root[data-theme="day"] .market-apply-filters,
:root[data-theme="day"] .market-reset-filters,
:root[data-theme="day"] .market-new-deals,
:root[data-theme="day"] .market-mobile-filter-button,
:root[data-theme="day"] .create-store-account-back,
:root[data-theme="day"] .create-store-back,
:root[data-theme="day"] .create-store-next,
:root[data-theme="day"] .create-store-publish,
:root[data-theme="day"] .sell-save-draft,
:root[data-theme="day"] .pl-submit,
:root[data-theme="day"] .notification-load-more,
:root[data-theme="day"] .market-deal-callout button,
:root[data-theme="day"] .storefront-card-cart,
:root[data-theme="day"] .home-newsletter form button,
:root[data-theme="day"] .nav-account-dropdown button,
:root[data-theme="day"] .admin-cleanup-actions button,
:root[data-theme="day"] .admin-support-form-actions button,
:root[data-theme="day"] .admin-action-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
  box-shadow: 0 5px 14px rgba(15, 15, 15, 0.1) !important;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

:root[data-theme="day"] button[class*="button"]:not(.media-button):not(.title-button):hover,
:root[data-theme="day"] button[class*="button"]:not(.media-button):not(.title-button):focus-visible,
:root[data-theme="day"] button[class*="Button"]:not(.media-button):not(.title-button):hover,
:root[data-theme="day"] button[class*="Button"]:not(.media-button):not(.title-button):focus-visible,
:root[data-theme="day"] .home-section-link:hover,
:root[data-theme="day"] .home-section-link:focus-visible,
:root[data-theme="day"] .market-apply-filters:hover,
:root[data-theme="day"] .market-apply-filters:focus-visible,
:root[data-theme="day"] .market-reset-filters:hover,
:root[data-theme="day"] .market-reset-filters:focus-visible,
:root[data-theme="day"] .market-new-deals:hover,
:root[data-theme="day"] .market-new-deals:focus-visible,
:root[data-theme="day"] .market-mobile-filter-button:hover,
:root[data-theme="day"] .market-mobile-filter-button:focus-visible,
:root[data-theme="day"] .create-store-account-back:hover,
:root[data-theme="day"] .create-store-account-back:focus-visible,
:root[data-theme="day"] .create-store-back:hover,
:root[data-theme="day"] .create-store-back:focus-visible,
:root[data-theme="day"] .create-store-next:hover,
:root[data-theme="day"] .create-store-next:focus-visible,
:root[data-theme="day"] .create-store-publish:hover,
:root[data-theme="day"] .create-store-publish:focus-visible,
:root[data-theme="day"] .sell-save-draft:hover,
:root[data-theme="day"] .sell-save-draft:focus-visible,
:root[data-theme="day"] .pl-submit:hover,
:root[data-theme="day"] .pl-submit:focus-visible,
:root[data-theme="day"] .market-deal-callout button:hover,
:root[data-theme="day"] .market-deal-callout button:focus-visible,
:root[data-theme="day"] .storefront-card-cart:hover,
:root[data-theme="day"] .storefront-card-cart:focus-visible,
:root[data-theme="day"] .home-newsletter form button:hover,
:root[data-theme="day"] .home-newsletter form button:focus-visible,
:root[data-theme="day"] .nav-account-dropdown button:hover,
:root[data-theme="day"] .nav-account-dropdown button:focus-visible,
:root[data-theme="day"] .admin-cleanup-actions button:hover,
:root[data-theme="day"] .admin-cleanup-actions button:focus-visible,
:root[data-theme="day"] .admin-support-form-actions button:hover,
:root[data-theme="day"] .admin-support-form-actions button:focus-visible,
:root[data-theme="day"] .admin-action-chip:hover,
:root[data-theme="day"] .admin-action-chip:focus-visible {
  border-color: var(--day-button-bg-hover) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg-hover) !important;
  box-shadow: 0 7px 16px rgba(15, 15, 15, 0.16) !important;
  transform: translateY(-1px);
}

:root[data-theme="day"] button[class*="button"]:not(.media-button):not(.title-button):focus-visible,
:root[data-theme="day"] button[class*="Button"]:not(.media-button):not(.title-button):focus-visible,
:root[data-theme="day"] .home-section-link:focus-visible,
:root[data-theme="day"] .market-apply-filters:focus-visible,
:root[data-theme="day"] .market-reset-filters:focus-visible,
:root[data-theme="day"] .market-new-deals:focus-visible,
:root[data-theme="day"] .market-mobile-filter-button:focus-visible,
:root[data-theme="day"] .create-store-account-back:focus-visible,
:root[data-theme="day"] .create-store-back:focus-visible,
:root[data-theme="day"] .create-store-next:focus-visible,
:root[data-theme="day"] .create-store-publish:focus-visible,
:root[data-theme="day"] .sell-save-draft:focus-visible,
:root[data-theme="day"] .pl-submit:focus-visible,
:root[data-theme="day"] .notification-load-more:focus-visible,
:root[data-theme="day"] .market-deal-callout button:focus-visible,
:root[data-theme="day"] .storefront-card-cart:focus-visible,
:root[data-theme="day"] .home-newsletter form button:focus-visible,
:root[data-theme="day"] .nav-account-dropdown button:focus-visible,
:root[data-theme="day"] .admin-cleanup-actions button:focus-visible,
:root[data-theme="day"] .admin-support-form-actions button:focus-visible,
:root[data-theme="day"] .admin-action-chip:focus-visible {
  outline: 3px solid rgba(75, 134, 8, 0.38);
  outline-offset: 2px;
}

:root[data-theme="day"] button[class*="button"]:not(.media-button):not(.title-button):disabled,
:root[data-theme="day"] button[class*="Button"]:not(.media-button):not(.title-button):disabled,
:root[data-theme="day"] .create-store-next:disabled,
:root[data-theme="day"] .create-store-publish:disabled,
:root[data-theme="day"] .notification-load-more:disabled {
  border-color: var(--disabled-bg) !important;
  color: var(--disabled-text) !important;
  background: var(--disabled-bg) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

/* Compact icon controls use the same black surface without inheriting the
   larger action-button padding. */
:root[data-theme="day"] .app-header .icon-button,
:root[data-theme="day"] .app-header .theme-toggle,
:root[data-theme="day"] .feed-icon-button,
:root[data-theme="day"] .save-icon-button,
:root[data-theme="day"] .wishlist-button,
:root[data-theme="day"] .message-inbox-button,
:root[data-theme="day"] .auth-eye,
:root[data-theme="day"] .remove-button,
:root[data-theme="day"] .story-viewer-close,
:root[data-theme="day"] .story-viewer-nav,
:root[data-theme="day"] .sold-out-gallery-arrow {
  min-height: 40px;
  padding: 0 !important;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
  box-shadow: none !important;
}

:root[data-theme="day"] .app-header .icon-button:hover,
:root[data-theme="day"] .app-header .icon-button:focus-visible,
:root[data-theme="day"] .app-header .theme-toggle:hover,
:root[data-theme="day"] .app-header .theme-toggle:focus-visible,
:root[data-theme="day"] .feed-icon-button:hover,
:root[data-theme="day"] .feed-icon-button:focus-visible,
:root[data-theme="day"] .save-icon-button:hover,
:root[data-theme="day"] .save-icon-button:focus-visible,
:root[data-theme="day"] .wishlist-button:hover,
:root[data-theme="day"] .wishlist-button:focus-visible,
:root[data-theme="day"] .message-inbox-button:hover,
:root[data-theme="day"] .message-inbox-button:focus-visible,
:root[data-theme="day"] .auth-eye:hover,
:root[data-theme="day"] .auth-eye:focus-visible,
:root[data-theme="day"] .remove-button:hover,
:root[data-theme="day"] .remove-button:focus-visible,
:root[data-theme="day"] .story-viewer-close:hover,
:root[data-theme="day"] .story-viewer-close:focus-visible,
:root[data-theme="day"] .story-viewer-nav:hover,
:root[data-theme="day"] .story-viewer-nav:focus-visible,
:root[data-theme="day"] .sold-out-gallery-arrow:hover,
:root[data-theme="day"] .sold-out-gallery-arrow:focus-visible {
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg-hover) !important;
}

/* The active global nav item is the same black rounded button as the
   reference, including on the discovery hub where older day rules used lime
   text on a dark fill. */
:root[data-theme="day"] .app-header .text-link.active {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
  box-shadow: 0 5px 14px rgba(15, 15, 15, 0.1) !important;
}

:root[data-theme="day"] .app-header .text-link.active:hover,
:root[data-theme="day"] .app-header .text-link.active:focus-visible {
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg-hover) !important;
}

:root[data-theme="day"] #home.home-page .official-hero-actions .primary-button,
:root[data-theme="day"] #home.home-page .official-hero-actions .secondary-button {
  min-height: 44px !important;
  padding-inline: 18px !important;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
}

:root[data-theme="day"] #home.home-page .official-hero-actions .primary-button:hover,
:root[data-theme="day"] #home.home-page .official-hero-actions .primary-button:focus-visible,
:root[data-theme="day"] #home.home-page .official-hero-actions .secondary-button:hover,
:root[data-theme="day"] #home.home-page .official-hero-actions .secondary-button:focus-visible {
  color: var(--day-button-fg) !important;
  border-color: var(--day-button-bg-hover) !important;
  background: var(--day-button-bg-hover) !important;
}

:root[data-theme="day"] .nav-message-link,
:root[data-theme="day"] .nav-auth-login,
:root[data-theme="day"] .nav-auth-signup,
:root[data-theme="day"] .auth-entry-signin,
:root[data-theme="day"] .auth-entry-signup,
:root[data-theme="day"] .auth-entry-signout {
  min-height: 44px;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
  box-shadow: 0 5px 14px rgba(15, 15, 15, 0.1) !important;
}

:root[data-theme="day"] .sell-sidebar .sell-sidebar-upgrade button,
:root[data-theme="day"] .sell-sidebar button.active {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid var(--day-button-border) !important;
  border-radius: var(--day-button-radius) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg) !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16) !important;
}

:root[data-theme="day"] .sell-sidebar .sell-sidebar-upgrade button:hover,
:root[data-theme="day"] .sell-sidebar .sell-sidebar-upgrade button:focus-visible,
:root[data-theme="day"] .sell-sidebar button.active:hover,
:root[data-theme="day"] .sell-sidebar button.active:focus-visible {
  border-color: var(--day-button-bg-hover) !important;
  color: var(--day-button-fg) !important;
  background: var(--day-button-bg-hover) !important;
}

:root[data-theme="day"] .nav-message-link:hover,
:root[data-theme="day"] .nav-message-link:focus-visible,
:root[data-theme="day"] .nav-auth-login:hover,
:root[data-theme="day"] .nav-auth-login:focus-visible,
:root[data-theme="day"] .nav-auth-signup:hover,
:root[data-theme="day"] .nav-auth-signup:focus-visible,
:root[data-theme="day"] .auth-entry-signin:hover,
:root[data-theme="day"] .auth-entry-signin:focus-visible,
:root[data-theme="day"] .auth-entry-signup:hover,
:root[data-theme="day"] .auth-entry-signup:focus-visible,
:root[data-theme="day"] .auth-entry-signout:hover,
:root[data-theme="day"] .auth-entry-signout:focus-visible {
  color: var(--day-button-fg) !important;
  border-color: var(--day-button-bg-hover) !important;
  background: var(--day-button-bg-hover) !important;
}

/* Content/media buttons are not filled actions; preserve their image and
   text-only affordance while keeping day-mode text contrast intact. */
:root[data-theme="day"] .media-button,
:root[data-theme="day"] .title-button,
:root[data-theme="day"] .home-story,
:root[data-theme="day"] .home-feed-media,
:root[data-theme="day"] .home-official-media,
:root[data-theme="day"] .home-blog-media {
  border-color: transparent !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ============================================================
   CANONICAL GLOBAL HEADER
   The Home header is the single structural and visual contract for every
   public SPA view. Page-specific CSS may style page content, never the header.
   ============================================================ */
:root {
  --app-header-height: 97px;
  --site-header-bg: rgba(245, 243, 239, 0.96);
  --site-header-border: rgba(15, 15, 15, 0.12);
  --site-header-text: #0f0f0f;
  --site-header-muted: #6d6d6d;
  --site-header-search-bg: #ffffff;
  --site-header-search-border: rgba(15, 15, 15, 0.14);
  --site-header-brand-bg: #000000;
  --site-header-control-bg: #ffffff;
  --site-header-control-border: rgba(15, 15, 15, 0.14);
  --site-header-hover-bg: rgba(15, 15, 15, 0.07);
  --site-header-active-bg: #111111;
  --site-header-active-text: #ffffff;
  --site-header-active-border: #111111;
}

:root[data-theme="night"] {
  --site-header-bg: rgba(0, 0, 0, 0.96);
  --site-header-border: rgba(255, 255, 255, 0.12);
  --site-header-text: #ffffff;
  --site-header-muted: rgba(255, 255, 255, 0.58);
  --site-header-search-bg: #050505;
  --site-header-search-border: rgba(255, 255, 255, 0.16);
  --site-header-brand-bg: #000000;
  --site-header-control-bg: #050505;
  --site-header-control-border: rgba(255, 255, 255, 0.16);
  --site-header-hover-bg: rgba(182, 255, 77, 0.12);
  --site-header-active-bg: #b6ff4d;
  --site-header-active-text: #071006;
  --site-header-active-border: #b6ff4d;
}

html {
  scroll-padding-top: var(--app-header-height);
}

:root body > #siteHeader.app-header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  grid-template-columns: auto minmax(220px, 560px) minmax(0, auto);
  gap: 18px;
  min-height: 97px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--site-header-border);
  color: var(--site-header-text);
  background: var(--site-header-bg);
  backdrop-filter: blur(18px);
}

:root body > #siteHeader.app-header.site-header .brand {
  width: 260px;
  height: 68px;
  padding: 8px 14px;
  border: 1px solid rgba(182, 255, 77, 0.24);
  border-radius: 8px;
  background: var(--site-header-brand-bg);
}

:root body > #siteHeader.app-header.site-header .search-wrap {
  width: auto;
  max-width: none;
  justify-self: stretch;
  padding: 0 14px;
  border: 1px solid var(--site-header-search-border);
  border-radius: 8px;
  color: var(--site-header-text);
  background: var(--site-header-search-bg);
}

:root body > #siteHeader.app-header.site-header .search-wrap input {
  height: 44px;
  color: var(--site-header-text);
}

:root body > #siteHeader.app-header.site-header .search-wrap input::placeholder,
:root body > #siteHeader.app-header.site-header .search-wrap svg {
  color: var(--site-header-muted);
  opacity: 1;
}

:root body > #siteHeader.app-header.site-header .header-actions {
  min-width: 0;
  gap: 8px;
}

:root body > #siteHeader.app-header.site-header .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--site-header-text);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

:root body > #siteHeader.app-header.site-header .text-link:hover,
:root body > #siteHeader.app-header.site-header .text-link:focus-visible {
  color: var(--site-header-text);
  background: var(--site-header-hover-bg);
}

:root body > #siteHeader.app-header.site-header .text-link.active {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--site-header-active-border);
  border-radius: 12px;
  color: var(--site-header-active-text);
  background: var(--site-header-active-bg);
  box-shadow: 0 5px 14px rgba(15, 15, 15, 0.1);
}

:root body > #siteHeader.app-header.site-header .text-link.active:hover,
:root body > #siteHeader.app-header.site-header .text-link.active:focus-visible {
  color: var(--site-header-active-text);
  background: var(--site-header-active-bg);
}

:root body > #siteHeader.app-header.site-header .text-link.active::after {
  display: none;
}

:root body > #siteHeader.app-header.site-header .nav-account-summary,
:root body > #siteHeader.app-header.site-header .nav-auth-login,
:root body > #siteHeader.app-header.site-header .icon-button,
:root body > #siteHeader.app-header.site-header .theme-toggle {
  min-height: 44px;
  border-color: var(--site-header-control-border);
  color: var(--site-header-text);
  background: var(--site-header-control-bg);
}

:root body > #siteHeader.app-header.site-header .nav-account-menu.active .nav-account-summary {
  border-color: var(--site-header-active-border);
  border-radius: 12px;
  color: var(--site-header-active-text);
  background: var(--site-header-active-bg);
  box-shadow: 0 5px 14px rgba(15, 15, 15, 0.1);
}

:root body > #siteHeader.app-header.site-header .icon-button,
:root body > #siteHeader.app-header.site-header .theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

:root body > #siteHeader.app-header.site-header .nav-auth-button {
  min-height: 44px;
  border-radius: 12px;
}

:root[data-theme="night"] body > #siteHeader.app-header.site-header .nav-auth-signup {
  border-color: var(--accent);
  color: #071006;
  background: var(--accent);
}

:root body > #siteHeader.app-header.site-header .nav-account-dropdown {
  border-color: var(--site-header-control-border);
  color: var(--site-header-text);
  background: var(--panel);
}

/* Messages is contextual application content. It reuses the global header
   instead of presenting a second site navigation or covering the header. */
#messageDrawer.message-drawer {
  inset: var(--app-header-height) 0 0;
  z-index: 30;
  width: 100vw;
  height: calc(100dvh - var(--app-header-height));
  max-height: calc(100dvh - var(--app-header-height));
}

#messageDrawer .message-workspace-nav {
  display: none;
}

#messageDrawer .message-page-heading {
  display: flex;
  padding: 18px 28px 16px;
}

#messageDrawer .message-app {
  grid-template-columns: minmax(290px, 0.82fr) minmax(440px, 1.65fr) minmax(250px, 0.72fr);
  padding: 0 28px 24px;
}

@media (max-width: 1360px) {
  :root body > #siteHeader.app-header.site-header {
    grid-template-columns: 220px minmax(260px, 1fr) minmax(0, auto);
    gap: 12px;
    min-height: 82px;
    padding: 12px 24px;
  }

  :root body > #siteHeader.app-header.site-header .brand {
    width: 220px;
    height: 58px;
    padding: 7px 12px;
  }

  :root body > #siteHeader.app-header.site-header .search-wrap {
    padding: 0 12px;
  }

  :root body > #siteHeader.app-header.site-header .search-wrap input {
    height: 40px;
  }

  :root body > #siteHeader.app-header.site-header .header-actions {
    min-width: 0;
    gap: 5px;
  }

  :root body > #siteHeader.app-header.site-header .text-link {
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }

  :root body > #siteHeader.app-header.site-header .text-link.active {
    min-height: 40px;
    padding: 0 12px;
  }

  :root body > #siteHeader.app-header.site-header .nav-account-summary,
  :root body > #siteHeader.app-header.site-header .nav-auth-login,
  :root body > #siteHeader.app-header.site-header .nav-auth-button,
  :root body > #siteHeader.app-header.site-header .icon-button,
  :root body > #siteHeader.app-header.site-header .theme-toggle {
    min-height: 40px;
  }

  :root body > #siteHeader.app-header.site-header .nav-auth-button {
    padding-right: 14px;
    padding-left: 14px;
  }

  :root body > #siteHeader.app-header.site-header .icon-button,
  :root body > #siteHeader.app-header.site-header .theme-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1180px) {
  :root body > #siteHeader.app-header.site-header {
    grid-template-columns: auto minmax(180px, 1fr);
  }

  :root body > #siteHeader.app-header.site-header .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #messageDrawer .message-app {
    grid-template-columns: minmax(270px, 0.72fr) minmax(420px, 1.4fr);
  }

  #messageDrawer .message-context-rail {
    display: none;
  }
}

@media (max-width: 980px) {
  :root body > #siteHeader.app-header.site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  :root body > #siteHeader.app-header.site-header .brand {
    justify-self: start;
  }

  :root body > #siteHeader.app-header.site-header .search-wrap {
    width: 100%;
  }

  :root body > #siteHeader.app-header.site-header .nav-account-dropdown {
    position: fixed;
    top: calc(var(--app-header-height) + 8px);
    right: 16px;
    left: 16px;
    min-width: 0;
  }

  #messageDrawer.message-drawer {
    inset: var(--app-header-height) 0 0;
    height: calc(100dvh - var(--app-header-height));
    max-height: calc(100dvh - var(--app-header-height));
  }

  #messageDrawer .message-page-heading {
    display: flex;
  }

  #messageDrawer .message-app {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.4fr);
    padding: 0;
  }
}

@media (max-width: 620px) {
  :root body > #siteHeader.app-header.site-header {
    padding: 12px 20px;
  }

  :root body > #siteHeader.app-header.site-header .brand {
    width: min(230px, 100%);
    height: 58px;
    padding: 7px 12px;
  }

  :root body > #siteHeader.app-header.site-header .header-actions {
    gap: 10px;
    padding-right: 16px;
  }

  :root body > #siteHeader.app-header.site-header .nav-auth-actions {
    order: 0;
  }

  :root body > #siteHeader.app-header.site-header .nav-account-name {
    max-width: 88px;
  }

  #messageDrawer .message-page-heading {
    display: none;
  }

  #messageDrawer .message-app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
}

@media (max-width: 360px) {
  :root body > #siteHeader.app-header.site-header {
    padding-inline: 12px;
  }
}

/* ============================================================
   PREMIUM REFERENCE HEADER
   Centered, responsive and theme-aware implementation of the approved
   Hangah header reference. This final layer owns every header breakpoint.
   ============================================================ */
:root {
  --app-header-height: 112px;
  --site-header-bg: #f7f6f3;
  --site-header-border: rgba(17, 17, 17, 0.12);
  --site-header-text: #111111;
  --site-header-muted: #777777;
  --site-header-search-bg: #ffffff;
  --site-header-search-border: #deddd9;
  --site-header-control-bg: #ffffff;
  --site-header-control-border: #deddd9;
  --site-header-hover-bg: rgba(17, 17, 17, 0.06);
  --site-header-menu-shadow: 0 20px 48px rgba(12, 12, 12, 0.16);
}

:root[data-theme="day"] {
  --site-header-bg: #f7f6f3;
  --site-header-border: rgba(17, 17, 17, 0.12);
  --site-header-text: #111111;
  --site-header-muted: #777777;
  --site-header-search-bg: #ffffff;
  --site-header-search-border: #deddd9;
  --site-header-control-bg: #ffffff;
  --site-header-control-border: #deddd9;
  --site-header-hover-bg: rgba(17, 17, 17, 0.06);
  --site-header-menu-shadow: 0 20px 48px rgba(12, 12, 12, 0.16);
}

:root[data-theme="night"] {
  --site-header-bg: #030403;
  --site-header-border: rgba(255, 255, 255, 0.17);
  --site-header-text: #f7f7f2;
  --site-header-muted: #8d9089;
  --site-header-search-bg: #090a09;
  --site-header-search-border: rgba(255, 255, 255, 0.14);
  --site-header-control-bg: #080908;
  --site-header-control-border: rgba(255, 255, 255, 0.14);
  --site-header-hover-bg: rgba(182, 255, 77, 0.1);
  --site-header-menu-shadow: 0 24px 54px rgba(0, 0, 0, 0.52);
}

:root body > #siteHeader.app-header.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  grid-template-areas: "brand search nav cart";
  grid-template-columns: 190px minmax(240px, 350px) minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  width: min(calc(100% - 48px), 1440px);
  min-height: 88px;
  margin: 12px auto 16px;
  padding: 16px 24px;
  overflow: visible;
  border: 1px solid var(--site-header-border);
  border-radius: 12px;
  color: var(--site-header-text);
  background: var(--site-header-bg);
  box-shadow: 0 10px 26px rgba(15, 15, 15, 0.07);
  backdrop-filter: none;
}

:root[data-theme="night"] body > #siteHeader.app-header.site-header {
  background: #030403 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header {
  background: #f7f6f3 !important;
}

:root body > #siteHeader.app-header.site-header .mobile-header-button {
  display: none;
}

:root body > #siteHeader.app-header.site-header .brand {
  grid-area: brand;
  justify-self: start;
  width: 190px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

:root body > #siteHeader.app-header.site-header .brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: invert(1) hue-rotate(180deg);
}

:root[data-theme="night"] body > #siteHeader.app-header.site-header .brand-logo {
  filter: none;
}

:root body > #siteHeader.app-header.site-header .search-wrap {
  grid-area: search;
  justify-self: stretch;
  width: 100%;
  max-width: 350px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--site-header-search-border);
  border-radius: 8px;
  color: var(--site-header-text);
  background: var(--site-header-search-bg);
}

:root body > #siteHeader.app-header.site-header .search-wrap input {
  height: 42px;
  color: var(--site-header-text);
  font-size: 13px;
}

:root body > #siteHeader.app-header.site-header .header-actions {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  gap: 7px;
  overflow: visible;
  padding: 0;
  white-space: nowrap;
}

:root body > #siteHeader.app-header.site-header .text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--site-header-text);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

:root body > #siteHeader.app-header.site-header .text-link:hover,
:root body > #siteHeader.app-header.site-header .text-link:focus-visible {
  color: var(--site-header-text);
  background: var(--site-header-hover-bg);
}

:root body > #siteHeader.app-header.site-header .text-link.active {
  min-height: 40px;
  padding: 0 10px;
  border-color: transparent;
  border-radius: 8px;
  color: var(--site-header-text);
  background: transparent;
  box-shadow: none;
}

:root body > #siteHeader.app-header.site-header .text-link.active::after {
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link.active,
:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link.active:hover,
:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link.active:focus-visible,
:root[data-theme="night"] body > #siteHeader.app-header.site-header .text-link.active,
:root[data-theme="night"] body > #siteHeader.app-header.site-header .text-link.active:hover,
:root[data-theme="night"] body > #siteHeader.app-header.site-header .text-link.active:focus-visible {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: var(--site-header-text) !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"] {
  min-height: 40px;
  padding: 0 18px;
  border-color: #111111;
  border-radius: 8px;
  color: var(--accent);
  background: #111111;
}

:root body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"]::after {
  display: none;
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"],
:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"]:hover,
:root[data-theme="day"] body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"]:focus-visible {
  border: 1px solid #111111 !important;
  border-radius: 8px !important;
  color: var(--accent) !important;
  background: #111111 !important;
  box-shadow: none !important;
}

:root[data-theme="night"] body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"] {
  border-color: rgba(182, 255, 77, 0.72);
  color: var(--accent);
  background: transparent;
}

:root body > #siteHeader.app-header.site-header .nav-auth-actions {
  gap: 7px;
}

:root body > #siteHeader.app-header.site-header .nav-auth-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
}

:root body > #siteHeader.app-header.site-header .nav-auth-login {
  border-color: transparent;
  color: var(--site-header-text);
  background: transparent;
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header .nav-auth-login,
:root[data-theme="night"] body > #siteHeader.app-header.site-header .nav-auth-login {
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: var(--site-header-text) !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root body > #siteHeader.app-header.site-header .nav-auth-signup {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

:root[data-theme="night"] body > #siteHeader.app-header.site-header .nav-auth-signup {
  border-color: var(--accent);
  color: #071006;
  background: var(--accent);
}

:root body > #siteHeader.app-header.site-header .theme-toggle,
:root body > #siteHeader.app-header.site-header .header-cart-button,
:root body > #siteHeader.app-header.site-header .nav-account-summary {
  min-height: 40px;
  border-color: var(--site-header-control-border);
  color: var(--site-header-text);
  background: var(--site-header-control-bg);
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header .theme-toggle,
:root[data-theme="day"] body > #siteHeader.app-header.site-header .header-cart-button {
  border: 1px solid var(--site-header-control-border) !important;
  border-radius: 8px !important;
  color: #111111 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

:root[data-theme="day"] body > #siteHeader.app-header.site-header .nav-auth-signup {
  border: 1px solid #111111 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  background: #111111 !important;
  box-shadow: none !important;
}

:root body > #siteHeader.app-header.site-header .theme-toggle,
:root body > #siteHeader.app-header.site-header .header-cart-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

:root body > #siteHeader.app-header.site-header .header-cart-button {
  grid-area: cart;
  justify-self: end;
}

:root body > #siteHeader.app-header.site-header .nav-account-menu.active .nav-account-summary {
  border-color: var(--accent);
  color: var(--site-header-text);
  background: var(--site-header-hover-bg);
  box-shadow: none;
}

:root body > #siteHeader.app-header.site-header .nav-account-dropdown {
  border-color: var(--site-header-control-border);
  color: var(--site-header-text);
  background: var(--site-header-bg);
}

@media (max-width: 1360px) {
  :root body > #siteHeader.app-header.site-header {
    grid-template-areas: "brand search nav cart";
    grid-template-columns: 170px minmax(200px, 1fr) minmax(0, auto) 40px;
    gap: 12px;
    width: min(calc(100% - 32px), 1440px);
    min-height: 82px;
    margin-block: 10px 14px;
    padding: 14px 16px;
  }

  :root body > #siteHeader.app-header.site-header .brand {
    width: 170px;
    height: 44px;
    padding: 0;
  }

  :root body > #siteHeader.app-header.site-header .search-wrap {
    max-width: none;
    padding: 0 12px;
  }

  :root body > #siteHeader.app-header.site-header .header-actions {
    grid-column: auto;
    width: auto;
    max-width: none;
    gap: 5px;
    overflow: visible;
    padding: 0;
  }

  :root body > #siteHeader.app-header.site-header .text-link,
  :root body > #siteHeader.app-header.site-header .text-link.active {
    padding-inline: 8px;
    font-size: 12px;
  }

  :root body > #siteHeader.app-header.site-header .text-link.active::after {
    right: 8px;
    left: 8px;
  }

  :root body > #siteHeader.app-header.site-header .text-link[data-page-link="premium"] {
    padding-inline: 14px;
  }

  :root body > #siteHeader.app-header.site-header .nav-auth-actions {
    gap: 5px;
  }

  :root body > #siteHeader.app-header.site-header .nav-auth-button {
    padding-inline: 12px;
    font-size: 12px;
  }

  :root body > #siteHeader.app-header.site-header .theme-toggle,
  :root body > #siteHeader.app-header.site-header .header-cart-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1100px) {
  :root body > #siteHeader.app-header.site-header {
    top: 8px;
    grid-template-areas: "menu brand mobile-search cart";
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
    gap: 8px;
    width: calc(100% - 24px);
    min-height: 68px;
    margin: 8px auto 12px;
    padding: 12px;
    border-radius: 12px;
  }

  :root body > #siteHeader.app-header.site-header .mobile-header-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--site-header-control-border);
    border-radius: 8px;
    color: var(--site-header-text);
    background: var(--site-header-control-bg);
  }

  :root body > #siteHeader.app-header.site-header .mobile-header-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  :root body > #siteHeader.app-header.site-header .mobile-nav-toggle {
    grid-area: menu;
  }

  :root body > #siteHeader.app-header.site-header .mobile-search-toggle {
    grid-area: mobile-search;
  }

  :root body > #siteHeader.app-header.site-header .brand {
    grid-area: brand;
    justify-self: center;
    width: 52px;
    height: 42px;
    padding: 0;
    overflow: hidden;
  }

  :root body > #siteHeader.app-header.site-header .brand-logo {
    width: 188px;
    max-width: none;
    height: 40px;
    object-fit: contain;
    object-position: left center;
  }

  :root body > #siteHeader.app-header.site-header .search-wrap {
    display: none;
  }

  :root body > #siteHeader.app-header.site-header .header-actions {
    display: none;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .header-actions {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 42;
    display: flex;
    grid-area: auto;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: 6px;
    padding: 12px;
    overflow: visible;
    border: 1px solid var(--site-header-border);
    border-radius: 12px;
    color: var(--site-header-text);
    background: var(--site-header-bg);
    box-shadow: var(--site-header-menu-shadow);
    white-space: normal;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .text-link,
  :root body.mobile-nav-open > #siteHeader.app-header.site-header .text-link.active {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 14px;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .text-link.active::after {
    right: auto;
    left: 14px;
    width: 34px;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .text-link[data-page-link="premium"] {
    justify-content: center;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .nav-auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .nav-auth-button {
    width: 100%;
    min-height: 44px;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .theme-toggle {
    width: 44px;
    height: 44px;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .nav-account-menu,
  :root body.mobile-nav-open > #siteHeader.app-header.site-header .nav-account-summary {
    width: 100%;
  }

  :root body.mobile-nav-open > #siteHeader.app-header.site-header .nav-account-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
  }

  :root body.mobile-search-open > #siteHeader.app-header.site-header .search-wrap {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 42;
    display: flex;
    grid-area: auto;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding-inline: 14px;
    border-color: var(--accent);
    box-shadow: var(--site-header-menu-shadow);
  }

  :root body.mobile-search-open > #siteHeader.app-header.site-header .search-wrap input {
    display: block;
    height: 46px;
    font-size: 16px;
  }

  :root body > #siteHeader.app-header.site-header .header-cart-button {
    grid-area: cart;
    width: 42px;
    height: 42px;
    min-height: 42px;
    justify-self: end;
  }
}

@media (max-width: 420px) {
  :root body > #siteHeader.app-header.site-header {
    grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
    gap: 6px;
    width: calc(100% - 16px);
    padding: 10px;
  }

  :root body > #siteHeader.app-header.site-header .mobile-header-button,
  :root body > #siteHeader.app-header.site-header .header-cart-button {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   UNIFIED THEME ACCESSIBILITY PASS
   This final, scoped layer wins over legacy page-specific white/black rules.
   It deliberately changes colour and state treatment only: no layout or
   behavior is altered here.
   ============================================================ */

:root[data-theme] body {
  color: var(--text-primary);
  background: var(--bg);
}

:root[data-theme] :is(button, a, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

:root[data-theme="night"] main,
:root[data-theme="night"] .page-view:not(#home) {
  color: var(--text-primary);
  background: var(--bg);
}

:root[data-theme="night"] :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background-color: var(--input-bg) !important;
}

:root[data-theme="night"] :is(input, textarea)::placeholder {
  color: var(--text-muted) !important;
  opacity: 1;
}

:root[data-theme="night"] option {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

:root[data-theme="night"] :is(input[type="checkbox"], input[type="radio"], input[type="range"]) {
  accent-color: var(--accent);
}

:is(button, input, select, textarea)[disabled],
[aria-disabled="true"] {
  border-color: var(--disabled-bg) !important;
  color: var(--disabled-text) !important;
  background: var(--disabled-bg) !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

:root[data-theme="night"] :is(
  .nav-account-dropdown,
  .market-mega-menu,
  .auth-modal-card,
  .bag-drawer,
  .message-drawer,
  .message-context-card,
  #admin .admin-modal,
  #admin .admin-dropdown,
  [role="menu"],
  [role="listbox"],
  [role="tooltip"]
) {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--surface-elevated);
}

:root[data-theme="night"] .nav-account-dropdown button,
:root[data-theme="night"] .market-mega-menu button,
:root[data-theme="night"] #admin .admin-dropdown button {
  color: var(--text-primary);
}

:root[data-theme="night"] .nav-account-dropdown button:hover,
:root[data-theme="night"] .nav-account-dropdown button:focus-visible,
:root[data-theme="night"] .market-mega-menu button:hover,
:root[data-theme="night"] .market-mega-menu button:focus-visible,
:root[data-theme="night"] #admin .admin-dropdown button:hover,
:root[data-theme="night"] #admin .admin-dropdown button:focus-visible {
  color: var(--text-primary);
  background: rgba(182, 255, 77, 0.14);
}

/* Marketplace: filters, category tabs, cards, sorting and mobile filter state. */
:root[data-theme="night"] body[data-active-page="marketplace"],
:root[data-theme="night"] .market-catalog-page {
  color: var(--text-primary);
  background: var(--bg);
}

:root[data-theme="night"] :is(
  .market-filter-card,
  .market-catalog-page .market-category-top .category-chips button,
  .market-catalog-page .sort-field select,
  .market-view-switcher button,
  .market-mobile-filter-button,
  .market-catalog-page .market-listing-card,
  .market-catalog-page .market-section,
  .market-catalog-page .market-store-card,
  .market-confidence-strip,
  .market-service-strip,
  .market-deal-callout
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface) !important;
}

:root[data-theme="night"] .market-catalog-page .market-category-nav {
  border-bottom-color: var(--border);
}

:root[data-theme="night"] :is(
  .market-catalog-page .market-category-nav button,
  .market-filter-title,
  .market-filter-card .check-row,
  .market-radio-row,
  .market-filter-card .range-row,
  .market-result-count,
  .market-catalog-page .sort-field span,
  .market-card-seller,
  .market-card-meta,
  .market-confidence-strip span,
  .market-service-strip span,
  .market-deal-callout span,
  .market-catalog-heading p,
  .market-catalog-page .market-listing-card .rating-compact
) {
  color: var(--text-secondary) !important;
}

:root[data-theme="night"] :is(
  .market-catalog-page .market-category-nav button:hover,
  .market-catalog-page .market-category-nav button:focus-visible,
  .market-catalog-page .market-category-nav button.active,
  .market-catalog-page .market-category-nav button.open
) {
  color: var(--accent) !important;
}

:root[data-theme="night"] .market-catalog-page .market-category-nav button.active::after {
  background: var(--accent);
}

:root[data-theme="night"] :is(
  .market-catalog-page .market-category-top .category-chips button.active,
  .market-view-switcher button.active,
  .market-apply-filters,
  .market-deal-callout button
) {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="night"] :is(
  .market-catalog-page .market-category-top .category-chips button:hover,
  .market-catalog-page .market-category-top .category-chips button:focus-visible,
  .market-view-switcher button:hover,
  .market-view-switcher button:focus-visible,
  .market-mobile-filter-button:hover,
  .market-mobile-filter-button:focus-visible
) {
  border-color: var(--accent) !important;
  color: var(--text-primary) !important;
  background: var(--surface-elevated) !important;
}

:root[data-theme="night"] .market-catalog-page .market-listing-card .listing-image {
  background: var(--surface-elevated);
}

:root[data-theme="night"] .market-catalog-page .market-listing-card .listing-chip-row span,
:root[data-theme="night"] .market-radio-row small {
  color: var(--text-secondary);
  background: rgba(182, 255, 77, 0.12);
}

:root[data-theme="night"] .market-catalog-page .market-listing-card .price-line strong,
:root[data-theme="night"] .market-catalog-heading h1,
:root[data-theme="night"] .market-filter-sidebar-heading h2 {
  color: var(--text-primary);
}

/* Product detail and seller storefront surfaces. */
:root[data-theme="night"] :is(
  .product-info,
  .seller-card,
  .detail-list li,
  .store-hero,
  .store-metric,
  .store-launch-panel,
  .store-empty-state,
  .store-catalog-panel,
  .sold-out-product-detail,
  .sold-out-product-gallery,
  .sold-out-seller-panel,
  .sold-out-stores-panel,
  .sold-out-store-card,
  .sold-out-trust-strip,
  .storefront-hero,
  .storefront-metrics > div,
  .storefront-catalog,
  .storefront-tab-panel,
  .storefront-product-card,
  .storefront-empty-panel,
  .storefront-about-panel,
  .storefront-review-card,
  .storefront-sidebar > section,
  .storefront-assurance,
  .rating-summary-card,
  .review-card,
  .review-empty
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface) !important;
}

:root[data-theme="night"] :is(
  .storefront-tabs,
  .storefront-about-panel dl > div,
  .storefront-trust-row span
) {
  border-color: var(--border);
}

:root[data-theme="night"] :is(
  .storefront-tabs button,
  .storefront-view-controls label,
  .storefront-product-body p,
  .storefront-about-panel dt,
  .storefront-review-card small,
  .storefront-sidebar p,
  .storefront-assurance span,
  .store-meta-row span,
  .store-metric span,
  .store-metric small,
  .detail-list span
) {
  color: var(--text-secondary) !important;
}

:root[data-theme="night"] .storefront-tabs button[aria-selected="true"] {
  color: var(--accent) !important;
}

:root[data-theme="night"] .storefront-tabs button[aria-selected="true"]::after {
  background: var(--accent);
}

:root[data-theme="night"] .storefront-product-price span.sold,
:root[data-theme="night"] .sold-out-badge {
  color: #ffd6d2;
  background: rgba(209, 71, 60, 0.18);
}

/* Sell, seller management, create-store and the account workspace. */
:root[data-theme="night"] :is(
  .sell-band,
  .sell-workspace,
  .sell-form-section,
  .sell-review-card,
  .sell-upload-panel,
  .sell-photo-slot,
  .seller-store-summary,
  .seller-management-list,
  .seller-listing-row,
  .seller-management-metrics .seller-management-metric,
  .seller-trust-strip,
  .seller-listing-sort select,
  .seller-listing-actions .secondary-button,
  .profile-band,
  .account-shortcut-deck,
  .account-profile-overview,
  .account-lower-grid > *,
  .account-trust-strip,
  .saved-pieces-panel,
  .account-order-card,
  .saved-piece-card,
  .account-lower-grid .empty-state.compact.account-panel-empty,
  .create-store-shell,
  .create-store-card,
  .create-store-step-panel,
  .create-store-location-picker,
  .create-store-fulfilment-options > label > span
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface) !important;
}

:root[data-theme="night"] :is(
  .seller-store-location,
  .seller-store-description,
  .seller-management-header span,
  .seller-management-list-head span,
  .seller-listing-primary > span,
  .seller-listing-details dt,
  .seller-trust-strip small,
  .seller-listing-more,
  .account-panel-empty,
  .account-panel-empty span,
  .account-panel-empty strong,
  .account-panel-empty svg,
  .account-shortcut-grid small,
  .profile-band .section-copy .section-help,
  .create-store-shell p,
  .create-store-step-panel small
) {
  color: var(--text-secondary) !important;
  stroke: currentColor;
}

:root[data-theme="night"] .account-avatar-verified {
  border-color: var(--surface);
  color: var(--accent-ink);
  background: var(--accent);
}

:root[data-theme="night"] .account-quick-actions .account-dashboard-actions > .account-action-switch {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface-elevated) !important;
}

:root[data-theme="night"] .create-store-fulfilment-options input:checked + span {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="night"] .create-store-fulfilment-options input:checked + span small {
  color: #24320f !important;
}

/* Notifications, messages, Feed, Social Blog, Premium and Help Center. */
:root[data-theme="night"] :is(
  .notification-row,
  .notification-open,
  .notification-preference-row,
  .notification-empty-state,
  .message-sidebar,
  .message-sidebar-header,
  .message-chat,
  .message-chat-header,
  .conversation-list,
  .conversation-list-heading,
  .conversation-tab,
  .conversation-list-empty,
  .conversation-product,
  .message-history,
  .message-form,
  .message-empty,
  .email-notice,
  .social-blog-shell,
  .social-feed-panel,
  .social-post-card,
  .social-story-empty,
  .thread-feed-shell,
  .thread-feed-header,
  .thread-reply,
  .thread-post-image,
  .thread-reply-prompt,
  .feed-post-actions button,
  .feed-comment,
  .plans-band,
  .plan-card:not(.featured),
  .help-panel,
  .help-card,
  .help-contact-card
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface) !important;
}

:root[data-theme="night"] :is(
  .notification-row-meta strong,
  .conversation-tab-state,
  .conversation-status-pill,
  .message-bubble span,
  .message-bubble small,
  .social-blog-header > div:first-child p:not(.eyebrow),
  .social-blog-metrics small,
  .social-story strong,
  .social-post-author small,
  .social-post-copy p,
  .social-feed-heading button,
  .social-feed-tabs button,
  .help-card p,
  .help-panel > p,
  .plans-band p
) {
  color: var(--text-secondary) !important;
}

:root[data-theme="night"] :is(
  .conversation-tab.active,
  .conversation-tab.unread,
  .social-feed-tabs button.active,
  .social-post-actions button:hover,
  .social-post-actions button:focus-visible,
  .message-inbox-button:hover,
  .message-inbox-button:focus-visible
) {
  border-color: var(--accent) !important;
  color: var(--text-primary) !important;
  background: rgba(182, 255, 77, 0.14) !important;
}

:root[data-theme="night"] .message-bubble.mine {
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="night"] .help-contact-card {
  background: #182014 !important;
}

/* Admin tables, rows, status pills, empty/error states and action controls. */
:root[data-theme="night"] #admin :is(
  .admin-dashboard-section,
  .admin-dashboard-hero,
  .admin-dashboard-panel,
  .admin-list-item,
  .admin-command-copy,
  .admin-metric-card,
  .admin-dashboard-metric,
  .admin-dashboard-group,
  .admin-dashboard-chip,
  .admin-email-category,
  .admin-email-row,
  .admin-user-row,
  .admin-seller-row,
  .admin-order-row,
  .admin-users-panel,
  .admin-orders-panel,
  .admin-users-error,
  .empty-state
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface) !important;
}

:root[data-theme="night"] #admin :is(th, td, p, span, small, li, em, .admin-user-meta, .admin-seller-action-label) {
  color: var(--text-secondary);
}

:root[data-theme="night"] #admin :is(table, thead, tbody, tr, th, td) {
  border-color: var(--border);
}

:root[data-theme="night"] #admin :is(
  .secondary-button,
  .admin-user-row-button,
  .admin-inline-button,
  .admin-action-chip,
  .admin-module-rail button,
  .admin-seller-filter-row button,
  .admin-filter-row button,
  .admin-users-search button,
  .admin-cleanup-actions button,
  .admin-support-form-actions button,
  .admin-actions button
) {
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--surface-elevated) !important;
}

:root[data-theme="night"] #admin :is(
  .primary-button,
  .admin-action-chip.active,
  .admin-module-rail button.active,
  .admin-seller-filter-row button.active,
  .admin-filter-row button.active
) {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="night"] #admin :is(.danger-button, .admin-user-row-button.danger) {
  border-color: rgba(255, 170, 164, 0.62) !important;
  color: #ffd8d4 !important;
  background: rgba(181, 46, 37, 0.25) !important;
}

/* Home remains a campaign-led black surface in dark mode, with all editorial
   text sourced from the same readable tokens as the rest of the product. */
:root[data-theme="night"] #home.home-page {
  --home-lime: var(--accent);
  --home-white: var(--text-primary);
  --home-muted: var(--text-secondary);
  --home-border: rgba(222, 245, 208, 0.18);
  color: var(--text-primary);
  background: #050605;
}

:root[data-theme="night"] #home.home-page :is(
  .home-discovery-card,
  .home-official-product,
  .home-blog-card,
  .home-empty-state
) {
  border-color: var(--home-border);
}

:root[data-theme="night"] #home.home-page :is(
  .home-blog-body > span
) {
  color: var(--accent);
}

:root[data-theme="day"] #home.home-page {
  --home-lime-ink: #315f00;
  --home-muted: var(--text-secondary);
  --home-border: var(--border);
}

/* Dark interactive controls retain a visible ink/ground pairing even when
   legacy active states set both the foreground and background to lime. */
:root[data-theme="night"] :is(
  .market-catalog-page .market-category-nav button.active,
  .market-catalog-page .market-category-nav button.open
) {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="night"] :is(
  .market-new-deals,
  .market-filter-sidebar-heading button,
  .market-reset-filters
) {
  border-color: var(--border) !important;
  color: var(--accent) !important;
  background: var(--surface-elevated) !important;
}

:root[data-theme="night"] :is(.market-new-deals:hover, .market-new-deals:focus-visible) {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

/* Listing composer: the compact step labels and photo controls sit on
   contrasting surfaces, so they use semantic foreground tokens instead of
   legacy low-contrast greys and white-on-green text. */
.sell-step small,
.sell-form .field-hint {
  color: var(--text-muted) !important;
}

.sell-step.is-active > span,
.sell-step.is-complete > span {
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

.sell-preview-photo {
  color: var(--text-on-dark) !important;
}

.sell-listing-preview button {
  color: var(--success) !important;
}

:root[data-theme="night"] .sell-listing-preview button {
  color: var(--accent) !important;
}

:root[data-theme="night"] .sell-form label > small {
  color: var(--danger) !important;
}

:root[data-theme="night"] :is(
  .premium-benefit-grid article > span,
  .premium-assurance > div > span
) {
  color: var(--accent-ink) !important;
  background: var(--accent) !important;
}

:root[data-theme="day"] #profile .eyebrow,
:root[data-theme="day"] #help > .section-copy .eyebrow,
:root[data-theme="day"] #profile .profile-legal button,
:root[data-theme="day"] #profile .account-legal button {
  color: var(--success) !important;
}

:root[data-theme="day"] #premium .eyebrow,
:root[data-theme="day"] :is(
  .premium-benefit-grid article > span,
  .premium-assurance > div > span
) {
  color: var(--success) !important;
}

.plans-band .plan-price {
  color: var(--success) !important;
}

:root[data-theme="day"] #help .help-hero .eyebrow {
  color: var(--accent) !important;
}

:root[data-theme="day"] #bagDrawer .eyebrow {
  color: var(--success) !important;
}

:root[data-theme="day"] :is(
  .market-filter-sidebar-heading button,
  .market-radio-row small,
  .market-catalog-page .market-category-nav button.active,
  .market-catalog-page .market-category-nav button.open
) {
  color: var(--success) !important;
}

:root[data-theme="day"] .market-reset-filters {
  color: var(--accent) !important;
}

:root[data-theme="day"] .sold-out-badge {
  color: var(--button-text) !important;
  background: var(--button-bg) !important;
}

:root[data-theme="day"] .storefront-section-title button,
:root[data-theme="day"] .storefront-recommendations > div > button {
  color: var(--success) !important;
}

:root[data-theme="day"] .storefront-recommendation-grid strong {
  color: var(--text-primary) !important;
}

:root[data-theme="day"] .market-catalog-page .market-category-nav button.active::after {
  background: var(--success) !important;
}

:root[data-theme="day"] :is(
  .market-catalog-page .market-listing-card .rating-stars,
  .market-catalog-page .market-listing-card .rating-stars .filled
) {
  color: var(--rating) !important;
}

.help-card span {
  color: var(--accent-ink) !important;
}

:root[data-theme="night"] .help-contact-card :is(span, strong, a) {
  color: var(--text-primary) !important;
}

#admin .admin-protected-list span {
  color: var(--text-on-dark) !important;
}

/* Seller storefront — Brand Canvas reference */
.store-page .store-shell {
  width: min(100%, 1440px);
}

.storefront-layout {
  display: block;
}

.storefront-main {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(17, 19, 16, 0.09);
}

.storefront-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 220px minmax(360px, 1fr) minmax(300px, auto);
  gap: 34px;
  min-height: 286px;
  align-items: center;
  padding: 34px 48px 30px;
  overflow: hidden;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: #0b0d0b;
}

.storefront-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("assets/hangah-symbol.jpeg");
  background-position: center;
  background-size: 104px 72px;
  content: "";
  opacity: 0.055;
}

.storefront-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  content: "";
}

.storefront-avatar-frame {
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  border: 7px solid #fff;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.storefront-avatar-frame .profile-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  color: #111;
  background: var(--accent);
  font-size: 58px;
}

.storefront-avatar-frame .profile-avatar img {
  object-fit: contain;
  background: #000;
}

.storefront-identity {
  position: relative;
  z-index: 1;
  gap: 12px;
}

.storefront-kicker-row span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.storefront-identity h1,
:root[data-theme="night"] .storefront-identity h1 {
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -0.035em;
}

.storefront-meta span,
:root[data-theme="night"] .storefront-meta span {
  min-height: 34px;
  padding-inline: 13px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  color: #111;
  background: #fff;
  font-size: 12px;
}

.storefront-identity > p,
:root[data-theme="night"] .storefront-identity > p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.storefront-trust-row span {
  min-height: 30px;
  padding-inline: 13px;
  color: #1b2911;
  background: #e9ffd0;
}

.storefront-actions {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  align-self: end;
  margin: 0 0 8px;
}

.storefront-actions .primary-button,
.storefront-actions .secondary-button {
  min-width: 148px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: #222522;
  box-shadow: none;
}

.storefront-actions .primary-button:hover,
.storefront-actions .primary-button:focus-visible,
.storefront-actions .secondary-button:hover,
.storefront-actions .secondary-button:focus-visible {
  border-color: var(--accent);
  color: #111;
  background: var(--accent);
}

.storefront-catalog {
  background: var(--surface);
}

.storefront-toolbar {
  min-height: 86px;
  padding: 0 34px;
  border-bottom-color: var(--border);
}

.storefront-tabs {
  align-items: center;
  align-self: center;
  gap: 10px;
  overflow: visible;
}

.storefront-tabs button {
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
}

.storefront-tabs button[aria-selected="true"],
:root[data-theme="night"] .storefront-tabs button[aria-selected="true"] {
  color: #18220f !important;
  background: #e9ffd0;
}

.storefront-tabs button[aria-selected="true"]::after {
  right: 0;
  bottom: -23px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.storefront-tabs button:not([aria-selected="true"]) {
  border-color: var(--border);
  background: var(--surface-elevated);
}

.storefront-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 470px;
}

.storefront-tab-panel {
  display: grid;
  min-height: 470px;
  align-content: start;
  padding: 42px 44px;
}

.storefront-empty-panel {
  display: grid;
  min-height: 350px;
  place-items: center;
  align-content: center;
  padding: 44px;
  border: 0;
  background: transparent;
  text-align: center;
}

.storefront-empty-icon {
  display: grid;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-elevated);
}

.storefront-empty-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.storefront-empty-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.4vw, 38px);
  letter-spacing: -0.03em;
}

.storefront-empty-panel p {
  font-size: 15px;
}

.storefront-details-rail {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 38px 34px;
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.storefront-details-rail h2 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.storefront-details-rail > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  min-height: 58px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  color: #213016;
  background: #e9ffd0;
  font-size: 12px;
  font-weight: 900;
}

.storefront-details-rail svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

:root[data-theme="night"] .storefront-main,
:root[data-theme="night"] .storefront-catalog,
:root[data-theme="night"] .storefront-tab-panel,
:root[data-theme="night"] .storefront-details-rail {
  border-color: var(--border);
  background: var(--surface);
}

:root[data-theme="night"] .storefront-tabs button:not([aria-selected="true"]),
:root[data-theme="night"] .storefront-empty-icon {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--surface-elevated);
}

:root[data-theme="night"] .storefront-empty-panel {
  background: transparent;
}

:root[data-theme="night"] .storefront-details-rail > div {
  color: #eaffce;
  background: #24321b;
}

@media (max-width: 1100px) {
  .storefront-hero {
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 0;
    padding: 30px;
  }

  .storefront-avatar-frame {
    width: 164px;
    height: 164px;
  }

  .storefront-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    align-self: auto;
    margin: 0;
  }

  .storefront-content-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .storefront-details-rail {
    padding-inline: 24px;
  }
}

@media (max-width: 820px) {
  .storefront-content-grid {
    grid-template-columns: 1fr;
  }

  .storefront-details-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .storefront-details-rail h2 {
    grid-column: 1 / -1;
  }

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

@media (max-width: 620px) {
  .store-page {
    margin-inline: 12px;
  }

  .storefront-main {
    border-radius: 16px;
  }

  .storefront-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 18px;
  }

  .storefront-avatar-frame {
    width: 104px;
    height: 104px;
    border-width: 4px;
    border-radius: 12px;
  }

  .storefront-identity h1,
  :root[data-theme="night"] .storefront-identity h1 {
    font-size: 30px;
  }

  .storefront-meta,
  .storefront-identity > p,
  .storefront-trust-row,
  .storefront-actions {
    grid-column: 1 / -1;
  }

  .storefront-toolbar {
    min-height: 72px;
    padding-inline: 16px;
  }

  .storefront-tabs {
    width: 100%;
  }

  .storefront-tabs button {
    flex: 1 0 auto;
    padding-inline: 14px;
  }

  .storefront-tabs button[aria-selected="true"]::after {
    bottom: -16px;
  }

  .storefront-tab-panel {
    min-height: 360px;
    padding: 24px 18px;
  }

  .storefront-empty-panel {
    min-height: 300px;
    padding: 26px 12px;
  }

  .storefront-empty-icon {
    width: 84px;
    height: 84px;
  }

  .storefront-details-rail {
    grid-template-columns: 1fr;
  }

  .storefront-product-grid,
  .storefront-review-grid,
  .storefront-about-panel dl {
    grid-template-columns: 1fr;
  }
}



