:root {
  color-scheme: light;
  --color-bg: #e9e7e1;
  --color-surface: #f6f5f1;
  --color-surface-elevated: #fffdf8;
  --color-panel-dark: #222321;
  --color-text: #171717;
  --color-text-muted: #6f6f69;
  --color-border: #c9c7bf;
  --color-brand: #e60012;
  --color-brand-muted: #f2d6d6;
  --color-led: #79c267;
  --color-warning: #d98b2b;
  --color-error: #c83d32;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-card: 18px;
  --radius-button: 12px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --shadow-panel: 0 12px 30px rgba(34, 35, 33, 0.12);
  --shadow-cartridge: 0 16px 28px rgba(34, 35, 33, 0.2);
  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", sans-serif;
  --font-system: "SF Mono", "IBM Plex Mono", "JetBrains Mono", monospace;
}

html[data-module="uniqlo"] {
  --module-accent: var(--color-brand);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.42), transparent 28%),
    var(--color-bg);
  color: var(--color-text);
  font: 15px/22px var(--font-ui);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(0deg, rgba(34, 35, 33, 0.032) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(34, 35, 33, 0.024) 0 1px, transparent 1px 24px);
}

body::after {
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

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

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--color-panel-dark);
  color: #fff;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-mark {
  display: grid;
  justify-items: center;
  gap: 6px;
  animation: systemWake 900ms ease both;
}

.splash-mark strong {
  font-size: 28px;
  line-height: 32px;
}

.splash-mark small,
.splash-mark em,
.system-label,
.system-status,
.hero-kicker,
.product-kicker,
.module-slot,
.module-status,
.search-ready {
  font: 700 10px/14px var(--font-system);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splash-mark small,
.splash-mark em,
.system-label,
.system-status,
.module-status,
.search-ready {
  color: var(--color-text-muted);
}

.splash-mark em {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--app-viewport-height, 100dvh);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 16px calc(100px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: max(env(safe-area-inset-top), 10px) 10px calc(84px + env(safe-area-inset-bottom));
}

.console-frame {
  position: relative;
  min-height: calc(var(--app-viewport-height, 100dvh) - 20px);
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(111, 111, 105, 0.42);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 160px),
    var(--color-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-panel);
  overflow: hidden;
}

.console-frame::before {
  content: "REV 1.02 / BUILD 2607 / PORT 01";
  position: absolute;
  top: 76px;
  right: 18px;
  color: rgba(23, 23, 23, 0.22);
  font: 700 9px/12px var(--font-system);
  letter-spacing: 0.08em;
}

.hardware-top {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 70px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(201, 199, 191, 0.9);
  background: rgba(233, 231, 225, 0.94);
  backdrop-filter: blur(18px);
}

.hardware-title {
  margin-top: 2px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 760;
}

.hardware-status,
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vent-lines {
  height: 18px;
  margin: 10px 18px 0;
  border-top: 1px solid rgba(34, 35, 33, 0.1);
  border-bottom: 1px solid rgba(34, 35, 33, 0.1);
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(34, 35, 33, 0.18) 9px 10px);
  opacity: 0.5;
}

.led {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--color-led);
  box-shadow: 0 0 0 3px rgba(121, 194, 103, 0.14), 0 0 12px rgba(121, 194, 103, 0.42);
  animation: ledIdle 1800ms ease-in-out infinite;
}

.led-off {
  background: #4c4d49;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65);
  animation: none;
}

main {
  padding: 14px 12px 28px;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewIn 240ms ease-out;
}

.app.is-locked {
  padding-bottom: max(env(safe-area-inset-bottom), 10px);
}

.page-head,
.shop-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-head h1 {
  margin: 2px 0 0;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: 0;
}

.icon-button,
.qty-button,
.secondary-button,
.text-button,
.audience-chip,
.tab,
.option,
.color-option,
.wide-button,
.switch-module {
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.product-card,
.audience-tile,
.category-tile,
.technology-tile,
.cart-item,
.order-card,
.settings-panel {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.icon-button:active,
.qty-button:active,
.secondary-button:active,
.text-button:active,
.audience-chip:active,
.tab:active,
.option:active,
.color-option:active,
.wide-button:active,
.switch-module:active {
  transform: translateY(2px);
}

.icon-button,
.qty-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 850;
}

.icon-button {
  min-width: 44px;
  height: 44px;
}

.icon-button.bump {
  animation: bump 260ms ease-out;
}

.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--module-accent);
  font-weight: 800;
  padding: 0;
}

.secondary-button,
.tab,
.audience-chip {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 720;
  box-shadow: inset 0 -2px 0 rgba(23, 23, 23, 0.05);
}

