@charset "UTF-8";

:root {
  --ink: #1f2329;
  --ink-soft: #4e5969;
  --ink-faint: #86909c;
  --paper: #ffffff;
  --paper-deep: #ffffff;
  --card: #ffffff;
  --forest: #1f2329;
  --forest-light: #343a40;
  --sage: #e8e8ed;
  --sage-light: #f5f5f7;
  --gold: #0071e3;
  --gold-light: #e8f2ff;
  --red: #d70015;
  --red-light: #fff0f1;
  --line: #eeeeee;
  --white-line: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-card: 12px;
  --radius-button: 8px;
  --radius-tag: 4px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

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

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

input,
textarea,
select {
  border-radius: 0;
}

::selection {
  color: #fff;
  background: var(--forest);
}

:focus-visible {
  outline: 3px solid rgba(185, 137, 67, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: #fff;
  background: var(--forest);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 18px;
  color: var(--ink-soft);
  text-align: center;
}

.boot-screen p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.boot-screen .brand-mark {
  margin: 0 auto;
  animation: breathe 1.6s ease-in-out infinite;
}

.noscript {
  position: fixed;
  inset: 20px;
  z-index: 100;
  padding: 30px;
  color: #fff;
  background: var(--forest);
  border-radius: 20px;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  background: var(--forest);
  border-radius: 13px;
}

.brand-mark::before {
  position: absolute;
  width: auto;
  height: auto;
  content: "A";
  color: #fff;
  background: transparent;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark span:first-child {
  display: none;
}

.brand-mark span:last-child {
  display: none;
}

.brand-mark--large {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.brand-mark--large::before {
  font-size: 29px;
}

.brand-mark--large span:first-child {
  display: none;
}

.brand-mark--large span:last-child {
  display: none;
}

.brand-mark--light {
  background: #fff;
}

.brand-mark--light::before {
  color: var(--ink);
}

.brand-mark--light span:first-child {
  display: none;
}

.brand-mark--light span:last-child {
  display: none;
}

.store-shell {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(25, 37, 30, 0.06), 0 24px 80px rgba(23, 38, 30, 0.15);
  font-size: 16px;
  touch-action: pan-x pan-y;
}

.store-shell img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.mobile-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 20px 8px;
  background: rgba(246, 243, 236, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.3);
  transition: border-color 180ms ease, background 180ms ease;
}

.mobile-topbar.is-scrolled {
  background: rgba(246, 243, 236, 0.95);
  border-bottom-color: rgba(24, 35, 29, 0.07);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-word small {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.internal-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.internal-pill .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.1;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
  background: #fffdf8;
  transform: translateY(-1px);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #f9f4e8;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent),
    var(--forest);
  border: 2px solid rgba(255, 253, 248, 0.9);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(23, 60, 44, 0.18);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.store-main {
  padding: 4px 18px calc(40px + var(--safe-bottom));
}

.hero-card {
  position: relative;
  min-height: 252px;
  margin-top: 4px;
  overflow: hidden;
  color: #fffdf8;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.035), transparent 45%),
    radial-gradient(circle at 86% 18%, rgba(241, 215, 156, 0.16), transparent 16rem),
    var(--forest);
  border-radius: var(--radius-xl);
  box-shadow: 0 19px 42px rgba(23, 60, 44, 0.2);
  isolation: isolate;
}

.hero-card::before {
  position: absolute;
  z-index: -1;
  top: -82px;
  right: -91px;
  width: 250px;
  height: 250px;
  content: "";
  border: 1px solid rgba(241, 215, 156, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(241, 215, 156, 0.035),
    0 0 0 68px rgba(241, 215, 156, 0.02);
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  right: 22px;
  bottom: -67px;
  width: 200px;
  height: 130px;
  content: "";
  background: #aebbab;
  filter: blur(2px);
  border-radius: 50%;
  opacity: 0.1;
  transform: rotate(-8deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 68%;
  padding: 27px 0 25px 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: #ead7ac;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 17px;
  height: 1px;
  content: "";
  background: #ead7ac;
}

.hero-copy h1 {
  max-width: 230px;
  margin-bottom: 11px;
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 35px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.015em;
}

.hero-copy p {
  max-width: 220px;
  margin-bottom: 20px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 18px;
}

.hero-meta span {
  display: flex;
  flex-direction: column;
  color: rgba(255, 253, 248, 0.5);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.hero-meta strong {
  margin-bottom: 2px;
  color: #f5ead2;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: -64px;
  bottom: -33px;
  width: 280px;
  transform: rotate(-2deg);
}

.hero-visual::after {
  position: absolute;
  right: 19px;
  bottom: 20px;
  width: 172px;
  height: 30px;
  content: "";
  background: rgba(0, 0, 0, 0.28);
  filter: blur(17px);
  border-radius: 50%;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 18px 27px rgba(0, 0, 0, 0.2));
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--forest);
  background: #f0dca9;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: rotate(9deg);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin: 23px 0 27px;
}

.category-button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid rgba(24, 35, 29, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(37, 45, 38, 0.035);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.category-icon .icon {
  width: 22px;
  height: 22px;
}

.category-button:hover .category-icon {
  transform: translateY(-2px);
}

.category-button.is-active {
  color: var(--forest);
  font-weight: 650;
}

.category-button.is-active .category-icon {
  color: #f8f2e4;
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 8px 20px rgba(23, 60, 44, 0.2);
}

.category-button:last-child .category-icon {
  color: var(--gold);
}

.category-button:last-child.is-active .category-icon {
  color: #f5e3bc;
}

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

.section-title {
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.count-label {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 11px;
}

.count-label::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.search-panel {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.search-panel .icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search-panel input {
  width: 100%;
  height: 46px;
  padding: 0 43px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(24, 35, 29, 0.08);
  border-radius: 15px;
  outline: 0;
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-panel input::placeholder {
  color: #9a9e99;
}

.search-panel input:focus {
  background: #fffdf8;
  border-color: rgba(23, 60, 44, 0.26);
  box-shadow: 0 0 0 4px rgba(23, 60, 44, 0.05);
}

.search-clear {
  position: absolute;
  right: 11px;
  display: grid;
  width: 27px;
  height: 27px;
  padding: 0;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 50%;
}

.search-clear:hover {
  color: var(--ink);
  background: rgba(24, 35, 29, 0.06);
}

.search-clear .icon {
  position: static;
  width: 14px;
  height: 14px;
}

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

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(24, 35, 29, 0.075);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.product-card:hover {
  border-color: rgba(23, 60, 44, 0.16);
  box-shadow: 0 18px 36px rgba(35, 42, 35, 0.1);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 12%, rgba(255, 255, 255, 0.65), transparent 8rem),
    var(--paper-deep);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.product-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(22, 36, 28, 0.08);
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.favorite-button .icon {
  width: 15px;
  height: 15px;
}

.favorite-button.is-active {
  color: var(--red);
}

.favorite-button.is-active .icon {
  fill: currentColor;
}

.product-body {
  padding: 12px 13px 13px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.product-meta span:first-child {
  color: var(--forest-light);
  font-weight: 650;
}

.product-title {
  min-height: 42px;
  margin: 0 0 5px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-summary {
  display: -webkit-box;
  min-height: 32px;
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--font-display);
}

.price-line .currency {
  font-size: 11px;
  font-weight: 700;
}

.price-line .amount {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-line .retail {
  margin-left: 2px;
  color: #a2a5a1;
  font-family: var(--font-sans);
  font-size: 8px;
  text-decoration: line-through;
}

.reward-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.reward-chip {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  color: var(--forest);
  background: var(--sage-light);
  border-radius: 7px;
  font-size: 8px;
  white-space: nowrap;
}

.reward-chip--red {
  color: #a74338;
  background: var(--red-light);
}

.reward-chip .icon {
  width: 10px;
  height: 10px;
  stroke-width: 2;
}

.reward-chip b {
  font-size: 9px;
}

.results-empty {
  display: grid;
  min-height: 350px;
  padding: 32px 20px;
  place-items: center;
  text-align: center;
}

.results-empty img {
  width: min(230px, 75%);
  margin: 0 auto 5px;
}

.results-empty h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 20px;
}

.results-empty p {
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-size: 11px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  color: var(--forest);
  background: var(--sage-light);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.text-button .icon {
  width: 14px;
  height: 14px;
}

.confidential-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 25px;
  padding: 14px 15px;
  color: var(--ink-faint);
  background: rgba(232, 231, 222, 0.58);
  border: 1px solid rgba(24, 35, 29, 0.055);
  border-radius: 15px;
  font-size: 9px;
  line-height: 1.65;
}

.confidential-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--forest-light);
}

.confidential-note strong {
  color: var(--ink-soft);
  font-weight: 650;
}

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

.skeleton-card {
  height: 308px;
  overflow: hidden;
  background: #fffdf8;
  border-radius: var(--radius-lg);
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #e7e4dc;
}

.skeleton-block::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

.skeleton-card .skeleton-block:first-child {
  height: 55%;
}

.skeleton-card .skeleton-block:last-child {
  width: 68%;
  height: 12px;
  margin: 20px 14px;
  border-radius: 8px;
}

/* Detail screen */
.detail-shell {
  max-width: 540px;
}

.detail-topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, 760px);
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 18px 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.detail-topbar > * {
  pointer-events: auto;
}

.detail-back-button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.detail-back-button:active {
  background: rgba(255, 255, 255, 0.68);
  transform: scale(0.96);
}

.detail-security {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: var(--forest);
  background: rgba(255, 253, 248, 0.8);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(24, 35, 29, 0.08);
  backdrop-filter: blur(12px);
  font-size: 9px;
  font-weight: 650;
}

.detail-security .icon {
  width: 13px;
  height: 13px;
}

.detail-image {
  position: relative;
  aspect-ratio: 1.1 / 1;
  overflow: hidden;
  background: #d8d3c8;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  content: "";
  background: linear-gradient(transparent, rgba(246, 243, 236, 0.5));
  pointer-events: none;
}

.detail-image::before {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 24px;
  content: attr(data-watermark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.detail-badge {
  position: absolute;
  z-index: 2;
  right: 19px;
  bottom: 24px;
  padding: 7px 11px;
  color: var(--forest);
  background: rgba(247, 237, 213, 0.94);
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(24, 35, 29, 0.1);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-content {
  position: relative;
  z-index: 3;
  margin-top: -16px;
  padding: 0 18px calc(104px + var(--safe-bottom));
  background: var(--paper);
  border-radius: 24px 24px 0 0;
}

.detail-heading {
  padding: 25px 2px 17px;
}

.detail-category {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.detail-category::before {
  width: 18px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.detail-heading h1 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.detail-heading p {
  margin-bottom: 0;
  color: var(--ink-faint);
  font-size: 14px;
  line-height: 1.7;
}

.price-panel {
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(24, 35, 29, 0.07);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
}

.price-panel-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  color: var(--red);
  font-family: var(--font-display);
}

.detail-price span:first-child {
  margin-right: 2px;
  font-size: 15px;
  font-weight: 700;
}

.detail-price strong {
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.retail-block {
  padding-bottom: 4px;
  color: var(--ink-faint);
  text-align: right;
  font-size: 9px;
}

.retail-block s {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
}

.retail-block strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
}

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

.reward-panel-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: var(--sage-light);
  border-radius: 12px;
}

.reward-panel-item:last-child {
  background: var(--red-light);
}

.reward-panel-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest);
  background: #fff;
  border-radius: 9px;
}

.reward-panel-item:last-child .reward-panel-icon {
  color: var(--red);
}

.reward-panel-icon .icon {
  width: 14px;
  height: 14px;
}

.reward-panel-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.4;
}

.reward-panel-copy strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.detail-section {
  padding: 25px 2px 0;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.detail-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.detail-section-head span {
  color: var(--ink-faint);
  font-size: 11px;
}

.summary-card {
  padding: 15px 16px;
  color: var(--ink-soft);
  background: #ece9e0;
  border-radius: 15px;
  font-size: 10px;
  line-height: 1.8;
}

.benefit-list {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(24, 35, 29, 0.07);
  border-radius: 18px;
}

.benefit-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(24, 35, 29, 0.06);
}

.benefit-item:last-child {
  border-bottom: 0;
}

.benefit-index {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: var(--forest);
  background: var(--sage-light);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
}

.benefit-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
}

.benefit-name small {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 400;
}

.benefit-value {
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 10px;
}

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

.detail-info-item {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(24, 35, 29, 0.06);
  border-radius: 14px;
}

.detail-info-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.detail-info-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 8px;
}

.detail-info-item strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.note-item {
  display: flex;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.7;
}

.note-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  margin-top: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.delivery-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 13px 14px;
  background: var(--sage-light);
  border-radius: 14px;
  font-size: 9px;
}

.delivery-card .icon {
  color: var(--forest);
}

.delivery-card span {
  display: flex;
  flex-direction: column;
  color: var(--ink-faint);
}

.delivery-card strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.detail-bottom {
  position: fixed;
  z-index: 35;
  right: 0;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.7fr;
  gap: 9px;
  width: 100%;
  max-width: 540px;
  padding: 12px 18px calc(12px + var(--safe-bottom));
  background: rgba(246, 243, 236, 0.9);
  border-top: 1px solid rgba(24, 35, 29, 0.07);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  color: #fffdf8;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(23, 60, 44, 0.16);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--forest-light);
  box-shadow: 0 10px 23px rgba(23, 60, 44, 0.22);
  transform: translateY(-1px);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button--ghost {
  color: var(--ink);
  background: #fffdf8;
  border-color: rgba(24, 35, 29, 0.1);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--forest);
  background: var(--sage-light);
  border-color: rgba(23, 60, 44, 0.15);
  box-shadow: none;
}

.button--danger {
  color: var(--red);
  background: var(--red-light);
  border-color: transparent;
  box-shadow: none;
}

.button--soft {
  color: var(--forest);
  background: var(--sage-light);
  border-color: transparent;
  box-shadow: none;
}

.button--small {
  min-height: 35px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 10px;
}

/* Modal, dialog, toast */
.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: 20px;
  place-items: center;
  background: rgba(16, 28, 22, 0.5);
  backdrop-filter: blur(8px);
  animation: fade-in 160ms ease both;
}

.modal {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 23px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(9, 19, 13, 0.32);
  animation: modal-up 200ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.modal--wide {
  width: min(100%, 820px);
  padding: 0;
  background: #f8f7f2;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 33px;
  height: 33px;
  padding: 0;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(247, 245, 239, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.modal-close .icon {
  width: 16px;
  height: 16px;
}

.modal-kicker {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal h2 {
  max-width: calc(100% - 40px);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.modal > p {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.75;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.intent-summary {
  margin: 17px 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.intent-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.intent-summary div:last-child {
  border-bottom: 0;
}

.intent-summary span {
  color: var(--ink-faint);
}

.intent-summary strong {
  text-align: right;
  font-weight: 600;
}

.confidential-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  color: var(--ink-soft);
  background: var(--red-light);
  border-radius: 12px;
  font-size: 9px;
  line-height: 1.65;
}

.confidential-check .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--red);
}

.toast-root {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: calc(18px + var(--safe-bottom));
  left: 18px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  max-width: min(390px, 100%);
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  color: #fffdf8;
  background: rgba(23, 42, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(14, 25, 19, 0.23);
  backdrop-filter: blur(15px);
  font-size: 11px;
  animation: toast-in 220ms ease both;
}

.toast .icon {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
}

.toast.is-error .icon {
  color: #ffaea3;
}

.access-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(234, 223, 198, 0.9), transparent 23rem),
    var(--forest);
}

.access-card {
  width: min(100%, 430px);
  padding: 35px;
  text-align: center;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.access-card .brand-mark {
  margin: 0 auto 18px;
}

.access-card h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 27px;
}

.access-card p {
  margin-bottom: 22px;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.75;
}

.access-error {
  padding: 11px 13px;
  color: var(--red);
  background: var(--red-light);
  border-radius: 12px;
  font-size: 10px;
}

/* Admin */
.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 230px minmax(0, 1fr);
  color: var(--ink);
  background: #f1f2ee;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #f8f4e9;
  background:
    radial-gradient(circle at 20% 4%, rgba(241, 215, 156, 0.13), transparent 15rem),
    #142b21;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px 29px;
}

.admin-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.admin-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(248, 244, 233, 0.42);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav a,
.admin-nav button {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: rgba(248, 244, 233, 0.55);
  background: transparent;
  border-radius: 11px;
  font-size: 11px;
  text-align: left;
}

.admin-nav .is-active {
  color: #fff9ed;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav .icon {
  width: 17px;
  height: 17px;
}

.admin-nav-spacer {
  flex: 1;
}

.admin-sidebar-note {
  padding: 12px;
  color: rgba(248, 244, 233, 0.46);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 8px;
  line-height: 1.7;
}

.admin-sidebar-note strong {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: #e5cf9c;
  font-size: 9px;
}

.admin-sidebar-note .icon {
  width: 12px;
  height: 12px;
}

.admin-main {
  min-width: 0;
  padding: 0 30px 40px;
}

.admin-topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(24, 35, 29, 0.08);
}

.admin-mobile-brand {
  display: none;
}

.admin-mobile-back {
  display: none;
}

.admin-mobile-tabs {
  display: none;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-faint);
  font-size: 10px;
}

.admin-breadcrumb .icon {
  width: 13px;
  height: 13px;
}

.admin-breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-profile-copy {
  text-align: right;
}

.admin-profile-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.admin-profile-copy span {
  display: block;
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-profile .avatar {
  width: 36px;
  height: 36px;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 0 23px;
}

.admin-heading h1 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.admin-heading p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

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

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 23px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px 18px;
  background: #fbfbf8;
  border: 1px solid rgba(24, 35, 29, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(35, 42, 35, 0.025);
}

.stat-card::after {
  position: absolute;
  top: -27px;
  right: -21px;
  width: 73px;
  height: 73px;
  content: "";
  background: var(--sage-light);
  border-radius: 50%;
}

.stat-card:nth-child(3)::after {
  background: #f4ead4;
}

.stat-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--ink-faint);
  font-size: 9px;
}

.stat-label .icon {
  width: 13px;
  height: 13px;
}

.stat-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stat-value small {
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
}

.admin-panel {
  overflow: hidden;
  background: #fbfbf8;
  border: 1px solid rgba(24, 35, 29, 0.07);
  border-radius: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 17px;
  border-bottom: 1px solid rgba(24, 35, 29, 0.07);
}

.admin-filter-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #eceee9;
  border-radius: 10px;
}

.admin-filter-tabs button {
  min-height: 30px;
  padding: 5px 11px;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 8px;
  font-size: 9px;
}

.admin-filter-tabs button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(24, 35, 29, 0.06);
  font-weight: 600;
}

.admin-search {
  position: relative;
  width: min(250px, 35%);
}

.admin-search .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  transform: translateY(-50%);
}

