:root {
  color-scheme: dark;
  --bg: oklch(0.085 0.006 260);
  --sidebar: oklch(0.075 0.008 255);
  --panel: oklch(0.132 0.011 255);
  --panel-2: oklch(0.17 0.014 255);
  --panel-3: oklch(0.205 0.016 255);
  --ink: oklch(0.975 0.004 250);
  --muted: oklch(0.72 0.013 250);
  --faint: oklch(0.54 0.012 250);
  --line: oklch(0.3 0.012 250);
  --line-soft: oklch(0.22 0.01 250);
  --red: oklch(0.61 0.22 30);
  --red-deep: oklch(0.49 0.19 29);
  --green: oklch(0.55 0.11 150);
  --blue: oklch(0.56 0.08 235);
  --gold: oklch(0.72 0.14 80);
  --radius: 8px;
  --max: 1512px;
  --header: 78px;
  --side: 220px;
  --font:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}

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

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

button,
select {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 50;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.store-view.active {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 1;
}

.catalog-bar {
  order: 2;
}

.featured {
  order: 3;
}

.all-products {
  order: 4;
}

.style-directory {
  order: 5;
}

.custom-service {
  order: 6;
}

.user-mode .store-header,
.admin-mode .store-header {
  display: none;
}

.store-mode .all-products {
  display: none;
}

.all-products-mode .store-view.active {
  display: block;
}

.all-products-mode .store-view.active > :not(.all-products) {
  display: none;
}

.all-products-mode .all-products {
  display: block;
  min-height: calc(100dvh - var(--header));
  padding: clamp(38px, 5vw, 70px) 0 86px;
}

.store-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(390px, 1fr) minmax(250px, 290px) auto;
  align-items: center;
  min-height: var(--header);
  padding: 0 clamp(18px, 4.8vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--bg) 93%, black);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.store-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 3vw, 52px);
  color: var(--muted);
  font-weight: 560;
  white-space: nowrap;
}

.store-nav a,
.icon-link,
.button,
.filter,
.style-options button,
.buy-button,
.favorite,
.side-nav a,
.top-tabs button,
.panel-head button,
.order-table button,
.pricing-table button {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.store-nav a:hover,
.store-nav a:focus-visible,
.icon-link:hover,
.icon-link:focus-visible,
.panel-head button:hover,
.panel-head button:focus-visible,
.order-table button:hover,
.order-table button:focus-visible,
.pricing-table button:hover,
.pricing-table button:focus-visible {
  color: var(--ink);
}

.store-search,
.catalog-search,
.app-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in oklch, var(--panel) 72%, black);
}

.store-search svg,
.catalog-search svg,
.app-search svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.store-search input,
.catalog-search input,
.app-search input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

::placeholder {
  color: var(--faint);
  opacity: 1;
}

.store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  padding-left: 28px;
}

.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

.cart-link em,
.icon-button em,
.side-nav em,
.top-tabs em {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: clamp(560px, 62svh, 650px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 38%, color-mix(in oklch, var(--red) 18%, transparent), transparent 30%),
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklch, var(--bg) 78%, black) 48%, color-mix(in oklch, var(--panel) 72%, black) 100%);
}

.hero-media img {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  height: min(100%, 650px);
  max-width: none;
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.94) contrast(1.04);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, black 0%, color-mix(in oklch, black 74%, transparent) 34%, transparent 72%),
    linear-gradient(180deg, transparent 65%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  width: min(100% - clamp(36px, 10vw, 160px), var(--max));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0 52px;
}