.module-scene {
  --insert-y: 240px;
  position: relative;
  min-height: min(650px, calc(var(--app-viewport-height, 100dvh) - 138px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 10px;
  padding: 2px 0 12px;
  overflow: hidden;
}

.module-carousel {
  --module-card-width: 244px;
  width: 100%;
  margin: 0;
  padding-inline: max(0px, calc((100% - var(--module-card-width)) / 2));
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(0px, calc((100% - var(--module-card-width)) / 2));
  scrollbar-width: none;
  touch-action: pan-x;
}

.module-carousel::-webkit-scrollbar {
  display: none;
}

.module-scene[data-state="dragging"] .module-carousel,
.module-scene[data-state="snapping"] .module-carousel,
.module-scene[data-state="inserted"] .module-carousel,
.module-scene[data-state="booting"] .module-carousel {
  overflow: visible;
}

.module-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  min-height: 232px;
  padding: 14px 0 20px;
}

.physical-cartridge {
  --accent: var(--module-accent);
  --body: var(--color-bg);
  --label: #fffdf8;
  --drag-y: 0px;
  --insert-clip: 0px;
  position: relative;
  flex: 0 0 244px;
  width: 244px;
  height: 180px;
  display: grid;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(111, 111, 105, 0.52);
  border-radius: 22px 22px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0 33%, rgba(0, 0, 0, 0.08) 33% 38%, var(--body) 38%),
    var(--body);
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 8px 18px rgba(34, 35, 33, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  opacity: 0.54;
  transform: translateY(var(--drag-y)) scale(0.78);
  transform-origin: center top;
  scroll-snap-align: center;
  touch-action: pan-x;
  will-change: transform;
  clip-path: inset(0 0 var(--insert-clip) 0);
  transition:
    transform 260ms cubic-bezier(0.2, 0.78, 0.24, 1),
    clip-path 260ms cubic-bezier(0.2, 0.78, 0.24, 1),
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.physical-cartridge::before,
.physical-cartridge::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.physical-cartridge::before {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 15px;
}

.physical-cartridge::after {
  left: 0;
  top: 34px;
  width: 9px;
  height: 86px;
  border-radius: 0 10px 10px 0;
  background: rgba(0, 0, 0, 0.08);
}

.physical-cartridge.centered {
  z-index: 4;
  opacity: 1;
  transform: translateY(var(--drag-y)) scale(1);
  box-shadow: 0 20px 34px rgba(34, 35, 33, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.cartridge-tap-cue {
  position: absolute;
  z-index: 8;
  top: 2px;
  left: 76%;
  width: 42px;
  height: 66px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
}

.physical-cartridge.centered[data-module-state="active"] .cartridge-tap-cue {
  opacity: 1;
}

.tap-rings {
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 19px;
  height: 10px;
  border: 2px solid rgba(230, 0, 18, 0.64);
  border-radius: 50%;
  animation: cartridgeTapRings 4000ms ease-out infinite;
}

.pixel-cursor {
  position: absolute;
  top: 43px;
  left: 8px;
  width: 34px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(23, 23, 23, 0.26));
  animation: cartridgeTap 4000ms linear infinite;
}

.module-scene[data-state="dragging"] .physical-cartridge.centered,
.module-scene[data-state="snapping"] .physical-cartridge.centered,
.module-scene[data-state="inserted"] .physical-cartridge.centered,
.module-scene[data-state="booting"] .physical-cartridge.centered,
.module-scene[data-state="complete"] .physical-cartridge.centered {
  z-index: 12;
  touch-action: none;
}

.module-scene[data-state="snapping"] .physical-cartridge.centered,
.module-scene[data-state="inserted"] .physical-cartridge.centered,
.module-scene[data-state="booting"] .physical-cartridge.centered {
  transition:
    transform 980ms cubic-bezier(0.16, 0.86, 0.24, 1),
    clip-path 980ms cubic-bezier(0.16, 0.86, 0.24, 1);
}

.module-scene[data-state="inserted"] .physical-cartridge.centered {
  animation: mechanicalSettle 520ms ease;
}

.module-scene[data-state="browsing"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="dragging"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="snapping"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="inserted"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="booting"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="complete"] .physical-cartridge .cartridge-tap-cue,
.module-scene[data-state="locked"] .physical-cartridge .cartridge-tap-cue {
  opacity: 0;
}

.physical-cartridge.uniqlo {
  --accent: var(--module-accent);
  --body: #f2f0e9;
}

.physical-cartridge.unknown,
.physical-cartridge.empty {
  --accent: #8c8b84;
  --body: #d9d6cc;
  --label: #edeae1;
}

.physical-cartridge.locked {
  color: rgba(23, 23, 23, 0.62);
}

.physical-cartridge.shake {
  animation: lockedShake 240ms ease;
}

.module-label {
  position: relative;
  display: grid;
  gap: 3px;
  max-width: 184px;
  margin-bottom: 18px;
  padding: 13px;
  border-left: 8px solid var(--accent);
  border-radius: 12px;
  background: var(--label);
  box-shadow: inset 0 0 0 1px rgba(201, 199, 191, 0.5);
}

.module-label strong {
  font-size: 27px;
  line-height: 30px;
  letter-spacing: 0;
}

.module-label em,
.module-label small {
  color: var(--color-text-muted);
  font: 700 10px/14px var(--font-system);
  font-style: normal;
  letter-spacing: 0.08em;
}

.module-slot {
  position: absolute;
  top: 15px;
  right: 17px;
  color: var(--color-text-muted);
}

.module-contacts {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 15px;
  background: repeating-linear-gradient(90deg, #b9a76a 0 11px, transparent 11px 18px);
  opacity: 0.82;
}

.module-readout {
  display: grid;
  grid-template-rows: 17px 80px;
  height: 104px;
  justify-items: center;
  gap: 7px;
  min-height: 88px;
  text-align: center;
  transition: opacity 140ms ease;
}

.module-scene[data-state="dragging"] .module-readout,
.module-scene[data-state="snapping"] .module-readout,
.module-scene[data-state="inserted"] .module-readout,
.module-scene[data-state="booting"] .module-readout {
  opacity: 0.18;
}

.module-readout-status {
  color: var(--color-text);
  font: 800 13px/17px var(--font-system);
  letter-spacing: 0.08em;
}

.module-readout-hint {
  display: grid;
  gap: 1px;
  max-width: 330px;
  margin: 0;
  color: var(--color-text-muted);
}

.module-readout-hint strong {
  color: var(--color-text);
  font-size: 21px;
  line-height: 26px;
  font-weight: 800;
}

.module-readout-hint span {
  font-size: 15px;
  line-height: 21px;
  font-weight: 620;
}

.console-dock {
  position: relative;
  z-index: auto;
  top: auto;
  left: auto;
  transform: none;
  align-self: start;
  width: min(330px, 100%);
  min-height: 148px;
  justify-self: center;
  margin-top: 0;
  display: grid;
  align-content: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(111, 111, 105, 0.48);
  border-radius: 24px 24px 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 58%),
    #ddd9d0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 20px 38px rgba(34, 35, 33, 0.15);
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.console-dock.dock-hot {
  border-color: rgba(121, 194, 103, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 0 0 4px rgba(121, 194, 103, 0.12), 0 20px 38px rgba(34, 35, 33, 0.15);
}

.console-dock.dock-loaded .dock-slot {
  box-shadow:
    inset 0 8px 16px rgba(0, 0, 0, 0.84),
    0 0 0 4px rgba(121, 194, 103, 0.12),
    0 0 22px rgba(121, 194, 103, 0.22);
}

.console-dock.dock-loaded .dock-slot-lip {
  border-color: rgba(121, 194, 103, 0.9);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(121, 194, 103, 0.14),
    0 0 18px rgba(121, 194, 103, 0.38);
}

.console-dock.dock-loaded .led {
  animation: ledBoot 520ms ease 4, ledIdle 1800ms ease-in-out 2100ms infinite;
}

.dock-slot {
  position: relative;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #171715;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.84), 0 1px 0 rgba(255, 255, 255, 0.38);
}

.dock-slot::before {
  content: "";
  position: absolute;
  z-index: 23;
  inset: 7px 0 0;
  border-radius: 0 0 18px 18px;
  background: #171715;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.84);
  pointer-events: none;
}

.dock-slot-label {
  position: relative;
  z-index: 25;
  color: rgba(255, 255, 255, 0.5);
  font: 800 10px/14px var(--font-system);
  letter-spacing: 0.08em;
}

.dock-slot-lip {
  position: absolute;
  z-index: 24;
  top: -1px;
  left: 10px;
  right: 10px;
  height: 12px;
  border: 2px solid #090a09;
  border-bottom: 0;
  border-radius: 15px 15px 6px 6px;
  background: linear-gradient(180deg, #272824 0 24%, #080907 25% 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 2px 3px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.dock-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font: 800 10px/14px var(--font-system);
  letter-spacing: 0.08em;
}

.insert-progress {
  width: 178px;
  height: 8px;
  border: 1px solid rgba(34, 35, 33, 0.22);
  overflow: hidden;
  opacity: 0;
}

.insert-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-led);
  transform: scaleX(0);
  transform-origin: left;
}

.insert-progress.active {
  opacity: 1;
}

.insert-progress.active span {
  animation: progress 900ms ease forwards;
}

.shop-topbar {
  position: relative;
  padding: 4px 0 0;
}

.shop-title {
  margin-top: 2px;
  font-size: 30px;
  line-height: 34px;
  font-weight: 780;
}

.top-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.switch-module {
  display: grid;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
}

.switch-module span {
  color: var(--color-text-muted);
  font: 700 9px/12px var(--font-system);
  letter-spacing: 0.08em;
}

.search-shell {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 78px 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-elevated);
  color: var(--color-text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.search-input:focus {
  border-color: var(--color-panel-dark);
}

.search-ready {
  position: absolute;
  top: 20px;
  right: 16px;
}

.search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-elevated);
  box-shadow: 0 14px 32px rgba(23, 23, 23, 0.14);
}

.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  text-align: left;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:active {
  background: var(--color-bg);
}

.search-suggestion span {
  font-size: 15px;
  font-weight: 650;
}

.search-suggestion small {
  color: var(--color-text-muted);
  font: 700 9px/12px var(--font-system);
  letter-spacing: 0.08em;
}

.hero {
  min-height: 258px;
  display: flex;
  align-items: end;
  margin: 4px 0 18px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.04) 0%, rgba(23, 23, 23, 0.08) 42%, rgba(23, 23, 23, 0.7) 100%),
    var(--hero-image, none) center/cover,
    url("/miniapp/placeholder.svg?v=slot-images-20260716") center/cover,
    var(--color-surface);
  color: #fff;
  overflow: hidden;
}

.hero-kicker,
.product-kicker {
  color: var(--module-accent);
}

.hero h1 {
  max-width: 310px;
  margin: 8px 0 10px;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: 0;
}

.hero p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.audience-chips,
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

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

.audience-chip,
.tab {
  min-width: 0;
  white-space: nowrap;
}

.audience-chip.active,
.tab.active,
.nav-button.active {
  border-color: var(--color-panel-dark);
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

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

.product-section {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  grid-column: 1 / -1;
}

.home-section,
.audience-landing {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 2px;
}

.section-head h2,
.checkout-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}

.audience-grid,
.category-grid,
.technology-grid {
  display: grid;
  gap: 10px;
}

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

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

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

.audience-tile,
.category-tile,
.technology-tile,
.audience-hero {
  min-width: 0;
  min-height: 94px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.08)),
    var(--color-surface-elevated);
  color: var(--color-text);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.audience-tile span,