.admin-search input {
  width: 100%;
  height: 35px;
  padding: 0 10px 0 32px;
  background: #f2f3ef;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: 0;
  font-size: 9px;
}

.admin-search input:focus {
  background: #fff;
  border-color: rgba(23, 60, 44, 0.2);
}

.admin-table-head,
.admin-row {
  display: grid;
  grid-template-columns: minmax(250px, 2.3fr) 0.9fr 0.9fr 0.8fr 0.8fr 72px;
  align-items: center;
  gap: 12px;
}

.admin-table-head {
  min-height: 38px;
  padding: 8px 17px;
  color: var(--ink-faint);
  background: rgba(239, 240, 235, 0.6);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.admin-row {
  min-height: 74px;
  padding: 10px 17px;
  border-top: 1px solid rgba(24, 35, 29, 0.055);
  transition: background 150ms ease;
}

.admin-row:hover {
  background: #f7f7f2;
}

.admin-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.admin-thumb {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--paper-deep);
  border-radius: 11px;
}

.admin-product-copy {
  min-width: 0;
}

.admin-product-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-copy span {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

.admin-cell {
  color: var(--ink-soft);
  font-size: 9px;
}

.admin-cell strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--forest);
  background: var(--sage-light);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  content: "";
  background: #4c8969;
  border-radius: 50%;
}

