:root {
  color-scheme: light;
  --bg: #F7F6F0;
  --bg-surface: #FFFEFA;
  --border-subtle: #E5E0D4;
  --text-primary: #27251F;
  --text-secondary: #6F6B5E;
  --accent-primary: #68764D;
  --accent-hover: #525E3C;
  --accent-primary-rgb: 104 118 77;
  --accent-contrast: #FFFFFF;
  --blue: var(--accent-primary);
  --blue2: var(--accent-hover);
  --blue-soft: var(--accent-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --panel: var(--bg-surface);
  --panel2: #EFEEE5;
  --line: var(--border-subtle);
  --card: var(--bg-surface);
  --font: "Manrope", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  min-width: 320px;
}
body.light {
  color-scheme: light;
  --bg: #F7F6F0;
  --bg-surface: #FFFEFA;
  --border-subtle: #E5E0D4;
  --text-primary: #27251F;
  --text-secondary: #6F6B5E;
  --accent-primary: #68764D;
  --accent-hover: #525E3C;
  --accent-primary-rgb: 104 118 77;
  --accent-contrast: #FFFFFF;
  --blue: var(--accent-primary);
  --blue2: var(--accent-hover);
  --blue-soft: var(--accent-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --panel: var(--bg-surface);
  --panel2: #EFEEE5;
  --line: var(--border-subtle);
  --card: var(--bg-surface);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
/* First screen / authentication */
.gate {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 50%, #0e2b50 0, #0a1423 42%, #070a11 78%);
  isolation: isolate;
}
.gate::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  top: 50%;
  left: 69%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(var(--accent-primary-rgb) / 14%), rgb(var(--accent-primary-rgb) / 4.5%) 43%, transparent 70%);
  z-index: -1;
}
.gate-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(134, 177, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 177, 232, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black);
}
#spaceCanvas {
  position: absolute;
  inset: 0 0 0 37%;
  width: 63%;
  height: 100%;
  z-index: -1;
}
.gate-stars-label {
  position: absolute;
  right: 5%;
  top: 38px;
  color: var(--text-secondary);
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 1px;
}
.gate-stars-label span {
  color: #70dcb5;
  margin-left: 12px;
}
.gate-brand {
  position: absolute;
  top: 32px;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
}
.brand-com {
  color: var(--blue-soft);
}
.orbit-symbol {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(116, 177, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 14px rgb(var(--accent-primary-rgb) / 26.7%);
}
.orbit-symbol i {
  position: absolute;
  width: 33px;
  height: 12px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  transform: rotate(-34deg);
}
.orbit-symbol b {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 9px #3894ff;
}
.gate-layout {
  width: min(1110px, 88%);
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 9%;
  align-items: center;
  padding: 90px 0 75px;
}
.gate-copy {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
.eyebrow {
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 1.3px;
  color: #a4b9d5;
}
.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #59dcb1;
  box-shadow: 0 0 9px #59dcb1;
  margin-right: 7px;
}
.gate-copy h1 {
  font-size: clamp(48px, 6.2vw, 77px);
  line-height: 0.99;
  letter-spacing: -4px;
  margin: 25px 0 18px;
  font-weight: 700;
}
.gate-copy h1 em {
  font-style: normal;
  color: var(--accent-primary);
}
.gate-copy > p {
  font-size: 14px;
  line-height: 1.8;
  color: #acb8c9;
  max-width: 380px;
}
.gate-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8fa0b7;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 31px;
}
.gate-proof b {
  color: #eef5ff;
}
.avatar-stack {
  display: flex;
  padding-left: 4px;
}
.avatar-stack i {
  font-style: normal;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border: 2px solid #101d2d;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: #fff;
  font-size: 10px;
}
.avatar-stack i:nth-child(2) {
  background: linear-gradient(135deg, #ffd29b, #8f4a42);
}
.avatar-stack i:nth-child(3) {
  background: linear-gradient(135deg, #a8efd9, #2f776e);
}
.auth-card {
  position: relative;
  z-index: 1;
  padding: 25px 25px 20px;
  background: rgba(13, 20, 31, 0.86);
  border: 1px solid rgba(173, 204, 243, 0.18);
  border-radius: 15px;
  box-shadow:
    0 25px 80px #0007,
    inset 0 1px 0 #ffffff0b;
  backdrop-filter: blur(20px);
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  background: rgb(var(--accent-primary-rgb) / 14.1%);
  border: 1px solid rgb(var(--accent-primary-rgb) / 26.7%);
  border-radius: 9px;
}
.secure-label {
  font:
    8px "DM Mono",
    monospace;
  color: #8698b1;
  letter-spacing: 0.8px;
}
.secure-label i {
  color: var(--accent-primary);
  font-style: normal;
  margin-left: 5px;
}
.auth-card h2 {
  font-size: 22px;
  margin: 19px 0 5px;
  letter-spacing: -0.6px;
}
.auth-card > p {
  color: #97a4b7;
  font-size: 10px;
  margin: 0 0 20px;
}
.field-label {
  display: block;
  color: #c5cfdd;
  font-size: 9px;
  margin: 14px 0;
}
.field-label input {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(176, 195, 222, 0.19);
  border-radius: 7px;
  padding: 0 11px;
  margin-top: 7px;
  outline: 0;
  color: #f4f7fc;
  background: #101722;
  font-size: 11px;
  transition: 0.18s;
}
.field-label input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgb(var(--accent-primary-rgb) / 10.6%);
}
.field-label input::placeholder {
  color: #6e7b91;
}
.auth-submit {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(100deg, var(--accent-primary), var(--accent-hover));
  color: white;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgb(var(--accent-primary-rgb) / 20%);
  transition: 0.2s;
}
.auth-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth-submit span {
  float: right;
  margin-right: 4px;
  font-size: 16px;
  line-height: 12px;
}
.auth-error {
  min-height: 0;
  color: #ff9d9d;
  font-size: 9px;
  margin: 0 0 8px;
}
.auth-switch {
  text-align: center;
  font-size: 9px;
  color: #929fb2;
  margin: 15px 0;
}
.auth-switch button {
  border: 0;
  background: none;
  color: var(--accent-primary);
  font-weight: 700;
  margin-left: 4px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #68768b;
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.7px;
}
.auth-divider span {
  height: 1px;
  background: #ffffff13;
  flex: 1;
}
.guest-button {
  height: 38px;
  width: 100%;
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(171, 192, 222, 0.17);
  border-radius: 7px;
  color: #c4d0e1;
  font-size: 10px;
}
.guest-button span {
  float: right;
  margin-right: 5px;
  color: var(--accent-primary);
}
.auth-legal {
  margin-top: 15px;
  text-align: center;
  color: #6f7d92;
  font-size: 8px;
  line-height: 1.6;
}
.auth-legal a {
  color: #98bcf1;
}
.gate-footer {
  position: absolute;
  bottom: 20px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  color: #60728d;
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.7px;
}
.gate-footer b {
  color: #64d7ae;
}
.gate-footer i {
  color: var(--accent-primary);
  font-style: normal;
  margin-left: 5px;
}
/* Marketplace */
.store {
  min-height: 100vh;
  background: var(--bg);
  transition:
    background 0.2s,
    color 0.2s;
}
.store-header {
  height: 73px;
  padding: 0 max(calc((100vw - 1280px) / 2), 4.5%);
  display: flex;
  align-items: center;
  gap: 38px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 8;
}
.store-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.orbit-symbol.small {
  width: 23px;
  height: 23px;
}
.orbit-symbol.small i {
  width: 28px;
  height: 10px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.main-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-primary);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.searchbox {
  height: 34px;
  width: 214px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.searchbox > span {
  font-size: 19px;
}
.searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}
.searchbox input::placeholder {
  color: var(--muted);
}
.searchbox kbd {
  white-space: nowrap;
  font:
    8px "DM Mono",
    monospace;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.head-icon {
  height: 33px;
  width: 33px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  position: relative;
}
.theme-toggle {
  color: #ffd164;
}
.head-icon i {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 13px;
  height: 13px;
  padding: 1px 3px;
  background: var(--accent-primary);
  border-radius: 8px;
  color: white;
  font:
    8px "DM Mono",
    monospace;
  font-style: normal;
}
.cart-button {
  height: 34px;
  padding: 0 8px 0 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 9px;
  white-space: nowrap;
}
.cart-button span {
  color: var(--accent-primary);
  margin-left: 4px;
}
.cart-button b {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-size: 8px;
  margin-left: 6px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.user-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  font-size: 9px;
  font-weight: 700;
}
.mobile-menu,
.mobile-drawer {
  display: none;
}
.store > main {
  max-width: 1280px;
  margin: auto;
  padding: 0 4.5%;
}
.store-hero {
  height: 372px;
  margin-top: 24px;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  background: rgb(var(--accent-primary-rgb) / 10%);
  color: var(--text-primary);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 42px 0 28px 42px;
  background: linear-gradient(90deg, #e6f0ff 72%, #e6f0ff00);
}
.dark-eyebrow {
  color: var(--text-secondary);
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 0.99;
  letter-spacing: -2.3px;
  margin: 21px 0 12px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-primary);
}
.hero-copy > p {
  max-width: 285px;
  color: #50627a;
  font-size: 11px;
  line-height: 1.8;
}
.hero-cta {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  background: var(--accent-primary);
  border-radius: 5px;
  color: white;
  padding: 11px 14px;
  font-size: 9px;
  font-weight: 700;
  margin-top: 9px;
  box-shadow: 0 7px 18px rgb(var(--accent-primary-rgb) / 20%);
}
.hero-cta span {
  font-size: 13px;
}
.hero-index {
  position: absolute;
  bottom: 18px;
  color: #4c6685;
  font:
    9px "DM Mono",
    monospace;
}
.hero-index i {
  display: inline-block;
  width: 37px;
  height: 1px;
  vertical-align: middle;
  background: #78a8e9;
  margin: 0 6px;
}
.hero-index small {
  margin-left: 11px;
  font-size: 7px;
  letter-spacing: 0.7px;
}
.hero-image {
  position: relative;
  background: #bdcfe4
    url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1400&q=85") center 40% /
    cover;
}
.hero-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--accent-primary-rgb) / 10%) 0, transparent 33%), linear-gradient(0deg, #0b162b7a, transparent 47%);
}
.hero-sticker {
  position: absolute;
  right: 35px;
  top: 32px;
  width: 78px;
  height: 78px;
  display: grid;
  align-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 1px;
  line-height: 1.45;
  transform: rotate(11deg);
  box-shadow: 0 9px 24px rgb(var(--accent-primary-rgb) / 33.3%);
}
.hero-sticker b {
  font-size: 11px;
}
.hero-image-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.6px;
}
.hero-image-caption b {
  font-weight: 400;
  color: var(--accent-primary);
}
.marquee {
  margin: 18px calc(-1 * max(calc((100vw - 1280px) / 2), 4.5%));
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--accent-primary);
  color: white;
  font:
    9px "DM Mono",
    monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}
