:root {
  color-scheme: light;
  --ink: #181816;
  --soft-ink: #3c3932;
  --muted: #746f63;
  --paper: #f7f3ea;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(28, 27, 24, 0.13);
  --charcoal: #25231f;
  --sage: #8fa87d;
  --clay: #c96f52;
  --honey: #d7a540;
  --sky: #78aebb;
  --plum: #8a7195;
  --shadow: 0 22px 54px rgba(33, 31, 26, 0.15);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 12%, rgba(120, 174, 187, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 4%, rgba(215, 165, 64, 0.17), transparent 22rem),
    linear-gradient(145deg, #faf7ef 0%, #eae5d9 54%, #f8efe1 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  min-height: 100vh;
  padding: 24px clamp(14px, 4vw, 54px) 34px;
}

.auth-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  gap: clamp(16px, 3vw, 26px);
}

.auth-shell.is-split {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.62fr);
  align-items: stretch;
}

.brand-pill,
.primary-button,
.secondary-button,
.icon-button,
.social-button {
  display: inline-grid;
  place-items: center;
}

.brand-pill {
  grid-template-columns: 42px auto;
  justify-self: start;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.18);
}

.mm-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 0.9rem;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 740;
}

.experience-card,
.auth-card,
.mini-card,
.step-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.experience-card {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(20, 20, 17, 0.9) 0%, rgba(20, 20, 17, 0.46) 48%, rgba(20, 20, 17, 0.1) 100%),
    url("https://images.unsplash.com/photo-1519567241046-7f570eee3ce6?auto=format&fit=crop&w=1600&q=82") center/cover;
}

.experience-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 74%);
  opacity: 0.65;
}

.experience-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-height: inherit;
  padding: clamp(20px, 4vw, 42px);
}

.hero-copy {
  display: grid;
  align-self: end;
  gap: 18px;
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9.6ch;
  font-size: clamp(3.1rem, 10vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.58;
}

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

.primary-button,
.secondary-button,
.social-button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 830;
}

.primary-button {
  grid-template-columns: auto auto;
  gap: 8px;
  color: #fff;
  background: var(--charcoal);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-button svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #000;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-signals {
  display: grid;
  width: min(300px, 38vw);
  gap: 10px;
  justify-self: end;
}

.hero-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.hero-signal:nth-child(2) {
  transform: translateX(-28px);
}

.signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 18px var(--dot);
}

.hero-signal strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-signal span:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 780;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 650px;
  padding: clamp(22px, 4vw, 38px);
}

.auth-head {
  display: grid;
  gap: 12px;
}

.auth-head .section-kicker {
  color: var(--muted);
}

.auth-head h1,
.auth-head h2 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.auth-head p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 12px;
}

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

.form-message {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-message strong {
  display: block;
  margin-bottom: 6px;
}

.form-message ul {
  margin: 0;
  padding-left: 18px;
}

.form-message li + li {
  margin-top: 4px;
}

.form-message:not(:empty) {
  display: block;
}

.form-message[data-tone="error"] {
  border-color: rgba(201, 111, 82, 0.34);
  background: rgba(201, 111, 82, 0.12);
}

.form-message[data-tone="success"] {
  border-color: rgba(143, 168, 125, 0.42);
  background: rgba(143, 168, 125, 0.16);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--soft-ink);
  font-size: 0.82rem;
  font-weight: 780;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.field input:focus,
.field select:focus {
  border-color: rgba(37, 35, 31, 0.34);
  box-shadow: 0 0 0 4px rgba(143, 168, 125, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: rgba(201, 111, 82, 0.72);
}

.field-error {
  color: #9a3f2a;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.35;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--charcoal);
}

.text-link {
  color: var(--charcoal);
  font-weight: 820;
}

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

.social-button {
  border: 1px solid var(--line);
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.55);
}

.auth-foot {
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.onboarding-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.onboarding-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.58fr);
  gap: clamp(16px, 3vw, 26px);
}

.steps-panel {
  display: grid;
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  font-weight: 860;
}

.step-card h3 {
  font-size: 1rem;
  line-height: 1.1;
}

.step-card p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

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

.mini-card h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
}

.mini-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.preview-tile {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    var(--tile);
}

.auth-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.account-page {
  --account-top-gap: 20px;
  padding-top: max(var(--account-top-gap), env(safe-area-inset-top, 0px));
}

.account-shell {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: clamp(16px, 3vw, 26px);
}

.account-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-topbar form {
  display: grid;
}

.account-secondary {
  border-color: var(--line);
  color: var(--soft-ink);
  background: rgba(255, 255, 255, 0.58);
}

.account-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 32px);
  backdrop-filter: blur(22px);
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(16px, 3vw, 26px);
}

.account-profile {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 260px;
}

.account-avatar {
  display: grid;
  width: clamp(88px, 14vw, 138px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.24), transparent 28%),
    var(--charcoal);
  box-shadow: 0 22px 40px rgba(33, 31, 26, 0.22);
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 900;
}

.account-profile-copy,
.account-summary {
  align-content: center;
}

.account-profile-copy .section-kicker,
.account-summary .section-kicker,
.account-card .section-kicker {
  color: var(--muted);
}