.status-pill.is-inactive {
  color: #857f74;
  background: #eeebe4;
}

.status-pill.is-inactive::before {
  background: #a9a49b;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.row-action {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 8px;
}

.row-action:hover {
  color: var(--forest);
  background: var(--sage-light);
}

.row-action .icon {
  width: 14px;
  height: 14px;
}

.admin-empty {
  padding: 65px 20px;
  color: var(--ink-faint);
  text-align: center;
  font-size: 10px;
}

.admin-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
}

.admin-mobile-list {
  display: none;
}

/* Admin form */
.form-modal-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(248, 247, 242, 0.94);
  border-bottom: 1px solid rgba(24, 35, 29, 0.08);
  backdrop-filter: blur(14px);
}

.form-modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.form-modal-header p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 8px;
}

.form-modal-body {
  padding: 22px 24px 25px;
}

.form-section {
  margin-bottom: 22px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.form-section-title::before {
  width: 3px;
  height: 12px;
  content: "";
  background: var(--gold);
  border-radius: 2px;
}

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

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

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

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 550;
}

.required {
  color: var(--red);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(24, 35, 29, 0.11);
  border-radius: 10px;
  outline: 0;
  background: #fffdf9;
  font-size: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input,
.form-field select {
  height: 39px;
  padding: 0 11px;
}

.form-field textarea {
  min-height: 75px;
  padding: 9px 11px;
  line-height: 1.65;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(23, 60, 44, 0.38);
  box-shadow: 0 0 0 3px rgba(23, 60, 44, 0.055);
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled,
.repeat-row input:disabled {
  color: var(--ink-faint);
  background: #f7f8fa;
  cursor: not-allowed;
}

.input-with-prefix {
  position: relative;
}

.input-with-prefix span {
  position: absolute;
  top: 50%;
  left: 11px;
  color: var(--ink-faint);
  font-size: 9px;
  transform: translateY(-50%);
}

.input-with-prefix input {
  padding-left: 26px;
}

.image-upload {
  position: relative;
  display: grid;
  min-height: 132px;
  overflow: hidden;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  background: #f2f1eb;
  border: 1px dashed rgba(24, 35, 29, 0.17);
  border-radius: 13px;
}

.image-upload-preview {
  display: grid;
  width: 170px;
  height: 108px;
  overflow: hidden;
  place-items: center;
  color: var(--ink-faint);
  background: #e9e7df;
  border-radius: 10px;
}

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

.image-upload-preview .icon {
  width: 29px;
  height: 29px;
}

.image-upload-copy {
  align-self: center;
}

.image-upload-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
}

.image-upload-copy p {
  margin-bottom: 10px;
  color: var(--ink-faint);
  font-size: 8px;
}

.image-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(24, 35, 29, 0.1);
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.upload-button .icon {
  width: 13px;
  height: 13px;
}

.repeat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.6fr 0.7fr 30px;
  gap: 7px;
  align-items: center;
}

.repeat-row--details {
  grid-template-columns: 0.7fr minmax(0, 1.7fr) 30px;
}

.repeat-row input {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  background: #fffdf9;
  border: 1px solid rgba(24, 35, 29, 0.1);
  border-radius: 8px;
  outline: 0;
  font-size: 9px;
}

.repeat-row input:focus {
  border-color: rgba(23, 60, 44, 0.35);
}

.remove-row {
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 7px;
}

.remove-row:hover {
  color: var(--red);
  background: var(--red-light);
}

.remove-row .icon {
  width: 14px;
  height: 14px;
}

.add-row-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 8px;
  color: var(--forest);
  background: var(--sage-light);
  border-radius: 7px;
  font-size: 8px;
}

.add-row-button .icon {
  width: 12px;
  height: 12px;
}

.form-footer {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 24px;
  background: rgba(245, 244, 239, 0.95);
  border-top: 1px solid rgba(24, 35, 29, 0.08);
  backdrop-filter: blur(14px);
}

.form-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 8px;
}

.form-footer-note .icon {
  width: 13px;
  height: 13px;
}

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

.form-error {
  display: none;
  margin-bottom: 14px;
  padding: 9px 11px;
  color: var(--red);
  background: var(--red-light);
  border-radius: 9px;
  font-size: 9px;
}

.form-error.is-visible {
  display: block;
}

/* Access / error states */
.error-page {
  display: grid;
  min-height: 100vh;
  padding: 30px;
  place-items: center;
}

.error-card {
  width: min(100%, 440px);
  padding: 35px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.error-card .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 15px;
  color: var(--gold);
}

.error-card h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 25px;
}

.error-card p {
  margin-bottom: 20px;
  color: var(--ink-faint);
  font-size: 11px;
}

/* Apple Store material library */
.store-shell {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 90px rgba(0, 0, 0, 0.13);
}