.hero-copy {
  align-self: center;
  max-width: 640px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(54px, 7.2vw, 84px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  color: color-mix(in oklch, var(--ink) 76%, transparent);
  font-size: clamp(16px, 1.5vw, 20px);
}

.hero-actions,
.custom-actions,
.toolbar,
.admin-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 700;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary,
.buy-button {
  border-color: color-mix(in oklch, var(--red) 78%, white);
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: white;
}

.button-quiet,
.button-outline {
  background: transparent;
}

.button:hover,
.button:focus-visible,
.buy-button:hover,
.buy-button:focus-visible {
  border-color: color-mix(in oklch, white 42%, transparent);
  transform: translateY(-1px);
}

.button-primary:hover,
.button-primary:focus-visible,
.buy-button:hover,
.buy-button:focus-visible {
  background: color-mix(in oklch, var(--red) 88%, white);
}

.full {
  width: 100%;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: clamp(32px, 5vw, 70px);
  margin: 0;
}

.hero-proof div {
  position: relative;
}

.hero-proof div + div::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: calc(clamp(32px, 5vw, 70px) / -2);
  width: 1px;
  background: var(--line);
  content: "";
}

.hero-proof dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
}

.hero-proof svg {
  width: 34px;
  height: 34px;
}

.hero-proof dd {
  margin: 4px 0 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.catalog-bar,
.style-directory,
.featured,
.all-products,
.custom-service {
  width: min(100% - clamp(36px, 10vw, 160px), var(--max));
  margin: 0 auto;
}

.catalog-bar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 22px;
  padding: 34px 0 0;
}

.filters,
.product-meta,
.step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters {
  justify-content: flex-end;
}

.filter,
.style-options button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.filter.active,
.filter:hover,
.filter:focus-visible,
.style-options button:hover,
.style-options button:focus-visible,
.style-options button.active {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

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

.section-heading h2,
.custom-copy h2,
.panel-head h1,
.panel-head h2,
.welcome-row h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p,
.custom-copy p,
.style-summary p,
.style-status,
.panel-head p {
  margin: 0;
  color: var(--muted);
}

.section-note {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.style-directory {
  padding: 54px 0 22px;
}

.style-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.style-summary,
.style-group,
.panel,
.metric,
.license-panel,
.progress-panel,
.sidebar-card,
.admin-preview {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel) 86%, black);
}

.style-summary {
  padding: 20px;
}

.style-summary strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.style-groups {
  display: grid;
  gap: 12px;
}

.style-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
}

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

.featured {
  padding: 34px 0 72px;
}

.all-products {
  padding: 0 0 76px;
}

.view-all {
  border: 0;
  background: transparent;
  color: var(--muted);
}

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

.all-shop-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.all-style-panel {
  position: sticky;
  top: calc(var(--header) + 18px);
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel) 86%, black);
}

.all-style-panel strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.all-style-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.all-style-panel button:hover,
.all-style-panel button:focus-visible,
.all-style-panel button.active {
  border-color: var(--line-soft);
  background: var(--panel-2);
  color: var(--ink);
}

.all-style-panel span {
  color: var(--faint);
  font-size: 12px;
}

.all-products-area {
  min-width: 0;
}

.shop-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.shop-strip span {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.all-item {
  background: color-mix(in oklch, var(--panel) 94%, black);
}

.all-item .product-info {
  padding: 14px;
}

.all-item h3 {
  font-size: 17px;
}

.all-item .product-footer strong {
  font-size: 21px;
}

.all-item .buy-button {
  min-height: 36px;
  padding: 0 12px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-card[hidden] {
  display: none;
}

.product-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-2);
}

.product-card figure::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 40%;
  content: "";
  background: linear-gradient(180deg, transparent, color-mix(in oklch, black 62%, transparent));
}

.product-card figure::before,
.owned-card figure::before,
.product-detail figure::before {
  position: absolute;
  display: none;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid color-mix(in oklch, var(--gold) 48%, transparent);
  border-radius: 5px;
  background: color-mix(in oklch, black 54%, transparent);
  color: color-mix(in oklch, var(--gold) 76%, white);
  content: "预览水印";
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in oklch, white 24%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, black 42%, transparent);
  color: white;
}

.favorite svg {
  width: 18px;
  height: 18px;
}

.product-info {
  padding: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: color-mix(in oklch, var(--green) 36%, black);
  color: color-mix(in oklch, white 90%, var(--green));
  font-size: 12px;
  font-weight: 750;
}

.tag-blue {
  background: color-mix(in oklch, var(--blue) 40%, black);
}

.tag-slate {
  background: var(--panel-3);
}

