:root {
  --sky: #6ed8ff;
  --water: #20c1e9;
  --blue: #009ee5;
  --deep-blue: #0069aa;
  --green: #00b66b;
  --leaf: #66d84f;
  --lime: #c2ee4a;
  --gold: #ffc636;
  --orange: #ff8b27;
  --ink: #11494a;
  --muted: #4a827f;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 60px rgba(0, 110, 105, 0.22);
  /* Rollback: use --scene-bg-legacy and --scene-layer-legacy to restore the previous bright flat background. */
  --ps-bg-top: 157 218 243;
  --ps-bg-mid: 63 159 142;
  --ps-bg-bottom: 169 223 117;
  --ps-bg-glow: 247 255 255;
  --ps-bg-accent: 242 209 107;
  --ps-bg-forest: 47 118 94;
  --scene-bg-legacy: linear-gradient(180deg, #65cdfc 0%, #dff8ff 42%, #94e46a 100%);
  --scene-bg-dark-forest: linear-gradient(180deg, rgb(var(--ps-bg-top)) 0%, rgb(var(--ps-bg-mid)) 48%, rgb(var(--ps-bg-bottom)) 100%);
  --scene-bg: var(--scene-bg-dark-forest);
  --scene-layer-legacy:
    linear-gradient(116deg, transparent 0 18%, rgba(255, 255, 255, 0.34) 28%, transparent 46%),
    linear-gradient(72deg, transparent 0 42%, rgba(255, 255, 255, 0.3) 55%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(4, 99, 92, 0) 0 58px, rgba(4, 99, 92, 0.08) 70px 78px, rgba(4, 99, 92, 0) 96px 138px),
    linear-gradient(180deg, #65cdfc 0%, #dff8ff 38%, #bdf1b5 62%, #94e46a 100%);
  --scene-layer-dark-forest:
    radial-gradient(circle at 18% 9%, rgb(var(--ps-bg-glow) / 0.36), transparent 25%),
    radial-gradient(circle at 82% 12%, rgb(var(--ps-bg-accent) / 0.14), transparent 28%),
    radial-gradient(circle at 52% 68%, rgb(var(--ps-bg-bottom) / 0.24), transparent 38%),
    linear-gradient(114deg, transparent 0 16%, rgb(var(--ps-bg-glow) / 0.18) 29%, transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 54px, rgb(var(--ps-bg-forest) / 0.18) 68px 82px, transparent 100px 152px),
    linear-gradient(180deg, rgb(var(--ps-bg-top)) 0%, rgb(var(--ps-bg-mid)) 46%, rgb(var(--ps-bg-bottom)) 100%);
  --scene-layer: var(--scene-layer-dark-forest);
  --scene-before-legacy:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 44%),
    repeating-linear-gradient(92deg, transparent 0 42px, rgba(4, 92, 77, 0.13) 48px 54px, transparent 64px 118px),
    linear-gradient(180deg, transparent 0 48%, rgba(255, 255, 255, 0.2) 58%, rgba(35, 200, 146, 0.16) 76%, rgba(90, 220, 95, 0.28) 100%);
  --scene-before-dark-forest:
    radial-gradient(circle at 20% 18%, rgb(var(--ps-bg-glow) / 0.22), transparent 26%),
    radial-gradient(circle at 75% 22%, rgb(var(--ps-bg-accent) / 0.12), transparent 30%),
    radial-gradient(circle at 64% 78%, rgb(var(--ps-bg-bottom) / 0.16), transparent 28%),
    repeating-linear-gradient(88deg, rgb(var(--ps-bg-forest) / 0.24) 0 8px, transparent 8px 66px, rgb(var(--ps-bg-forest) / 0.18) 66px 76px, transparent 76px 142px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgb(var(--ps-bg-top) / 0.08) 36%, rgb(var(--ps-bg-forest) / 0.14) 100%);
  --scene-before: var(--scene-before-dark-forest);
  --forest-band-legacy:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(105, 228, 134, 0.48) 58%, rgba(128, 228, 82, 0.88) 100%),
    repeating-linear-gradient(86deg, rgba(5, 93, 74, 0) 0 36px, rgba(5, 93, 74, 0.18) 46px 58px, rgba(5, 93, 74, 0) 70px 128px);
  --forest-band-dark-forest:
    linear-gradient(180deg, transparent 0%, rgb(var(--ps-bg-glow) / 0.12) 20%, rgb(var(--ps-bg-mid) / 0.42) 58%, rgb(var(--ps-bg-forest) / 0.62) 100%),
    repeating-linear-gradient(84deg, transparent 0 34px, rgb(var(--ps-bg-forest) / 0.3) 44px 58px, transparent 70px 132px),
    radial-gradient(ellipse at 20% 68%, rgb(var(--ps-bg-bottom) / 0.32), transparent 38%),
    radial-gradient(ellipse at 82% 74%, rgb(var(--ps-bg-accent) / 0.14), transparent 34%);
  --forest-band-bg: var(--forest-band-dark-forest);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--scene-bg);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.scene {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  background: var(--scene-layer);
  background-attachment: fixed;
}

.scene::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--scene-before);
  filter: blur(15px) saturate(1.18);
  opacity: 0.9;
  z-index: 0;
}

.forest-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56vh;
  pointer-events: none;
  background: var(--forest-band-bg);
  clip-path: none;
  filter: blur(18px) saturate(1.25);
  opacity: 0.88;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.brand-nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  color: var(--deep-blue);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-logo span {
  color: var(--deep-blue);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

@media (min-width: 981px) {
  .page-pc .brand-logo {
    min-width: 250px;
  }

  .page-pc .brand-logo span {
    font-size: 24px;
  }
}

.nav-links {
  display: flex;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
}

.nav-cart-pill {
  gap: 8px;
  box-shadow: 0 12px 26px rgba(0, 120, 110, 0.16);
}

.nav-cart-pill b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1;
}

.page-pc {
  padding-bottom: 116px;
}

@media (min-width: 981px) {
  body[data-page="product"].page-pc {
    padding-bottom: 56px;
  }

  body[data-page="product"] .bottom-dock {
    display: none;
  }
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  width: min(560px, calc(100% - 32px));
  min-height: 76px;
  padding: 6px 10px;
  transform: translateX(-50%);
  border-radius: 28px;
}

.dock-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 60px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.dock-icon,
.dock-star {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--deep-blue);
  font-size: 19px;
  line-height: 1;
}

.dock-item.active {
  color: var(--blue);
}

.dock-item.active .dock-icon {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  box-shadow: 0 8px 18px rgba(0, 116, 170, 0.2);
}

.dock-record {
  position: relative;
  min-height: 76px;
  margin-top: -26px;
  color: var(--deep-blue);
}

.dock-record .dock-star {
  width: 62px;
  height: 62px;
  color: var(--green);
  background: transparent;
  text-shadow: 0 12px 24px rgba(0, 96, 96, 0.22);
  font-size: 44px;
}

.dock-record.active .dock-star {
  color: var(--gold);
  text-shadow: 0 12px 22px rgba(150, 98, 0, 0.24);
}

.dock-label {
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 40px;
  align-items: center;
  min-height: 500px;
  padding: 34px 0 28px;
}

.hero-panel {
  padding: 28px;
  border-radius: 30px;
}

.eyebrow {
  color: var(--deep-blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 14px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  margin-top: 14px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-art {
  position: relative;
  min-height: 390px;
}

.mascot-card {
  position: absolute;
  inset: 0;
  border-radius: 48px;
  overflow: hidden;
}

.mascot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(1.05);
}

.float-logo {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 92px;
  height: 92px;
  padding: 14px;
  border-radius: 28px;
}

.float-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pc-home-hero {
  position: relative;
  padding: 34px 0 18px;
}

.pc-service-swiper {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 42px;
  background: #0d5c5c;
  box-shadow: 0 34px 72px rgba(0, 92, 100, .26);
}

.pc-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pcHeroCycle var(--carousel-duration, 12.6s) infinite;
  animation-delay: var(--slide-delay, 0s);
}

.pc-hero-slide:first-child {
  opacity: 1;
}

.pc-hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(1.12) brightness(1.11);
}

.pc-hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: none;
  padding: 30px min(34vw, 420px) 46px 40px;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,126,142,.58) 0%, rgba(21,164,170,.34) 46%, rgba(190,245,236,.18) 76%, rgba(255,255,255,.06) 100%);
  box-shadow: 0 -14px 34px rgba(0,80,90,.12);
}

.pc-hero-kicker {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
}

.pc-hero-copy h1 {
  margin-top: 12px;
  max-width: 680px;
  font-size: 52px;
  line-height: 1.08;
  text-shadow: 0 6px 18px rgba(0,64,74,.34);
}

.pc-hero-copy p {
  margin-top: 16px;
  max-width: 640px;
  color: rgba(255,255,255,.93);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.pc-hero-copy .hero-actions .btn {
  border-color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.18);
  color: #fff;
}