.category-tile span,
.technology-tile strong {
  font-size: 17px;
  line-height: 21px;
  font-weight: 820;
}

.audience-tile small,
.technology-tile small,
.audience-hero p {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 18px;
}

.category-tile {
  min-height: 74px;
  align-content: center;
  text-align: center;
}

.category-tile span {
  font-size: 14px;
  line-height: 18px;
}

.technology-tile {
  min-height: 88px;
}

.audience-hero {
  min-height: 176px;
  background:
    linear-gradient(180deg, transparent 30%, rgba(23, 23, 23, 0.58)),
    url("/miniapp/placeholder.svg?v=slot-images-20260716") center/cover,
    var(--color-surface);
  color: #fff;
}

.audience-hero .system-label,
.audience-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.audience-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 36px;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 338px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 9px;
  border: 2px solid rgba(34, 35, 33, 0.72);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #eeeae0 100%);
  color: var(--color-text);
  overflow: hidden;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 0 0 5px rgba(201, 199, 191, 0.28),
    0 10px 22px rgba(34, 35, 33, 0.12);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.44) 45%, transparent 53%),
    radial-gradient(circle at 18% 8%, rgba(230, 0, 18, 0.1), transparent 30%);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.product-card:active {
  transform: scale(0.985) rotate(-0.4deg);
  border-color: var(--color-panel-dark);
}