.account-profile h1 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.account-profile p:not(.section-kicker),
.account-muted {
  color: var(--muted);
  line-height: 1.55;
}

.account-summary h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 0.98;
}

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

.account-stats div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.account-stats strong {
  overflow: hidden;
  font-size: 1.3rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-stats span,
.account-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.account-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.account-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.account-list div:last-child {
  border-bottom: 0;
}

.account-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 820;
}

.account-store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  font-weight: 740;
}

.store-cta {
  display: inline-grid;
  justify-self: start;
  min-height: 38px;
  place-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 820;
}

.account-masonry-section {
  display: grid;
  gap: 16px;
}

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

.store-shelf-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.store-shelf-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(320px, 100%);
  min-height: 38px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
}

.store-shelf-search svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.store-shelf-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 760;
}

.store-shelf-search input::placeholder {
  color: var(--muted);
}

.account-section-head .section-kicker {
  color: var(--muted);
}

.account-section-head h2 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.store-masonry {
  column-count: 3;
  column-gap: 14px;
}

.masonry-store-card {
  display: inline-grid;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  color: inherit;
  text-decoration: none;
}

.masonry-store-media {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
}

.masonry-store-card.is-height-2 .masonry-store-media {
  min-height: 300px;
}

.masonry-store-card.is-height-3 .masonry-store-media {
  min-height: 190px;
}

.masonry-store-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.88;
}

.masonry-store-media span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masonry-store-copy {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.masonry-store-copy .section-kicker {
  color: var(--muted);
}

.masonry-store-copy h3,
.masonry-empty h3 {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.masonry-store-copy p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.48;
}

.masonry-store-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.masonry-store-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.masonry-store-meta strong {
  color: var(--charcoal);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}

.masonry-store-meta strong.is-updating {
  color: var(--clay);
}

.store-shelf-live .masonry-empty {
  display: none;
}

.store-shelf-live .masonry-empty.is-visible {
  display: grid;
}

.backstore-page {
  --backstore-header-top: max(16px, env(safe-area-inset-top, 0px));
  --backstore-header-height: 60px;
  --backstore-header-gap: 24px;
  --backstore-header-clearance: calc(var(--backstore-header-top) + var(--backstore-header-height) + var(--backstore-header-gap));
  padding-top: max(108px, var(--backstore-header-clearance));
  padding-bottom: max(118px, calc(env(safe-area-inset-bottom, 0px) + 108px));
}

.backstore-header {
  position: fixed;
  top: var(--backstore-header-top, max(16px, env(safe-area-inset-top, 0px)));
  left: 50%;
  z-index: 30;
  width: min(680px, calc(100vw - 28px));
  transform: translateX(-50%);
}

.backstore-page .backstore-shell,
.backstore-page .product-detail-shell {
  margin-top: 4px;
}

.backstore-address {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.18);
}

.backstore-address-dot,
.backstore-close {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}

.backstore-logo-dot,
.backstore-address-dot {
  color: #fff;
  background: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 900;
}

.backstore-back {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.backstore-back .backstore-logo-text,
.backstore-back .backstore-back-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.backstore-back .backstore-back-icon {
  opacity: 0;
  transform: translateX(-6px);
}

.backstore-back:hover .backstore-back-icon,
.backstore-back:focus-visible .backstore-back-icon {
  opacity: 1;
  transform: translateX(0);
}

.backstore-back:hover .backstore-logo-text,
.backstore-back:focus-visible .backstore-logo-text {
  opacity: 0;
  transform: translateX(6px);
}

.backstore-close {
  position: relative;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, background 180ms ease;
}

.backstore-close:hover {
  background: #fff;
  transform: translateY(-1px);
}

.backstore-address svg,
.backstore-nav-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.15;
}

.backstore-close .clear-icon {
  display: none;
}

.backstore-address.is-searching .search-icon {
  display: none;
}

.backstore-address.is-searching .clear-icon {
  display: block;
}

.backstore-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  text-align: center;
  font-weight: 820;
}

.backstore-shell {
  display: grid;
  width: min(1240px, 100%);
  margin: 0 auto;
  gap: clamp(16px, 3vw, 26px);
}

.backstore-view {
  display: none;
  animation: backstore-rise 280ms ease both;
}

.backstore-view.is-active {
  display: grid;
  gap: clamp(16px, 3vw, 26px);
}

@keyframes backstore-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.backstore-hero {
  position: relative;
  display: grid;
  min-height: clamp(430px, 52vw, 640px);
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(19, 19, 16, 0.05), rgba(19, 19, 16, 0.76)),
    linear-gradient(90deg, rgba(19, 19, 16, 0.66), rgba(19, 19, 16, 0.18)),
    var(--store-front) center/cover;
  box-shadow: var(--shadow);
}

.backstore-hero-copy {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  padding: clamp(22px, 5vw, 48px);
}

.backstore-hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.88;
}

.backstore-hero-copy p:not(.section-kicker) {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

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

.backstore-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.backstore-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(22px, 5vw, 48px) clamp(22px, 4vw, 34px);
}

.backstore-hero-strip span {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 820;
  backdrop-filter: blur(14px);
}

.backstore-front-grid,
.backstore-insights-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(16px, 3vw, 26px);
}

.backstore-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.backstore-info h2,
.backstore-insights h2,
.backstore-settings h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 0.98;
}

