:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #090909;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #090909;
}

body {
  display: grid;
  place-items: center;
  overscroll-behavior: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #ff2f61;
  outline-offset: 2px;
}

.app-shell {
  --accent: #ff2f61;
  --nav-height: 21.86cqw;
  position: relative;
  container-type: inline-size;
  width: min(100vw, calc(100dvh * 0.46137), 430px);
  height: min(100dvh, calc(100vw * 2.16744), 932px);
  aspect-ratio: 430 / 932;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.04);
  user-select: none;
}

.feed-content {
  position: absolute;
  inset: 0 0 var(--nav-height);
  overflow: hidden;
  background: #000;
  transform: translateY(0);
  will-change: transform;
}

.feed-content.is-leaving-up {
  transform: translateY(-100%);
  transition: transform 45ms linear;
}

.feed-content.is-leaving-down {
  transform: translateY(100%);
  transition: transform 45ms linear;
}

.feed-content.is-entering-up {
  transform: translateY(100%);
}

.feed-content.is-entering-down {
  transform: translateY(-100%);
}

.feed-content.is-settling {
  transform: translateY(0);
  transition: transform 45ms linear;
}

.feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.media-toggle {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.top-chrome {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 28.5cqw;
  pointer-events: none;
}

.status-bar {
  position: relative;
  height: 12.65cqw;
  font-size: 4.15cqw;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.24);
}

.status-time {
  position: absolute;
  top: 4.2cqw;
  left: 9.1cqw;
  line-height: 1;
}

.dynamic-island {
  position: absolute;
  top: 2.45cqw;
  left: 50%;
  width: 44.2cqw;
  height: 9.55cqw;
  border: 1px solid #202020;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.dynamic-island i {
  position: absolute;
  top: 50%;
  left: 3.5cqw;
  width: 3.3cqw;
  height: 3.3cqw;
  border-radius: 50%;
  background: #ed4338;
  transform: translateY(-50%);
}

.system-status {
  position: absolute;
  top: 4cqw;
  right: 8.2cqw;
  display: flex;
  align-items: center;
  gap: 2cqw;
  height: 4.3cqw;
}

.cellular {
  display: flex;
  align-items: end;
  gap: 0.7cqw;
  height: 3.5cqw;
}

.cellular i {
  width: 0.9cqw;
  border-radius: 0.3cqw;
  background: #fff;
}

.cellular i:nth-child(1) { height: 1.2cqw; }
.cellular i:nth-child(2) { height: 2cqw; }
.cellular i:nth-child(3) { height: 2.8cqw; }
.cellular i:nth-child(4) { height: 3.5cqw; opacity: 0.4; }

.wifi {
  position: relative;
  width: 4.6cqw;
  height: 3.5cqw;
  overflow: hidden;
}

.wifi::before,
.wifi::after,
.wifi i {
  position: absolute;
  left: 50%;
  border: 0.8cqw solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.wifi::before {
  top: -2.1cqw;
  width: 5.2cqw;
  height: 5.2cqw;
}

.wifi::after {
  top: -0.3cqw;
  width: 2.5cqw;
  height: 2.5cqw;
}

.wifi i {
  top: 2.7cqw;
  width: 0.25cqw;
  height: 0.25cqw;
  border-width: 0.6cqw;
}

.battery {
  position: relative;
  display: grid;
  place-items: center;
  width: 6cqw;
  height: 3.5cqw;
  border-radius: 1cqw;
  background: #2ab957;
  font-size: 2.7cqw;
  font-weight: 700;
  line-height: 1;
}

.battery b {
  transform: translateY(0.08cqw);
}

.battery i {
  position: absolute;
  top: 1.1cqw;
  right: -1.1cqw;
  width: 0.8cqw;
  height: 1.3cqw;
  border-radius: 0 0.3cqw 0.3cqw 0;
  background: rgb(255 255 255 / 0.45);
}

.top-tools {
  position: absolute;
  inset: 14.5cqw 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 5.5cqw;
  pointer-events: auto;
}

.tool-button {
  display: grid;
  width: 8.5cqw;
  height: 8.5cqw;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tool-button:active,
.rail-action:active,
.nav-item:active,
.create-button:active,
.profile-action:active {
  transform: scale(0.96);
}

.menu-icon {
  display: grid;
  gap: 1.3cqw;
  width: 4.5cqw;
}

.menu-icon i {
  display: block;
  width: 100%;
  height: 0.55cqw;
  border-radius: 999px;
  background: #fff;
}

.search-icon {
  position: relative;
  display: block;
  width: 4.4cqw;
  height: 4.4cqw;
  border: 0.7cqw solid #fff;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -2.1cqw;
  bottom: -1.6cqw;
  width: 2.5cqw;
  height: 0.7cqw;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: rotate(48deg);
  transform-origin: left center;
}

.feed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.app-shell.is-empty .feed-overlay {
  opacity: 0;
  visibility: hidden;
}

.fullscreen-button {
  position: absolute;
  top: 63%;
  left: 50%;
  display: inline-flex;
  min-width: 27cqw;
  height: 8.8cqw;
  align-items: center;
  justify-content: center;
  gap: 1.5cqw;
  padding: 0 3.4cqw;
  border: 1px solid #555;
  border-radius: 999px;
  background: rgb(28 28 28 / 0.78);
  color: #fff;
  font-size: 3.6cqw;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fullscreen-button[hidden] {
  display: none;
}

.fullscreen-button:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.action-rail {
  position: absolute;
  right: 2.5cqw;
  bottom: 6.2cqw;
  display: flex;
  width: 13cqw;
  flex-direction: column;
  align-items: center;
  gap: 3.25cqw;
  pointer-events: auto;
}

.profile-action,
.rail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-action {
  position: relative;
  width: 12.5cqw;
  height: 14.7cqw;
}

.profile-avatar {
  width: 11.5cqw;
  height: 11.5cqw;
  border: 0.7cqw solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

.follow-badge {
  position: absolute;
  bottom: 0.25cqw;
  left: 50%;
  display: grid;
  min-width: 8.2cqw;
  height: 5.1cqw;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 5.2cqw;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-50%);
  transition: transform 160ms ease, background 160ms ease;
}

.profile-action.is-following .follow-badge {
  background: #767676;
  font-size: 3.5cqw;
}

.rail-action {
  min-width: 12cqw;
  min-height: 14cqw;
  gap: 0.2cqw;
}

.rail-icon {
  display: grid;
  width: 9.2cqw;
  height: 9cqw;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.28));
}

.heart-icon,
.star-icon {
  font-family: Arial, sans-serif;
  font-size: 9.3cqw;
  line-height: 1;
}

.star-icon {
  font-size: 8.8cqw;
}

.like-action.is-active .heart-icon {
  color: var(--accent);
  animation: heart-pop 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rail-action.is-active .star-icon {
  color: #ffd343;
}

.comment-icon {
  position: relative;
  width: 8.2cqw;
  height: 7.2cqw;
  border-radius: 52% 52% 50% 48%;
  background: #fff;
}

.comment-icon::before {
  position: absolute;
  bottom: -1.1cqw;
  left: 0.8cqw;
  width: 2.8cqw;
  height: 2.6cqw;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  content: "";
}

.comment-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5.1cqw;
  height: 1cqw;
  background: radial-gradient(circle, #242424 0 0.75cqw, transparent 0.85cqw) 0 50% / 1.7cqw 1.7cqw repeat-x;
  content: "";
  transform: translate(-50%, -50%);
}

.share-icon {
  font-family: Arial, sans-serif;
  font-size: 9.8cqw;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.2cqw) rotate(-8deg);
}

.rail-count {
  min-height: 4.2cqw;
  color: #fff;
  font-size: 3.45cqw;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
  white-space: nowrap;
}

.music-disc {
  display: grid;
  width: 11.8cqw;
  height: 11.8cqw;
  margin-top: 1.1cqw;
  place-items: center;
  border-radius: 50%;
  background: #202020;
}

.music-disc img {
  width: 7.1cqw;
  height: 7.1cqw;
  border-radius: 50%;
  object-fit: cover;
  animation: disc-spin 5s linear infinite;
}

.video-meta {
  position: absolute;
  right: 17.5cqw;
  bottom: 3.6cqw;
  left: 3.2cqw;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.42);
  pointer-events: auto;
}