.product-card-top {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  padding: 4px 6px;
  border: 1px solid rgba(201, 199, 191, 0.82);
  border-radius: 10px;
  background: rgba(246, 245, 241, 0.78);
}

.product-rom,
.product-card-price,
.product-card-meta {
  font: 800 9px/12px var(--font-system);
  letter-spacing: 0.06em;
}

.product-rom {
  color: var(--color-text-muted);
}

.product-card-price {
  color: var(--module-accent);
}

.product-card-image {
  position: relative;
  z-index: 1;
  padding: 6px;
  border: 1px solid rgba(34, 35, 33, 0.5);
  border-radius: 15px;
  background:
    repeating-linear-gradient(90deg, rgba(34, 35, 33, 0.04) 0 1px, transparent 1px 18px),
    #e9e7e1;
  box-shadow: inset 0 2px 8px rgba(34, 35, 33, 0.12);
}

.product-card-image::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 11px;
  height: 5px;
  border-radius: 999px;
  background: rgba(34, 35, 33, 0.72);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #eeece5 url("/miniapp/placeholder.svg?v=slot-images-20260716") center/cover no-repeat;
}

.product-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  padding: 4px 2px 2px;
}

.product-title {
  color: var(--color-text);
  font-size: 14px;
  line-height: 18px;
  font-weight: 720;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-subtitle,
.muted {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 16px;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 0;
  border-top: 1px solid rgba(201, 199, 191, 0.82);
  border-bottom: 1px solid rgba(201, 199, 191, 0.82);
  color: var(--color-text-muted);
}

.price {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(34, 35, 33, 0.16);
  color: var(--color-text);
  font-size: 18px;
  line-height: 22px;
  font-weight: 820;
}

.old-price {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 12px;
  margin-left: 4px;
}

.yuan-price {
  margin-top: 1px;
  color: rgba(111, 111, 105, 0.72);
  font-size: 11px;
}

.color-dots {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.color-dot {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 50%;
}

.skeleton {
  min-height: 298px;
  padding: 12px;
  gap: 12px;
}

.skeleton div,
.skeleton span {
  display: block;
  border-radius: 12px;
  background: linear-gradient(90deg, #ebe8df, #f7f5ef, #ebe8df);
  background-size: 220% 100%;
  animation: skeleton 1200ms ease infinite;
}

.skeleton div {
  aspect-ratio: 1 / 1.18;
}

.skeleton span {
  height: 16px;
}

.product-sticky-head {
  position: sticky;
  top: 84px;
  z-index: 15;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid rgba(201, 199, 191, 0.9);
  border-radius: var(--radius-card);
  background: rgba(233, 231, 225, 0.94);
  backdrop-filter: blur(18px);
}

.product-sticky-head .system-label {
  text-align: center;
}

.detail {
  display: grid;
  gap: 14px;
  padding-bottom: 116px;
}

.product-gallery {
  position: relative;
}

.product-image {
  width: 100%;
  min-height: min(64vh, 560px);
  max-height: 68vh;
  display: block;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #eeece5 url("/miniapp/placeholder.svg?v=slot-images-20260716") center/cover no-repeat;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.gallery-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.2);
}

.gallery-dots .active {
  background: var(--color-led);
  box-shadow: 0 0 8px rgba(121, 194, 103, 0.6);
}

.detail-panel,
.cart-panel,
.order-card,
.outfit-card,
.outfits-intro,
.outfit-slot-row,
.checkout-panel,
.settings-panel,
.empty {
  position: relative;
  z-index: 18;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-elevated);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.detail h1 {
  margin: 8px 0 4px;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: 0;
}

.detail-subtitle {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 16px;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.option-group {
  margin-top: 22px;
}

.option-label {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.option-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-row {
  position: relative;
  z-index: 22;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.option,
.color-option {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 720;
}

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

.option.active,
.color-option.active {
  border-color: var(--color-panel-dark);
  background: var(--color-panel-dark);
  color: #fff;
  transform: scale(1.035);
}

.option.recommended:not(.active) {
  position: relative;
  border-color: var(--color-led);
  box-shadow: inset 0 0 0 1px rgba(121, 194, 103, 0.32);
}

.option.recommended:not(.active)::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-led);
  content: "";
}

.size-assist-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 17px;
}

.size-assist-hint .led {
  flex: 0 0 auto;
  margin-top: 4px;
}

.size-assist-hint div {
  display: grid;
  gap: 1px;
}

.size-assist-hint strong {
  color: var(--color-text);
  font-size: 13px;
}

.size-assist-hint.loading,
.size-assist-hint.neutral {
  display: block;
}

.size-profile-link {
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--module-accent);
  text-align: left;
  font-weight: 700;
}

.option:disabled,
.color-option:disabled {
  border-style: dashed;
  opacity: 0.38;
  text-decoration: line-through;
  cursor: not-allowed;
}

.price-note {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 17px;
}

.wide-button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--module-accent);
  color: #fff;
  font-weight: 850;
}

.wide-button.secondary {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.cart-item img {
  width: 82px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius-button);
  background: #eeece5;
}

.cart-item-body {
  display: grid;
  align-content: start;
  min-width: 0;
}

.cart-item-head,
.cart-item-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-head .product-title {
  min-width: 0;
}

.cart-remove {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 25px;
  line-height: 1;
}

.cart-item-footer {
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}

.cart-item-footer .price {
  white-space: nowrap;
}

.qty-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  margin-top: 0;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.qty-button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.summary {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.cart-clear {
  color: var(--color-error);
  font-size: 13px;
}

.cart-clear.is-confirming {
  padding-inline: 10px;
  border: 1px solid rgba(200, 61, 50, 0.42);
  border-radius: var(--radius-button);
  background: rgba(200, 61, 50, 0.07);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-text-muted);
}