.pc-hero-copy .hero-actions .btn.primary {
  color: #113f42;
  background: var(--gold);
}

.pc-hero-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.pc-hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  animation: pcHeroDot var(--carousel-duration, 12.6s) infinite;
  animation-delay: var(--slide-delay, 0s);
}

.pc-hero-service-map {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, calc(100% - 40px));
  margin: -26px auto 0;
}

.pc-hero-service-map article {
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92) 0%, rgba(224,251,244,.84) 60%, rgba(255,244,204,.7) 100%);
  box-shadow: 0 18px 40px rgba(0,122,130,.13);
}

.pc-hero-service-map strong,
.pc-hero-service-map span {
  display: block;
}

.pc-hero-service-map strong {
  color: var(--deep-blue);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 1000;
}

.pc-hero-service-map span {
  margin-top: 10px;
  color: #4a827f;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 800;
}

.pc-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 900;
}

.pc-entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pc-entry-card {
  min-height: 210px;
}

.page-pc .service-card .image-button-body,
.page-pc .pc-entry-card .image-button-body {
  border-color: rgba(255,255,255,.9);
  background:
    linear-gradient(115deg, rgba(249,255,251,.92) 0%, rgba(224,251,244,.82) 48%, rgba(255,244,204,.74) 100%);
  box-shadow: 0 18px 42px rgba(0,65,72,.18);
}

.page-pc .service-card .image-button-body {
  min-height: 106px;
  padding-right: 82px;
}

.page-pc .service-card h3,
.page-pc .pc-entry-card h3 {
  color: var(--deep-blue);
  font-size: 22px;
  font-weight: 1000;
}

.page-pc .service-card p,
.page-pc .pc-entry-card p {
  display: -webkit-box;
  overflow: hidden;
  color: #4a827f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-pc [data-home-services] .service-card,
.page-pc [data-service-cards] .service-card {
  cursor: pointer;
}

.page-pc [data-home-services] .service-card .image-button-body,
.page-pc [data-service-cards] .service-card .image-button-body {
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 104px;
  padding: 18px 96px 18px 20px;
  border: 0;
  border-radius: 0 0 26px 26px;
  background: linear-gradient(90deg, rgba(0,112,130,.74) 0%, rgba(0,166,188,.48) 46%, rgba(126,225,232,.22) 76%, rgba(126,225,232,.1) 100%);
  box-shadow: 0 -18px 44px rgba(0,33,42,.16);
  backdrop-filter: none;
}

.page-pc [data-home-services] .service-card h3,
.page-pc [data-service-cards] .service-card h3 {
  color: #fff;
  text-shadow: 0 8px 20px rgba(0,33,46,.34);
}

.page-pc [data-home-services] .service-card p,
.page-pc [data-service-cards] .service-card p {
  color: rgba(255,255,255,.9);
}

.page-pc [data-home-services] .floating-service-btn,
.page-pc [data-service-cards] .floating-service-btn {
  right: 16px;
  bottom: 20px;
  min-width: 62px;
  min-height: 34px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255,255,255,.76);
  color: #113f42;
  background: rgba(255,198,54,.96);
  box-shadow: 0 12px 28px rgba(255,198,54,.2);
  white-space: nowrap;
}

.page-pc [data-home-services] .floating-service-btn::after,
.page-pc [data-service-cards] .floating-service-btn::after {
  margin-left: 7px;
  font-size: 18px;
  line-height: 1;
  content: "›";
}

.page-pc [data-home-services] .floating-service-btn:hover,
.page-pc [data-service-cards] .floating-service-btn:hover {
  color: #113f42;
  background: var(--gold);
  border-color: rgba(255,255,255,.92);
}

.mall-hero-section {
  padding: 34px 0 18px;
}

.mall-carousel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 38px;
  background: #dff8ef;
  box-shadow: 0 30px 68px rgba(0, 122, 130, .2);
}

.mall-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: pcHeroCycle var(--carousel-duration, 12.6s) infinite;
  animation-delay: var(--slide-delay, 0s);
}

.mall-slide:first-child {
  opacity: 1;
}

.mall-slide img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  filter: saturate(1.12) brightness(1.06);
}

.mall-slide::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 54%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 112, 130, .42) 56%, rgba(0, 78, 92, .68) 100%);
  content: "";
}

.mall-slide-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 30px min(33vw, 410px) 44px 40px;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0, 50, 60, .32);
}

.mall-slide-kicker {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
}

.mall-slide-copy h1 {
  margin-top: 12px;
  max-width: 660px;
  font-size: 50px;
  line-height: 1.08;
}

.mall-slide-copy p {
  margin-top: 14px;
  max-width: 720px;
  color: rgba(255,255,255,.94);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 850;
}

.mall-slide-copy .hero-actions .btn {
  border-color: rgba(255,255,255,.62);
  color: #fff;
  background: rgba(255,255,255,.18);
}

.mall-slide-copy .hero-actions .btn.primary {
  color: #113f42;
  background: var(--gold);
}

.mall-carousel-dots {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.mall-carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  animation: pcHeroDot var(--carousel-duration, 12.6s) infinite;
  animation-delay: var(--slide-delay, 0s);
}

@keyframes pcHeroCycle {
  0%,
  28% {
    opacity: 1;
    transform: scale(1);
  }
  34%,
  100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

@keyframes pcHeroDot {
  0%,
  28% {
    width: 24px;
    background: var(--gold);
  }
  34%,
  100% {
    width: 9px;
    background: rgba(255,255,255,.56);
  }
}

@media (min-width: 981px) {
  .page-pc .bottom-dock {
    display: none;
  }
}

.section {
  padding: 34px 0;
  scroll-margin-top: 92px;
  content-visibility: auto;
  contain-intrinsic-size: 620px;
}

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

.section-head h2 {
  font-size: clamp(26px, 2.8vw, 40px);
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

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

.image-button {
  position: relative;
  min-height: 224px;
  overflow: hidden;
  border-radius: 26px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.page-pc .image-button {
  height: 224px;
}

.image-button img {
  width: 100%;
  height: 100%;
  min-height: 224px;
  object-fit: cover;
  display: block;
  filter: saturate(1.22) brightness(1.08);
}

.image-button-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px) saturate(1.18);
}

.tag {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.image-button h3 {
  font-size: 19px;
}

.image-button p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
}

.panel {
  padding: 22px;
  border-radius: 26px;
}

.stat-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.stat {
  flex: 1;
  min-width: 150px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  font: inherit;
  text-align: left;
}

.stat[data-user-summary-target] {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.stat[data-user-summary-target]:hover,
.stat[data-user-summary-target]:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(0, 122, 130, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.stat strong {
  display: block;
  color: var(--deep-blue);
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.timeline-item strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--deep-blue);
  background: var(--gold);
  font-size: 13px;
  line-height: 1;
}

.timeline-item span {
  color: var(--deep-blue);
  font-weight: 800;
  line-height: 1.5;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.35);
}

.cube-world {
  display: grid;
  grid-template-columns: repeat(8, 42px);
  gap: 8px;
  justify-content: center;
  padding: 34px;
}

.cube {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  transform: skewY(-12deg);
  background: var(--green);
  box-shadow: 8px 8px 0 rgba(0, 107, 120, 0.22);
}

.site-footer {
  padding: 42px 0 54px;
  color: var(--muted);
  text-align: center;
}

.site-footer a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.legal-page {
  min-height: 100vh;
}

.legal-wrap {
  padding: 34px 0 72px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
}

.legal-document {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 8px;
}

.legal-document h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
}

.legal-document h2 {
  margin: 30px 0 10px;
  font-size: 22px;
}

.legal-document p {
  color: #315f5d;
  line-height: 1.85;
}

.legal-document a {
  color: var(--blue);
  font-weight: 900;
}

.legal-updated {
  margin-bottom: 24px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 34px;
  padding: 32px;
  border-radius: 32px;
}

.page-hero h1 {
  max-width: 760px;
}

.page-hero .hero-copy {
  max-width: 820px;
}

.page-hero-actions,
.section-more,
.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-more {
  justify-content: center;
  margin-top: 22px;
}

.shop-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  color: var(--deep-blue);
  font-weight: 900;
}

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

.product-thumb-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 26px;
}

.product-thumb-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.18) brightness(1.05);
}

.shop-logo-fallback {
  background: rgba(231, 247, 242, .88) url("/brand-v3/assets/parrotstar-logo.png") center / min(46%, 120px) no-repeat;
}

.product-price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 900;
}

.product-video-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 107, 120, 0.82);
  font-size: 12px;
  font-weight: 900;
}

.product-thumb-info {
  padding: 14px 14px 58px;
}

.product-thumb-info h3 {
  font-size: 18px;
  line-height: 1.25;
}