.tag-gold {
  background: color-mix(in oklch, var(--gold) 38%, black);
  color: color-mix(in oklch, white 88%, var(--gold));
}

.product-card h3,
.owned-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.product-card p,
.owned-card p {
  margin: 0;
  color: var(--muted);
}

.product-meta {
  margin-top: 12px;
}

.product-meta span {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--faint);
  font-size: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.product-footer strong {
  color: var(--red);
  font-size: 24px;
}

.buy-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.custom-service {
  padding-bottom: 86px;
}

.custom-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--panel-2) 92%, black), color-mix(in oklch, var(--red) 12%, var(--panel)));
}

.custom-spec {
  display: grid;
  gap: 12px;
}

.custom-spec div {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: color-mix(in oklch, black 16%, transparent);
}

.custom-spec span {
  color: var(--muted);
}

.custom-spec strong {
  display: block;
  margin: 4px 0;
  font-size: 22px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100dvh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  border-right: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--sidebar) 92%, black);
}

.sidebar-brand {
  min-height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 25px;
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 24px 12px;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
}

.side-nav a:hover,
.side-nav a:focus-visible,
.side-nav a.active {
  border-color: var(--line-soft);
  background: var(--panel-2);
  color: color-mix(in oklch, var(--red) 82%, white);
}

.side-nav svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.side-nav em {
  margin-left: auto;
}

.sidebar-card {
  margin: 12px;
  padding: 16px;
}

.sidebar-card p {
  margin: 5px 0 10px;
  color: var(--muted);
}

.sidebar-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid color-mix(in oklch, var(--gold) 52%, black);
  border-radius: 5px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}

.meter {
  display: block;
  height: 6px;
  margin: 8px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-3);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--bg) 92%, black);
}

.admin-topbar {
  grid-template-columns: auto minmax(260px, 420px) 1fr auto auto;
}

.top-tabs {
  display: flex;
  gap: 28px;
  align-items: center;
}

.top-tabs button {
  position: relative;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.top-tabs button.active {
  color: var(--ink);
}

.top-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.icon-button em {
  position: absolute;
  top: 2px;
  right: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.user-chip img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.user-workspace,
.admin-workspace {
  padding: 20px;
}

.welcome-row {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.welcome-row p {
  margin: 0;
  color: var(--muted);
}

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

.user-stats article,
.metrics article {
  min-height: 106px;
  padding: 16px;
  border-left: 1px solid var(--line-soft);
}

.metrics article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel) 86%, black);
}

.user-stats svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.user-stats span,
.metrics span {
  display: block;
  color: var(--muted);
}

.user-stats strong,
.metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.user-stats small,
.metrics small {
  color: var(--faint);
}

.metrics small {
  color: var(--green);
}

.user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

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

.owned-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.owned-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-3);
}

.owned-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.owned-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.owned-card h3,
.owned-card p,
.owned-card div {
  margin-right: 16px;
  margin-left: 16px;
}

.owned-card h3 {
  margin-top: 14px;
}

.owned-card div {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.owned-card .button {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.user-side {
  display: grid;
  gap: 16px;
}

.license-panel,
.progress-panel {
  padding: 18px;
}

.license-card {
  padding: 18px;
  border: 1px solid color-mix(in oklch, var(--gold) 45%, var(--line));
  border-radius: 6px;
  background: color-mix(in oklch, var(--panel-2) 72%, black);
}

.license-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.license-card span,
.success {
  color: color-mix(in oklch, var(--green) 82%, white);
}

.license-card p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}

.timeline li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--ink);
  content: counter(step);
  counter-increment: step;
  font-size: 12px;
}

.timeline {
  counter-reset: step;
}

.timeline .done::before {
  background: var(--green);
  content: "✓";
}

.timeline .active::before {
  background: var(--red);
}

.timeline span {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
}

.timeline time {
  float: right;
  color: var(--muted);
}

.timeline p {
  margin: 3px 0 0;
}

.order-panel {
  margin-top: 16px;
}

.order-table {
  overflow-x: auto;
}

