*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: auto !important;
}

:root {
  --page-bg: #050612;
  --page-bg-deep: #03040c;
  --site-panel-bg: #080a18;
  --site-panel-bg-raised: #0b1024;
  --site-panel-edge: rgba(148, 170, 205, 0.14);
  --site-accent-cyan: #5af2d4;
  --site-accent-gold: #ffe08a;
  --site-red-glow: #ff3e53;
  --ink: #f6f8ff;
  --ink-soft: rgba(231, 233, 245, 0.74);
  --muted: rgba(231, 233, 245, 0.52);
  --line: rgba(148, 170, 205, 0.14);
  --neon-pink: #ff3e53;
  --neon-blue: #67d7ff;
  --neon-purple: #8d7dff;
  --neon-cyan: var(--site-accent-cyan);
  --glow-pink-soft: 0 0 16px rgba(255, 62, 83, 0.34);
  --glow-blue-soft: 0 0 16px rgba(90, 242, 212, 0.22);
  --glass-bg: rgba(8, 10, 24, 0.68);
  --glass-bg-strong: rgba(8, 10, 24, 0.9);
  --glass-edge: var(--site-panel-edge);
  /* product preview keeps its red/gold diamond identity */
  --red: #ad061d;
  --red-active: #c20722;
  --gold: #ff8a24;
  --gold-active: #ff982f;
  --fixed-a: #fbffff;
  --fixed-b: #67d7ff;
  --fixed-c: #54f2bb;
  --fixed-d: #aa94ff;
  color: var(--ink);
  background: var(--page-bg);
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(50% 42% at 12% 10%, rgba(255, 62, 83, 0.1) 0%, transparent 64%),
    radial-gradient(52% 42% at 88% 24%, rgba(90, 242, 212, 0.1) 0%, transparent 66%),
    radial-gradient(70% 50% at 50% 112%, rgba(103, 215, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
}

html {
  scroll-padding-top: 72px;
}

/* Ambient backdrop, kept abstract so the product preview stays readable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 62, 83, 0.12), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(90, 242, 212, 0.11), transparent 32%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(60deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 120px 120px, 160px 160px;
  filter: blur(0);
  opacity: 0.58;
  pointer-events: none;
  z-index: 0;
}

/* Subtle scan-line sweep — keeps the cyberpunk pulse without grid noise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(90, 242, 212, 0.025) 50%, transparent 100%);
  background-size: 100% 320px;
  background-repeat: no-repeat;
  animation: site-scanline 11s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes site-scanline {
  0% { background-position: 0 -320px; }
  100% { background-position: 0 100vh; }
}

main,
.site-shell {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0;
}

.site-home-shell {
  padding: 0;
}

.site-home-shell .home-section {
  box-sizing: border-box;
}

.site-home-shell .hero.home-section {
  min-height: 100vh;
}

.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(11, 16, 36, 0.88), rgba(5, 6, 18, 0.78)),
    rgba(5, 6, 18, 0.86);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.site-nav a {
  display: inline-grid;
  min-width: 82px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: rgba(231, 233, 245, 0.66);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #f6f8ff;
  background: rgba(90, 242, 212, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(90, 242, 212, 0.28),
    0 0 18px rgba(90, 242, 212, 0.08);
}

.site-section {
  scroll-margin-top: 0;
}

.home-section {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(430px, 1.08fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 0;
}

.site-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(246, 248, 255, 0.72);
  background: transparent;
  cursor: pointer;
  transform: translateX(-50%);
}

.site-scroll-cue svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  filter: drop-shadow(0 0 10px rgba(90, 242, 212, 0.28));
  animation: site-scroll-cue 1.7s ease-in-out infinite;
}

.is-site-jianying-active .site-scroll-cue {
  opacity: 0;
  pointer-events: none;
}

@keyframes site-scroll-cue {
  0%, 100% { transform: translateY(-2px); opacity: 0.58; }
  50% { transform: translateY(5px); opacity: 1; }
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: 4.9rem;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lead {
  display: grid;
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: clamp(2.85rem, 6.6vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
}

.lead-line {
  display: flex;
  align-items: baseline;
  gap: 0.02em;
  white-space: nowrap;
  animation: lead-line-in 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.lead-line:nth-child(2) {
  animation-delay: 140ms;
}

@keyframes lead-line-in {
  0% { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.lead-hot {
  display: inline-block;
  color: var(--neon-pink);
  font-size: 1.26em;
  line-height: 0.82;
  text-shadow: 0 2px 12px rgba(255, 62, 161, 0.34);
}

.lead-text {
  display: inline-block;
  color: var(--ink);
}

.hero-seo-summary {
  max-width: 34rem;
  margin: -6px 0 0;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.72;
  letter-spacing: 0;
  text-wrap: balance;
}

.site-seo-content {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: 42px 0 64px;
}

.site-seo-head {
  display: grid;
  gap: 8px;
}

.site-seo-head h2 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.35;
}

.site-seo-head p {
  margin: 0;
  color: rgba(232, 236, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-seo-faq {
  display: grid;
  gap: 8px;
}

.site-seo-question {
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 8px;
  background: rgba(8, 12, 27, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.site-seo-question summary {
  cursor: pointer;
  padding: 12px 15px;
  color: #f6f8ff;
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.45;
}

.site-seo-question p {
  margin: 0;
  padding: 0 15px 14px;
  color: rgba(232, 236, 255, 0.68);
  font-size: 0.91rem;
  line-height: 1.72;
}

.author-note {
  max-width: 33rem;
  margin: -4px 0 0;
  padding: 12px 18px;
  border-left: 2px solid rgba(90, 242, 212, 0.58);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  background: var(--glass-bg);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: 0;
  box-shadow:
    -8px 0 22px rgba(90, 242, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.claim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

.claim-chip {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 8px;
  color: var(--ink-soft);
  background: linear-gradient(
    135deg,
    rgba(11, 16, 36, 0.74) 0%,
    rgba(5, 6, 18, 0.58) 100%
  );
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  letter-spacing: inherit;
  cursor: pointer;
  user-select: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.claim-chip:hover,
.claim-chip:focus-visible,
.claim-chip.is-active {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(90, 242, 212, 0.42);
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(90, 242, 212, 0.14) 0%,
    rgba(103, 215, 255, 0.08) 100%
  );
  box-shadow:
    var(--glow-blue-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-button {
  position: relative;
  display: inline-grid;
  width: 196px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 62, 83, 0.58);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(255, 62, 83, 0.22) 0%,
    rgba(90, 242, 212, 0.1) 100%
  );
  box-shadow:
    var(--glow-pink-soft),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  overflow: hidden;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.download-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 36%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 64%
  );
  transform: translateX(-120%);
  transition: transform 720ms ease;
  pointer-events: none;
}

.download-button:hover,
.download-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    rgba(255, 62, 83, 0.28) 0%,
    rgba(90, 242, 212, 0.14) 100%
  );
  box-shadow:
    0 0 22px rgba(255, 62, 83, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.download-button:hover::before,
.download-button:focus-visible::before {
  transform: translateX(120%);
}

.download-button.is-disabled {
  border-color: rgba(176, 124, 255, 0.18);
  color: rgba(231, 233, 245, 0.34);
  background: rgba(20, 14, 48, 0.32);
  box-shadow: none;
}

.product-frame {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
  overflow: visible;
  --preview-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

.product-frame[aria-hidden="true"],
.product-frame[aria-hidden="true"] * {
  pointer-events: none;
  user-select: none;
}

.site-product-showcase {
  position: relative;
  width: min(68vw, 680px);
  min-width: 500px;
  aspect-ratio: 16 / 10;
  isolation: isolate;
  filter:
    drop-shadow(0 34px 58px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 30px rgba(90, 242, 212, 0.14));
}

.game-demo-window {
  position: absolute;
  inset: 28px 72px 58px 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(8, 8, 10, 0.22);
  border-radius: 7px;
  background: #111216;
  box-shadow:
    0 30px 54px rgba(12, 18, 30, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.52);
  opacity: 1;
  transform: rotateX(0deg) rotateY(-2deg);
  transform-origin: center;
}

.game-window-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 28px;
  gap: 8px;
  padding: 0 11px 0 8px;
  color: rgba(12, 12, 14, 0.7);
  background: rgba(252, 246, 253, 0.96);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.game-window-icon {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 4px;
  color: #13140f;
  background: #d4fb19;
  font-size: 0.68rem;
  font-weight: 950;
  transform: skew(-8deg);
}

.game-window-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-window-controls {
  display: inline-flex;
  gap: 13px;
}

.game-window-controls span {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(8, 8, 10, 0.24);
  border-radius: 2px;
}

.game-window-shot {
  position: relative;
  height: calc(100% - 28px);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 34%, rgba(90, 242, 212, 0.1), rgba(90, 242, 212, 0) 30%),
    radial-gradient(circle at 24% 72%, rgba(255, 62, 105, 0.08), rgba(255, 62, 105, 0) 34%),
    linear-gradient(135deg, rgba(18, 24, 31, 0.98), rgba(5, 8, 12, 0.98) 58%, rgba(12, 14, 24, 0.98));
}

.game-window-shot::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(236, 241, 246, 0.06);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(236, 241, 246, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(236, 241, 246, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  opacity: 0.28;
}

.game-window-shot::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(236, 241, 246, 0.08), rgba(236, 241, 246, 0.025));
  content: "";
  opacity: 0.42;
}

.site-runtime-board-preview {
  position: absolute;
  top: 64px;
  right: 8px;
  bottom: 34px;
  z-index: 6;
  width: min(340px, 50%);
  min-width: 300px;
  opacity: 0;
  transform: translate(38px, 22px) scale(0.92);
  transform-origin: center right;
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    filter 420ms ease;
}

.site-backpack-window {
  display: grid;
  grid-template-rows: 36px auto 1fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 241, 246, 0.12);
  border-radius: 8px;
  color: rgba(236, 241, 246, 0.9);
  background:
    linear-gradient(180deg, rgba(30, 36, 42, 0.78), rgba(8, 11, 14, 0.74)),
    rgba(8, 11, 14, 0.72);
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.site-backpack-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 8px 0 10px;
  background:
    linear-gradient(180deg, rgba(34, 40, 47, 0.86), rgba(16, 20, 25, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.site-backpack-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 860;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-backpack-context {
  min-width: 0;
  overflow: hidden;
  color: rgba(236, 241, 246, 0.52);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-backpack-window-actions {
  display: inline-flex;
  gap: 5px;
}

.site-backpack-window-actions span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(236, 241, 246, 0.1);
  box-shadow: inset 0 0 0 1px rgba(236, 241, 246, 0.08);
}

.site-backpack-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 6px;
  background: rgba(5, 7, 10, 0.16);
}

.site-backpack-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.site-backpack-metrics em {
  color: rgba(236, 241, 246, 0.44);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1;
}

.site-backpack-metrics strong {
  overflow: hidden;
  color: rgba(246, 249, 252, 0.92);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-backpack-quality {
  display: grid;
  grid-template-columns: 1.16fr 0.62fr 0.86fr 0.92fr;
  gap: 1px;
  padding: 0 6px 6px;
  color: rgba(236, 241, 246, 0.64);
  font-size: 0.58rem;
  font-weight: 760;
  line-height: 1;
}

.site-backpack-quality span {
  display: inline-flex;
  min-width: 0;
  min-height: 18px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: rgba(132, 143, 158, 0.6);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 10, 0.24);
}

.quality-dot.is-red { background: #ec5a50; }
.quality-dot.is-gold { background: #edbd43; }
.quality-dot.is-purple { background: #a978f2; }
.quality-dot.is-blue { background: #5d99f5; }
.quality-dot.is-green { background: #69d47c; }

.site-backpack-board-shell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  padding: 0 6px 6px;
}

.site-backpack-board {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 28, 33, 0.8), rgba(8, 11, 14, 0.7));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.site-backpack-cell-layer,
.site-backpack-item-layer {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 2px;
  min-height: 0;
}

.site-backpack-cell-layer {
  position: relative;
  z-index: 1;
  padding: 6px;
}

.site-backpack-item-layer {
  position: absolute;
  inset: 6px;
  z-index: 2;
}

.site-backpack-cell {
  min-width: 0;
  min-height: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.site-backpack-item {
  position: relative;
  display: grid;
  grid-column: var(--item-col) / span var(--item-w);
  grid-row: var(--item-row) / span var(--item-h);
  min-width: 0;
  min-height: 0;
  align-content: end;
  gap: 3px;
  overflow: hidden;
  margin: -1px;
  padding: 5px;
  border: 1px solid rgba(5, 7, 10, 0.18);
  border-radius: 5px;
  color: rgba(3, 5, 8, 0.86);
  background: var(--site-item-bg, rgba(224, 229, 235, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 2px 4px rgba(5, 8, 12, 0.18);
  font-size: 0.58rem;
  font-weight: 820;
  line-height: 1;
}

.site-backpack-item span,
.site-backpack-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-backpack-item strong {
  font-weight: 900;
}

.site-backpack-item.is-quality-red { --site-item-bg: #ec5a50; }
.site-backpack-item.is-quality-gold { --site-item-bg: #edbd43; }
.site-backpack-item.is-quality-purple { --site-item-bg: #a978f2; }
.site-backpack-item.is-quality-blue { --site-item-bg: #5d99f5; }
.site-backpack-item.is-quality-green { --site-item-bg: #69d47c; }

.site-backpack-item.is-preselected {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: -3px;
  box-shadow:
    inset 0 0 0 1px rgba(8, 10, 14, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 12px rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(5, 8, 12, 0.18);
}

.site-backpack-low-estimate {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  z-index: 4;
  display: inline-flex;
  height: 20px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(236, 241, 246, 0.86);
  background: linear-gradient(180deg, rgba(8, 11, 14, 0), rgba(8, 11, 14, 0.42));
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 780;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
}

.site-backpack-low-estimate span {
  color: rgba(236, 241, 246, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-backpack-low-estimate em {
  color: rgba(255, 215, 120, 0.9);
  font-style: normal;
}

.site-candidate-window {
  position: absolute;
  top: 128px;
  right: 280px;
  z-index: 8;
  display: grid;
  width: min(260px, 38vw);
  max-height: 314px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(236, 241, 246, 0.12);
  border-radius: 6px;
  color: rgba(236, 241, 246, 0.9);
  background: rgba(15, 18, 24, 0.94);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translate(32px, 14px) scale(0.94);
  backdrop-filter: blur(12px);
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    filter 420ms ease;
}

.site-candidate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px 6px 10px;
  border-bottom: 1px solid rgba(236, 241, 246, 0.08);
  color: rgba(236, 241, 246, 0.58);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1;
}

.site-candidate-section {
  display: grid;
  gap: 2px;
  margin: 0 5px 5px;
  overflow: visible;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.site-candidate-section.is-quality-red {
  background: rgba(236, 90, 80, 0.1);
}

.site-candidate-section.is-quality-gold {
  background: rgba(237, 189, 67, 0.1);
}

.site-candidate-section-head,
.site-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-candidate-section-head {
  min-height: 24px;
  padding: 4px 6px;
  border-radius: 5px 5px 3px 3px;
  color: rgba(236, 241, 246, 0.66);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.site-candidate-section-head span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-candidate-section-head strong {
  color: rgba(236, 241, 246, 0.44);
  font-size: 0.62rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.site-candidate-row {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 4px;
  color: rgba(236, 241, 246, 0.84);
  background: rgba(5, 7, 10, 0.1);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.18;
}

.site-candidate-row span,
.site-candidate-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-candidate-row strong {
  color: rgba(236, 241, 246, 0.72);
  font-size: 0.68rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.site-candidate-row.is-selected {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 14px rgba(255, 255, 255, 0.08);
}

.product-frame[data-active-feature="backpack"] .site-runtime-board-preview,
.product-frame[data-active-feature="preselect"] .site-runtime-board-preview {
  opacity: 1;
  filter: saturate(1.04) brightness(1.02);
  transform: translate(0, 0) scale(1);
}

.product-frame[data-active-feature="backpack"] .site-runtime-board-preview,
.product-frame[data-active-feature="preselect"] .site-runtime-board-preview {
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(90, 242, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-frame[data-active-feature="backpack"] .site-backpack-board,
.product-frame[data-active-feature="preselect"] .site-backpack-board {
  box-shadow:
    inset 0 0 0 1px rgba(90, 242, 212, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(90, 242, 212, 0.12);
}

.product-frame[data-active-feature="preselect"] .site-candidate-window {
  opacity: 1;
  filter: saturate(1.05) brightness(1.04);
  transform: translate(0, 0) scale(1);
}

.product-frame[data-active-feature="preselect"] .site-backpack-item.is-preselected {
  box-shadow:
    inset 0 0 0 1px rgba(8, 10, 14, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(5, 8, 12, 0.18);
}

.diamond-wrap {
  position: absolute;
  top: 52%;
  left: 45%;
  --site-split-x: 50%;
  z-index: 3;
  width: min(48vw, 348px);
  min-width: 276px;
  aspect-ratio: 1;
  filter:
    drop-shadow(0 0 32px rgba(176, 124, 255, 0.32))
    drop-shadow(0 22px 38px rgba(0, 0, 0, 0.6));
  transform: translate(-50%, -50%);
  transition:
    top 620ms var(--preview-ease),
    left 620ms var(--preview-ease),
    width 620ms var(--preview-ease),
    min-width 620ms var(--preview-ease),
    filter 620ms var(--preview-ease);
}

.site-diamond-preview {
  animation: site-preview-breathe 5.8s ease-in-out infinite;
}

.product-frame[data-active-feature="drawer"] .site-diamond-preview {
  left: 53%;
  width: min(54vw, 374px);
  filter:
    drop-shadow(0 0 38px rgba(176, 124, 255, 0.42))
    drop-shadow(0 24px 42px rgba(0, 0, 0, 0.62));
}

.product-frame[data-active-feature="backpack"] .site-diamond-preview,
.product-frame[data-active-feature="preselect"] .site-diamond-preview {
  left: 34%;
  width: min(42vw, 300px);
  filter:
    drop-shadow(0 0 28px rgba(90, 242, 212, 0.22))
    drop-shadow(0 22px 36px rgba(0, 0, 0, 0.58));
}

@keyframes site-preview-breathe {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -3px;
  }
}

.diamond-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: default;
  user-select: none;
  touch-action: none;
}

.diamond-svg,
.edge-ruler-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.site-diamond-preview .diamond-svg {
  z-index: 0;
}

.site-fill-state {
  display: none;
}

.site-fill-default {
  display: block;
}

.product-frame[data-active-feature="backpack"] .site-fill-default,
.product-frame[data-active-feature="preselect"] .site-fill-default {
  display: none;
}

.product-frame[data-active-feature="backpack"] .site-fill-backpack,
.product-frame[data-active-feature="preselect"] .site-fill-backpack {
  display: block;
  animation: site-backpack-fill-in 520ms var(--preview-ease) both;
}

.left-fill {
  fill: var(--red);
}

.right-fill {
  fill: var(--gold);
}

.diamond-wrap[data-active-part="volume-left"] .site-fill-default,
.diamond-wrap[data-active-part="volume-right"] .site-fill-default {
  display: none;
}

.diamond-wrap[data-active-part="volume-left"] .site-fill-volume-left,
.diamond-wrap[data-active-part="volume-right"] .site-fill-volume-right {
  display: block;
}

.site-fill-baseline {
  opacity: 0;
}

.product-frame[data-active-feature="baseline"] .site-fill-baseline {
  display: block;
  animation: site-baseline-fill 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .site-fill-default {
  animation: site-baseline-default-fill 4.2s ease-in-out infinite;
}

.site-fixed-assist-host {
  position: absolute;
  top: 70%;
  left: calc(50% - 28px);
  z-index: 4;
  width: 346px;
  height: 124px;
  overflow: visible;
  transform: translate(-100%, -50%);
  pointer-events: none;
}

.site-fixed-assist-host::after {
  position: absolute;
  top: 50%;
  right: -54px;
  z-index: -1;
  width: 88px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(170, 148, 255, 0.24), rgba(170, 148, 255, 0));
  content: "";
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 360ms ease;
}

.site-fixed-assist-drawer {
  --fixed-note-scale: 1;
  --fixed-note-ink: #07080a;
  --fixed-note-ink-soft: rgba(7, 8, 10, 0.9);
  --fixed-note-left-stroke: rgba(0, 0, 0, 0.92);
  --fixed-note-left-shadow: rgba(0, 0, 0, 0.34);
  --fixed-note-purple-start: #8374ff;
  --fixed-note-purple-mid: #7164f3;
  --fixed-note-purple-join: #5e50db;
  --fixed-note-purple-end: #4a3dbc;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 346px;
  height: 124px;
  grid-template-columns: 58px 84px 66px 68px 70px;
  padding: 0;
  color: var(--fixed-note-ink);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.2));
  opacity: 0.68;
  transform: translateX(222px);
  transition:
    opacity 360ms ease,
    transform 560ms var(--preview-ease),
    filter 420ms ease;
}

.site-fixed-assist-drawer::after {
  position: relative;
  z-index: 0;
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--fixed-note-purple-join) 0%, var(--fixed-note-purple-end) 100%);
  content: "";
}

.site-fixed-assist-left,
.site-fixed-assist-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.site-fixed-assist-left {
  display: block;
}

.site-fixed-assist-left-value {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  color: #ffffff;
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.76),
    0 4px 8px var(--fixed-note-left-shadow);
  -webkit-text-stroke: 0.7px var(--fixed-note-left-stroke);
  transform: translateY(-50%);
}

.site-fixed-assist-swap {
  position: absolute;
  top: calc(50% + 25px);
  left: 50%;
  display: grid;
  width: 26px;
  height: 21px;
  place-items: center;
  color: #ffffff;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.84))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.32));
  transform: translate(-50%, -50%);
}

.site-fixed-assist-swap svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.45;
}

.site-fixed-assist-zone {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
  padding: 8px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.site-fixed-assist-zone + .site-fixed-assist-zone {
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.site-fixed-assist-zone.is-white-green {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.96) 0 24%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 88%, rgba(30, 190, 99, 0.88) 0 36%, rgba(30, 190, 99, 0) 58%),
    linear-gradient(135deg, #f7fbf7 0%, #d9f4df 44%, #24bd65 100%);
}

.site-fixed-assist-zone.is-blue {
  background: linear-gradient(135deg, #28c8df 0%, #18b6d7 46%, #0b8fc9 100%);
}

.site-fixed-assist-zone.is-purple {
  background:
    linear-gradient(
      90deg,
      var(--fixed-note-purple-start) 0%,
      var(--fixed-note-purple-mid) 55%,
      var(--fixed-note-purple-join) 100%
    );
}

.site-fixed-assist-field {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 0 2px;
  color: var(--fixed-note-ink);
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 3px 8px rgba(255, 255, 255, 0.18);
}

.site-fixed-assist-field > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-fixed-assist-zone.is-white-green .site-fixed-assist-field {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.64),
    0 3px 8px rgba(255, 255, 255, 0.22);
}

.product-frame[data-active-feature="drawer"] .site-fixed-assist-host::after {
  opacity: 1;
}

.product-frame[data-active-feature="drawer"] .site-fixed-assist-drawer {
  opacity: 1;
  filter:
    drop-shadow(0 16px 20px rgba(0, 0, 0, 0.2))
    drop-shadow(0 0 18px rgba(170, 148, 255, 0.26));
  transform: translateX(0);
  animation: site-fixed-assist-drawer-breathe 2.8s ease-in-out infinite 560ms;
}

.product-frame[data-active-feature="backpack"] .site-fixed-assist-drawer,
.product-frame[data-active-feature="preselect"] .site-fixed-assist-drawer {
  transform: translateX(186px);
}

@keyframes site-fixed-assist-drawer-breathe {
  0%,
  100% {
    filter:
      drop-shadow(0 16px 20px rgba(0, 0, 0, 0.2))
      drop-shadow(0 0 14px rgba(170, 148, 255, 0.22));
  }

  50% {
    filter:
      drop-shadow(0 18px 24px rgba(0, 0, 0, 0.24))
      drop-shadow(0 0 26px rgba(170, 148, 255, 0.4));
  }
}

/* Static homepage copies of the desktop UI. These use the app class names but no app logic. */
.product-frame [hidden] {
  display: none !important;
}

.runtime-board-debug-panel.site-runtime-board-preview {
  --runtime-board-titlebar-height: 72px;
  --runtime-board-info-scale: 1;
  --runtime-board-cell-size: 30px;
  position: absolute;
  top: 52px;
  right: 6px;
  bottom: 34px;
  z-index: 6;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: var(--runtime-board-titlebar-height) minmax(0, 1fr);
  width: min(382px, 54%);
  min-width: 332px;
  height: auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(236, 241, 246, 0.12);
  border-radius: 0;
  color: rgba(236, 241, 246, 0.92);
  background:
    linear-gradient(180deg, rgba(30, 36, 42, 0.78), rgba(8, 11, 14, 0.72));
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translate(42px, 22px) scale(0.92);
  transform-origin: center right;
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    filter 420ms ease;
  backdrop-filter: blur(10px);
  touch-action: none;
  user-select: none;
}

.runtime-board-debug-panel.site-runtime-board-preview *,
.runtime-board-debug-panel.site-runtime-board-preview *::before,
.runtime-board-debug-panel.site-runtime-board-preview *::after,
.site-runtime-candidate-preview *,
.site-runtime-candidate-preview *::before,
.site-runtime-candidate-preview *::after {
  box-sizing: border-box;
}

.runtime-board-debug-header {
  --runtime-board-title-grid-columns: minmax(12px, 0.42fr) repeat(5, minmax(0, 1fr));
  --runtime-board-title-cell-padding-x: 3px;
  --runtime-board-title-edge-padding-x: 6px;
  position: relative;
  z-index: 24;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: minmax(0, 1fr) 18px 18px;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  height: var(--runtime-board-titlebar-height);
  padding: 3px 4px;
  background:
    linear-gradient(180deg, rgba(34, 40, 47, 0.78), rgba(16, 20, 25, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  touch-action: none;
}

.site-runtime-board-preview .runtime-board-info-panel {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  grid-template-rows: 13px minmax(0, 1fr);
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  gap: 1px;
  overflow: hidden;
  padding: 0 var(--runtime-board-title-edge-padding-x);
  user-select: none;
}

.site-runtime-board-preview .runtime-board-info-context-grid {
  display: grid;
  grid-row: 1;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.site-runtime-board-preview .runtime-board-info-cell {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: rgba(236, 241, 246, 0.82);
}

.runtime-board-info-label {
  min-width: 0;
  overflow: hidden;
  color: rgba(236, 241, 246, 0.46);
  font-size: calc(7.2px * var(--runtime-board-info-scale));
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-runtime-board-preview .runtime-board-info-cell strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(236, 241, 246, 0.8);
  font-size: calc(9px * var(--runtime-board-info-scale));
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-quality-panel {
  display: grid;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.runtime-board-quality-table {
  display: grid;
  grid-template-rows: calc(8.4px * var(--runtime-board-info-scale)) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.runtime-board-quality-table-row {
  display: grid;
  grid-template-columns: var(--runtime-board-title-grid-columns);
  align-items: stretch;
  grid-row: var(--runtime-board-quality-row, auto);
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  color: rgba(236, 241, 246, 0.8);
  font-size: calc(7.4px * var(--runtime-board-info-scale));
  font-weight: 760;
  line-height: 1;
}

.runtime-board-quality-table-row.is-head {
  color: rgba(236, 241, 246, 0.42);
  font-size: calc(6.8px * var(--runtime-board-info-scale));
  font-weight: 780;
}

.runtime-board-quality-table-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--runtime-board-title-cell-padding-x);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-quality-table-body {
  position: relative;
  display: grid;
  grid-template-columns: var(--runtime-board-title-grid-columns);
  grid-template-rows: repeat(6, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: visible;
}

.runtime-board-quality-table-quality {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.runtime-board-quality-table-row [data-derived="true"] {
  text-decoration: underline dotted rgba(236, 241, 246, 0.45);
  text-underline-offset: 2px;
}

.runtime-board-quality-swatch {
  width: calc(7.5px * var(--runtime-board-info-scale));
  height: calc(7.5px * var(--runtime-board-info-scale));
  min-width: 5px;
  min-height: 5px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 10, 0.2);
}

.runtime-board-quality-swatch.is-white { background: #f5f2e8; }
.runtime-board-quality-swatch.is-green { background: #69d47c; }
.runtime-board-quality-swatch.is-blue { background: #5d99f5; }
.runtime-board-quality-swatch.is-purple { background: #a978f2; }
.runtime-board-quality-swatch.is-gold { background: #edbd43; }
.runtime-board-quality-swatch.is-red { background: #ec5a50; }

.runtime-board-debug-settings,
.runtime-board-debug-close {
  display: grid;
  position: relative;
  z-index: 36;
  align-self: center;
  justify-self: end;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(236, 241, 246, 0.68);
  background: transparent;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.runtime-board-debug-settings {
  grid-row: 1;
  grid-column: 2;
}

.runtime-board-debug-close {
  grid-row: 1;
  grid-column: 3;
}

.runtime-board-debug-settings svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.runtime-board-titlebar-divider {
  position: absolute;
  z-index: 38;
  top: calc(var(--runtime-board-titlebar-height) - 3px);
  right: 0;
  left: 0;
  display: none;
  height: 6px;
  pointer-events: none;
}

.runtime-board-board-frame {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 8px 8px 18px;
}

.runtime-board-board-shell {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.runtime-board-board {
  position: relative;
  width: var(--runtime-board-width);
  max-width: 100%;
  height: var(--runtime-board-height);
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 28, 33, 0.76), rgba(8, 11, 14, 0.68));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.runtime-board-cell-layer,
.runtime-board-item-layer,
.runtime-board-row-label-layer {
  display: grid;
  grid-template-columns: repeat(var(--runtime-board-columns), var(--runtime-board-cell-size));
  grid-auto-rows: var(--runtime-board-cell-size);
  gap: var(--runtime-board-gap);
}

.runtime-board-cell-layer {
  position: relative;
  z-index: 1;
}

.runtime-board-item-layer,
.runtime-board-row-label-layer {
  position: absolute;
  inset: 0;
}

.runtime-board-item-layer {
  z-index: 2;
  pointer-events: none;
}

.runtime-board-row-label-layer {
  z-index: 5;
  pointer-events: none;
}

.runtime-board-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  transition:
    background 80ms linear,
    box-shadow 80ms linear,
    transform 80ms linear;
}

.runtime-board-cell.has-fact {
  background: rgba(255, 255, 255, 0.09);
}

.runtime-board-row-number {
  align-self: end;
  justify-self: end;
  margin: 2px;
  padding: 0 3px;
  border-radius: 4px;
  color: rgba(238, 242, 247, 0.78);
  background: rgba(5, 7, 10, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: clamp(7px, calc(var(--runtime-board-cell-size) * 0.26), 12px);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1.22;
}

.runtime-board-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(5, 7, 10, 0.18);
  border-radius: 5px;
  color: rgba(3, 5, 8, 0.86);
  background: var(--runtime-item-bg, rgba(224, 229, 235, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    0 2px 4px rgba(5, 8, 12, 0.18);
  pointer-events: auto;
}

.runtime-board-item.has-candidate-preselect {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: -3px;
  box-shadow:
    inset 0 0 0 1px rgba(8, 10, 14, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 12px rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(5, 8, 12, 0.18);
}

.runtime-board-item.is-candidate-selected {
  outline: 2px solid rgba(255, 255, 255, 0.94);
  outline-offset: -2px;
  filter: saturate(1.06) brightness(1.04);
}

.runtime-board-item.has-auto-candidate::after {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 3;
  display: inline-grid;
  width: clamp(9px, calc(var(--runtime-board-cell-size) * 0.34), 15px);
  height: clamp(9px, calc(var(--runtime-board-cell-size) * 0.34), 15px);
  place-items: center;
  border-radius: 3px;
  color: rgba(5, 7, 10, 0.82);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 10, 0.1);
  content: "推";
  font-size: clamp(7px, calc(var(--runtime-board-cell-size) * 0.19), 10px);
  font-weight: 860;
  line-height: 1;
  pointer-events: none;
}

.runtime-board-item.is-quality-white { --runtime-item-bg: #f4f5ef; background: var(--runtime-item-bg); }
.runtime-board-item.is-quality-green { --runtime-item-bg: #69d47c; background: var(--runtime-item-bg); }
.runtime-board-item.is-quality-blue { --runtime-item-bg: #5d99f5; background: var(--runtime-item-bg); }
.runtime-board-item.is-quality-purple { --runtime-item-bg: #a978f2; background: var(--runtime-item-bg); }
.runtime-board-item.is-quality-gold { --runtime-item-bg: #edbd43; background: var(--runtime-item-bg); }
.runtime-board-item.is-quality-red { --runtime-item-bg: #ec5a50; background: var(--runtime-item-bg); }

.runtime-board-item-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  gap: max(0px, calc(var(--runtime-board-cell-size) * 0.045));
  padding: clamp(0px, calc(var(--runtime-board-cell-size) * 0.12), 8px);
  overflow: hidden;
}

.runtime-board-item-badges {
  display: flex;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: max(0px, calc(var(--runtime-board-cell-size) * 0.045));
  overflow: hidden;
}

.runtime-board-item-badges span {
  display: inline-grid;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  max-height: calc(var(--runtime-board-cell-size) * 0.55);
  align-items: center;
  overflow: hidden;
  padding: 0 clamp(1px, calc(var(--runtime-board-cell-size) * 0.075), 3px);
  border-radius: clamp(1px, calc(var(--runtime-board-cell-size) * 0.08), 4px);
  color: rgba(5, 7, 10, 0.78);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 10, 0.08);
  font-size: clamp(1px, calc(var(--runtime-board-cell-size) * 0.22), 11px);
  font-weight: 780;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-item-name {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  color: rgba(3, 5, 8, 0.88);
  font-size: clamp(1px, calc(var(--runtime-board-cell-size) * 0.28), 16px);
  font-weight: 820;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--runtime-board-name-lines);
}

.runtime-board-item-price {
  justify-self: start;
  align-self: end;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(var(--runtime-board-cell-size) * 0.48);
  overflow: hidden;
  padding: 0 clamp(1px, calc(var(--runtime-board-cell-size) * 0.08), 4px);
  border-radius: clamp(1px, calc(var(--runtime-board-cell-size) * 0.09), 4px);
  color: rgba(3, 5, 8, 0.78);
  background: rgba(255, 255, 255, 0.46);
  font-size: clamp(1px, calc(var(--runtime-board-cell-size) * 0.2), 12px);
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-item.is-content-small .runtime-board-item-price {
  display: none;
}

.runtime-board-item.is-content-small .runtime-board-item-content {
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
}

.runtime-board-item.is-content-small .runtime-board-item-name {
  -webkit-line-clamp: 2;
}

.runtime-board-low-estimate-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 18px;
  padding: 0 8px;
  color: rgba(236, 241, 246, 0.86);
  background: linear-gradient(180deg, rgba(8, 11, 14, 0), rgba(8, 11, 14, 0.38));
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
}

.runtime-board-low-estimate-bar span {
  color: rgba(236, 241, 246, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 760;
}

.runtime-board-low-estimate-bar strong {
  overflow: hidden;
  max-width: 58%;
  color: rgba(246, 249, 252, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-low-estimate-bar em {
  color: rgba(255, 215, 120, 0.86);
  font-size: 9px;
  font-style: normal;
}

.runtime-board-candidate-popover {
  position: absolute;
  z-index: 48;
  display: grid;
  width: min(260px, calc(100vw - 20px));
  max-height: min(320px, calc(100vh - 20px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(236, 241, 246, 0.12);
  border-radius: 6px;
  color: rgba(236, 241, 246, 0.9);
  background: rgba(15, 18, 24, 0.94);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  touch-action: none;
}

.site-runtime-candidate-preview.runtime-board-candidate-popover {
  top: 122px;
  right: 292px;
  width: min(260px, 38vw);
  opacity: 0;
  transform: translate(32px, 14px) scale(0.94);
  transition:
    opacity 420ms var(--preview-ease),
    transform 560ms var(--preview-ease),
    filter 420ms ease;
}

.runtime-board-candidate-popover-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px 5px 9px;
  border-bottom: 1px solid rgba(236, 241, 246, 0.08);
  color: rgba(236, 241, 246, 0.58);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.runtime-board-candidate-close {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 3px;
  color: rgba(236, 241, 246, 0.62);
  background: transparent;
  font-size: 12px;
  font-weight: 780;
  line-height: 1;
}

.runtime-board-candidate-section-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding: 5px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 241, 246, 0.2) transparent;
}

.runtime-board-candidate-section {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow: visible;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
}

.runtime-board-candidate-section.is-quality-gold { background: rgba(237, 189, 67, 0.1); }
.runtime-board-candidate-section.is-quality-red { background: rgba(236, 90, 80, 0.1); }

.runtime-board-candidate-section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 3px 5px;
  border-radius: 5px 5px 3px 3px;
  color: rgba(236, 241, 246, 0.66);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.runtime-board-candidate-section-head > span:not(.runtime-board-candidate-quality-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-candidate-section-head strong {
  color: rgba(236, 241, 246, 0.44);
  font-size: 10px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.runtime-board-candidate-quality-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(132, 143, 158, 0.6);
  box-shadow: inset 0 0 0 1px rgba(5, 7, 10, 0.24);
}

.runtime-board-candidate-quality-dot.is-gold { background: #edbd43; }
.runtime-board-candidate-quality-dot.is-red { background: #ec5a50; }

.runtime-board-candidate-row-list {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 0 2px 4px;
  overflow: visible;
}

.runtime-board-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 4px 6px;
  border-radius: 4px;
  color: rgba(236, 241, 246, 0.84);
  background: rgba(5, 7, 10, 0.1);
}

.runtime-board-candidate-row.is-pending {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.09);
}

.runtime-board-candidate-name {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-board-candidate-meta {
  display: inline-flex;
  width: 52px;
  max-width: 52px;
  justify-content: flex-end;
  overflow: hidden;
  color: rgba(236, 241, 246, 0.66);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.runtime-board-candidate-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-board-candidate-value {
  color: rgba(236, 241, 246, 0.72);
  font-variant-numeric: tabular-nums;
}

.fixed-assist-note-host {
  position: absolute;
  top: 50%;
  z-index: -1;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
  touch-action: none;
}

.site-fixed-assist-note-host {
  z-index: -1;
  pointer-events: none;
}

.site-fixed-assist-note-host::after {
  position: absolute;
  top: 50%;
  right: 228px;
  z-index: -1;
  width: 112px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(170, 148, 255, 0.28), rgba(170, 148, 255, 0));
  content: "";
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 360ms ease;
}

.fixed-assist-note-sweep,
.fixed-assist-note-open-hit {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.fixed-assist-note-sweep {
  width: 100%;
}

.fixed-assist-note-open-hit {
  width: calc(276px * var(--fixed-note-scale));
}

.fixed-assist-note {
  --fixed-note-ink: #07080a;
  --fixed-note-ink-soft: rgba(7, 8, 10, 0.9);
  --fixed-note-left-stroke: rgba(0, 0, 0, 0.92);
  --fixed-note-left-shadow: rgba(0, 0, 0, 0.34);
  --fixed-note-purple-start: #8374ff;
  --fixed-note-purple-mid: #7164f3;
  --fixed-note-purple-join: #5e50db;
  --fixed-note-purple-end: #4a3dbc;
  --fixed-note-purple-gradient:
    linear-gradient(
      90deg,
      var(--fixed-note-purple-start) 0%,
      var(--fixed-note-purple-mid) 55%,
      var(--fixed-note-purple-join) 100%
    );
  --fixed-note-purple-underlap-gradient:
    linear-gradient(
      90deg,
      var(--fixed-note-purple-join) 0%,
      var(--fixed-note-purple-end) 100%
    );
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: grid;
  grid-template-columns:
    calc(58px * var(--fixed-note-scale))
    calc(84px * var(--fixed-note-scale))
    calc(66px * var(--fixed-note-scale))
    calc(68px * var(--fixed-note-scale));
  gap: 0;
  padding: 0;
  color: var(--fixed-note-ink);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.18));
  opacity: 0.72;
  transform: translateX(206px);
  transform-origin: center center;
  transition:
    transform 200ms linear,
    opacity 140ms linear;
  user-select: none;
  touch-action: none;
}

.fixed-assist-note::after {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: var(--fixed-note-drawer-inset);
  height: 100%;
  background: var(--fixed-note-purple-underlap-gradient);
  content: "";
  pointer-events: none;
}

.fixed-assist-note-left,
.fixed-assist-note-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

.fixed-assist-note-left {
  display: block;
  background: transparent;
  filter: none;
}

.fixed-assist-note-left-input {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  width: 100%;
  min-width: 0;
  height: clamp(23px, calc(29px * var(--fixed-note-scale)), 36px);
  place-items: center;
  padding: 0 1px;
  color: #ffffff;
  background: transparent;
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(14px, calc(16px * var(--fixed-note-scale)), 19px);
  font-weight: 900;
  -webkit-text-stroke: clamp(0.5px, calc(0.7px * var(--fixed-note-scale)), 0.9px) var(--fixed-note-left-stroke);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.76),
    0 4px 8px var(--fixed-note-left-shadow);
  transform: translateY(-50%);
}

.fixed-assist-note-swap {
  position: absolute;
  top: calc(50% + clamp(23px, calc(25px * var(--fixed-note-scale)), 29px));
  left: 50%;
  display: grid;
  width: clamp(20px, calc(26px * var(--fixed-note-scale)), 32px);
  height: clamp(18px, calc(21px * var(--fixed-note-scale)), 28px);
  place-items: center;
  padding: 0;
  color: #ffffff;
  background: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.84))
    drop-shadow(0 3px 5px rgba(0, 0, 0, 0.32));
  line-height: 1;
  transform: translate(-50%, -50%);
}

.fixed-assist-note-swap svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.45;
}

.fixed-assist-note-zone {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
  padding: max(6px, calc(8px * var(--fixed-note-scale))) max(4px, calc(6px * var(--fixed-note-scale)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.fixed-assist-note-zone + .fixed-assist-note-zone {
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.fixed-assist-note-zone.is-whiteGreen {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.96) 0 24%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 82% 88%, rgba(30, 190, 99, 0.88) 0 36%, rgba(30, 190, 99, 0) 58%),
    linear-gradient(135deg, #f7fbf7 0%, #d9f4df 44%, #24bd65 100%);
}

.fixed-assist-note-zone.is-blue {
  background: linear-gradient(135deg, #28c8df 0%, #18b6d7 46%, #0b8fc9 100%);
}

.fixed-assist-note-zone.is-purple {
  background: var(--fixed-note-purple-gradient);
}

.fixed-assist-note-field-wrap {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
}

.fixed-assist-note-field {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: var(--fixed-note-ink);
  background: transparent;
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fixed-note-font-size);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 3px 8px rgba(255, 255, 255, 0.18);
}

.fixed-assist-note-field > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-assist-note-zone.is-whiteGreen .fixed-assist-note-field {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.64),
    0 3px 8px rgba(255, 255, 255, 0.22);
}

.fixed-assist-note-field[data-inferred="true"] {
  color: rgba(7, 8, 10, 0.95);
  font-style: normal;
}

.fixed-assist-note-field[data-candidate="true"] {
  text-decoration: underline;
  text-decoration-color: rgba(7, 8, 10, 0.44);
  text-underline-offset: 2px;
}

.product-frame[data-active-feature="drawer"] .site-fixed-assist-note-host::after {
  opacity: 0;
}

.product-frame[data-active-feature="drawer"] .site-fixed-assist-note-host .fixed-assist-note {
  opacity: 1;
  animation: site-fixed-assist-note-open-cycle 4.4s cubic-bezier(0.2, 0.86, 0.2, 1) infinite;
}

.product-frame[data-active-feature="backpack"] .site-fixed-assist-note-host .fixed-assist-note,
.product-frame[data-active-feature="preselect"] .site-fixed-assist-note-host .fixed-assist-note {
  opacity: 0;
  transform: translateX(206px);
}

.product-frame[data-active-feature="backpack"] .runtime-board-debug-panel.site-runtime-board-preview,
.product-frame[data-active-feature="preselect"] .runtime-board-debug-panel.site-runtime-board-preview {
  opacity: 1;
  filter: saturate(1.04) brightness(1.02);
  transform: translate(0, 0) scale(1);
}

.product-frame[data-active-feature="backpack"] .site-runtime-board-preview .runtime-board-board,
.product-frame[data-active-feature="preselect"] .site-runtime-board-preview .runtime-board-board {
  box-shadow:
    inset 0 0 0 1px rgba(90, 242, 212, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 24px rgba(90, 242, 212, 0.12);
}

.product-frame[data-active-feature="preselect"] .site-runtime-candidate-preview.runtime-board-candidate-popover {
  opacity: 1;
  filter: saturate(1.05) brightness(1.04);
  transform: translate(0, 0) scale(1);
}

.product-frame[data-active-feature="preselect"] .runtime-board-item.has-candidate-preselect {
  box-shadow:
    inset 0 0 0 1px rgba(8, 10, 14, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(5, 8, 12, 0.18);
}

@keyframes site-fixed-assist-note-open-cycle {
  0%,
  18% {
    opacity: 0;
    filter:
      drop-shadow(0 16px 20px rgba(0, 0, 0, 0.18))
      drop-shadow(0 0 8px rgba(170, 148, 255, 0.1));
    transform: translateX(206px);
  }

  36% {
    opacity: 0.92;
    filter:
      drop-shadow(0 17px 22px rgba(0, 0, 0, 0.21))
      drop-shadow(0 0 18px rgba(170, 148, 255, 0.28));
    transform: translateX(62px);
  }

  52%,
  78% {
    opacity: 1;
    filter:
      drop-shadow(0 18px 24px rgba(0, 0, 0, 0.24))
      drop-shadow(0 0 26px rgba(170, 148, 255, 0.42));
    transform: translateX(0);
  }

  100% {
    opacity: 0.78;
    filter:
      drop-shadow(0 16px 20px rgba(0, 0, 0, 0.18))
      drop-shadow(0 0 12px rgba(170, 148, 255, 0.18));
    transform: translateX(206px);
  }
}

@keyframes site-backpack-fill-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes site-preview-value-in {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.divider-hit {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.divider-hit {
  top: 8%;
  left: var(--site-split-x, 50%);
  z-index: 3;
  width: 14px;
  height: 84%;
  transform: translateX(-50%);
}

.divider-hit::after {
  position: absolute;
  top: 0;
  left: 50%;
  display: none;
  width: 1px;
  height: 100%;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.24);
  content: "";
  transform: translateX(-50%);
}

.diamond-wrap[data-active-part="ratio"] .divider-hit::after {
  display: block;
}

.total-control,
.number-slot,
.fixed-slot,
.reset-button,
.history-button,
.price-popover {
  position: absolute;
  transform: translate(-50%, -50%);
}

.total-control {
  top: 30%;
  left: 50%;
  z-index: 18;
  display: grid;
  min-width: 82px;
  min-height: 44px;
  place-items: center;
}

.total-price {
  position: relative;
  z-index: 2;
  min-width: 68px;
  color: rgba(7, 7, 9, 0.74);
  background: transparent;
  font-family: "Segoe UI Black", "Arial Black", "Trebuchet MS", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.98rem, 4vw, 1.42rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26),
    0 7px 14px rgba(0, 0, 0, 0.18);
}

.value-state {
  display: none;
}

.value-default {
  display: inline;
}

.product-frame[data-active-feature="backpack"] .site-diamond-preview .total-price,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .total-price,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .number-button,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .number-button {
  display: grid;
  place-items: center;
}

.product-frame[data-active-feature="backpack"] .site-diamond-preview .total-price .value-default,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .total-price .value-default,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .number-button .value-default,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .number-button .value-default,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-total,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-total,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-left,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-left,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-right,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-right {
  grid-area: 1 / 1;
}

.product-frame[data-active-feature="backpack"] .site-diamond-preview .total-price .value-default,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .total-price .value-default,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .number-button .value-default,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .number-button .value-default {
  opacity: 0;
  transform: translateY(-2px) scale(0.96);
}

.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-total,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-total,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-left,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-left,
.product-frame[data-active-feature="backpack"] .site-diamond-preview .value-backpack-right,
.product-frame[data-active-feature="preselect"] .site-diamond-preview .value-backpack-right {
  display: block;
  opacity: 1;
  animation: site-preview-value-in 520ms var(--preview-ease) both;
}

.product-frame[data-active-feature="baseline"] .total-price,
.product-frame[data-active-feature="baseline"] .number-button,
.product-frame[data-active-feature="baseline"] .fixed-gradient-text {
  display: grid;
  place-items: center;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default,
.product-frame[data-active-feature="baseline"] .number-button .value-default,
.product-frame[data-active-feature="baseline"] .fixed-value-default,
.product-frame[data-active-feature="baseline"] .value-baseline-fixed,
.product-frame[data-active-feature="baseline"] .value-baseline-final,
.product-frame[data-active-feature="baseline"] .value-baseline-left,
.product-frame[data-active-feature="baseline"] .value-baseline-right,
.product-frame[data-active-feature="baseline"] .fixed-baseline-draft,
.product-frame[data-active-feature="baseline"] .fixed-baseline-value {
  grid-area: 1 / 1;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default,
.product-frame[data-active-feature="baseline"] .number-button .value-default,
.product-frame[data-active-feature="baseline"] .fixed-value-default {
  display: block;
}

.product-frame[data-active-feature="baseline"] .total-price .value-default {
  animation: site-baseline-total-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .number-button .value-default {
  animation: site-baseline-number-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-value-default {
  animation: site-baseline-fixed-default 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .value-baseline-fixed {
  display: block;
  opacity: 0;
  animation: site-baseline-total-fixed 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .value-baseline-final,
.product-frame[data-active-feature="baseline"] .value-baseline-left,
.product-frame[data-active-feature="baseline"] .value-baseline-right {
  display: block;
  opacity: 0;
  animation: site-baseline-final-value 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-baseline-value {
  display: block;
  opacity: 0;
  animation: site-baseline-fixed-value 4.2s ease-in-out infinite;
}

.product-frame[data-active-feature="baseline"] .fixed-baseline-draft {
  display: block;
  opacity: 0;
  animation: site-baseline-fixed-draft 4.2s ease-in-out infinite;
}

.diamond-wrap[data-active-part="volume-left"] .total-price .value-default,
.diamond-wrap[data-active-part="volume-left"] .number-slot-left .value-default,
.diamond-wrap[data-active-part="volume-right"] .total-price .value-default,
.diamond-wrap[data-active-part="volume-right"] .number-slot-right .value-default,
.diamond-wrap[data-active-part="multiplier-left"] .total-price .value-default,
.diamond-wrap[data-active-part="multiplier-right"] .total-price .value-default {
  display: none;
}

.diamond-wrap[data-active-part="volume-left"] .value-volume-left,
.diamond-wrap[data-active-part="volume-right"] .value-volume-right,
.diamond-wrap[data-active-part="multiplier-left"] .value-multiplier-left,
.diamond-wrap[data-active-part="multiplier-right"] .value-multiplier-right {
  display: inline;
}

@keyframes site-baseline-total-default {
  0%,
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-number-default {
  0%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-default {
  0%,
  8% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  16%,
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-draft {
  0%,
  8% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  16%,
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-3px) scale(0.96);
  }
}

@keyframes site-baseline-fixed-value {
  0%,
  34% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  42%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-baseline-total-fixed {
  0%,
  34% {
    opacity: 0;
    transform: translateY(4px) scale(0.94);
  }
  42%,
  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  66%,
  100% {
    opacity: 0;
    transform: translateY(-3px) scale(0.96);
  }
}

@keyframes site-baseline-final-value {
  0%,
  58% {
    opacity: 0;
    transform: translateY(5px) scale(0.94);
  }
  70%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes site-baseline-fill {
  0%,
  58% {
    opacity: 0;
  }
  70%,
  100% {
    opacity: 1;
  }
}

@keyframes site-baseline-default-fill {
  0%,
  58% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}

.multiplier-dot {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  z-index: 3;
  display: block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.diamond-wrap[data-active-part="total"] .multiplier-dot,
.diamond-wrap[data-active-part="multiplier-left"] .multiplier-dot,
.diamond-wrap[data-active-part="multiplier-right"] .multiplier-dot {
  opacity: 1;
  pointer-events: auto;
}

.multiplier-dot-left {
  left: 3px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.76) 0 12%, rgba(255, 255, 255, 0) 15%),
    radial-gradient(circle at 45% 42%, #d10a25 0%, var(--red) 58%, #68020d 100%);
  box-shadow:
    inset 0 -1px 2px rgba(70, 0, 9, 0.46),
    0 0 0 1px rgba(96, 0, 12, 0.24),
    0 7px 13px rgba(158, 2, 25, 0.3);
}

.multiplier-dot-right {
  right: 3px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 245, 220, 0.66) 0 10%, rgba(255, 255, 255, 0) 14%),
    radial-gradient(circle at 45% 42%, #ff9f3d 0%, var(--gold) 56%, #b94a00 100%);
  box-shadow:
    inset 0 -1px 2px rgba(107, 38, 0, 0.42),
    0 0 0 1px rgba(125, 56, 0, 0.22),
    0 7px 13px rgba(218, 106, 5, 0.3);
}

.number-slot {
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.number-slot-left {
  top: 50%;
  left: 31.5%;
}

.number-slot-right {
  top: 50%;
  left: 68.5%;
}

.number-button,
.fixed-button {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 0;
  color: #09090b;
  background: transparent;
  cursor: default;
  font-family:
    "Segoe UI Black", "Arial Black", "Trebuchet MS", "Microsoft YaHei", "PingFang SC",
    ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.24),
    0 8px 13px rgba(0, 0, 0, 0.24),
    0 18px 24px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.number-button {
  width: clamp(54px, calc(2.72rem + var(--digit-count) * 0.94rem), 154px);
  height: clamp(44px, 13vw, 64px);
  font-size: clamp(1.55rem, calc(3.12rem - var(--digit-count) * 0.12rem), 2.82rem);
}

.fixed-slot {
  top: 70%;
  left: 50%;
  z-index: 5;
  display: grid;
  min-width: 150px;
  min-height: 68px;
  place-items: center;
  pointer-events: auto;
}

.fixed-button {
  width: clamp(58px, calc(2.28rem + var(--digit-count) * 0.64rem), 148px);
  height: clamp(30px, 10vw, 42px);
  color: transparent;
  font-size: clamp(0.98rem, 4vw, 1.42rem);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 7px 14px rgba(0, 0, 0, 0.2);
}

.fixed-gradient-text {
  display: inline-grid;
  place-items: center;
  color: transparent;
  background:
    linear-gradient(
      112deg,
      var(--fixed-a) 0%,
      #d8fbff 13%,
      var(--fixed-b) 34%,
      var(--fixed-c) 58%,
      var(--fixed-d) 82%,
      #f4eeff 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.24))
    drop-shadow(0 7px 10px rgba(17, 25, 34, 0.24));
}

.fixed-value-state {
  display: inline-block;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fixed-baseline-draft,
.fixed-baseline-value {
  display: none;
}

.reset-button,
.history-button {
  left: 50%;
  z-index: 26;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(8, 8, 10, 0.58);
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.reset-button {
  top: 10%;
}

.history-button {
  top: 90%;
}

.reset-button svg,
.history-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.candidate-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: calc(50% - 52px);
  z-index: 12;
  display: none;
  max-width: min(86vw, 260px);
  gap: 4px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-bg-strong);
  box-shadow:
    0 18px 38px rgba(7, 6, 26, 0.72),
    0 0 18px rgba(176, 124, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  cursor: default;
  pointer-events: auto;
}

.diamond-wrap[data-active-part="rounding"] .candidate-popover,
.product-frame[data-active-feature="rounding"] .candidate-popover {
  display: inline-flex;
}

.candidate-option {
  min-width: 42px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: default;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.diamond-wrap[data-active-part="fixed-ruler"] .candidate-popover {
  display: none;
}

.edge-ruler-overlay {
  z-index: 17;
  display: none;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.22));
}

.diamond-wrap[data-active-part="multiplier-left"] .edge-ruler-overlay-left,
.diamond-wrap[data-active-part="multiplier-right"] .edge-ruler-overlay-right {
  display: block;
}

.edge-ruler-tick {
  stroke: rgba(3, 3, 4, 0.7);
  stroke-linecap: round;
  stroke-width: 0.95;
}

.edge-ruler-tick.is-active {
  stroke: rgba(3, 3, 4, 0.96);
  stroke-width: 1.55;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.34));
}

.edge-ruler-label {
  fill: rgba(4, 4, 5, 0.9);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 0.5;
  paint-order: stroke;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 8.4px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
  user-select: none;
}

.fixed-multiplier-control {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 4;
  display: none;
  width: 104px;
  height: 34px;
  transform: translateX(-50%);
  pointer-events: none;
}

.diamond-wrap[data-active-part="fixed-ruler"] .fixed-multiplier-control {
  display: block;
}

.fixed-multiplier-axis {
  position: absolute;
  top: -3px;
  left: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10px;
}

.fixed-multiplier-tick {
  width: 1px;
  height: 4.8px;
  border-radius: 999px;
  background: rgba(3, 3, 4, 0.7);
}

.fixed-multiplier-tick.is-active {
  width: 1.6px;
  height: 7.4px;
  background: rgba(3, 3, 4, 0.96);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.34));
}

.fixed-multiplier-label {
  position: absolute;
  top: -16px;
  left: var(--fixed-multiplier-label-left);
  color: rgba(4, 4, 5, 0.9);
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.58rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.42),
    0 1px 2px rgba(255, 255, 255, 0.24);
  transform: translateX(-50%);
  user-select: none;
  pointer-events: none;
}

.fixed-multiplier-dot {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 255, 255, 0.88) 0 12%, rgba(255, 255, 255, 0) 16%),
    linear-gradient(135deg, var(--fixed-a) 0%, var(--fixed-b) 32%, var(--fixed-c) 62%, var(--fixed-d) 100%);
  box-shadow:
    inset 0 -1px 2px rgba(22, 27, 45, 0.24),
    0 0 0 1px rgba(5, 10, 20, 0.14),
    0 6px 10px rgba(35, 78, 116, 0.18);
  transform: translate(-50%, -50%);
}

.price-popover {
  z-index: 20;
  display: none;
  align-items: center;
  gap: 5px;
  max-width: min(86vw, 186px);
  padding: 5px;
  border: 1px solid rgba(12, 12, 14, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.price-popover-left {
  top: 36%;
  left: 19%;
}

.price-popover-right {
  top: 36%;
  left: 81%;
}

.diamond-wrap[data-active-part="volume-left"] .price-popover-left,
.diamond-wrap[data-active-part="volume-right"] .price-popover-right {
  display: inline-flex;
}

.price-side {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #111114;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.price-popover-left .price-side {
  background: #9f061c;
}

.price-popover-right .price-side {
  background: #e87518;
}

.price-input {
  appearance: none;
  -webkit-appearance: none;
  width: 88px;
  height: 28px;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: #101014;
  background: rgba(8, 8, 10, 0.04);
  outline: none;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.diamond-wrap[data-active-part="volume-left"] .number-slot-left .number-button,
.diamond-wrap[data-active-part="volume-right"] .number-slot-right .number-button,
.diamond-wrap[data-active-part="rounding"] .number-slot-left .number-button,
.diamond-wrap[data-active-part="total"] .total-price,
.diamond-wrap[data-active-part="multiplier-left"] .total-price,
.diamond-wrap[data-active-part="multiplier-right"] .total-price,
.diamond-wrap[data-active-part="fixed-ruler"] .fixed-button,
.product-frame[data-active-feature="rounding"] .number-slot-left .number-button,
.product-frame[data-active-feature="baseline"] .fixed-button,
.diamond-wrap[data-active-part="reset"] .reset-button,
.diamond-wrap[data-active-part="history"] .history-button {
  color: rgba(3, 3, 5, 0.94);
  filter: brightness(1.04) saturate(1.05);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 9px 15px rgba(0, 0, 0, 0.28),
    0 20px 26px rgba(0, 0, 0, 0.12);
}

.diamond-wrap[data-active-part="fixed-ruler"] .fixed-gradient-text,
.product-frame[data-active-feature="baseline"] .fixed-gradient-text {
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.34))
    drop-shadow(0 8px 12px rgba(17, 25, 34, 0.3));
}

@media (max-width: 960px) {
  .site-shell {
    width: min(100% - 28px, 720px);
    padding: 22px 0 28px;
  }

  .site-home-shell {
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
    padding: 22px 0 24px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero h1 {
    max-width: 8.6em;
    font-size: 3.2rem;
    line-height: 1;
  }

  .lead {
    font-size: clamp(2.55rem, 10vw, 3.6rem);
    line-height: 0.98;
  }

  .product-frame {
    min-height: 540px;
  }

  .site-product-showcase {
    width: min(100%, 720px);
    min-width: 0;
  }

  .site-runtime-board-preview {
    width: min(380px, 58%);
    min-width: 300px;
  }

  .runtime-board-debug-panel.site-runtime-board-preview {
    top: 60px;
    right: 0;
    width: min(380px, 58%);
    min-width: 300px;
    --runtime-board-cell-size: 28px;
  }

  .site-candidate-window {
    right: min(280px, 41vw);
    width: min(236px, 36vw);
  }

  .site-runtime-candidate-preview.runtime-board-candidate-popover {
    right: min(286px, 42vw);
    width: min(236px, 36vw);
  }

  .diamond-wrap {
    width: min(76vw, 326px);
    min-width: 234px;
  }

  .product-frame[data-active-feature="drawer"] .site-diamond-preview {
    left: 50%;
    width: min(78vw, 340px);
  }

  .product-frame[data-active-feature="backpack"] .site-diamond-preview,
  .product-frame[data-active-feature="preselect"] .site-diamond-preview {
    left: 31%;
    width: min(48vw, 286px);
  }

  .site-fixed-assist-host {
    transform: translate(-96%, -50%) scale(0.86);
    transform-origin: right center;
  }

  .site-fixed-assist-note-host {
    transform: translateY(-50%) scale(0.86);
    transform-origin: left center;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 24px);
  }

  .site-home-shell {
    padding: 0;
  }

  .hero h1 {
    font-size: 2.44rem;
  }

  .lead {
    font-size: 2.5rem;
    line-height: 0.98;
  }

  .hero-seo-summary {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .site-seo-content {
    gap: 12px;
    padding: 32px 0 46px;
  }

  .site-seo-head h2 {
    font-size: 1.08rem;
  }

  .site-seo-question summary {
    padding: 11px 13px;
  }

  .site-seo-question p {
    padding: 0 13px 12px;
  }

  .author-note {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .claim-row {
    gap: 8px;
    font-size: 0.86rem;
  }

  .download-button {
    width: 100%;
    max-width: 260px;
  }

  .product-frame {
    min-height: 500px;
  }

  .site-product-showcase {
    width: 100%;
    aspect-ratio: 1 / 1.2;
  }

  .game-demo-window {
    inset: 16px 0 88px 0;
    width: auto;
  }

  .game-window-topbar {
    height: 24px;
    font-size: 0.66rem;
  }

  .game-window-shot {
    height: calc(100% - 24px);
  }

  .site-runtime-board-preview {
    top: 92px;
    right: 0;
    bottom: 18px;
    width: min(292px, 78%);
    min-width: 0;
  }

  .runtime-board-debug-panel.site-runtime-board-preview {
    top: 92px;
    right: 0;
    bottom: 18px;
    width: min(292px, 78%);
    min-width: 0;
    --runtime-board-titlebar-height: 66px;
    --runtime-board-info-scale: 0.92;
    --runtime-board-cell-size: 24px;
  }

  .site-backpack-window {
    grid-template-rows: 32px auto 1fr;
  }

  .site-backpack-titlebar {
    gap: 6px;
    padding: 0 7px;
  }

  .site-backpack-context {
    max-width: 82px;
  }

  .site-backpack-metrics {
    padding: 5px;
  }

  .site-backpack-metrics span {
    padding: 5px;
  }

  .site-backpack-quality {
    grid-template-columns: 1fr 0.62fr 0.82fr 0.82fr;
    padding: 0 5px 5px;
  }

  .site-backpack-quality span {
    min-height: 17px;
    padding: 0 4px;
    font-size: 0.52rem;
  }

  .site-candidate-window {
    top: 210px;
    right: auto;
    left: 8px;
    width: min(224px, 58vw);
    max-height: 154px;
  }

  .site-runtime-candidate-preview.runtime-board-candidate-popover {
    top: 210px;
    right: auto;
    left: 8px;
    width: min(224px, 58vw);
    max-height: 154px;
  }

  .site-candidate-row {
    min-height: 23px;
    font-size: 0.66rem;
  }

  .diamond-wrap {
    width: min(82vw, 278px);
    min-width: 210px;
  }

  .product-frame[data-active-feature="drawer"] .site-diamond-preview {
    top: 54%;
    left: 57%;
    width: min(78vw, 276px);
  }

  .product-frame[data-active-feature="backpack"] .site-diamond-preview,
  .product-frame[data-active-feature="preselect"] .site-diamond-preview {
    top: 44%;
    left: 32%;
    width: min(54vw, 218px);
  }

  .site-fixed-assist-host {
    transform: translate(-94%, -50%) scale(0.66);
  }

  .site-fixed-assist-note-host {
    transform: translateY(-50%) scale(0.66);
    transform-origin: left center;
  }

  .number-button {
    width: clamp(46px, calc(2.3rem + var(--digit-count) * 0.86rem), 128px);
    height: clamp(38px, 13vw, 54px);
    font-size: clamp(1.26rem, calc(2.66rem - var(--digit-count) * 0.14rem), 2.12rem);
  }

  .candidate-option {
    min-width: 36px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .fixed-slot {
    min-width: 128px;
    min-height: 62px;
  }

  .fixed-button {
    width: clamp(50px, calc(2rem + var(--digit-count) * 0.58rem), 128px);
    height: clamp(28px, 9vw, 38px);
    font-size: clamp(0.86rem, 4.8vw, 1.16rem);
  }

  .fixed-multiplier-control {
    width: 104px;
    height: 24px;
  }

  .fixed-multiplier-dot {
    width: 11px;
    height: 11px;
  }

  .total-control {
    top: 29%;
    min-width: 76px;
    min-height: 40px;
  }

  .total-price {
    font-size: clamp(0.86rem, 4.8vw, 1.16rem);
  }

  .multiplier-dot {
    top: 3px;
    width: 12px;
    height: 12px;
  }

  .multiplier-dot-left {
    left: 4px;
  }

  .multiplier-dot-right {
    right: 4px;
  }

  .reset-button,
  .history-button {
    width: 34px;
    height: 34px;
  }

  .reset-button svg,
  .history-button svg {
    width: 18px;
    height: 18px;
  }

  .price-input {
    width: 76px;
  }

}

/* === demo orchestrator: virtual cursor + counter + rounding input === */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 60;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition:
    transform 620ms cubic-bezier(0.34, 0.96, 0.5, 1),
    opacity 220ms ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
}

.demo-cursor svg {
  width: 100%;
  height: 100%;
  fill: #fff;
  stroke: var(--neon-pink);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(255, 62, 161, 0.78));
  transition: transform 120ms ease;
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-cursor.is-clicking svg {
  transform: scale(0.84);
}

.demo-cursor::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(56, 132, 255, 0.85);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.demo-cursor.is-tapping::after {
  animation: demo-cursor-ripple 360ms ease-out;
}

/* skip the diamond/HUD transition when jumping ambient -> scripted demo */
.product-frame.is-snap .diamond-wrap,
.product-frame.is-snap .site-hud-preview,
.product-frame.is-snap .game-demo-window {
  transition: none !important;
}

/* gentle pop-in for the candidate popover when it appears during the demo */
.product-frame[data-demo-mode="rounding-show"] .candidate-popover {
  animation: demo-popover-pop 280ms cubic-bezier(0.34, 1.26, 0.5, 1) both;
}

@keyframes demo-popover-pop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes demo-cursor-ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.3);
  }
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.candidate-option.is-hover {
  background: rgba(255, 62, 161, 0.92);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 62, 161, 0.7);
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.number-button.is-tap,
.fixed-button.is-tap {
  transform: scale(0.965);
  transition: transform 120ms ease;
}

.value-baseline-counter,
.fixed-baseline-typing,
.value-rounding-typing {
  display: none;
}

/* baseline counter demo: stop the CSS keyframes, show counter spans */
.product-frame[data-demo-mode="counter"] .value-default,
.product-frame[data-demo-mode="counter"] .value-baseline-left,
.product-frame[data-demo-mode="counter"] .value-baseline-right,
.product-frame[data-demo-mode="counter"] .value-baseline-final,
.product-frame[data-demo-mode="counter"] .value-baseline-fixed,
.product-frame[data-demo-mode="counter"] .fixed-value-default,
.product-frame[data-demo-mode="counter"] .fixed-baseline-draft,
.product-frame[data-demo-mode="counter"] .fixed-baseline-value {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.product-frame[data-demo-mode="counter"] .value-baseline-counter,
.product-frame[data-demo-mode="counter"] .fixed-baseline-typing {
  display: inline-block !important;
  opacity: 1 !important;
}

.product-frame[data-demo-mode="counter"] .site-fill-baseline {
  display: block !important;
  opacity: 1 !important;
  animation: none !important;
}

.product-frame[data-demo-mode="counter"] .site-fill-default {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

/* rounding input demo: hide default number, show typed "3.33"; hide popover only while typing */
.product-frame[data-demo-mode^="rounding"] .number-slot-left .value-state {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.product-frame[data-demo-mode^="rounding"] .number-slot-left .value-rounding-typing {
  display: inline-block !important;
  opacity: 1 !important;
}

.product-frame[data-demo-mode="rounding-input"] .candidate-popover {
  display: none !important;
}

/* === branded error pages (404 / 500) === */
.error-shell {
  display: grid;
  justify-items: start;
  gap: 18px;
  max-width: 540px;
  min-height: calc(100vh - 68px);
  align-content: center;
  padding: 32px 0;
}

.error-status {
  margin: 0;
  font-family: "Cascadia Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: clamp(3rem, 9vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--neon-pink);
  text-shadow: 0 2px 16px rgba(255, 62, 161, 0.42);
}

.error-headline {
  margin: 0;
  font-family:
    "Segoe UI Black", "Arial Black", "Microsoft YaHei", "PingFang SC", system-ui,
    sans-serif;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.16;
  color: var(--ink);
}

.error-body {
  margin: 0;
  max-width: 32rem;
  padding: 12px 18px;
  border-left: 2px solid var(--neon-purple);
  border-radius: 0 8px 8px 0;
  background: var(--glass-bg);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  backdrop-filter: blur(6px);
}

/* === public Jianying assistant === */
.site-jianying-section {
  box-sizing: border-box;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: var(--site-jianying-sticky-top) 0 0;
  --site-jianying-sticky-top: 66px;
  --site-jianying-filter-height: 58px;
  --site-jianying-shell-gap: 10px;
  --site-jianying-grid-height: calc(
    100vh - var(--site-jianying-sticky-top) - var(--site-jianying-filter-height, 58px) - var(--site-jianying-shell-gap) - 2px
  );
}

@supports (height: 100dvh) {
  .site-home-shell .hero.home-section,
  .site-jianying-section {
    height: 100dvh;
    min-height: 100dvh;
  }

  .site-jianying-section {
    --site-jianying-grid-height: calc(
      100dvh - var(--site-jianying-sticky-top) - var(--site-jianying-filter-height, 58px) - var(--site-jianying-shell-gap) - 2px
    );
  }
}

.site-jianying-count {
  color: rgba(231, 233, 245, 0.62);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
}

.site-jianying-sort {
  display: grid;
  gap: 5px;
  min-width: 178px;
  color: rgba(231, 233, 245, 0.62);
  font-size: 0.72rem;
  font-weight: 760;
}

.site-jianying-sort select {
  height: 34px;
  border: 1px solid rgba(148, 170, 205, 0.16);
  border-radius: 7px;
  padding: 0 34px 0 11px;
  color: #f6f8ff;
  background: rgba(5, 8, 20, 0.94);
  font-size: 0.82rem;
  font-weight: 760;
}

.site-jianying-reset {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(148, 170, 205, 0.16);
  border-radius: 7px;
  color: rgba(246, 248, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 780;
  cursor: pointer;
  white-space: nowrap;
}

.site-jianying-reset:hover,
.site-jianying-reset:focus-visible {
  color: #f6f8ff;
  border-color: rgba(90, 242, 212, 0.34);
  background: rgba(90, 242, 212, 0.08);
}

.jianying-hero-avatar {
  display: inline-block;
  width: var(--jianying-hero-avatar-size, 34px);
  height: var(--jianying-hero-avatar-size, 34px);
  flex: 0 0 var(--jianying-hero-avatar-size, 34px);
  border-radius: 50%;
  background-image: url("/assets/touxiang.png");
  background-repeat: no-repeat;
  background-size: var(--jianying-hero-bg-width) var(--jianying-hero-bg-height);
  background-position: var(--jianying-hero-bg-x) var(--jianying-hero-bg-y);
  box-shadow: inset 0 0 0 1px rgba(246, 248, 255, 0.25);
}

.site-jianying-hero-recommendation {
  position: relative;
  min-width: 0;
}

.site-jianying-hero-button,
.site-jianying-hero-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 170, 205, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.site-jianying-hero-button {
  gap: 8px;
  height: 40px;
  padding: 0 11px 0 4px;
  color: #f6f8ff;
  font-size: 0.82rem;
  font-weight: 840;
  white-space: nowrap;
}

.site-jianying-hero-button:hover,
.site-jianying-hero-button:focus-visible,
.site-jianying-hero-recommendation.is-picker-open .site-jianying-hero-button {
  border-color: rgba(90, 242, 212, 0.36);
  background: rgba(90, 242, 212, 0.09);
}

.site-jianying-hero-picker {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 260;
  display: flex;
  gap: 6px;
  max-width: min(380px, calc(100vw - 26px));
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(148, 170, 205, 0.18);
  border-radius: 12px;
  background: rgba(5, 8, 20, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.32);
}

.site-jianying-hero-picker[hidden] {
  display: none;
}

.site-jianying-hero-option {
  width: 38px;
  height: 38px;
  padding: 3px;
}

.site-jianying-hero-option.is-active {
  border-color: rgba(90, 242, 212, 0.5);
  box-shadow: 0 0 0 2px rgba(90, 242, 212, 0.12);
}

.site-jianying-hero-option.is-locked {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.site-jianying-hero-option.is-pulsing {
  animation: site-jianying-hero-pulse 380ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

@keyframes site-jianying-hero-pulse {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

.site-jianying-section .jianying-combo-recommendations {
  position: relative;
  z-index: 128;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: var(--site-jianying-shell-gap);
  padding: 9px 12px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.site-jianying-section .jianying-combo-title {
  display: grid;
  gap: 2px;
  min-width: 108px;
}

.site-jianying-section .jianying-combo-title h3,
.site-jianying-section .jianying-combo-title p,
.site-jianying-section .jianying-combo-top {
  margin: 0;
}

.site-jianying-section .jianying-combo-title h3 {
  color: #f6f8ff;
  font-size: 0.86rem;
}

.site-jianying-section .jianying-combo-title p,
.site-jianying-section .jianying-combo-top {
  color: rgba(231, 233, 245, 0.6);
  font-size: 0.68rem;
}

.site-jianying-section .jianying-combo-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.site-jianying-section .jianying-combo-card {
  display: grid;
  flex: 0 0 246px;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.site-jianying-section .jianying-combo-card-head,
.site-jianying-section .jianying-combo-tags,
.site-jianying-section .jianying-combo-metrics,
.site-jianying-section .jianying-combo-kinds {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.site-jianying-section .jianying-combo-card-head {
  justify-content: space-between;
}

.site-jianying-section .jianying-combo-step,
.site-jianying-section .jianying-combo-kind,
.site-jianying-section .jianying-combo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.site-jianying-section .jianying-combo-step {
  color: #06131c;
  background: #5af2d4;
}

.site-jianying-section .jianying-combo-kind {
  color: #ffd7bd;
  background: rgba(255, 125, 79, 0.16);
}

.site-jianying-section .jianying-combo-tag {
  color: rgba(246, 248, 255, 0.82);
  background: rgba(255, 255, 255, 0.075);
}

.site-jianying-section .jianying-combo-metric {
  display: grid;
  min-width: 46px;
  gap: 1px;
}

.site-jianying-section .jianying-combo-metric em {
  color: rgba(231, 233, 245, 0.58);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 760;
}

.site-jianying-section .jianying-combo-metric strong {
  color: #f6f8ff;
  font-size: 0.78rem;
}

.site-jianying-section .jianying-combo-action {
  justify-self: start;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(90, 242, 212, 0.28);
  border-radius: 7px;
  color: #06131c;
  background: #5af2d4;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.site-jianying-workbench {
  position: relative;
  top: auto;
  z-index: 130;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0 var(--site-jianying-shell-gap);
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(11, 16, 36, 0.96), rgba(5, 6, 18, 0.94)),
    var(--site-panel-bg);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.site-jianying-filter-badge {
  position: absolute;
  left: 14px;
  top: -13px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(90, 242, 212, 0.38);
  border-radius: 7px 7px 7px 0;
  color: #06131c;
  background: #5af2d4;
  font-size: 0.76rem;
  font-weight: 920;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.site-jianying-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.site-jianying-filters::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.site-jianying-filters.can-drag {
  cursor: grab;
}

.site-jianying-filters.can-drag .site-jianying-filter {
  cursor: inherit;
}

.site-jianying-filters.is-dragging,
.site-jianying-filters.is-dragging .site-jianying-filter {
  cursor: grabbing;
  user-select: none;
}

.site-jianying-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid rgba(148, 170, 205, 0.14);
  border-radius: 7px;
  color: rgba(231, 233, 245, 0.68);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-jianying-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-jianying-filter .jianying-category-mark {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(245, 231, 215, 0.9));
  color: #22120f;
}

.site-jianying-filter:hover {
  color: rgba(231, 233, 245, 0.78);
  border-color: rgba(148, 170, 205, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.site-jianying-filter:focus-visible {
  outline: 1px solid rgba(90, 242, 212, 0.36);
  outline-offset: 2px;
}

.site-jianying-filter.is-state-resetting {
  transition: none;
}

.site-jianying-filter[data-state="optional"] {
  color: #f6f8ff;
  border-color: rgba(90, 242, 212, 0.38);
  background: rgba(90, 242, 212, 0.09);
  box-shadow: 0 0 16px rgba(90, 242, 212, 0.09);
}

.site-jianying-filter[data-state="required"] {
  color: #f6f8ff;
  border-color: rgba(255, 224, 138, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.18), rgba(90, 242, 212, 0.055)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 224, 138, 0.12),
    0 0 20px rgba(255, 224, 138, 0.11);
}

.site-jianying-grid-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: var(--site-jianying-grid-height);
  min-height: 0;
  max-height: var(--site-jianying-grid-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 10px 10px;
  border: 1px solid rgba(148, 170, 205, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 6, 18, 0.98), rgba(8, 10, 24, 0.98)),
    var(--site-panel-bg);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(234, 242, 255, 0.26) transparent;
}

.site-jianying-grid-shell::-webkit-scrollbar {
  width: 7px;
}

.site-jianying-grid-shell::-webkit-scrollbar-track {
  background: transparent;
}

.site-jianying-grid-shell::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(238, 247, 255, 0.26), rgba(90, 242, 212, 0.14))
    content-box;
}

.site-jianying-grid-shell::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(246, 252, 255, 0.46), rgba(90, 242, 212, 0.22))
    content-box;
}

.site-jianying-grid-toolbar {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -10px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(148, 170, 205, 0.11);
  background:
    linear-gradient(180deg, rgba(5, 6, 18, 0.98), rgba(5, 6, 18, 0.96)),
    var(--site-panel-bg);
}

.site-jianying-empty {
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(231, 233, 245, 0.72);
  background: rgba(11, 10, 32, 0.62);
  font-weight: 900;
  text-align: center;
}

.site-jianying-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 12px;
  flex: 0 0 auto;
  align-content: start;
  align-items: start;
}

.site-jianying-section .quality-red {
  --jianying-quality-bg: radial-gradient(circle at 92px 50%, rgba(255, 62, 83, 0.13), rgba(255, 62, 83, 0.035) 30%, rgba(8, 10, 24, 0.98) 54%);
  --jianying-quality-soft: rgba(255, 62, 83, 0.075);
  --jianying-quality-border: rgba(255, 62, 83, 0.24);
  --jianying-quality-text: #f8f2f4;
}

.site-jianying-section .quality-gold {
  --jianying-quality-bg: linear-gradient(135deg, rgba(194, 139, 25, 0.26), rgba(245, 213, 121, 0.12));
  --jianying-quality-soft: rgba(194, 139, 25, 0.12);
  --jianying-quality-border: rgba(245, 199, 86, 0.28);
  --jianying-quality-text: #fff4c6;
}

.site-jianying-section .quality-purple {
  --jianying-quality-bg: linear-gradient(135deg, rgba(126, 78, 214, 0.24), rgba(164, 124, 236, 0.1));
  --jianying-quality-soft: rgba(126, 78, 214, 0.12);
  --jianying-quality-border: rgba(164, 124, 236, 0.28);
  --jianying-quality-text: #eee6ff;
}

.site-jianying-section .quality-blue {
  --jianying-quality-bg: linear-gradient(135deg, rgba(30, 129, 208, 0.22), rgba(84, 171, 228, 0.1));
  --jianying-quality-soft: rgba(30, 129, 208, 0.11);
  --jianying-quality-border: rgba(84, 171, 228, 0.28);
  --jianying-quality-text: #e1f3ff;
}

.site-jianying-section .quality-green {
  --jianying-quality-bg: linear-gradient(135deg, rgba(42, 166, 91, 0.22), rgba(99, 205, 134, 0.1));
  --jianying-quality-soft: rgba(42, 166, 91, 0.11);
  --jianying-quality-border: rgba(99, 205, 134, 0.28);
  --jianying-quality-text: #ddffe9;
}

.site-jianying-section .quality-white {
  --jianying-quality-bg: linear-gradient(135deg, rgba(226, 232, 240, 0.22), rgba(248, 250, 252, 0.1));
  --jianying-quality-soft: rgba(226, 232, 240, 0.1);
  --jianying-quality-border: rgba(226, 232, 240, 0.24);
  --jianying-quality-text: #f5f8fb;
}

.site-jianying-section .jianying-card {
  position: relative;
  height: 104px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(148, 170, 205, 0.1);
  border-radius: 8px;
  background: #070917;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.site-jianying-section .jianying-card:hover,
.site-jianying-section .jianying-card:focus-within,
.site-jianying-section .jianying-card.is-expanded {
  z-index: 120;
}

.site-jianying-section .jianying-card[hidden] {
  display: none;
}

.site-jianying-section .jianying-target-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  height: 100%;
  padding: 16px 40px 10px 13px;
  overflow: visible;
  border: 1px solid var(--jianying-quality-border, rgba(148, 170, 205, 0.13));
  border-radius: 8px;
  background: var(--jianying-quality-bg, rgba(255, 255, 255, 0.06));
  color: var(--jianying-quality-text, #f3f6ff);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.site-jianying-section .jianying-target-art {
  position: absolute;
  inset: 7px auto 7px 9px;
  z-index: 0;
  width: min(238px, 54%);
  overflow: hidden;
  border-radius: 7px;
  background-image: var(--jianying-item-image);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  filter:
    saturate(1.1)
    contrast(1.06)
    brightness(1.14)
    drop-shadow(0 0 16px rgba(255, 62, 83, 0.34))
    drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
  opacity: 0.5;
  pointer-events: none;
}

.site-jianying-section [data-jianying-toggle-slot] {
  display: contents;
}

.site-jianying-section .jianying-target-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding-top: 8px;
}

.site-jianying-section .jianying-target-main h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f6f8ff;
  font-size: 16.5px;
  font-weight: 820;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-jianying-section .jianying-price {
  margin: 0;
  color: rgba(231, 233, 245, 0.74);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.15;
}

.site-jianying-section .jianying-status {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 118px;
  padding: 4px 12px 4px 9px;
  border-radius: 8px 0 8px 0;
  color: #07111a;
  background: rgba(246, 248, 255, 0.92);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.site-jianying-section .jianying-status.has-candidates {
  background: rgba(255, 224, 138, 0.92);
}

.site-jianying-section .jianying-expand-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(246, 248, 255, 0.66);
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-jianying-section .jianying-expand-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
}

.site-jianying-section .jianying-card.is-expanded .jianying-expand-toggle {
  opacity: 0.94;
  transform: rotate(90deg);
}

.site-jianying-section .jianying-target-chain {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.site-jianying-section .jianying-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.site-jianying-section .jianying-chain-unit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  white-space: nowrap;
}

.site-jianying-section .steps-4-5 .jianying-chain {
  gap: 4px;
}

.site-jianying-section .steps-6-plus .jianying-chain {
  max-width: 270px;
  gap: 3px 4px;
}

.site-jianying-section .steps-4-5 .jianying-chain-unit,
.site-jianying-section .steps-6-plus .jianying-chain-unit {
  gap: 3px;
}

.site-jianying-section .jianying-chain-plus {
  flex: 0 0 auto;
  color: rgba(231, 233, 245, 0.42);
  font-weight: 760;
  line-height: 1;
}

.site-jianying-section .jianying-chain-empty {
  color: rgba(231, 233, 245, 0.54);
  font-size: 12px;
  font-weight: 760;
}

.site-jianying-section .jianying-chain-step {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #24130f;
  background: linear-gradient(180deg, #fffaf2, #f5e7d7);
  cursor: help;
  isolation: isolate;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.site-jianying-section .jianying-chain-step[role="button"] {
  cursor: pointer;
}

.site-jianying-section .jianying-chain-step.has-variant-switch[role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M5 7h10M12.8 4.7 15.1 7l-2.3 2.3M17 15H7M9.2 12.7 6.9 15l2.3 2.3' fill='none' stroke='%23fbffff' stroke-width='1.45' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 11 11, alias;
}

.site-jianying-section .jianying-chain-step.has-variant-switch {
  box-shadow:
    3px 3px 0 rgba(246, 248, 255, 0.14),
    0 9px 18px rgba(0, 0, 0, 0.22);
}

.site-jianying-section .jianying-shape-step {
  cursor: default;
}

.site-jianying-section .jianying-shape-text {
  font-size: 12px;
  font-weight: 820;
}

.site-jianying-section .jianying-category-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: currentColor;
  font-size: 9px;
  font-weight: 860;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.site-jianying-section .jianying-category-mark span {
  display: block;
  white-space: nowrap;
}

.site-jianying-section .steps-4-5 .jianying-chain-step {
  width: 32px;
  height: 32px;
}

.site-jianying-section .steps-4-5 .jianying-category-mark {
  width: 19px;
  height: 19px;
  font-size: 8px;
}

.site-jianying-section .steps-6-plus .jianying-chain-step {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.site-jianying-section .steps-6-plus .jianying-category-mark {
  width: 14px;
  height: 14px;
  font-size: 7px;
}

.site-jianying-section .steps-4-5 .jianying-shape-text,
.site-jianying-section .steps-6-plus .jianying-shape-text {
  font-size: 11px;
}

.site-jianying-section .jianying-step-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #8b96a3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.site-jianying-section .jianying-step-dot.is-lit {
  background: #39ff99;
  box-shadow: 0 0 0 2px rgba(57, 255, 153, 0.16), 0 0 10px rgba(57, 255, 153, 0.72);
}

.site-jianying-section .jianying-chain-step:hover,
.site-jianying-section .jianying-chain-step:focus,
.site-jianying-section .jianying-chain-step:focus-within {
  z-index: 150;
}

.site-jianying-section .jianying-candidate-panel {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  z-index: 1;
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  border: 1px solid rgba(148, 170, 205, 0.12);
  border-width: 0;
  border-top-color: rgba(148, 170, 205, 0.08);
  border-radius: 0 0 8px 8px;
  background: rgba(8, 10, 24, 0.99);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px);
  transition: transform 180ms linear, opacity 180ms linear, max-height 180ms linear, padding-top 180ms linear, visibility 0s linear 180ms;
  visibility: hidden;
}

.site-jianying-section .jianying-card.is-expanded .jianying-candidate-panel {
  max-height: min(390px, calc(100vh - 170px));
  padding-top: 8px;
  border-width: 1px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 180ms linear, opacity 180ms linear, max-height 180ms linear, padding-top 180ms linear, visibility 0s linear;
  visibility: visible;
}

.site-jianying-section .jianying-candidate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(148, 170, 205, 0.1);
  color: rgba(246, 248, 255, 0.78);
  font-weight: 800;
}

.site-jianying-section .jianying-candidate-panel-head strong {
  color: #ff8b9c;
}

.site-jianying-section .jianying-candidate-list {
  display: grid;
  gap: 7px;
  padding: 10px 14px 14px;
}

.site-jianying-section .jianying-candidate-panel > .jianying-candidate-list {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
}

.site-jianying-section .jianying-candidate-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 3px 8px;
  padding: 8px 10px;
  border: 1px solid var(--jianying-quality-border, rgba(255, 255, 255, 0.12));
  border-radius: 7px;
  color: var(--jianying-quality-text, #f4f7fb);
  background: var(--jianying-quality-soft, rgba(255, 255, 255, 0.08));
}

.site-jianying-section .jianying-candidate-pill span {
  min-width: 0;
  overflow: hidden;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-jianying-section .jianying-candidate-pill b,
.site-jianying-section .jianying-candidate-pill em {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-style: normal;
}

.site-jianying-section .jianying-candidate-target,
.jianying-step-popover .jianying-candidate-target {
  align-self: start;
  padding: 1px 6px;
  border-radius: 999px;
  color: #140f05;
  background: rgba(90, 242, 212, 0.82);
  font-size: 11px;
  font-weight: 900;
}

.site-jianying-section .jianying-candidate-pill.is-target,
.jianying-step-popover .jianying-candidate-pill.is-target {
  box-shadow: inset 0 0 0 2px rgba(90, 242, 212, 0.36);
}

.site-jianying-section .jianying-candidate-pill em {
  grid-column: 1 / -1;
}

.site-jianying-section .jianying-tooltip-more,
.site-jianying-section .jianying-tooltip-empty {
  color: rgba(244, 247, 251, 0.62);
  font-size: 12px;
}

.jianying-step-popover {
  position: fixed;
  z-index: 10000;
  width: min(350px, calc(100vw - 16px));
  max-height: min(420px, calc(100vh - 16px));
  overflow: hidden;
  border: 1px solid rgba(148, 170, 205, 0.2);
  border-radius: 8px;
  background: rgba(8, 10, 24, 0.985);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.jianying-step-popover[hidden] {
  display: none;
}

.jianying-step-popover-head {
  display: grid;
  gap: 3px;
  padding: 11px 13px 9px;
  border-bottom: 1px solid rgba(148, 170, 205, 0.12);
}

.jianying-step-popover-head strong {
  color: #f6f8ff;
  font-size: 14px;
}

.jianying-step-popover-head span {
  color: rgba(231, 233, 245, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.jianying-step-popover .jianying-candidate-list {
  display: grid;
  gap: 7px;
  max-height: min(340px, calc(100vh - 98px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 14px 14px;
}

.jianying-step-popover .jianying-candidate-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 3px 8px;
  padding: 8px 10px;
  border: 1px solid var(--jianying-quality-border, rgba(255, 255, 255, 0.12));
  border-radius: 7px;
  color: var(--jianying-quality-text, #f4f7fb);
  background: var(--jianying-quality-soft, rgba(255, 255, 255, 0.08));
}

.jianying-step-popover .quality-red {
  --jianying-quality-soft: rgba(255, 62, 83, 0.075);
  --jianying-quality-border: rgba(255, 62, 83, 0.24);
  --jianying-quality-text: #f8f2f4;
}

.jianying-step-popover .quality-gold {
  --jianying-quality-soft: rgba(194, 139, 25, 0.12);
  --jianying-quality-border: rgba(245, 199, 86, 0.28);
  --jianying-quality-text: #fff4c6;
}

.jianying-step-popover .quality-purple {
  --jianying-quality-soft: rgba(126, 78, 214, 0.12);
  --jianying-quality-border: rgba(164, 124, 236, 0.28);
  --jianying-quality-text: #eee6ff;
}

.jianying-step-popover .quality-blue {
  --jianying-quality-soft: rgba(30, 129, 208, 0.11);
  --jianying-quality-border: rgba(84, 171, 228, 0.28);
  --jianying-quality-text: #e1f3ff;
}

.jianying-step-popover .quality-green {
  --jianying-quality-soft: rgba(42, 166, 91, 0.11);
  --jianying-quality-border: rgba(99, 205, 134, 0.28);
  --jianying-quality-text: #ddffe9;
}

.jianying-step-popover .quality-white {
  --jianying-quality-soft: rgba(226, 232, 240, 0.1);
  --jianying-quality-border: rgba(226, 232, 240, 0.24);
  --jianying-quality-text: #f5f8fb;
}

.jianying-step-popover .jianying-candidate-pill span {
  min-width: 0;
  overflow: hidden;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jianying-step-popover .jianying-candidate-pill b,
.jianying-step-popover .jianying-candidate-pill em {
  color: rgba(244, 247, 251, 0.68);
  font-size: 12px;
  font-style: normal;
}

.jianying-step-popover .jianying-candidate-pill em {
  grid-column: 1 / -1;
}

.jianying-step-popover .jianying-tooltip-more,
.jianying-step-popover .jianying-tooltip-empty {
  color: rgba(244, 247, 251, 0.62);
  font-size: 12px;
}

@media (max-width: 960px) {
  .site-nav {
    top: 12px;
  }

  .site-jianying-section {
    padding: var(--site-jianying-sticky-top) 0 0;
    --site-jianying-sticky-top: 66px;
  }

  .site-jianying-workbench {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-jianying-hero-recommendation {
    grid-column: 1;
    grid-row: 1;
  }

  .site-jianying-filters {
    grid-column: 2;
    grid-row: 1;
  }

  .site-jianying-reset {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .site-jianying-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    width: min(320px, calc(100vw - 28px));
  }

  .site-nav a {
    min-width: 0;
    flex: 1 1 0;
  }

  .hero.home-section {
    padding-top: 78px;
  }

  .site-jianying-workbench {
    align-items: stretch;
  }

  .site-jianying-hero-button {
    width: 40px;
    padding: 0 3px;
  }

  .site-jianying-hero-button span:not(.jianying-hero-avatar) {
    display: none;
  }

  .site-jianying-grid-shell {
    padding: 0 10px 10px;
  }

  .site-jianying-grid-toolbar {
    align-items: stretch;
    margin: 0 -10px;
    padding: 10px;
  }

  .site-jianying-sort {
    min-width: 158px;
  }

  .site-jianying-filter {
    flex: 0 0 auto;
  }

  .site-jianying-section .jianying-card {
    height: auto;
    min-height: 146px;
  }

  .site-jianying-section .jianying-target-row {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 146px;
    padding: 36px 38px 14px 14px;
  }

  .site-jianying-section .jianying-target-art {
    width: min(210px, 68%);
    opacity: 0.34;
  }

  .site-jianying-section .jianying-target-main {
    justify-content: end;
    min-height: 46px;
    padding-top: 0;
  }

  .site-jianying-section .jianying-target-chain {
    align-items: start;
  }
}