.author {
  margin: 0 0 2.2cqw;
  overflow: hidden;
  font-size: 4.4cqw;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description {
  position: relative;
  display: block;
  max-width: 100%;
  padding: 0 8.2cqw 0 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 3.75cqw;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.description #descriptionText {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.description.is-expanded #descriptionText {
  display: block;
  overflow: visible;
}

.expand-label {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 7.4cqw;
  margin: 0;
  padding-left: 1.1cqw;
  background: linear-gradient(90deg, transparent, #000 28%);
  color: #ddd;
  text-align: right;
  white-space: nowrap;
}

.description.is-expanded {
  padding-right: 0;
}

.description.is-expanded .expand-label {
  position: static;
  margin-left: 1.1cqw;
  padding: 0;
  background: transparent;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  height: var(--nav-height);
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  border-top: 1px solid #252525;
  background: #141414;
  padding-bottom: max(2.4cqw, env(safe-area-inset-bottom));
}

.nav-item,
.create-button {
  position: relative;
  justify-self: stretch;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-item {
  min-width: 0;
  height: 14.5cqw;
  padding: 5.8cqw 0 0;
  color: #a9a9a9;
  font-size: 4.25cqw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-item.is-active {
  color: #fff;
}

.create-button {
  display: grid;
  width: 10.8cqw;
  height: 10.8cqw;
  margin-top: 3.1cqw;
  place-items: center;
  justify-self: center;
  border: 0.75cqw solid #fff;
  border-radius: 50%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 7.4cqw;
  font-weight: 300;
  line-height: 1;
}

.create-button span {
  transform: translateY(-0.35cqw);
}

.message-badge {
  position: absolute;
  top: 2cqw;
  right: 3.5cqw;
  min-width: 7.1cqw;
  height: 4.6cqw;
  padding: 0 1.1cqw;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 3.1cqw;
  font-weight: 600;
  line-height: 4.6cqw;
  text-align: center;
}

.upload-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24cqw 8cqw 10cqw;
  background: #000;
}

.app-shell:not(.is-empty) .upload-empty {
  display: none;
}

.upload-button {
  display: inline-flex;
  min-width: 32cqw;
  height: 11.2cqw;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
  padding: 0 5cqw;
  border: 1px solid #4b4b4b;
  border-radius: 1.8cqw;
  background: #202020;
  color: #fff;
  font-size: 4cqw;
  font-weight: 600;
  cursor: pointer;
}

.upload-button:active {
  transform: scale(0.98);
}

.upload-plus {
  font-family: Arial, sans-serif;
  font-size: 7cqw;
  font-weight: 300;
  line-height: 1;
}

.upload-error {
  min-height: 4.2cqw;
  margin: 3cqw 0 0;
  color: #ff708e;
  font-size: 3.4cqw;
}

.drop-overlay {
  position: absolute;
  inset: 3cqw;
  z-index: 15;
  display: none;
  place-items: center;
  border: 0.5cqw dashed #fff;
  border-radius: 2cqw;
  background: rgb(0 0 0 / 0.76);
  color: #fff;
  font-size: 4.2cqw;
  font-weight: 600;
  pointer-events: none;
}

.app-shell.is-dragging .drop-overlay {
  display: grid;
}

.play-state {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 14cqw;
  height: 14cqw;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.46);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 160ms ease, transform 160ms ease;
}

.play-state.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 1.1cqw;
  border-top: 3.4cqw solid transparent;
  border-bottom: 3.4cqw solid transparent;
  border-left: 5.6cqw solid #fff;
}

.heart-burst {
  position: absolute;
  z-index: 6;
  display: none;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 18cqw;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / 0.36));
  transform: translate(-50%, -50%);
}

.heart-burst.is-visible {
  display: block;
  animation: burst 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgb(0 0 0 / 0.52);
  opacity: 0;
  transition: opacity 180ms ease;
}

.panel-backdrop.is-open {
  opacity: 1;
}

.panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 72%;
  padding: 3cqw 5cqw max(5cqw, env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 3cqw 3cqw 0 0;
  background: #1b1b1b;
  box-shadow: 0 -8px 24px rgb(0 0 0 / 0.3);
  transform: translateY(100%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-backdrop.is-open .panel:not([hidden]) {
  transform: translateY(0);
}

.panel-handle {
  width: 9cqw;
  height: 1cqw;
  margin: 0 auto 4cqw;
  border-radius: 999px;
  background: #626262;
}

.panel h2 {
  margin: 0 0 4cqw;
  font-size: 4.5cqw;
  line-height: 1.2;
  text-align: center;
}

.menu-panel > button {
  display: block;
  width: 100%;
  padding: 4.2cqw 0;
  border: 0;
  border-bottom: 1px solid #303030;
  background: transparent;
  color: #fff;
  font-size: 4cqw;
  text-align: left;
  cursor: pointer;
}

.comment-list {
  display: grid;
  gap: 4cqw;
  padding: 1cqw 0 5cqw;
}

.comment-list p {
  display: grid;
  gap: 1cqw;
  margin: 0;
  font-size: 3.6cqw;
}

.comment-list strong {
  color: #aaa;
  font-weight: 500;
}

.comment-form,
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2cqw;
}

.comment-form input,
.search-form input {
  min-width: 0;
  height: 10cqw;
  padding: 0 3.4cqw;
  border: 1px solid #555;
  border-radius: 1.8cqw;
  background: #292929;
  color: #fff;
  font-size: 3.7cqw;
}

.comment-form input::placeholder,
.search-form input::placeholder {
  color: #aaa;
}

.comment-form button,
.search-form button {
  min-width: 13cqw;
  height: 10cqw;
  padding: 0 3cqw;
  border: 0;
  border-radius: 1.8cqw;
  background: var(--accent);
  color: #fff;
  font-size: 3.7cqw;
  font-weight: 600;
  cursor: pointer;
}

.search-panel {
  top: 12.5cqw;
  bottom: auto;
  min-height: 34cqw;
  border-radius: 0 0 3cqw 3cqw;
  transform: translateY(-120%);
}

.panel-backdrop.is-open .search-panel:not([hidden]) {
  transform: translateY(0);
}

.search-result {
  margin: 5cqw 0 1cqw;
  color: #b8b8b8;
  font-size: 3.5cqw;
}

.toast {
  position: absolute;
  bottom: 26.5cqw;
  left: 50%;
  z-index: 30;
  max-width: 78%;
  margin: 0;
  padding: 2.4cqw 3.6cqw;
  border-radius: 1.6cqw;
  background: rgb(39 39 39 / 0.94);
  color: #fff;
  font-size: 3.5cqw;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 2cqw);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes disc-spin {
  to { transform: rotate(360deg); }
}

@keyframes heart-pop {
  0% { transform: scale(0.75); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-12deg); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(6deg); }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1) rotate(0); }
}

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