.order-table > div {
  display: grid;
  grid-template-columns: 140px minmax(220px, 1fr) 100px 150px 90px 120px;
  min-width: 860px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.order-table > div:first-child {
  padding: 10px 12px;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 700;
}

.order-table button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(520px, 1.05fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.pricing-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.pricing-table th {
  color: var(--faint);
  font-size: 12px;
}

.pricing-table tbody tr {
  cursor: pointer;
}

.pricing-table tbody tr:hover,
.pricing-table tbody tr.selected {
  background: var(--panel-2);
}

.product-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product-cell img,
.thumb-fallback {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  object-fit: cover;
}

.thumb-fallback {
  display: grid;
  place-items: center;
  background: var(--panel-3);
  color: var(--ink);
  font-size: 12px;
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.status.live {
  background: color-mix(in oklch, var(--green) 24%, transparent);
  color: color-mix(in oklch, white 88%, var(--green));
}

.status.draft {
  background: color-mix(in oklch, var(--blue) 28%, transparent);
  color: color-mix(in oklch, white 88%, var(--blue));
}

.pricing-table button {
  margin-right: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

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

.rule-grid article {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-2);
}

.rule-grid strong {
  display: block;
  margin-bottom: 8px;
}

.rule-grid p {
  min-height: 56px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.rule-grid span {
  color: var(--gold);
}

.step-tabs {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.step-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.step-tabs .active {
  border-color: var(--red);
  color: var(--ink);
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
}

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

.drop-zone {
  grid-column: 1 / -1;
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: color-mix(in oklch, var(--panel) 70%, black);
  color: var(--muted);
  text-align: center;
}

.drop-zone svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

.drop-zone strong {
  color: var(--ink);
}

.drop-zone.loaded {
  border-color: color-mix(in oklch, var(--green) 64%, var(--line));
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel-2);
}

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

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

.admin-preview {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.admin-preview::after {
  position: absolute;
  display: none;
  top: 28px;
  left: 28px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid color-mix(in oklch, var(--gold) 48%, transparent);
  border-radius: 5px;
  background: color-mix(in oklch, black 54%, transparent);
  color: color-mix(in oklch, var(--gold) 76%, white);
  content: "预览水印";
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.admin-preview > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
}

.admin-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
}

.admin-preview h2 {
  margin: 14px 0 8px;
}

.admin-preview p {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.admin-preview p span {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
}

.admin-preview small {
  display: block;
  color: var(--muted);
}

.admin-preview strong {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 26px;
}

.admin-submit {
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.modal-layer,
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: color-mix(in oklch, black 62%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-layer.open,
.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-layer {
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card,
.drawer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--panel) 94%, black);
  color: var(--ink);
}

.modal-card {
  position: relative;
  width: min(960px, 100%);
  max-height: min(86dvh, 760px);
  overflow: auto;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.modal-layer.open .modal-card {
  opacity: 1;
  transform: translateY(0);
}

.modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.modal-card > .modal-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
}

.modal-content {
  padding: clamp(20px, 4vw, 34px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.product-detail figure,
.case-grid img,
.management-grid img {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-2);
}

.product-detail img,
.case-grid img,
.management-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail h2,
.checkout-panel h2,
.case-modal h2,
.request-form h2,
.success-panel h2 {
  margin: 12px 0 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.16;
}

.product-detail p,
.checkout-panel p,
.case-modal p,
.request-form p,
.success-panel p,
.soft-copy {
  color: var(--muted);
}

.detail-list,
.summary-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
}

.detail-list div,
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.detail-list dt {
  color: var(--faint);
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
}

.summary-list {
  list-style: none;
}

.summary-list span {
  color: var(--muted);
}

.detail-price {
  display: grid;
  gap: 4px;
  margin: 18px 0;
}

.detail-price strong {
  color: var(--red);
  font-size: 30px;
}

.detail-price span {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.drawer-panel {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(440px, 100vw);
  height: 100dvh;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.drawer-panel.open {
  opacity: 1;
  transform: translateX(0);
}

.drawer-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.drawer-panel h2 {
  margin: 0;
}

.drawer-content {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

.drawer-list,
.data-list,
.license-grid,
.insight-grid,
.management-grid,
.case-grid {
  display: grid;
  gap: 12px;
}

.drawer-item,
.data-list article,
.license-grid article,
.insight-grid article,
.management-grid article,
.case-grid article,
.empty-state {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-2);
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.drawer-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  object-fit: cover;
}

.drawer-item strong,
.data-list strong,
.license-grid strong,
.management-grid strong,
.case-grid strong {
  display: block;
  margin-bottom: 5px;
}

.drawer-item span,
.data-list span,
.license-grid p,
.management-grid span,
.case-grid span {
  color: var(--muted);
  font-size: 13px;
}

.drawer-item em {
  color: var(--red);
  font-style: normal;
  font-weight: 800;
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.qty-row button,
.management-grid button,
.data-list button,
.license-grid button {
  min-height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
}

.qty-row button {
  min-width: 32px;
  padding: 0 9px;
}

.drawer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.drawer-total span {
  color: var(--muted);
}

.drawer-total strong {
  color: var(--red);
  font-size: 24px;
}

.drawer-total.subtle {
  margin-top: -4px;
  border-top: 0;
  border-bottom-style: dashed;
}

.drawer-total.subtle strong {
  color: var(--gold);
  font-size: 18px;
}

.drawer-total.final {
  margin-top: -4px;
}

.empty-state {
  padding: 22px;
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.checkout-panel,
.request-form,
.case-modal,
.success-panel,
.auth-panel {
  max-width: 720px;
}

.checkout-panel label,
.request-form label,
.inline-form label,
.auth-form label,
.service-message {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}

.checkout-panel input,
.checkout-panel select,
.request-form input,
.request-form select,
.request-form textarea,
.inline-form input,
.auth-form input,
.service-message textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--ink);
}

.request-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.auth-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.auth-copy p {
  margin: 0;
  color: var(--muted);
}

.auth-tabs,
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 14px;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: color-mix(in oklch, var(--panel-2) 82%, black);
}

.auth-tabs button,
.payment-methods button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.auth-tabs button.active,
.payment-methods button.active {
  background: var(--panel-3);
  color: var(--ink);
}

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

.auth-form .check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form .check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

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

.form-help button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 750;
}

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

.city-stock,
.exclusive-city-panel {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: color-mix(in oklch, var(--panel-2) 88%, black);
}

.city-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.city-stock-head strong {
  color: var(--ink);
  font-size: 15px;
}

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

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

.city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.city-option input {
  width: 16px;
  min-height: 16px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.city-option span {
  font-weight: 800;
}

.city-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.city-option:hover,
.city-option:focus-within {
  border-color: color-mix(in oklch, var(--gold) 58%, var(--line-soft));
}

.city-option:has(input:checked) {
  border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 13%, var(--panel));
}

.city-option.sold {
  opacity: 0.48;
  cursor: not-allowed;
}

.city-option.sold span {
  text-decoration: line-through;
}

.city-option.sold em {
  color: var(--red);
}

.exclusive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-2);
}

.exclusive-summary span {
  color: var(--muted);
}

.exclusive-summary strong {
  color: var(--ink);
  text-align: right;
}

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

.pay-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--panel-2);
}

.pay-code {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in oklch, var(--gold) 45%, transparent);
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--gold) 28%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in oklch, var(--gold) 28%, transparent) 1px, transparent 1px),
    color-mix(in oklch, var(--panel-3) 88%, black);
  background-size: 12px 12px;
  color: var(--gold);
  font-weight: 900;
}