.backstore-metric-row,
.backstore-views,
.backstore-settings-grid,
.backstore-settings-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.backstore-product-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.backstore-products-dashboard {
  display: grid;
  gap: 14px;
}

.backstore-product-summary-tile h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.media-manager-shell {
  display: grid;
  gap: 14px;
}

.media-manager-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  gap: 12px;
  align-items: start;
}

.media-manager-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr;
  height: fit-content;
}

.media-manager-card:hover {
  border-color: rgba(120, 174, 187, 0.4);
  box-shadow: 0 28px 68px rgba(33, 31, 26, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.media-manager-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.38) 100%);
}

.media-manager-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-manager-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-manager-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(24, 24, 22, 0.64);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-manager-card:hover .media-manager-overlay {
  opacity: 1;
}

.media-manager-primary-action {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--charcoal);
  font-weight: 720;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.media-manager-primary-action:hover {
  background: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(33, 31, 26, 0.25);
}

.media-manager-primary-action svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.media-manager-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
}

.media-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(33, 31, 26, 0.15);
}

.media-manager-meta {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.media-manager-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.media-manager-meta strong {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.media-manager-external-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--muted);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.media-manager-external-link:hover {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.08);
}

.media-manager-external-link svg {
  width: 16px;
  height: 16px;
}

.media-manager-status {
  display: grid;
}

.media-manager-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 680;
  width: fit-content;
  transition: all 0.2s ease;
}

.media-manager-status-pill.is-public {
  background: rgba(143, 168, 125, 0.18);
  color: #5a7a4a;
  border: 1px solid rgba(143, 168, 125, 0.35);
}

.media-manager-status-pill.is-private {
  background: rgba(201, 111, 82, 0.12);
  color: #8b5a42;
  border: 1px solid rgba(201, 111, 82, 0.25);
}

.media-manager-publicity {
  border-radius: 8px;
}

@media (max-width: 1300px) {
  .media-manager-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .media-manager-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
}

@media (max-width: 680px) {
  .media-manager-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 10px;
  }

  .media-manager-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .media-manager-thumb-wrapper {
    aspect-ratio: 16 / 9;
  }

  .media-manager-meta {
    gap: 10px;
    padding: 12px;
  }

  .media-manager-header {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .media-manager-meta strong {
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
  }

  .media-manager-status-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .media-manager-external-link {
    width: 24px;
    height: 24px;
  }

  .media-manager-external-link svg {
    width: 14px;
    height: 14px;
  }

  .media-manager-primary-action {
    padding: 10px 16px;
    gap: 8px;
    font-size: 0.85rem;
  }

  .media-manager-primary-action svg {
    width: 24px;
    height: 24px;
  }

  .media-count-badge {
    height: 28px;
    min-width: 44px;
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .media-manager-controls {
    flex-direction: column;
    gap: 8px !important;
  }

  .media-manager-controls .secondary-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .media-manager-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .media-manager-thumb-wrapper {
    aspect-ratio: 4 / 3;
  }

  .media-manager-meta {
    gap: 8px;
    padding: 10px;
  }

  .media-manager-meta strong {
    font-size: 0.85rem;
  }

  .media-manager-status-pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .media-manager-controls {
    flex-direction: column;
    gap: 8px !important;
  }

  .media-manager-controls .secondary-button {
    width: 100%;
  }
}

.backstore-metric,
.backstore-view-panel,
.backstore-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
}

.backstore-metric {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.backstore-metric span,
.backstore-metric small,
.backstore-view-panel p,
.backstore-toggle small {
  color: var(--muted);
}

.backstore-metric span,
.backstore-toggle strong {
  font-size: 0.82rem;
  font-weight: 820;
}

.backstore-metric strong {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.9;
}

[data-live-number] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

[data-live-number].is-updating {
  color: var(--clay);
  transform: translateY(-1px);
  text-shadow: 0 12px 24px rgba(201, 111, 82, 0.22);
}

.live-chip {
  position: relative;
  gap: 7px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.live-chip::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 5px rgba(143, 168, 125, 0.16);
  content: "";
}

.live-chip[data-tone="syncing"]::before {
  background: var(--honey);
  box-shadow: 0 0 0 5px rgba(215, 165, 64, 0.18);
}

.live-chip[data-tone="paused"] {
  color: #9a3f2a;
  border-color: rgba(201, 111, 82, 0.34);
  background: rgba(201, 111, 82, 0.12);
}

.live-chip[data-tone="paused"]::before {
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(201, 111, 82, 0.16);
}

.backstore-status-board {
  display: grid;
  min-height: 100%;
  align-content: space-between;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(37, 35, 31, 0.94), rgba(60, 57, 50, 0.86)),
    radial-gradient(circle at 92% 12%, rgba(120, 174, 187, 0.3), transparent 20rem);
  box-shadow: var(--shadow);
}

.backstore-status-board .section-kicker,
.backstore-status-board p {
  color: rgba(255, 255, 255, 0.7);
}

.backstore-status-board h2 {
  max-width: 8ch;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.backstore-mini-feed {
  display: grid;
  gap: 10px;
}

.backstore-mini-feed span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.backstore-mini-feed strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
}

.backstore-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  min-height: 210px;
  gap: 10px;
  padding-top: 12px;
}