@media (prefers-reduced-transparency: reduce) {
  .fullscreen-button {
    background: #222;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }
}

/* Routed commerce views */
[hidden] {
  display: none !important;
}

.app-view {
  position: absolute;
  inset: 0;
}

.home-view {
  overflow: hidden;
  background: #000;
  color-scheme: dark;
}

.commerce-view {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f5f5f7;
  color: #202124;
  color-scheme: light;
  scrollbar-width: none;
  user-select: text;
  -webkit-overflow-scrolling: touch;
}

.commerce-view::-webkit-scrollbar,
.product-scroll::-webkit-scrollbar {
  display: none;
}

.commerce-view button,
.commerce-view input,
.commerce-view textarea {
  letter-spacing: 0;
}

.commerce-view button {
  -webkit-tap-highlight-color: transparent;
}

.commerce-view button:active {
  transform: scale(0.98);
}

.setup-view {
  padding-bottom: max(7cqw, env(safe-area-inset-bottom));
}

.setup-header {
  padding: max(10cqw, calc(env(safe-area-inset-top) + 5cqw)) 6cqw 8cqw;
  background: #fff;
  border-bottom: 1px solid #e7e7e9;
}

.setup-kicker {
  margin: 0 0 2cqw;
  color: #e93258;
  font-size: 3.2cqw;
  font-weight: 700;
}

.setup-header h1 {
  margin: 0;
  color: #17181a;
  font-size: 7.1cqw;
  font-weight: 750;
  line-height: 1.14;
}

.setup-header > p:last-child {
  margin: 3cqw 0 0;
  color: #66686d;
  font-size: 3.6cqw;
  line-height: 1.55;
}

.setup-form {
  display: grid;
  gap: 2.5cqw;
  padding: 3cqw 0 0;
}

.form-section {
  margin: 0;
  padding: 6cqw;
  border: 0;
  border-top: 1px solid #e8e8ea;
  border-bottom: 1px solid #e8e8ea;
  background: #fff;
}

.form-section-heading {
  display: grid;
  grid-template-columns: 8cqw minmax(0, 1fr);
  gap: 2.5cqw;
  align-items: start;
  margin-bottom: 6cqw;
}

.section-index {
  display: grid;
  width: 8cqw;
  height: 8cqw;
  place-items: center;
  border-radius: 2cqw;
  background: #242529;
  color: #fff;
  font-size: 3.8cqw;
  font-weight: 700;
}

.form-section-heading h2 {
  margin: 0;
  color: #191a1d;
  font-size: 4.7cqw;
  line-height: 1.25;
}

.form-section-heading p {
  margin: 1.2cqw 0 0;
  color: #76787d;
  font-size: 3.2cqw;
  line-height: 1.45;
}

.field-block {
  display: grid;
  gap: 2cqw;
  margin-top: 4.8cqw;
}

.form-section-heading + .field-block {
  margin-top: 0;
}

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

.field-block label:first-child {
  color: #2f3034;
  font-size: 3.45cqw;
  font-weight: 650;
  line-height: 1.25;
}

.field-block > input,
.field-block > textarea,
.money-input {
  width: 100%;
  border: 1px solid #d8d9dc;
  border-radius: 2cqw;
  background: #fafafa;
  color: #202124;
  font-size: 3.65cqw;
}

.field-block > input {
  height: 11.5cqw;
  padding: 0 3.5cqw;
}

.field-block > textarea {
  min-height: 24cqw;
  padding: 3cqw 3.5cqw;
  line-height: 1.55;
  resize: vertical;
}

.field-block > input::placeholder,
.field-block > textarea::placeholder,
.money-input input::placeholder {
  color: #8c8e93;
  opacity: 1;
}

.field-block > input:focus,
.field-block > textarea:focus,
.money-input:focus-within {
  border-color: #ee3e63;
  background: #fff;
  outline: 2px solid rgb(238 62 99 / 0.16);
  outline-offset: 0;
}

.field-block.has-error > input,
.field-block.has-error > textarea,
.field-block.has-error .money-input,
.field-block.has-error .image-picker {
  border-color: #d7274d;
}

.money-input {
  display: grid;
  height: 11.5cqw;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding-left: 3cqw;
}

.money-input > span {
  color: #45464a;
  font-size: 3.7cqw;
}

.money-input input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 3cqw 0 1.5cqw;
  border: 0;
  background: transparent;
  color: #202124;
  outline: 0;
}

.money-input input::-webkit-inner-spin-button,
.money-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.field-help,
.field-error {
  min-height: 0;
  margin: 0;
  font-size: 3cqw;
  line-height: 1.45;
}

.field-help {
  color: #77797e;
}

.field-error {
  color: #c91f46;
}

.field-error:empty {
  display: none;
}

.file-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0 !important;
}

.image-picker {
  display: grid;
  min-height: 30cqw;
  place-content: center;
  justify-items: center;
  gap: 2cqw;
  border: 1px dashed #c8c9cd;
  border-radius: 2cqw;
  background: #fafafa;
  color: #55575c;
  font-size: 3.4cqw;
  cursor: pointer;
}

.image-picker-small {
  min-height: 18cqw;
}

.picker-plus {
  display: grid;
  width: 9cqw;
  height: 9cqw;
  place-items: center;
  border-radius: 50%;
  background: #ececef;
  color: #3b3c40;
  font-family: Arial, sans-serif;
  font-size: 6cqw;
  font-weight: 300;
  line-height: 1;
}

.cover-preview-wrap {
  position: relative;
  width: 44cqw;
}

.cover-preview-wrap img {
  display: block;
  width: 44cqw;
  aspect-ratio: 1;
  border-radius: 2cqw;
  object-fit: cover;
  background: #eee;
}

.merchant-preview-wrap {
  width: 30cqw;
}

.merchant-preview-wrap img {
  width: 30cqw;
  border-radius: 50%;
}

.preview-remove {
  width: 100%;
  margin-top: 2cqw;
  padding: 2.4cqw;
  border: 1px solid #d6d6d9;
  border-radius: 2cqw;
  background: #fff;
  color: #55575b;
  font-size: 3.2cqw;
}

.detail-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2cqw;
}

.detail-preview-item {
  position: relative;
  aspect-ratio: 1;
}