.marquee div {
  min-width: max-content;
  animation: scroll 36s linear infinite;
}
.marquee b {
  font-size: 13px;
  margin: 0 23px;
  color: var(--accent-primary);
}
@keyframes scroll {
  to {
    transform: translateX(-30%);
  }
}
.catalog-section {
  padding-top: 22px;
}
.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.catalog-heading h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 7px 0 4px;
}
.catalog-heading h2 span {
  color: var(--accent-primary);
}
.catalog-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sell-button {
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-primary);
  color: #fff;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 700;
}
.sell-button span {
  font-size: 15px;
  margin-right: 4px;
  vertical-align: -1px;
}
.sort-label {
  font-size: 8px;
  color: var(--muted);
}
.sort-label select {
  margin-left: 5px;
  padding: 7px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-size: 9px;
  outline: 0;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.category-pill {
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.category-pill.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.category-pill span {
  margin-left: 6px;
}
.results-count {
  margin-left: auto;
  color: var(--muted);
  font:
    8px "DM Mono",
    monospace;
  white-space: nowrap;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  min-width: 0;
  position: relative;
  animation: appear 0.3s ease both;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.product-photo {
  height: clamp(195px, 24vw, 290px);
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel2);
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.product-card:hover .product-photo img {
  transform: scale(1.045);
}
.product-tag {
  position: absolute;
  left: 9px;
  top: 9px;
  border-radius: 3px;
  padding: 5px 7px;
  background: #fff;
  color: #202632;
  font:
    7px "DM Mono",
    monospace;
  letter-spacing: 0.5px;
}
.product-tag.blue-tag {
  background: var(--accent-primary);
  color: #fff;
}
.favorite-toggle {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffffdc;
  color: #213047;
  font-size: 17px;
}
.favorite-toggle.is-favorite {
  color: #f15274;
}
.quick-add {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  background: #ffffffed;
  color: #172235;
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.18s;
}
.product-card:hover .quick-add,
.quick-add:focus {
  opacity: 1;
  transform: none;
}
.product-info {
  padding: 9px 1px 4px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.4px;
}
.product-info h3 {
  font-size: 10px;
  font-weight: 600;
  margin: 5px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-line {
  display: flex;
  align-items: center;
  gap: 7px;
}
.price {
  font-size: 12px;
  font-weight: 800;
}
.old-price {
  color: var(--muted);
  font-size: 8px;
  text-decoration: line-through;
}
.seller-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
  margin-top: 6px;
}
.seller-dot {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3edfa;
  color: var(--accent-primary);
  font-size: 7px;
  font-weight: 700;
}
.empty-state {
  text-align: center;
  padding: 60px 12px;
  color: var(--muted);
}
.empty-state > span {
  font-size: 40px;
  color: var(--accent-primary);
}
.empty-state h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 8px;
}
.empty-state p {
  font-size: 10px;
}
.empty-state button,
.load-more {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 13px;
  background: var(--panel);
  color: var(--ink);
  font-size: 9px;
}
.load-more-wrap {
  text-align: center;
  padding: 24px;
}
.load-more {
  padding: 10px 18px;
}
.load-more span {
  color: var(--accent-primary);
  margin-left: 9px;
}
.sell-banner {
  min-height: 168px;
  padding: 23px 30px;
  margin: 4px 0 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(110deg, #122746, #1b4f8d 65%, #2675c8);
  color: white;
}
.sell-banner-orb {
  width: 74px;
  height: 74px;
  flex: none;
  border: 1px solid #a4d0ff89;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  font-size: 29px;
  box-shadow:
    0 0 35px #56a3ff44,
    inset 0 0 20px #62aaff32;
}
.sell-banner .eyebrow {
  color: var(--accent-primary);
}
.sell-banner h2 {
  font-size: 21px;
  line-height: 1.18;
  margin: 7px 0 0;
}
.sell-banner > p {
  margin: 0 auto 0 0;
  max-width: 210px;
  color: #c2d7f1;
  font-size: 9px;
  line-height: 1.7;
}
.sell-banner > button {
  border: 1px solid #ffffff64;
  background: #ffffff16;
  color: white;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 9px;
  white-space: nowrap;
}
.sell-banner > button span {
  margin-left: 7px;
}
.store-footer {
  min-height: 55px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.5px;
}
.store-footer .store-brand {
  color: var(--ink);
  font: 800 12px var(--font);
  letter-spacing: 2px;
}
.overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: #03070dcc;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  position: relative;
  width: min(510px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 25px 90px #0009;
  animation: appear 0.2s ease;
}
.modal-close {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 23px;
}
.modal h2 {
  font-size: 20px;
  margin: 0 0 5px;
}
.modal-sub {
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 19px;
}
.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-field {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.modal-field.full {
  grid-column: 1/-1;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
  color: var(--ink);
  outline: 0;
  font-size: 10px;
}
.modal-field textarea {
  min-height: 70px;
  resize: vertical;
}
.modal-primary {
  grid-column: 1/-1;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.cart-list {
  display: grid;
  gap: 9px;
  margin: 15px 0;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.cart-row img {
  width: 49px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-row-info {
  flex: 1;
}
.cart-row-info b,
.cart-row-info small {
  display: block;
}
.cart-row-info b {
  font-size: 10px;
}
.cart-row-info small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.cart-row button {
  border: 0;
  background: transparent;
  color: #f27991;
  font-size: 16px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}
.checkout-note {
  padding: 9px;
  background: rgb(var(--accent-primary-rgb) / 8.2%);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  border: 1px solid #4d8fdf55;
  border-radius: 8px;
  background: #101a29;
  color: #eaf3ff;
  box-shadow: 0 10px 35px #0008;
  font-size: 10px;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
body.light .auth-card {
  background: #ffffffd9;
  border-color: #cbd8e8;
}
body.light .auth-card h2 {
  color: #172234;
}
body.light .field-label {
  color: #45566d;
}
body.light .field-label input {
  background: var(--panel2);
  color: #172234;
}
body.light .gate-copy > p,
body.light .gate-proof {
  color: #c6d5e9;
}
@media (max-width: 1000px) {
  .store-header {
    gap: 18px;
    padding-inline: 3%;
  }
  .main-nav {
    gap: 15px;
  }
  .searchbox {
    width: 170px;
  }
  .store > main {
    padding-inline: 3%;
  }
  .product-grid {
    gap: 10px;
  }
  .product-photo {
    height: clamp(180px, 27vw, 260px);
  }
  .gate-layout {
    gap: 5%;
    grid-template-columns: 1fr 355px;
  }
  .gate-copy h1 {
    font-size: 61px;
  }
}
@media (max-width: 760px) {
  .gate-layout {
    width: 90%;
    grid-template-columns: 1fr 335px;
    gap: 2%;
  }
  .gate-copy h1 {
    font-size: 50px;
  }
  .auth-card {
    padding: 20px;
  }
  .gate-footer {
    font-size: 7px;
  }
  .store-header {
    height: 61px;
    padding: 0 4%;
    gap: 10px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    padding: 5px;
  }
  .store-header > .main-nav {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .searchbox {
    width: 35px;
    border: 0;
    background: transparent;
    padding: 0 5px;
  }
  .searchbox input,
  .searchbox kbd {
    display: none;
  }
  .searchbox > span {
    font-size: 20px;
  }
  .user-chip {
    font-size: 0;
  }
  .user-chip > span:last-child {
    font-size: 12px;
  }
  .cart-button {
    font-size: 8px;
  }
  .mobile-drawer {
    position: fixed;
    z-index: 7;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 12px 5%;
    display: none;
    gap: 18px;
  }
  .mobile-drawer.open {
    display: flex;
  }
  .mobile-drawer a {
    font-size: 10px;
    color: var(--muted);
  }
  .store-hero {
    height: 315px;
    grid-template-columns: 52% 48%;
    margin-top: 16px;
  }
  .hero-copy {
    padding: 32px 0 20px 25px;
  }
  .hero-copy h1 {
    font-size: 39px;
  }
  .hero-copy > p {
    max-width: 220px;
    font-size: 9px;
  }
  .hero-image-caption {
    font-size: 7px;
  }
  .hero-image-caption b {
    font-size: 6px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 11px;
  }
  .product-photo {
    height: clamp(205px, 56vw, 330px);
  }
  .quick-add {
    opacity: 1;
    transform: none;
  }
  .product-card:hover .quick-add {
    background: #fff;
  }
  .catalog-heading h2 {
    font-size: 21px;
  }
  .sort-label {
    display: none;
  }
  .sell-banner {
    gap: 13px;
    padding: 18px;
  }
  .sell-banner-orb {
    width: 54px;
    height: 54px;
  }
  .sell-banner h2 {
    font-size: 18px;
  }
  .sell-banner > p {
    display: none;
  }
  .sell-banner > button {
    margin-left: auto;
  }
  .store-footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 580px) {
  .gate {
    min-height: 100svh;
  }
  .gate-brand {
    top: 22px;
    left: 5%;
  }
  .gate-stars-label {
    top: 30px;
    right: 5%;
    font-size: 7px;
  }
  .gate-layout {
    width: min(420px, 90%);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 70px 0 72px;
  }
  .gate-copy {
    text-align: center;
  }
  .gate-copy h1 {
    font-size: 42px;
    letter-spacing: -2px;
    margin: 14px 0 9px;
  }
  .gate-copy > p {
    font-size: 10px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 310px;
  }
  .gate-proof {
    display: none;
  }
  .gate-copy .eyebrow {
    font-size: 8px;
  }
  .auth-card {
    width: 100%;
    padding: 17px 18px;
  }
  .auth-card h2 {
    font-size: 19px;
    margin-top: 12px;
  }
  .auth-card > p {
    margin-bottom: 10px;
  }
  .field-label {
    margin: 10px 0;
  }
  .field-label input {
    height: 38px;
  }
  .auth-submit {
    height: 39px;
  }
  .guest-button {
    height: 35px;
  }
  .auth-legal {
    margin-top: 10px;
  }
  .gate-footer {
    left: 5%;
    right: 5%;
    bottom: 14px;
    justify-content: center;
  }
  .gate-footer span:nth-child(2),
  .gate-footer span:nth-child(3) {
    display: none;
  }
  #spaceCanvas {
    inset: 0;
    width: 100%;
    opacity: 0.56;
  }
  .gate::before {
    left: 50%;
    top: 29%;
    width: 400px;
    height: 400px;
  }
  .store-header .store-brand {
    font-size: 12px;
    letter-spacing: 1px;
    gap: 6px;
  }
  .store-header .orbit-symbol.small {
    width: 20px;
    height: 20px;
  }
  .header-actions {
    gap: 3px;
  }
  .head-icon {
    width: 29px;
    height: 29px;
  }
  .cart-button {
    padding: 0 6px;
  }
  .user-avatar {
    width: 22px;
    height: 22px;
  }
  .searchbox {
    width: 28px;
  }
  .store > main {
    padding-inline: 4%;
  }
  .store-hero {
    height: 300px;
    display: block;
    background: rgb(var(--accent-primary-rgb) / 10%);
  }
  .hero-copy {
    height: 100%;
    width: 72%;
    padding: 30px 0 20px 20px;
    background: linear-gradient(90deg, #e6f0ff 60%, #e6f0ff00);
  }
  .hero-copy h1 {
    font-size: 37px;
  }
  .hero-image {
    position: absolute;
    inset: 0 0 0 35%;
    z-index: 0;
  }
  .hero-image-shade {
    background: linear-gradient(90deg, rgb(var(--accent-primary-rgb) / 10%) 0, transparent 60%), linear-gradient(0deg, #0b162b7a, transparent 48%);
  }
  .hero-copy {
    z-index: 1;
  }
  .hero-sticker {
    right: 12px;
    top: 14px;
    width: 58px;
    height: 58px;
    font-size: 6px;
  }
  .hero-sticker b {
    font-size: 8px;
  }
  .hero-image-caption {
    left: auto;
    right: 10px;
    bottom: 10px;
    display: block;
    text-align: right;
  }
  .hero-image-caption b {
    display: block;
    margin-top: 3px;
  }
  .hero-index {
    bottom: 13px;
    font-size: 7px;
  }
  .hero-index small {
    font-size: 6px;
  }
  .marquee {
    margin-inline: -4.5%;
    height: 29px;
    font-size: 8px;
  }
  .catalog-heading {
    align-items: start;
    gap: 10px;
  }
  .catalog-heading h2 {
    font-size: 18px;
  }
  .catalog-heading p {
    font-size: 8px;
  }
  .catalog-tools {
    gap: 0;
  }
  .sell-button {
    height: 31px;
    padding: 0 8px;
    font-size: 8px;
    white-space: nowrap;
  }
  .category-row {
    overflow: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .category-row::-webkit-scrollbar {
    display: none;
  }
  .category-pill {
    padding: 0 10px;
  }
  .results-count {
    display: none;
  }
  .product-photo {
    height: clamp(180px, 61vw, 290px);
  }
  .product-meta {
    font-size: 7px;
  }
  .product-info h3 {
    font-size: 9px;
  }
  .price {
    font-size: 11px;
  }
  .seller-line {
    font-size: 7px;
  }
  .sell-banner {
    min-height: 140px;
    padding: 14px;
    gap: 9px;
  }
  .sell-banner-orb {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .sell-banner h2 {
    font-size: 15px;
  }
  .sell-banner .eyebrow {
    font-size: 7px;
  }
  .sell-banner > button {
    font-size: 8px;
    padding: 9px 7px;
  }
  .store-footer {
    font-size: 7px;
  }
  .modal {
    padding: 20px 16px;
  }
}
.gate-theme-toggle {
  position: absolute;
  z-index: 3;
  top: 30px;
  right: 5%;
  border: 1px solid #8cbcff44;
  background: #0a17268c;
  border-radius: 20px;
  padding: 7px 10px;
  color: #9fcaff;
  font-size: 13px;
  backdrop-filter: blur(8px);
}
.gate-theme-toggle [data-theme-label] {
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 0.6px;
  margin-left: 4px;
}
.gate-theme-toggle:hover {
  border-color: #8cbcffaa;
}
body.light .gate {
  background: radial-gradient(ellipse at 70% 50%, #dcecff 0, #edf5ff 44%, #f8fbff 80%);
}
body.light .gate::before {
  background: radial-gradient(circle, rgb(var(--accent-primary-rgb) / 12%), rgb(var(--accent-primary-rgb) / 4%) 43%, transparent 70%);
}
body.light .gate-noise {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(43, 103, 176, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 103, 176, 0.07) 1px, transparent 1px);
}
body.light .gate-brand {
  color: #14243a;
}
body.light .gate-copy h1 {
  color: #17263c;
}
body.light .gate-copy > p {
  color: #566b86;
}
body.light .gate-proof {
  color: #627894;
}
body.light .gate-proof b {
  color: #273e5d;
}
body.light .gate-stars-label {
  color: #526b8c;
}
body.light .gate-theme-toggle {
  background: #ffffffb8;
  color: var(--accent-hover);
  border-color: #347fc655;
}
body.light .auth-card {
  background: #ffffffd9;
  border-color: #cbd8e8;
}
body.light .auth-card h2 {
  color: #172234;
}
body.light .auth-card > p {
  color: #64748a;
}
body.light .field-label {
  color: #45566d;
}
body.light .field-label input {
  background: var(--panel2);
  color: #172234;
}
body.light .auth-switch,
body.light .auth-legal {
  color: #708198;
}
body.light .guest-button {
  color: #31445d;
  border-color: #d5e0ed;
}
body.light .gate-footer {
  color: #647c9b;
}
.role-pill {
  font:
    7px "DM Mono",
    monospace;
  letter-spacing: 0.3px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 26.7%);
  background: rgb(var(--accent-primary-rgb) / 9.8%);
  color: var(--accent-primary);
  border-radius: 9px;
  padding: 3px 5px;
}
.user-chip .role-pill[hidden] {
  display: none !important;
}
/* Expanded shop interactions: filters, account menu, details, management and orders */
.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -5px 0 17px;
  color: var(--muted);
}
.filter-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
}
.filter-row select,
.filter-row input {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  padding: 6px 8px;
  font-size: 8px;
}
.reset-filters {
  border: 0;
  background: none;
  color: #438df1;
  font-size: 8px;
}
.shown-count {
  display: block;
  color: var(--muted);
  font:
    8px "DM Mono",
    monospace;
  margin-top: 7px;
}
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.user-menu-wrap {
  position: relative;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 205px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  box-shadow: 0 16px 44px #0005;
  z-index: 12;
}
.account-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 9px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  font-size: 9px;
}
.account-menu button:hover {
  background: var(--panel2);
  color: var(--accent-primary);
}
.menu-identity {
  padding: 8px 9px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.menu-identity b,
.menu-identity small {
  display: block;
}
.menu-identity b {
  font-size: 10px;
}
.menu-identity small {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.role-pill {
  white-space: nowrap;
}
.product-card {
  cursor: pointer;
}
.product-card:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 8px;
}
.filter-row select:focus,
.filter-row input:focus {
  outline: 2px solid rgb(var(--accent-primary-rgb) / 33.3%);
}
.modal.wide {
  width: min(810px, 100%);
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: center;
}
.detail-image {
  width: 100%;
  height: min(65vh, 480px);
  object-fit: cover;
  border-radius: 7px;
  background: var(--panel2);
}
.detail-copy h2 {
  font-size: 23px;
  line-height: 1.2;
  margin: 8px 0;
}
.detail-rating {
  font-size: 9px;
  color: #e5ab34;
}
.detail-rating span {
  color: var(--muted);
}
.detail-price {
  font-size: 24px;
  font-weight: 800;
  margin: 15px 0 10px;
}
.detail-copy > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.detail-facts {
  display: grid;
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
}
.detail-facts span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}
.detail-facts b {
  color: var(--ink);
}
.detail-copy .seller-line {
  margin-bottom: 15px;
}
.detail-actions {
  display: flex;
  gap: 8px;
}
.detail-actions .modal-primary {
  flex: 1;
}
.detail-actions .modal-primary:disabled {
  opacity: 0.65;
}
.detail-favorite {
  width: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
  color: var(--accent-primary);
  font-size: 17px;
}
.upload-preview {
  grid-column: 1/-1;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}
.cart-row {
  gap: 8px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px;
}
.quantity-control button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 3px;
  background: var(--panel2);
  color: var(--ink);
}
.quantity-control button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.quantity-control b {
  min-width: 12px;
  text-align: center;
  font-size: 9px;
}
.remove-item {
  border: 0;
  background: transparent;
  color: #e27487;
  font-size: 16px;
}
.cart-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--muted);
  font-size: 9px;
}
.cart-summary .cart-total {
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding-top: 10px;
  margin-top: 5px;
}
.order-list,
.seller-orders-list,
.manage-list {
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}
.order-card,
.seller-order {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--panel2);
}
.order-card-head,
.seller-order-head,
.seller-order-foot,
.order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.order-card-head > b,
.seller-order-head b {
  font:
    10px "DM Mono",
    monospace;
}
.order-card-head time {
  font-size: 8px;
  color: var(--muted);
}
.status-pill {
  display: inline-block;
  border-radius: 12px;
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-primary);
  padding: 4px 7px;
  font-size: 8px;
  white-space: nowrap;
}
.order-card-items {
  padding: 10px 0;
  display: grid;
  gap: 7px;
}
.order-card-items > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
}
.order-card-items b {
  color: var(--ink);
  white-space: nowrap;
}
.order-card-foot {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}
.order-card-foot b {
  color: var(--ink);
  white-space: nowrap;
}
.order-card > small {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  color: var(--muted);
}
.dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 16px;
}
.dashboard-title h2 {
  font-size: 22px;
}
.dashboard-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.dashboard-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 10px;
  color: var(--muted);
  font-size: 9px;
}
.dashboard-tabs button.active {
  border-color: var(--accent-primary);
  color: var(--ink);
}
.dashboard-tabs b {
  margin-left: 4px;
  color: var(--accent-primary);
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}
.dashboard-stats > div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
.dashboard-stats small,
.dashboard-stats b {
  display: block;
}
.dashboard-stats small {
  font-size: 8px;
  color: var(--muted);
}
.dashboard-stats b {
  font-size: 16px;
  margin-top: 4px;
}
.manage-product {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.manage-product.is-inactive {
  opacity: 0.7;
}
.manage-product img {
  width: 45px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}
.manage-product-info {
  flex: 1;
  min-width: 0;
}
.manage-product-info b,
.manage-product-info small,
.manage-product-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manage-product-info b {
  font-size: 9px;
}
.manage-product-info small,
.manage-product-info span {
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.manage-product-info span {
  color: var(--accent-primary);
}
.manage-product > button,
.order-status-control button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 6px 7px;
  color: var(--ink);
  font-size: 8px;
  white-space: nowrap;
}
.manage-product .danger-button {
  color: #df5e72;
  font-size: 14px;
}
.seller-order-head small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.seller-order-foot {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}
.seller-order-foot b {
  color: var(--ink);
}
.order-status-control {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 8px;
  color: var(--muted);
}
.order-status-control select {
  margin-left: auto;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
  font-size: 8px;
}
.empty-dashboard {
  text-align: center;
  padding: 26px 10px;
  color: var(--muted);
}
.empty-dashboard h3 {
  margin: 4px 0;
  font-size: 13px;
  color: var(--ink);
}
.empty-dashboard p {
  font-size: 9px;
}
.empty-dashboard .modal-primary {
  max-width: 200px;
}
.danger-button {
  color: #df5e72 !important;
}
body.light .account-menu {
  box-shadow: 0 16px 44px #17294422;
}
body.light .account-menu button:hover {
  background: var(--panel2);
}
@media (max-width: 760px) {
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-row label {
    font-size: 7px;
  }
  .filter-row select,
  .filter-row input {
    padding: 6px;
  }
  .product-detail {
    gap: 14px;
  }
  .detail-image {
    height: 390px;
  }
  .manage-product {
    gap: 5px;
  }
  .manage-product > button {
    padding: 5px;
    font-size: 7px;
  }
  .account-menu {
    top: calc(100% + 8px);
  }
}
@media (max-width: 580px) {
  .filter-row {
    gap: 5px;
    margin-top: -8px;
  }
  .filter-row label {
    gap: 3px;
  }
  .filter-row select,
  .filter-row input {
    max-width: 105px;
    font-size: 7px;
  }
  .reset-filters {
    font-size: 7px;
  }
  .modal.wide {
    max-height: 94vh;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .detail-image {
    height: min(40vh, 310px);
  }
  .detail-copy h2 {
    font-size: 18px;
  }
  .detail-price {
    font-size: 20px;
    margin: 9px 0;
  }
  .detail-copy > p {
    margin: 6px 0;
  }
  .manage-product {
    flex-wrap: wrap;
  }
  .manage-product img {
    width: 38px;
    height: 46px;
  }
  .manage-product-info {
    min-width: calc(100% - 60px);
  }
  .manage-product > button {
    margin-left: auto;
  }
  .manage-product > button + button {
    margin-left: 0;
  }
  .dashboard-stats {
    gap: 5px;
  }
  .dashboard-stats > div {
    padding: 7px;
  }
  .dashboard-stats small {
    font-size: 7px;
  }
  .order-card-head {
    flex-wrap: wrap;
  }
  .order-card-head time {
    margin-left: auto;
  }
  .cart-row {
    flex-wrap: wrap;
  }
  .cart-row-info {
    min-width: calc(100% - 80px);
  }
  .quantity-control {
    margin-left: auto;
  }
  .cart-summary .cart-total {
    padding-top: 8px;
  }
  .order-status-control {
    flex-wrap: wrap;
  }
  .order-status-control select {
    margin-left: 0;
  }
  .seller-order-foot {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }
}
.detail-reviews {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}
.reviews-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
}
.reviews-heading button {
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  font-size: 8px;
}
.review-list {
  max-height: 145px;
  overflow: auto;
  margin-top: 8px;
}
.review-item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.review-item > div {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}
.review-item > div span {
  color: #eba934;
  letter-spacing: 1px;
}
.review-item p,
.no-reviews {
  font-size: 8px;
  line-height: 1.55;
  color: var(--muted);
  margin: 5px 0;
}
.review-item small {
  color: var(--muted);
  font-size: 7px;
}
.modal-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.modal-section-title {
  font-size: 12px;
  margin: 0 0 10px;
}
.head-icon.active {
  color: var(--accent-primary);
  background: rgb(var(--accent-primary-rgb) / 8.2%);
  border-color: rgb(var(--accent-primary-rgb) / 33.3%);
}
.cancel-order {
  margin-top: 9px;
  border: 1px solid #e18a9a55;
  border-radius: 4px;
  background: transparent;
  color: #dd6b7c;
  padding: 6px 9px;
  font-size: 8px;
}
.cancel-order:hover {
  background: #df586d12;
}
.modal-section-title {
  margin-top: 3px;
}
.legal-copy {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}
.dashboard-stats.four {
  grid-template-columns: repeat(4, 1fr);
}
.dashboard-stats.four b {
  font-size: 14px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 11px;
}
.overview-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--panel2);
}
.overview-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overview-card-heading small,
.overview-card-heading b {
  display: block;
}
.overview-card-heading small {
  font:
    7px "DM Mono",
    monospace;
  color: var(--muted);
  letter-spacing: 0.7px;
}
.overview-card-heading b {
  font-size: 10px;
  margin-top: 4px;
}
.overview-card-heading > span {
  font:
    7px "DM Mono",
    monospace;
  color: var(--muted);
}
.sales-chart {
  height: 147px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 7px;
  padding-top: 16px;
}
.chart-column {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
  min-width: 0;
}
.chart-column > b {
  height: 10px;
  font-size: 6px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.chart-column > i {
  display: block;
  width: 65%;
  min-height: 3px;
  max-height: 94px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(0deg, var(--accent-primary), var(--accent-hover));
  box-shadow: 0 0 12px rgb(var(--accent-primary-rgb) / 20%);
}
.chart-column > small {
  font:
    7px "DM Mono",
    monospace;
  color: var(--muted);
  text-transform: capitalize;
}
.best-sellers {
  display: grid;
  margin-top: 9px;
}
.best-sellers > div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.best-sellers > div:last-child {
  border: 0;
}
.best-index {
  font:
    8px "DM Mono",
    monospace;
  color: #388bf0;
}
.best-sellers b {
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.best-sellers small {
  font-size: 7px;
  color: var(--muted);
}
.best-sellers strong {
  grid-column: 2/-1;
  font-size: 8px;
  color: var(--ink);
  font-weight: 600;
  margin-top: -3px;
}
.overview-note {
  color: var(--muted);
  font-size: 8px;
  margin-top: 10px;
}
.empty-dashboard.compact {
  padding: 19px 5px;
}
.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 11px 0 4px;
  position: relative;
}
.order-timeline::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 5px;
  height: 2px;
  background: var(--line);
}
.timeline-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 7px;
}
.timeline-step i {
  width: 11px;
  height: 11px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--panel2);
  z-index: 1;
}
.timeline-step.done {
  color: var(--accent-primary);
}
.timeline-step.done i {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 0 3px rgb(var(--accent-primary-rgb) / 10.2%);
}
.order-timeline.cancelled {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 5px;
  background: #df596d10;
  color: #df6879;
}
.order-timeline.cancelled b {
  font-size: 8px;
}
.order-timeline.cancelled span {
  font-size: 8px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stats.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .sales-chart {
    height: 125px;
  }
  .best-sellers > div {
    grid-template-columns: 18px 1fr auto;
  }
  .dashboard-stats.four b {
    font-size: 12px;
  }
  .timeline-step small {
    font-size: 6px;
  }
}
.password-wrap {
  display: flex;
  position: relative;
  margin-top: 7px;
}
.password-wrap input {
  margin-top: 0 !important;
  padding-right: 54px !important;
}
.password-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #75adf3;
  font-size: 8px;
  padding: 4px;
}
.password-wrap button:hover {
  text-decoration: underline;
}
.gate {
  background: var(--bg);
  color: var(--text-primary);
}
.gate::before {
  background: radial-gradient(circle, rgb(var(--accent-primary-rgb) / 7%), rgb(var(--accent-primary-rgb) / 2.5%) 45%, transparent 72%);
}
.gate-noise {
  opacity: 0.06;
  background-size: 96px 96px;
}
#spaceCanvas {
  opacity: 0.58;
}
.gate-stars-label {
  color: #677486;
  font: 10px var(--font);
  letter-spacing: 0.04em;
}
.gate-stars-label span {
  color: var(--accent-primary);
}
.gate-brand {
  color: var(--text-primary);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.orbit-symbol {
  border-color: var(--accent-primary);
  box-shadow: none;
}
.orbit-symbol i {
  display: none;
}
.orbit-symbol b {
  background: var(--accent-primary);
  box-shadow: none;
}
.eyebrow {
  font: 500 11px var(--font);
  letter-spacing: 0.01em;
  color: #667487;
}
.signal {
  display: none;
}
.gate-copy h1,
.hero-copy h1,
.catalog-heading h2,
.sell-banner h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.gate-copy h1 {
  font-size: clamp(54px, 6vw, 76px);
  line-height: 1.03;
  margin: 20px 0 14px;
  color: var(--text-primary);
}
.gate-copy h1 em {
  color: var(--accent-primary);
  font-style: normal;
}
.gate-copy > p {
  color: #596778;
  line-height: 1.7;
}
.gate-proof {
  color: #617080;
  font-size: 11px;
}
.gate-proof b {
  color: #253549;
}
.auth-card {
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(24, 38, 56, 0.08);
  backdrop-filter: none;
}
.auth-icon {
  color: var(--accent-primary);
  background: var(--panel2);
  border-color: rgb(var(--accent-primary-rgb) / 10%);
  border-radius: 50%;
}
.secure-label {
  font: 500 9px var(--font);
  letter-spacing: 0.02em;
  color: #738093;
}
.secure-label i {
  color: var(--accent-primary);
}
.auth-card h2 {
  color: var(--text-primary);
}
.auth-card > p,
.auth-switch,
.auth-legal {
  color: var(--text-secondary);
}
.field-label {
  color: #455365;
  font-size: 10px;
}
.field-label input {
  background: #fbfbfa;
  color: var(--text-primary);
  border-color: #dfe3e8;
  border-radius: 5px;
}
.field-label input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgb(var(--accent-primary-rgb) / 7.8%);
}
.auth-submit {
  background: var(--accent-primary);
  box-shadow: none;
  border-radius: 5px;
}
.auth-submit:hover {
  filter: brightness(0.96);
  transform: none;
}
.auth-switch button,
.auth-legal a,
.password-wrap button {
  color: var(--accent-hover);
}
.auth-divider {
  font: 500 8px var(--font);
  letter-spacing: 0.02em;
  color: #788493;
}
.auth-divider span {
  background: #e6e8eb;
}
.guest-button {
  border-color: #d9dfe6;
  border-radius: 5px;
  color: #344357;
}
.guest-button span {
  color: var(--accent-primary);
}
.gate-footer {
  font: 10px var(--font);
  letter-spacing: 0.02em;
  color: #768190;
}
.gate-footer b {
  color: var(--accent-primary);
}
.gate-footer i {
  color: var(--accent-primary);
}
.gate-theme-toggle {
  color: #40536a;
  border-color: #dbe1e8;
  background: #ffffffb8;
}
.store {
  background: var(--bg);
}
.store-header {
  box-shadow: none;
}
.store-brand {
  font-size: 14px;
  letter-spacing: 0.1em;
}
.main-nav {
  gap: 22px;
}
.main-nav a {
  font-size: 11px;
}
.searchbox,
.cart-button {
  border-radius: 5px;
}
.head-icon {
  border-radius: 5px;
}
.store-hero {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  color: var(--ink);
}
.hero-copy {
  background: none;
}
.hero-copy h1 {
  font-size: clamp(39px, 4.1vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-primary);
}
.hero-copy > p {
  max-width: 365px;
  color: #536275;
  line-height: 1.65;
}
.dark-eyebrow {
  color: #68798d;
}
.hero-cta {
  background: var(--accent-primary);
  border-radius: 4px;
  box-shadow: none;
}
.hero-cta:hover {
  background: var(--accent-hover);
}
.hero-image-shade {
  background:
    linear-gradient(90deg, rgba(15, 27, 43, 0.03), rgba(15, 27, 43, 0.08)),
    linear-gradient(0deg, rgba(15, 27, 43, 0.3), transparent 42%);
}
.hero-sticker {
  width: 66px;
  height: 66px;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid rgba(32, 48, 66, 0.1);
  box-shadow: 0 3px 12px #17283b14;
  transform: rotate(0);
  font: 9px var(--font);
  letter-spacing: 0.02em;
}
.hero-sticker b {
  color: var(--accent-primary);
}
.hero-image-caption {
  font: 9px var(--font);
  letter-spacing: 0.03em;
}
.hero-image-caption b {
  font-size: 8px;
  letter-spacing: 0.03em;
}
.hero-index {
  font: 10px var(--font);
  color: #657486;
}
.hero-index i {
  display: none;
}
.announcement-bar {
  min-height: 38px;
  margin: 10px 0 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--panel2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
}
.announcement-bar i {
  font-style: normal;
  color: var(--accent-primary);
}
.catalog-section {
  padding-top: 30px;
}
.catalog-heading h2 {
  font-size: 30px;
  letter-spacing: -0.015em;
}
.catalog-heading h2 span {
  color: var(--accent-primary);
}
.catalog-heading p {
  font-size: 11px;
}
.catalog-tools {
  gap: 16px;
}
.sell-button,
.category-pill.active,
.modal-primary {
  background: var(--accent-primary);
  border-radius: 4px;
  box-shadow: none;
}
.sell-button {
  height: 36px;
  font-size: 10px;
}
.sort-label,
.sort-label select {
  font-size: 10px;
}
.category-row {
  margin-top: 17px;
}
.category-pill {
  border-radius: 4px;
  font-size: 10px;
}
.product-grid {
  gap: 20px 15px;
}
.product-photo {
  border-radius: 4px;
  background: var(--panel2);
}
.product-tag {
  font: 500 9px var(--font);
  letter-spacing: 0;
  border-radius: 3px;
  background: #fff;
}
.product-tag.blue-tag {
  background: var(--accent-primary);
}
.quick-add {
  border-radius: 3px;
}
.product-meta {
  font: 500 9px var(--font);
  letter-spacing: 0;
}
.product-info h3 {
  font-size: 12px;
  line-height: 1.4;
}
.price {
  font-size: 13px;
}
.seller-line {
  font-size: 9px;
}
.seller-dot {
  background: #eaf1fb;
  color: var(--accent-hover);
}
.empty-state > span,
.load-more span {
  color: var(--accent-primary);
}
.sell-banner {
  border: 1px solid #dfe5ed;
  border-radius: 6px;
  background: #eef2f7;
  color: var(--text-primary);
}
.sell-banner-orb {
  border-color: #b7c8da;
  color: var(--accent-primary);
  box-shadow: none;
}
.sell-banner .eyebrow {
  color: #66778b;
}
.sell-banner > p {
  color: #596a7e;
}
.sell-banner > button {
  background: var(--accent-primary);
  border: 0;
  border-radius: 4px;
  color: #fff;
}
.store-footer {
  font: 10px var(--font);
  letter-spacing: 0.02em;
}
.store-footer .store-brand {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.modal {
  border-radius: 8px;
  box-shadow: 0 16px 50px #0b1b2c30;
}
.toast {
  border-radius: 5px;
  box-shadow: 0 7px 25px #0b1b2c2b;
}
body.light .gate {
  background: var(--bg);
}
body.light .gate::before {
  background: radial-gradient(circle, rgb(var(--accent-primary-rgb) / 7%), rgb(var(--accent-primary-rgb) / 2.5%) 45%, transparent 72%);
}
body.light .gate-noise {
  opacity: 0.06;
}
body.light .gate-brand,
body.light .gate-copy h1 {
  color: var(--text-primary);
}
body.light .gate-copy > p {
  color: #596778;
}
body.light .gate-proof {
  color: #617080;
}
body.light .gate-proof b {
  color: #253549;
}
body.light .gate-stars-label {
  color: #677486;
}
body.light .auth-card {
  background: #fff;
  border-color: #e2e5e8;
}
body.light .auth-card h2 {
  color: var(--text-primary);
}
body.light .auth-card > p,
body.light .auth-switch,
body.light .auth-legal {
  color: var(--text-secondary);
}
body.light .field-label {
  color: #455365;
}
body.light .field-label input {
  background: #fbfbfa;
  color: var(--text-primary);
}
body.light .guest-button {
  color: #344357;
  border-color: #d9dfe6;
}
body.light .gate-footer {
  color: #768190;
}
@media (max-width: 760px) {
  .gate-copy h1 {
    font-size: 50px;
  }
  .hero-copy h1 {
    font-size: 39px;
  }
  .catalog-heading h2 {
    font-size: 24px;
  }
  .product-grid {
    gap: 16px 11px;
  }
}
@media (max-width: 580px) {
  .gate-copy h1 {
    font-size: 43px;
    margin: 14px 0 10px;
  }
  .gate-copy > p {
    font-size: 11px;
  }
  .hero-copy h1 {
    font-size: 37px;
  }
  .catalog-heading h2 {
    font-size: 20px;
  }
  .announcement-bar {
    justify-content: flex-start;
    gap: 9px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 9px;
  }
  .hero-index {
    font-size: 8px;
  }
  .sell-banner {
    background: #eef2f7;
  }
}
/* Keep the access-page theme complete in both modes and leave its top-right copy clear. */
.gate-stars-label {
  top: 34px;
  right: 5%;
}
.gate-theme-toggle {
  top: 61px;
  right: 5%;
  z-index: 4;
}
body:not(.light) .gate {
  background: radial-gradient(ellipse at 70% 50%, #18283b 0, #101923 46%, #0c1118 82%);
  color: #f3f6f9;
}
body:not(.light) .gate::before {
  background: radial-gradient(circle, rgba(54, 119, 200, 0.12), rgba(54, 119, 200, 0.04) 45%, transparent 72%);
}
body:not(.light) .gate-noise {
  opacity: 0.08;
}
body:not(.light) .gate-stars-label {
  color: #c0cad6;
}
body:not(.light) .gate-stars-label span {
  color: #8ab9f2;
}
body:not(.light) .gate-brand {
  color: #f2f5f8;
}
body:not(.light) .gate-copy h1 {
  color: #f2f5f8;
}
body:not(.light) .gate-copy h1 em {
  color: #83b7ff;
}
body:not(.light) .gate-copy .eyebrow {
  color: #bdc8d5;
}
body:not(.light) .gate-copy > p {
  color: #b4bfcc;
}
body:not(.light) .gate-proof {
  color: #aab6c4;
}
body:not(.light) .gate-proof b {
  color: #f2f5f8;
}
body:not(.light) .auth-card {
  background: rgba(21, 30, 42, 0.96);
  border-color: #344253;
  box-shadow: 0 14px 42px #0005;
}
body:not(.light) .auth-icon {
  color: #9fc6ff;
  background: rgb(var(--accent-primary-rgb) / 13.3%);
  border-color: rgb(var(--accent-primary-rgb) / 26.7%);
}
body:not(.light) .secure-label {
  color: #a4afbd;
}
body:not(.light) .auth-card h2 {
  color: #f2f5f8;
}
body:not(.light) .auth-card > p,
body:not(.light) .auth-switch,
body:not(.light) .auth-legal {
  color: #abb6c3;
}
body:not(.light) .field-label {
  color: #d0d8e1;
}
body:not(.light) .field-label input {
  background: #0f1721;
  color: #f2f5f8;
  border-color: #344253;
}
body:not(.light) .auth-switch button,
body:not(.light) .auth-legal a {
  color: #8ab9f2;
}
body:not(.light) .auth-divider {
  color: #98a5b5;
}
body:not(.light) .auth-divider span {
  background: #ffffff20;
}
body:not(.light) .guest-button {
  color: #d1dae4;
  border-color: #435165;
}
body:not(.light) .gate-footer {
  color: #9ba9ba;
}
body:not(.light) .gate-theme-toggle {
  color: #d5e2f2;
  border-color: #70839b66;
  background: #151e2acc;
}
@media (max-width: 580px) {
  .gate-theme-toggle {
    top: 16px;
    right: 5%;
    padding: 6px 9px;
  }
  .gate-stars-label {
    top: 51px;
    right: 5%;
    font-size: 8px;
  }
}
/* The theme control stays in the top row; legal consent is readable in both themes. */
.gate-theme-toggle {
  top: 16px;
  right: 5%;
}
.gate-stars-label {
  top: 54px;
  right: 5%;
}
.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 9px 0 12px;
  color: #667484;
  font: 10px/1.45 var(--font);
}
.terms-consent[hidden] {
  display: none !important;
}
.terms-consent input {
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--accent-primary);
}
.terms-consent a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body:not(.light) .gate .terms-consent {
  color: #bdc8d5;
}
body:not(.light) .gate .terms-consent a {
  color: #91bfff;
}
@media (max-width: 580px) {
  .gate-theme-toggle {
    top: 16px;
    right: 5%;
    padding: 6px 9px;
  }
  .gate-stars-label {
    top: 51px;
    right: 5%;
    font-size: 8px;
  }
}
.terms-consent.full {
  grid-column: 1/-1;
}
.legal-copy h3 {
  font-size: 11px;
  color: var(--ink);
  margin: 15px 0 4px;
}
.legal-copy p {
  margin: 0 0 9px;
}
.store-footer a:hover {
  color: var(--accent-primary);
}
/* Seller onboarding, product galleries, conversations and delivery details. */
.detail-gallery {
  min-width: 0;
  align-self: start;
}
.detail-thumbnails {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-top: 8px;
  padding: 1px 1px 5px;
}
.detail-thumbnails button {
  flex: none;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}