.mobile-topbar {
  height: 62px;
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.mobile-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.brand-lockup--store {
  min-width: 0;
  gap: 8px;
}

.brand-lockup--store .brand-word {
  min-width: 0;
}

.brand-lockup--store .brand-word strong {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-word small {
  color: #737378;
  letter-spacing: 0.12em;
}

.internal-pill {
  min-height: 27px;
  padding: 4px 9px;
  color: #5f6065;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  font-size: 11px;
}

.icon-button {
  width: 36px;
  height: 36px;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #4a4a4d, #1d1d1f);
  border-color: #fff;
}

.store-main {
  padding: 14px 20px calc(44px + var(--safe-bottom));
}

.store-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 29px 3px 26px;
}

.store-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.store-intro h1 {
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.store-intro p {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.intro-stats {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding-bottom: 3px;
}

.intro-stats span {
  display: flex;
  flex-direction: column;
  color: var(--ink-faint);
  font-size: 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.intro-stats strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.featured-block {
  margin: 0 0 20px;
}

.featured-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.featured-heading .store-kicker {
  margin-bottom: 3px;
}

.featured-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.featured-heading-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.featured-heading-controls > button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  color: #67676c;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
}

.featured-heading-controls .icon {
  width: 15px;
  height: 15px;
}

.featured-index {
  color: var(--ink-faint);
  font-size: 11px;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.featured-index b {
  color: var(--ink);
  font-size: 13px;
}

.featured-viewport {
  overflow: hidden;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.055);
}

.featured-track {
  display: flex;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.featured-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.featured-slide {
  position: relative;
  display: grid;
  min-height: 278px;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 43%);
  gap: 13px;
  overflow: hidden;
  padding: 13px;
  background:
    radial-gradient(circle at 96% 4%, rgba(0, 113, 227, 0.055), transparent 12rem),
    #fff;
  cursor: pointer;
  isolation: isolate;
  border-radius: 30px;
  transition: border-radius 300ms ease, background 300ms ease;
}

.featured-slide::before {
  display: none;
}

.featured-slide-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  width: auto;
  padding: 9px 2px 9px 9px;
}

.featured-media {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 32%, #fff 0%, transparent 68%),
    #fff;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.featured-media img {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.09));
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-slide:hover .featured-media img {
  transform: scale(1.018);
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: #4d4e52;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 650;
}

.featured-label .icon {
  width: 11px;
  height: 11px;
}

.featured-slide-copy h3 {
  max-width: 100%;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(21px, 5.4vw, 31px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.featured-slide-copy > p {
  display: -webkit-box;
  max-width: 230px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #69696e;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-includes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.featured-includes span {
  position: relative;
  overflow: hidden;
  padding-left: 9px;
  color: #67676c;
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-includes span::before {
  position: absolute;
  top: 5px;
  left: 0;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.featured-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.featured-prices span {
  color: var(--ink-faint);
  font-size: 10px;
}

.featured-prices b {
  margin-left: 3px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.featured-prices s {
  color: #8c8c91;
  font-size: 11px;
}

.featured-reward {
  display: flex;
  gap: 5px;
}

.featured-reward span {
  padding: 5px 8px;
  color: #3f4045;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 7px;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.featured-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding-top: 11px;
}

.featured-dots button {
  width: 5px;
  height: 5px;
  padding: 0;
  background: #c2c2c7;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease;
}

.featured-dots button.is-active {
  width: 18px;
  background: var(--ink);
}

.category-strip {
  margin: 18px 0 22px;
}

.category-icon {
  color: #5f6065;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.035);
}

.category-button.is-active .category-icon {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
}

.category-button:last-child .category-icon {
  color: var(--gold);
}

.category-button:last-child.is-active .category-icon {
  color: #fff;
}

.section-title {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.search-panel input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
  font-size: 14px;
}

.search-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 0 12px;
  padding: 8px 10px;
  color: #6e6e73;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  font-size: 9px;
}

.search-notice.has-offline {
  color: #7c4f00;
  background: #fff;
  border-color: rgba(185, 128, 0, 0.2);
}

.search-notice .icon {
  width: 13px;
  height: 13px;
}

.product-grid {
  gap: 8px;
}

.product-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.product-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.08);
}

.product-card:active {
  border-radius: 21px;
  transform: scale(0.985);
}

.product-card.is-offline {
  opacity: 0.8;
}

.product-card.is-offline .product-image img {
  filter: grayscale(0.72);
}

.product-image {
  background: #fff;
}

.product-badge {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-badge .icon {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.product-badge--offline {
  color: #fff;
  background: rgba(29, 29, 31, 0.85);
}

.product-body {
  padding: 11px 12px 12px;
}

.product-meta {
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0;
}

.product-meta span:first-child {
  overflow: hidden;
  color: var(--gold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta span:last-child {
  flex: 0 0 auto;
  color: var(--ink-faint);
}

.product-title {
  min-height: 41px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -0.015em;
}

.product-summary {
  margin-bottom: 6px;
}

.product-content-lines {
  display: flex;
  min-height: 55px;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
  overflow: hidden;
}

.product-content-lines > span {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding-left: 9px;
  color: #66666b;
  font-size: 8px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-content-lines > span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  content: "";
  background: #b8b8be;
  border-radius: 50%;
  transform: translateY(-50%);
}

.product-content-lines small {
  flex: 0 0 auto;
  color: #99999e;
  font-size: 7px;
}

.product-content-lines em {
  padding-left: 9px;
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
}

.current-price-label {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-faint);
  font-size: 10px;
}

.price-line {
  margin-bottom: 1px;
  color: var(--ink);
}

.price-line .amount {
  font-size: 24px;
  font-weight: 700;
}

.original-price {
  margin-bottom: 9px;
  color: #909095;
  font-size: 10px;
  text-decoration: line-through;
}

.reward-chip {
  color: #343438;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 10px;
}

.reward-chip--red {
  color: #a52430;
  background: #fff;
  border-color: rgba(215, 0, 21, 0.17);
}

.confidential-note {
  margin-top: 24px;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
}

/* Detail: store reference, not a buying flow */
.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.detail-badge .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.detail-badge--offline {
  color: #fff;
  background: rgba(29, 29, 31, 0.86);
}

.detail-content {
  padding-bottom: calc(92px + var(--safe-bottom));
}

.detail-heading h1 {
  letter-spacing: -0.035em;
}

.offline-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  color: #5f5140;
  background: #f2eee7;
  border-radius: 14px;
  font-size: 9px;
  line-height: 1.65;
}

.offline-banner .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.offline-banner span {
  display: flex;
  flex-direction: column;
}

.offline-banner strong {
  color: var(--ink);
  font-size: 10px;
}

.price-panel {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.detail-price-stack {
  display: flex;
  flex-direction: column;
}

.price-caption {
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-size: 11px;
}

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

.retail-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.retail-block > span {
  color: var(--ink-faint);
  font-size: 11px;
}

.retail-block strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  text-decoration: line-through;
}

.retail-block s {
  color: var(--red);
  font-size: 10px;
  text-decoration: none;
}

.reward-panel-item {
  background: #f5f5f7;
}

.reward-panel-item:last-child {
  background: #fff1f2;
}

.listing-time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding-top: 12px;
  color: var(--ink-faint);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 11px;
}

.listing-time .icon {
  width: 13px;
  height: 13px;
}

.benefit-item {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  padding-top: 14px;
  padding-bottom: 14px;
}

.benefit-name {
  font-size: 14px;
}

.benefit-name small {
  font-size: 11px;
}

.benefit-index {
  color: #fff;
  background: var(--ink);
}

.benefit-value {
  color: #77777c;
  font-size: 11px;
  white-space: nowrap;
}

.detail-info-grid {
  gap: 9px;
}

.detail-info-item {
  background: #fff;
  border-color: transparent;
}

.detail-info-item span {
  font-size: 10px;
}

.detail-info-item strong {
  font-size: 13px;
}

.vote-summary-section {
  padding-bottom: 12px;
}

.vote-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px;
  background: #fff;
  border-radius: 17px;
}

.vote-summary > div {
  display: flex;
  flex-direction: column;
}

.vote-summary strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.vote-summary span {
  color: var(--ink-faint);
  font-size: 11px;
}

.vote-summary p {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 10px;
  color: var(--ink-faint);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 8px;
  line-height: 1.6;
}

.detail-bottom--votes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.91);
}

.detail-shell {
  max-width: 760px;
}

.card-zoom-overlay {
  position: fixed;
  z-index: 90;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transform-origin: center;
}

.card-zoom-overlay img {
  width: 100%;
  height: calc(100% - 44px);
  object-fit: cover;
  object-position: center top;
}

.card-zoom-overlay span {
  display: flex;
  height: 44px;
  align-items: center;
  padding: 0 15px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-image,
.detail-content {
  animation: detail-reveal 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.detail-content {
  animation-delay: 40ms;
}

.detail-bottom {
  max-width: 760px;
}

.vote-button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #55555a;
  background: #f2f2f5;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.vote-button:hover {
  background: #e8e8ed;
}

.vote-button .icon {
  width: 16px;
  height: 16px;
}

.vote-button b {
  min-width: 18px;
  padding-left: 7px;
  color: var(--ink-faint);
  border-left: 1px solid rgba(0, 0, 0, 0.09);
  font-size: 10px;
}

.vote-button.is-active {
  color: #fff;
  background: var(--gold);
  transform: translateY(-1px);
}

.vote-button.is-active b {
  color: rgba(255, 255, 255, 0.8);
  border-left-color: rgba(255, 255, 255, 0.25);
}

.vote-button--down.is-active {
  background: var(--ink);
}

/* Admin additions for pinning and Apple visual system */
.admin-shell {
  background: #f5f5f7;
}

.admin-sidebar {
  background:
    radial-gradient(circle at 20% 4%, rgba(0, 113, 227, 0.16), transparent 15rem),
    #1d1d1f;
}

.admin-main {
  padding-right: 34px;
  padding-left: 34px;
}

.admin-topbar {
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.admin-heading p {
  font-size: 10px;
}

.stat-card,
.admin-panel {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.055);
}

.stat-card::after {
  background: #f0f0f2;
}

.stat-card:nth-child(3)::after {
  background: #e8f2ff;
}

.admin-filter-tabs {
  background: #f0f0f2;
}

.admin-row {
  grid-template-columns: minmax(250px, 2.3fr) 0.8fr 0.8fr 0.72fr 0.9fr 104px;
}

.admin-table-head {
  grid-template-columns: minmax(250px, 2.3fr) 0.8fr 0.8fr 0.72fr 0.9fr 104px;
}

.pin-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  padding: 2px 5px;
  color: #8a5b00;
  background: #fff4d8;
  border-radius: 5px;
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 650;
  vertical-align: 1px;
}

.pin-mark .icon {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.sheet-source-mark {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 2px 6px;
  color: #0958d9;
  background: #f0f6ff;
  border: 1px solid #d6e7ff;
  border-radius: var(--radius-tag);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 1px;
}

.row-action.is-pinned {
  color: #c58a00;
  background: #fff7e1;
}

.row-action.is-pinned .icon {
  fill: currentColor;
}

.row-action:disabled {
  color: #c7c7cc;
  background: transparent;
}

.mobile-likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-faint);
  font-size: 8px;
}

.mobile-likes .icon {
  width: 10px;
  height: 10px;
}

.pin-control {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #fffdf9;
  border: 1px solid rgba(24, 35, 29, 0.11);
  border-radius: 10px;
  cursor: pointer;
}

.pin-control > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pin-switch {
  position: relative;
  width: 31px;
  height: 18px;
  flex: 0 0 auto;
  background: #d2d2d7;
  border-radius: 999px;
  transition: background 160ms ease;
}

.pin-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.pin-control input:checked + .pin-switch {
  background: var(--gold);
}

.pin-control input:checked + .pin-switch::after {
  transform: translateX(13px);
}

.pin-control > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.pin-control strong {
  font-size: 9px;
  font-weight: 600;
}

.pin-control small {
  color: var(--ink-faint);
  font-size: 7px;
}

/* Data center and administrator management */
.admin-shell,
.admin-main {
  background: #fff;
}

.stat-card,
.admin-panel {
  background: #fff;
}

.analytics-periods {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.analytics-periods button {
  min-height: 27px;
  padding: 4px 10px;
  color: var(--ink-faint);
  background: transparent;
  border-radius: 7px;
  font-size: 9px;
}

.analytics-periods button.is-active {
  color: #fff;
  background: var(--ink);
}

.analytics-stats .stat-value {
  font-size: 24px;
}

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

.admin-heading-actions .button {
  white-space: nowrap;
}

.analytics-funnel {
  margin-bottom: 12px;
}

.funnel-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 17px;
}

.funnel-step {
  min-width: 0;
}

.funnel-stage {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  margin-bottom: 10px;
}

.funnel-stage > span {
  color: var(--ink-soft);
  font-size: 9px;
}

.funnel-stage b {
  margin: 4px 0 2px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.funnel-stage small {
  color: var(--ink-faint);
  font-size: 7px;
}

.funnel-bar {
  height: 5px;
  overflow: hidden;
  background: #f2f2f4;
  border-radius: 999px;
}

.funnel-bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  transition: width 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 12px;
}

.analytics-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 17px;
}

.analytics-ranking {
  grid-row: span 2;
}

.analytics-panel-head {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.065);
}

.analytics-panel-head h2 {
  margin: 0 0 2px;
  font-size: 14px;
}

.analytics-panel-head p,
.analytics-panel-head > span {
  margin: 0;
  color: var(--ink-faint);
  font-size: 8px;
}

.analytics-rank-row {
  display: grid;
  grid-template-columns: 24px 46px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.analytics-rank-row:last-child {
  border-bottom: 0;
}

.analytics-rank-number {
  color: #a2a2a7;
  font-size: 9px;
}

.analytics-rank-row > img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.analytics-rank-main {
  min-width: 0;
}

.analytics-rank-main strong {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar {
  height: 3px;
  overflow: hidden;
  background: #f0f0f2;
  border-radius: 999px;
}

.analytics-bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}

.analytics-rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 7px;
}

.analytics-rank-meta b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #8a5b00;
  font-weight: 600;
}

.analytics-rank-meta .icon {
  width: 9px;
  height: 9px;
}

.material-warning {
  display: inline-block;
  margin-top: 5px;
  color: #9a5d00;
  font-size: 7px;
}

.analytics-rank-metric {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.analytics-rank-metric strong {
  font-size: 15px;
}

.analytics-rank-metric span {
  color: var(--ink-faint);
  font-size: 7px;
}

.analytics-simple-list,
.analytics-category-list {
  padding: 5px 16px;
}

.analytics-simple-list > div,
.analytics-category-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  font-size: 9px;
}