.detail-preview-item img {
  width: 100%;
  height: 100%;
  border-radius: 2cqw;
  object-fit: cover;
}

.detail-preview-item button {
  position: absolute;
  top: 1cqw;
  right: 1cqw;
  display: grid;
  width: 6.4cqw;
  height: 6.4cqw;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(22 22 24 / 0.82);
  color: #fff;
  font-size: 4cqw;
  line-height: 1;
}

.setup-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2.5cqw;
  padding: 1cqw 6cqw 0;
}

.setup-actions:has(.secondary-action[hidden]) {
  grid-template-columns: 1fr;
}

.primary-action,
.secondary-action {
  min-height: 12cqw;
  padding: 0 4cqw;
  border-radius: 2cqw;
  font-size: 3.7cqw;
  font-weight: 700;
  white-space: nowrap;
}

.primary-action {
  border: 0;
  background: #e93258;
  color: #fff;
}

.primary-action:disabled {
  background: #b8b8bc;
  color: #f3f3f4;
}

.secondary-action {
  border: 1px solid #d2d3d6;
  background: #fff;
  color: #44464a;
}

.form-status {
  min-height: 4cqw;
  margin: 0;
  padding: 0 6cqw;
  color: #c91f46;
  font-size: 3.2cqw;
  line-height: 1.4;
}

.commerce-search-header {
  display: grid;
  min-height: 20cqw;
  grid-template-columns: 10cqw minmax(0, 1fr) 13cqw;
  gap: 2cqw;
  align-items: center;
  padding: max(3cqw, env(safe-area-inset-top)) 4cqw 2.5cqw;
  background: #fff;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
}

.back-button {
  display: grid;
  width: 10cqw;
  height: 11cqw;
  place-items: center;
  padding: 0 0 1.2cqw;
  border: 0;
  background: transparent;
  color: #1f2023;
  font-family: Arial, sans-serif;
  font-size: 10cqw;
  font-weight: 300;
  line-height: 1;
}

.route-search-form {
  position: relative;
  display: grid;
  height: 11cqw;
  grid-template-columns: 7cqw minmax(0, 1fr) 8cqw;
  align-items: center;
  border-radius: 4cqw;
  background: #f1f2f4;
}

.input-search-mark,
.empty-search-mark {
  position: relative;
  display: block;
  width: 4.2cqw;
  height: 4.2cqw;
  margin-left: 2.4cqw;
  border: 0.55cqw solid currentcolor;
  border-radius: 50%;
  color: #66686d;
}

.input-search-mark::after,
.empty-search-mark::after {
  position: absolute;
  right: -1.8cqw;
  bottom: -1.1cqw;
  width: 2.3cqw;
  height: 0.55cqw;
  border-radius: 999px;
  background: currentcolor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.route-search-form input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 1cqw;
  border: 0;
  background: transparent;
  color: #2b2c2f;
  font-size: 4cqw;
  outline: 0;
}

.route-search-form input::placeholder {
  color: #818388;
  opacity: 1;
}

.scan-button,
.clear-search-button {
  display: grid;
  width: 7cqw;
  height: 7cqw;
  place-items: center;
  border: 0;
  background: transparent;
  color: #686a6f;
  font-family: Arial, sans-serif;
  font-size: 5cqw;
}

.clear-search-button {
  border-radius: 50%;
  font-size: 4.5cqw;
}

.search-submit-button {
  min-width: 13cqw;
  height: 10cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202124;
  font-size: 4.2cqw;
  font-weight: 600;
  white-space: nowrap;
}

.search-inline-error {
  min-height: 0;
  margin: 0;
  padding: 0 17cqw;
  background: #fff;
  color: #c91f46;
  font-size: 3.1cqw;
}

.search-inline-error:not(:empty) {
  min-height: 7cqw;
  padding-top: 1cqw;
}

.discovery-section {
  padding: 8cqw 5.5cqw 5cqw;
  background: #fff;
}

.discovery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discovery-heading h1 {
  margin: 0;
  font-size: 4.8cqw;
  line-height: 1.2;
}

.discovery-heading button {
  border: 0;
  background: transparent;
  color: #96989d;
  font-size: 3.6cqw;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5cqw 6cqw;
  margin-top: 6cqw;
}