.backstore-chart span {
  position: relative;
  display: grid;
  min-height: 100%;
  align-content: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.backstore-chart span::before {
  display: block;
  height: var(--bar);
  min-height: 34px;
  border-radius: inherit;
  background: var(--tone);
  content: "";
}

.backstore-chart i {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: var(--charcoal);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.backstore-view-panel {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.backstore-view-panel .section-kicker {
  color: var(--muted);
}

.backstore-view-panel h2 {
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.9;
}

.backstore-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.1);
}

.backstore-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage);
  transition: width 520ms ease;
}

.backstore-progress.is-sky span {
  background: var(--sky);
}

.backstore-progress.is-gold span {
  background: var(--honey);
}

.backstore-progress.is-clay span {
  background: var(--clay);
}

.backstore-products-section {
  display: grid;
  gap: 16px;
}

.backstore-product-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.backstore-product-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 14px;
}

.backstore-product-card {
  display: grid;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.backstore-product-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.54);
}

.backstore-product-card.is-product-height-2 .backstore-product-media {
  height: 330px;
}

.backstore-product-card.is-product-height-3 .backstore-product-media {
  height: 200px;
}

.backstore-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backstore-product-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    rgba(120, 174, 187, 0.12);
  font-weight: 820;
}

.backstore-product-media > span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.backstore-product-toggle-publicity {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(37, 35, 31, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  backdrop-filter: blur(12px);
}

.backstore-product-toggle-publicity:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(37, 35, 31, 0.88);
}

.backstore-product-toggle-publicity.is-public {
  border-color: rgba(120, 145, 109, 0.6);
  background: rgba(120, 145, 109, 0.72);
}

.backstore-product-toggle-publicity.is-public:hover:not(:disabled) {
  border-color: rgba(120, 145, 109, 0.9);
  background: rgba(120, 145, 109, 0.88);
}

.backstore-product-toggle-publicity.is-private {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(37, 35, 31, 0.72);
}

.backstore-product-toggle-publicity.is-private:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(37, 35, 31, 0.88);
}

.backstore-product-toggle-publicity:disabled,
.backstore-product-toggle-publicity.is-updating {
  opacity: 0.6;
  cursor: not-allowed;
}

.backstore-product-toggle-publicity svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.backstore-product-copy {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.backstore-product-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.backstore-product-head h3 {
  font-size: 1rem;
  line-height: 1.1;
}

.backstore-product-head strong {
  color: var(--clay);
  white-space: nowrap;
}

.backstore-product-copy p,
.backstore-feed-status,
.backstore-product-empty p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.45;
}

.backstore-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 3px;
}

.backstore-product-meta span {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  font-weight: 790;
}

.publicity-badge {
  padding: 6px 8px !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 790 !important;
  transition: all 200ms ease;
}

.publicity-badge.is-public {
  border-color: rgba(120, 145, 109, 0.45) !important;
  color: #2d5a2d !important;
  background: rgba(120, 145, 109, 0.15) !important;
}

.publicity-badge.is-private {
  border-color: var(--line) !important;
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.54) !important;
}

.backstore-product-empty {
  display: inline-grid;
  width: 100%;
  break-inside: avoid;
}

.backstore-product-empty h3 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1;
}

.backstore-load-all {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(83, 127, 117, 0.28);
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 22px rgba(39, 44, 35, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 830;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.backstore-load-all:hover {
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.backstore-load-all:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.backstore-feed-status {
  justify-self: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 790;
}

.backstore-feed-status:empty {
  display: none;
}

.backstore-feed-sentinel {
  width: 100%;
  height: 1px;
}

.product-detail-page {
  padding-inline: clamp(12px, 3vw, 36px);
}

.product-detail-shell {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.product-detail-view {
  display: none;
  animation: backstore-rise 280ms ease both;
}

.product-detail-view.is-active {
  display: grid;
}

.product-hero {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}

.product-hero-media {
  position: relative;
  min-height: clamp(420px, 58vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
}

.product-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.product-image-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  touch-action: pan-y;
}

.product-image-gallery.is-single,
.product-image-gallery.is-single img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.product-image-gallery-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: inherit;
  cursor: grab;
}

.product-image-gallery-viewport:active {
  cursor: grabbing;
}

.product-image-gallery-track {
  display: flex;
  height: 100%;
  min-height: inherit;
  will-change: transform;
}

.product-image-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: inherit;
}

.product-image-gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.product-image-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 22, 0.42);
  backdrop-filter: blur(12px);
}

.product-image-gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.product-image-gallery-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.product-image-gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 24, 22, 0.55);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.backstore-product-media .product-image-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.backstore-product-media .product-image-gallery-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.backstore-product-media .product-image-gallery-track,
.backstore-product-media .product-image-gallery-slide {
  height: 100%;
  min-height: 0;
}

.backstore-product-media .product-image-gallery-slide img {
  min-height: 0;
}

.backstore-product-media .product-image-gallery-dots {
  bottom: 38px;
  z-index: 3;
  pointer-events: auto;
}

.backstore-product-media .product-image-gallery-counter {
  top: 8px;
  right: 8px;
  left: auto;
  bottom: auto;
  z-index: 3;
  margin: 0;
  pointer-events: none;
}