.pay-card strong {
  color: var(--red);
  font-size: 30px;
}

.pay-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.service-float {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 55;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.service-float button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in oklch, var(--panel-2) 94%, black);
  color: var(--ink);
  font-weight: 750;
}

.service-float > button:not(.service-main) {
  padding: 0 12px;
  color: var(--muted);
}

.service-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  padding: 0 14px;
  background: linear-gradient(180deg, var(--red), var(--red-deep)) !important;
  color: white !important;
}

.service-main svg {
  width: 18px;
  height: 18px;
}

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

.service-card,
.support-line {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--panel-2);
}

.service-card strong,
.support-line strong {
  display: block;
  margin-top: 6px;
}

.service-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.service-message textarea {
  min-height: 118px;
  padding: 12px;
  resize: vertical;
}

.support-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-line span {
  color: var(--muted);
}

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

.case-grid article,
.management-grid article {
  overflow: hidden;
  padding: 10px;
}

.case-grid strong,
.case-grid span,
.management-grid strong,
.management-grid span {
  margin-top: 10px;
}

.user-detail-panel,
.admin-detail-panel {
  margin-bottom: 16px;
}

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

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

.license-grid article,
.data-list article,
.insight-grid article {
  padding: 14px;
}

.data-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
}

.data-list article span {
  grid-column: 1 / -1;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.insight-grid span,
.insight-grid small {
  color: var(--muted);
}

.insight-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 28px;
}

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