.discovery-grid button {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #292a2d;
  font-size: 4cqw;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-grid button:first-child,
.discovery-grid button:nth-child(2) {
  color: #e93258;
}

.search-tabs,
.result-tabs {
  display: flex;
  min-height: 13cqw;
  align-items: center;
  gap: 6cqw;
  padding: 0 5.5cqw;
  overflow-x: auto;
  border-bottom: 1px solid #e5e5e7;
  background: #fff;
  scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar,
.result-tabs::-webkit-scrollbar,
.promotion-tabs::-webkit-scrollbar {
  display: none;
}

.search-tabs button,
.result-tabs button {
  position: relative;
  flex: none;
  height: 13cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5e6065;
  font-size: 3.8cqw;
  white-space: nowrap;
}

.search-tabs button.is-active,
.result-tabs button.is-active {
  color: #202124;
  font-weight: 700;
}

.search-tabs button.is-active {
  color: #e93258;
}

.result-tabs button.is-active::after {
  position: absolute;
  right: 20%;
  bottom: 1.6cqw;
  left: 20%;
  height: 0.8cqw;
  border-radius: 999px;
  background: #202124;
  content: "";
}

.hot-list {
  margin: 3cqw 4.5cqw 10cqw;
  padding: 4cqw;
  border-radius: 2cqw;
  background: #fff1f4;
}

.hot-lead {
  display: flex;
  gap: 3cqw;
  margin: 0 0 3cqw;
  font-size: 3.8cqw;
}

.hot-lead b {
  color: #e93258;
}

.hot-list ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hot-list li {
  display: grid;
  min-height: 12cqw;
  grid-template-columns: 8cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 1cqw;
  font-size: 3.8cqw;
}

.hot-list li b {
  color: #a6a8ad;
  font-size: 5cqw;
}

.hot-list li:nth-child(1) b { color: #e93258; }
.hot-list li:nth-child(2) b { color: #ff6539; }
.hot-list li:nth-child(3) b { color: #f0a20d; }

.hot-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-list li em {
  color: #a0a2a7;
  font-size: 3.3cqw;
  font-style: normal;
  white-space: nowrap;
}

.results-view {
  background: #f5f5f7;
}

.results-view .result-tabs {
  position: sticky;
  top: 20cqw;
  z-index: 4;
  gap: 9.5cqw;
}

.results-content {
  padding-bottom: max(8cqw, env(safe-area-inset-bottom));
}

.promotion-banner {
  position: relative;
  display: block;
  width: calc(100% - 9cqw);
  aspect-ratio: 970 / 284;
  margin: 5.5cqw 4.5cqw 4cqw;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2cqw;
  background: #f63759;
}

.promotion-banner img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotion-banner img[src=""],
.promotion-banner img:not([src]) {
  display: none;
}

.banner-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5cqw;
  color: #fff;
}

.banner-fallback b {
  font-size: 5cqw;
}

.banner-fallback em {
  padding: 2cqw 4cqw;
  border-radius: 999px;
  background: #ffe35e;
  color: #9b342e;
  font-size: 3.2cqw;
  font-style: normal;
  font-weight: 700;
}

.results-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 2cqw 4.5cqw 3.5cqw;
}

.results-summary h1 {
  margin: 0;
  font-size: 4.8cqw;
}

.results-summary span {
  color: #8a8c91;
  font-size: 3.2cqw;
}

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

.product-card {
  display: block;
  min-width: 0;
  padding: 0 0 3.5cqw;
  overflow: hidden;
  border: 0;
  border-radius: 2cqw;
  background: #fff;
  color: #242529;
  text-align: left;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ececef;
}

.product-card-copy {
  padding: 2.6cqw 2.6cqw 0;
}

.custom-product-badge,
.product-card-tag {
  display: inline-block;
  margin-right: 1cqw;
  padding: 0.5cqw 1.2cqw;
  border-radius: 1cqw;
  background: #e93258;
  color: #fff;
  font-size: 2.7cqw;
  font-weight: 700;
  vertical-align: 0.3cqw;
}

.product-card-tag {
  background: #fff0b0;
  color: #876000;
}

.product-card h2 {
  display: -webkit-box;
  min-height: 11.2cqw;
  margin: 0;
  overflow: hidden;
  font-size: 3.65cqw;
  font-weight: 600;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 1cqw;
  margin-top: 2cqw;
  color: #e93258;
}

.product-card-price strong {
  font-size: 5cqw;
}

.product-card-price strong small {
  font-size: 3cqw;
}

.product-card-price del,
.product-card-sales {
  color: #96989d;
  font-size: 2.8cqw;
}

.product-card-sales {
  display: block;
  margin-top: 1cqw;
}

.empty-results {
  display: grid;
  min-height: 105cqw;
  place-content: center;
  justify-items: center;
  padding: 12cqw 8cqw;
  text-align: center;
}

.empty-results .empty-search-mark {
  width: 16cqw;
  height: 16cqw;
  margin: 0 0 6cqw;
  border-width: 1.5cqw;
  color: #b3b5ba;
}

.empty-results .empty-search-mark::after {
  right: -5.5cqw;
  bottom: -3cqw;
  width: 7cqw;
  height: 1.5cqw;
}

.empty-results h1 {
  margin: 0;
  font-size: 5cqw;
}

.empty-results p {
  margin: 2cqw 0 5cqw;
  color: #85878c;
  font-size: 3.5cqw;
}

.empty-results button {
  min-width: 28cqw;
  height: 10cqw;
  border: 0;
  border-radius: 2cqw;
  background: #e93258;
  color: #fff;
  font-size: 3.5cqw;
  font-weight: 700;
}

.promotion-view {
  background: #f5f5f7;
}

.promotion-hero {
  min-height: 37cqw;
  padding: max(4cqw, env(safe-area-inset-top)) 4cqw 4cqw;
  background: rgb(227, 42, 23);
  color: #fff;
}

.promotion-topbar {
  display: grid;
  grid-template-columns: 8cqw auto minmax(0, 1fr) 8cqw;
  gap: 2cqw;
  align-items: center;
}

.promotion-back,
.promotion-share {
  display: grid;
  width: 8cqw;
  height: 10cqw;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 8cqw;
  line-height: 1;
}

.promotion-share {
  font-size: 5.5cqw;
}

.promotion-topbar strong {
  font-size: 5.7cqw;
  white-space: nowrap;
}

.promotion-search {
  display: flex;
  min-width: 0;
  height: 10.5cqw;
  align-items: center;
  gap: 2cqw;
  padding: 0 3cqw;
  border-radius: 3.5cqw;
  background: #fff;
  color: #55575c;
  font-size: 3.5cqw;
}

.promotion-search .input-search-mark {
  flex: none;
  margin-left: 0;
}

.promotion-hero > p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6cqw 1cqw 0;
  color: #fff1c5;
  font-size: 6cqw;
  font-weight: 800;
  line-height: 1;
}

.promotion-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  height: 13cqw;
  align-items: center;
  gap: 8cqw;
  padding: 0 4cqw;
  overflow-x: auto;
  border-radius: 3cqw 3cqw 0 0;
  background: #fff;
  scrollbar-width: none;
}

.promotion-tabs button {
  position: relative;
  flex: none;
  height: 13cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55575c;
  font-size: 3.8cqw;
  white-space: nowrap;
}

.promotion-tabs button.is-active {
  color: #202124;
  font-weight: 700;
}

.promotion-tabs button.is-active::after {
  position: absolute;
  right: 22%;
  bottom: 1.5cqw;
  left: 22%;
  height: 0.8cqw;
  border-radius: 999px;
  background: #202124;
  content: "";
}

.promotion-list {
  display: grid;
  gap: 2cqw;
  padding: 3cqw 3cqw max(8cqw, env(safe-area-inset-bottom));
}

.promotion-product {
  display: grid;
  grid-template-columns: 43cqw minmax(0, 1fr);
  gap: 3cqw;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2cqw;
  background: #fff;
  color: #242529;
  text-align: left;
}

.promotion-product > img {
  width: 43cqw;
  height: 43cqw;
  object-fit: cover;
  background: #eee;
}

.promotion-product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 3cqw 3cqw 2cqw 0;
}

.promotion-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw;
}

.promotion-labels span {
  padding: 0.6cqw 1.2cqw;
  border-radius: 0.8cqw;
  background: #ffe838;
  color: #3b3000;
  font-size: 2.6cqw;
  font-weight: 700;
}

.promotion-labels span:nth-child(2) {
  background: #e93258;
  color: #fff;
}

.promotion-product h2 {
  display: -webkit-box;
  margin: 2.2cqw 0 1.5cqw;
  overflow: hidden;
  font-size: 3.7cqw;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.promotion-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw;
  color: #bf7a21;
  font-size: 2.65cqw;
}

.promotion-perks span {
  padding: 0.5cqw 1cqw;
  border: 1px solid #e5c28c;
  border-radius: 0.8cqw;
}

.promotion-price {
  margin-top: auto;
  color: #e93258;
}

.promotion-price span {
  font-size: 2.9cqw;
}

.promotion-price strong {
  font-size: 5.3cqw;
}

.promotion-meta {
  margin: 0.5cqw 0 0;
  color: #93959a;
  font-size: 2.7cqw;
}

.product-view {
  overflow: hidden;
  background: #f3f3f5;
}

.product-topbar {
  position: absolute;
  top: max(3cqw, env(safe-area-inset-top));
  right: 3cqw;
  left: 3cqw;
  z-index: 5;
  display: grid;
  grid-template-columns: 10cqw minmax(0, 1fr) 10cqw;
  gap: 2cqw;
  align-items: center;
  pointer-events: none;
}