.product-thumb-info p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thumb-action {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 42px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 10px 24px rgba(0, 110, 105, 0.16);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.thumb-detail {
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.thumb-cart {
  right: 14px;
  width: 44px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
  font-size: 28px;
  line-height: 1;
}

.thumb-cart:disabled,
.thumb-action[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

body[data-page="product"] .product-detail-layout,
body[data-page="product"] .product-story {
  width: min(980px, calc(100% - 64px));
}

body[data-page="product"] .product-detail-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
}

@media (min-width: 981px) {
  body[data-page="product"] .product-detail-media {
    aspect-ratio: 3 / 4;
    max-height: none;
  }

  body[data-page="product"] .product-detail-video video {
    max-height: 260px;
  }
}

.product-detail-media-stack {
  display: grid;
  align-self: start;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  gap: 14px;
}

.product-detail-media,
.product-detail-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}

.product-detail-media {
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: none;
  min-height: 0;
  background: rgba(255, 255, 255, .72);
}

.product-media-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-media-track::-webkit-scrollbar {
  display: none;
}

.product-media-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, .72);
}

.product-media-slide video,
.product-media-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media-kind {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 96, 110, .82);
  font-size: 13px;
  font-weight: 900;
}

.product-media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
}

.product-media-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 14px;
  background: rgba(255,255,255,.64);
  opacity: 1;
}

.product-media-thumb.active {
  border-color: var(--gold);
  opacity: 1;
  box-shadow: 0 10px 24px rgba(0, 110, 105, .16);
}

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

.product-media-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 96, 110, .78);
  font-size: 11px;
  font-weight: 900;
}

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

.product-detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.62);
}

.academy-hub-grid,
.academy-article-grid {
  display: grid;
  gap: 18px;
}

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

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

.academy-section-head {
  align-items: flex-end;
}

.academy-category-tabs {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(560px, 100%);
}

.academy-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(0, 116, 170, .14);
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.72);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 122, 130, .06);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.academy-category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 116, 170, .24);
  background: rgba(255,255,255,.9);
}

.academy-category-tab.active {
  border-color: var(--gold);
  color: #113f42;
  background: var(--gold);
  box-shadow: 0 12px 26px rgba(255, 198, 54, .2);
}

.academy-hub-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 110, 105, .16);
}

.academy-hub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.academy-hub-card::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 62%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 112, 130, .5) 56%, rgba(0, 82, 96, .72) 100%);
  content: "";
}

.academy-hub-card .tag,
.academy-hub-card strong,
.academy-hub-card p {
  position: relative;
  z-index: 2;
}

.academy-hub-card strong {
  display: block;
  margin-top: 118px;
  font-size: 28px;
  line-height: 1.15;
}

.academy-hub-card p {
  margin-top: 10px;
  max-width: 520px;
  color: rgba(255,255,255,.9);
  font-weight: 800;
}

.academy-article {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(0, 122, 130, .11);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.academy-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 122, 130, .16);
}

.academy-article img {
  width: 148px;
  height: 142px;
  border-radius: 18px;
  object-fit: contain;
  padding: 8px;
  background: rgba(238, 255, 250, .82);
}

.academy-article h3 {
  margin-top: 8px;
  color: var(--deep-blue);
  font-size: 19px;
  line-height: 1.25;
}

.academy-article p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.academy-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.academy-card-copy .tag {
  position: static;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.academy-read-more {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 999px;
  color: #113f42;
  background: var(--gold);
  font-weight: 900;
}

.academy-reader {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 122, 130, .14);
}

.academy-reader-cover {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #dff5ef;
}

.academy-reader-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.academy-reader-main {
  padding: clamp(22px, 4vw, 42px);
}

.academy-reader h1 {
  max-width: 920px;
  margin-top: 8px;
  color: var(--deep-blue);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.academy-reader-subtitle {
  max-width: 880px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
}

.academy-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.academy-reader-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--article-accent);
  background: rgba(11, 139, 143, .08);
  font-weight: 900;
}

.academy-reader-body {
  max-width: 880px;
  margin-top: 26px;
  color: var(--article-color);
  font-size: var(--article-font-size);
  line-height: 1.86;
}

.academy-reader-body h2,
.academy-reader-body h3 {
  margin: 28px 0 10px;
  color: var(--article-accent);
  line-height: 1.25;
}

.academy-reader-body p {
  margin: 12px 0;
}

.academy-reader-body ul,
.academy-reader-body ol {
  margin: 12px 0 0 22px;
  padding: 0;
}

.academy-reader-body blockquote {
  margin: 18px 0;
}

.academy-reader-body img,
.academy-reader-body video,
.academy-reader-video {
  display: block;
  width: 100%;
  max-height: 520px;
  margin: 18px 0;
  border-radius: 18px;
  object-fit: cover;
  background: #073b40;
}

.academy-reader-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.academy-reader-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
}

body[data-page="academy-detail"] {
  padding-bottom: 80px;
}

.academy-reader-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 58px;
  margin: 30px 0 0;
  padding: 0;
}

.source-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--deep-blue);
  font-weight: 900;
}

.academy-share-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 156px;
  min-height: 58px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  box-sizing: border-box;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  font: inherit;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0, 122, 130, .2);
  cursor: pointer;
}

.academy-share-icon,
.academy-share-option-icon {
  position: relative;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 18px;
}

.academy-share-icon::before,
.academy-share-option-icon::before {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

.academy-share-icon::after,
.academy-share-option-icon::after {
  position: absolute;
  left: 2px;
  top: 9px;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
  content: "";
}

.academy-share-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(7, 59, 64, .42);
}

.academy-share-mask.show {
  display: flex;
}

.academy-share-sheet {
  width: min(520px, 100%);
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: rgba(246, 255, 252, .98);
  box-shadow: 0 -18px 46px rgba(0, 122, 130, .16);
}

.academy-share-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(17, 73, 74, .18);
}

.academy-share-sheet-title {
  margin-bottom: 12px;
  color: #11494a;
  font-size: 18px;
  font-weight: 900;
}

.academy-share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  font: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.academy-share-option.timeline {
  color: #113f42;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(255, 198, 54, .2);
}

.academy-timeline-option-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-sizing: border-box;
}

.academy-timeline-option-icon::after {
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(42deg);
  content: "";
}

.gene-tool-shell {
  display: grid;
  gap: 18px;
}

.gene-workbench-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.gene-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 38px rgba(26, 141, 155, .13);
}

.gene-hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.gene-hero-card span,
.gene-panel-title span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
}

.gene-hero-card strong {
  display: block;
  margin-top: 4px;
  color: var(--deep-blue);
  font-size: 28px;
  line-height: 1.05;
}

.gene-hero-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.gene-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0,116,170,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}

.gene-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gene-panel-title strong {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #113f42;
  background: var(--gold);
  font-size: 12px;
  font-weight: 1000;
}

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

.gene-tool-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gene-tool-form label:first-child,
.gene-tool-form label.wide {
  grid-column: 1 / -1;
}

.gene-tool-form select,
.gene-tool-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(0,116,170,.13);
  border-radius: 14px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.86);
  font-weight: 900;
  box-sizing: border-box;
}

.gene-selected-desc {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}

.gene-selected-desc span {
  color: var(--deep-blue);
  font-size: 14px;
  font-weight: 1000;
}

.gene-selected-desc p,
.gene-selected-desc small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.gene-calc-btn {
  justify-self: end;
}

.gene-tool-result {
  display: grid;
  gap: 12px;
}

.gene-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(90deg, rgba(0,112,130,.82) 0%, rgba(0,166,188,.58) 58%, rgba(126,225,232,.26) 100%);
  box-shadow: 0 18px 44px rgba(0,33,42,.12);
}

.gene-result-head.blocked {
  background: linear-gradient(90deg, rgba(126, 85, 20, .82), rgba(216, 144, 38, .58));
}

.gene-result-head span,
.gene-result-head strong,
.gene-result-head p {
  display: block;
}

.gene-result-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
}

.gene-result-head strong {
  margin-top: 5px;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.05;
}

.gene-result-head p {
  margin-top: 10px;
  color: rgba(255,255,255,.9);
  line-height: 1.55;
  font-weight: 800;
}

.gene-result-meter {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  text-align: center;
}

.gene-result-meter b {
  font-size: 38px;
  line-height: 1;
}

.gene-result-meter small,
.gene-result-meter em {
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

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

.gene-parent-card,
.gene-model-grid article {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background: rgba(255,255,255,.66);
}

.gene-parent-card span,
.gene-parent-card strong,
.gene-parent-card p,
.gene-parent-card b,
.gene-model-grid strong,
.gene-model-grid span {
  display: block;
}

.gene-parent-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
}

.gene-parent-card strong,
.gene-model-grid strong {
  margin-top: 4px;
  color: var(--deep-blue);
  font-size: 17px;
  line-height: 1.25;
}

.gene-parent-card p,
.gene-model-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.gene-parent-card b {
  margin-top: 10px;
  color: #113f42;
  font-size: 13px;
}

.gene-query-card,
.gene-note,
.gene-disclaimer,
.gene-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.gene-query-card {
  display: grid;
  gap: 5px;
  color: var(--deep-blue);
  font-weight: 1000;
}