.analytics-simple-list > div:last-child,
.analytics-category-list > div:last-child {
  border-bottom: 0;
}

.analytics-simple-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-simple-list b,
.analytics-category-list b {
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 500;
}

.analytics-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 15px 16px;
}

.analytics-search-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 9px;
}

.analytics-search-tags b {
  color: var(--gold);
  font-size: 8px;
}

.analytics-search-tags em {
  color: var(--red);
  font-size: 7px;
  font-style: normal;
}

.analytics-source-list,
.analytics-issue-list {
  padding: 5px 15px;
}

.analytics-source-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.analytics-source-list > div:last-child,
.analytics-issue-list > div:last-child {
  border-bottom: 0;
}

.analytics-source-list span {
  font-size: 9px;
}

.analytics-source-list small {
  color: var(--ink-faint);
  font-size: 7px;
}

.analytics-source-list b {
  color: var(--gold);
  font-size: 11px;
  text-align: right;
}

.analytics-issue-list > div {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.analytics-issue-list > div > span {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-issue-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.analytics-issue-list p b {
  padding: 3px 6px;
  color: #8a5b00;
  background: #fff8e8;
  border-radius: 5px;
  font-size: 7px;
  font-weight: 500;
}

.analytics-empty {
  padding: 26px 14px;
  color: var(--ink-faint);
  font-size: 9px;
  text-align: center;
}

.admin-users-head,
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 0.8fr 0.65fr 0.8fr 0.7fr;
  align-items: center;
  gap: 12px;
}

.admin-user-row {
  min-height: 72px;
  padding: 11px 17px;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
}

.admin-user-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.admin-user-profile .avatar {
  width: 37px;
  height: 37px;
}

.admin-user-profile > div {
  min-width: 0;
}

.admin-user-profile strong,
.admin-user-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-profile strong {
  font-size: 11px;
}

.admin-user-profile small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 8px;
}

.user-type,
.user-created {
  color: var(--ink-faint);
  font-size: 9px;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
}

.protected-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-faint);
  font-size: 8px;
}

.protected-label .icon {
  width: 11px;
  height: 11px;
}