.round-icon-button {
  display: grid;
  width: 9.5cqw;
  height: 9.5cqw;
  place-items: center;
  padding: 0 0 1cqw;
  border: 0;
  border-radius: 50%;
  background: rgb(30 31 34 / 0.72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 8cqw;
  line-height: 1;
  pointer-events: auto;
}

.product-top-tabs {
  display: flex;
  min-width: 0;
  justify-content: center;
  gap: 4cqw;
  color: transparent;
  font-size: 3.3cqw;
}

.product-scroll {
  position: absolute;
  inset: 0;
  padding-bottom: calc(18cqw + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.product-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
}

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

.gallery-count {
  position: absolute;
  right: 4cqw;
  bottom: 4cqw;
  padding: 1.2cqw 2.3cqw;
  border-radius: 999px;
  background: rgb(31 32 35 / 0.65);
  color: #fff;
  font-size: 2.8cqw;
}

.product-info-block,
.service-strip,
.shop-block,
.review-block,
.detail-copy-block,
.recommend-section {
  margin-top: 2cqw;
  background: #fff;
}

.product-info-block {
  padding: 4cqw;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  color: #e93258;
}

.detail-price-row > span {
  font-size: 3cqw;
}

.detail-price-row strong {
  font-size: 7.4cqw;
  line-height: 1;
}

.detail-price-row strong small {
  font-size: 4cqw;
}

.detail-price-row em {
  padding: 0.8cqw 1.5cqw;
  border-radius: 1cqw;
  background: #fff0f3;
  font-size: 3cqw;
  font-style: normal;
}

.detail-original {
  margin: 1.5cqw 0 3cqw;
  color: #999ba0;
  font-size: 3cqw;
}

.product-info-block h1 {
  margin: 0;
  color: #202124;
  font-size: 4.5cqw;
  font-weight: 650;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5cqw;
  margin-top: 3cqw;
}

.detail-tags span {
  padding: 0.8cqw 1.5cqw;
  border-radius: 1cqw;
  background: #fff0f3;
  color: #d7264d;
  font-size: 2.8cqw;
}

.detail-sales {
  margin: 3cqw 0 0;
  color: #8b8d92;
  font-size: 3cqw;
}

.service-strip {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 2cqw;
  align-items: center;
  padding: 4cqw;
  color: #5e6065;
  font-size: 2.8cqw;
}

.service-strip b {
  color: #202124;
  font-size: 3.3cqw;
}

.shop-block {
  display: grid;
  grid-template-columns: 11cqw minmax(0, 1fr) auto;
  gap: 3cqw;
  align-items: center;
  padding: 4cqw;
}

.shop-mark {
  display: grid;
  width: 11cqw;
  height: 11cqw;
  place-items: center;
  border-radius: 2cqw;
  background: #e93258;
  color: #fff;
  font-size: 4.5cqw;
  font-weight: 700;
}

.shop-block > div:nth-child(2) {
  display: grid;
  gap: 1cqw;
  min-width: 0;
}

.shop-block strong {
  overflow: hidden;
  font-size: 3.8cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-block span {
  color: #8b8d92;
  font-size: 2.9cqw;
}

.shop-block button {
  min-width: 16cqw;
  height: 8cqw;
  border: 1px solid #e93258;
  border-radius: 2cqw;
  background: #fff;
  color: #e93258;
  font-size: 3.1cqw;
}

.review-block,
.detail-copy-block,
.recommend-section {
  padding: 4cqw;
}

.review-block > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-block h2,
.detail-copy-block h2,
.recommend-section h2 {
  margin: 0;
  color: #202124;
  font-size: 4.2cqw;
}

.review-block span {
  color: #e93258;
  font-size: 3cqw;
}

.review-block p,
.detail-copy-block p {
  margin: 3cqw 0 0;
  color: #55575c;
  font-size: 3.4cqw;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.detail-image-stack {
  display: grid;
  width: 100%;
  background: #fff;
}

.detail-image-stack img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 40cqw;
  object-fit: cover;
  background: #ececef;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2cqw;
  margin-top: 4cqw;
}

.recommend-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2cqw;
  background: #f6f6f7;
  color: #252629;
  text-align: left;
}

.recommend-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.recommend-card span {
  display: block;
  padding: 2cqw;
  overflow: hidden;
  font-size: 3cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: grid;
  min-height: calc(16cqw + env(safe-area-inset-bottom));
  grid-template-columns: 12cqw 12cqw minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5cqw;
  align-items: start;
  padding: 2cqw 3cqw max(2cqw, env(safe-area-inset-bottom));
  border-top: 1px solid #e4e4e6;
  background: #fff;
}

.purchase-bar button {
  height: 11cqw;
  border: 0;
  background: transparent;
  color: #48494d;
}

.purchase-bar button:not(.cart-button):not(.buy-button) {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6cqw;
  padding: 0;
}

.purchase-bar button > span {
  font-size: 4.5cqw;
  line-height: 1;
}

.purchase-bar button > small {
  font-size: 2.6cqw;
}

.purchase-bar .cart-button,
.purchase-bar .buy-button {
  border-radius: 2cqw;
  font-size: 3.5cqw;
  font-weight: 700;
  white-space: nowrap;
}

.purchase-bar .cart-button {
  background: #ffb52f;
  color: #4c2d00;
}

.purchase-bar .buy-button {
  background: #e93258;
  color: #fff;
}

/* Checkout */
.checkout-view {
  overflow: hidden;
  background: #f4f5f8;
  color: #282a31;
}

.checkout-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: grid;
  min-height: 16cqw;
  grid-template-columns: 12cqw minmax(0, 1fr) 22cqw;
  align-items: end;
  padding: max(3cqw, env(safe-area-inset-top)) 3cqw 2cqw;
  background: #fff;
}

.checkout-header h1 {
  margin: 0;
  color: #303139;
  font-size: 4.7cqw;
  font-weight: 600;
  text-align: center;
}

.checkout-header-button,
.checkout-header-actions button {
  height: 9cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #26272d;
}

.checkout-header-button {
  font-family: Arial, sans-serif;
  font-size: 8cqw;
  line-height: 1;
}

.checkout-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2.5cqw;
}

.checkout-header-actions button {
  min-width: 7cqw;
  font-size: 4.8cqw;
}

.checkout-scroll {
  position: absolute;
  inset: 16cqw 0 17cqw;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.checkout-scroll::-webkit-scrollbar {
  display: none;
}

.checkout-delivery-band,
.checkout-order-band,
.checkout-service-band,
.checkout-help-band {
  background: #fff;
}

.checkout-delivery-band {
  display: grid;
  gap: 3cqw;
  padding: 3.5cqw 4cqw 4cqw;
}

.checkout-delivery-row,
.checkout-address-row {
  display: grid;
  grid-template-columns: 6cqw minmax(0, 1fr) auto;
  gap: 2cqw;
  align-items: start;
}

.checkout-delivery-row > span,
.checkout-address-row > span {
  color: #30323a;
  font-size: 5cqw;
  text-align: center;
}

.checkout-delivery-row strong,
.checkout-address-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #24252b;
  font-size: 3.7cqw;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-address-row small {
  display: block;
  margin-top: 1cqw;
  color: #858895;
  font-size: 3cqw;
}

.checkout-address-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ee4960;
  font-size: 3.3cqw;
}

.checkout-order-band {
  margin-top: 2cqw;
  padding: 0 4cqw;
}