.media-manager-thumb .product-image-gallery,
.media-manager-thumb .product-image-gallery-viewport {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.backstore-product-media {
  touch-action: pan-y;
}

.product-hero-placeholder {
  display: grid;
  min-height: inherit;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(120, 174, 187, 0.14);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 860;
}

.product-price-badge,
.product-stock-badge {
  position: absolute;
  z-index: 4;
  max-width: calc(100% - 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(18px);
  font-weight: 880;
}

.product-price-badge {
  left: 14px;
  bottom: 14px;
  color: #fff;
  background: rgba(37, 35, 31, 0.84);
}

.product-stock-badge {
  right: 14px;
  bottom: 14px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.88);
}

.product-hero-copy {
  display: grid;
  gap: 12px;
  padding-inline: clamp(4px, 1vw, 10px);
}

.product-hero-copy .section-kicker {
  color: var(--muted);
}

.product-hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.product-hero-copy p:not(.section-kicker) {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.55;
}

.product-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-switch {
  position: fixed;
  top: 50%;
  z-index: 26;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.product-switch svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.product-switch--left {
  left: max(12px, calc((100vw - 1220px) / 2));
}

.product-switch--right {
  right: max(12px, calc((100vw - 1220px) / 2));
}

.product-publicity-bar {
  margin-top: 4px;
}

.product-public-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.product-public-toggle.is-compact {
  padding: 10px 12px;
  gap: 10px;
}

.product-public-toggle.is-public {
  border-color: rgba(120, 145, 109, 0.45);
  background: rgba(120, 145, 109, 0.12);
}

.product-public-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-public-toggle-ui {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.18);
  transition: background 180ms ease;
}

.product-public-toggle-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 30, 26, 0.18);
  transition: transform 180ms ease;
}

.product-public-toggle-input:checked + .product-public-toggle-ui {
  background: var(--sage);
}

.product-public-toggle-input:checked + .product-public-toggle-ui::after {
  transform: translateX(18px);
}

.product-public-toggle-input:disabled + .product-public-toggle-ui {
  opacity: 0.45;
}

.product-public-toggle-copy {
  display: grid;
  gap: 4px;
}

.product-public-toggle-copy strong {
  font-size: 0.92rem;
}

.product-public-toggle-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.product-publicity-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.media-manager-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: min(52vh, 360px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.media-manager-search-results[hidden] {
  display: none !important;
}

.product-search-shell {
  position: relative;
}

.product-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.product-search-results[hidden] {
  display: none !important;
}

.backstore-close.has-query .search-icon {
  display: none;
}

.backstore-close.has-query .clear-icon {
  display: block;
}

.product-search-results a,
.product-search-empty {
  display: grid;
  gap: 3px;
  border-radius: calc(var(--radius) - 2px);
  padding: 10px 12px;
  color: var(--soft-ink);
  background: rgba(247, 243, 234, 0.64);
}

.product-search-results a:hover {
  background: rgba(255, 255, 255, 0.96);
}

.product-search-results span,
.product-search-empty,
.product-search-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-search-status {
  padding: 10px 12px;
  text-align: center;
  font-weight: 760;
}

.product-panel-card {
  width: min(980px, 100%);
  margin: 0 auto;
}

.product-media-grid,
.product-insight-grid {
  display: grid;
  gap: 14px;
}

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

.product-media-upload-tile {
  display: grid;
  gap: 8px;
  place-items: center;
  align-content: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(37, 35, 31, 0.22);
  border-radius: var(--radius);
  color: var(--charcoal);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 243, 234, 0.72)),
    rgba(120, 174, 187, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-media-upload-tile svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}

.product-media-upload-tile strong {
  font-size: 0.92rem;
}

.product-media-upload-tile span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.product-media-upload-tile:hover,
.product-media-upload-tile:focus-visible {
  border-color: rgba(37, 35, 31, 0.34);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.product-media-upload-tile.is-hero {
  width: 100%;
  min-height: inherit;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(120, 174, 187, 0.14);
}

.product-media-upload-tile.is-card {
  min-height: 140px;
}

/* Media Upload Modal */
.media-upload-modal {
  position: fixed;
  inset: 0;
  display: grid;
  z-index: 9999;
  pointer-events: none;
}

.media-upload-modal.is-active {
  pointer-events: auto;
}

.media-upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.media-upload-modal.is-active .media-upload-modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.media-upload-modal-content {
  position: relative;
  align-self: end;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 60px rgba(33, 31, 26, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.media-upload-modal.is-active .media-upload-modal-content {
  transform: translateY(0);
}

.media-upload-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.media-upload-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--charcoal);
}

.media-upload-modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.media-upload-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--charcoal);
}

.media-upload-modal-close svg {
  width: 20px;
  height: 20px;
}

.media-upload-modal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}

.media-upload-option {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: start;
  text-align: left;
}