.gene-query-card span:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gene-note,
.gene-disclaimer {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.gene-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--deep-blue);
  font-weight: 1000;
}

.gene-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gene-row-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,116,170,.08);
  font-size: 12px;
  font-weight: 900;
}

.gene-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.gene-bar {
  height: 14px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,116,170,.08);
}

.gene-fill {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.gene-fill.gold {
  background: var(--gold);
}

.gene-fill.muted {
  background: #9bcac2;
}

.gene-punnett-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.68);
}

.gene-subtitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--deep-blue);
  font-weight: 1000;
}

.gene-subtitle strong {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #113f42;
  background: var(--gold);
  font-size: 12px;
}

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

.gene-punnett-cell {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.66);
}

.gene-punnett-cell small,
.gene-punnett-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gene-punnett-cell strong {
  color: var(--deep-blue);
  font-size: 16px;
}

.gene-punnett-cell b {
  color: var(--blue);
}

.gene-legend,
.gene-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gene-legend span,
.gene-suggestions span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 900;
}

.gene-legend b {
  margin-right: 6px;
  color: var(--deep-blue);
}

.product-detail-panel {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 28px;
}

@media (min-width: 981px) {
  body[data-page="product"] .product-detail-panel {
    padding: 28px 30px;
  }

  body[data-page="product"] .product-detail-panel h1 {
    font-size: clamp(30px, 2.4vw, 40px);
    line-height: 1.08;
  }

  body[data-page="product"] .product-detail-panel .hero-copy {
    margin-top: 12px;
  }

  body[data-page="product"] .detail-price-row,
  body[data-page="product"] .spec-picker,
  body[data-page="product"] .detail-actions,
  body[data-page="product"] .detail-note,
  body[data-page="product"] .detail-rich {
    margin-top: 18px;
  }
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.detail-price-row strong {
  color: var(--deep-blue);
  font-size: 34px;
}

.detail-price-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.66);
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.spec-picker {
  margin-top: 24px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.54);
}

.spec-picker > strong {
  display: block;
  margin-bottom: 12px;
  color: var(--deep-blue);
}

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

.spec-dimension-group {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.spec-dimension-group > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.spec-dimension-options .spec-option {
  min-width: 88px;
  min-height: 42px;
  align-content: center;
  text-align: center;
}

.spec-option {
  display: grid;
  gap: 3px;
  min-width: 128px;
  min-height: 58px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  text-align: left;
}

.spec-option span {
  font-weight: 900;
}

.spec-option small {
  color: var(--muted);
  font-size: 12px;
}

.spec-option.active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
  box-shadow: 0 14px 28px rgba(0, 120, 110, 0.18);
}

.spec-option.active small {
  color: rgba(255,255,255,.86);
}

.spec-option.disabled,
.spec-option:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.spec-combination-line {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.58);
  font-size: 13px;
  font-weight: 900;
}

.spec-combination-line.ready {
  color: var(--deep-blue);
  background: rgba(255, 198, 54, .22);
}

.spec-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 100, 120, .22);
}

.spec-modal-mask.show {
  display: flex;
}

.spec-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 28px;
}

.spec-modal h3 {
  margin-top: 8px;
  font-size: 26px;
}

.spec-modal p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-spec-options {
  margin-top: 18px;
}

.spec-confirm {
  width: 100%;
  margin-top: 18px;
}

.spec-confirm:disabled {
  opacity: .58;
  cursor: not-allowed;
  box-shadow: none;
}

.spec-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.8);
  font-size: 24px;
}

.wechat-login-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 42, 44, .44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wechat-login-modal-mask.show {
  display: flex;
}

.wechat-login-modal {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
}

.wechat-login-modal h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.wechat-login-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.wechat-login-frame-wrap {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
}

.wechat-login-frame {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
  background: #fff;
}

.wechat-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.86);
  font-size: 24px;
}

.wechat-login-tip {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wechat-pay-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 42, 44, .42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wechat-pay-modal-mask.show {
  display: flex;
}

.wechat-pay-modal {
  position: relative;
  width: min(390px, 100%);
  padding: 24px;
  border-radius: 22px;
  text-align: center;
}

.wechat-pay-modal h3 {
  margin: 4px 42px 8px;
  font-size: 22px;
}

.wechat-pay-modal p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.wechat-pay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.88);
  font-size: 24px;
}

.wechat-pay-qr {
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(13, 95, 88, .14);
  border-radius: 16px;
  background: #fff;
}

.wechat-pay-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.wechat-pay-qr textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
}

.wechat-pay-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-note {
  margin-top: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.56);
}

.detail-note p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.detail-rich {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .56);
  line-height: 1.8;
}


.detail-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .66s ease, transform .66s cubic-bezier(.2, .78, .22, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.detail-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-story {
  padding-top: 0;
}

body[data-page="product"] .product-story {
  width: min(760px, calc(100% - 64px));
}

.product-story-head {
  align-items: flex-end;
}

.product-story-head > span {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.68);
  font-weight: 900;
}

.product-story-layout {
  display: block;
}

.product-story-index {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
}

.product-story-index strong {
  color: var(--deep-blue);
  font-size: 18px;
  line-height: 1.35;
}

.product-story-index > span {
  color: var(--muted);
  font-weight: 800;
}

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

.product-story-rail i {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 12px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.72);
  font-style: normal;
  font-weight: 900;
}

.product-story-list {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

.product-story-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  width: 100%;
  height: clamp(280px, 42vh, 480px);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 64px rgba(0, 82, 94, .14);
}

@media (min-width: 981px) {
  body[data-page="product"] .product-story-list {
    display: block;
  }

  body[data-page="product"] .product-story-frame {
    grid-column: span 6;
    aspect-ratio: var(--photo-ratio, 1.6);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  body[data-page="product"] .product-story-frame.photo-panorama {
    grid-column: span 12;
    --photo-ratio: 2.25;
  }

  body[data-page="product"] .product-story-frame.photo-wide,
  body[data-page="product"] .product-story-frame.photo-standard {
    grid-column: span 6;
  }

  body[data-page="product"] .product-story-frame.photo-square,
  body[data-page="product"] .product-story-frame.photo-portrait {
    grid-column: span 4;
  }
}

.product-story-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-story-frame figcaption {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 96, 110, .82);
  font-weight: 900;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(2, 30, 34, .78);
}

.detail-lightbox.show {
  display: flex;
}

.detail-lightbox img {
  display: block;
  max-width: min(1120px, 92vw);
  max-height: 88vh;
  border-radius: 24px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .34);
}

.detail-lightbox-close {
  position: fixed;
  right: 24px;
  top: 22px;
  z-index: 81;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.9);
  font-size: 30px;
  line-height: 1;
}

.detail-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .detail-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


.pending-exchange {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 20px;
  background: rgba(255,255,255,.56);
}

.pending-exchange h3 {
  margin-top: 6px;
  font-size: 19px;
}

.pending-exchange p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.pending-exchange .btn {
  flex: 0 0 auto;
  min-width: 128px;
}

.points-discount-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 116, 170, .12);
  border-radius: 18px;
  background: rgba(231, 247, 242, .72);
  color: var(--ink);
}

.points-discount-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.points-discount-row span {
  display: grid;
  gap: 4px;
}

.points-discount-row small,
.order-total-box small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.sex-test-cart-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(231, 247, 242, .88), rgba(255,255,255,.76));
}

.sex-test-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sex-test-panel-head strong,
.sex-result-modal h3 {
  color: var(--ink);
  font-weight: 900;
}

.sex-test-panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sex-test-panel-head a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.sex-test-cart-panel textarea {
  width: 100%;
  min-height: 98px;
  padding: 14px;
  border: 1px solid rgba(0, 116, 170, .12);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  font: inherit;
  font-weight: 800;
  resize: vertical;
  box-sizing: border-box;
}

.sex-test-cart-panel small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payable-line {
  margin-top: 10px;
}

.cart-product-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.cart-product-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product-main img,
.order-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.66);
  flex: 0 0 auto;
}

.cart-product-main small,
.order-item small,
.order-card-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-inline-link {
  display: block;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-inline-link:hover {
  color: var(--green);
}

.order-card-list {
  display: grid;
  gap: 14px;
}

.order-card {
  padding: 16px;
  border-radius: 22px;
}

.order-card-head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.order-card-head > span {
  font-weight: 900;
}

.order-card-head strong {
  color: var(--deep-blue);
}

.order-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: stretch;
}

.order-items {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.56);
}

.order-item-main {
  min-width: 0;
}

.order-item-main b {
  display: block;
  overflow-wrap: anywhere;
}

.order-line-total {
  display: grid;
  justify-items: end;
  color: var(--deep-blue);
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.order-line-total small {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.order-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 10px;
  min-height: 78px;
  padding: 10px 0 10px 12px;
}

.order-total-box {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.order-total-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-total {
  color: var(--deep-blue);
  font-size: 20px;
  line-height: 1.1;
}

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

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.order-status-pill.refund-pill {
  color: var(--deep-blue);
  background: rgba(255, 198, 54, .24);
}

.order-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.order-logistics {
  max-width: 100%;
}

.logistics-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 54, 58, .42);
}