.checkout-store-row {
  display: grid;
  min-height: 16cqw;
  grid-template-columns: 10cqw minmax(0, 1fr) auto;
  gap: 2.5cqw;
  align-items: center;
  border-bottom: 1px solid #eff0f3;
}

.checkout-store-mark {
  display: grid;
  width: 9cqw;
  height: 9cqw;
  place-items: center;
  border-radius: 50%;
  background: #4b852d;
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 700;
}

.checkout-store-row > div {
  display: grid;
  min-width: 0;
  gap: 0.8cqw;
}

.checkout-store-row strong {
  overflow: hidden;
  font-size: 3.6cqw;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-store-row small {
  color: #8a8d99;
  font-size: 2.8cqw;
}

.checkout-store-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e7180;
  font-size: 3cqw;
}

.checkout-product-row {
  display: grid;
  grid-template-columns: 23cqw minmax(0, 1fr) auto;
  gap: 2.5cqw;
  padding: 3cqw 0;
}

.checkout-product-row > img {
  width: 23cqw;
  height: 23cqw;
  border-radius: 1.5cqw;
  object-fit: cover;
  background: #f0f1f3;
}

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

.checkout-product-copy h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 3.6cqw;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-product-copy h2::before {
  margin-right: 1cqw;
  padding: 0.4cqw 1cqw;
  border-radius: 0.6cqw;
  background: #f6df22;
  content: "宠粉节";
  font-size: 2.4cqw;
  font-weight: 700;
}

.checkout-product-copy p {
  margin: 1.4cqw 0;
  color: #878a95;
  font-size: 2.9cqw;
}

.checkout-product-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3cqw;
  color: #00a67b;
  font-size: 2.6cqw;
}

.checkout-product-price {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 1.5cqw;
  font-size: 3cqw;
}

.checkout-product-price strong {
  font-size: 3.5cqw;
}

.checkout-product-price span {
  color: #737681;
}

.checkout-cart-action {
  display: block;
  min-width: 20cqw;
  height: 8cqw;
  margin: 0 0 3cqw auto;
  padding: 0 3cqw;
  border: 0;
  border-radius: 1.2cqw;
  background: #f7f7f8;
  color: #44464f;
  font-size: 3.1cqw;
}

.checkout-price-list,
.checkout-order-meta {
  display: grid;
  gap: 3cqw;
  margin: 0;
  padding: 3cqw 0;
  border-top: 1px solid #f0f1f3;
}

.checkout-price-list > div,
.checkout-order-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3cqw;
}

.checkout-price-list dt,
.checkout-order-meta dt {
  color: #737683;
  font-size: 3.2cqw;
}

.checkout-price-list dd,
.checkout-order-meta dd {
  margin: 0;
  color: #25262c;
  font-size: 3.3cqw;
  text-align: right;
}

.checkout-price-list .discount {
  color: #ee3f56;
}

.checkout-due-row dt span {
  color: #ed3d55;
}

.checkout-due-row dd {
  font-size: 5.2cqw;
  font-weight: 700;
}

.checkout-order-meta {
  gap: 2.5cqw;
}

.checkout-order-meta dd {
  color: #7d8190;
  font-size: 2.9cqw;
}

.checkout-contact {
  width: 100%;
  height: 11cqw;
  border: 0;
  border-top: 1px solid #f0f1f3;
  background: #fff;
  color: #707481;
  font-size: 3.2cqw;
}

.checkout-service-band {
  margin-top: 2cqw;
  padding: 4cqw;
}

.checkout-service-band h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 3.5cqw;
  font-size: 3.8cqw;
}

.checkout-service-band h2 span {
  padding: 1cqw 2cqw;
  border-radius: 999px;
  background: #e7faf5;
  color: #40ad95;
  font-size: 2.6cqw;
  font-weight: 500;
}

.checkout-service-band > div {
  display: flex;
  min-height: 9cqw;
  align-items: center;
  justify-content: space-between;
  color: #727581;
  font-size: 3.1cqw;
}

.checkout-service-band em {
  color: #848792;
  font-style: normal;
}

.checkout-service-band > button {
  padding: 2cqw 0 0;
  border: 0;
  background: transparent;
  color: #5f626d;
  font-size: 3cqw;
}

.checkout-help-band {
  display: flex;
  min-height: 14cqw;
  align-items: center;
  justify-content: space-between;
  margin-top: 2cqw;
  padding: 0 4cqw;
  color: #52545d;
  font-size: 3.2cqw;
}

.checkout-help-band button {
  border: 0;
  background: transparent;
  color: #747784;
  font-size: 3.2cqw;
}

.checkout-recommend-section {
  padding: 4cqw 2cqw 6cqw;
}

.checkout-recommend-section h2 {
  margin: 0 2cqw 3cqw;
  font-size: 4cqw;
}

.checkout-recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2cqw;
}

.checkout-recommend-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 1.5cqw;
  background: #fff;
}

.checkout-recommend-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.checkout-recommend-card h3 {
  display: -webkit-box;
  min-height: 10cqw;
  margin: 2cqw 2cqw 1cqw;
  overflow: hidden;
  font-size: 3.2cqw;
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-recommend-card p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding: 0 2cqw 2.5cqw;
  color: #ed3654;
}

.checkout-recommend-card p strong {
  font-size: 4cqw;
}

.checkout-recommend-card p span {
  color: #8c8f98;
  font-size: 2.6cqw;
}

.checkout-action-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 8;
  display: grid;
  min-height: calc(17cqw + env(safe-area-inset-bottom));
  grid-template-columns: 13cqw minmax(0, 1fr) 32cqw;
  gap: 2cqw;
  align-items: center;
  padding: 2cqw 3cqw max(2cqw, env(safe-area-inset-bottom));
  border-top: 1px solid #e4e5e9;
  background: #fff;
}

.checkout-cancel {
  display: grid;
  place-items: center;
  gap: 0.5cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555861;
}

.checkout-cancel span {
  font-size: 5cqw;
}

.checkout-cancel small {
  font-size: 2.6cqw;
}

.checkout-action-bar > div {
  display: grid;
  justify-items: end;
  gap: 0.5cqw;
}

.checkout-action-bar > div span {
  font-size: 3.1cqw;
}

.checkout-action-bar > div strong {
  color: #ec3651;
  font-size: 4.5cqw;
}

.checkout-action-bar > div small {
  color: #ec3651;
  font-size: 2.8cqw;
}

.checkout-pay-button {
  display: grid;
  height: 12cqw;
  place-content: center;
  gap: 0.5cqw;
  border: 0;
  border-radius: 1.8cqw;
  background: #f52e3b;
  color: #fff;
}

.checkout-pay-button strong {
  font-size: 3.4cqw;
}

.checkout-pay-button small {
  font-size: 2.4cqw;
}

.checkout-pay-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgb(20 24 32 / 0.16);
}