.summary-row strong {
  color: var(--color-text);
}

.summary-row.total {
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 850;
}

.checkout-note {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.manual-shipping-note {
  margin-top: 14px;
  border: 1px solid rgba(217, 139, 43, 0.45);
  border-radius: var(--radius-button);
  background: rgba(217, 139, 43, 0.1);
  padding: 12px;
}

.manual-shipping-note p {
  margin: 5px 0 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 18px;
}

.outfit-cart-button {
  margin: 0 0 12px;
}

.outfits-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.outfits-intro p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 22px;
}

.outfit-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.outfit-list {
  display: grid;
  gap: 12px;
}

.outfit-card {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 12px;
  overflow: hidden;
}

.outfit-composition {
  min-height: 148px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(201, 199, 191, 0.82);
  border-radius: var(--radius-button);
  background:
    repeating-linear-gradient(90deg, rgba(34, 35, 33, 0.035) 0 1px, transparent 1px 18px),
    var(--color-bg);
}

.outfit-composition img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  background: #eeece5;
}

.outfit-card-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.outfit-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 25px;
}

.outfit-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.outfit-builder {
  display: grid;
  gap: 14px;
  padding-bottom: 118px;
}

.outfit-builder-intro {
  display: grid;
  gap: 5px;
  padding: 4px 2px 2px;
}

.outfit-builder-intro h2,
.outfit-builder-intro p {
  margin: 0;
}

.outfit-builder-intro h2 {
  font-size: 24px;
  line-height: 29px;
}

.outfit-builder-intro p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 20px;
}

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

.outfit-builder-card {
  position: relative;
  min-width: 0;
  min-height: 232px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: left;
}

.outfit-builder-card.empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  border-style: dashed;
  color: var(--color-text-muted);
  text-align: center;
}

.outfit-builder-card.empty strong {
  color: var(--color-text);
}

.outfit-card-add {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 28px;
}

.outfit-builder-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #eeece5;
}

.outfit-builder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outfit-builder-media span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(246, 245, 241, 0.92);
  font: 800 9px/12px var(--font-system);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.outfit-builder-card-body {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.outfit-builder-card-body label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
}

.product-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.product-facts { margin-block: 20px; }
.product-facts details { border-top: 1px solid var(--color-border); padding: 12px 0; }
.product-facts summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-weight: 650; }
.product-facts p { white-space: pre-line; line-height: 1.5; }
.product-facts a { display: inline-block; padding-block: 12px; font-size: 13px; }
.product-size-scroll { max-width: 100%; overflow-x: auto; }
.product-size-scroll table { width: 100%; border-collapse: collapse; font-size: 13px; }
.product-size-scroll th, .product-size-scroll td { padding: 10px; border: 1px solid var(--color-border); text-align: left; }
.product-size-scroll caption { text-align: left; padding-bottom: 10px; color: var(--color-text-muted); }

.product-gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.product-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery-slide figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.product-gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 8px;
}

.product-photo-dialog {
  width: min(94%, 900px);
  max-height: 90dvh;
  padding: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.product-photo-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.product-photo-dialog > button { display: block; margin-left: auto; }
.product-photo-dialog > img { display: block; width: 100%; max-height: 75dvh; object-fit: contain; }

.outfit-builder-card-body select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  font-size: 13px;
}

.outfit-builder-card-body > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.outfit-builder-card-body > small {
  color: var(--color-text-muted);
}

.outfit-builder-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
}

.outfit-builder-card-actions .secondary-button {
  min-height: 40px;
  padding: 8px 10px;
}

.outfit-card-remove {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 24px;
  line-height: 1;
}

.outfit-head {
  top: 84px;
}

.look-canvas {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, rgba(246, 245, 241, 0.84), rgba(233, 231, 225, 0.92)),
    repeating-linear-gradient(90deg, rgba(34, 35, 33, 0.025) 0 1px, transparent 1px 24px),
    #efede6;
  overflow: hidden;
}

.look-canvas::before {
  content: "2D FIT BOARD / NOT EXACT SIZING";
  position: absolute;
  top: 14px;
  left: 16px;
  color: rgba(111, 111, 105, 0.5);
  font: 800 9px/12px var(--font-system);
  letter-spacing: 0.08em;
}

.tryon-stage {
  position: absolute;
  inset: 30px 14px 18px;
  pointer-events: none;
}

.tryon-body {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 178px;
  height: 430px;
  transform: translateX(-50%);
  opacity: 0.58;
}

.tryon-body span {
  position: absolute;
  display: block;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid rgba(201, 199, 191, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.tryon-head {
  left: 62px;
  top: 0;
  width: 54px;
  height: 60px;
  border-radius: 48% 48% 44% 44%;
}

.tryon-neck {
  left: 75px;
  top: 56px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.tryon-torso {
  left: 35px;
  top: 78px;
  width: 108px;
  height: 164px;
  border-radius: 42px 42px 28px 28px;
}

.tryon-arm {
  top: 92px;
  width: 32px;
  height: 156px;
  border-radius: 999px;
}

.tryon-arm.left {
  left: 8px;
  transform: rotate(7deg);
}

.tryon-arm.right {
  right: 8px;
  transform: rotate(-7deg);
}

.tryon-leg {
  top: 236px;
  width: 44px;
  height: 176px;
  border-radius: 22px 22px 18px 18px;
}

.tryon-leg.left {
  left: 43px;
}

.tryon-leg.right {
  right: 43px;
}

.look-slot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(111, 111, 105, 0.36);
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.36);
  color: var(--color-text-muted);
  font-weight: 780;
  overflow: visible;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.look-slot:active {
  transform: scale(0.98);
}

.look-slot.filled {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: viewIn 220ms ease-out;
}

.look-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 14px 16px rgba(34, 35, 33, 0.18));
}