.management-grid div {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.connected-table {
  margin-top: 8px;
}

.sidebar-collapsed {
  grid-template-columns: 1fr;
}

.sidebar-collapsed .app-sidebar {
  display: none;
}

.demo-switcher {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-3);
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--red) 72%, white);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .store-header {
    grid-template-columns: auto minmax(0, 1fr) minmax(230px, 280px);
    row-gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .store-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-left: 0;
  }

}

@media (max-width: 1180px) {
  .store-header {
    grid-template-columns: auto 1fr;
  }

  .store-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 4px;
  }

  .store-search {
    justify-self: end;
    width: min(100%, 360px);
  }

  .product-grid,
  .all-grid,
  .owned-cards,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-layout,
  .all-shop-board,
  .custom-panel,
  .welcome-row,
  .user-grid {
    grid-template-columns: 1fr;
  }

  .all-style-panel {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .app-sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }

  .side-nav a {
    flex: 0 0 auto;
  }

  .sidebar-card {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .store-header {
    gap: 12px;
    min-height: auto;
    padding: 12px 16px;
  }

  .brand {
    font-size: 21px;
  }

  .store-search,
  .store-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .store-actions {
    justify-content: space-between;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media img {
    right: 50%;
    width: 100%;
    height: 100%;
    transform: translate(50%, -50%);
    object-fit: cover;
    object-position: 62% 50%;
  }

  .hero-inner,
  .catalog-bar,
  .style-directory,
  .featured,
  .all-products,
  .custom-service {
    width: min(100% - 32px, var(--max));
  }

  .hero-inner {
    padding-top: 78px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-proof div + div::before {
    display: none;
  }

  .catalog-bar,
  .style-group,
  .admin-grid,
  .upload-layout,
  .admin-form,
  .app-topbar,
  .admin-topbar {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .all-grid,
  .owned-cards,
  .rule-grid,
  .user-stats,
  .metrics,
  .product-detail,
  .case-grid,
  .license-grid,
  .insight-grid,
  .management-grid,
  .inline-form,
  .form-grid,
  .pay-card {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

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

  .city-stock-head,
  .exclusive-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .exclusive-summary strong {
    text-align: left;
  }

  .service-float {
    right: 12px;
    bottom: 74px;
  }

  .service-float > button:not(.service-main) {
    display: none;
  }

  .modal-layer {
    padding: 10px;
  }

  .modal-content {
    padding: 18px;
  }

  .drawer-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .drawer-item em {
    grid-column: 2;
  }

  .data-list article {
    grid-template-columns: 1fr;
  }

  .all-style-panel {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .product-card figure {
    aspect-ratio: 3 / 4;
  }

  .app-topbar {
    position: static;
  }

  .app-main,
  .admin-view .panel,
  .admin-view .pricing-panel,
  .admin-view .upload-panel,
  .admin-view .table-wrap {
    min-width: 0;
  }

  .admin-view .pricing-table {
    min-width: 820px;
  }

  .top-tabs {
    overflow-x: auto;
  }

  .user-workspace,
  .admin-workspace {
    padding: 16px;
  }

  .admin-submit {
    justify-content: stretch;
  }

  .admin-submit .button {
    width: 100%;
  }
}

@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;
  }
}