.media-upload-option:hover {
  border-color: rgba(120, 174, 187, 0.5);
  background: rgba(120, 174, 187, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(120, 174, 187, 0.15);
}

.media-upload-option:active {
  transform: translateY(0);
}

.media-upload-option svg {
  width: 32px;
  height: 32px;
  color: var(--sky);
  flex-shrink: 0;
}

.media-upload-option strong {
  font-size: 0.95rem;
  font-weight: 750;
  display: block;
}

.media-upload-option span {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
}

@media (max-width: 620px) {
  .media-upload-modal-content {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .media-upload-modal-header {
    padding: 16px;
  }

  .media-upload-modal-header h3 {
    font-size: 1.1rem;
  }

  .media-upload-modal-options {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .media-upload-option {
    grid-template-columns: 40px 1fr;
    align-items: center;
    padding: 16px;
    gap: 16px;
  }

  .media-upload-option svg {
    width: 40px;
    height: 40px;
    grid-row: span 2;
  }

  .media-upload-option strong,
  .media-upload-option span {
    text-align: left;
  }
}

.product-hero-media {
  position: relative;
}

.product-hero-media .product-media-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 58px;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 780;
  box-shadow: var(--shadow);
}

.product-media-status[hidden] {
  display: none !important;
}

.product-media-item {
  display: grid;
  gap: 8px;
  margin: 0;
  position: relative;
}

.product-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(37, 35, 31, 0.82);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.product-media-item.is-readonly .product-media-remove {
  display: none;
}

.product-media-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.56);
}

.product-media-item figcaption,
.product-empty-strip {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.product-empty-strip,
.product-empty-state {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.product-empty-state h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.product-insight-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-description-card {
  grid-column: 1 / -1;
}

.product-description-card p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.58;
}

.product-demand-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.1);
}

.product-demand-meter span {
  display: block;
  width: var(--demand);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--honey), var(--clay));
}

.product-sales-tracker {
  grid-column: 1 / -1;
}

.product-period-form {
  display: grid;
  justify-items: end;
}

.product-period-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.product-period-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  padding: 0 34px 0 12px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 820;
  text-transform: none;
}

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

.product-sales-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.product-sales-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.product-sales-grid strong {
  overflow: hidden;
  color: var(--charcoal);
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-demand-form,
.product-edit-form {
  display: grid;
  gap: 12px;
}

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

.product-demand-form strong {
  grid-column: 1 / -1;
}

.product-demand-form label,
.product-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-size: 0.84rem;
  font-weight: 820;
}

.product-demand-form input,
.product-edit-form input,
.product-edit-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
}

.product-edit-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.product-detail-nav {
  grid-template-columns: repeat(4, 1fr);
}

.backstore-settings {
  gap: 20px;
  min-height: min(700px, calc(100vh - 230px));
  align-content: start;
}

.backstore-toggle {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  padding: 16px;
}

.backstore-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.backstore-settings-action {
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.backstore-settings-action:hover {
  border-color: rgba(37, 35, 31, 0.24);
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
}

.backstore-toggle span {
  grid-row: span 2;
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.18);
  transition: background 180ms ease;
}

.backstore-toggle span::before {
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(33, 31, 26, 0.18);
  transition: transform 180ms ease;
  content: "";
}

.backstore-toggle input:checked + span {
  background: var(--charcoal);
}

.backstore-toggle.is-active span {
  background: var(--charcoal);
}

.backstore-toggle input:checked + span::before {
  transform: translateX(20px);
}

.backstore-toggle.is-active span::before {
  transform: translateX(20px);
}

.backstore-settings-deck article {
  display: grid;
  min-height: 180px;
  align-content: end;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    rgba(120, 174, 187, 0.08);
}

.backstore-settings-deck .section-kicker {
  color: var(--muted);
}

.backstore-settings-deck h3 {
  font-size: 1.25rem;
  line-height: 1.05;
}

.backstore-settings-deck p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.48;
}

.publicity-shell,
.publicity-grid {
  display: grid;
  gap: 14px;
}

.publicity-message {
  padding: 12px 14px;
  border: 1px solid rgba(84, 122, 86, 0.28);
  border-radius: var(--radius);
  background: rgba(84, 122, 86, 0.08);
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 700;
}

.publicity-message.is-error {
  border-color: rgba(160, 72, 62, 0.28);
  background: rgba(160, 72, 62, 0.08);
}

.publicity-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.publicity-field {
  display: grid;
  gap: 8px;
}

.publicity-field span {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 820;
}

.publicity-field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(37, 35, 31, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.publicity-field small {
  color: var(--muted);
  line-height: 1.45;
}

.publicity-field em {
  color: #9a4337;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.publicity-form-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}

.publicity-form-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.publicity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  min-height: 260px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 35, 31, 0.84), rgba(37, 35, 31, 0.48)),
    var(--store-front, rgba(120, 174, 187, 0.2));
  color: #fff;
}