.logistics-modal-mask.show {
  display: flex;
}

.logistics-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 26px;
  border-radius: 28px;
}

.logistics-modal h3 {
  margin: 4px 44px 8px 0;
  color: var(--deep-blue);
  font-size: 24px;
}

.logistics-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255,255,255,.82);
  font-size: 24px;
  font-weight: 900;
}

.logistics-summary {
  margin: 8px 46px 16px 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.logistics-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  color: var(--deep-blue);
  background: rgba(255, 198, 54, .22);
}

.logistics-row-grid {
  display: grid;
  gap: 10px;
}

.logistics-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 116, 170, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.logistics-row span {
  flex: 0 0 88px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.logistics-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  text-align: right;
  word-break: break-word;
}

.logistics-empty {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.logistics-timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.logistics-timeline-item {
  display: grid;
  grid-template-columns: 14px 86px 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.logistics-timeline-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 116, 170, .12);
}

.logistics-timeline-item b {
  color: var(--deep-blue);
}

.logistics-timeline-item em {
  font-style: normal;
  text-align: right;
  word-break: break-word;
}

.sex-result-trigger {
  color: var(--blue);
  background: rgba(255, 198, 54, .2);
}

.sex-result-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 54, 58, .42);
}

.sex-result-modal-mask.show {
  display: flex;
}

.sex-result-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 26px;
  border-radius: 28px;
}

.sex-result-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255,255,255,.82);
  font-size: 24px;
  font-weight: 900;
}

.sex-result-modal p {
  margin: 8px 48px 18px 0;
  color: var(--muted);
  font-weight: 800;
}

.sex-result-list {
  display: grid;
  gap: 10px;
}

.sex-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 116, 170, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.sex-result-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sex-result-row small,
.sex-result-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.service-booking-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 54, 58, 0.42);
}

.service-booking-modal-mask.show {
  display: flex;
}

.service-booking-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 26px;
  border-radius: 28px;
}

.service-booking-titlebar,
.service-booking-actions,
.service-booking-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-booking-titlebar h2 {
  margin: 2px 0 0;
}

.service-booking-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  font-weight: 900;
}

.service-booking-selected {
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 116, 170, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.service-booking-selected strong {
  color: var(--deep-blue);
}

.service-booking-status-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.service-booking-status-line strong {
  min-width: 0;
}

.service-booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-booking-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.service-booking-intro {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 116, 170, 0.12);
  border-radius: 14px;
  color: #245b5f;
  background: rgba(239, 255, 251, 0.72);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

.service-booking-readonly-note {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 116, 170, 0.12);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(225, 246, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.service-booking-form {
  grid-template-columns: 1fr;
}

.service-booking-form label {
  min-width: 0;
}

.service-booking-form input,
.service-booking-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.service-booking-form.is-readonly input,
.service-booking-form.is-readonly textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  cursor: default;
}

.service-booking-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.mobile-body .service-booking-modal-mask {
  align-items: flex-end;
  padding: 0;
}

.mobile-body .service-booking-modal {
  width: 100%;
  max-height: 88vh;
  padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
}

.modal-handle {
  width: 48px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(0, 116, 170, 0.22);
}

.sex-result-row a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.sex-result-row strong {
  flex: 0 0 auto;
  min-width: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  text-align: center;
}

.sex-result-row.pending strong {
  color: var(--blue);
  background: rgba(0, 116, 170, .1);
}

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

.service-card {
  position: relative;
}

.floating-service-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  min-width: 62px;
  min-height: 38px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
  font-size: 13px;
  font-weight: 900;
}

.mobile-shell {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 124px;
}

.mobile-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 74px;
  margin: 0 -16px;
  padding: 12px 20px 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.mobile-top img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.mobile-section {
  padding-top: 16px;
}

.mobile-hero {
  position: relative;
  min-height: 408px;
  overflow: hidden;
  border-radius: 30px;
}

.mobile-hero > img {
  width: 100%;
  height: 408px;
  object-fit: cover;
  filter: saturate(1.18) brightness(1.08);
}

.mobile-hero-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  padding: 20px;
  border-radius: 24px;
}

.mobile-hero-card h1 {
  font-size: 32px;
}

.mobile-service-highlights {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 2px 2px 8px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-service-highlights::-webkit-scrollbar {
  display: none;
}

.mobile-service-highlight {
  flex: 0 0 min(168px, 72%);
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
  scroll-snap-align: start;
}

.mobile-service-highlight strong,
.mobile-service-highlight span {
  display: block;
}

.mobile-service-highlight strong {
  color: var(--deep-blue);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 1000;
}

.mobile-service-highlight span {
  margin-top: 8px;
  color: #4a827f;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

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

.mobile-grid .image-button {
  min-height: 174px;
  border-radius: 24px;
}

.mobile-grid .image-button img {
  min-height: 174px;
}

.mobile-grid .image-button-body {
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 74px;
  padding: 10px;
  border-radius: 18px;
}

.mobile-grid .image-button h3 {
  font-size: 16px;
}

.mobile-grid .image-button p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-module-card {
  cursor: pointer;
}

.mobile-service-grid .floating-service-btn {
  right: 10px;
  bottom: 10px;
  min-width: 54px;
}

.mobile-tabs {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(420px, calc(100% - 16px));
  min-height: 68px;
  padding: 4px 6px;
  transform: translateX(-50%);
  border-radius: 24px;
}

.mobile-tabs button {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.mobile-tabs button.active {
  color: var(--blue);
}

.mobile-tabs button.active .tab-icon {
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  box-shadow: 0 8px 18px rgba(0, 116, 170, 0.18);
}

.tab-icon,
.tab-star {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--deep-blue);
  font-size: 18px;
  line-height: 1;
}

.tab-label {
  display: block;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.mobile-tabs .record {
  position: relative;
  min-height: 70px;
  margin-top: -26px;
  color: #fff;
}

.mobile-tabs .record .tab-star {
  width: 56px;
  height: 56px;
  color: var(--green);
  background: transparent;
  text-shadow: 0 10px 22px rgba(0, 96, 96, 0.22);
  font-size: 40px;
}

.mobile-tabs .record .tab-label {
  margin-top: 2px;
  color: var(--deep-blue);
}

.mobile-tabs .record.active .tab-star {
  color: var(--gold);
  text-shadow: 0 10px 20px rgba(150, 98, 0, 0.24);
}

.mobile-page {
  display: none;
}

.mobile-page.active {
  display: block;
}

.ghost {
  background: rgba(255, 255, 255, 0.48);
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn.ghost {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.76);
}

.mt {
  margin-top: 22px;
}

.api-line,
.profile-line,
.total-line,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.api-line {
  margin-top: 28px;
  color: var(--deep-blue);
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(255, 198, 54, 0.18);
}

[data-api-status][data-state="ok"],
[data-login-state][data-state="ok"] {
  color: #007a50;
}

[data-api-status][data-state="warn"],
[data-login-state][data-state="warn"] {
  color: #d46a00;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 150px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

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

.product-card {
  min-height: 300px;
}

.page-pc .product-card {
  height: 300px;
}

.product-card img {
  min-height: 300px;
}

.product-meta {
  display: block;
  margin-top: 8px;
  color: #2f7776;
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.mini-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
}

.mini-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

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

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 900;
}

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

.address-check-hint {
  margin: 10px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.address-history {
  margin-top: 12px;
}

.address-history-title {
  margin-bottom: 8px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 900;
}

.address-history-list {
  display: grid;
  gap: 8px;
}

.address-history-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 122, 128, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--teal-dark);
  text-align: left;
  cursor: pointer;
}

.address-history-item strong,
.address-history-item span {
  overflow-wrap: anywhere;
}

.address-history-item span {
  color: var(--teal);
  font-size: 12px;
  line-height: 1.45;
}

body[data-page="upload"] .wrap {
  width: min(1760px, calc(100% - 64px));
}

.upload-record-layout {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.upload-submit-collapsed {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  min-height: 300px;
  align-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 198, 54, .2), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.8), rgba(222, 250, 241, .72));
}

.upload-submit-collapsed::after {
  content: "★";
  position: absolute;
  right: -22px;
  bottom: -50px;
  color: rgba(255, 198, 54, .28);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

.upload-submit-collapsed h2 {
  margin: 0;
}

.upload-submit-collapsed p {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.upload-open-btn {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  min-height: 54px;
  justify-content: center;
}

.upload-hint {
  position: relative;
  z-index: 1;
  max-width: 420px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
}

.upload-records-panel {
  min-height: 520px;
  padding-inline: clamp(22px, 2vw, 34px);
}

.media-form-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.media-form-modal.show {
  display: flex;
}

.media-form-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 74, 88, .34);
  backdrop-filter: blur(8px);
}