.look-slot span {
  position: absolute;
  left: 50%;
  bottom: -14px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.9);
  color: var(--color-text-muted);
  font: 800 9px/12px var(--font-system);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.look-slot em {
  color: rgba(111, 111, 105, 0.72);
  font: 800 10px/14px var(--font-system);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.look-slot-top {
  left: 50%;
  top: 104px;
  width: 190px;
  height: 170px;
  z-index: 2;
  transform: translateX(-50%);
}

.look-slot-outerwear {
  left: 50%;
  top: 72px;
  width: 246px;
  height: 230px;
  z-index: 4;
  transform: translateX(-50%);
}

.look-slot-dress {
  left: 50%;
  top: 90px;
  width: 210px;
  height: 284px;
  z-index: 3;
  transform: translateX(-50%);
}

.look-slot-bottom {
  left: 50%;
  top: 252px;
  width: 174px;
  height: 218px;
  z-index: 2;
  transform: translateX(-50%);
}

.look-slot-accessory {
  right: 22px;
  top: 238px;
  width: 106px;
  height: 112px;
  z-index: 5;
}

.look-slot.empty.look-slot-top,
.look-slot.empty.look-slot-bottom,
.look-slot.empty.look-slot-dress,
.look-slot.empty.look-slot-outerwear {
  left: auto;
  transform: none;
}

.look-slot.empty.look-slot-outerwear {
  left: 20px;
  top: 74px;
  width: 96px;
  height: 96px;
}

.look-slot.empty.look-slot-top {
  right: 20px;
  top: 84px;
  width: 96px;
  height: 96px;
}

.look-slot.empty.look-slot-dress {
  left: 20px;
  top: 190px;
  width: 96px;
  height: 96px;
}

.look-slot.empty.look-slot-bottom {
  left: 20px;
  bottom: 34px;
  top: auto;
  width: 96px;
  height: 96px;
}

.look-slot.empty.look-slot-accessory {
  right: 20px;
  bottom: 34px;
  top: auto;
  width: 96px;
  height: 96px;
}

.outfit-disclaimer {
  padding: 10px 12px;
  border: 1px solid rgba(201, 199, 191, 0.9);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.34);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 18px;
}

.outfit-slots {
  display: grid;
  gap: 10px;
}

.outfit-slot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.outfit-slot-row div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.outfit-slot-row span,
.outfit-slot-row small {
  color: var(--color-text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.outfit-slot-row small {
  font-size: 12px;
}

.outfit-slot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.outfit-buy {
  bottom: calc(82px + env(safe-area-inset-bottom));
}

.outfit-picker-panel {
  max-height: min(82vh, 720px);
  overflow: auto;
}

.outfit-picker-panel .search-input {
  margin: 6px 0 12px;
}

.outfit-picker-grid {
  padding-bottom: 16px;
}

.checkout-panel {
  margin-top: 14px;
}

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

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

.city-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.city-row .option {
  min-height: 48px;
  white-space: nowrap;
}

.field span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-surface);
  padding: 12px 14px;
  color: var(--color-text);
  outline: none;
}

.field select {
  appearance: auto;
}

.field-note {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 17px;
}

.hidden {
  display: none !important;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-panel-dark);
}

.order-card {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: var(--radius-button);
  background: #eef8f2;
  color: #167341;
  font-size: 13px;
  font-weight: 760;
}

.order-progress {
  height: 8px;
  border-radius: 999px;
  background: #e3e0d7;
  overflow: hidden;
}

.order-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-led);
}

.order-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.order-detail-list {
  display: grid;
  gap: 8px;
}

.order-detail-item {
  display: grid;
  gap: 2px;
}

.order-detail-item span {
  font-weight: 720;
}

.order-detail-item small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.order-contact {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.42);
  padding: 12px;
}

.order-contact div {
  display: grid;
  gap: 2px;
}

.order-contact span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.order-contact strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.settings-panel {
  display: grid;
  gap: 8px;
}

.size-profile-form {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.size-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.size-profile-head > div {
  display: grid;
  gap: 3px;
}

.size-profile-head strong {
  font-size: 18px;
}

.size-profile-head span,
.profile-field span,
.size-profile-note {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 17px;
}

.profile-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-system);
  font-size: 10px !important;
  text-transform: uppercase;
}

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

.profile-field {
  display: grid;
  gap: 5px;
}

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

.profile-field input,
.profile-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

.size-profile-note {
  margin: 12px 0 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.settings-row div {
  display: grid;
  gap: 2px;
}

.settings-row span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.settings-row .settings-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.empty {
  color: var(--color-text-muted);
  text-align: center;
}

.catalog-empty {
  grid-column: 1 / -1;
}

.sticky-buy {
  position: sticky;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 14;
  display: grid;
  grid-template-columns: 1fr 172px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: rgba(246, 245, 241, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-panel);
}

.sticky-buy .wide-button {
  margin: 0;
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 40;
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  border: 1px solid rgba(201, 199, 191, 0.9);
  border-radius: 20px;
  background: rgba(233, 231, 225, 0.94);
  backdrop-filter: blur(18px);
}

.nav-button {
  position: relative;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 780;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-button:active {
  transform: translateY(2px);
}

.nav-button.active {
  border-color: rgba(34, 35, 33, 0.7);
  background: rgba(246, 245, 241, 0.72);
  color: var(--color-text);
}

.nav-button.active::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-led);
  transform: translateX(-50%);
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: end;
  background: rgba(34, 35, 33, 0.34);
}

.bottom-sheet.active {
  display: flex;
}

.sheet-panel {
  width: 100%;
  max-width: 720px;
  max-height: min(88dvh, 760px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--color-bg);
  animation: sheetIn 240ms cubic-bezier(0.2, 0.78, 0.24, 1);
}

.sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(34, 35, 33, 0.22);
}