.payment-launch-video {
  display: block;
  /* Keep the square source legible while scaling it to the available phone
   * canvas. The height cap prevents short mobile viewports from overflowing. */
  width: min(30cqw, 24dvh, 132px);
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  aspect-ratio: 1;
  border: 0;
  border-radius: clamp(10px, 3.2cqw, 14px);
  background: #414141;
  box-shadow: 0 2cqw 7cqw rgb(31 37 48 / 0.18);
  object-fit: cover;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .payment-launch-video {
    display: none;
  }
}

/* Simulated Alipay page */
.payment-view {
  overflow: hidden;
  background: #344663;
  color: #25282e;
}

.payment-brand-zone {
  position: absolute;
  inset: 0 0 auto;
  height: 55cqw;
  background: #344663;
  color: #fff;
  text-align: center;
}

.payment-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(3cqw, env(safe-area-inset-top)) 6cqw 0;
  font-size: 3.2cqw;
}

.payment-alipay-logo {
  display: grid;
  width: 16cqw;
  height: 16cqw;
  place-items: center;
  margin: 8cqw auto 3cqw;
  border-radius: 3cqw;
  background: #1677ff;
  color: #fff;
  font-size: 10cqw;
}

.payment-brand-zone > p {
  margin: 0;
  font-size: 4cqw;
}

.payment-panel {
  position: absolute;
  inset: 52cqw 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 4cqw max(8cqw, env(safe-area-inset-bottom));
  border-radius: 6cqw 6cqw 0 0;
  background: #f2f7ff;
  scrollbar-width: none;
}

.payment-panel::-webkit-scrollbar {
  display: none;
}

.payment-panel-topbar {
  display: flex;
  min-height: 15cqw;
  align-items: center;
  justify-content: space-between;
}

.payment-panel-topbar button {
  width: 10cqw;
  height: 10cqw;
  padding: 0 0 1cqw;
  border: 0;
  background: transparent;
  color: #25272d;
  font-size: 7cqw;
}

.payment-panel-topbar span {
  color: #3a608a;
  font-size: 3.6cqw;
}

.payment-merchant {
  margin: 0;
  font-size: 4cqw;
  text-align: center;
}

.payment-total {
  display: block;
  margin: 2cqw 0 0;
  color: #191b20;
  font-size: 10cqw;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}

.payment-points {
  margin: 2cqw 0 7cqw;
  color: #f26b26;
  font-size: 3.5cqw;
  text-align: center;
}

.payment-breakdown {
  display: grid;
  gap: 3cqw;
  margin: 0 0 5cqw;
}

.payment-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-breakdown dt {
  color: #8c919b;
  font-size: 3.5cqw;
}

.payment-breakdown dd {
  margin: 0;
  font-size: 3.5cqw;
}

.payment-breakdown .payment-saving {
  color: #f1662d;
}

.payment-account-list {
  overflow: hidden;
  border-radius: 3cqw;
  background: #fff;
}

.payment-account-option {
  display: grid;
  width: 100%;
  min-height: 14cqw;
  grid-template-columns: 9cqw minmax(0, 1fr) 7cqw;
  gap: 1.5cqw;
  align-items: center;
  padding: 0 4cqw;
  border: 0;
  background: #fff;
  color: #33353c;
  text-align: left;
}

.payment-account-option.is-selected {
  margin: 2cqw;
  width: calc(100% - 4cqw);
  border-radius: 2.5cqw;
  background: #eff7ff;
}

.payment-account-option strong {
  overflow: hidden;
  font-size: 3.5cqw;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-account-option em {
  margin-left: 1cqw;
  padding: 0.5cqw 1cqw;
  border: 1px solid #efc3b7;
  border-radius: 0.7cqw;
  color: #ed6949;
  font-size: 2.6cqw;
  font-style: normal;
}

.payment-account-option i {
  justify-self: end;
  color: #168df2;
  font-size: 5cqw;
  font-style: normal;
}

.payment-account-more {
  width: 100%;
  min-height: 10cqw;
  border: 0;
  background: #fff;
  color: #31343b;
  font-size: 5cqw;
}

.final-payment-button {
  display: block;
  width: 70cqw;
  height: 13cqw;
  margin: 10cqw auto 0;
  border: 0;
  border-radius: 999px;
  background: #168df2;
  color: #fff;
  font-size: 4.5cqw;
}

.final-payment-button:disabled {
  opacity: 0.72;
}

.face-payment-overlay,
.payment-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 6cqw;
  background: rgb(13 20 32 / 0.5);
  backdrop-filter: blur(1.8cqw);
  -webkit-backdrop-filter: blur(1.8cqw);
}

.face-id-card,
.payment-success-card {
  width: min(72cqw, 310px);
  padding: 8cqw 6cqw 7cqw;
  border-radius: 7cqw;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 5cqw 16cqw rgb(0 0 0 / 0.24);
  text-align: center;
}

.face-id-glyph {
  position: relative;
  width: 30cqw;
  height: 30cqw;
  margin: 0 auto 5cqw;
  overflow: visible;
  isolation: isolate;
}

.face-payment-lottie,
.face-id-check-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.face-payment-lottie {
  opacity: 1;
  transition: opacity 180ms ease, transform 240ms ease;
}

.face-id-check-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.face-id-check-icon {
  color: #18b768;
  opacity: 0;
  transform: scale(0.68);
  transition: opacity 180ms ease, transform 300ms cubic-bezier(.2,.9,.25,1.25);
}

.face-id-check-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.face-id-card h2,
.payment-success-card h2 {
  margin: 0;
  color: #17191e;
  font-size: 5cqw;
  letter-spacing: 0;
}

.face-id-card p,
.payment-success-card p {
  margin: 2cqw 0 0;
  color: #7b808a;
  font-size: 3.4cqw;
}

.face-payment-overlay.is-verified .face-payment-lottie {
  opacity: 0;
  transform: scale(0.82);
}

.face-payment-overlay.is-verified .face-id-check-icon {
  opacity: 1;
  transform: scale(1);
}

.face-payment-overlay.is-verified .face-id-check-icon path:first-child {
  animation: face-id-path-draw 0.38s ease-out forwards;
}

.face-payment-overlay.is-verified .face-id-check-icon path:last-child {
  animation: face-id-path-draw 0.32s ease-out 160ms forwards;
}

.payment-success-overlay {
  background: rgb(242 247 255 / 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.payment-success-card {
  animation: payment-success-in 320ms cubic-bezier(.2,.9,.25,1.15) both;
}

.payment-success-check {
  display: grid;
  width: 19cqw;
  height: 19cqw;
  place-items: center;
  margin: 0 auto 5cqw;
  border-radius: 50%;
  background: #18b768;
  color: #fff;
  font-size: 11cqw;
  line-height: 1;
}

.payment-success-card > strong {
  display: block;
  margin-top: 3cqw;
  color: #17191e;
  font-size: 7cqw;
  font-weight: 600;
}

.payment-success-progress {
  display: block;
  width: 34cqw;
  height: 1cqw;
  margin: 5cqw auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: #e0e4ea;
}

.payment-success-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #168df2;
  transform-origin: left;
  animation: payment-success-progress 1.6s linear both;
}

@keyframes face-id-path-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes payment-success-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

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

.app-shell:not(.route-home) .toast {
  bottom: 18cqw;
}

@media (max-width: 360px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

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