.detail-thumbnails button.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgb(var(--accent-primary-rgb) / 13.3%);
}
.detail-thumbnails img {
  display: block;
  width: 48px;
  height: 58px;
  object-fit: cover;
  border-radius: 3px;
}
.detail-measurements {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
}
.detail-measurements h3 {
  margin: 0 0 5px;
  font-size: 9px;
  color: var(--ink);
}
.detail-measurements p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  white-space: normal;
}
.detail-actions {
  flex-wrap: wrap;
}
.detail-actions .message-seller {
  flex-basis: 100%;
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 5px;
  background: rgb(var(--accent-primary-rgb) / 5.1%);
  color: var(--accent-primary);
  padding: 9px;
  font-size: 9px;
}
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.image-preview-grid:empty {
  display: none;
}
.image-preview-item {
  position: relative;
  min-width: 0;
}
.image-preview-grid img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
}
.image-preview-item > button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #222c;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 5px #0005;
}
.image-preview-item > button:hover,
.image-preview-item > button:focus-visible {
  background: #d84356;
  outline: 2px solid #fff;
}
.seller-request-list,
.conversation-list {
  display: grid;
  gap: 9px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 3px;
}
.photo-url-options {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  padding: 9px 11px;
}
.photo-url-options summary {
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  list-style: none;
}
.photo-url-options summary::-webkit-details-marker {
  display: none;
}
.photo-url-options summary::before {
  content: "＋";
  display: inline-block;
  margin-right: 7px;
  color: var(--accent-primary);
}
.photo-url-options[open] summary::before {
  content: "−";
}
.photo-url-options .modal-field {
  margin-top: 10px;
}
.dashboard-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 12px;
  padding-bottom: 7px;
}
.dashboard-tabs button {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}
.dashboard-tabs button.active {
  border-color: rgb(var(--accent-primary-rgb) / 33.3%);
  background: rgb(var(--accent-primary-rgb) / 5.1%);
  color: var(--accent-primary);
}
.dashboard-tabs b {
  margin-left: 4px;
}
.seller-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: var(--panel2);
}
.seller-request-card > div:first-child {
  min-width: 0;
}
.seller-request-card b,
.seller-request-card small {
  display: block;
}
.seller-request-card b {
  font-size: 10px;
}
.seller-request-card small,
.seller-request-card p {
  font-size: 8px;
  color: var(--muted);
  margin: 4px 0 0;
}
.seller-request-actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.seller-request-actions button {
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 4px;
  padding: 7px 9px;
  background: rgb(var(--accent-primary-rgb) / 5.1%);
  color: var(--accent-primary);
  font-size: 8px;
}
.seller-request-actions button.danger-button {
  border-color: #e18a9a55;
  background: #df586d0d;
}
.conversation-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  color: var(--ink);
}
.conversation-row:hover {
  border-color: rgb(var(--accent-primary-rgb) / 33.3%);
}
.conversation-row img {
  flex: none;
  width: 43px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
}
.conversation-row > span {
  flex: 1;
  min-width: 0;
}
.conversation-row b,
.conversation-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-row b {
  font-size: 9px;
}
.conversation-row small,
.conversation-row time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.conversation-row time {
  flex: none;
}
.chat-thread {
  display: flex;
  flex-direction: column;
  height: min(67vh, 570px);
  min-height: 340px;
}
.chat-thread-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.chat-thread-heading > button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel2);
  padding: 7px 9px;
  font-size: 8px;
}
.chat-thread-heading > div {
  min-width: 0;
}
.chat-thread-heading b,
.chat-thread-heading small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-thread-heading b {
  font-size: 10px;
}
.chat-thread-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.chat-notice-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 7px;
}
.chat-notice-actions button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel2);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 8px;
}
.chat-notice-actions button:hover {
  border-color: #d34f6577;
  color: #d34f65;
}
.chat-notice-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.offer-cancel-button {
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  padding: 0 0 10px;
  text-align: left;
  font-size: 9px;
}
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 3px;
}
.chat-message {
  align-self: flex-start;
  max-width: min(78%, 520px);
  border: 1px solid var(--line);
  border-radius: 9px 9px 9px 2px;
  padding: 8px 10px;
  background: var(--panel2);
}
.chat-message.mine {
  align-self: flex-end;
  border-color: rgb(var(--accent-primary-rgb) / 20%);
  border-radius: 9px 9px 2px 9px;
  background: rgb(var(--accent-primary-rgb) / 8.6%);
}
.chat-message small {
  display: block;
  color: var(--muted);
  font-size: 7px;
}
.chat-message p {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.chat-empty {
  align-self: center;
  color: var(--muted);
  font-size: 9px;
  margin: auto;
}
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.chat-compose textarea {
  flex: 1;
  resize: vertical;
  min-height: 42px;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  background: var(--panel2);
  color: var(--ink);
  font-size: 9px;
}
.chat-compose .modal-primary {
  width: auto;
  min-width: 82px;
  padding: 10px;
}
.tracking-number {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--muted);
  font-size: 8px;
}
.tracking-number b {
  color: var(--accent-primary);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.3px;
}
@media (max-width: 580px) {
  .image-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .image-preview-grid img {
    height: 66px;
  }
  .seller-request-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .seller-request-actions {
    width: 100%;
  }
  .seller-request-actions button {
    flex: 1;
  }
  .conversation-row {
    gap: 7px;
  }
  .conversation-row time {
    display: none;
  }
  .chat-thread {
    height: 70vh;
    min-height: 300px;
  }
  .detail-thumbnails img {
    width: 43px;
    height: 51px;
  }
}
/* Full-page marketplace cart */
#top.cart-page-mode > :not(#cartPage) {
  display: none;
}
#top.product-page-mode > :not(#productPage),
#top.checkout-page-mode > :not(#checkoutPage) {
  display: none;
}
#cartPage[hidden] {
  display: none !important;
}
#productPage[hidden],
#checkoutPage[hidden] {
  display: none !important;
}
.product-page,
.checkout-page {
  min-height: calc(100vh - 70px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 25px 0 55px;
}
.full-page-nav {
  margin: 0 0 15px;
}
.full-page-nav button {
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  padding: 7px 0;
  font-size: 10px;
  cursor: pointer;
}
.product-page .product-detail {
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.85fr);
  gap: 35px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.product-page .detail-image {
  height: min(72vh, 660px);
}
.product-page .detail-copy h2 {
  font:
    400 28px "DM Serif Display",
    Georgia,
    serif;
}
.product-page .detail-price {
  font-size: 27px;
  margin: 13px 0;
}
.product-page .detail-copy > p {
  font-size: 11px;
  line-height: 1.7;
}
.product-page .detail-facts {
  margin-top: 17px;
}
.checkout-page #checkoutForm {
  max-width: 730px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.checkout-page #modalTitle,
.checkout-page .modal-sub {
  max-width: 730px;
  margin-left: auto;
  margin-right: auto;
}
.checkout-page #modalTitle {
  font:
    400 27px "DM Serif Display",
    Georgia,
    serif;
}
.checkout-page .modal-sub {
  margin-bottom: 18px;
}
.checkout-page .checkout-note {
  font-size: 10px;
  padding: 14px;
}
.cart-page {
  min-height: calc(100vh - 70px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 0 58px;
}
.cart-page-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 23px;
}
.cart-eyebrow {
  font:
    8px "DM Mono",
    monospace;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.cart-page-top h1 {
  font:
    400 30px "DM Serif Display",
    Georgia,
    serif;
  letter-spacing: -0.4px;
  margin: 5px 0 0;
  color: var(--ink);
}
.cart-page-top h1 small {
  font: 500 12px var(--font);
  letter-spacing: 0;
  color: var(--muted);
}
.cart-back-link {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--accent-hover);
  font-size: 10px;
  cursor: pointer;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.8fr);
  align-items: start;
  gap: 18px;
}
.cart-items-panel,
.cart-summary-card,
.cart-trust-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.cart-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.cart-panel-heading h2,
.cart-summary-card h2 {
  font-size: 13px;
  margin: 0;
  color: var(--ink);
}
.cart-panel-heading span {
  font-size: 9px;
  color: var(--muted);
}
.cart-page-list {
  padding: 0 18px;
}
.cart-page-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 15px;
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-page-row > img {
  width: 94px;
  height: 116px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--panel2);
}
.cart-page-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
}
.cart-page-info > a {
  max-width: 100%;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-page-info > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.cart-stock {
  margin-top: 7px;
  color: #56815f;
  font-size: 9px;
}
.cart-page-info > strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
}
.cart-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
}
.cart-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.cart-quantity button {
  width: 30px;
  height: 28px;
  border: 0;
  background: var(--panel2);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.cart-quantity button:disabled {
  opacity: 0.35;
  cursor: default;
}
.cart-quantity span {
  min-width: 30px;
  text-align: center;
  color: var(--ink);
  font-size: 10px;
}
.cart-remove {
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-size: 9px;
  cursor: pointer;
}
.cart-line-total {
  padding-top: 2px;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.cart-continue-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 18px 10px;
}
.cart-continue-footer span {
  color: var(--muted);
  font-size: 8px;
}
.cart-aside {
  display: grid;
  gap: 12px;
}
.cart-summary-card {
  padding: 17px;
}
.cart-summary-card h2 {
  margin-bottom: 19px;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 10px;
}
.cart-summary-line b {
  color: var(--ink);
  font-weight: 600;
}
.shipping-progress {
  margin: 15px 0;
  padding: 11px 10px;
  border-radius: 5px;
  background: var(--panel2);
}
.shipping-progress p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}
.shipping-progress p b {
  color: var(--ink);
}
.shipping-progress > div {
  height: 4px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.shipping-progress i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--accent-primary);
}
.shipping-free {
  margin: 15px 0;
  padding: 10px;
  border-radius: 5px;
  background: #2c9a5d12;
  color: #438354;
  font-size: 9px;
}
.cart-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.cart-grand-total b {
  font-size: 17px;
}
.cart-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.cart-primary:hover {
  background: var(--accent-hover);
}
.cart-payment-note {
  text-align: center;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
}
.cart-trust-card {
  padding: 14px 16px;
}
.cart-trust-card b {
  font-size: 10px;
  color: var(--ink);
}
.cart-trust-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}
.cart-empty-page {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 80px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.cart-empty-page > span {
  font-size: 36px;
  color: var(--accent-primary);
}
.cart-empty-page h2 {
  margin: 12px 0 4px;
  font-size: 16px;
  color: var(--ink);
}
.cart-empty-page p {
  max-width: 360px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.cart-empty-page .cart-primary {
  width: auto;
  padding: 0 22px;
}
.negotiable-option {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 20%);
  border-radius: 6px;
  background: rgb(var(--accent-primary-rgb) / 3.9%);
  cursor: pointer;
}
.negotiable-option input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: var(--accent-primary);
}
.negotiable-option span,
.negotiable-option b,
.negotiable-option small {
  display: block;
}
.negotiable-option b {
  color: var(--ink);
  font-size: 10px;
}
.negotiable-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}
.negotiable-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: 5px;
  padding: 4px 7px;
  border-radius: 20px;
  background: #eaf5ed;
  color: #38764a;
  font-size: 8px;
  font-weight: 600;
}
.detail-negotiable {
  margin: 0 0 7px;
  font-size: 9px;
}
.negotiable-filter {
  white-space: nowrap;
}
.negotiable-filter input {
  accent-color: var(--accent-primary);
}
.cart-negotiated {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 20px;
  background: #eaf5ed;
  color: #38764a;
  font-size: 8px;
  font-weight: 600;
}
.notification-button {
  position: relative;
  font-size: 15px;
}
.notification-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  vertical-align: middle;
}
.notification-button i {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 10px;
  background: #e65670;
  color: #fff;
  font: 7px/13px var(--font);
  font-style: normal;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cart-button .cart-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--ink);
}
.cart-button .cart-label-text {
  margin: 0;
  color: var(--ink);
}
.cart-button.is-empty .cart-label-text {
  display: none;
}
.cart-button .cart-label svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-button b {
  flex: none;
}
.mobile-menu {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  color: var(--ink);
  font-size: 17px;
}
.mobile-menu svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.mobile-drawer {
  position: fixed;
  z-index: 11;
  top: 73px;
  bottom: 0;
  left: 0;
  right: auto;
  width: min(310px, 84vw);
  padding: 16px 18px;
  display: none;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 14px 0 38px #0003;
}
.mobile-drawer > a {
  display: block;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
}
.drawer-tools {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.drawer-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.drawer-action:hover,
.drawer-action.active {
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-primary);
}
.drawer-action svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.drawer-action b {
  margin-left: auto;
  color: var(--accent-primary);
  font-size: 10px;
}
.drawer-theme-icon {
  width: 19px;
  text-align: center;
  color: #e5a91d;
  font-size: 18px;
}
.mobile-drawer.open {
  display: flex;
}
@media (max-width: 760px) {
  .store-header .theme-toggle,
  .store-header #favoritesButton {
    display: none;
  }
  .mobile-drawer {
    top: 61px;
  }
}
.mobile-bottom-nav {
  display: none;
}
#favoritesButton {
  display: none !important;
}
.user-chip .user-menu-more {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
}
.account-menu .account-theme-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  padding-bottom: 10px;
  color: var(--accent-primary);
}
.account-theme-option #accountThemeIcon {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
#searchToggle {
  flex: none;
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}
.mobile-menu,
.mobile-drawer {
  display: none !important;
}
.account-menu {
  max-height: 75vh;
  overflow: auto;
}
.account-menu-section {
  padding: 9px 9px 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  color: var(--muted);
  font:
    7px "DM Mono",
    monospace;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hero-dismiss {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #24364a22;
  border-radius: 50%;
  background: #fff;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 8px #17283b20;
}
.hero-dismiss:hover,
.hero-dismiss:focus-visible {
  background: #e8f1ff;
  color: var(--accent-primary);
  outline: 2px solid var(--accent-primary);
}
.brand-word {
  display: inline-block;
}
.gate-brand .brand-word {
  letter-spacing: 3px;
}
.store-brand .brand-word {
  letter-spacing: inherit;
}
.brand-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}
.gate-brand-logo {
  width: 48px;
  height: 48px;
}
.header-brand-logo {
  width: 36px;
  height: 36px;
}
.footer-brand-logo {
  width: 30px;
  height: 30px;
}
.store-header .store-brand {
  gap: 8px;
}
.menu-identity .menu-role-badge {
  display: inline-flex;
  width: max-content;
  padding: 3px 7px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 26.7%);
  border-radius: 12px;
  background: rgb(var(--accent-primary-rgb) / 9.8%);
  color: var(--accent-primary);
  font:
    7px "DM Mono",
    monospace;
  letter-spacing: 0.5px;
}
@media (max-width: 380px) {
  .brand-word {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .header-brand-logo {
    width: 31px;
    height: 31px;
  }
}
@media (min-width: 761px) {
  .mobile-drawer > a {
    display: none;
  }
}
@media (max-width: 760px) {
  .mobile-menu {
    display: none;
  }
  .store-header .searchbox.is-open {
    position: absolute;
    top: calc(100% + 6px);
    left: 4%;
    right: 4%;
    width: auto;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--panel2);
    padding: 0 8px;
    box-shadow: 0 7px 22px #0003;
  }
  .searchbox.is-open input {
    display: block;
  }
  .mobile-bottom-nav {
    position: fixed;
    z-index: 13;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(59px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 4px 5% calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 -8px 24px #0002;
  }
  .mobile-bottom-nav button {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    height: 48px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
  }
  .mobile-bottom-nav.guest-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-bottom-nav button.active {
    color: var(--accent-primary);
  }
  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-bottom-nav #bottomFavoritesButton svg {
    fill: currentColor;
    stroke: none;
  }
  .mobile-bottom-nav i {
    position: absolute;
    top: 1px;
    left: calc(50% + 4px);
    min-width: 15px;
    height: 15px;
    padding: 1px 4px;
    border-radius: 9px;
    background: var(--accent-primary);
    color: #fff;
    font: 8px/13px var(--font);
    font-style: normal;
  }
  .mobile-bottom-nav #bottomCartButton.is-empty .bottom-cart-label {
    display: none;
  }
  .store-header .cart-button {
    display: none;
  }
  .mobile-drawer > a,
  #drawerFavoritesButton {
    display: none !important;
  }
  .store > main {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}