.publicity-hero h1 {
  max-width: 680px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.publicity-hero p:not(.section-kicker) {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.publicity-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.publicity-status span,
.publicity-status strong {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
}

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

.publicity-grid h3 {
  font-size: 1.25rem;
  line-height: 1.05;
}

.publicity-grid p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.publicity-grid--modern {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.publicity-form--card {
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(37, 35, 31, 0.1);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 250, 246, 0.94));
  box-shadow: 0 18px 44px rgba(37, 35, 31, 0.08);
  backdrop-filter: blur(12px);
}

.publicity-form--card .publicity-field input {
  border-color: rgba(37, 35, 31, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.publicity-form--card .publicity-field input[type="file"] {
  min-height: auto;
  padding: 11px 12px;
  border-style: dashed;
  cursor: pointer;
}

.publicity-form--card .publicity-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.92);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.publicity-form--card .publicity-field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.92);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.publicity-field-current {
  color: var(--muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.publicity-form-actions {
  gap: 12px;
}

.publicity-form-actions .primary-button {
  width: fit-content;
  min-width: 220px;
}

.publicity-category-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.publicity-category-field legend {
  font-size: 0.92rem;
  font-weight: 800;
}

.publicity-category-intro,
.publicity-category-hint,
.publicity-category-empty {
  color: var(--muted);
  line-height: 1.5;
}

.publicity-category-error {
  display: block;
  margin-bottom: 8px;
  color: #9a3b2e;
  font-style: normal;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(37, 35, 31, 0.12);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.category-card input {
  margin-top: 3px;
}

.category-card.is-selected,
.category-card:has(input:checked) {
  border-color: rgba(37, 35, 31, 0.34);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(37, 35, 31, 0.08);
}

.category-card-copy {
  display: grid;
  gap: 4px;
}

.category-card-copy strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.category-card-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.tag-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 12px 0;
}

.tag-entry-row input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(37, 35, 31, 0.14);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.94);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-grid--entered {
  min-height: 38px;
}

.tag-chip--entered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(37, 35, 31, 0.2);
  border-radius: 999px;
  background: rgba(37, 35, 31, 0.92);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
}

.tag-chip-remove {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.tag-chip-remove:hover {
  background: rgba(255, 255, 255, 0.28);
}

.publicity-insights {
  display: grid;
  gap: 14px;
}

.publicity-panel {
  min-height: 100%;
  padding: 18px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 248, 242, 0.94));
}

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

@media (max-width: 1080px) {
  .publicity-hero,
  .publicity-grid--modern {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .publicity-shell {
    padding: 14px;
  }

  .publicity-section-head {
    align-items: flex-start;
  }

  .publicity-section-head .store-shelf-tools {
    align-items: flex-start;
  }

  .publicity-grid--stats {
    grid-template-columns: 1fr;
  }

  .publicity-hero-media,
  .publicity-hero-empty {
    min-height: 240px;
  }

  .publicity-form-actions .primary-button {
    width: 100%;
    min-width: 0;
  }
}

.backstore-footer {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  width: min(560px, calc(100vw - 28px));
  transform: translateX(-50%);
}

.backstore-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.18);
}

.backstore-nav-button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  gap: 6px;
  border-radius: 999px;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  font-weight: 820;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.backstore-nav-button.is-active {
  color: #fff;
  background: var(--charcoal);
}

.backstore-nav-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 940px) {
  .backstore-front-grid,
  .backstore-insights-layout,
  .backstore-metric-row,
  .backstore-product-dashboard,
  .backstore-views,
  .backstore-settings-grid,
  .backstore-settings-deck,
  .publicity-hero,
  .publicity-grid {
    grid-template-columns: 1fr;
  }

  .publicity-status {
    justify-items: start;
  }

  .publicity-form {
    padding: 16px;
  }

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

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

  .product-media-grid,
  .product-insight-grid {
    grid-template-columns: 1fr;
  }

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

  .product-description-card {
    grid-column: auto;
  }

  .product-switch {
    top: auto;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 82px));
    transform: none;
  }
}

@media (max-width: 620px) {
  .backstore-page {
    --backstore-header-height: 54px;
    --backstore-header-gap: 20px;
    padding-top: max(100px, var(--backstore-header-clearance));
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 98px));
    padding-inline: clamp(10px, 3vw, 16px);
  }

  .backstore-address {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    min-height: 54px;
  }

  .backstore-address-dot,
  .backstore-close {
    width: 38px;
    height: 38px;
  }

  .backstore-hero {
    min-height: 430px;
  }

  .publicity-hero {
    min-height: 360px;
  }

  .backstore-hero-copy h1 {
    font-size: clamp(2.55rem, 14vw, 4.4rem);
  }

  .backstore-hero-actions,
  .backstore-hero-actions .primary-button,
  .backstore-hero-actions .secondary-button {
    width: 100%;
  }

  .backstore-card-head,
  .backstore-product-head,
  .publicity-section-head {
    display: grid;
    gap: 12px;
  }

  .backstore-card-head .secondary-button,
  .backstore-card-head .primary-button,
  .publicity-section-head .secondary-button,
  .publicity-section-head .store-shelf-tools,
  .account-section-head .store-shelf-tools {
    width: 100%;
  }

  .publicity-section-head .store-shelf-tools {
    display: grid;
    justify-items: stretch;
  }

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

  .tag-entry-row .secondary-button {
    width: 100%;
  }

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

  .publicity-hero h1 {
    font-size: clamp(1.85rem, 10vw, 3.2rem);
  }

  .publicity-status span,
  .publicity-status strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .backstore-product-masonry {
    grid-template-columns: 1fr;
  }

  .backstore-settings {
    min-height: auto;
  }

  .account-section-head .store-shelf-tools {
    display: grid;
    justify-items: stretch;
    gap: 10px;
  }

  .account-section-head .store-shelf-tools .secondary-button,
  .account-section-head .store-shelf-tools .backstore-load-all {
    width: 100%;
  }

  .product-search-results {
    max-height: min(52vh, 360px);
    overflow-y: auto;
  }

  .media-manager-grid {
    grid-template-columns: 1fr;
  }

  .backstore-product-media,
  .backstore-product-card.is-product-height-2 .backstore-product-media,
  .backstore-product-card.is-product-height-3 .backstore-product-media {
    height: 230px;
  }

  .product-hero-media {
    min-height: 410px;
  }

  .product-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }

  .product-price-badge,
  .product-stock-badge {
    left: 10px;
    right: auto;
    max-width: calc(100% - 20px);
  }

  .product-stock-badge {
    bottom: 58px;
  }

  .product-demand-form {
    grid-template-columns: 1fr;
  }

  .product-period-form {
    justify-items: start;
    width: 100%;
  }

  .product-period-form select {
    width: 100%;
  }

  .product-sales-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-page .backstore-card-head {
    display: grid;
    gap: 12px;
  }

  .product-detail-page .backstore-card-head .secondary-button {
    width: 100%;
  }

  .product-switch {
    width: 40px;
    height: 40px;
  }

  .product-switch--left {
    left: 8px;
  }

  .product-switch--right {
    right: 8px;
  }

  .backstore-nav {
    gap: 5px;
    padding: 7px;
  }

  .backstore-nav-button {
    grid-template-columns: 1fr;
    min-height: 46px;
    gap: 2px;
    font-size: 0.68rem;
  }

  .backstore-nav-button svg {
    width: 18px;
    height: 18px;
    justify-self: center;
  }
}