.media-form-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(84vh, 780px);
  overflow: auto;
  padding: 30px;
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 74, 88, .26);
}

.media-form-dialog h2 {
  margin: 4px 48px 8px 0;
}

.media-form-dialog > p {
  margin: 0 48px 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.media-form-dialog .form-grid {
  margin-top: 0;
}

.media-form-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255,255,255,.78);
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 105, 170, .12);
}

.media-modal-open {
  overflow: hidden;
}

.media-title-field {
  padding: 12px;
  border: 1px solid rgba(0, 168, 145, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.field-note {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  outline: none;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

textarea {
  resize: vertical;
}

.media-upload-control input[type="file"] {
  min-height: 48px;
  padding: 10px;
  cursor: pointer;
}

.media-reward-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 184, 126, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 255, 245, 0.76), rgba(255, 255, 255, 0.58));
}

.media-reward-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.media-reward-option b {
  color: var(--deep-blue);
  font-size: 15px;
}

.media-reward-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.media-reward-switch {
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  cursor: pointer;
  background: rgba(0, 116, 170, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.78);
  transition: background 0.18s ease;
}

.media-reward-switch::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 80, 92, 0.18);
  transition: transform 0.18s ease;
}

.media-reward-switch:checked {
  background: var(--green);
}

.media-reward-switch:checked::before {
  transform: translateX(20px);
}

.media-upload-progress {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 116, 170, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.media-upload-progress[hidden] {
  display: none;
}

.media-upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--deep-blue);
  font-size: 13px;
  font-weight: 900;
}

.media-upload-progress-head strong {
  flex: 0 0 auto;
  color: var(--green);
}

.media-upload-progress i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 116, 170, 0.12);
}

.media-upload-progress b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--sky));
  transition: width 0.18s ease;
}

.form-grid.is-uploading input,
.form-grid.is-uploading select,
.form-grid.is-uploading textarea {
  opacity: 0.72;
}

.form-grid.is-uploading [data-media-submit] {
  cursor: wait;
}

.compact-list,
.record-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.list-row,
.empty-card,
.answer-card,
.record-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 34px rgba(0, 110, 105, 0.1);
}

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

button.list-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-booking-row {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.service-booking-row:hover {
  border-color: rgba(0, 184, 126, 0.24);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.list-row span {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-weight: 800;
}

.list-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.list-row strong,
.total-line strong {
  color: var(--deep-blue);
}

.service-row-action {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.service-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 116, 170, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--deep-blue);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.service-status-pill.pending {
  border-color: rgba(232, 161, 38, 0.32);
  background: rgba(255, 247, 220, 0.88);
  color: #9a6200;
}

.service-status-pill.processing {
  border-color: rgba(0, 116, 170, 0.22);
  background: rgba(225, 246, 255, 0.88);
}

.service-status-pill.completed {
  border-color: rgba(0, 184, 126, 0.24);
  background: rgba(226, 255, 245, 0.88);
  color: var(--green);
}

.service-status-pill.legacy {
  border-color: rgba(235, 90, 90, 0.24);
  background: rgba(255, 235, 235, 0.88);
  color: #b54a4a;
}

.empty-card {
  padding: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.asset3d-upload-control input[type="file"] {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(0, 116, 170, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.asset3d-upload-control span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.asset3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.asset3d-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 36px rgba(0, 86, 92, 0.12);
}

.asset3d-preview {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 42% 35%, rgba(255, 198, 54, 0.44), transparent 24%),
    linear-gradient(135deg, #007db2, #14c58d);
  text-decoration: none;
}

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

.asset3d-preview span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 900;
}

.asset3d-preview b {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #11494a;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.asset3d-copy {
  padding: 16px;
}

.asset3d-copy h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.asset3d-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.asset3d-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.asset3d-wait {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.total-line {
  justify-content: space-between;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 900;
}

.profile-line {
  margin-top: 20px;
}

.profile-line img,
.record-card img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.62);
}

.profile-line div,
.record-card div {
  display: grid;
  gap: 5px;
}

.profile-line strong,
.record-card strong {
  font-size: 18px;
}

.profile-line span,
.record-card span {
  color: var(--muted);
  line-height: 1.45;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.profile-info-grid div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 120, 112, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.profile-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-info-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink);
  line-height: 1.35;
}

body[data-page="user"] .page-hero {
  margin-bottom: 0;
}

.user-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.user-quick-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.user-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(0, 94, 110, 0.14);
}

.user-quick-card b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-size: 15px;
  line-height: 1;
}

.user-quick-card strong {
  color: var(--deep-blue);
  font-size: 18px;
  line-height: 1.2;
}

.user-quick-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.user-overview-grid,
.user-main-grid,
.user-assets-layout {
  display: grid;
  gap: 24px;
}

.user-overview-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

body[data-page="user"] .user-overview-grid {
  grid-template-columns: 1fr;
}

.user-summary-panel .section-head.compact {
  margin-bottom: 10px;
}

.user-summary-panel .profile-line {
  margin-top: 0;
}

.user-main-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.user-assets-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

body[data-page="user"] .profile-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="user"] .profile-info-grid div:last-child {
  grid-column: auto;
}

.profile-form-pc textarea {
  min-height: 96px;
}

.user-list-block {
  margin-top: 18px;
}

.points-log-list {
  margin-top: 16px;
}

.points-log-row strong.gain {
  color: #00825b;
}

.points-log-row strong.use {
  color: #cf6d00;
}

.user-points-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.user-points-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-log-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.user-asset3d-panel .asset3d-grid {
  grid-template-columns: 1fr;
}

.user-function-section {
  margin-top: 26px;
}

.user-feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 22px;
}

.user-feature-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
  cursor: pointer;
}

.user-feature-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--deep-blue), var(--green));
  box-shadow: 0 12px 26px rgba(0, 116, 170, 0.2);
}

.user-feature-panel {
  min-height: 420px;
}

.user-feature-pane[hidden] {
  display: none;
}

.feature-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.feature-pane-head h2 {
  margin: 0;
}

.feature-inline-form {
  margin-bottom: 18px;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.pager-row .mini-btn:disabled {
  opacity: 0.42;
}

.record-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

button.record-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.parrot-record-card {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.parrot-record-card:hover {
  border-color: rgba(0, 184, 126, 0.24);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

body[data-page="user"] .order-card-list {
  gap: 10px;
}

body[data-page="user"] .order-card {
  padding: 10px 12px;
  border-radius: 16px;
}

body[data-page="user"] .order-card-head {
  margin-bottom: 8px;
  font-size: 13px;
}

body[data-page="user"] .order-card-body {
  grid-template-columns: 1fr;
  gap: 8px;
}

body[data-page="user"] .order-items {
  gap: 6px;
}

body[data-page="user"] .order-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 0;
  padding: 7px 8px;
  border-radius: 12px;
}

body[data-page="user"] .order-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

body[data-page="user"] .order-item small,
body[data-page="user"] .order-card-head small {
  margin-top: 2px;
  font-size: 11px;
}

body[data-page="user"] .order-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-items: stretch;
  gap: 10px;
  min-height: 0;
  padding: 0;
}

body[data-page="user"] .order-status-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body[data-page="user"] .order-total-box {
  justify-items: start;
  gap: 1px;
}

body[data-page="user"] .order-total {
  font-size: 17px;
}

body[data-page="user"] .order-status-pill,
body[data-page="user"] .order-logistics {
  min-height: 26px;
  font-size: 11px;
}

.media-waterfall {
  column-count: 2;
  column-gap: 16px;
  margin-top: 14px;
}

body[data-page="user"] .media-waterfall {
  column-count: 5;
  column-gap: 12px;
}

@media (min-width: 1480px) {
  body[data-page="user"] .media-waterfall {
    column-count: 6;
  }
}

body[data-page="user"] .media-flow-card {
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 110, 105, 0.08);
}

body[data-page="user"] .media-flow-visual {
  border-radius: 14px 14px 10px 10px;
}

body[data-page="user"] .media-flow-meta {
  padding: 8px 10px;
  font-size: 11px;
}

body[data-page="user"] .media-flow-actions {
  padding: 0 8px 8px;
}

body[data-page="user"] .media-action {
  min-width: auto;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

body[data-page="user"] .reward-star {
  min-width: 82px;
  height: 30px;
  padding: 0 11px 0 32px;
}

body[data-page="user"] .reward-star b {
  max-width: none;
  font-size: 12px;
}

body[data-page="user"] .reward-star small {
  font-size: 9px;
}

.record-preview-dialog {
  width: min(900px, 100%);
  overflow: visible;
}

.record-preview-media {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(2, 30, 34, 0.92);
}

.record-preview-media.is-video {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.record-preview-media img,
.record-preview-media video {
  display: block;
  width: 100%;
  max-height: min(62vh, 620px);
  object-fit: contain;
}

.record-preview-media.is-video video {
  position: relative;
  z-index: 3;
  border-radius: 20px;
  background: rgba(2, 30, 34, 0.92);
  touch-action: manipulation;
}

.record-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.record-preview-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.parrot-detail-dialog {
  width: min(1180px, 100%);
}

.parrot-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.parrot-detail-head img {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.62);
}

.parrot-detail-head h2 {
  margin: 4px 0 6px;
}

.parrot-detail-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.parrot-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.parrot-detail-grid h3 {
  margin: 0;
  color: var(--deep-blue);
}

.parrot-detail-waterfall {
  column-count: 3;
}

.parrot-detail-assets {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body[data-page="upload"] .media-waterfall {
  column-count: auto;
  column-width: 260px;
  column-gap: 18px;
}

.media-flow-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: visible;
  break-inside: avoid;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(0, 110, 105, 0.1);
}

body[data-page="upload"] .media-flow-card {
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 110, 105, 0.11);
}