.filter-grid {
  display: grid;
  gap: 16px;
}

#filterOptions,
.filter-section {
  display: grid;
  gap: 9px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-grid > .wide-button {
  margin-top: 0;
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(98px + env(safe-area-inset-bottom));
  z-index: 120;
  display: none;
  max-width: 680px;
  margin: 0 auto;
  padding: 13px 15px;
  border-radius: var(--radius-button);
  background: var(--color-panel-dark);
  color: #fff;
}

.toast.active {
  display: block;
  animation: toastIn 220ms ease-out;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes systemWake {
  from { opacity: 0; transform: translateY(10px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ledPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(121, 194, 103, 0.14), 0 0 12px rgba(121, 194, 103, 0.42); }
  45% { transform: scale(1.32); box-shadow: 0 0 0 7px rgba(121, 194, 103, 0.12), 0 0 20px rgba(121, 194, 103, 0.62); }
}

@keyframes ledIdle {
  0%, 100% {
    opacity: 0.68;
    transform: scale(0.92);
    box-shadow: 0 0 0 2px rgba(121, 194, 103, 0.1), 0 0 7px rgba(121, 194, 103, 0.28);
  }
  48%, 58% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(121, 194, 103, 0.16), 0 0 16px rgba(121, 194, 103, 0.58);
  }
}

@keyframes ledBoot {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.88);
    box-shadow: 0 0 0 2px rgba(121, 194, 103, 0.1), 0 0 6px rgba(121, 194, 103, 0.22);
  }
  45% {
    opacity: 1;
    transform: scale(1.36);
    box-shadow: 0 0 0 8px rgba(121, 194, 103, 0.14), 0 0 24px rgba(121, 194, 103, 0.7);
  }
}

@keyframes cartridgeTap {
  0%, 8%, 100% {
    opacity: 0;
    transform: translate(130px, -230px) scale(0.86);
  }
  14% {
    opacity: 1;
    transform: translate(130px, -230px) scale(0.86);
  }
  48% {
    opacity: 1;
    transform: translate(0, -5px) scale(1);
  }
  55%, 61% {
    opacity: 1;
    transform: translate(3px, 3px) scale(0.94);
  }
  69% {
    opacity: 1;
    transform: translate(0, -5px) scale(1);
  }
  78% {
    opacity: 0;
    transform: translate(28px, 14px) scale(0.94);
  }
}

@keyframes cartridgeTapRings {
  0%, 52%, 100% {
    opacity: 0;
    transform: scale(0.56);
  }
  59% {
    opacity: 0.88;
    transform: scale(0.86);
  }
  73% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes mechanicalSettle {
  0% { transform: translateY(var(--insert-y)); }
  32% { transform: translateY(calc(var(--insert-y) - 8px)); }
  68% { transform: translateY(calc(var(--insert-y) + 2px)); }
  100% { transform: translateY(var(--insert-y)); }
}

@keyframes lockedShake {
  0%, 100% { transform: translateY(var(--drag-y)) scale(1) translateX(0); }
  25% { transform: translateY(var(--drag-y)) scale(1) translateX(-5px); }
  75% { transform: translateY(var(--drag-y)) scale(1) translateX(5px); }
}

@keyframes skeleton {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@media (max-width: 390px) {
  .app {
    padding-left: 6px;
    padding-right: 6px;
  }

  main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .product-grid,
  .feature-list {
    gap: 10px;
  }

  .product-card {
    min-height: 326px;
    padding: 7px;
  }

  .product-title {
    font-size: 13px;
    line-height: 17px;
  }

  .sticky-buy {
    grid-template-columns: 1fr 148px;
  }

  .module-scene {
    gap: 8px;
  }

  .module-track {
    min-height: 214px;
    padding-top: 6px;
    padding-bottom: 12px;
  }

  .physical-cartridge {
    flex-basis: 228px;
    width: 228px;
    height: 168px;
    padding: 15px;
  }

  .module-carousel {
    --module-card-width: 228px;
  }

  .module-label {
    max-width: 174px;
    margin-bottom: 16px;
    padding: 11px;
  }

  .module-label strong {
    font-size: 25px;
    line-height: 28px;
  }

  .console-dock {
    width: min(310px, 100%);
    min-height: 132px;
    padding: 15px;
  }
}

@media (max-height: 760px) {
  .hardware-top {
    min-height: 60px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .vent-lines {
    margin-top: 6px;
  }

  main {
    padding-top: 9px;
  }

  .page-head {
    margin-bottom: 10px;
  }

  .page-head h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .module-track {
    min-height: 202px;
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .module-readout {
    min-height: 60px;
  }

  .console-dock {
    width: min(310px, 100%);
    min-height: 122px;
    gap: 9px;
    padding: 13px;
  }
}

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

  .pixel-cursor {
    transform: translate(3px, 3px);
  }

  .tap-rings {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

@media (min-width: 520px) {
  .module-carousel {
    width: 520px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 760px) {
  .detail {
    padding-bottom: 0;
  }

  .sticky-buy {
    position: static;
    z-index: 1;
  }
}

.try-on-product-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
  background: var(--color-panel-dark);
}

.try-on-product-button:disabled {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.try-on-spark {
  font-size: 18px;
  line-height: 1;
}

.try-on-view {
  padding-bottom: 36px;
}

.try-on-unavailable,
.try-on-upload,
.try-on-ready,
.try-on-processing,
.try-on-result,
.try-on-profile-photo,
.try-on-history {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.try-on-unavailable {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 52px 24px;
  text-align: center;
}

.try-on-unavailable h2,
.try-on-upload h2,
.try-on-ready h2,
.try-on-processing h2,
.try-on-result h2,
.try-on-profile-photo h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}

.try-on-unavailable p,
.try-on-upload p,
.try-on-ready p,
.try-on-processing p,
.try-on-result p,
.try-on-profile-photo p {
  margin: 0;
  color: var(--color-text-muted);
}

.try-on-orbit {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
}

.try-on-orbit::before {
  content: "";
  position: absolute;
  width: 112px;
  height: 46px;
  border: 1px solid rgba(23, 23, 23, 0.18);
  border-radius: 50%;
  animation: tryOnOrbit 3s linear infinite;
}

.try-on-orbit span {
  font: 700 20px/1 var(--font-system);
}

.try-on-upload {
  display: grid;
  gap: 20px;
  padding: 18px;
}

.try-on-photo-guide {
  display: grid;
  min-height: 310px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8e8e5, #d9d9d4);
  overflow: hidden;
}

.photo-guide-frame {
  position: relative;
  width: 148px;
  height: 258px;
  border: 1px dashed rgba(23, 23, 23, 0.38);
  border-radius: 74px 74px 42px 42px;
}

.photo-guide-frame::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.2);
  transform: translateX(-50%);
}

.photo-guide-frame::after {
  content: "";
  position: absolute;
  top: 88px;
  left: 50%;
  width: 102px;
  height: 142px;
  border-radius: 50px 50px 30px 30px;
  background: rgba(23, 23, 23, 0.18);
  transform: translateX(-50%);
}

.photo-requirements {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-muted);
}

.photo-requirements li {
  position: relative;
  padding-left: 25px;
}

.photo-requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4f8c45;
  font-weight: 800;
}

.try-on-file-button {
  position: relative;
  overflow: hidden;
}

.try-on-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.privacy-note,
.try-on-disclaimer {
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

.try-on-ready {
  display: grid;
  gap: 18px;
  padding: 18px;
  text-align: center;
}

.try-on-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.try-on-preview-frame {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ededeb;
  overflow: hidden;
}

.try-on-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.try-on-plus {
  font-size: 25px;
  color: var(--color-text-muted);
}

.try-on-ready-copy {
  display: grid;
  gap: 5px;
}

.try-on-processing {
  display: grid;
  gap: 24px;
  padding: 18px;
}

.try-on-processing-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: #e5e5e2;
  overflow: hidden;
}

.try-on-processing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) blur(2px);
  transform: scale(1.02);
}