@media (max-width: 380px) {
  .backstore-page {
    --backstore-header-gap: 16px;
    padding-top: max(96px, var(--backstore-header-clearance));
    padding-inline: 8px;
  }

  .auth-page.backstore-page {
    padding-top: max(96px, var(--backstore-header-clearance));
    padding-inline: 8px;
  }

  .backstore-nav {
    gap: 4px;
    padding: 6px;
  }

  .backstore-nav-button span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-detail-nav .backstore-nav-button span {
    font-size: 0.62rem;
  }
}

@media (max-width: 940px) {
  .auth-shell.is-split,
  .onboarding-main,
  .account-hero,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .auth-card {
    min-height: 560px;
  }

  .store-masonry {
    column-count: 2;
  }

  .hero-signals {
    width: min(320px, 100%);
  }
}

@media (max-width: 620px) {
  .auth-page {
    padding-inline: 10px;
    padding-bottom: 24px;
    padding-top: 12px;
  }

  .auth-page.backstore-page {
    padding-top: max(100px, var(--backstore-header-clearance));
    padding-bottom: max(108px, calc(env(safe-area-inset-bottom, 0px) + 98px));
    padding-inline: clamp(10px, 3vw, 16px);
  }

  .auth-page.account-page {
    --account-top-gap: 16px;
    padding-top: max(var(--account-top-gap), env(safe-area-inset-top, 0px));
    padding-inline: clamp(10px, 3vw, 16px);
  }

  .auth-shell {
    min-height: auto;
    gap: 14px;
  }

  .brand-copy {
    display: none;
  }

  .brand-pill {
    grid-template-columns: 42px;
    padding-right: 8px;
  }

  .experience-card,
  .auth-card {
    min-height: auto;
  }

  .experience-card {
    min-height: 430px;
  }

  .auth-card,
  .mini-card,
  .step-card {
    padding: 18px;
  }

  .experience-inner {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4.1rem);
    line-height: 0.9;
  }

  .auth-head h1,
  .auth-head h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-signals {
    display: none;
  }

  .actions,
  .auth-form .primary-button,
  .social-button {
    width: 100%;
  }

  .actions .primary-button,
  .actions .secondary-button,
  .auth-form .primary-button {
    width: 100%;
  }

  .social-grid,
  .store-preview,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row,
  .auth-nav,
  .account-topbar {
    align-items: start;
    flex-direction: column;
  }

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

  .step-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .account-profile {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .account-stats {
    grid-template-columns: 1fr;
  }

  .account-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .account-topbar .actions,
  .account-topbar .actions form {
    width: 100%;
  }

  .account-topbar .actions form .primary-button {
    width: 100%;
  }

  .account-profile h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .account-card {
    padding: 16px;
  }

  .store-shelf-tools,
  .store-shelf-search {
    width: 100%;
  }

  .store-shelf-tools {
    display: grid;
    justify-items: stretch;
  }

  .store-shelf-tools .chip {
    justify-self: start;
  }

  .store-masonry {
    column-count: 1;
  }

  .masonry-store-media,
  .masonry-store-card.is-height-2 .masonry-store-media,
  .masonry-store-card.is-height-3 .masonry-store-media {
    min-height: 220px;
  }
}

@media (max-width: 380px) {
  .auth-page {
    padding-inline: 8px;
  }

  .auth-page.account-page {
    padding-inline: 8px;
  }

  .experience-card {
    min-height: 390px;
  }

  .experience-inner,
  .auth-card,
  .mini-card,
  .step-card {
    padding: 16px;
  }

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

  .primary-button,
  .secondary-button,
  .social-button {
    min-height: 44px;
    padding-inline: 14px;
  }

  .field input,
  .field select {
    min-height: 46px;
  }
}

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