.media-flow-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px 18px 12px 12px;
  background: rgba(255, 255, 255, 0.62);
}

.media-flow-preview-trigger {
  cursor: pointer;
}

.media-flow-preview-trigger:focus-visible {
  outline: 3px solid rgba(0, 176, 169, 0.42);
  outline-offset: 3px;
}

.media-flow-visual img,
.media-flow-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-flow-card.tall .media-flow-visual img,
.media-flow-card.tall .media-flow-visual video {
  height: 100%;
}

.media-processing {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0b6967;
  background: rgba(238, 255, 248, .9);
  box-shadow: 0 8px 18px rgba(0, 120, 112, .12);
  font-size: 12px;
  font-weight: 900;
}

.reward-star {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 34px;
  padding: 0 13px 0 38px;
  color: #704800;
  background: rgba(255, 198, 54, .94);
  border: 1px solid rgba(255, 244, 188, .86);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(125, 82, 0, .18);
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.reward-star::before {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff7c9;
  clip-path: polygon(50% 0%, 61% 32%, 95% 35%, 68% 55%, 79% 90%, 50% 72%, 21% 90%, 32% 55%, 5% 35%, 39% 32%);
  content: "";
  transform: translateY(-50%);
}

.reward-star b,
.reward-star small {
  display: block;
  line-height: 1;
}

.reward-star b {
  max-width: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.reward-star small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 900;
}

.parrot-chip,
.video-mark {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 73, 74, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.parrot-chip {
  right: 10px;
  bottom: 10px;
}

.video-mark {
  left: 10px;
  bottom: 10px;
}

.media-play-indicator {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(3, 37, 42, 0.22) 0%, rgba(3, 37, 42, 0) 58%);
}

.media-play-indicator span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 91, 94, 0.78);
  box-shadow: 0 12px 28px rgba(0, 72, 75, 0.22);
  font-size: 24px;
  transform: translateX(2px);
}

.media-flow-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.media-flow-meta strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--deep-blue);
  line-height: 1.35;
}

.media-flow-meta > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.media-section-block + .media-section-block {
  margin-top: 26px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.media-flow-actions {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 0 12px 12px;
}

.media-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(13, 131, 132, .18);
  border-radius: 999px;
  color: #0a7778;
  background: rgba(238, 255, 248, .86);
  font-weight: 900;
  cursor: pointer;
}

.media-action span {
  color: #008d91;
  font-size: 15px;
  line-height: 1;
}

.media-action.liked {
  color: #b84554;
  background: rgba(255, 235, 239, .92);
  border-color: rgba(208, 70, 92, .26);
}

.media-action.liked span {
  color: #e33d59;
}

.media-menu-trigger span {
  color: #11494a;
}

.media-card-menu {
  position: absolute;
  right: 88px;
  bottom: 52px;
  z-index: 5;
  display: none;
  min-width: 128px;
  padding: 8px;
  border: 1px solid rgba(13, 131, 132, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(0, 82, 92, .14);
}

.media-card-menu.open {
  display: grid;
  gap: 6px;
}

.media-card-menu button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  color: #0b7478;
  background: #eefaf6;
  font-weight: 900;
  cursor: pointer;
}

.media-card-menu .danger {
  color: #b73248;
  background: #fff0f3;
}

.ask-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 20px;
}

.answer-card {
  margin-top: 12px;
  padding: 14px;
}

.answer-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.service-buttons {
  margin-top: 18px;
}

.cube.water {
  background: var(--blue);
}

.cube.gold {
  background: var(--gold);
}

.cube.lime {
  background: var(--lime);
}

.cube.orange {
  background: var(--orange);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: min(460px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--ink);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .22s ease, transform .22s ease;
}

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

.toast[data-state="ok"] {
  color: #007a50;
}

.toast[data-state="warn"] {
  color: #d46a00;
}

.brand-login {
  min-height: 42px;
  max-width: 112px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-user-pill {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.brand-login.nav-cart-pill {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #12cfa0);
}

.brand-login.nav-cart-pill b {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.92);
}

.mobile-nav-actions .brand-login.nav-cart-pill {
  max-width: none;
  min-width: 86px;
  padding: 0 12px;
  gap: 6px;
}

.mobile-top .brand-title {
  display: grid;
  gap: 2px;
  flex: 1;
}

.mobile-nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(180px, 48vw);
}

.mobile-top span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.mobile-top [data-api-status][data-state="ok"],
.mobile-top [data-api-status][data-state="warn"],
.mobile-top [data-login-state][data-state="ok"],
.mobile-top [data-login-state][data-state="warn"] {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-hero.compact,
.mobile-hero.compact > img {
  min-height: 284px;
}

.mobile-hero.compact > img {
  height: 284px;
}

#mall .mobile-hero > img {
  object-position: center top;
}

.mobile-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.mobile-body .panel {
  padding: 20px;
  border-radius: 26px;
}

.mobile-body .form-grid {
  grid-template-columns: 1fr;
}

.mobile-body .ask-form {
  grid-template-columns: 1fr;
}

.mobile-body .list-row {
  grid-template-columns: 1fr auto;
}

.mobile-body .profile-line {
  flex-wrap: nowrap;
  align-items: center;
}

.mobile-body .profile-line img {
  width: 64px;
  height: 64px;
}

.mobile-body .profile-line strong {
  font-size: 18px;
}

.mobile-body .profile-line span {
  font-size: 13px;
  line-height: 1.35;
}

.mobile-body .stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-body .stat {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
}

.mobile-body .stat strong {
  font-size: 21px;
}

.mobile-body .stat span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.mobile-body .product-thumb-card {
  min-height: 268px;
  border-radius: 22px;
}

.mobile-body .product-thumb-link {
  aspect-ratio: 3 / 4;
  height: auto;
}

.mobile-body .product-thumb-info {
  padding: 10px 10px 52px;
}

.mobile-body .product-thumb-info h3 {
  font-size: 15px;
  line-height: 1.25;
}

.mobile-body .product-thumb-info p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
}

.mobile-body .thumb-action {
  bottom: 10px;
  min-height: 36px;
  font-size: 12px;
}

.mobile-body .thumb-detail {
  left: 10px;
  padding: 0 10px;
}

.mobile-body .thumb-cart {
  right: 10px;
  width: 38px;
  font-size: 23px;
}

.mobile-body .order-card-body {
  grid-template-columns: 1fr;
}

.mobile-body .order-side,
.mobile-body .order-status-group,
.mobile-body .order-total-box {
  justify-items: stretch;
  padding-left: 0;
}

.mobile-body .order-actions {
  justify-content: flex-start;
}

.mobile-body .order-status-pill,
.mobile-body .order-logistics {
  justify-content: flex-start;
  white-space: normal;
}

.mobile-body .product-card {
  min-height: 265px;
}

.mobile-body .product-card img {
  min-height: 265px;
}

.mobile-body .card-actions {
  flex-wrap: wrap;
}

.mobile-body .mini-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-width: 380px) {
  .mobile-shell {
    padding-inline: 14px;
  }

  .brand-logo {
    flex-basis: 38px;
    gap: 0;
  }

  .brand-logo span {
    display: none;
  }

  .mobile-hero-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 18px;
  }

  .mobile-hero-card h1 {
    font-size: 28px;
  }

  .product-detail-panel h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .mobile-hero-card p {
    font-size: 14px;
  }

  .mobile-tabs button {
    font-size: 9px;
  }
}

.mini-world {
  grid-template-columns: repeat(4, 36px);
  padding: 24px;
}

.mini-world .cube {
  width: 36px;
  height: 36px;
}

.architecture-hero {
  min-height: 520px;
}

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

.architecture-grid h3,
.roadmap h3 {
  margin-bottom: 10px;
  color: var(--ink);
}

