@import url("/gx-customer-assets/assets/fonts/noto-serif-tc.css?v=2ae54e4d23ce4464899f");

:root {
  --gx-songti-font: "Noto Serif TC", "Songti TC", "STSong", "PMingLiU", serif;
  --bg: var(--gx-ui-page, #ffffff);
  --soft-bg: var(--gx-ui-soft, #faf7f1);
  --text: var(--gx-ui-text, #2f2a24);
  --muted: var(--gx-ui-muted, #6f675f);
  --gold: var(--gx-ui-primary, #b9853e);
  --gold-dark: var(--gx-ui-primary-hover, #8a5a22);
  --border: var(--gx-ui-border, #f0e6da);
  --contact-green: #16c060;
  --shadow: 0 10px 28px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.08);
}

/* custom_form step 4: desktop confirmation layout */
@media (min-width: 769px) {
  body[data-page-id="custom_form"][data-form-step="4"] {
    --confirmation-cream: var(--gx-ui-soft, #fffcf7);
    --confirmation-ink: var(--gx-ui-text, #2b241f);
    --confirmation-muted: var(--gx-ui-muted, #81766d);
    --confirmation-gold: var(--gx-ui-primary, #b37a2d);
    --confirmation-gold-dark: var(--gx-ui-primary-hover, #87561f);
    --confirmation-border: var(--gx-ui-border, #e8dac8);
    min-height: 100vh;
    background: var(--confirmation-cream);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .page-shell {
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    background: var(--confirmation-cream);
    padding: 24px 0;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .site-header {
    display: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-page {
    width: min(calc(100% - 48px), 760px);
    min-height: 0;
    margin: 0 auto;
    border: 1px solid var(--gx-ui-border, rgba(179, 122, 45, 0.2));
    border-radius: 24px;
    background: var(--confirmation-cream);
    box-shadow: 0 14px 36px rgba(var(--gx-ui-shadow-rgb, 0, 0, 0), 0.14);
    padding: 0 48px 28px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brandbar:not([hidden]) {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 8px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand span {
    display: grid;
    gap: 1px;
    color: var(--confirmation-ink);
    line-height: 1.12;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand strong {
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 17px;
    font-weight: 600;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand small {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--confirmation-ink);
    padding: 0;
    font: inherit;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper {
    position: relative;
    width: min(100%, 580px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 12px auto 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper button {
    position: relative;
    z-index: 1;
    gap: 8px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper button + button::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 50%;
    z-index: -1;
    width: 100%;
    height: 1px;
    background: var(--gx-ui-soft, rgba(179, 122, 45, 0.28));
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper span {
    width: 32px;
    height: 32px;
    border-color: var(--gx-ui-border, rgba(179, 122, 45, 0.28));
    background: var(--gx-ui-surface, #fffaf3);
    color: var(--gx-ui-muted, #998a79);
    font-size: 13px;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper b {
    color: var(--confirmation-muted);
    font-size: 12px;
    font-weight: 600;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-complete span {
    border-color: var(--gx-ui-border, rgba(179, 122, 45, 0.42));
    background: var(--gx-ui-surface, #fffaf3);
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-active span {
    border-color: var(--confirmation-gold);
    background: var(--confirmation-gold);
    color: #fff;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper :is(.is-complete, .is-active) b {
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-form-panel="4"].custom-form-confirmation {
    width: min(100%, 660px);
    margin: 42px auto 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading {
    text-align: center;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading h2 {
    color: var(--confirmation-ink);
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading > span {
    display: block;
    margin-top: 8px;
    color: var(--confirmation-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider {
    display: flex;
    width: 132px;
    align-items: center;
    gap: 10px;
    margin: 16px auto 0;
    color: var(--confirmation-gold);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider span {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(var(--gx-ui-text-rgb, 179, 122, 45), 0.42);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider b {
    color: var(--confirmation-gold);
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .confirm-stack {
    margin-top: 22px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-card {
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-card + .custom-form-summary-card {
    margin-top: 22px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-header {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline: 19px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-title {
    margin: 0;
    color: var(--confirmation-ink);
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-count,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-edit {
    color: var(--confirmation-gold-dark);
    font-size: 12px;
    font-weight: 650;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-edit {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0 4px;
    font: inherit;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-list {
    display: grid;
    gap: 0;
    margin: 10px 19px 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-row {
    display: grid;
    grid-template-columns: minmax(150px, 32%) minmax(0, 68%);
    min-height: 40px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--gx-ui-border, rgba(232, 218, 200, 0.82));
    padding: 6px 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-row:last-child {
    border-bottom: 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-label,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-value {
    min-width: 0;
    line-height: 1.45;
    text-align: left;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-label {
    color: var(--confirmation-muted);
    font-size: 13px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-value {
    color: var(--confirmation-ink);
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-selection {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 64px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--confirmation-border);
    border-radius: 15px;
    background: var(--confirmation-cream);
    padding: 10px 13px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-selection + .custom-form-summary-selection {
    margin-top: 9px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-symbol {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gx-ui-soft, #f1e7d9);
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-symbol svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-selection-title] {
    display: block;
    color: var(--confirmation-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-selection-subtitle] {
    display: block;
    margin-top: 2px;
    color: var(--confirmation-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    gap: 12px;
    margin-top: 24px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions :is(.form-primary, .form-secondary) {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    align-items: center;
    justify-items: center;
    border-radius: 17px;
    padding: 0 14px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.3;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-secondary::after,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-primary::before {
    content: "";
    width: 22px;
    height: 1px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-secondary {
    border: 1px solid var(--gx-ui-border, rgba(157, 106, 44, 0.62));
    background: var(--gx-ui-surface, #fffdf8);
    color: var(--confirmation-ink);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-primary {
    border: 1px solid var(--gx-ui-primary, #9b641f);
    background: linear-gradient(100deg, var(--gx-ui-primary, #c88e31) 0%, var(--gx-ui-primary, #9b641f) 100%);
    color: #fff;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .custom-form-action-arrow {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 11px 0 0;
    color: var(--confirmation-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-privacy svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

* {
  box-sizing: border-box;
}

body,
body *:not(gx-app-header):not(gx-app-header *),
body *:not(gx-app-header):not(gx-app-header *)::before,
body *:not(gx-app-header):not(gx-app-header *)::after {
  font-family: var(--gx-songti-font) !important;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 90px;
  background: var(--gx-ui-soft, #f4f1eb);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

h1,
h2 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.page-shell,
.fixed-cta {
  width: min(100%, 430px);
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(var(--gx-ui-shadow-rgb, 231, 221, 207), 0.72);
}

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-main {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px 11px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.42));
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.1);
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand strong {
  color: var(--gx-ui-text, #231d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  color: var(--gx-ui-text, #3f342b);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-actions {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
}

.mini-cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
  padding: 0 14px;
  box-shadow: 0 8px 16px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.16);
  font-size: 13px;
  font-weight: 700;
}

.menu-toggle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.42));
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: var(--gx-ui-primary, #2f2a24);
}

.anchor-nav {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 13px;
  font-weight: 700;
  padding: 0 20px;
  scrollbar-width: none;
  white-space: nowrap;
}

.anchor-nav::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  position: relative;
  display: inline-flex;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.anchor-nav .is-active {
  color: var(--gold-dark);
}

.anchor-nav .is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  right: 2px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--gx-ui-border, rgba(231, 221, 207, 0.84));
  background: #fff;
  padding: 8px 18px 14px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 2px;
}

.mobile-menu a {
  border-radius: 12px;
  color: var(--muted);
  padding: 9px 10px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: none;
  display: none;
  background: none;
  opacity: 0;
}

.hero-identity-fallback {
  position: absolute;
  inset: 0 0 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px 24px;
  color: var(--gx-ui-text, #2f2a24);
  text-align: center;
  background:
    radial-gradient(circle at 50% 38%, var(--gx-ui-soft, rgba(185, 133, 62, 0.12)), transparent 42%),
    #fff;
}

.hero-identity-fallback h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-identity-fallback p {
  max-width: 18em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero:has(.hero-slider:not([hidden])) .hero-identity-fallback {
  display: none;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: auto;
  touch-action: pan-y;
}

.hero-slide {
  opacity: 1;
  pointer-events: none;
}

.hero-slide.is-active {
  z-index: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 560ms ease, transform 720ms ease;
}

.hero-slide::after {
  content: none;
  display: none;
  background: none;
  opacity: 0;
}

.hero-slide.is-active img {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 86%;
  margin: 46px 0 0 20px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--gx-ui-soft, rgba(0, 0, 0, 0.26)), var(--gx-ui-soft, rgba(0, 0, 0, 0.10)), rgba(0, 0, 0, 0));
  padding: 12px 14px;
  opacity: 1;
}

.hero-slide:not(.is-active) .hero-copy {
  visibility: hidden;
}

.hero-copy,
.hero-copy * {
  opacity: 1 !important;
}

.eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(var(--gx-ui-shadow-rgb, 0, 0, 0), 0.35);
}

.hero h1 {
  color: #fff;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(var(--gx-ui-shadow-rgb, 0, 0, 0), 0.35);
}

.hero-subtitle {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(var(--gx-ui-shadow-rgb, 0, 0, 0), 0.3);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
}

.hero-bottom-controls {
  display: contents;
}

.hero-bottom-controls > .hero-actions {
  position: absolute;
  z-index: 7;
  left: 20px;
  top: 330px;
  margin-top: 0;
}

.primary-action,
.secondary-action,
.fixed-primary,
.fixed-contact,
.inspiration-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.primary-action,
.fixed-primary {
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
  box-shadow: 0 10px 20px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.16);
}

.secondary-action {
  border: 1px solid var(--gx-ui-border, rgba(47, 42, 36, 0.28));
  background: rgba(255, 255, 255, 0.82);
  color: var(--gx-ui-text, #2f2a24);
  box-shadow: 0 6px 18px rgba(var(--gx-ui-shadow-rgb, 47, 42, 36), 0.06);
}

.hero .primary-action,
.hero .secondary-action {
  min-width: 132px;
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 96px;
  z-index: 8;
  display: inline-flex;
  gap: 7px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  padding: 7px 8px;
  backdrop-filter: blur(10px);
}

.hero-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: var(--gx-ui-soft, rgba(138, 90, 34, 0.28));
  padding: 0;
}

.hero-dots .is-active {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gx-ui-primary-hover, #d6a24a), var(--gx-ui-primary-hover, #9b651e));
}

.core-system,
.process-section {
  margin-inline: 20px;
}

.core-system {
  padding: 32px 0;
  border-bottom: 0;
  background: #fff;
  text-align: center;
}

.core-system h2,
.section-heading h2 {
  color: var(--gx-ui-text, #241d18);
  font-size: 22px;
  line-height: 1.4;
}

.core-system h2 span {
  color: var(--gx-ui-primary, #d1a669);
  font-size: 18px;
}

.core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}

.core-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-inline: 28px;
}

.core-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding-inline: 0;
}

.core-grid.core-grid--two article img,
.core-grid.core-grid--three article img {
  width: min(100%, 59px);
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.core-grid.core-grid--three h3 {
  font-size: clamp(12px, 3.4vw, 15px);
  white-space: nowrap;
}

.core-grid article {
  min-width: 0;
}

.core-grid article img {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.24));
  border-radius: 50%;
  background: var(--gx-ui-surface, #fff9ef);
  box-shadow: 0 10px 24px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.08);
  object-fit: contain;
  padding: 16px;
}

.core-grid i {
  margin-top: 34px;
  color: rgba(var(--gx-ui-primary-rgb, 185, 133, 62), 0.42);
  font-style: normal;
  font-weight: 900;
}

.core-grid h3 {
  margin-top: 9px;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 15px;
  line-height: 1.25;
}

.core-grid p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.process-section {
  margin-inline: 0;
  padding: 32px 0;
  border-bottom: 0;
  overflow: visible;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.process-flow-shell {
  position: relative;
  margin-top: 18px;
  overflow: visible;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  overflow: visible;
  padding: 10px 20px 0;
}

.process-step {
  position: relative;
  min-width: 0;
  overflow: visible;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -4px;
  left: calc(50% - 28px);
  z-index: 3;
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gx-ui-border, #fff);
  border-radius: 999px;
  background: var(--gx-ui-primary, #c99745);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.28));
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.step-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--gx-ui-primary, #b9853e);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  margin-top: 0;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  word-break: keep-all;
}

.inspiration-card {
  flex: 0 0 78vw;
  max-width: 320px;
  min-width: 280px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.08);
}

.inspiration-card > img {
  width: 100%;
  height: 196px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.inspiration-card > div {
  padding: 16px 16px 17px;
}

.inspiration-card h3 {
  color: var(--gx-ui-text, #241d18);
  font-size: 20px;
  line-height: 1.35;
}

.state-tag {
  margin-top: 6px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.story-text,
.crystal-text {
  margin-top: 8px;
  color: var(--gx-ui-muted, #5f554c);
  font-size: 14px;
  line-height: 1.65;
}

.crystal-text {
  color: var(--gx-ui-muted, #8a8178);
}

.price {
  margin-top: 10px;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 17px;
  font-weight: 700;
}

.inspiration-card a {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.42));
  background: #fff;
  color: var(--gold-dark);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}

.fixed-contact {
  border: 1px solid var(--gx-ui-border, rgba(22, 192, 96, 0.72));
  background: #fff;
  color: var(--gx-ui-primary, #0a9d48);
}

.fixed-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 68px;
  border-top: 1px solid var(--gx-ui-border, rgba(231, 221, 207, 0.95));
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -10px 28px rgba(var(--gx-ui-shadow-rgb, 47, 42, 36), 0.1);
  padding: 9px 20px;
}

.fixed-primary,
.fixed-contact {
  height: 42px;
  min-height: 42px;
}

.contact-float {
  position: fixed;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: 92px;
  z-index: 59;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gx-ui-border, #fff);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gx-ui-primary, #1fd46d), var(--contact-green));
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--gx-ui-shadow-rgb, 22, 192, 96), 0.26);
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.contact-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

[data-page-view][hidden] {
  display: none !important;
}

.placeholder-page {
  min-height: calc(100vh - 120px);
  padding: 42px 20px 120px;
  background:
    radial-gradient(circle at 82% 8%, var(--gx-ui-soft, rgba(214, 162, 74, 0.14)), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--gx-ui-surface, #faf7f1) 100%);
}

.placeholder-card {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  text-align: center;
}

.placeholder-id {
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-card h1 {
  color: var(--gx-ui-text, #241d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 24px;
  line-height: 1.35;
}

.placeholder-card > p:not(.placeholder-id) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.placeholder-links,
.process-placeholder {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.placeholder-links span,
.placeholder-links a,
.process-placeholder {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 16px;
  background: var(--gx-ui-surface, #fffaf3);
  color: var(--gx-ui-muted, #5f574f);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}

.placeholder-links a {
  display: block;
  text-decoration: none;
}

.placeholder-links a:hover,
.placeholder-links a:focus-visible {
  border-color: var(--gx-ui-focus, rgba(185, 133, 62, 0.42));
  color: var(--gx-ui-primary, #8f5b22);
  outline: 2px solid var(--gx-ui-focus, rgba(185, 127, 49, 0.18));
  outline-offset: 2px;
}

.back-home {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 10px 20px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.16);
  font-size: 14px;
  font-weight: 700;
}

body[data-page-id="cart"] .fixed-cta,
body[data-page-id="cart"] .contact-float {
  display: none;
}

body[data-page-id="cart"] {
  padding-bottom: 0;
  overflow: hidden;
}

body.gx-app[data-page-id="cart"] .page-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  padding-bottom: 0;
}

body[data-page-id="cart"] .page-shell > gx-app-header {
  flex: 0 0 auto;
}

body[data-page-id="cart"] .page-shell > main {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

/* Only products scroll. Keep the navigation reserve even while it animates away. */
body[data-page-id="cart"] .site-cart-page {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding-bottom: var(--site-cart-bottom-clearance);
}

body[data-page-id="cart"] .site-cart-hero,
body[data-page-id="cart"] .site-cart-checkout {
  flex: 0 0 auto;
}

body[data-page-id="cart"] .site-cart-list {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  margin-bottom: 8px;
  scroll-padding-block: 8px;
}

body[data-page-id="cart"] .site-cart-list:focus-visible {
  outline: 2px solid var(--site-cart-select);
  outline-offset: -2px;
}

body[data-page-id="cart"] .site-cart-checkout {
  position: relative;
  bottom: auto;
}

body[data-page-id="cart"] .site-cart-empty {
  min-height: 0;
  overflow-y: auto;
}

.site-cart-page {
  --site-cart-ink: var(--gx-ui-text, #2c2723);
  --site-cart-muted: var(--gx-ui-muted, #81776e);
  --site-cart-accent: var(--gx-ui-primary, #9f671f);
  --site-cart-select: var(--gx-ui-primary, #4c6331);
  --site-cart-amount: var(--gx-ui-primary, #a7584c);
  --site-cart-return: var(--gx-ui-primary, #4c6331);
  --site-cart-bottom-clearance: calc(var(--gx-floating-nav-height, 62px) + 28px + env(safe-area-inset-bottom, 0px));
  container-name: site-cart;
  container-type: inline-size;
  display: flex;
  min-height: calc(100vh - 118px);
  flex-direction: column;
  background:
    radial-gradient(circle at 14% 5%, var(--gx-ui-soft, rgba(202, 154, 86, 0.12)), transparent 28%),
    linear-gradient(180deg, var(--gx-ui-surface, #fffdf9) 0%, var(--gx-ui-surface, #f8f4ed) 100%);
  padding: 10px 22px 0;
}

.site-cart-hero {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  text-align: center;
}

.site-cart-eyebrow {
  margin: 0;
  color: var(--site-cart-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.site-cart-hero h1 {
  margin: 0;
  color: var(--site-cart-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(28px, 4.6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.site-cart-manage {
  position: absolute;
  top: 50%;
  right: 0;
  min-width: 44px;
  min-height: 44px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--site-cart-select);
  padding: 0 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.site-cart-manage[hidden] {
  display: none;
}

.site-cart-manage:focus-visible {
  border-radius: 999px;
  outline: 2px solid var(--gx-ui-focus, rgba(76, 99, 49, 0.42));
  outline-offset: 1px;
}

.site-cart-list {
  display: grid;
  width: min(100%, 820px);
  gap: 10px;
  margin: 8px auto 24px;
}

.gx-app .site-cart-page .site-cart-domain {
  gap: 8px;
}

.gx-app .site-cart-page .site-cart-domain + .site-cart-domain {
  margin-top: 4px;
  padding-top: 10px;
}

.gx-app .site-cart-page .site-cart-domain__heading {
  min-height: 28px;
}

.gx-app .site-cart-page .site-cart-domain__heading h2 {
  font-size: 16px;
  font-weight: 400;
}

.site-cart-item {
  display: grid;
  grid-template-columns: 44px 150px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  border: 1px solid var(--gx-ui-border, rgba(174, 128, 67, 0.13));
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px 16px 14px 8px;
  box-shadow: 0 18px 44px rgba(var(--gx-ui-shadow-rgb, 74, 57, 39), 0.08);
}

.site-cart-item.is-selected {
  border-color: var(--gx-ui-border, rgba(174, 128, 67, 0.13));
  box-shadow: 0 18px 44px rgba(var(--gx-ui-shadow-rgb, 74, 57, 39), 0.08);
}

.site-cart-item--diy {
  grid-template-columns: 44px 160px minmax(0, 1fr);
  column-gap: 24px;
  padding: 16px 20px 16px 8px;
}

.site-cart-selection-control {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  cursor: pointer;
}

.site-cart-item-select,
.site-cart-select-all input {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.site-cart-selection-visual {
  display: block;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--site-cart-select);
  border-radius: 50%;
  background: #fff;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.site-cart-item-select:checked + .site-cart-selection-visual,
.site-cart-select-all input:checked + .site-cart-selection-visual {
  border-color: var(--site-cart-select);
  background-color: var(--site-cart-select);
  background-image: url("/gx-customer-assets/assets/icons/check-lucide.svg?v=2ae54e4d23ce4464899f");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
}

.site-cart-item-select:focus-visible + .site-cart-selection-visual,
.site-cart-select-all input:focus-visible + .site-cart-selection-visual {
  outline: 3px solid var(--gx-ui-focus, rgba(76, 99, 49, 0.24));
  outline-offset: 3px;
}

.site-cart-item-select:disabled,
.site-cart-select-all input:disabled {
  cursor: not-allowed;
}

/* A pending row update locks selection without changing its appearance. */
.site-cart-item:not([data-site-cart-busy="true"]) .site-cart-item-select:disabled + .site-cart-selection-visual,
.site-cart-select-all input:disabled + .site-cart-selection-visual {
  border-color: var(--gx-ui-disabled-border, #b9b2aa);
  background-color: var(--gx-ui-disabled-bg, #f3f0ec);
  opacity: 0.65;
}

.site-cart-item-visual {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0%, var(--gx-ui-surface, #fbfaf6) 58%, var(--gx-ui-soft, #f0eee8) 100%);
  transform: none;
}

.site-cart-item-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-cart-preview-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-cart-preview-trigger--visual {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: inherit;
  padding: 0;
}

.site-cart-preview-trigger--visual:hover {
  background: var(--gx-ui-soft, rgba(76, 99, 49, 0.05));
}

.site-cart-preview-trigger--visual:focus-visible {
  outline: 3px solid var(--gx-ui-focus, rgba(76, 99, 49, 0.28));
  outline-offset: -3px;
}

.site-cart-preview-placeholder {
  display: block;
  width: 48%;
  aspect-ratio: 1;
  border: 1px dashed var(--gx-ui-border, rgba(76, 99, 49, 0.34));
  border-radius: 50%;
}

.site-cart-item-copy {
  min-width: 0;
}

.site-cart-item--diy .site-cart-item-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.site-cart-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-cart-item--diy .site-cart-item-heading {
  width: 100%;
  min-width: 0;
}

.site-cart-item-heading h2 {
  margin: 0;
  color: var(--site-cart-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.site-cart-item--diy .site-cart-item-heading h2 {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-cart-remove-button {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.site-cart-remove-button img {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gx-ui-error-soft, #fff1ec);
  padding: 7px;
  box-sizing: content-box;
}

.site-cart-remove-button:hover img,
.site-cart-remove-button:focus-visible img {
  background: var(--gx-ui-error-soft, #fde4dc);
}

.site-cart-remove-button:focus-visible {
  outline: 2px solid var(--gx-ui-focus, rgba(185, 90, 77, 0.35));
  outline-offset: 1px;
}

.site-cart-item-spec {
  margin: 10px 0 0;
  color: var(--site-cart-muted);
  font-size: 11px;
  line-height: 1.55;
}

.site-cart-item-spec-line {
  display: block;
}

.site-cart-item-summary {
  display: grid;
  gap: 2px;
  margin: 9px 0 0;
  color: var(--site-cart-muted);
  font-size: 13px;
  line-height: 1.5;
}

.site-cart-item-summary span {
  display: block;
}

.site-cart-selection-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-cart-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.site-cart-item-tags span {
  border-radius: 7px;
  background: var(--gx-ui-soft, #f7eee9);
  color: var(--gx-ui-muted, #795c4f);
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1.25;
}

.site-cart-item-price {
  display: block;
  margin-top: 10px;
  color: var(--site-cart-amount);
  font-family: inherit;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.site-cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.site-cart-item-actions a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-ui-border, rgba(159, 103, 31, 0.24));
  border-radius: 999px;
  background: #fff;
  color: var(--site-cart-accent);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.site-cart-item-actions a:focus-visible,
.site-cart-item-actions a:hover {
  border-color: var(--gx-ui-focus, rgba(143, 162, 135, 0.55));
  color: var(--gx-ui-primary, #40522e);
}

.site-cart-item--diy .site-cart-item-actions {
  margin-top: 10px;
}

.site-cart-item--diy .site-cart-item-actions a {
  min-height: 44px;
  border-color: var(--site-cart-return);
  color: var(--site-cart-return);
  padding: 0 15px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.site-cart-item--diy .site-cart-item-actions a:hover,
.site-cart-item--diy .site-cart-item-actions a:focus-visible {
  border-color: var(--gx-ui-primary, #40542a);
  background: var(--gx-ui-focus, rgba(76, 99, 49, 0.06));
  color: var(--gx-ui-primary, #40542a);
}

.site-cart-item-feedback:empty {
  display: none;
}

.gx-app .site-cart-page .site-cart-fixed-price,
.gx-app .site-cart-page .site-cart-quantity > span,
.gx-app .site-cart-page .site-cart-quantity button,
.gx-app .site-cart-page .site-cart-refresh-price {
  font-weight: 400;
}

.site-cart-empty {
  display: grid;
  width: min(100%, 520px);
  justify-items: center;
  margin: 42px auto auto;
  border: 1px solid var(--gx-ui-border, rgba(174, 128, 67, 0.16));
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  padding: 38px 24px;
  text-align: center;
}

.site-cart-empty[hidden] {
  display: none;
}

.site-cart-empty img {
  border-radius: 0;
  opacity: 1;
  object-fit: contain;
}

.site-cart-empty h2 {
  margin: 18px 0 0;
  color: var(--site-cart-ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 22px;
}

.site-cart-empty p {
  margin: 9px 0 0;
  color: var(--site-cart-muted);
  font-size: 13px;
  line-height: 1.7;
}

.site-cart-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gx-ui-primary, #c78b32), var(--gx-ui-primary, #9b651e));
  color: #fff;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
}

.site-cart-checkout {
  position: sticky;
  z-index: 20;
  bottom: var(--site-cart-bottom-clearance);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(120px, 150px);
  width: min(100%, 860px);
  min-height: 82px;
  align-items: center;
  gap: 14px;
  margin: auto auto 0;
  border: 1px solid var(--gx-ui-border, rgba(174, 128, 67, 0.15));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  padding: 12px 14px max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -10px 28px rgba(var(--gx-ui-shadow-rgb, 71, 54, 37), 0.08);
  backdrop-filter: blur(16px);
}

.site-cart-checkout[hidden] {
  display: none;
}

.site-cart-checkout:has(.site-cart-select-all[hidden]) {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 150px);
}

.site-cart-select-all {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 6px;
  color: var(--site-cart-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.site-cart-total {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: start;
  gap: 3px;
}

.site-cart-checkout-status {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  color: var(--site-cart-muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-cart-total span {
  color: var(--site-cart-muted);
  font-size: 12px;
  line-height: 1;
}

.site-cart-total strong {
  color: var(--site-cart-select);
  font-family: inherit;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.site-cart-checkout-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--site-cart-select);
  color: #fff;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(var(--gx-ui-shadow-rgb, 76, 99, 49), 0.2);
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.site-cart-checkout-button:hover:not(:disabled) {
  background: var(--gx-ui-disabled-bg, #40542a);
}

.site-cart-checkout-button:active:not(:disabled) {
  transform: translateY(1px);
}

.site-cart-checkout-button:focus-visible {
  outline: 3px solid var(--gx-ui-focus, rgba(76, 99, 49, 0.24));
  outline-offset: 3px;
}

.site-cart-checkout-button:disabled {
  background: var(--gx-ui-disabled-bg, #c9c3bc);
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .site-cart-page {
    min-height: calc(100vh - 104px);
    padding: 7px 16px 0;
  }

  .site-cart-hero h1 {
    font-size: 28px;
  }

  .site-cart-list {
    gap: 8px;
    margin-top: 6px;
  }

  .site-cart-item {
    grid-template-columns: 44px 96px minmax(0, 1fr);
    column-gap: 6px;
    border-radius: 22px;
    padding: 7px 8px 7px 3px;
  }

  .site-cart-item.is-managing {
    grid-template-columns: 44px 78px minmax(0, 1fr) 44px;
  }

  .site-cart-item-visual {
    border-radius: 16px;
    transform: none;
  }

  .site-cart-item-heading {
    gap: 8px;
  }

  .site-cart-item-heading h2 {
    font-size: 16px;
  }

  .site-cart-item-spec {
    display: none;
    margin: 0;
  }

  .site-cart-item-spec span {
    display: none;
  }

  .site-cart-item-tags {
    gap: 5px;
    margin-top: 2px;
  }

  .site-cart-item-tags span {
    padding: 3px 5px;
    font-size: 10px;
  }

  .site-cart-item-actions {
    margin-top: 4px;
  }

  .site-cart-item-actions a {
    min-height: 30px;
    padding: 4px 10px;
  }

  .site-cart-item-price {
    margin-top: 11px;
    font-size: 19px;
  }

  .site-cart-checkout {
    grid-template-columns: max-content minmax(0, 1fr) minmax(96px, 120px);
    min-height: 76px;
    gap: 6px;
    border-radius: 22px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .site-cart-checkout:has(.site-cart-select-all[hidden]) {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 124px);
  }

  .site-cart-select-all {
    gap: 0;
    font-size: 13px;
  }

  .site-cart-total {
    gap: 1px;
  }

  .site-cart-total span {
    font-size: 11px;
  }

  .site-cart-total strong {
    font-size: clamp(14px, 4.2vw, 17px);
  }

  .site-cart-checkout-button {
    min-height: 48px;
    padding: 0 10px;
    font-size: 14px;
  }
}

@container site-cart (max-width: 520px) {
  .site-cart-item--diy {
    grid-template-columns: 44px 142px minmax(0, 1fr);
    column-gap: 16px;
    border-radius: 24px;
    padding: 12px 14px 12px 4px;
  }

  .site-cart-item--diy .site-cart-item-visual {
    border-radius: 18px;
  }

  .site-cart-item--diy .site-cart-item-heading h2 {
    font-size: 22px;
  }

  .site-cart-item--diy .site-cart-item-summary {
    display: grid;
    margin-top: 7px;
    font-size: 13px;
  }

  .site-cart-item--diy .site-cart-item-price {
    margin-top: 8px;
    font-size: 22px;
  }

  .site-cart-item--diy .site-cart-item-actions {
    margin-top: 8px;
  }

  .site-cart-item--diy .site-cart-item-actions a {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
  }
}

@container site-cart (max-width: 360px) {
  .site-cart-item--diy {
    grid-template-columns: 44px 108px minmax(0, 1fr);
    column-gap: 10px;
    border-radius: 22px;
    padding: 10px 8px 10px 3px;
  }

  .site-cart-item--diy .site-cart-item-heading h2 {
    font-size: 19px;
  }

  .site-cart-item--diy .site-cart-item-summary {
    gap: 1px;
    margin-top: 5px;
    font-size: 12px;
  }

  .site-cart-item--diy .site-cart-item-price {
    margin-top: 6px;
    font-size: 20px;
  }

  .site-cart-item--diy .site-cart-item-actions {
    margin-top: 6px;
  }

  .site-cart-item--diy .site-cart-item-actions a {
    padding-inline: 10px;
    font-size: 12px;
  }
}

body[data-page-id="custom_form"] {
  padding-bottom: 0;
}

body[data-page-id="custom_form"] .fixed-cta,
body[data-page-id="custom_form"] .contact-float {
  display: none;
}

body[data-page-id="custom_form"] .header-actions,
body[data-page-id="custom_form"] .anchor-nav,
body[data-page-id="custom_form"] .mobile-menu {
  display: none;
}

body[data-page-id="custom_form"][data-form-step="5"] {
  --calculation-page-background: var(--gx-ui-page, #faf7f1);
}

body[data-page-id="custom_form"][data-form-step="5"] .site-header,
body[data-page-id="custom_form"][data-form-step="5"] .custom-form-page {
  background: var(--calculation-page-background);
}

body[data-page-id="custom_form"][data-form-step="5"] .site-header {
  border-bottom: 0;
}

body[data-page-id="custom_form"][data-form-step="5"] .custom-form-stepper-row {
  display: none;
}

body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.custom-form-page {
  min-height: calc(100vh - 120px);
  background:
    radial-gradient(circle at 86% 4%, var(--gx-ui-soft, rgba(214, 162, 74, 0.12)), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--gx-ui-surface, #faf7f1) 100%);
  padding: 28px 20px 40px;
}

.form-hero {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.form-kicker,
.form-section-heading > p {
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.form-hero h1,
.form-section-heading h2 {
  margin: 0;
  color: var(--gx-ui-text, #241d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 24px;
  line-height: 1.35;
}

.form-section-title-row {
  display: block;
}

.form-hero > p:not(.form-kicker),
.form-section-heading > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body[data-page-id="custom_form"] .form-hero {
  display: none;
}

body[data-page-id="custom_form"] .form-stepper {
  margin-top: 0;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) .form-section-heading {
  margin-top: 0;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta {
  margin-top: 12px;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact strong {
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact span {
  min-width: 48px;
  text-align: center;
}

body[data-page-id="custom_form"] :is([data-form-panel="2"], [data-form-panel="3"]) .option-grid {
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 767px) {
  body[data-page-id="custom_form"] .header-actions,
  body[data-page-id="custom_form"] .form-kicker,
  body[data-page-id="custom_form"] .form-hero > p:not(.form-kicker),
  body[data-page-id="custom_form"] .form-section-heading > p {
    display: none;
  }

  body[data-page-id="custom_form"] .anchor-nav {
    border-top: 0;
  }

  body[data-page-id="custom_form"] .form-hero {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    text-align: center;
  }

  body[data-page-id="custom_form"] .form-hero h1 {
    margin: 0 auto;
    text-align: center;
  }

  body[data-page-id="custom_form"][data-form-step="5"] .custom-form-page {
    padding-top: 14px;
  }

  body[data-page-id="custom_form"][data-form-step="5"] .form-hero {
    display: none;
  }

  body[data-page-id="custom_form"][data-form-step="5"] .form-stepper {
    margin-top: 0;
  }

  body[data-page-id="custom_form"] [data-form-panel="4"] .form-section-heading span {
    display: none;
  }

  body[data-page-id="custom_form"] [data-form-panel="4"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page-id="custom_form"] [data-form-panel="4"] .confirm-stack {
    gap: 0;
    margin-top: 16px;
    background: transparent;
  }

  body[data-page-id="custom_form"] [data-form-panel="4"] .confirm-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
  }

  body[data-page-id="custom_form"] [data-form-panel="4"] .confirm-card + .confirm-card {
    border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  }
}

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

.form-stepper button {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--gx-ui-muted, #9a8a78);
  padding: 0;
  font: inherit;
}

.form-stepper span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 50%;
  background: var(--gx-ui-soft, #f3eee7);
  font-size: 12px;
  font-weight: 800;
}

.form-stepper b {
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.form-stepper .is-active span {
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.48));
  background: linear-gradient(135deg, var(--gx-ui-primary-hover, #d6a24a), var(--gx-ui-primary-hover, #9b651e));
  color: #fff;
  box-shadow: 0 8px 16px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.14);
}

.form-stepper .is-active b,
.form-stepper .is-complete b {
  color: var(--gold-dark);
}

.form-stepper .is-complete span {
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.42));
  background: var(--gx-ui-surface, #fff9ef);
  color: var(--gold-dark);
}

.form-panel {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 22px 18px;
}

.form-panel.is-active {
  display: block;
}

.field-stack {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.field,
.field-group,
.choice-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

[data-calendar-panel][hidden] {
  display: none !important;
}

.field span,
.choice-field legend {
  color: var(--gx-ui-text, #2f2a24);
  font-size: 14px;
  font-weight: 800;
}

.field b {
  margin-left: 5px;
  color: var(--gold-dark);
  font-size: 11px;
}

.choice-field legend b {
  margin-left: 5px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.6;
}

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

.field-label-row > span {
  min-width: 0;
}

.field-label-row button,
.element-benchmark-trigger {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  padding: 2px 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.element-benchmark-trigger {
  display: none;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.20));
  border-radius: 16px;
  background: #fff;
  color: var(--gx-ui-text, #2f2a24);
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--gx-ui-focus, rgba(185, 133, 62, 0.58));
  box-shadow: 0 0 0 3px rgba(var(--gx-ui-primary-rgb, 185, 133, 62), 0.1);
}

.field input:disabled {
  background: var(--gx-ui-disabled-bg, #f2eee8);
  color: var(--gx-ui-disabled-text, #9a8a78);
}

.field small,
.helper-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field .sub-helper {
  color: var(--gx-ui-muted, #9a8a78);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.unit-input {
  position: relative;
}

.unit-input input {
  padding-right: 52px;
}

.unit-input em {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--gold-dark);
  font-style: normal;
  font-weight: 800;
  transform: translateY(-50%);
}

.wrist-field .wrist-field-error {
  min-height: 20px;
  margin: 0;
  color: var(--gx-ui-error, #a43f2d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

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

.wrist-field.is-invalid .unit-input input {
  border-color: var(--gx-ui-error, rgba(164, 63, 45, 0.72));
  box-shadow: 0 0 0 3px rgba(var(--gx-ui-shadow-rgb, 164, 63, 45), 0.1);
}

.choice-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.loop-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calendar-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lunar-date-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 8px;
}

.lunar-date-grid select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.20));
  border-radius: 16px;
  background: #fff;
  color: var(--gx-ui-text, #2f2a24);
  padding: 0 10px;
  font: inherit;
  outline: none;
}

.lunar-date-grid select:focus {
  border-color: var(--gx-ui-focus, rgba(185, 133, 62, 0.58));
  box-shadow: 0 0 0 3px rgba(var(--gx-ui-primary-rgb, 185, 133, 62), 0.1);
}

.loop-card,
.calendar-type-card {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 16px;
  background: #fff;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 14px;
  font-weight: 800;
}

.loop-card input,
.calendar-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.loop-card.is-selected,
.calendar-type-card.is-selected {
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.54));
  background: var(--gx-ui-surface, #fff9ef);
  color: var(--gold-dark);
  box-shadow: 0 8px 18px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.06);
}

.select-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.select-meta strong,
.select-meta span {
  font-size: 12px;
}

.select-meta span {
  flex: none;
  border-radius: 999px;
  background: var(--gx-ui-surface, #fff9ef);
  color: var(--gold-dark);
  padding: 5px 9px;
  font-weight: 800;
}

.select-count-badge {
  display: none;
  flex: none;
  border-radius: 999px;
  background: var(--gx-ui-surface, #fff9ef);
  color: var(--gold-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.option-card {
  position: relative;
  display: grid;
  min-height: 116px;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 18px;
  background: #fff;
  color: var(--gx-ui-text, #2f2a24);
  padding: 13px 12px;
  text-align: left;
  font: inherit;
}

.option-card.is-selected {
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.58));
  background: var(--gx-ui-surface, #fff9ef);
  box-shadow: 0 10px 22px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.08);
}

.option-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.22));
  border-radius: 50%;
  background: var(--gx-ui-surface, #fffaf4);
  color: var(--gold);
}

.option-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-card h3 {
  font-size: 15px;
  line-height: 1.25;
}

.option-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.option-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.option-card.is-selected .option-check {
  display: inline-flex;
}

.form-error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--gx-ui-error, #a43f2d);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

body[data-page-id="custom_form"] [data-form-panel="1"] .form-error:empty {
  min-height: 0;
  margin-top: 0;
}

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

.form-actions.two {
  grid-template-columns: 1fr 1.25fr;
}

.form-primary,
.form-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.form-primary {
  border: 0;
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
  box-shadow: 0 10px 20px rgba(var(--gx-ui-shadow-rgb, 138, 90, 34), 0.16);
}

.form-secondary {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.36));
  background: #fff;
  color: var(--gold-dark);
}

/* custom_form step 1: quiet, jewelry-led data entry layout */
body[data-page-id="custom_form"][data-form-step="1"] {
  --step-one-cream: var(--gx-ui-soft, #fbf7f0);
  --step-one-surface: var(--gx-ui-surface, #fffdf9);
  --step-one-ink: var(--gx-ui-text, #29231f);
  --step-one-muted: var(--gx-ui-muted, #81786f);
  --step-one-gold: var(--gx-ui-primary, #b37a2d);
  --step-one-gold-dark: var(--gx-ui-primary-hover, #87561f);
  --step-one-border: var(--gx-ui-border, #eadbc7);
}

body[data-page-id="custom_form"][data-form-step="1"] .page-shell {
  width: min(100%, 960px);
  background: var(--step-one-cream);
  box-shadow: 0 0 0 1px rgba(var(--gx-ui-shadow-rgb, 213, 196, 174), 0.48);
}

body[data-page-id="custom_form"][data-form-step="1"] .site-header {
  border-bottom: 0;
  background: var(--step-one-cream);
}

body[data-page-id="custom_form"][data-form-step="1"] .header-main {
  min-height: 88px;
  padding: 18px clamp(22px, 5vw, 42px);
}

body[data-page-id="custom_form"][data-form-step="1"] .brand img {
  box-shadow: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-page {
  min-height: calc(100vh - 88px);
  background: var(--step-one-cream);
  padding: 0 clamp(24px, 7vw, 78px) 42px;
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-stepper-row {
  display: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-home-return:not([hidden]) {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--step-one-gold-dark);
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  left: -6px;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-home-return svg {
  display: block;
  width: 22px;
  height: 22px;
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-home-return:active {
  background: var(--gx-ui-soft, rgba(135, 86, 31, 0.06));
}

body[data-page-id="custom_form"][data-form-step="1"] .custom-form-home-return:focus-visible {
  outline: 2px solid var(--step-one-gold);
  outline-offset: 2px;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper {
  display: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper button {
  position: relative;
  gap: 8px;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper button + button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--gx-ui-soft, #ddcdb7);
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper span,
body[data-page-id="custom_form"][data-form-step="1"] .form-stepper b {
  position: relative;
  z-index: 1;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper span {
  width: 32px;
  height: 32px;
  border-color: var(--gx-ui-border, #e5d6c4);
  background: var(--gx-ui-soft, #f8f2ea);
  color: var(--gx-ui-muted, #9c8f82);
  font-size: 13px;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper b {
  color: var(--gx-ui-muted, #766c63);
  font-size: 12px;
  font-weight: 700;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper .is-active span {
  border-color: var(--step-one-gold);
  background: var(--step-one-gold);
  color: #fff;
  box-shadow: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .form-stepper .is-active b {
  color: var(--step-one-gold-dark);
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] {
  width: min(100%, 760px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  text-align: center;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading h2 {
  grid-column: 2;
  grid-row: 1;
  color: var(--step-one-ink);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading > span {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  color: var(--step-one-muted);
  font-size: 15px;
  line-height: 1.6;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-sections {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--step-one-ink);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section-title > span {
  width: 30px;
  height: 2px;
  flex: none;
  background: var(--step-one-gold);
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .choice-field {
  gap: 9px;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field > span,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .choice-field legend {
  color: var(--step-one-ink);
  font-size: 14px;
  font-weight: 700;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field b,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .choice-field legend b {
  color: var(--step-one-gold-dark);
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-identity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-width: 0;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-identity-row .field {
  min-width: 0;
}

body[data-page-id="custom_form"][data-form-step="1"] .field > .native-datetime-control {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field input,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field select,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .lunar-date-grid select {
  min-height: 54px;
  border-color: var(--step-one-border);
  border-radius: 14px;
  background: var(--gx-ui-surface, rgba(255, 253, 249, 0.9));
  color: var(--step-one-ink);
  box-shadow: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field input:focus,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field select:focus,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .lunar-date-grid select:focus {
  border-color: var(--step-one-gold);
  box-shadow: 0 0 0 2px rgba(var(--gx-ui-primary-rgb, 179, 122, 45), 0.09);
}

body[data-page-id="custom_form"][data-form-step="1"] .calendar-type-card,
body[data-page-id="custom_form"][data-form-step="1"] .loop-card {
  min-height: 52px;
  border-color: var(--step-one-border);
  border-radius: 14px;
  background: var(--step-one-surface);
  color: var(--gx-ui-muted, #625950);
  box-shadow: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .calendar-type-card.is-selected,
body[data-page-id="custom_form"][data-form-step="1"] .loop-card.is-selected {
  border-color: var(--step-one-gold);
  background: var(--gx-ui-soft, #f8eddc);
  color: var(--step-one-gold-dark);
  box-shadow: none;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-location-row {
  display: grid;
  min-width: 0;
  align-items: end;
  gap: 18px;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.85fr);
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-location-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row .check-row {
  min-height: 54px;
  align-self: end;
  white-space: nowrap;
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row .check-row span {
  color: var(--gx-ui-muted, #5f574f);
}

body[data-page-id="custom_form"][data-form-step="1"] .wrist-field small,
body[data-page-id="custom_form"][data-form-step="1"] .step-one-loop-field .helper-text {
  color: var(--step-one-muted);
  font-size: 12px;
  line-height: 1.6;
}

body[data-page-id="custom_form"][data-form-step="1"] .field-label-row button {
  color: var(--step-one-gold-dark);
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-loop-field {
  margin-top: 4px;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-actions {
  margin-top: 20px;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-primary {
  min-height: 52px;
  border-radius: 16px;
  background: var(--gx-ui-primary, #a66f28);
  box-shadow: none;
  font-size: 15px;
  letter-spacing: 0;
}

body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-primary:hover {
  background: var(--gx-ui-primary-hover, #8f5d22);
}

body[data-page-id="custom_form"][data-form-step="1"] .step-one-privacy {
  margin-top: 12px;
  color: var(--step-one-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767px) {
  body[data-page-id="custom_form"][data-form-step="1"] .header-main {
    min-height: 76px;
    padding: 12px 20px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .custom-form-page {
    min-height: calc(100vh - 76px);
    padding: 0 20px 30px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .form-stepper span {
    width: 30px;
    height: 30px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .form-stepper button + button::before {
    top: 14px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .form-stepper b {
    font-size: 11px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] {
    margin-top: 0;
  }

  body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading h2 {
    grid-column: 1;
    font-size: 25px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-section-heading > span {
    grid-column: 1;
    margin-top: 5px;
    font-size: 13px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .custom-form-home-return:not([hidden]) {
    position: absolute;
    top: 0;
    left: -8px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-sections {
    gap: 0;
    margin-top: 14px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section {
    gap: 16px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section-title {
    gap: 11px;
    font-size: 18px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section-title > span {
    width: 24px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-identity-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(108px, 0.65fr);
    gap: 12px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field input,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field select,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .lunar-date-grid select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 52px;
    min-height: 52px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 16px;
    line-height: normal;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .field select,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section .lunar-date-grid select {
    padding-right: 34px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-date-field,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row {
    width: 100%;
    min-width: 0;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-location-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row .field,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-location-row .field {
    width: 100%;
    min-width: 0;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row .check-row {
    width: fit-content;
    min-height: 34px;
    justify-self: start;
    gap: 8px;
    padding: 0 2px;
    font-size: 13px;
    white-space: normal;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-time-row .check-row input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .calendar-type-options,
  body[data-page-id="custom_form"][data-form-step="1"] .loop-options {
    gap: 12px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .calendar-type-card,
  body[data-page-id="custom_form"][data-form-step="1"] .loop-card {
    min-height: 52px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .wrist-field small,
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-loop-field .helper-text {
    margin: 0;
  }

  body[data-page-id="custom_form"][data-form-step="1"] [data-form-panel="1"] .form-actions {
    margin-top: 18px;
  }
}

@media (max-width: 360px) {
  body[data-page-id="custom_form"][data-form-step="1"] .custom-form-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-identity-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(104px, 0.75fr);
    gap: 10px;
  }
}

/* Mobile native form controls: keep their painted box and text inside the field. */
@media (max-width: 767px) {
  body[data-page-id="custom_form"][data-form-step="1"] .step-one-identity-row {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 0.82fr);
    gap: 10px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .native-datetime-control {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--step-one-border);
    border-radius: 14px;
    background: var(--gx-ui-surface, rgba(255, 253, 249, 0.9));
    box-sizing: border-box;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .field > .native-datetime-control {
    color: var(--step-one-ink);
    font-size: 16px;
    font-weight: 400;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .native-datetime-control:focus-within {
    border-color: var(--step-one-gold);
    box-shadow: 0 0 0 2px rgba(var(--gx-ui-primary-rgb, 179, 122, 45), 0.09);
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    .field input,
    .field select,
    .lunar-date-grid select
  ) {
    box-sizing: border-box;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    input[type="date"],
    input[type="time"]
  ) {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px;
    min-height: 50px;
    overflow: hidden;
    border: 0;
    border-radius: 13px;
    background: transparent;
    padding: 0 13px;
    box-sizing: border-box;
    color: var(--step-one-ink);
    -webkit-text-fill-color: var(--step-one-ink);
    font-size: 16px;
    line-height: 50px;
    text-align: left;
    color-scheme: light;
    opacity: 1;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    input[type="date"],
    input[type="time"]
  ):focus {
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    input[type="date"],
    input[type="time"]
  )::-webkit-date-and-time-value {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 50px;
    margin: 0;
    color: var(--step-one-ink);
    -webkit-text-fill-color: var(--step-one-ink);
    line-height: 50px;
    text-align: left;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    input[type="date"],
    input[type="time"]
  )::-webkit-datetime-edit {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 50px;
    overflow: hidden;
    padding: 0;
    color: var(--step-one-ink);
    -webkit-text-fill-color: var(--step-one-ink);
    line-height: 50px;
  }

  body[data-page-id="custom_form"][data-form-step="1"] .step-one-section :is(
    input[type="date"],
    input[type="time"]
  )::-webkit-calendar-picker-indicator {
    margin: 0;
    opacity: 0.68;
  }
}

/* custom_form steps 2 and 3: shared private-advisor selection list */
body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) {
  --advisor-cream: var(--gx-ui-soft, #fbf7f0);
  --advisor-surface: var(--gx-ui-surface, #fffdf9);
  --advisor-ink: var(--gx-ui-text, #29231f);
  --advisor-muted: var(--gx-ui-muted, #81786f);
  --advisor-gold: var(--gx-ui-primary, #b37a2d);
  --advisor-gold-dark: var(--gx-ui-primary-hover, #87561f);
  --advisor-border: var(--gx-ui-border, #e6d8c5);
  --advisor-selected: var(--gx-ui-soft, #f8eedf);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .page-shell {
  width: min(100%, 960px);
  background: var(--advisor-cream);
  box-shadow: 0 0 0 1px rgba(var(--gx-ui-shadow-rgb, 213, 196, 174), 0.48);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .site-header {
  border-bottom: 0;
  background: var(--gx-ui-surface, rgba(255, 253, 249, 0.96));
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .header-main {
  min-height: 88px;
  padding: 18px clamp(22px, 5vw, 42px);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .brand img {
  box-shadow: none;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .custom-form-page {
  min-height: calc(100vh - 88px);
  background: var(--advisor-cream);
  padding: 26px clamp(24px, 7vw, 78px) 42px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper {
  width: min(100%, 760px);
  margin-inline: auto;
  gap: 0;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper button {
  position: relative;
  gap: 8px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper button + button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--gx-ui-soft, #ddcdb7);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper span,
body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper b {
  position: relative;
  z-index: 1;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper span {
  width: 32px;
  height: 32px;
  border-color: var(--gx-ui-border, #e5d6c4);
  background: var(--gx-ui-soft, #f8f2ea);
  color: var(--gx-ui-muted, #9c8f82);
  font-size: 13px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper b {
  color: var(--gx-ui-muted, #766c63);
  font-size: 12px;
  font-weight: 700;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper .is-active span {
  border-color: var(--advisor-gold);
  background: var(--advisor-gold);
  color: #fff;
  box-shadow: none;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper .is-active b,
body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper .is-complete b {
  color: var(--advisor-gold-dark);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper .is-complete span {
  border-color: var(--gx-ui-border, rgba(179, 122, 45, 0.5));
  background: var(--advisor-surface);
  color: var(--advisor-gold-dark);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) {
  width: min(100%, 810px);
  margin: 42px auto 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-section-heading > p {
  display: none;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-section-heading h2 {
  color: var(--advisor-ink);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta {
  margin-top: 24px;
  border-bottom: 1px solid var(--advisor-border);
  padding-bottom: 22px;
  color: var(--advisor-muted);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact strong {
  color: var(--gx-ui-muted, #645b52);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact span {
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: var(--advisor-gold-dark);
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 38px;
  min-height: 112px;
  align-items: center;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--advisor-border);
  border-radius: 0;
  background: transparent;
  color: var(--advisor-ink);
  padding: 20px 14px;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card:hover {
  background: var(--gx-ui-soft, rgba(248, 238, 223, 0.46));
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card:focus-visible {
  outline: 2px solid var(--gx-ui-focus, rgba(179, 122, 45, 0.45));
  outline-offset: -2px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card.is-selected {
  border-color: var(--advisor-border);
  background: var(--advisor-selected);
  box-shadow: none;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-number {
  display: flex;
  min-height: 56px;
  align-items: center;
  align-self: stretch;
  border-right: 1px solid var(--advisor-border);
  color: var(--advisor-gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card h3 {
  color: var(--advisor-ink);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card p {
  color: var(--advisor-muted);
  font-size: 14px;
  line-height: 1.45;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-check {
  position: static;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-ui-border, #cdbda9);
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 17px;
  font-weight: 800;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card.is-selected .option-check {
  display: inline-flex;
  border-color: var(--advisor-gold);
  background: var(--advisor-gold);
  color: #fff;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card.is-selected h3 {
  color: var(--advisor-gold-dark);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-error:empty {
  min-height: 0;
  margin-top: 0;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-actions {
  margin-top: 28px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) :is(.form-primary, .form-secondary) {
  min-height: 52px;
  border-radius: 16px;
  box-shadow: none;
  font-size: 15px;
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-primary {
  background: var(--gx-ui-primary, #a66f28);
}

body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-secondary {
  border-color: var(--advisor-gold);
  background: var(--advisor-surface);
  color: var(--advisor-gold-dark);
}

@media (max-width: 767px) {
  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .page-shell {
    width: min(100%, 430px);
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .header-main {
    min-height: 76px;
    padding: 12px 20px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .custom-form-page {
    min-height: calc(100vh - 76px);
    padding: 22px 22px 30px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper span {
    width: 30px;
    height: 30px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper button + button::before {
    top: 14px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .form-stepper b {
    font-size: 11px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) {
    margin-top: 34px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-section-heading h2 {
    font-size: 28px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta {
    margin-top: 16px;
    padding-bottom: 16px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact strong {
    font-size: 13px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .select-meta--compact span {
    font-size: 14px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card {
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    min-height: 84px;
    gap: 13px;
    padding: 14px 4px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-number {
    min-height: 48px;
    font-size: 19px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-copy {
    gap: 3px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card h3 {
    font-size: 17px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-card p {
    font-size: 12px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) .option-check {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  body[data-page-id="custom_form"]:is([data-form-step="2"], [data-form-step="3"]) :is([data-form-panel="2"], [data-form-panel="3"]) .form-actions {
    margin-top: 22px;
  }
}

.confirm-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.confirm-card {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 18px;
  background: var(--gx-ui-surface, #fffaf4);
  padding: 15px;
}

.confirm-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-card h3 {
  color: var(--gx-ui-text, #2f2a24);
  font-size: 16px;
}

.confirm-section-title-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.confirm-section-title-group h3,
.confirm-section-title-group .summary-count {
  margin: 0;
}

.confirm-card header button {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.30));
  border-radius: 999px;
  background: #fff;
  color: var(--gold-dark);
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.confirm-card dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 7px 10px;
  margin: 12px 0 0;
}

.confirm-card dt,
.confirm-card dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.confirm-card dt {
  color: var(--gx-ui-muted, #8a8178);
}

.confirm-card dd {
  color: var(--gx-ui-text, #2f2a24);
  font-weight: 700;
}

.summary-count {
  margin-top: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.summary-tag {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}

.summary-tag b {
  display: block;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 14px;
}

.summary-tag span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

/* custom_form step 4: mobile confirmation summary */
@media (max-width: 480px) {
  body[data-page-id="custom_form"][data-form-step="4"] {
    --confirmation-cream: var(--gx-ui-soft, #fffcf7);
    --confirmation-surface: var(--gx-ui-surface, #fffaf4);
    --confirmation-ink: var(--gx-ui-text, #2b241f);
    --confirmation-muted: var(--gx-ui-muted, #81766d);
    --confirmation-gold: var(--gx-ui-primary, #b37a2d);
    --confirmation-gold-dark: var(--gx-ui-primary-hover, #87561f);
    --confirmation-border: var(--gx-ui-border, #e8dac8);
    --confirmation-soft: var(--gx-ui-soft, #f7eddf);
    min-height: 100vh;
    background: var(--confirmation-cream);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: var(--confirmation-cream);
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .site-header {
    display: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-page {
    width: 100%;
    min-height: 100vh;
    scroll-margin-top: 0;
    border: 1px solid var(--gx-ui-border, rgba(179, 122, 45, 0.2));
    border-radius: 0;
    background: var(--confirmation-cream);
    box-shadow: none;
    padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brandbar:not([hidden]) {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 6px 6px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand img {
    width: 36px;
    height: 36px;
    flex: none;
    border: 0;
    border-radius: 0;
    object-fit: contain;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand span {
    display: grid;
    gap: 1px;
    color: var(--confirmation-ink);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand strong {
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-brand small {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 8px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: none;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--confirmation-ink);
    padding: 0;
    font: inherit;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.9;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-close:hover,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-close:active {
    opacity: 0.58;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-close:focus-visible {
    outline: 2px solid var(--gx-ui-focus, rgba(179, 122, 45, 0.4));
    outline-offset: 1px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper {
    width: 100%;
    margin: 10px auto 0;
    gap: 0;
    padding-inline: 8px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper button {
    position: relative;
    gap: 8px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper button + button::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 16px;
    right: 50%;
    width: 100%;
    height: 1px;
    background: var(--gx-ui-soft, rgba(179, 122, 45, 0.24));
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper span,
  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper b {
    position: relative;
    z-index: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper span {
    width: 32px;
    height: 32px;
    border-color: var(--gx-ui-border, #e5d6c4);
    background: var(--gx-ui-soft, #f8f2ea);
    color: var(--gx-ui-muted, #9c8f82);
    font-size: 13px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper b {
    color: var(--gx-ui-muted, #766c63);
    font-size: 11px;
    font-weight: 700;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-complete span {
    border-color: var(--gx-ui-border, rgba(179, 122, 45, 0.5));
    background: var(--gx-ui-surface, #fffdf9);
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-complete b,
  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-active b {
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .form-stepper .is-active span {
    border-color: var(--confirmation-gold);
    background: var(--confirmation-gold);
    color: #fff;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-form-panel="4"].custom-form-confirmation {
    width: 100%;
    margin: 30px auto 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading h2 {
    margin: 0;
    color: var(--confirmation-ink);
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-heading > span {
    display: block;
    margin-top: 8px;
    color: var(--confirmation-muted);
    font-size: 13px;
    line-height: 1.55;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider {
    display: flex;
    width: 130px;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: var(--confirmation-gold);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider span {
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: rgba(var(--gx-ui-text-rgb, 179, 122, 45), 0.42);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider b {
    color: var(--confirmation-gold);
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .confirm-stack {
    margin-top: 6px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-card {
    margin-top: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-card + .custom-form-summary-card {
    margin-top: 20px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-divider + .custom-form-summary-card {
    margin-top: 22px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-header {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-inline: 19px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-title {
    margin: 0;
    color: var(--confirmation-ink);
    font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-edit {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--confirmation-gold-dark);
    padding: 0 4px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-edit:focus-visible {
    outline: 2px solid var(--gx-ui-focus, rgba(179, 122, 45, 0.42));
    outline-offset: 2px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-count {
    color: var(--confirmation-gold-dark);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-list {
    display: grid;
    gap: 0;
    margin: 10px 19px 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 42px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--gx-ui-border, rgba(232, 218, 200, 0.82));
    padding: 9px 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-card="basic"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-card="basic"] .custom-form-summary-title {
    font-size: 20px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-card="basic"] .custom-form-summary-row {
    grid-template-columns: minmax(96px, 36%) minmax(0, 64%);
    min-height: 40px;
    gap: 12px;
    padding: 6px 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-card="basic"] .custom-form-summary-label {
    text-align: left;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-card="basic"] .custom-form-summary-value {
    justify-self: stretch;
    text-align: left;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-row:last-child {
    border-bottom: 0;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-label,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-value {
    min-width: 0;
    line-height: 1.45;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-label {
    color: var(--confirmation-muted);
    font-size: 13px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-value {
    color: var(--confirmation-ink);
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
    text-align: right;
  }

  body[data-page-id="custom_form"][data-form-step="4"] :is([data-summary-card="theme"], [data-summary-card="emotion"]) .custom-form-summary-title {
    font-size: 20px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-selection {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 64px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--confirmation-border);
    border-radius: 15px;
    background: var(--confirmation-cream);
    padding: 10px 13px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-selection + .custom-form-summary-selection {
    margin-top: 9px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-symbol {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gx-ui-soft, #f1e7d9);
    color: var(--confirmation-gold-dark);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-summary-symbol svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-selection-title] {
    display: block;
    color: var(--confirmation-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  body[data-page-id="custom_form"][data-form-step="4"] [data-summary-selection-subtitle] {
    display: block;
    margin-top: 2px;
    color: var(--confirmation-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
    gap: 11px;
    margin-top: 22px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions :is(.form-primary, .form-secondary) {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    align-items: center;
    justify-items: center;
    border-radius: 17px;
    padding: 0 11px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.3;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-secondary::after,
  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-primary::before {
    content: "";
    display: block;
    width: 22px;
    height: 1px;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-secondary {
    border: 1px solid var(--gx-ui-border, rgba(157, 106, 44, 0.62));
    background: var(--gx-ui-surface, #fffdf8);
    color: var(--confirmation-ink);
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .form-primary {
    border: 1px solid var(--gx-ui-primary, #9b641f);
    background: linear-gradient(100deg, var(--gx-ui-primary, #c88e31) 0%, var(--gx-ui-primary, #9b641f) 100%);
    color: #fff;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-actions .custom-form-action-arrow {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 11px 0 0;
    color: var(--confirmation-muted);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    padding-bottom: max(3px, env(safe-area-inset-bottom));
  }

  body[data-page-id="custom_form"][data-form-step="4"] .custom-form-confirmation-privacy svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

.calculation-panel {
  text-align: center;
}

.crystal-loader {
  display: inline-flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 34%, var(--gx-ui-soft, rgba(214,162,74,0.16)) 35% 68%, var(--gx-ui-surface, rgba(255,249,239,1)) 69%);
  box-shadow: 0 14px 30px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.1);
}

.crystal-loader img {
  width: 54px;
  height: 54px;
  border-radius: 0;
  object-fit: contain;
  animation: crystalPulse 1.35s ease-in-out infinite;
}

@keyframes crystalPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

.progress-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  text-align: left;
}

.progress-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  border-radius: 16px;
  background: #fff;
  color: var(--gx-ui-muted, #9a8a78);
  padding: 12px 13px;
  font-size: 14px;
}

.progress-list span {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: var(--gx-ui-soft, #eee7de);
}

.progress-list li.is-complete {
  color: var(--gx-ui-text, #2f2a24);
}

.progress-list li.is-complete span {
  background: var(--gx-ui-primary, #19b66c);
  color: #fff;
}

.progress-list li.is-complete span::before {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.progress-list li.is-current span {
  border: 3px solid var(--gx-ui-border, rgba(185, 133, 62, 0.22));
  background: var(--gold);
  animation: progressBeat 1s ease-in-out infinite;
}

@keyframes progressBeat {
  0%,
  100% {
    transform: scale(0.88);
  }

  50% {
    transform: scale(1);
  }
}

.result-link {
  width: 100%;
  margin-top: 18px;
}

.result-link[hidden] {
  display: none;
}

.calculation-error {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid var(--gx-ui-error-soft, rgba(185, 92, 62, 0.18));
  border-radius: 18px;
  background: var(--gx-ui-error-soft, #fff8f4);
  padding: 18px;
  text-align: left;
}

.calculation-error[hidden] {
  display: none;
}

.calculation-error h3 {
  color: var(--gx-ui-error, #7f331f);
  font-size: 18px;
  line-height: 1.35;
}

.calculation-error p {
  color: var(--gx-ui-muted, #705b50);
  font-size: 14px;
  line-height: 1.7;
}

.calculation-api-url {
  display: block;
  word-break: break-all;
  color: var(--gx-ui-muted, #9a8a78);
  font-size: 12px;
  line-height: 1.5;
}

body.is-modal-open {
  overflow: hidden;
}

.measurement-modal[hidden] {
  display: none;
}

.measurement-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.measurement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--gx-ui-text-rgb, 47, 42, 36), 0.34);
}

.measurement-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -16px 40px rgba(var(--gx-ui-shadow-rgb, 47, 42, 36), 0.18);
  padding: 24px 20px 22px;
}

.measurement-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 999px;
  background: var(--gx-ui-surface, #fffaf3);
  color: var(--gold-dark);
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.measurement-sheet h2 {
  padding-right: 64px;
  color: var(--gx-ui-text, #241d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  line-height: 1.35;
}

.measurement-sheet p {
  margin-top: 12px;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 14px;
  line-height: 1.7;
}

.measurement-sheet .measurement-note {
  color: var(--gx-ui-muted, #8a8178);
  font-size: 13px;
}

.measurement-sheet img {
  width: 100%;
  height: auto;
  margin-top: 16px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 16px;
  object-fit: contain;
}

.measurement-confirm {
  width: 100%;
  margin-top: 16px;
}

.element-benchmark-modal {
  align-items: center;
  padding: 16px;
}

.element-benchmark-sheet {
  width: min(96vw, 1200px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 18px 54px rgba(var(--gx-ui-shadow-rgb, 47, 42, 36), 0.24);
  padding: 0;
}

.element-benchmark-sheet .measurement-close {
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  top: 10px;
  right: 10px;
  place-items: center;
  border: 1px solid var(--gx-ui-border, rgba(74, 68, 61, 0.2));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gx-ui-muted, #4a443d);
  padding: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.element-benchmark-sheet .measurement-close span {
  display: block;
  transform: translateY(-1px);
}

.element-benchmark-sheet .element-benchmark-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 12px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .element-benchmark-modal {
    padding: 10px;
  }

  .element-benchmark-sheet {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .element-benchmark-sheet .element-benchmark-image {
    border-radius: 8px;
  }
}

.leap-month-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.leap-month-options button {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.18));
  border-radius: 16px;
  background: var(--gx-ui-surface, #fff9ef);
  color: var(--gx-ui-text, #2f2a24);
  padding: 12px 14px;
  text-align: left;
  font: inherit;
}

.leap-month-options strong {
  color: var(--gold-dark);
  font-size: 14px;
}

.leap-month-options span {
  color: var(--muted);
  font-size: 12px;
}

.result-body {
  --report-action-color: var(--gx-ui-primary, #b9853e);
  --result-page-background: var(--gx-ui-page, #faf7f1);
  background: var(--result-page-background);
  padding-bottom: 0;
}

.result-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--result-page-background);
}

.result-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0;
  background: var(--result-page-background);
  padding: 12px 20px;
  backdrop-filter: none;
}

.result-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gx-ui-text, #241d18);
}

.result-brand img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: contain;
}

.result-brand strong {
  display: block;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 18px;
  line-height: 1.15;
}

.result-brand small {
  display: block;
  margin-top: 2px;
  color: var(--gx-ui-primary, #8a5a22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.result-main {
  display: grid;
  gap: 14px;
  padding: 18px 20px 44px;
}

.result-hero,
.result-section,
.empty-result {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  box-shadow: 0 10px 26px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.045);
  padding: 22px 18px;
}

.result-hero {
  border-radius: 20px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 18px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.035);
}

.result-heading-row {
  display: none;
}

.result-section-light {
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.1));
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.035);
  padding: 16px 18px;
}

.result-body .analysis-basis-details {
  margin-top: 0;
}

.result-body .analysis-basis-details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.result-body .analysis-basis-details > summary::-webkit-details-marker {
  display: none;
}

.result-body .analysis-basis-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 3px;
  color: var(--report-action-color);
  white-space: nowrap;
}

.result-body .analysis-basis-action > [aria-hidden="true"] {
  color: currentColor;
}

.result-body .analysis-basis-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--gx-ui-text, #241d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.result-body .result-analysis-basis {
  padding: 16px 18px;
}

.result-body .analysis-basis-content {
  margin-top: 6px;
}

.result-body .destiny-profile-group > h3 {
  margin: 0 0 6px;
  color: var(--ink, var(--gx-ui-text, #2f2923));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.result-body .destiny-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.result-body .destiny-basic-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-width: 0;
  align-items: baseline;
  column-gap: 3px;
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
}

.result-body .destiny-basic-item:nth-child(even) {
  padding-right: 0;
  padding-left: 12px;
}

.result-body .destiny-basic-item dt {
  margin: 0;
  color: var(--report-action-color, var(--gx-ui-primary, #b9853e));
  font-size: 11px;
  font-weight: 500;
}

.result-body .destiny-basic-item dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft, var(--gx-ui-muted, #62584f));
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result-body .destiny-bazi-group {
  margin-top: 12px;
}

.result-body .destiny-bazi-grid {
  display: grid;
  grid-template-columns: minmax(46px, 0.72fr) repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
}

.result-body .destiny-bazi-cell {
  min-width: 0;
  padding: 7px 3px;
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.10));
  color: var(--ink-soft, var(--gx-ui-muted, #62584f));
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.result-body .destiny-bazi-cell:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.result-body .destiny-bazi-cell.is-corner,
.result-body .destiny-bazi-cell.is-column-title,
.result-body .destiny-bazi-cell.is-row-title {
  color: var(--report-action-color, var(--gx-ui-primary, #b9853e));
  font-weight: 600;
}

.result-body .destiny-bazi-cell.is-row-title {
  text-align: left;
}

.result-body .destiny-bazi-cell.is-corner {
  text-align: left;
}

.result-body .destiny-bazi-note {
  margin: 5px 0 0;
  color: var(--ink-muted, var(--gx-ui-muted, #8b7d70));
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 389px) {
  .result-body .destiny-bazi-cell {
    font-size: 10px;
  }
}

.result-body .five-status-content,
.result-body .five-status-conclusion,
.result-body .five-status-direction {
  display: grid;
}

.result-body .five-status-content {
  gap: 11px;
  margin-top: 13px;
}

.result-body .five-status-conclusion {
  gap: 5px;
}

.result-body .five-status-conclusion h3 {
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.result-body .five-status-conclusion p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.result-body .five-status-directions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 8px;
}

.result-body .five-status-direction {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 12px;
  background: var(--gx-ui-surface, #fffcf7);
  padding: 10px;
}

.result-body .five-status-direction h3 {
  width: 100%;
  align-self: center;
  color: var(--gx-ui-primary, #8a5a22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.result-body .five-status-elements {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.result-body .five-status-chip {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-items: center;
  border: 1px solid var(--element-border);
  border-radius: 50%;
  background: var(--element-bg);
  padding: 0;
  line-height: 1;
}

.result-body .five-status-chip strong {
  color: var(--element-color);
  font-size: 13px;
  font-weight: 800;
}

.result-body .result-five-status {
  border-color: var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 18px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.035);
  padding: 16px 18px 17px;
}

.result-body .result-five-status > h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.result-body .five-status-info {
  display: inline-grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.result-body .five-status-empty {
  color: var(--muted);
  font-size: 13px;
}

.result-body .result-footer-note {
  margin: 0;
  text-align: center;
}

.result-kicker,
.result-section > p:first-child {
  margin-bottom: 8px;
  color: var(--gx-ui-primary, #9a6426);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-hero h1,
.result-section h2,
.empty-result h1 {
  color: var(--gx-ui-text, #241d18);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 700;
}

.result-section-light h2,
.result-interpretation h2 {
  font-size: 18px;
  line-height: 1.35;
}

.result-hero > p:not(.result-kicker),
.empty-result p,
.section-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.section-note {
  color: var(--gx-ui-muted, #7b7068);
  font-size: 12px;
  line-height: 1.5;
}

.result-grid,
.result-card-list,
.stone-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.summary-list {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  margin-top: 10px;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 13px;
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.1));
  padding: 6px 0;
}

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

.summary-list dt {
  flex: 0 0 auto;
  color: var(--gx-ui-primary, #9a6426);
  font-size: 13px;
  font-weight: 600;
}

.summary-list dt::before {
  content: none;
}

.summary-list dd {
  min-width: 0;
  color: var(--gx-ui-text, #2f2a24);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.pillar-card {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  padding: 10px;
}

.pillar-card strong {
  display: block;
  color: var(--gx-ui-primary, #9a6426);
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
}

.pillar-values {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 12px;
  line-height: 1.3;
}

.pillar-values span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.pillar-values small {
  color: var(--gx-ui-muted, #9a8a78);
  font-size: 11px;
  line-height: 1.2;
}

.pillar-values b {
  color: var(--gx-ui-text, #2f2a24);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.pillar-values i {
  color: rgba(var(--gx-ui-primary-rgb, 154, 138, 120), 0.7);
  font-style: normal;
}

.pillar-card small {
  display: block;
  margin-top: 8px;
  color: var(--gx-ui-muted, #9a8a78);
  font-size: 12px;
  line-height: 1.45;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-row span,
.reason-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--gx-ui-surface, #fff8ee);
  color: var(--gx-ui-primary, #8a5a22);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.element-bars {
  display: grid;
  margin-top: 12px;
}

.energy-section {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  padding: 18px;
}

.energy-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.wuxing-composition-card {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
}

.wuxing-donut-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(96px, 0.85fr);
  width: min(100%, 430px);
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.wuxing-donut-chart {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
  justify-self: end;
  isolation: isolate;
}

.wuxing-donut {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wuxing-donut-track,
.wuxing-donut-segment {
  fill: none;
  stroke-width: 34.8;
}

.wuxing-donut-track {
  stroke: rgba(255, 255, 255, 0.42);
}

.wuxing-donut-segment {
  animation: donutReveal 680ms ease-out both;
  stroke-linecap: butt;
  transform-box: view-box;
  transform-origin: center;
}

.wuxing-donut-surface {
  filter: drop-shadow(0 2px 4px rgba(23, 42, 19, 0.08));
}

.wuxing-donut-edge {
  fill: none;
  stroke: rgba(23, 42, 19, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.wuxing-donut-value-label {
  fill: #241d18;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 2.4px;
  paint-order: stroke fill;
  font-family: var(--gx-songti-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.wuxing-donut-value-label.is-narrow {
  font-size: 7.5px;
  stroke-width: 2px;
}

.wuxing-donut-segment-fire {
  animation-delay: 70ms;
}

.wuxing-donut-segment-earth {
  animation-delay: 140ms;
}

.wuxing-donut-segment-metal {
  animation-delay: 210ms;
}

.wuxing-donut-segment-water {
  animation-delay: 280ms;
}

.wuxing-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 38%;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
}

.wuxing-donut-center strong {
  color: var(--gx-ui-text, #172a13);
  font-family: var(--gx-songti-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

.wuxing-donut-center span {
  color: var(--gx-ui-muted, #6a625c);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.2;
}

.wuxing-donut-legend {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  pointer-events: none;
}

.wuxing-donut-legend-item {
  --element-color: #b98555;
  --element-bg: rgba(185, 133, 85, 0.14);
  --element-border: rgba(185, 133, 85, 0.24);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-height: 24px;
  animation: elementFade 760ms ease-out both;
  border: 1px solid var(--element-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--element-bg) 40%, #fff);
  box-shadow: 0 4px 12px rgba(var(--gx-ui-shadow-rgb, 23, 42, 19), 0.06);
  color: var(--gx-ui-text, #241d18);
  font-size: 11px;
  padding: 3px 5px;
  text-align: center;
  white-space: nowrap;
}

.wuxing-donut-icon {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
  border: 1px solid var(--element-border);
  border-radius: 50%;
  background: var(--element-bg);
  color: var(--element-color);
}

.wuxing-donut-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.wuxing-donut-legend-item b {
  color: var(--element-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wuxing-donut-legend-item strong {
  color: var(--gx-ui-text, #241d18);
  font-size: 11px;
  line-height: 1;
}

.wuxing-donut-legend-item small {
  color: var(--gx-ui-muted, #6f675f);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.wuxing-donut-legend-item.is-overactive small {
  border-radius: 999px;
  background: var(--gx-ui-soft, rgba(214, 111, 92, 0.10));
  color: var(--gx-ui-error, #b85a48);
  padding: 1px 4px;
}

.wuxing-donut-legend-item i {
  color: rgba(var(--gx-ui-primary-rgb, 58, 48, 40), 0.34);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.wuxing-donut-legend-item.is-strong .wuxing-donut-icon {
  box-shadow: 0 0 16px color-mix(in srgb, var(--element-color) 18%, transparent);
}

.wuxing-donut-legend-item.is-weak .wuxing-donut-icon {
  box-shadow: 0 0 14px color-mix(in srgb, var(--element-color) 12%, transparent);
}

@media (max-width: 400px) {
  .wuxing-donut-layout {
    grid-template-columns: minmax(0, 1.62fr) minmax(92px, 0.88fr);
    gap: 8px;
  }

  .wuxing-donut-legend-item {
    gap: 1px;
    min-height: 20px;
    padding: 2px 3px;
  }

  .wuxing-donut-icon {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .wuxing-donut-icon svg {
    width: 7px;
    height: 7px;
  }

  .wuxing-donut-legend-item b,
  .wuxing-donut-legend-item strong {
    font-size: 9px;
  }

  .wuxing-donut-legend-item small,
  .wuxing-donut-legend-item i {
    font-size: 8px;
  }

  .wuxing-donut-legend-item.is-overactive small {
    padding-right: 2px;
    padding-left: 2px;
  }
}

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

.energy-rule {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.10));
  border-radius: 12px;
  background: var(--gx-ui-soft, rgba(185, 133, 62, 0.08));
  color: var(--gx-ui-primary, #8a5a22);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.energy-focus-panel h3 {
  color: var(--gx-ui-text, #241d18);
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 0;
}

.energy-focus-bars {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  padding: 2px 10px;
}

.energy-focus-group {
  display: grid;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.08));
}

.energy-focus-group:last-child {
  border-bottom: 0;
}

.energy-focus-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.focus-type {
  color: var(--gx-ui-primary, #9a6426);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.focus-hint {
  color: rgba(var(--gx-ui-primary-rgb, 58, 48, 40), 0.55);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.energy-focus-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.energy-focus-items[data-item-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.energy-focus-items[data-item-count="3"] .bar-meta {
  gap: 3px;
}

.energy-focus-items[data-item-count="3"] .element-symbol {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.energy-focus-items[data-item-count="3"] .element-symbol svg {
  width: 11px;
  height: 11px;
}

.energy-focus-items[data-item-count="3"] .bar-name,
.energy-focus-items[data-item-count="3"] .bar-value {
  font-size: 12px;
}

.energy-focus-items[data-item-count="3"] .bar-label {
  flex: 0 0 auto;
  padding: 1px 4px;
  font-size: 10px;
  white-space: nowrap;
}

.energy-bar-item {
  --element-color: #c9a45c;
  --element-bg: rgba(201, 164, 92, 0.14);
  --element-border: rgba(201, 164, 92, 0.22);
  display: grid;
  gap: 6px;
}

.bar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.element-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--element-border);
  border-radius: 999px;
  background: var(--element-bg);
  color: var(--element-color);
}

.element-symbol svg {
  display: block;
  width: 13px;
  height: 13px;
}

.element-symbol svg path,
.element-symbol svg circle,
.element-symbol svg line,
.element-symbol svg polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-name {
  color: var(--gx-ui-text, #2f2924);
  font-size: 14px;
  font-weight: 800;
}

.bar-value {
  color: var(--gx-ui-text, #2f2924);
  font-size: 13px;
  font-weight: 800;
}

.bar-label {
  border-radius: 999px;
  border: 1px solid var(--element-border);
  background: var(--element-bg);
  color: var(--element-color);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.bar-label.is-overactive {
  border-color: var(--gx-ui-border, rgba(214, 111, 92, 0.16));
  background: var(--gx-ui-soft, rgba(214, 111, 92, 0.10));
  color: var(--gx-ui-error, #b85a48);
}

.energy-bar-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--element-bg);
}

.energy-bar-fill {
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: 999px;
  animation: gxEnergyBarGrow 0.9s ease-out forwards;
  background: var(--element-color);
}

.energy-focus-empty {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--gx-ui-muted, #9a8a78);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

@keyframes gxEnergyBarGrow {
  from {
    width: 0;
    opacity: 0.45;
  }

  to {
    width: var(--bar-width);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .energy-bar-fill {
    width: var(--bar-width);
    animation: none;
  }
}

.match-card,
.stone-card {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 15px;
}

.interpretation-card {
  position: relative;
  padding-left: 46px;
  box-shadow: none;
}

.interpretation-icon {
  position: absolute;
  left: 15px;
  top: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--gx-ui-surface, #fff8ee);
  color: var(--gx-ui-primary, #b9853e);
  font-size: 12px;
}

.match-card h3,
.stone-card h3 {
  color: var(--gx-ui-text, #241d18);
  font-size: 17px;
  line-height: 1.35;
}

.match-card strong,
.stone-meta {
  display: block;
  margin-top: 4px;
  color: var(--gx-ui-primary, #8a5a22);
  font-size: 12px;
}

.match-card p,
.stone-card p {
  margin-top: 8px;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 13px;
  line-height: 1.65;
}

.wish-companion-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.wish-chip,
.wish-companion-main,
.wish-companion-stone {
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  padding: 13px;
}

.wish-chip span,
.wish-companion-main span,
.wish-companion-stone span {
  display: block;
  margin-bottom: 5px;
  color: var(--gx-ui-primary, #9a6426);
  font-size: 12px;
  font-weight: 700;
}

.wish-chip strong,
.wish-companion-stone strong {
  display: block;
  color: var(--gx-ui-text, #241d18);
  font-size: 16px;
  line-height: 1.35;
}

.wish-chip small {
  display: block;
  margin-top: 4px;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 12px;
  line-height: 1.45;
}

.wish-companion-main h3 {
  color: var(--gx-ui-text, #241d18);
  font-size: 18px;
  line-height: 1.4;
}

.wish-companion-main p,
.wish-companion-stone p {
  margin-top: 8px;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 13px;
  line-height: 1.7;
}

.companion-copy-wrap {
  display: grid;
  justify-items: start;
}

.companion-copy-toggle {
  appearance: none;
  margin: 4px 0 0;
  border: 0;
  background: transparent;
  color: var(--gx-ui-primary, #b9853e);
  padding: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
  cursor: pointer;
}

.companion-copy-toggle[hidden] {
  display: none;
}

.report-note {
  display: block;
  margin-top: 9px;
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  color: var(--gx-ui-muted, #8a7a68);
  padding-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.wuxing-interpretation-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

.result-body [data-wuxing-interpretation-section] .wuxing-interpretation-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-body [data-wuxing-interpretation-section] .wuxing-interpretation-heading h2 {
  flex: none;
  margin: 0;
}

.result-body [data-wuxing-interpretation-section] .wuxing-supplement-pills {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.result-body [data-wuxing-interpretation-section] .wuxing-supplement-pills[hidden] {
  display: none;
}

.result-body [data-wuxing-interpretation-section] .wuxing-supplement-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.3));
  border-radius: 999px;
  background: var(--gx-ui-surface, #fff8ee);
  color: var(--report-action-color);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 389px) {
  .result-body [data-wuxing-interpretation-section] .wuxing-interpretation-heading {
    gap: 7px;
  }

  .result-body [data-wuxing-interpretation-section] .wuxing-supplement-pills {
    gap: 3px;
  }

  .result-body [data-wuxing-interpretation-section] .wuxing-supplement-pill {
    padding-inline: 6px;
    font-size: 10px;
  }
}

.wuxing-interpretation-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  padding: 15px 0;
}

.wuxing-interpretation-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.wuxing-interpretation-item:last-child {
  padding-bottom: 0;
}

.wuxing-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--gx-ui-surface, #fff8ee);
  color: var(--gx-ui-primary, #b9853e);
  font-size: 11px;
  font-weight: 900;
}

.wuxing-interpretation-item h3 {
  color: var(--gx-ui-primary, #8a5a22);
  font-size: 15px;
  line-height: 1.35;
}

.wuxing-section-meta {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--gx-ui-surface, #fff8ee);
  color: var(--gx-ui-primary, #9a6426);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.wuxing-interpretation-item p,
.wuxing-interpretation-item li {
  margin-top: 6px;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.7;
}

.wuxing-interpretation-item ul {
  display: grid;
  gap: 5px;
  padding-left: 17px;
}

.result-body [data-wuxing-interpretation-section] .wuxing-interpretation-list {
  gap: 0;
  margin-top: 8px;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-card,
.result-body [data-wuxing-interpretation-section] .report-analysis-card:first-child,
.result-body [data-wuxing-interpretation-section] .report-analysis-card:last-child {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 0;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-card:last-child {
  border-bottom: 0;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-heading {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-heading-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-title {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-toggle {
  appearance: none;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--report-action-color);
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-toggle:focus-visible {
  outline: 2px solid var(--gx-ui-focus, rgba(185, 133, 62, 0.42));
  outline-offset: 3px;
}

/* Report title remains centered independently of the restart action. */
.result-body .result-header-restart,
.result-body .result-kicker,
.result-body .result-title-desktop {
  display: none;
}

.result-body .result-hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 18px;
}

.result-body .result-heading-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 0;
}

.result-body .result-title-mobile {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  margin: 0;
}

.result-body .result-restart-button {
  grid-column: 3;
  justify-self: end;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--report-action-color);
  padding: 0 14px;
  box-shadow: none;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-summary {
  min-width: 0;
  margin-top: 7px;
  padding-left: 0;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-summary .wuxing-section-meta {
  max-width: 100%;
  margin-top: 0;
  line-height: 1.45;
  white-space: normal;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-detail {
  margin-top: 10px;
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  padding: 10px 0 0 37px;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-detail[hidden] {
  display: none;
}

.result-body [data-wuxing-interpretation-section] .report-analysis-detail-copy {
  margin: 0;
}

.result-body [data-wuxing-interpretation-section] .energy-context-detail {
  display: grid;
  min-width: 0;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection {
  min-width: 0;
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  padding: 12px 0;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection:first-child {
  border-top: 0;
  padding-top: 0;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection:last-child {
  padding-bottom: 0;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection p {
  margin: 0;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.result-body [data-wuxing-interpretation-section] .energy-context-subsection p + p {
  margin-top: 8px;
}

.result-body [data-wuxing-interpretation-section] .judgement-basis-detail {
  display: grid;
  gap: 10px;
}

.result-body [data-wuxing-interpretation-section] .judgement-basis-detail p {
  margin: 0;
  color: var(--gx-ui-muted, #756b61);
  font-size: 12px;
  line-height: 1.8;
}

.result-body [data-wuxing-interpretation-section] .daily-reflection-detail {
  display: grid;
  gap: 10px;
}

.result-body [data-wuxing-interpretation-section] .daily-reflection-detail p {
  margin: 0;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.result-body [data-wuxing-interpretation-section] .life-reading-detail {
  display: grid;
  gap: 0;
}

.result-body [data-wuxing-interpretation-section] .life-reading-intro {
  margin: 0 0 4px;
  color: var(--gx-ui-muted, #756b61);
  font-size: 12px;
  line-height: 1.7;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension {
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.12));
  padding: 12px 0;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension:first-of-type {
  border-top: 0;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension:last-child {
  padding-bottom: 0;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension p {
  margin: 0;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.75;
}

.result-body [data-wuxing-interpretation-section] .life-reading-dimension p + p {
  margin-top: 6px;
}

.result-body [data-wuxing-interpretation-section] .life-reading-guidance span {
  display: inline;
  margin-right: 6px;
  color: var(--report-action-color);
  font-size: 12px;
  font-weight: 700;
}

@keyframes donutReveal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes elementFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes weakPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  65% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wuxing-donut-segment,
  .wuxing-donut-legend-item {
    animation: none !important;
  }
}

.suggestion-list {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding-left: 18px;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 13px;
  line-height: 1.65;
}

.stone-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(var(--gx-ui-shadow-rgb, 80, 55, 30), 0.045);
}

.stone-card img {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: var(--gx-ui-surface, #fff8ee);
  object-fit: cover;
}

.stone-rank {
  display: inline-flex;
  min-width: 36px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gx-ui-primary, #c99745);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.stone-reason-panel {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  border-radius: 14px;
  background: var(--gx-ui-surface, rgba(255, 248, 238, 0.56));
  padding: 10px 11px;
}

.stone-reason-panel p {
  margin: 0;
  color: var(--gx-ui-muted, #5f574f);
  font-size: 13px;
  line-height: 1.62;
}

.stone-reason-panel span {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--gx-ui-soft, rgba(185, 133, 62, 0.1));
  color: var(--gx-ui-primary, #8a5a22);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.result-actions a,
.stone-card a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.expand-recommendations {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.32));
  border-radius: 999px;
  background: #fff;
  color: var(--gx-ui-primary, #8a5a22);
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.expand-recommendations[hidden] {
  display: none;
}

.result-primary,
.stone-card a {
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
}

.result-body .result-next-step {
  display: grid;
  align-items: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 20px 18px;
}

.result-body .result-next-step .result-next-eyebrow {
  margin: 0;
  color: var(--gx-ui-primary, #9a6426);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.result-body .result-next-step h2 {
  margin: 6px 0 0;
  font-size: 22px;
}

.result-body .result-next-step .result-next-copy {
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--gx-ui-muted, #6f675f);
  font-size: 13px;
  line-height: 1.65;
}

.result-body .result-next-step .result-actions {
  width: 100%;
  margin-top: 0;
}

.result-body .result-next-step .result-primary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  min-height: 52px;
  align-items: center;
  border-radius: 16px;
  background: var(--gx-ui-primary, #b9853e);
  color: #fff;
  padding: 0 18px;
  text-align: center;
}

.result-body .result-next-step .result-primary-arrow {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

@media (min-width: 768px) {
  .result-body .result-shell {
    width: min(calc(100% - 48px), 900px);
  }

  .result-body .result-header {
    padding-inline: 28px;
  }

  .result-body .result-main {
    gap: 18px;
    padding: 24px 28px 52px;
  }

  .result-body .energy-report-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .result-body .result-next-step {
    justify-items: center;
    padding: 24px;
    text-align: center;
  }

  .result-body .result-next-step > h2,
  .result-body .result-next-step > p,
  .result-body .result-next-step .result-actions {
    width: min(100%, 620px);
  }
}

.result-secondary {
  border: 1px solid var(--gx-ui-border, rgba(22, 192, 96, 0.72));
  background: #fff;
  color: var(--gx-ui-primary, #0a9d48);
}

.empty-result {
  margin: 24px 20px;
  text-align: center;
}

.empty-result a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gx-ui-primary, #d6a24a), var(--gx-ui-primary, #9b651e));
  color: #fff;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 767px) {
  .hero {
    --hero-mobile-controls-bottom: 14px;
    --hero-mobile-copy-bottom: 86px;
  }

  body[data-page-id="home"] .header-actions {
    display: none;
  }

  body[data-page-id="inspiration_home"] .header-actions,
  body[data-page-id="cart"] .header-actions,
  body[data-page-id="my_home"] .header-actions {
    display: none;
  }

  body[data-page-id="home"] .fixed-cta {
    display: none;
  }

  .anchor-nav {
    border-top: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }

  .anchor-nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: inherit;
  }

  .anchor-nav .is-active::after {
    left: 50%;
    right: auto;
    width: 28px;
    transform: translateX(-50%);
  }

  body[data-page-id="home"] .hero-copy {
    background: transparent;
    box-shadow: none;
    filter: none;
    backdrop-filter: none;
  }

  body[data-page-id="home"] .hero-copy::before,
  body[data-page-id="home"] .hero-copy::after {
    content: none;
    display: none;
  }

  body[data-page-id="home"] .hero-copy,
  body[data-page-id="home"] .hero-copy * {
    box-shadow: none;
    text-shadow: none;
    filter: none;
  }

  body[data-page-id="home"] .hero-slide:first-child .hero-copy {
    top: auto;
    bottom: var(--hero-mobile-copy-bottom);
    margin-top: 0;
  }

  body[data-page-id="home"] .process-section .section-heading .eyebrow {
    font-size: 14px;
    line-height: 20.8px;
    text-shadow: none;
    filter: none;
  }

  body[data-page-id="home"] .process-section .section-heading .eyebrow::before,
  body[data-page-id="home"] .process-section .section-heading .eyebrow::after {
    text-shadow: none;
    filter: none;
  }

  .hero-bottom-controls {
    position: absolute;
    left: 20px;
    right: 22px;
    bottom: var(--hero-mobile-controls-bottom);
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .hero-bottom-controls > .hero-actions,
  .hero-bottom-controls > .hero-dots {
    position: static;
    inset: auto;
    transform: none;
    margin: 0;
    pointer-events: auto;
  }

  .hero-bottom-controls > .hero-actions {
    margin-top: 0;
  }

  .result-body .result-header-restart,
  .result-body .result-kicker,
  .result-body .result-title-desktop,
  .result-body .result-hero > p:not(.result-kicker) {
    display: none;
  }

  .result-body .result-hero {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: 0;
    padding: 0 18px;
  }

  .result-body .result-heading-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .result-body .result-title-mobile {
    min-width: 0;
    margin: 0;
  }

  .result-body .result-restart-button {
    flex: 0 0 auto;
  }

  .result-body .element-chart-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .result-body .element-chart-heading h2 {
    min-width: 0;
  }

  .result-body .element-benchmark-trigger {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .result-body .energy-section .energy-rule {
    display: none;
  }

  .result-body .wish-companion-section > p,
  .result-body .wish-companion-chips {
    display: none;
  }

  .result-body .wish-companion-block {
    gap: 0;
    margin-top: 12px;
  }

  .result-body .wish-companion-main {
    margin: 0;
  }

  .companion-copy.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .companion-copy.is-expanded {
    overflow: visible;
  }

  .five-element-copy-wrap {
    display: grid;
    justify-items: start;
  }

  .five-element-copy.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .five-element-copy.is-expanded {
    overflow: visible;
  }

  .five-element-copy-toggle {
    appearance: none;
    margin: 4px 0 0;
    border: 0;
    background: transparent;
    color: var(--gx-ui-primary, #b9853e);
    padding: 0;
    font: inherit;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 800;
    cursor: pointer;
  }

  .five-element-copy-toggle[hidden] {
    display: none;
  }
}

@media (max-width: 404px) {
  .wish-companion-chips {
    grid-template-columns: 1fr;
  }

  .header-main {
    padding-inline: 18px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 21px;
  }

  .mini-cta {
    padding-inline: 13px;
    font-size: 13px;
  }

  .anchor-nav {
    padding-left: 12px;
    padding-right: 12px;
    gap: 0;
  }

  .hero-copy {
    width: 90%;
    padding-left: 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .core-system h2 span {
    display: none;
  }

  .hero .primary-action,
  .hero .secondary-action {
    min-width: 128px;
    padding-inline: 14px;
  }

  .core-system {
    margin-inline: 20px;
  }

  .step-icon {
    width: 52px;
    height: 52px;
  }

  .step-icon svg {
    width: 25px;
    height: 25px;
  }

  .step-title {
    font-size: 12px;
  }

  .inspiration-card a {
    font-size: 14px;
  }

}

/* Final report heading layout: keep later responsive rules from shifting the title. */
.result-body .result-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px auto 14px auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0;
  padding-right: 0;
}

.result-body .result-title-mobile {
  grid-column: 3;
  justify-self: center;
  white-space: nowrap;
}

.result-body .result-restart-button {
  grid-column: 5;
  justify-self: start;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-radius: 19px;
  background: transparent;
  color: var(--report-action-color);
  padding: 0 14.5px;
  box-shadow: none;
  white-space: nowrap;
}

.result-body .result-hero {
  padding-bottom: 4px;
}

.result-body .result-main {
  padding-top: 0;
}

@media (max-width: 767px) {
  .result-body .result-hero {
    width: calc(100% + 40px);
    justify-self: center;
    padding-inline: 0;
  }
}

.result-body .result-five-status > h2,
.result-body .five-status-conclusion h3,
.result-body .energy-focus-panel h3 {
  font-family: "Noto Serif TC", "Songti TC", serif;
}

.result-body .result-overview-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.16));
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
  padding: 16px 18px 17px;
}

.result-body .result-overview-card > .result-analysis-basis,
.result-body .result-overview-card > .result-five-status {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.result-body .result-overview-card > .result-five-status {
  margin-top: 15px;
  border-top: 1px solid var(--gx-ui-border, rgba(185, 133, 62, 0.14));
  padding-top: 17px;
}

/* Report content sits directly on the page instead of inside large outer cards. */
.result-body .result-main {
  gap: 6px;
  padding-right: 14px;
  padding-bottom: 32px;
  padding-left: 14px;
}

.result-body .result-overview-card,
.result-body .energy-section,
.result-body .result-interpretation {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-body .result-overview-card {
  padding: 2px 4px 0;
}

.result-body .energy-section,
.result-body .result-interpretation {
  padding: 8px 4px;
}

.result-body .result-next-step {
  padding-right: 4px;
  padding-left: 4px;
}

@media (max-width: 767px) {
  .result-body .result-shell {
    width: min(100%, 480px);
  }

  .result-body .result-hero {
    width: calc(100% + 28px);
  }
}

/* Keep the report restart action in the page's upper-right corner. */
.result-body .result-header {
  align-items: flex-start;
  padding: 14px 18px 10px;
}

.result-body .result-header-restart {
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  min-height: 38px;
  margin-top: 2px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--report-action-color);
  padding: 0 14px;
  box-shadow: none;
  white-space: nowrap;
}

.result-body .result-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-body .result-title-mobile {
  flex: 0 1 auto;
  margin: 0;
  text-align: center;
}

.result-body .result-restart-button {
  display: none;
}

.process-section .step-title {
  font-size: 12px;
  white-space: nowrap;
}
/* Inspiration placeholder page */
.inspiration-page {
  min-height: calc(100vh - 120px);
  padding: 42px 20px 110px;
  background:
    radial-gradient(circle at 92% 6%, var(--gx-ui-soft, rgba(192, 135, 55, 0.16)), transparent 28%),
    linear-gradient(180deg, var(--gx-ui-surface, #fbf7f0) 0%, var(--gx-ui-surface, #fffdf9) 48%, var(--gx-ui-soft, #f6f1e8) 100%);
  color: var(--gx-ui-text, #2d261f);
}

.inspiration-library {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.inspiration-loading,
.inspiration-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px dashed var(--gx-ui-border, #d7c4aa);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--gx-ui-muted, #817366);
  text-align: center;
}

.inspiration-loading span {
  width: 34px;
  height: 34px;
  border: 2px solid var(--gx-ui-border, #e5d5bf);
  border-top-color: var(--gx-ui-primary, #9f6c2c);
  border-radius: 50%;
  animation: inspiration-spin 0.9s linear infinite;
}

.inspiration-empty strong {
  color: var(--gx-ui-text, #332a22);
  font-family: "Noto Serif TC", serif;
  font-size: 22px;
}

.inspiration-empty a,
.inspiration-empty button {
  margin-top: 16px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gx-ui-primary, #9c6828);
  color: #fff;
  text-decoration: none;
}

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

@media (max-width: 767px) {
  .inspiration-page {
    padding: 22px 14px 90px;
  }

  .inspiration-library {
    grid-template-columns: 1fr;
  }

}

/* Final customer acceptance: global customer navigation and carousel controls stay tappable. */
.menu-toggle {
  width: 44px;
  height: 44px;
}

.anchor-nav {
  min-height: 44px;
  height: 44px;
}

.anchor-nav a,
.mini-cta {
  min-width: 44px;
  min-height: 44px;
}

/* Baseline merge: production home navigation, assurance card, and guide modal. */
.home-core-art--free {
  filter: none;
}

body[data-page-id="home"] {
  --home-page: var(--gx-ui-page, #f6f2ea);
  --home-surface: var(--gx-ui-surface, #fffdf9);
  --home-ivory: var(--gx-ui-soft, #ebe4d6);
  --home-soft-green: var(--gx-ui-primary, #bdcfa2);
  --home-pale-green: var(--gx-ui-soft, #e7eedd);
  --home-deep-green: var(--gx-ui-primary-hover, #6f8459);
  --home-deep-green-hover: var(--gx-ui-primary-hover, #5f734b);
  --home-apricot: var(--gx-ui-primary, #ddb480);
  --home-gold: var(--gx-ui-primary, #a96f31);
  --home-text: var(--gx-ui-text, #33362f);
  --home-muted: var(--gx-ui-muted, #747568);
  --home-border: var(--gx-ui-border, #dedacf);
  background: var(--home-page);
  color: var(--home-text);
  padding-bottom: 0;
}

body[data-page-id="home"] .page-shell {
  background: var(--home-surface);
  box-shadow: 0 0 0 1px rgba(var(--gx-ui-shadow-rgb, 111, 132, 89), 0.16);
}

body[data-page-id="home"] .site-header,
body[data-page-id="home"] .anchor-nav,
body[data-page-id="home"] .mobile-menu {
  border-color: var(--home-border);
  background: var(--home-surface);
}

body[data-page-id="home"] .brand strong,
body[data-page-id="home"] .brand small,
body[data-page-id="home"] .anchor-nav,
body[data-page-id="home"] .menu-toggle {
  color: var(--home-text);
}

body[data-page-id="home"] .mini-cta,
body[data-page-id="home"] .hero .primary-action,
body[data-page-id="home"] .fixed-primary {
  background: var(--home-deep-green);
  box-shadow: 0 8px 18px rgba(var(--gx-ui-shadow-rgb, 95, 115, 75), 0.2);
}

body[data-page-id="home"] .mini-cta:hover,
body[data-page-id="home"] .mini-cta:focus-visible,
body[data-page-id="home"] .hero .primary-action:hover,
body[data-page-id="home"] .hero .primary-action:focus-visible,
body[data-page-id="home"] .fixed-primary:hover,
body[data-page-id="home"] .fixed-primary:focus-visible {
  background: var(--home-deep-green-hover);
}

body[data-page-id="home"] .menu-toggle {
  border-color: var(--gx-ui-border, rgba(221, 180, 128, 0.82));
  background: var(--home-surface);
}

body[data-page-id="home"] .menu-toggle span {
  background: var(--home-text);
}

body[data-page-id="home"] .hero,
body[data-page-id="home"] .core-system {
  border-color: var(--home-border);
  background: var(--home-surface);
}

body[data-page-id="home"] .hero {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

body[data-page-id="home"] .hero-copy {
  background: transparent;
}

body[data-page-id="home"] .hero-copy .eyebrow {
  color: #ffffff;
}

body[data-page-id="home"] .hero .secondary-action,
body[data-page-id="home"] .fixed-contact {
  border-color: var(--gx-ui-border, rgba(111, 132, 89, 0.48));
  background: var(--gx-ui-surface, rgba(255, 253, 249, 0.9));
  color: var(--gx-ui-muted, #445239);
  box-shadow: 0 7px 18px rgba(var(--gx-ui-shadow-rgb, 42, 55, 39), 0.12);
}

body[data-page-id="home"] .hero-dots {
  border-color: var(--gx-ui-border, rgba(111, 132, 89, 0.2));
  background: var(--gx-ui-surface, rgba(255, 253, 249, 0.78));
  box-shadow: 0 8px 20px rgba(var(--gx-ui-shadow-rgb, 42, 55, 39), 0.12);
}

body[data-page-id="home"] .hero-dots button {
  background: rgba(var(--gx-ui-text-rgb, 111, 132, 89), 0.38);
}

body[data-page-id="home"] .hero-dots .is-active {
  background: var(--home-deep-green);
}

body[data-page-id="home"] .core-system h2,
body[data-page-id="home"] .core-grid h3,
body[data-page-id="home"] .price {
  color: var(--home-text);
}

body[data-page-id="home"] .core-system h2 span,
body[data-page-id="home"] .section-heading .eyebrow,
body[data-page-id="home"] .state-tag {
  color: var(--home-deep-green);
}

body[data-page-id="home"] :is(.core-grid.core-grid--two, .core-grid.core-grid--three) article img {
  width: 54px;
  height: 54px;
  box-sizing: content-box;
  border-radius: 50%;
  background: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  padding: 9px;
}

body[data-page-id="home"] .process-section {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-id="home"] .step-icon {
  border-color: transparent;
  background: transparent;
}

body[data-page-id="home"] .step-icon svg {
  stroke: var(--home-deep-green);
}

body[data-page-id="home"] .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(50% + 31px);
  z-index: 0;
  width: calc(100% - 58px);
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gx-ui-soft, rgba(111, 132, 89, 0.24)), rgba(var(--gx-ui-text-rgb, 111, 132, 89), 0.76));
}

body[data-page-id="home"] .process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21.5px;
  left: calc(150% - 31px);
  z-index: 2;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--home-deep-green);
  border-right: 1.5px solid var(--home-deep-green);
  transform: rotate(45deg);
}

body[data-page-id="home"] .step-title {
  color: var(--home-text);
}

body[data-page-id="home"] .inspiration-card {
  border-color: var(--gx-ui-border, rgba(111, 132, 89, 0.18));
  background: var(--home-surface);
  box-shadow: 0 9px 24px rgba(var(--gx-ui-shadow-rgb, 68, 82, 57), 0.1);
}

body[data-page-id="home"] .story-text {
  color: var(--home-muted);
}

body[data-page-id="home"] .crystal-text {
  color: var(--gx-ui-muted, #85877c);
}

body[data-page-id="home"] .inspiration-card a {
  border-color: var(--gx-ui-border, rgba(111, 132, 89, 0.68));
  background: var(--home-surface);
  color: var(--home-deep-green);
}

body[data-page-id="home"] .fixed-cta,
body[data-page-id="home"] .contact-float,
body[data-page-id="home"] .header-actions {
  display: none;
}

.home-floating-nav {
  display: none;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: grid;
  width: min(calc(100% - 24px), 406px);
  min-height: 62px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  margin-inline: auto;
  border: 1px solid var(--home-deep-green, var(--gx-ui-primary, #4c6331));
  border-radius: 18px;
  background: var(--home-deep-green, var(--gx-ui-primary, #4c6331));
  box-shadow: 0 10px 26px rgba(var(--gx-ui-shadow-rgb, 68, 82, 57), 0.22);
  padding: 6px 5px 5px;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 180ms ease, visibility 0s linear 0s;
  will-change: transform, opacity;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 180ms ease, visibility 0s linear 220ms;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 50px;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 1px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transform: translateX(50%);
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a.is-active,
body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a.is-active::after,
body:is(
  [data-page-id="home"],
  [data-page-id="inspiration_home"],
  [data-page-id="cart"],
  [data-page-id="my_home"]
) .home-floating-nav a[aria-current="page"]::after {
  background: #ffffff;
}

/* Keep mobile and tablet carousel pagination easy to tap without rendering 44px dots. */
@media (max-width: 1024px) {
  body[data-page-id="home"] .hero-dots {
    align-items: center;
    gap: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    /* Keep the anchored right dot in place while compacting the two dots before it. */
    padding: 0 10px 0 0;
    backdrop-filter: none;
  }

  body[data-page-id="home"] .hero-dots button {
    --hero-dot-shift-x: 0px;
    position: relative;
    width: 24px;
    min-width: 24px !important;
    height: 44px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    touch-action: manipulation;
    transform: translateX(var(--hero-dot-shift-x));
    z-index: 1;
  }

  body[data-page-id="home"] .hero-dots button:nth-child(1) {
    --hero-dot-shift-x: 20px;
    z-index: 3;
  }

  body[data-page-id="home"] .hero-dots button:nth-child(2) {
    --hero-dot-shift-x: 10px;
    z-index: 2;
  }

  body[data-page-id="home"] .hero-dots button.is-active {
    background: transparent;
  }

  body[data-page-id="home"] .hero-dots button::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gx-ui-surface, rgba(255, 253, 249, 0.82));
    box-shadow: 0 1px 4px rgba(var(--gx-ui-shadow-rgb, 18, 24, 15), 0.42);
    opacity: 1;
    transform: scale(1);
    transition:
      transform 180ms ease,
      background-color 180ms ease,
      opacity 180ms ease,
      box-shadow 180ms ease;
  }

  body[data-page-id="home"] .hero-dots button.is-active::before {
    background: var(--home-deep-green);
    box-shadow:
      0 1px 5px rgba(var(--gx-ui-shadow-rgb, 18, 24, 15), 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.32);
    opacity: 1;
    transform: scale(1);
  }

  body[data-page-id="home"] .hero-dots button:focus-visible {
    outline: none;
  }

  body[data-page-id="home"] .hero-dots button:focus-visible::before {
    box-shadow:
      0 1px 5px rgba(var(--gx-ui-primary-rgb, 18, 24, 15), 0.5),
      0 0 0 3px rgba(var(--gx-ui-primary-rgb, 255, 253, 249), 0.5);
  }
}

@media (max-width: 767px) {
  body[data-page-id="home"] .hero-bottom-controls {
    gap: 8px;
  }

  body[data-page-id="home"] .hero-bottom-controls > .hero-actions {
    min-width: 0;
    flex: 1 1 auto;
  }

  body[data-page-id="home"] .hero-bottom-controls > .hero-dots {
    flex: 0 0 auto;
  }
}

@media (max-width: 359px) {
  body[data-page-id="home"] .hero-bottom-controls > .hero-actions {
    gap: 8px;
  }

  body[data-page-id="home"] .hero .hero-actions .primary-action,
  body[data-page-id="home"] .hero .hero-actions .secondary-action {
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-id="home"] .hero-dots button::before {
    transition: none;
  }
}

/* Homepage core-system card: unified compact Product Design direction. */
body[data-page-id="home"] .feature-system {
  --feature-system-panel: var(--gx-ui-soft, #e6ebdd);
  --feature-system-title: var(--gx-ui-text, #2f4332);
  --feature-system-copy: var(--gx-ui-muted, #52634a);
  --feature-system-badge-border: var(--gx-ui-border, #95a686);
  --feature-system-intro-gold: var(--gx-ui-primary, #c9923e);
  --feature-system-green: var(--gx-ui-primary, #4f6545);
  --feature-system-gold: var(--gx-ui-primary, #c5892f);
  --feature-system-coral: var(--gx-ui-primary, #ad573f);
  --feature-system-violet: var(--gx-ui-primary, #6f6886);
  --feature-system-ink: var(--gx-ui-text, #292b27);
  --feature-system-muted: var(--gx-ui-muted, #74736c);
  --feature-system-line: var(--gx-ui-border, #e6dfd3);
  display: grid;
  gap: 0;
  margin: 14px var(--home-primary-card-gutter) 18px;
  overflow: hidden;
  border: 1px solid var(--gx-ui-border, #ded6c8);
  border-radius: 16px;
  background: var(--home-surface);
  text-align: left;
}

body[data-page-id="home"] .feature-system__intro {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: var(--feature-system-panel);
  color: var(--feature-system-title);
  padding: 12px 20px 13px;
  text-align: center;
}

body[data-page-id="home"] .feature-system__badge {
  display: flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  border: 1px solid var(--feature-system-badge-border);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--feature-system-copy);
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

body[data-page-id="home"] .feature-system__badge > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--feature-system-intro-gold);
}

body[data-page-id="home"] .feature-system__intro h2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  margin-top: 8px;
  color: var(--feature-system-title);
  font-size: var(--home-display-title-size, clamp(20px, 5.3vw, 23px));
  line-height: 1.2;
  letter-spacing: 0.01em;
}

body[data-page-id="home"] .feature-system__intro > i {
  display: block;
  width: 28px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--feature-system-intro-gold);
}

body[data-page-id="home"] .feature-system__promise {
  margin-top: 8px;
  color: var(--feature-system-copy);
  font-size: clamp(12px, 3.2vw, 13.5px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

body[data-page-id="home"] .feature-system__list {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--home-surface);
  padding: 0 18px;
  list-style: none;
}

body[data-page-id="home"] .feature-system__item {
  --feature-system-accent: var(--feature-system-green);
  display: grid;
  min-height: 72px;
  grid-template-columns: 38px 58px 40px 37px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 0;
  color: var(--feature-system-accent);
  padding: 8px 0;
}

body[data-page-id="home"] .feature-system__item + .feature-system__item {
  border-top: 1px solid var(--feature-system-line);
}

body[data-page-id="home"] .feature-system__item--collision {
  --feature-system-accent: var(--feature-system-gold);
}

body[data-page-id="home"] .feature-system__item--inspiration {
  --feature-system-accent: var(--feature-system-coral);
}

body[data-page-id="home"] .feature-system__item--color {
  --feature-system-accent: var(--feature-system-violet);
}

body[data-page-id="home"] .feature-system__item--samples {
  --feature-system-accent: var(--feature-system-ink);
}

body[data-page-id="home"] .feature-system__number {
  grid-column: 1;
  color: var(--feature-system-accent);
  font-size: clamp(25px, 7vw, 29px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

body[data-page-id="home"] .feature-system__icon,
body[data-page-id="home"] .feature-system__grip {
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body[data-page-id="home"] .feature-system__icon {
  grid-column: 3;
  justify-self: center;
  width: 40px;
  height: 40px;
}

body[data-page-id="home"] .feature-system__icon--wuxing {
  -webkit-mask-image: url("/gx-customer-assets/assets/icon-core-wuxing-line.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icon-core-wuxing-line.svg?v=2ae54e4d23ce4464899f");
}

body[data-page-id="home"] .feature-system__icon--collision {
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/feature-orbit-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/feature-orbit-lucide.svg?v=2ae54e4d23ce4464899f");
}

body[data-page-id="home"] .feature-system__icon--inspiration {
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/feature-package-open-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/feature-package-open-lucide.svg?v=2ae54e4d23ce4464899f");
}

body[data-page-id="home"] .feature-system__icon--color {
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/feature-swatch-book-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/feature-swatch-book-lucide.svg?v=2ae54e4d23ce4464899f");
}

body[data-page-id="home"] .feature-system__icon--samples {
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/feature-images-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/feature-images-lucide.svg?v=2ae54e4d23ce4464899f");
}

body[data-page-id="home"] .feature-system__copy {
  display: grid;
  grid-column: 5;
  min-width: 0;
  gap: 1px;
  color: var(--feature-system-ink);
}

body[data-page-id="home"] .feature-system__copy strong {
  overflow-wrap: anywhere;
  color: var(--feature-system-ink);
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

body[data-page-id="home"] .feature-system__copy small {
  color: var(--feature-system-muted);
  font-size: clamp(10.5px, 2.8vw, 12px);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

body[data-page-id="home"] .feature-system__grip {
  grid-column: 6;
  width: 20px;
  height: 20px;
  justify-self: end;
  color: var(--feature-system-accent);
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/feature-grip-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/feature-grip-lucide.svg?v=2ae54e4d23ce4464899f");
}

@media (max-width: 359px) {
  body[data-page-id="home"] .feature-system {
    margin-inline: var(--home-primary-card-gutter);
  }

  body[data-page-id="home"] .feature-system__intro {
    padding-inline: 17px;
  }

  body[data-page-id="home"] .feature-system__list {
    padding-inline: 14px;
  }

  body[data-page-id="home"] .feature-system__item {
    grid-template-columns: 34px 32px 36px 18px minmax(0, 1fr) 18px;
    gap: 0;
  }

  body[data-page-id="home"] .feature-system__icon {
    width: 36px;
    height: 36px;
  }

  body[data-page-id="home"] .feature-system__grip {
    width: 18px;
    height: 18px;
  }
}

/* Homepage process card: compact five-step flow matched to the approved preview. */
body[data-page-id="home"] {
  --home-display-title-size: clamp(20px, 5.3vw, 23px);
  --home-primary-card-gutter: 5px;
}

body[data-page-id="home"] .process-section {
  --home-surface: var(--gx-page-background, #fffdf9);
  margin: 18px var(--home-primary-card-gutter) 20px;
  padding: 22px 0 20px;
  border: 0;
  border-radius: 16px;
  background: var(--home-surface);
  box-shadow: none;
  overflow: visible;
  text-align: center;
}

body[data-page-id="home"] .process-section .process-heading {
  margin: 0;
}

body[data-page-id="home"] .process-section .process-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--home-deep-green);
  font-size: var(--home-display-title-size);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: none;
  filter: none;
}

body[data-page-id="home"] .process-title__mark {
  flex: 0 0 auto;
  font-size: 0.82em;
  line-height: 1;
}

body[data-page-id="home"] .process-flow-shell {
  margin-top: 14px;
}

body[data-page-id="home"] .process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 4px 0 0;
  overflow: visible;
  list-style: none;
}

body[data-page-id="home"] .process-step {
  position: relative;
  min-width: 0;
  overflow: visible;
  text-align: center;
}

body[data-page-id="home"] .process-section .step-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-id="home"] .process-section .step-icon :is(svg, img) {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: none;
  stroke: var(--home-deep-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-id="home"] .process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  right: -9px;
  left: auto;
  z-index: 2;
  width: 18px;
  height: 18px;
  background: var(--home-deep-green);
  -webkit-mask-image: url("/gx-customer-assets/assets/icons/process-arrow-right-lucide.svg?v=2ae54e4d23ce4464899f");
  mask-image: url("/gx-customer-assets/assets/icons/process-arrow-right-lucide.svg?v=2ae54e4d23ce4464899f");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body[data-page-id="home"] .process-step:not(:last-child)::before {
  content: none;
  display: none;
}

body[data-page-id="home"] .process-section .step-title {
  display: flex;
  min-height: 30px;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(10.5px, 2.56vw, 11px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 359px) {
  body[data-page-id="home"] .process-section {
    margin-inline: var(--home-primary-card-gutter);
    padding: 20px 0 18px;
  }

  body[data-page-id="home"] .process-section .process-title {
    gap: 8px;
  }

  body[data-page-id="home"] .process-flow-shell {
    margin-top: 12px;
  }

  body[data-page-id="home"] .process-section .step-icon {
    width: 36px;
    height: 40px;
    margin-bottom: 6px;
  }

  body[data-page-id="home"] .process-section .step-icon :is(svg, img) {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body[data-page-id="home"] .process-step:not(:last-child)::after {
    top: 12px;
    right: -7px;
    width: 14px;
    height: 14px;
  }

  body[data-page-id="home"] .process-section .step-title {
    min-height: 27px;
    padding-inline: 1px;
    font-size: 10.5px;
    line-height: 1.28;
    white-space: normal;
  }
}

/* Homepage process motion rail: progressive enhancement over the five-step grid. */
body[data-page-id="home"] .process-section[data-process-motion="rail-v1"] {
  min-height: 204px;
  box-sizing: border-box;
}

body[data-page-id="home"] .process-step__label,
body[data-page-id="home"] .process-step__copy,
body[data-page-id="home"] .process-progress {
  display: none;
}

body[data-page-id="home"] .process-step[data-process-loop-clone] {
  display: none;
}

body[data-page-id="home"] .process-section.is-motion-ready {
  position: relative;
  min-height: 204px;
  padding: 18px 0 14px;
  overflow: hidden;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-flow-shell {
  position: relative;
  height: 118px;
  margin-top: 10px;
  overflow: hidden;
  padding-left: 18px;
  text-align: left;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-flow-shell::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 253, 249, 0),
    var(--home-surface) 65%
  );
}

body[data-page-id="home"] .process-section.is-motion-ready .process-flow-shell::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  pointer-events: none;
  background: var(--home-surface);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-steps {
  position: relative;
  display: flex;
  width: max-content;
  grid-template-columns: none;
  gap: 12px;
  margin: 0;
  padding: 0 212px 0 0;
  overflow: visible;
  transform: translate3d(0, 0, 0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page-id="home"] .process-section[data-process-motion-state="running"] .process-steps {
  will-change: transform;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-steps.is-resetting {
  transition: none;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 29px;
  right: 218px;
  left: 23px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(var(--gx-ui-text-rgb, 111, 132, 89), 0.34) 0 5px,
    transparent 5px 10px
  );
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step,
body[data-page-id="home"] .process-section.is-motion-ready .process-step[data-process-loop-clone] {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 clamp(140px, 42vw, 164px);
  min-width: 0;
  overflow: visible;
  opacity: 0.56;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 320ms ease-out,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-past {
  opacity: 0.7;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active {
  opacity: 1;
  transform: translate3d(0, -2px, 0);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step::after {
  content: none;
  display: none;
}

body[data-page-id="home"] .process-section.is-motion-ready .step-icon {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-id="home"] .process-section.is-motion-ready .step-icon::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gx-ui-border, rgba(111, 132, 89, 0.34));
  border-radius: 50%;
  background: var(--home-surface);
  box-shadow: 0 0 0 rgba(49, 76, 37, 0);
  transform: scale(1);
  transition:
    border-color 320ms ease-out,
    background-color 320ms ease-out,
    box-shadow 420ms ease-out,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page-id="home"] .process-section.is-motion-ready .step-icon :is(svg, img) {
  position: relative;
  z-index: 1;
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  transition: filter 320ms ease-out, stroke 320ms ease-out;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-past .step-icon::before {
  border-color: var(--home-deep-green);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active .step-icon::before {
  border-color: var(--home-deep-green);
  background: var(--home-deep-green);
  box-shadow: none;
  transform: scale(1.17);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active .step-icon svg {
  stroke: var(--gx-ui-surface, #fffdf8);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active .step-icon img {
  filter: brightness(0) invert(1);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step__label {
  display: block;
  margin: 0 0 2px;
  color: var(--home-muted);
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.09em;
  transition: color 320ms ease-out;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active .process-step__label {
  color: var(--gx-ui-primary, #b87922);
}

body[data-page-id="home"] .process-section.is-motion-ready .step-title {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--home-muted);
  font-size: clamp(15px, 3.8vw, 16px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
  transition: color 320ms ease-out;
  text-align: left;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step.is-active .step-title {
  color: var(--home-text);
}

body[data-page-id="home"] .process-section.is-motion-ready .process-step__copy {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-progress {
  display: flex;
  height: 6px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-progress span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gx-ui-soft, rgba(111, 132, 89, 0.24));
  transition: width 320ms ease-out, background-color 320ms ease-out;
}

body[data-page-id="home"] .process-section.is-motion-ready .process-progress span.is-active {
  width: 20px;
  background: var(--home-deep-green);
}

@media (max-width: 359px) {
  body[data-page-id="home"] .process-section[data-process-motion="rail-v1"],
  body[data-page-id="home"] .process-section.is-motion-ready {
    min-height: 208px;
  }

  body[data-page-id="home"] .process-section.is-motion-ready {
    padding-top: 18px;
  }

  body[data-page-id="home"] .process-section.is-motion-ready .process-flow-shell {
    padding-left: 16px;
  }

  body[data-page-id="home"] .process-section.is-motion-ready .process-step,
  body[data-page-id="home"] .process-section.is-motion-ready .process-step[data-process-loop-clone] {
    flex-basis: 140px;
  }

  body[data-page-id="home"] .process-section.is-motion-ready .step-title {
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page-id="home"] .process-section .process-steps,
  body[data-page-id="home"] .process-section .process-step,
  body[data-page-id="home"] .process-section .step-icon::before,
  body[data-page-id="home"] .process-section .step-icon :is(svg, img),
  body[data-page-id="home"] .process-section .process-step__label,
  body[data-page-id="home"] .process-section .step-title,
  body[data-page-id="home"] .process-section .process-progress span {
    transition: none !important;
  }
}

/* Clear product grouping; selection changes paint without shifting the layout. */
body[data-page-id="cart"] .site-cart-item {
  border: 2px solid var(--gx-ui-primary, #4c6331);
  border-radius: 20px;
  background: var(--gx-ui-surface, #ffffff);
  box-shadow: 0 4px 12px rgba(44, 52, 35, 0.06);
}
body[data-page-id="cart"] .site-cart-item.is-selected {
  background: var(--gx-ui-soft, #e7eddf);
  box-shadow: 0 0 0 1px var(--gx-ui-primary, #4c6331), 0 4px 12px rgba(44, 52, 35, 0.08);
}
body.gx-app[data-page-id="cart"] .site-cart-page .site-cart-domain {
  gap: 14px;
}
body[data-page-id="cart"] .site-cart-list {
  scrollbar-width: none;
}
body[data-page-id="cart"] .site-cart-list::-webkit-scrollbar {
  display: none;
}

/* Both cart modes share geometry; only their operation slots change content. */
body.gx-app[data-page-id="cart"] .site-cart-item--diy {
  grid-template-columns: 44px minmax(84px, 1fr) minmax(0, 1.1fr) 76px;
  column-gap: 6px;
  padding: 8px 8px 8px 2px;
  min-height: 146px;
  box-sizing: border-box;
}
body.gx-app[data-page-id="cart"] .site-cart-item--fixed {
  grid-template-columns: 44px minmax(84px, 1fr) minmax(0, 1.1fr) 44px;
  column-gap: 8px;
  padding: 10px 8px 10px 2px;
  box-sizing: border-box;
}
body.gx-app[data-page-id="cart"] .site-cart-item .site-cart-item-visual {
  width: 100%;
  min-width: 0;
  align-self: center;
}
body.gx-app[data-page-id="cart"] .site-cart-item .site-cart-item-heading h2 {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
body.gx-app[data-page-id="cart"] .site-cart-item--diy .site-cart-item-summary {
  display: grid;
  gap: 2px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
}
body.gx-app[data-page-id="cart"] .site-cart-item--diy .site-cart-item-summary > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
body.gx-app[data-page-id="cart"] .site-cart-item--diy .site-cart-item-price {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.gx-app[data-page-id="cart"] .site-cart-item--fixed .site-cart-fixed-price {
  font-size: 20px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-cart-service {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px 6px;
  border-radius: 12px;
  background: var(--gx-ui-soft, #e7eddf);
  color: var(--gx-ui-primary, #4c6331);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-sizing: border-box;
}
.site-cart-service svg { width: 24px; height: 24px; flex-shrink: 0; }
.site-cart-service > span { white-space: nowrap; }
.site-cart-operation {
  display: grid;
  min-width: 0;
  height: 44px;
  place-items: center;
  align-self: center;
}
.site-cart-operation--service { width: 100%; flex: 0 0 44px; }
.site-cart-operation--fixed { width: 44px; }
.site-cart-service-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--gx-ui-primary, #4c6331);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.site-cart-service-contact:hover { background: var(--gx-ui-primary-hover, #3d5027); }
.site-cart-service-contact:focus-visible { outline: 2px solid var(--gx-ui-primary, #4c6331); outline-offset: 3px; }
body.gx-app[data-page-id="cart"] .site-cart-remove-button {
  position: static;
  width: 44px;
  height: 44px;
  min-height: 44px;
  transform: none;
}
body.gx-app[data-page-id="cart"] .site-cart-remove-button img { width: 20px; height: 20px; }
.site-cart-select-all input:indeterminate + .site-cart-selection-visual {
  border-color: var(--site-cart-select);
  background-color: var(--site-cart-select);
  background-image: linear-gradient(#fff, #fff);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 2px;
}
body.gx-app[data-page-id="cart"] .site-cart-checkout {
  grid-template-columns: max-content minmax(0, 1fr) 104px;
  gap: 6px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
}
body.gx-app[data-page-id="cart"] .site-cart-checkout:has(.site-cart-select-all[hidden]) {
  grid-template-columns: minmax(0, 1fr) 104px;
}
body.gx-app[data-page-id="cart"] .site-cart-total { gap: 4px; }
body.gx-app[data-page-id="cart"] .site-cart-total-caption { line-height: 1.4; }
body.gx-app[data-page-id="cart"] .site-cart-total strong {
  font-size: 18px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.gx-app[data-page-id="cart"] .site-cart-checkout-button { min-height: 48px; padding-inline: 8px; }
@container site-cart (max-width: 360px) {
  body.gx-app[data-page-id="cart"] .site-cart-item--diy {
    grid-template-columns: 44px minmax(84px, 1fr) minmax(0, 1.1fr) 64px;
    column-gap: 4px;
    padding: 7px 4px 7px 0;
  }
  body.gx-app[data-page-id="cart"] .site-cart-item--fixed {
    grid-template-columns: 44px minmax(78px, 1fr) minmax(0, 1.1fr) 44px;
    column-gap: 4px;
    padding: 10px 4px 10px 0;
  }
  body.gx-app[data-page-id="cart"] .site-cart-item .site-cart-item-heading h2 { font-size: 18px; }
  body.gx-app[data-page-id="cart"] .site-cart-item--diy .site-cart-item-price { font-size: 14px; }
  body.gx-app[data-page-id="cart"] .site-cart-item--diy .site-cart-item-summary { font-size: 10px; }
  body.gx-app[data-page-id="cart"] .site-cart-item--fixed .site-cart-fixed-price { font-size: 16px; }
  .site-cart-service { font-size: 11px; padding-inline: 4px; }
  body.gx-app[data-page-id="cart"] .site-cart-checkout { grid-template-columns: max-content minmax(0, 1fr) 80px; }
  body.gx-app[data-page-id="cart"] .site-cart-checkout:has(.site-cart-select-all[hidden]) { grid-template-columns: minmax(0, 1fr) 80px; }
  body.gx-app[data-page-id="cart"] .site-cart-select-all { gap: 0; font-size: 12px; }
  body.gx-app[data-page-id="cart"] .site-cart-total span { font-size: 10px; }
  body.gx-app[data-page-id="cart"] .site-cart-total strong { font-size: 14px; }
}

/* Explicit confirmation when an existing cart product has a new publication. */
.site-product-update-dialog { width: min(560px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; box-sizing: border-box; border: 1px solid #cfd7c7; border-radius: 20px; padding: 24px; background: #fffdf9; color: #26351f; }
.site-product-update-dialog::backdrop { background: rgba(0,0,0,.4); }
.site-product-update-dialog h2 { margin-top: 0; }
.site-product-update-gallery { display: flex; gap: 8px; overflow-x: auto; }
.site-product-update-gallery img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; }
.site-product-update-description { white-space: pre-wrap; }
.site-product-update-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-product-update-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid #cfd7c7; border-radius: 12px; background: white; color: #4c6331; cursor: pointer; }
.site-product-update-actions [data-update-confirm] { background: #4c6331; color: white; }
.site-product-update-actions button:disabled { opacity: .5; cursor: default; }
.site-product-update-dialog [role="alert"] { color: #b42318; }

/* Allow horizontal hand dragging while preserving vertical page scrolling. */
body[data-page-id="home"] .process-section.is-motion-ready .process-flow-shell {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
body[data-page-id="home"] .process-section.is-dragging .process-flow-shell {
  cursor: grabbing;
}
body[data-page-id="home"] .process-section.is-dragging .process-steps {
  transition: none;
}

/* Report generation is a single, truthful three-stage status view. */
body[data-page-id="custom_form"][data-form-step="5"] {
  --calculation-page-background: var(--gx-page-background, #fffdf9);
}
body[data-page-id="custom_form"][data-form-step="5"] :is(gx-app-header, .custom-form-stepper-row, .custom-form-confirmation-brandbar) {
  display: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .custom-form-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(34px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: var(--calculation-page-background);
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel .form-section-heading > p {
  display: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel .form-section-heading h2 {
  margin: 0;
  color: #20251c;
  font-size: clamp(26px, 6.8cqi, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel .form-section-heading > span {
  display: block;
  max-width: 360px;
  margin: 4px auto 0;
  color: #62695a;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}
body[data-page-id="custom_form"][data-form-step="5"] .crystal-loader {
  width: 132px;
  height: 132px;
  margin: 32px 0 28px;
  border: 1px solid #d2dcc9;
  background: radial-gradient(circle, #fff 0 36%, #e9efdf 37% 94%, #fffdf9 95%);
  box-shadow: 0 8px 20px rgba(58, 75, 35, .07);
}
body[data-page-id="custom_form"][data-form-step="5"] .crystal-loader img {
  width: 68px;
  height: 68px;
  animation: none;
  opacity: 1;
  transform: none;
  object-fit: contain;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-progress-card {
  min-width: 0;
  width: 100%;
  padding: 18px;
  border: 1px solid #d0d9c7;
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 10px 28px rgba(58, 75, 35, .05);
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-progress-card > h3 {
  margin: 0 8px 12px;
  color: #272d22;
  font-size: 22px;
  line-height: 1.4;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-progress-card .progress-list {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 86px;
  padding: 12px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #646c5c;
  box-shadow: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li:not(:last-child)::after {
  position: absolute;
  top: calc(50% + 20px);
  bottom: calc(-50% + 20px);
  left: 24px;
  z-index: 2;
  width: 1px;
  background: #c3ceba;
  content: "";
  pointer-events: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-current {
  min-height: 104px;
  background: #f1f5eb;
  color: #4c6331;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list .calculation-stage-icon {
  position: relative;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #bcc8b1;
  border-radius: 50%;
  background: #fff;
  animation: none;
  box-sizing: border-box;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list .calculation-stage-icon::before {
  content: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-icon > img {
  display: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-complete .calculation-stage-icon {
  border-color: #4c6331;
  background: #4c6331;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-complete .calculation-stage-check {
  display: block;
  filter: brightness(0) invert(1);
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-current .calculation-stage-icon {
  border: 0;
  background: #f1f5eb;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-current .calculation-stage-spinner {
  display: block;
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(34%) sepia(17%) saturate(1286%) hue-rotate(42deg) brightness(88%) contrast(89%);
  animation: gxReportStageSpin 2s linear infinite;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-copy {
  min-width: 0;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-copy > b {
  display: block;
  color: #343d2b;
  font-size: 18px;
  line-height: 1.4;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-copy > small {
  display: block;
  margin-top: 4px;
  color: #6d7465;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-status {
  color: #697260;
  font-size: 13px;
  font-style: normal;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > :is(.is-current, .is-complete) .calculation-stage-status,
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-current .calculation-stage-copy > b {
  color: #4c6331;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-error {
  background: #fff4f0;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-error .calculation-stage-icon {
  border: 2px solid #b26960;
  background: #fff4f0;
}
body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-error :is(.calculation-stage-copy > b, .calculation-stage-status) {
  color: #9b4c42;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel[data-calculation-state="error"] .calculation-stage-spinner,
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel[data-calculation-state="complete"] .calculation-stage-spinner {
  display: none;
  animation: none;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer {
  margin-top: 36px;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer > strong {
  display: block;
  color: #4c6331;
  font-size: 18px;
  line-height: 1.5;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer > p {
  margin: 6px 0 0;
  color: #737a6b;
  font-size: 14px;
  line-height: 1.5;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel[data-calculation-state="error"] .calculation-footer > strong {
  color: #9b4c42;
}
body[data-page-id="custom_form"][data-form-step="5"] .calculation-api-url {
  display: none;
}
@keyframes gxReportStageSpin {
  to { transform: rotate(360deg); }
}
@media (max-width: 440px) {
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel .form-section-heading > span {
    max-width: 290px;
    font-size: 14px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .crystal-loader {
    width: 104px;
    height: 104px;
    margin: 22px 0 20px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-progress-card {
    padding: 14px 12px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-progress-card > h3 {
    font-size: 18px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li {
    grid-template-columns: 32px minmax(0, 1fr) 42px;
    gap: 10px;
    padding-inline: 6px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li:not(:last-child)::after {
    left: 22px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-copy > b {
    font-size: 14px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-copy > small {
    font-size: 12px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-stage-status {
    font-size: 12px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer > strong {
    font-size: 16px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer > p {
    font-size: 13px;
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-footer {
    margin-top: 24px;
  }
}
@container gx-content-shell (max-width: 359px) {
  body[data-page-id="custom_form"][data-form-step="5"] .custom-form-page {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }
  body[data-page-id="custom_form"][data-form-step="5"] .calculation-panel .form-section-heading h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-id="custom_form"][data-form-step="5"] .progress-list > li.is-current .calculation-stage-spinner {
    animation: none;
  }
}