.notification-list {
  display: grid;
  gap: 7px;
  max-height: 65vh;
  overflow: auto;
}
.notification-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-modal-heading h2 {
  margin: 0;
}
.notification-clear-all {
  flex: none;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
  color: #d34f65;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.notification-clear-all:hover {
  border-color: #d34f6577;
}
.notification-clear-all:disabled {
  opacity: 0.6;
  cursor: wait;
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
  color: var(--ink);
}
.notification-row.unread {
  border-color: rgb(var(--accent-primary-rgb) / 33.3%);
  background: rgb(var(--accent-primary-rgb) / 4.3%);
}
.notification-kind {
  flex: none;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-primary);
  font-size: 12px;
}
.notification-row > span:last-child {
  min-width: 0;
}
.notification-row b,
.notification-row small,
.notification-row time {
  display: block;
}
.notification-row b {
  font-size: 9px;
}
.notification-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}
.notification-row time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}
.offer-message {
  align-self: flex-start;
  display: grid;
  gap: 4px;
  max-width: 80%;
  padding: 10px 12px;
  border: 1px solid #76ae8555;
  border-radius: 8px;
  background: #2c9a5d0c;
  color: var(--ink);
}
.offer-message.mine {
  align-self: flex-end;
}
.offer-message small,
.offer-message span {
  font-size: 8px;
  color: var(--muted);
}
.offer-message > b {
  font-size: 15px;
}
.offer-message > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.offer-message button,
.make-offer-detail,
.price-alert-button {
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 4px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--accent-hover);
  padding: 6px 8px;
  font-size: 8px;
  cursor: pointer;
}
.chat-thread-heading #makeOfferButton {
  flex: none;
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 4px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--accent-hover);
  padding: 7px 9px;
  font-size: 8px;
}
.seller-profile-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent-hover);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.public-seller-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
}
.public-seller-hero > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-primary);
  font-size: 21px;
}
.public-seller-hero h2 {
  margin: 3px 0;
  font-size: 16px;
}
.public-seller-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}
.public-seller-profile > h3 {
  margin: 17px 0 8px;
  font-size: 11px;
}
.public-seller-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.public-seller-product {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  text-align: left;
  color: var(--ink);
}
.public-seller-product img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
}
.public-seller-product span,
.public-seller-product b,
.public-seller-product small,
.public-seller-product strong {
  display: block;
  min-width: 0;
}
.public-seller-product b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.public-seller-product small {
  margin: 3px 0;
  color: var(--muted);
  font-size: 7px;
}
.public-seller-product strong {
  font-size: 8px;
}
.field-help.photo-guide {
  display: block;
  padding: 8px 9px;
  border-radius: 4px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--muted);
  line-height: 1.55;
}
.filter-row {
  flex-wrap: wrap;
}
.theme-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 9px;
  cursor: pointer;
}
.theme-switch-control {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  flex: none;
}
.theme-switch-control input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-switch-control i {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #aab3c0;
  transition: background 0.18s;
}
.theme-switch-control i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
  transition: transform 0.18s;
}
.theme-switch-control input:checked + i {
  background: var(--accent-primary);
}
.theme-switch-control input:checked + i::after {
  transform: translateX(16px);
}
.theme-switch-control input:focus-visible + i {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
@media (max-width: 580px) {
  .public-seller-products {
    grid-template-columns: 1fr;
  }
  .notification-button {
    width: 29px;
    height: 29px;
  }
}
@media (max-width: 760px) {
  .cart-page {
    padding: 25px 0 40px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-aside {
    grid-template-columns: 1fr;
  }
  .cart-page-top h1 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .product-page,
  .checkout-page {
    padding: 18px 0 35px;
  }
  .product-page .product-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 14px;
  }
  .product-page .detail-image {
    height: min(55vh, 480px);
  }
  .product-page .detail-copy h2 {
    font-size: 23px;
  }
  .checkout-page #checkoutForm {
    padding: 16px;
  }
}
@media (max-width: 580px) {
  .cart-page {
    min-height: calc(100vh - 60px);
    padding-top: 20px;
  }
  .cart-page-top {
    align-items: center;
    margin-bottom: 15px;
  }
  .cart-page-top h1 {
    font-size: 23px;
  }
  .cart-page-top h1 small {
    font-size: 10px;
  }
  .cart-page-top > .cart-back-link {
    font-size: 0;
  }
  .cart-page-top > .cart-back-link::first-letter {
    font-size: 16px;
  }
  .cart-panel-heading {
    padding: 12px;
  }
  .cart-page-list {
    padding: 0 12px;
  }
  .cart-page-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
  }
  .cart-page-row > img {
    width: 72px;
    height: 94px;
  }
  .cart-page-info > a {
    font-size: 10px;
  }
  .cart-page-info > small,
  .cart-stock {
    font-size: 8px;
  }
  .cart-page-info > strong {
    margin-top: 7px;
    font-size: 12px;
  }
  .cart-line-total {
    position: absolute;
    right: 0;
    top: 14px;
    font-size: 10px;
  }
  .cart-row-actions {
    padding-top: 8px;
  }
  .cart-quantity {
    height: 26px;
  }
  .cart-quantity button {
    width: 26px;
    height: 25px;
  }
  .cart-quantity span {
    min-width: 24px;
  }
  .cart-continue-footer {
    padding-inline: 12px;
  }
  .cart-continue-footer span {
    max-width: 140px;
    text-align: right;
    line-height: 1.4;
  }
  .cart-empty-page {
    padding: 55px 16px;
  }
}
.catalog-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 27px;
  margin-top: 14px;
}
.catalog-filter-panel {
  position: sticky;
  top: 88px;
  min-width: 0;
  padding: 0 15px 15px 0;
  border-right: 1px solid var(--line);
}
.filter-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.filter-panel-title h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.filter-panel-title .reset-filters {
  padding: 5px 0;
  font-size: 8px;
}
.filter-row {
  display: grid;
  gap: 15px;
  margin: 0;
  color: var(--ink);
}
.filter-row > label:not(.negotiable-filter) {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}
.filter-row select,
.filter-row input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border-color: var(--line);
  border-radius: 5px;
  background: var(--panel);
  font-size: 9px;
  font-weight: 400;
}
.filter-row .negotiable-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 9px;
}
.negotiable-filter input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent-primary);
}
.catalog-results {
  min-width: 0;
}
.catalog-results-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
}
.catalog-results-bar .results-count {
  display: block;
  margin: 0;
  font-size: 8px;
}
.mobile-filter-toggle {
  display: none;
}
@media (min-width: 761px) and (max-width: 1050px) {
  .catalog-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 13px;
    margin: 0 0 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--panel);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
  }
  .mobile-filter-toggle span {
    font-size: 16px;
    line-height: 1;
    color: var(--accent-primary);
  }
  .catalog-layout {
    display: block;
    margin-top: 0;
  }
  .catalog-filter-panel {
    display: none;
    position: static;
    margin: 0 0 15px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
  }
  .catalog-layout.filters-open .catalog-filter-panel {
    display: block;
  }
  .filter-panel-title {
    margin-bottom: 12px;
  }
  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filter-row .negotiable-filter {
    grid-column: 1/-1;
  }
  .catalog-results-bar {
    justify-content: flex-end;
  }
  .catalog-results-bar .results-count {
    display: block;
  }
}
@media (max-width: 400px) {
  .filter-row {
    grid-template-columns: 1fr;
  }
  .filter-row .negotiable-filter {
    grid-column: auto;
  }
}
.catalog-results-bar {
  justify-content: space-between;
  gap: 10px;
}
.save-search-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.save-search-button[hidden] {
  display: none;
}
.saved-search-list {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
}
.saved-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
}
.saved-search-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent-primary);
  font-size: 17px;
}
.saved-search-row > div {
  flex: 1;
  min-width: 0;
}
.saved-search-row b,
.saved-search-row small {
  display: block;
}
.saved-search-row b {
  overflow-wrap: anywhere;
  font-size: 9px;
}
.saved-search-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.saved-search-row > button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: #df5e72;
  font-size: 16px;
}
.seller-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.follow-seller-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 5px;
  background: rgb(var(--accent-primary-rgb) / 5.1%);
  color: var(--accent-primary);
  font-size: 9px;
  font-weight: 700;
}
.report-link {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}
.report-link:hover {
  border-color: #df5e72;
  color: #df5e72;
}
.detail-actions .report-link {
  flex-basis: 100%;
  justify-self: start;
}
.report-card > div:first-child {
  flex: 1;
}
.report-card p {
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.report-dismiss-button {
  border-color: var(--line) !important;
  background: var(--panel) !important;
  color: var(--muted) !important;
}
@media (max-width: 580px) {
  .catalog-results-bar {
    align-items: center;
  }
  .save-search-button {
    padding: 0 7px;
    font-size: 7px;
  }
  .report-card .seller-request-actions {
    flex-wrap: wrap;
  }
  .report-card .seller-request-actions button {
    min-width: calc(50% - 4px);
  }
}
.order-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.order-filters button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 9px;
}
.order-filters button.active {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: white;
}
.order-card[hidden] {
  display: none;
}
.address-book {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
}
.address-book-head h3 {
  margin: 0;
}
.address-book-head p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 9px;
}
.address-book-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 0.7fr;
  gap: 7px;
}
.address-book-form input,
.address-book-form select {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-size: 9px;
}
.address-book-form button {
  grid-column: 1/-1;
}
.address-book-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.saved-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}
.saved-address span {
  display: grid;
  gap: 3px;
}
.saved-address small {
  color: var(--muted);
  font-size: 9px;
}
.saved-address button {
  border: 0;
  background: none;
  color: #d14e60;
  font-size: 9px;
}
.seller-trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.seller-trust-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
}
.seller-trust-stats b {
  font-size: 14px;
}
.seller-trust-stats small {
  color: var(--muted);
  font-size: 8px;
}
.filter-row input[type="search"] {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-size: 10px;
}
@media (max-width: 580px) {
  .address-book-form {
    grid-template-columns: 1fr 1fr;
  }
  .address-book-form button {
    grid-column: 1/-1;
  }
}
.product-questions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-questions h3 {
  margin: 0 0 10px;
}
.product-questions textarea {
  width: 100%;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
  resize: vertical;
}
.product-questions form .modal-primary {
  margin-top: 7px;
}
.question-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.question-item {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel2);
}
.question-item > b,
.seller-answer > b {
  font-size: 10px;
}
.question-item p {
  margin: 5px 0;
  font-size: 10px;
  line-height: 1.5;
}
.seller-answer {
  margin: 8px 0 0 10px;
  padding: 8px;
  border-left: 2px solid var(--accent-primary);
  background: var(--panel);
}
.answer-form {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 8px;
}
.answer-form textarea {
  flex: 1;
}
.answer-form button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: var(--accent-primary);
  color: white;
  font-size: 9px;
}
/* Controles y superficies nuevas: bordes legibles en ambos temas. */
.detail-variant {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 10px;
}
.detail-variant select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
}
.buy-now-button {
  padding: 9px 12px;
  border: 1px solid var(--accent-primary);
  border-radius: 5px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.buy-now-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.size-stock-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
.size-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.55fr) 34px;
  align-items: end;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel2);
}
.size-stock-row label {
  display: grid;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
.size-stock-row input {
  width: 100%;
  min-height: 34px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
}
.size-stock-row button,
.add-size-stock {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
}
.add-size-stock {
  margin-top: 8px;
  padding: 0 10px;
  color: var(--accent-primary);
}
.notification-row {
  display: flex;
  align-items: stretch;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
  padding: 6px;
}
.notification-open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  padding: 7px;
}
.notification-delete {
  align-self: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
}
.notification-delete:hover {
  color: #d34f65;
  border-color: #d34f6577;
}
.question-delete {
  float: right;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  background: var(--panel);
  color: #d34f65;
  font-size: 8px;
}
body.light .detail-variant select,
body.light .size-stock-row input,
body.light .size-stock-row button,
body.light .notification-row,
body.light .notification-delete,
body.light .question-delete {
  border-color: var(--border-subtle);
}
body.light .detail-variant select:focus,
body.light .size-stock-row input:focus {
  outline: 2px solid rgb(var(--accent-primary-rgb) / 33.3%);
}
body.light .product-card,
body.light .cart-items-panel,
body.light .cart-summary-card,
body.light .seller-dashboard,
body.light .product-detail,
body.light .address-book,
body.light .manage-product,
body.light .overview-card,
body.light .order-card,
body.light .seller-order,
body.light .saved-search-row,
body.light .public-seller-product {
  border-color: var(--border-subtle);
}
@media (max-width: 600px) {
  .detail-actions {
    flex-wrap: wrap;
  }
  .detail-actions .modal-primary,
  .detail-actions .buy-now-button {
    flex: 1 1 42%;
  }
  .size-stock-row {
    grid-template-columns: minmax(0, 1fr) minmax(78px, 0.65fr) 32px;
  }
}
.seller-store-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
}
.seller-store-settings > h3,
.seller-store-settings > .checkout-note,
.seller-store-settings > .store-map-preview {
  grid-column: 1/-1;
}
.seller-store-settings h3 {
  margin: 0;
}
.store-photo-preview {
  display: block;
  width: min(100%, 260px);
  max-height: 170px;
  object-fit: cover;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.store-map-preview iframe,
.seller-store-info iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.store-map-preview p {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
}
.seller-store-info {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel2);
}
.seller-store-info > img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}
.seller-store-info > div {
  align-self: center;
}
.seller-store-info p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 9px;
}
.seller-store-info iframe {
  grid-column: 1/-1;
}
.seller-sales-reviews {
  margin: 12px 0;
}
.seller-sales-reviews h3 {
  font-size: 12px;
}
.seller-sales-reviews article {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.seller-sales-reviews article b {
  font-size: 9px;
  color: #d99b22;
}
.seller-sales-reviews article p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 9px;
}
.rate-sale-button,
.review-submitted {
  margin-top: 8px;
}
.rate-sale-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  background: var(--panel2);
  color: var(--accent-primary);
  font-size: 9px;
}
.review-submitted {
  color: #278864;
  font-size: 9px;
}
.sale-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 10px;
  background: #e84c6720;
  color: #d8445d;
  font-size: 8px;
  font-weight: 700;
}
.detail-price del {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.seller-trust-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .seller-store-settings {
    grid-template-columns: 1fr;
  }
  .seller-store-info {
    grid-template-columns: 1fr;
  }
  .seller-store-info > img {
    width: 100%;
    height: 170px;
  }
  .seller-trust-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.message-unread-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-primary);
  color: #fff;
  font: 700 8px var(--font);
  font-style: normal;
}
.conversation-row.has-unread {
  border-color: rgb(var(--accent-primary-rgb) / 46.7%);
  background: color-mix(in srgb, var(--panel2) 85%, var(--accent-primary) 15%);
}
.pickup-map-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 761px) and (max-width: 1000px) {
  .store-header {
    gap: 12px;
  }
  .main-nav {
    gap: 9px;
  }
  .searchbox {
    width: 140px;
  }
}
/* Verificación de correo y recuperación de contraseña */
.auth-recovery-link,
.auth-recovery-back {
  display: block;
  margin: 10px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-recovery-link:focus-visible,
.auth-recovery-back:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 3px;
}
.account-recovery-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dfe3e8;
}
.account-recovery-panel h3 {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--text-primary);
}
.account-recovery-panel > p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.55;
}
.account-recovery-panel form {
  display: grid;
  gap: 10px;
}
.account-recovery-panel .field-label input {
  width: 100%;
}
.recovery-message {
  min-height: 0;
  margin: 0;
  color: #52647a;
  font-size: 10px;
  line-height: 1.5;
}
.recovery-message:empty {
  display: none;
}
.account-recovery-panel .auth-recovery-back {
  margin-top: 12px;
}
.email-verification-controls {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -8px;
}
.email-verification-controls p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.email-verification-button {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 5px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--accent-hover);
  font-size: 9px;
  font-weight: 700;
}
.email-verification-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
body.light .account-recovery-panel {
  border-color: var(--border-subtle);
}
body.light .account-recovery-panel h3 {
  color: #172234;
}
body.light .account-recovery-panel > p,
body.light .recovery-message {
  color: #566b86;
}
@media (max-width: 580px) {
  .email-verification-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .email-verification-button {
    width: 100%;
  }
}
/* Centro de notificaciones */
.notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.notification-mark-read {
  flex: none;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgb(var(--accent-primary-rgb) / 33.3%);
  border-radius: 5px;
  background: rgb(var(--accent-primary-rgb) / 4.3%);
  color: var(--accent-hover);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.notification-mark-read:hover {
  border-color: rgb(var(--accent-primary-rgb) / 60%);
}
.notification-mark-read:disabled {
  opacity: 0.6;
  cursor: wait;
}
.notification-filters {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 2px 0 5px;
  overflow-x: auto;
}
.notification-filter {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.notification-filter.active {
  border-color: var(--accent-primary);
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-hover);
  font-weight: 700;
}
.notification-filter i {
  min-width: 15px;
  padding: 1px 4px;
  border-radius: 8px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  text-align: center;
}
.notification-repeat {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 8px;
  background: rgb(var(--accent-primary-rgb) / 10.2%);
  color: var(--accent-hover);
  font-size: 8px;
  font-style: normal;
  vertical-align: middle;
}
.notification-row .notification-group-note {
  color: var(--accent-hover);
}
.notification-actions button {
  white-space: nowrap;
}
body.light .notification-filter {
  border-color: var(--border-subtle);
}
body.light .notification-filter.active {
  border-color: var(--accent-primary);
}
@media (max-width: 580px) {
  .notification-modal-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .notification-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .notification-actions button {
    flex: 1;
  }
  .notification-filters {
    margin-right: -4px;
  }
}
#top.route-page-mode > :not(#routePage) {
  display: none;
}
#routePage[hidden] {
  display: none !important;
}
#routePage {
  min-height: calc(100vh - 73px);
  padding-top: 22px;
}
.section-route-back {
  max-width: 1120px;
  margin: 0 auto 10px;
}
.section-route-back button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.section-route-back button:hover,
.section-route-back button:focus-visible {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.section-page-surface.modal {
  width: 100%;
  max-width: 1120px;
  max-height: none;
  overflow: visible;
  margin: 0 auto 28px;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 8px;
  box-shadow: none;
  animation: none;
}
.full-page-content {
  min-height: 280px;
}
.route-page-mode .section-page-surface :focus-visible {
  outline-offset: 3px;
}
.mobile-bottom-nav [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  #routePage {
    min-height: calc(100vh - 61px - 70px - env(safe-area-inset-bottom));
    padding-top: 12px;
  }
  .section-route-back {
    margin-bottom: 7px;
  }
  .section-page-surface.modal {
    margin-bottom: 14px;
    padding: 17px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-page-surface.modal {
    scroll-behavior: auto;
    animation: none;
  }
}
/* Paleta SM: Oliva y arena */
body:not(.light) {
  color-scheme: dark;
  --bg: #161813;
  --bg-surface: #22251D;
  --border-subtle: #36392F;
  --text-primary: #F3F1E8;
  --text-secondary: #AAA795;
  --accent-primary: #C1C993;
  --accent-hover: #A7B67A;
  --accent-primary-rgb: 193 201 147;
  --accent-contrast: #1C2017;
  --blue: var(--accent-primary);
  --blue2: var(--accent-hover);
  --blue-soft: var(--accent-primary);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --panel: var(--bg-surface);
  --panel2: #2A2D24;
  --line: var(--border-subtle);
  --card: var(--bg-surface);
}
body {
  background: var(--bg);
  color: var(--text-primary);
}
body.light .gate,
body:not(.light) .gate {
  background: radial-gradient(ellipse at 72% 48%, rgb(var(--accent-primary-rgb) / 13%), transparent 45%), var(--bg);
  color: var(--text-primary);
}
body.light .gate::before,
body:not(.light) .gate::before {
  background: radial-gradient(circle, rgb(var(--accent-primary-rgb) / 16%), rgb(var(--accent-primary-rgb) / 5%) 43%, transparent 70%);
}
body.light .product-card,
body:not(.light) .product-card,
body.light .product-detail,
body:not(.light) .product-detail,
body.light .filter-panel,
body:not(.light) .filter-panel,
body.light .auth-card,
body:not(.light) .auth-card,
body.light .sell-banner,
body:not(.light) .sell-banner,
body.light .cart-items-panel,
body:not(.light) .cart-items-panel,
body.light .cart-summary-card,
body:not(.light) .cart-summary-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.product-tag,
.product-tag.blue-tag {
  border-color: var(--border-subtle);
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  color: var(--text-primary);
}
.filter-row select,
.filter-row input,
body.light .filter-row select,
body.light .filter-row input,
body:not(.light) .filter-row select,
body:not(.light) .filter-row input {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.filter-row input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.sell-banner {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.sell-banner-orb {
  border-color: var(--border-subtle);
  background: rgb(var(--accent-primary-rgb) / 10%);
  color: var(--accent-primary);
}
.sell-banner .eyebrow,
.sell-banner > p {
  color: var(--text-secondary);
}
.auth-submit,
.modal-primary,
.buy-now-button,
.sell-banner > button,
.quick-add {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: var(--accent-contrast);
}
.auth-submit:hover,
.modal-primary:hover,
.buy-now-button:hover:not(:disabled),
.sell-banner > button:hover,
.quick-add:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.toast {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}