.architecture-grid p,
.roadmap p {
  color: var(--muted);
  line-height: 1.65;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip-row span,
.architecture-layers span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.flow-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.flow-list strong {
  color: var(--deep-blue);
}

.flow-list span {
  color: var(--muted);
  line-height: 1.45;
}

.architecture-layers {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.architecture-layers span {
  justify-content: center;
  min-height: 46px;
}

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

.roadmap article > strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 8px 8px 0 rgba(0, 107, 120, 0.12);
}

@media (max-width: 980px) {
  .brand-nav {
    position: relative;
    top: 0;
    border-radius: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

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

  .product-story-index,
  .product-detail-panel {
    position: static;
  }

  .product-story-rail {
    display: flex;
    flex-wrap: wrap;
  }

  .product-story-rail i {
    min-width: 38px;
  }

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

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

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

  .service-home-grid,
  .compact-products,
  .academy-hub-grid,
  .academy-article-grid,
  .user-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-overview-grid,
  .user-main-grid,
  .user-assets-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .gene-workbench-grid,
  .gene-result-head,
  .gene-model-grid {
    grid-template-columns: 1fr;
  }

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

  .upload-submit-collapsed {
    position: relative;
    top: auto;
    min-height: 240px;
  }

  body[data-page="upload"] .wrap {
    width: min(100% - 40px, 860px);
  }
}

@media (max-width: 640px) {
  .academy-section-head {
    gap: 14px;
  }

  .academy-category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .academy-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .academy-category-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .academy-hub-grid,
  .academy-article-grid,
  .user-quick-grid,
  .gene-tool-form {
    grid-template-columns: 1fr;
  }

  .user-quick-card {
    min-height: 96px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .user-quick-card span {
    grid-column: 2;
  }

  .mobile-feature-tabs,
  .mobile-body .user-feature-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  .mobile-feature-tabs::-webkit-scrollbar,
  .mobile-body .user-feature-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-body .user-feature-tabs button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .mobile-body .user-feature-panel {
    min-height: 360px;
  }

  .feature-pane-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pager-row {
    flex-wrap: wrap;
  }

  body[data-page="user"] .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .gene-hero-card {
    grid-template-columns: 1fr;
  }

  .gene-hero-card strong {
    font-size: 24px;
  }

  .gene-parent-grid,
  .gene-result-grid,
  .gene-punnett-grid {
    grid-template-columns: 1fr;
  }

  .gene-result-meter {
    min-height: 112px;
  }

  .academy-hub-card {
    min-height: 230px;
  }

  .academy-hub-card strong {
    margin-top: 96px;
  }

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

  .academy-article img {
    width: 100%;
    height: 190px;
  }

  .academy-reader-cover {
    height: 300px;
    min-height: 260px;
  }

  .academy-reader-main {
    padding: 22px;
  }

  .academy-reader-gallery {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(100% - 28px, 430px);
  }

  body[data-page="upload"] .wrap {
    width: min(100% - 28px, 430px);
  }

  body[data-page="upload"] .media-waterfall {
    column-count: 2;
    column-width: auto;
  }

  .media-form-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .media-form-dialog {
    max-height: 88vh;
    padding: 24px 18px;
    border-radius: 26px 26px 18px 18px;
  }

  .media-form-dialog h2,
  .media-form-dialog > p {
    margin-right: 44px;
  }

  .brand-nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 8px;
    border-radius: 999px;
  }

  .brand-logo {
    flex: 0 1 168px;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    gap: 6px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .brand-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo img {
    width: 34px;
    height: 34px;
  }

  .nav-actions {
    flex: 1 1 auto;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
  }

  .nav-actions > * {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-actions .btn,
  .nav-actions .status-pill {
    min-height: 36px;
    padding: 0 6px;
    font-size: 12px;
  }

  .nav-actions .status-pill {
    font-size: 0;
  }

  .status-pill {
    flex: 0 0 42px;
    max-width: 42px;
  }

  .nav-actions .status-pill::after {
    content: "未登录";
    font-size: 12px;
  }

  .nav-actions .status-pill[data-state="ok"]::after {
    content: "会员";
  }

  .nav-cart-pill {
    gap: 5px;
    flex: 0 0 76px;
    max-width: 76px;
  }

  .nav-actions [data-logout] {
    flex: 0 0 40px;
  }

  .nav-cart-pill b {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
  }

  .mobile-nav-actions .brand-login.nav-cart-pill {
    flex: 0 0 auto;
    max-width: none;
    min-width: 86px;
    padding: 0 10px;
  }

  .bottom-dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(420px, calc(100% - 16px));
    min-height: 68px;
    padding: 4px 6px;
    border-radius: 24px;
  }

  body[data-page="academy-detail"] {
    padding-bottom: 80px;
  }

  .academy-reader-actions {
    justify-content: stretch;
    width: 100%;
    min-height: 54px;
    padding: 0;
  }

  .academy-share-trigger {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    font-size: 13px;
  }

  .academy-share-sheet {
    width: 100%;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .academy-share-option {
    min-height: 52px;
    font-size: 13px;
  }

  .dock-item {
    min-height: 58px;
    gap: 2px;
    font-size: 10px;
  }

  .dock-icon {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .dock-record {
    min-height: 70px;
    margin-top: -26px;
  }

  .dock-record .dock-star {
    width: 56px;
    height: 56px;
    font-size: 40px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero-panel {
    padding: 26px;
    border-radius: 30px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .module-grid,
  .products-grid,
  .service-home-grid,
  .compact-products {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .product-detail-layout {
    gap: 16px;
  }

  .product-detail-panel {
    order: -1;
    padding: 24px;
  }

  .product-detail-media-stack {
    order: 2;
    gap: 12px;
  }

  .product-detail-media,
  .product-detail-media img {
    min-height: 0;
  }

  .product-detail-media {
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: none;
  }

  .product-media-thumbs {
    display: none;
  }

  .product-detail-video video {
    max-height: 220px;
  }

  .product-story-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-story-list {
    display: block;
    gap: 0;
  }

  .product-story-frame {
    height: clamp(240px, 46vh, 420px);
    border-radius: 20px;
  }

  .product-story-frame figcaption {
    left: 12px;
    top: 12px;
  }

  .pending-exchange {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-product-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .cart-product-row {
    display: grid;
  }

  .order-card-body {
    grid-template-columns: 1fr;
  }

  .order-side {
    justify-items: stretch;
    padding: 0;
  }

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

  .order-line-total {
    grid-column: 2;
    justify-items: start;
  }

  .order-total-box {
    justify-items: start;
  }

  .order-status-group {
    justify-items: stretch;
  }

  .order-status-pill {
    justify-content: flex-start;
  }

  .order-actions {
    justify-content: flex-start;
  }

  .spec-option {
    flex: 1 1 100%;
  }

  .form-grid,
  .ask-form {
    grid-template-columns: 1fr;
  }

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

  .media-waterfall {
    column-gap: 10px;
  }

  .media-flow-card {
    margin-bottom: 10px;
  }

  .media-flow-visual img,
  .media-flow-visual video {
    height: 100%;
  }

  .media-flow-card.tall .media-flow-visual img,
  .media-flow-card.tall .media-flow-visual video {
    height: 100%;
  }

  .reward-star {
    min-width: 82px;
    height: 30px;
    padding: 0 11px 0 32px;
  }

  .architecture-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    flex: 0 0 38px;
    gap: 0;
  }

  .brand-logo span {
    display: none;
  }

  .tab-label,
  .dock-label {
    font-size: 9px;
  }
}

@media (max-width: 980px) {
  body[data-page="user"] .media-waterfall {
    column-count: 4;
  }

  .parrot-detail-grid {
    grid-template-columns: 1fr;
  }

  .parrot-detail-waterfall {
    column-count: 3;
  }

  body[data-page="user"] .order-side {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="user"] .order-status-group {
    justify-content: flex-start;
  }

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

  .pc-service-swiper,
  .mall-carousel,
  .pc-hero-slide img,
  .mall-slide img {
    min-height: 500px;
  }

  .pc-hero-copy {
    max-width: none;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="user"] .profile-info-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="user"] .media-waterfall,
  .parrot-detail-waterfall {
    column-count: 2;
  }

  body[data-page="user"] .order-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  body[data-page="user"] .order-line-total {
    justify-items: start;
    grid-column: 2;
  }

  .parrot-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .parrot-detail-head img {
    width: 82px;
    height: 82px;
  }

  .record-preview-dialog,
  .parrot-detail-dialog {
    max-height: 88vh;
  }

  .pc-service-swiper,
  .mall-carousel,
  .pc-hero-slide img,
  .mall-slide img {
    min-height: 430px;
  }

  .pc-hero-copy,
  .mall-slide-copy {
    padding: 22px 18px 38px;
  }

  .pc-hero-copy h1,
  .mall-slide-copy h1 {
    font-size: 30px;
  }

  .pc-hero-copy p,
  .mall-slide-copy p {
    font-size: 14px;
  }

  .pc-hero-copy .hero-actions,
  .mall-slide-copy .hero-actions {
    gap: 8px;
  }

  .pc-hero-service-map {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

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

  .page-pc .service-card .image-button-body {
    padding-right: 14px;
  }

  .page-pc [data-home-services] .service-card .image-button-body,
  .page-pc [data-service-cards] .service-card .image-button-body {
    padding-right: 88px;
  }
}