.upload-status {
  display: block;
  margin: -3px 0 9px;
  color: #77777c;
  font-size: 8px;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes breathe {
  50% {
    transform: scale(0.95);
    opacity: 0.75;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-up {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes detail-reveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 760px) {
  .store-shell {
    margin-top: 22px;
    margin-bottom: 22px;
    min-height: calc(100vh - 44px);
    border-radius: 31px;
  }

  .detail-shell {
    min-height: calc(100vh - 44px);
  }

  .mobile-topbar {
    border-radius: 31px 31px 0 0;
  }

  .detail-bottom {
    bottom: 22px;
    border-radius: 0 0 31px 31px;
  }
}

@media (max-width: 1060px) {
  .admin-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .admin-main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .admin-table-head,
  .admin-row {
    grid-template-columns: minmax(220px, 2fr) 0.8fr 0.8fr 0.9fr 104px;
  }

  .admin-table-head > :nth-child(4),
  .admin-row > :nth-child(4) {
    display: none;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .analytics-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Unified enterprise UI rules: type, 8px spacing, restrained surfaces. */
h1,
h2,
h3,
h4,
label,
button,
input,
select,
textarea {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  text-align: left;
}

.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.mobile-topbar {
  height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  backdrop-filter: none;
}

.mobile-topbar.is-scrolled {
  background: #fff;
  border-bottom-color: var(--line);
}

.brand-lockup--store .brand-word strong {
  font-size: 18px;
  font-weight: 600;
}

.internal-pill {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  font-size: 14px;
  font-weight: 500;
}

.internal-pill .icon {
  width: 16px;
  height: 16px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  transition: background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  background: #f7f8fa;
  border-color: #e5e6eb;
  transform: none;
}

.avatar {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.store-main {
  padding: 16px 16px 32px;
}

.featured-block {
  margin: 0 0 32px;
}

.featured-heading {
  margin-bottom: 16px;
}

.featured-heading h2 {
  font-size: 24px;
  font-weight: 600;
}

.featured-heading-controls {
  gap: 8px;
}

.featured-heading-controls > button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  transition: background 180ms ease;
}

.featured-heading-controls > button:hover {
  background: #f7f8fa;
}

.featured-index {
  margin-right: 8px;
  font-size: 14px;
}

.featured-viewport {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}

.featured-track {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-slide {
  min-height: 320px;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 42%);
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-card);
}

.featured-media {
  min-height: 288px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.featured-media img {
  padding: 8px;
  filter: none;
}

.featured-slide-copy {
  padding: 8px;
}

.featured-label {
  gap: 4px;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  color: var(--ink-soft);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.featured-label .icon {
  width: 16px;
  height: 16px;
}

.featured-slide-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.featured-slide-copy > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.featured-includes {
  gap: 4px;
  margin-bottom: 16px;
}

.featured-includes span {
  padding-left: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.featured-includes span::before {
  top: 8px;
  width: 4px;
  height: 4px;
  background: #c9cdd4;
}

.featured-prices {
  gap: 8px;
  margin-bottom: 8px;
}

.featured-prices span,
.featured-prices s {
  font-size: 14px;
}

.featured-prices b {
  margin-left: 4px;
  font-size: 24px;
}

.featured-reward {
  gap: 8px;
}

.featured-reward span {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  color: var(--ink-soft);
  background: #fff;
  font-size: 14px;
  backdrop-filter: none;
}

.featured-dots {
  gap: 8px;
  padding-top: 12px;
}

.featured-dots button {
  width: 6px;
  height: 6px;
  background: #c9cdd4;
  border-radius: 999px;
  transition: width 200ms ease, background 200ms ease;
}

.featured-dots button.is-active {
  width: 20px;
  background: var(--ink);
}

.category-strip {
  gap: 8px;
  margin: 0 0 32px;
}

.category-button {
  gap: 8px;
  font-size: 14px;
}

.category-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  box-shadow: none;
}

.category-button.is-active .category-icon {
  border-color: var(--ink);
  box-shadow: none;
}

.section-heading {
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 0;
  font-size: 24px;
}

.count-label {
  padding-bottom: 0;
  font-size: 14px;
}

.count-label::after {
  display: none;
}

.search-panel {
  margin-bottom: 16px;
}

.search-panel input {
  height: 44px;
  padding: 0 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 16px;
}

.search-panel > .icon {
  left: 16px;
  width: 20px;
  height: 20px;
}

.search-clear {
  width: 32px;
  height: 32px;
}

.search-clear .icon {
  width: 16px;
  height: 16px;
}

.search-panel input:focus {
  border-color: #1f2329;
  box-shadow: 0 0 0 2px rgba(31, 35, 41, 0.08);
}

.product-grid {
  gap: 8px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: #dcdfe6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.product-card:active {
  border-radius: var(--radius-card);
  box-shadow: none;
  transform: scale(0.99);
}

.product-badge {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}

.product-body {
  padding: 16px;
}

.product-meta {
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.product-title {
  min-height: 48px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.current-price-label,
.original-price {
  font-size: 14px;
}

.price-line {
  margin-bottom: 4px;
}

.card-original {
  margin-left: 8px;
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  text-decoration: line-through;
}

.price-line .amount {
  font-size: 24px;
}

.original-price {
  margin-bottom: 12px;
}

.reward-line {
  gap: 8px;
}

.reward-chip {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: #fff;
  font-size: 14px;
}

.reward-chip .icon {
  width: 16px;
  height: 16px;
}

.product-card .reward-line {
  flex-wrap: nowrap;
  gap: 8px;
}

.product-card .reward-chip {
  padding: 4px 8px;
}

.product-card .reward-chip .icon {
  display: none;
}

.search-notice,
.confidential-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  box-shadow: none;
}

.confidential-note {
  margin-top: 32px;
  padding: 16px;
  font-size: 14px;
}

.detail-topbar {
  min-height: 64px;
  height: auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
}

.detail-security {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}

.detail-content {
  padding: 0 16px calc(96px + var(--safe-bottom));
}

.detail-heading {
  padding: 24px 0 16px;
}

.detail-category {
  margin-bottom: 8px;
  font-size: 14px;
}

.detail-heading h1 {
  margin-bottom: 8px;
  font-size: 28px;
}

.detail-heading p {
  color: var(--ink-soft);
  font-size: 16px;
}

.price-panel,
.benefit-list,
.detail-info-item,
.vote-summary,
.offline-banner {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}

.price-panel {
  padding: 24px;
}

.detail-price strong {
  font-size: 40px;
}

.price-caption,
.retail-block > span,
.retail-block s,
.listing-time,
.detail-section-head span {
  font-size: 14px;
}

.retail-block strong {
  font-size: 16px;
}

.reward-panel {
  gap: 8px;
}

.reward-panel-item {
  min-height: 56px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.reward-panel-item:last-child {
  background: #fff;
}

.reward-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-button);
}

.reward-panel-copy {
  color: var(--ink-soft);
  font-size: 14px;
}

.reward-panel-copy strong {
  font-size: 18px;
}

.listing-time {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-section {
  padding: 32px 0 0;
}

.detail-section-head {
  margin-bottom: 16px;
}

.detail-section-head h2 {
  font-size: 18px;
}

.benefit-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.benefit-index {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-button);
  font-size: 14px;
}

.benefit-name {
  font-size: 16px;
}

.benefit-name small,
.benefit-value,
.detail-info-item span,
.detail-info-item strong {
  font-size: 14px;
}

.detail-info-grid {
  gap: 8px;
}

.detail-info-item {
  padding: 16px;
}

.vote-summary {
  gap: 16px;
  padding: 24px;
}

.vote-summary strong {
  font-size: 24px;
  text-align: right;
}

.vote-summary span,
.vote-summary p {
  font-size: 14px;
}

.detail-bottom {
  gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  backdrop-filter: none;
}

.vote-button,
.button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 180ms ease, border-color 180ms ease;
}

.button {
  height: 44px;
  min-height: 44px;
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button:hover {
  color: #fff;
  background: #343a40;
  border-color: #343a40;
  box-shadow: none;
  transform: none;
}

.button--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button--ghost:hover {
  color: var(--ink);
  background: #f7f8fa;
  border-color: #e5e6eb;
}

.button--danger {
  color: var(--red);
  background: #fff;
  border-color: rgba(215, 0, 21, 0.24);
}

.button--danger:hover {
  color: var(--red);
  background: #fff1f2;
  border-color: rgba(215, 0, 21, 0.32);
}

.button--soft {
  color: var(--ink);
  background: #f7f8fa;
  border-color: var(--line);
}

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

.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.row-action:active:not(:disabled),
.vote-button:active:not(:disabled) {
  transform: scale(0.99);
}

.button:disabled,
.icon-button:disabled,
.row-action:disabled,
.vote-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vote-button {
  font-size: 16px;
}

.vote-summary-section {
  padding-bottom: 0;
}

.modal-overlay {
  padding: 24px;
  background: rgba(31, 35, 41, 0.45);
  backdrop-filter: blur(4px);
}

.modal {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-md);
  animation-duration: 200ms;
}

.modal--wide {
  border-radius: var(--radius-card);
  background: #fff;
}

.modal-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.modal h2 {
  font-size: 24px;
}

.modal p {
  color: var(--ink-soft);
  font-size: 16px;
}

.modal-actions {
  gap: 8px;
  margin-top: 24px;
}

.form-modal-header {
  min-height: 72px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.form-modal-header h2 {
  font-size: 24px;
}

.form-modal-header p {
  color: var(--ink-soft);
  font-size: 14px;
}

.form-modal-body {
  padding: 24px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  gap: 8px;
  margin-bottom: 16px;
  font-size: 18px;
}

.form-section-title::before {
  width: 4px;
  height: 18px;
  background: var(--ink);
  border-radius: 2px;
}

.form-grid {
  gap: 16px;
}

.form-field {
  gap: 8px;
}

.form-field label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 16px;
}

.form-field input,
.form-field select {
  height: 44px;
  padding: 0 12px;
}

.form-field textarea {
  min-height: 96px;
  padding: 12px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #1f2329;
  box-shadow: 0 0 0 2px rgba(31, 35, 41, 0.08);
}

.repeat-list,
.repeat-row {
  gap: 8px;
}

.repeat-row input {
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 14px;
}

.remove-row,
.row-action {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.add-row-button,
.upload-button,
.text-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 14px;
}

.image-upload {
  gap: 16px;
  padding: 16px;
  border: 1px dashed #dcdfe6;
  border-radius: var(--radius-card);
  background: #fff;
}

.image-upload-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.form-footer {
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  backdrop-filter: none;
}

.admin-shell,
.admin-main {
  background: #fff;
}

.admin-sidebar {
  padding: 24px 16px;
}

.admin-brand {
  gap: 8px;
  padding: 0 8px 32px;
}

.admin-brand strong {
  font-size: 18px;
}

.admin-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.admin-nav {
  gap: 4px;
}

.admin-nav a,
.admin-nav button {
  min-height: 44px;
  gap: 12px;
  padding: 0 16px;
  border-radius: var(--radius-button);
  font-size: 16px;
}

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

.admin-main {
  padding: 0 32px 32px;
}

.admin-topbar {
  min-height: 72px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-breadcrumb {
  gap: 8px;
  font-size: 14px;
}

.admin-profile {
  gap: 12px;
}

.admin-profile-copy strong {
  font-size: 16px;
}

.admin-profile-copy span {
  font-size: 14px;
}

.admin-heading {
  gap: 24px;
  padding: 32px 0 24px;
}

.admin-heading h1 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.25;
}

.admin-heading p {
  color: var(--ink-soft);
  font-size: 16px;
}

.admin-heading-actions {
  gap: 8px;
}

.admin-stats {
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card,
.admin-panel,
.analytics-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}

.stat-card {
  padding: 24px;
}

.stat-card::after {
  display: none;
}

.stat-label {
  gap: 8px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.stat-label .icon {
  width: 20px;
  height: 20px;
}

.stat-value {
  justify-content: flex-end;
  font-size: 28px;
  text-align: right;
}

.admin-toolbar {
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-filter-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.admin-filter-tabs button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  font-size: 14px;
  box-shadow: none;
}

.admin-filter-tabs button.is-active {
  box-shadow: none;
}

.admin-search input {
  height: 44px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 16px;
}

.admin-table-head {
  min-height: 48px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.admin-row {
  min-height: 80px;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.admin-row:hover {
  background: #f7f8fa;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}

.admin-product {
  gap: 12px;
}

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

.admin-product-copy span,
.admin-cell {
  color: var(--ink-soft);
  font-size: 14px;
}

.status-pill {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-size: 14px;
}

.row-actions {
  gap: 4px;
}

.admin-table-head,
.admin-row {
  grid-template-columns: minmax(240px, 2.4fr) 0.8fr 0.8fr 0.8fr 0.9fr 144px;
}

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

.analytics-panel-head {
  min-height: 72px;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.analytics-panel-head h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.analytics-panel-head p,
.analytics-panel-head > span {
  font-size: 14px;
}

.analytics-rank-row {
  grid-template-columns: 32px 48px minmax(0, 1fr) 64px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.analytics-rank-row > img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}

.analytics-rank-number {
  color: var(--ink-faint);
  font-size: 14px;
  text-align: right;
}

.analytics-rank-main strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.analytics-bar {
  height: 4px;
  background: #f2f3f5;
  border-radius: 999px;
}

.analytics-bar i {
  background: #1f2329;
}

.analytics-rank-meta {
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
}

.analytics-rank-meta b,
.analytics-rank-metric {
  text-align: right;
}

.analytics-rank-metric strong {
  font-size: 20px;
}

.analytics-rank-metric span {
  font-size: 14px;
}

.analytics-simple-list,
.analytics-category-list {
  padding: 8px 24px;
}

.analytics-simple-list > div,
.analytics-category-list > div {
  min-height: 48px;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.analytics-simple-list b,
.analytics-category-list b {
  font-size: 14px;
  text-align: right;
}

.analytics-search-tags {
  gap: 8px;
  padding: 16px 24px;
}

.analytics-search-tags > span {
  min-height: 32px;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: #fff;
  font-size: 14px;
}

.analytics-search-tags b,
.analytics-search-tags em {
  font-size: 14px;
  text-align: right;
}

.funnel-list {
  gap: 16px;
  padding: 24px;
}

.funnel-stage {
  min-height: 72px;
  margin-bottom: 8px;
}

.funnel-stage > span,
.funnel-stage small {
  font-size: 14px;
}

.funnel-stage b {
  margin: 4px 0;
  font-size: 28px;
  text-align: right;
}

.funnel-bar {
  height: 4px;
  background: #f2f3f5;
}

.funnel-bar i {
  background: #1f2329;
}

.analytics-source-list,
.analytics-issue-list {
  padding: 8px 24px;
}

.analytics-source-list > div {
  min-height: 48px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-source-list span,
.analytics-issue-list > div > span {
  font-size: 16px;
}

.analytics-source-list small {
  font-size: 14px;
}

.analytics-source-list b {
  color: var(--ink);
  font-size: 16px;
  text-align: right;
}

.analytics-issue-list > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.analytics-issue-list p {
  gap: 8px;
}

.analytics-issue-list p b,
.material-warning {
  padding: 4px 8px;
  border-radius: var(--radius-tag);
  font-size: 14px;
}

.analytics-empty {
  padding: 32px 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

.smartsheet-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid #ffe2a8;
  border-radius: var(--radius-card);
  font-size: 16px;
}

.smartsheet-banner .icon {
  color: #9a5d00;
}

.smartsheet-state {
  font-size: 18px;
  font-weight: 600;
}

.smartsheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.smartsheet-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.smartsheet-result-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}

.smartsheet-result-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.smartsheet-result-grid strong {
  display: block;
  font-size: 24px;
  text-align: right;
}

.smartsheet-issues {
  padding: 8px 24px;
}

.smartsheet-issues > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.smartsheet-issues > div:last-child {
  border-bottom: 0;
}

.smartsheet-issues > div > span {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.smartsheet-issues p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.smartsheet-issues p b {
  padding: 4px 8px;
  color: #9a5d00;
  background: #fff8e8;
  border-radius: var(--radius-tag);
  font-size: 14px;
  font-weight: 500;
}

.smartsheet-fields {
  padding: 8px 24px;
}

.smartsheet-fields > div {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.smartsheet-fields span {
  color: var(--ink-soft);
  font-size: 16px;
}

.smartsheet-fields strong {
  font-size: 16px;
  font-weight: 500;
  text-align: right;
}

.smartsheet-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 24px 24px;
  padding: 16px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  font-size: 14px;
}

.smartsheet-note .icon {
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-form-body {
  padding: 24px;
}

.settings-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.settings-hint .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.settings-actions {
  position: sticky;
  z-index: 5;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.settings-actions > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.settings-actions > div {
  display: flex;
  gap: 8px;
}

.settings-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.settings-category-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}

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

.required-option {
  display: grid;
  min-height: 48px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
}

.required-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.required-option span {
  font-size: 16px;
}

.required-option small {
  color: var(--ink-faint);
  font-size: 12px;
}

.analytics-periods {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
}

.analytics-periods button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  font-size: 14px;
}

.admin-mobile-tabs {
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.admin-mobile-tabs a {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  font-size: 14px;
}

.admin-users-head,
.admin-user-row {
  gap: 16px;
}

.admin-user-row {
  min-height: 80px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.admin-user-profile strong,
.user-type,
.user-created {
  font-size: 14px;
}

.admin-user-profile small {
  font-size: 12px;
}

.protected-label {
  gap: 8px;
  font-size: 14px;
}

.toast {
  padding: 12px 16px;
  border: 1px solid #343a40;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-md);
  font-size: 14px;
}

.card-zoom-overlay {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.detail-image,
.detail-content {
  animation-duration: 220ms;
}

@media (max-width: 430px) {
  .store-main {
    padding: 16px 16px 32px;
  }

  .featured-slide {
    min-height: 320px;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 40%);
    gap: 12px;
    padding: 16px;
  }

  .featured-slide-copy {
    padding: 4px;
  }

  .featured-media {
    min-height: 288px;
    border-radius: var(--radius-button);
    box-shadow: none;
    border-radius: var(--radius-button);
    box-shadow: none;
  }

  .featured-slide-copy h3 {
    font-size: 24px;
  }

  .featured-slide-copy > p {
    font-size: 16px;
  }

  .featured-includes span,
  .reward-chip,
  .featured-reward span {
    font-size: 14px;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-meta {
    font-size: 12px;
  }

  .admin-main {
    padding: 0 16px 32px;
  }

  .admin-heading {
    gap: 16px;
    padding: 24px 0 16px;
  }

  .admin-heading h1 {
    font-size: 24px;
  }

  .admin-heading p {
    font-size: 16px;
  }

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

  .analytics-rank-row {
    grid-template-columns: 24px 48px minmax(0, 1fr) 56px;
    gap: 8px;
    padding: 16px;
  }

  .analytics-panel-head {
    min-height: 64px;
    padding: 16px;
  }

  .analytics-simple-list,
  .analytics-category-list,
  .analytics-source-list,
  .analytics-issue-list {
    padding-right: 16px;
    padding-left: 16px;
  }

  .funnel-list {
    padding: 16px;
  }

  .admin-user-row {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .category-strip {
    gap: 4px;
  }

  .category-button {
    gap: 4px;
  }

.category-icon {
    width: 40px;
    height: 40px;
  }

  .store-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .featured-slide {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 38%);
    padding: 12px;
  }

  .featured-media {
    min-height: 288px;
    border-radius: var(--radius-button);
    box-shadow: none;
    border-radius: var(--radius-button);
  box-shadow: none;
}

.category-icon .icon {
  width: 20px;
  height: 20px;
}
}

@media (max-width: 820px) {
  body {
    background: var(--paper);
  }

  .admin-shell {
    display: block;
    background: #f2f3ef;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding: 0 16px 30px;
  }

  .admin-topbar {
    min-height: 70px;
  }

  .admin-mobile-tabs {
    display: flex;
    gap: 5px;
    padding: 8px 0 11px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }

  .admin-mobile-tabs a {
    min-height: 31px;
    padding: 6px 13px;
    color: var(--ink-faint);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 999px;
    font-size: 9px;
  }

  .admin-mobile-tabs a.is-active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
  }

  .admin-mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .admin-mobile-back {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .admin-mobile-back .icon {
    width: 20px;
    height: 20px;
  }

  .admin-mobile-back:active {
    background: #f5f5f7;
  }

  .admin-breadcrumb {
    display: none;
  }

  .admin-heading {
    align-items: flex-start;
    padding-top: 22px;
  }

  .admin-heading h1 {
    font-size: 25px;
  }

  .admin-heading-actions .button--ghost {
    display: none;
  }

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

  .admin-stats .stat-card:last-child {
    display: none;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-value {
    font-size: 23px;
  }

  .admin-table-head,
  .admin-panel > .admin-row {
    display: none;
  }

  .admin-toolbar {
    flex-wrap: wrap;
    padding: 11px;
  }

  .admin-search {
    width: 100%;
    order: 2;
  }

  .admin-mobile-list {
    display: flex;
    flex-direction: column;
  }

  .admin-mobile-card {
    display: grid;
    grid-template-columns: 67px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px;
    border-top: 1px solid rgba(24, 35, 29, 0.065);
  }

  .admin-mobile-card .admin-thumb {
    width: 67px;
    height: 67px;
    border-radius: 12px;
  }

  .admin-mobile-card-main {
    min-width: 0;
  }

  .admin-mobile-card h3 {
    margin: 0 0 4px;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-card p {
    margin: 0 0 7px;
    color: var(--ink-faint);
    font-size: 8px;
  }

  .admin-mobile-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .admin-mobile-card-meta strong {
    color: var(--red);
    font-family: var(--font-display);
    font-size: 12px;
  }

  .admin-mobile-card .row-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal--wide {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .form-modal-header {
    padding-right: 17px;
    padding-left: 17px;
  }

  .form-modal-body {
    padding: 18px 16px 20px;
  }

  .form-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 560px) {
  .modal {
    width: 100%;
    padding: 21px;
  }

  .modal--wide {
    padding: 0;
  }

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

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

  .form-section .form-grid--3 .form-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .store-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-topbar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .internal-pill {
    padding-right: 7px;
    padding-left: 7px;
  }

  .hero-copy {
    padding-left: 20px;
  }

  .hero-visual {
    right: -87px;
  }

  .category-strip {
    gap: 0;
  }

  .category-icon {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }

  .category-button {
    font-size: 9px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-body {
    padding-right: 10px;
    padding-left: 10px;
  }

  .product-title {
    font-size: 14px;
  }

  .reward-line {
    gap: 3px;
  }

.reward-chip {
    padding-right: 4px;
    padding-left: 4px;
    letter-spacing: -0.02em;
  }

  .detail-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail-bottom {
    padding-right: 14px;
    padding-left: 14px;
  }

  .admin-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-heading-actions .button {
    padding: 9px 12px;
    font-size: 10px;
  }

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

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

  .image-upload {
    grid-template-columns: 1fr;
  }

  .image-upload-preview {
    width: 100%;
    height: 150px;
  }

  .repeat-row {
    grid-template-columns: minmax(0, 1.35fr) 0.55fr 0.65fr 27px;
    gap: 4px;
  }

  .form-footer-note {
    display: none;
  }

  .form-footer-actions {
    width: 100%;
  }

  .form-footer-actions .button {
    flex: 1;
  }
}

@media (min-width: 600px) {
  .store-main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .featured-slide {
    min-height: 318px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 44%);
    gap: 18px;
    padding: 15px;
  }

  .featured-slide-copy {
    width: auto;
    padding-left: 14px;
  }

  .featured-media {
    min-height: 288px;
    border-radius: 24px;
  }

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

  .product-card .product-title {
    font-size: 16px;
  }

  .detail-content {
    padding-right: 28px;
    padding-left: 28px;
  }
}

@media (max-width: 430px) {
  .product-title {
    font-size: 16px;
  }

  .store-intro {
    align-items: flex-start;
    padding-top: 25px;
  }

  .store-intro h1 {
    font-size: 36px;
  }

  .intro-stats {
    gap: 13px;
  }

  .intro-stats strong {
    font-size: 21px;
  }

  .featured-slide {
    min-height: 258px;
    grid-template-columns: minmax(0, 1fr) minmax(105px, 43%);
    gap: 9px;
    padding: 10px;
  }

  .featured-slide-copy {
    width: auto;
    padding: 6px 1px 6px 6px;
  }

  .featured-media {
    min-height: 238px;
    border-radius: 19px;
  }

  .featured-slide-copy h3 {
    font-size: 21px;
  }

  .featured-slide-copy > p {
    max-width: 100%;
    -webkit-line-clamp: 2;
  }

  .featured-prices b {
    font-size: 21px;
  }

  .product-grid {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .internal-pill {
    display: none;
  }

  .store-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-lockup--store .brand-word strong {
    font-size: 14px;
  }

  .brand-lockup--store .brand-word small {
    display: none;
  }

  .store-intro h1 {
    font-size: 32px;
  }

  .store-intro p {
    font-size: 10px;
  }

  .intro-stats {
    gap: 8px;
  }

  .intro-stats strong {
    font-size: 19px;
  }

  .featured-slide {
    min-height: 248px;
    grid-template-columns: minmax(0, 1fr) minmax(96px, 42%);
    padding: 8px;
  }

  .featured-slide-copy {
    width: auto;
    padding-left: 4px;
  }

  .featured-media {
    min-height: 232px;
    border-radius: 18px;
  }

  .featured-slide-copy h3 {
    font-size: 21px;
  }

  .featured-slide-copy > p {
    max-width: 100%;
    font-size: 9px;
  }

  .featured-reward span {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 7px;
  }

  .product-body {
    padding-right: 10px;
    padding-left: 10px;
  }

  .product-title {
    font-size: 14px;
  }

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

  .benefit-value {
    grid-column: 2;
    margin-top: -5px;
  }
}

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

  .smartsheet-layout {
    grid-template-columns: 1fr;
  }

  .smartsheet-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .smartsheet-issues,
  .smartsheet-fields {
    padding-right: 16px;
    padding-left: 16px;
  }

  .smartsheet-note {
    margin: 16px;
  }

  .settings-form-body,
  .settings-field-grid {
    padding: 16px;
  }

  .settings-field-grid {
    grid-template-columns: 1fr;
  }

  .settings-category-list,
  .settings-required-grid {
    padding: 16px;
  }

  .settings-category-row,
  .settings-required-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .settings-actions > div {
    justify-content: flex-end;
  }

  .analytics-funnel .funnel-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .funnel-stage {
    min-height: auto;
    margin-bottom: 4px;
  }

  .funnel-stage b {
    font-size: 19px;
  }

  .funnel-stage small {
    margin-bottom: 4px;
  }

  .analytics-ranking {
    grid-row: auto;
  }

  .analytics-rank-row {
    grid-template-columns: 24px 48px minmax(0, 1fr) 56px;
    gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .analytics-rank-row > img {
    width: 48px;
    height: 48px;
  }

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

  .analytics-stats .stat-card:last-child {
    display: block;
  }

  .admin-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .admin-users-head {
    display: none;
  }

  .admin-mobile-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .admin-mobile-card .admin-thumb {
    width: 64px;
    height: 64px;
  }

  .admin-mobile-card h3 {
    font-size: 16px;
  }

  .admin-mobile-card p {
    font-size: 14px;
  }

  .admin-mobile-card .row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .admin-user-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 16px;
  }

  .admin-user-profile {
    grid-column: 1;
    grid-row: 1;
  }

  .user-type {
    grid-column: 1;
    grid-row: 2;
    padding-left: 48px;
  }

  .admin-user-row > .status-pill {
    grid-column: 2;
    grid-row: 1;
  }

  .user-created {
    display: none;
  }

  .user-actions {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .admin-shell {
    background: #fff;
  }

  .admin-main {
    padding: 0 16px 32px;
  }

  .admin-topbar {
    min-height: 72px;
  }

  .admin-mobile-tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-mobile-tabs a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
  }

  .admin-mobile-tabs a.is-active {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
  }

  .admin-heading {
    padding: 24px 0 16px;
  }

  .admin-heading h1 {
    font-size: 24px;
  }

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

  .admin-stats .stat-card:last-child,
  .analytics-stats .stat-card:last-child {
    display: block;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .admin-toolbar {
    padding: 16px;
  }

  .admin-mobile-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .form-modal-header {
    padding: 16px;
  }

  .form-modal-body {
    padding: 16px;
  }

  .form-footer {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .admin-profile-copy {
    display: none;
  }

  .modal {
    padding: 24px;
    border-radius: var(--radius-card);
  }
}

@media (max-width: 430px) {
  .mobile-topbar {
    padding: 12px 16px;
  }

  .internal-pill {
    gap: 8px;
    padding: 4px 8px;
  }

  .category-button {
    gap: 8px;
    font-size: 14px;
  }

  .category-strip {
    gap: 8px;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-button);
  }

  .store-main {
    padding: 16px 16px 32px;
  }

  .detail-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .detail-bottom {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    font-size: 16px;
  }

  .admin-filter-tabs button,
  .admin-filter-tabs button.is-active {
    box-shadow: none;
  }

  .featured-slide {
    min-height: 320px;
    grid-template-columns: minmax(0, 1fr) minmax(112px, 40%);
    gap: 12px;
    padding: 16px;
  }

  .featured-slide-copy {
    padding: 4px;
  }

  .featured-slide-copy h3 {
    font-size: 24px;
  }

  .featured-slide-copy > p {
    font-size: 16px;
  }

  .featured-includes span,
  .featured-reward span,
  .featured-prices span,
  .featured-prices s {
    font-size: 14px;
  }

  .featured-media {
    min-height: 288px;
    border-radius: var(--radius-button);
    box-shadow: none;
  }

  .featured-reward {
    gap: 8px;
  }

  .featured-reward span,
  .reward-chip {
    padding: 4px 8px;
  }
}

@media (max-width: 360px) {
  .category-strip {
    gap: 4px;
  }

  .category-button {
    gap: 4px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .store-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    font-size: 16px;
  }

  .benefit-value {
    margin-top: 0;
  }

  .featured-slide {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 38%);
    gap: 8px;
    padding: 16px;
  }

  .featured-media {
    min-height: 288px;
    border-radius: var(--radius-button);
    box-shadow: none;
  }
}

/* Featured product uses a centered 4:5 editorial card. */
.featured-viewport {
  width: min(80vw, 560px);
  aspect-ratio: 4 / 5;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.featured-track {
  height: 100%;
}

.featured-slide {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 55% 45%;
  gap: 0;
  padding: 0;
  border-radius: var(--radius-card);
  background: #fff;
}

.featured-media {
  position: relative;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(221, 235, 250, 0.95), transparent 43%),
    radial-gradient(circle at 84% 16%, rgba(231, 225, 247, 0.88), transparent 46%),
    radial-gradient(circle at 76% 84%, rgba(251, 230, 216, 0.82), transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(223, 241, 230, 0.9), transparent 45%),
    #fff;
  box-shadow: none;
  isolation: isolate;
}

.featured-media::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(190, 220, 250, 0.78), transparent 44%),
    radial-gradient(circle at 84% 20%, rgba(215, 202, 248, 0.72), transparent 46%),
    radial-gradient(circle at 78% 82%, rgba(251, 207, 184, 0.62), transparent 45%),
    radial-gradient(circle at 20% 82%, rgba(196, 233, 211, 0.68), transparent 44%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
  pointer-events: none;
}

.featured-media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
}

.featured-media .featured-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.featured-slide-copy {
  grid-row: 2;
  justify-content: center;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.featured-slide-copy h3 {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: clamp(20px, 5.5vw, 25px);
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-slide-copy > p,
.featured-includes {
  display: none;
}

.featured-prices {
  margin-bottom: 12px;
}

.featured-reward {
  margin-top: auto;
}

@media (max-width: 360px) {
  .featured-viewport {
    width: 86vw;
  }

  .featured-slide {
    grid-template-rows: 54% 46%;
  }

  .featured-slide-copy {
    padding: 12px 16px 16px;
  }
}

/* Diffuse light system for the full store and every product card. */
.store-shell {
  background:
    radial-gradient(ellipse at 8% 5%, rgba(221, 235, 250, 0.72), transparent 34%),
    radial-gradient(ellipse at 92% 12%, rgba(231, 225, 247, 0.62), transparent 32%),
    radial-gradient(ellipse at 88% 52%, rgba(251, 230, 216, 0.5), transparent 35%),
    radial-gradient(ellipse at 12% 82%, rgba(223, 241, 230, 0.58), transparent 36%),
    #fff;
}

.product-card,
.featured-slide {
  --mesh-bg:
    radial-gradient(circle at 16% 18%, rgba(221, 235, 250, 0.95), transparent 43%),
    radial-gradient(circle at 84% 16%, rgba(231, 225, 247, 0.88), transparent 46%),
    radial-gradient(circle at 76% 84%, rgba(251, 230, 216, 0.82), transparent 48%),
    radial-gradient(circle at 18% 82%, rgba(223, 241, 230, 0.9), transparent 45%),
    #fff;
}

.product-card--iphone,
.featured-slide--iphone {
  --mesh-bg:
    radial-gradient(circle at 14% 18%, rgba(207, 228, 252, 0.94), transparent 42%),
    radial-gradient(circle at 84% 14%, rgba(225, 216, 249, 0.82), transparent 46%),
    radial-gradient(circle at 80% 84%, rgba(251, 224, 207, 0.7), transparent 47%),
    radial-gradient(circle at 18% 84%, rgba(217, 240, 227, 0.8), transparent 45%),
    #fff;
}

.product-card--ipad,
.featured-slide--ipad {
  --mesh-bg:
    radial-gradient(circle at 16% 18%, rgba(216, 241, 228, 0.9), transparent 43%),
    radial-gradient(circle at 82% 16%, rgba(211, 232, 251, 0.84), transparent 47%),
    radial-gradient(circle at 78% 82%, rgba(249, 235, 207, 0.68), transparent 46%),
    radial-gradient(circle at 18% 84%, rgba(232, 222, 248, 0.72), transparent 45%),
    #fff;
}

.product-card--watch,
.featured-slide--watch {
  --mesh-bg:
    radial-gradient(circle at 16% 18%, rgba(250, 224, 209, 0.9), transparent 43%),
    radial-gradient(circle at 84% 16%, rgba(228, 222, 248, 0.8), transparent 46%),
    radial-gradient(circle at 78% 82%, rgba(219, 236, 251, 0.76), transparent 46%),
    radial-gradient(circle at 18% 84%, rgba(241, 234, 211, 0.75), transparent 45%),
    #fff;
}

.product-card--mac,
.featured-slide--mac {
  --mesh-bg:
    radial-gradient(circle at 16% 18%, rgba(213, 232, 251, 0.92), transparent 43%),
    radial-gradient(circle at 82% 16%, rgba(231, 225, 247, 0.8), transparent 46%),
    radial-gradient(circle at 80% 82%, rgba(223, 241, 231, 0.76), transparent 46%),
    radial-gradient(circle at 18% 84%, rgba(246, 231, 218, 0.68), transparent 45%),
    #fff;
}

.product-card--member,
.featured-slide--member {
  --mesh-bg:
    radial-gradient(circle at 16% 18%, rgba(249, 230, 202, 0.9), transparent 43%),
    radial-gradient(circle at 84% 16%, rgba(246, 219, 225, 0.78), transparent 46%),
    radial-gradient(circle at 78% 82%, rgba(217, 235, 251, 0.76), transparent 46%),
    radial-gradient(circle at 18% 84%, rgba(232, 224, 248, 0.72), transparent 45%),
    #fff;
}

.product-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.product-image {
  background: var(--mesh-bg);
}

.product-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #fff 36%);
}

.featured-slide {
  grid-template-rows: 62% 38%;
}

.featured-media {
  background: var(--mesh-bg);
}

.featured-media::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2));
  mix-blend-mode: normal;
  opacity: 1;
}

.featured-media img {
  padding: 8px;
  object-fit: contain;
}

.featured-slide-copy {
  padding: 12px 16px 14px;
}

.featured-slide-copy h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.featured-prices {
  gap: 6px;
  margin-bottom: 8px;
}

.featured-prices span,
.featured-prices s {
  font-size: 12px;
}

.featured-prices b {
  font-size: 22px;
}

.featured-reward {
  gap: 6px;
}

.featured-reward span {
  min-height: 28px;
  font-size: 12px;
}

/* Editorial image-only hero: the artwork itself fills the full card. */
.featured-viewport {
  width: min(80vw, 560px);
  aspect-ratio: 4 / 5;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.featured-slide {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.featured-artwork {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
}

.featured-artwork-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.product-card .product-meta {
  justify-content: flex-start;
}

.product-card .product-meta > span {
  color: var(--ink-faint);
  font-size: 12px;
}

.product-card .product-meta > span:last-child {
  flex: 0 1 auto;
}

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

@media print {
  body {
    background: #fff;
  }

  .mobile-topbar,
  .detail-bottom,
  .icon-button,
  .favorite-button,
  .search-panel,
  .confidential-note,
  .admin-heading-actions,
  .row-actions {
    display: none !important;
  }

  .store-shell,
  .detail-shell {
    max-width: 100%;
    box-shadow: none;
  }
}