.try-on-scan {
  position: absolute;
  inset: -30% 0 auto;
  height: 34%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28));
  animation: tryOnScan 2.4s ease-in-out infinite;
}

.try-on-progress-copy {
  display: grid;
  gap: 13px;
}

.try-on-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: #deddd7;
  overflow: hidden;
}

.try-on-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-text);
  transition: width 500ms ease;
}

.try-on-stages {
  display: grid;
  gap: 10px;
}

.try-on-stages div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa9a3;
  transition: color 240ms ease;
}

.try-on-stages div span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d1cb;
}

.try-on-stages div.active {
  color: var(--color-text);
}

.try-on-stages div.active span {
  background: var(--color-led);
  box-shadow: 0 0 0 4px rgba(121, 194, 103, 0.14);
}

.try-on-result {
  display: grid;
  gap: 15px;
  padding: 12px;
}

.before-after-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: #dfded8;
}

.before-after-control button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-text-muted);
}

.before-after-control button.active {
  background: #fff;
  color: var(--color-text);
}

.try-on-result-image {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #e5e5e2;
  overflow: hidden;
}

.try-on-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 140ms ease, transform 220ms ease;
}

.try-on-result-image img.switching {
  opacity: 0;
  transform: scale(0.99);
}

.try-on-result-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 3px;
}

.try-on-result-info h2 {
  font-size: 18px;
  line-height: 23px;
}

.try-on-result-info strong {
  white-space: nowrap;
  font-size: 20px;
}

.try-on-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.try-on-result-actions .secondary-button {
  min-height: 48px;
}

.try-on-profile-photo {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.try-on-profile-preview {
  width: 86px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: #e4e4e0;
  overflow: hidden;
}

.try-on-profile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.try-on-profile-photo .danger {
  grid-column: 2 / -1;
  justify-self: start;
  color: var(--color-error);
}

.try-on-history {
  margin-top: 14px;
  padding: 14px;
}

.try-on-history .section-head {
  margin-bottom: 12px;
}

.try-on-history-list {
  display: grid;
  gap: 9px;
}

.try-on-history-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.try-on-history-card > img {
  width: 62px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8e8e5;
}

.try-on-history-card div {
  display: grid;
  gap: 3px;
}

.try-on-history-card span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.try-on-skeleton {
  display: grid;
  gap: 12px;
}

.try-on-skeleton div,
.try-on-skeleton span {
  display: block;
  border-radius: 14px;
  background: linear-gradient(100deg, #deddd7 20%, #eeede8 45%, #deddd7 70%);
  background-size: 220% 100%;
  animation: skeleton 1.4s linear infinite;
}

.try-on-skeleton div {
  height: 420px;
}

.try-on-skeleton span {
  height: 24px;
}

.try-on-skeleton span:last-child {
  width: 68%;
}

@keyframes tryOnScan {
  0% { transform: translateY(0); }
  55%, 100% { transform: translateY(390%); }
}

@keyframes tryOnOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 390px) {
  .try-on-profile-photo {
    grid-template-columns: 72px 1fr;
  }

  .try-on-profile-preview {
    width: 72px;
  }

  .try-on-profile-photo .secondary-button {
    grid-column: 1 / -1;
  }

  .try-on-profile-photo .danger {
    grid-column: 1 / -1;
  }

  .try-on-history-card {
    grid-template-columns: 56px 1fr;
  }

  .try-on-history-card .secondary-button {
    grid-column: 2;
    justify-self: start;
  }
}
.checkout-error {
  margin: 0;
  padding: 12px;
  border-left: 3px solid #c83d32;
  background: #fff1ef;
  color: #8c241c;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.purchase-links:empty { display: none; }
.purchase-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
