:root {
  --ink: #22211d;
  --muted: #726c63;
  --paper: #fcfbf7;
  --soft: #f3efe7;
  --soft-2: #ece7dc;
  --line: rgba(34, 33, 29, 0.12);
  --gold: #c38f47;
  --gold-deep: #9e6f31;
  --sky: #63afd3;
  --night: #1f1c17;
  --radius: 8px;
  --shadow: 0 18px 54px rgba(26, 24, 20, 0.08);
  --shadow-strong: 0 22px 60px rgba(26, 24, 20, 0.14);
  --page-max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
  appearance: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 34px;
  color: var(--ink);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}

.site-header.scrolled {
  position: fixed;
  background: rgba(252, 251, 247, 0.92);
  box-shadow: 0 12px 36px rgba(26, 24, 20, 0.1);
  backdrop-filter: blur(18px);
}

.payment-page {
  background: var(--paper);
}

.payment-page .site-header {
  position: sticky;
  top: 0;
  inset: auto 0 auto;
  background: rgba(252, 251, 247, 0.96);
  box-shadow: 0 12px 36px rgba(26, 24, 20, 0.08);
  backdrop-filter: blur(18px);
}

.payment-main {
  padding: 24px 0 0;
}

.checkout-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px 32px 112px;
}

.checkout-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.checkout-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.checkout-heading p:last-child {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.checkout-panel,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
}

.checkout-summary {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: linear-gradient(180deg, #fff 0%, #f7f2e9 100%);
}

.checkout-summary h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.checkout-summary > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-plan-options,
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.payment-plan-option,
.payment-method {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-method {
  min-height: 54px;
  align-content: center;
}

.payment-plan-option strong {
  font-size: 20px;
  line-height: 1.1;
}

.payment-plan-option small {
  color: var(--muted);
  font-size: 13px;
}

.payment-plan-option.active,
.payment-method.active {
  color: #fff;
  background: linear-gradient(180deg, #d2a259 0%, var(--gold) 100%);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(195, 143, 71, 0.18);
}

.payment-plan-option.active small,
.payment-method.active small {
  color: rgba(255, 255, 255, 0.84);
}

.checkout-panel input,
.checkout-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.checkout-panel label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-panel .full,
.checkout-summary .full {
  grid-column: 1 / -1;
}

.order-lines {
  display: grid;
  gap: 12px;
  margin: 0;
}

.order-lines div,
.payment-channel,
.order-total {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-lines dt {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-lines dd {
  margin: 0;
  font-weight: 700;
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.order-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.order-total strong {
  font-size: 36px;
  line-height: 1;
}

.payment-channel span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-channel strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.payment-channel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.payment-status {
  margin: 0;
  color: var(--muted);
}

.payment-status[data-type="success"] {
  color: #2f6f43;
}

.payment-status[data-type="error"] {
  color: #9d3c2f;
}

.payment-status[data-type="loading"] {
  color: var(--gold-deep);
}

.payment-footer {
  min-height: 0;
}

.home-floating-logo {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 48px;
  padding: 4px 10px;
  background: rgba(252, 251, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(26, 24, 20, 0.12);
  backdrop-filter: blur(14px);
}

.home-floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

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

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 28, 23, 0.56);
  backdrop-filter: blur(12px);
}

.payment-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  max-height: calc(100svh - 44px);
  overflow: auto;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.payment-modal-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.payment-modal-card > p:not(.section-kicker):not(.payment-modal-note) {
  margin: 0;
  color: var(--muted);
}

.payment-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.payment-qr-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-qr-wrap img {
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}

.payment-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-modal-meta div {
  min-width: 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-modal-meta dt {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.payment-modal-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.payment-modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.brand-mark-img {
  display: block;
  width: 206px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
}

.brand-mark-img-dark {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.brand-wordmark {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.brand-wordmark strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-wordmark small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-brand .brand-mark-img {
  width: 218px;
  height: 62px;
  background: rgba(252, 251, 247, 0.96);
  border-radius: var(--radius);
  object-fit: contain;
  object-position: center;
}

.footer-brand .brand-wordmark strong {
  color: #fff;
}

.footer-brand .brand-wordmark small {
  color: rgba(255, 255, 255, 0.56);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 3px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 6px 6px 3px 3px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 20px;
  height: 20px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 3px;
  background: currentColor;
  transform: translateX(-50%);
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-pill,
.primary-button,
.ghost-button,
.ghost-dark,
.mode-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-pill,
.ghost-button,
.mode-pill,
.filter-chip {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.nav-pill:hover,
.primary-button:hover,
.ghost-button:hover,
.ghost-dark:hover,
.mode-pill:hover,
.filter-chip:hover,
.scene-card:hover,
.scene-card.active,
.product-card:hover,
.product-card.active,
.pricing-card:hover {
  transform: translateY(-1px);
}

.nav-pill-dark {
  color: #fff;
  background: var(--night);
  border-color: var(--night);
}

.primary-button {
  color: #fff;
  background: linear-gradient(180deg, #d2a259 0%, var(--gold) 100%);
  box-shadow: 0 12px 26px rgba(195, 143, 71, 0.24);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
}

.ghost-dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.mode-pill.active,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(180deg, #d2a259 0%, var(--gold) 100%);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(195, 143, 71, 0.2);
}

.menu-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 40;
  display: none;
  width: min(280px, calc(100vw - 36px));
  padding: 10px;
  background: rgba(252, 251, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(252, 251, 247, 0.94) 0%, rgba(252, 251, 247, 0.84) 32%, rgba(252, 251, 247, 0.16) 64%, rgba(252, 251, 247, 0.06) 100%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.24) 0%, rgba(252, 251, 247, 0.08) 50%, rgba(252, 251, 247, 0.2) 100%),
    url("./assets/dreamplus/hero-i-one.png");
  background-position: center center;
  background-size: cover;
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(180deg, rgba(252, 251, 247, 0.04) 0%, rgba(252, 251, 247, 0.08) 52%, rgba(252, 251, 247, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 34px;
  top: 122px;
  z-index: 2;
  max-width: 760px;
  color: var(--ink);
}

.eyebrow,
.section-kicker,
.plan-kicker,
#outputTag,
#sceneLead,
#productDetailBadge,
.library-meta span:first-child,
.catalog-panel-head .section-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(54px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.scene-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(138px, 19vh, 206px);
  z-index: 3;
  width: min(520px, calc(100vw - 68px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(26, 24, 20, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.hero-actions .primary-button,
.hero-actions .ghost-button {
  min-width: 210px;
}

.hero-stats {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 32px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(34, 33, 29, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(26, 24, 20, 0.08);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px 20px;
}

.hero-stats div + div {
  border-left: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section-shell {
  padding: 96px 32px 0;
}

.section-heading {
  max-width: var(--page-max);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 36px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro-heading {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.intro-heading h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.intro-band {
  padding-top: 110px;
}

.intro-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.intro-grid article,
.process-card,
.pricing-card,
.scene-card,
.product-detail,
.pricing-note,
.calculator-note,
.calculator-panel,
.calculator-result,
.catalog-table-wrap,
.designer-form,
.designer-output,
.lead-score-card,
.lead-form,
.process-timeline article,
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.intro-grid article {
  min-height: 220px;
  padding: 24px 22px;
}

.intro-grid span,
.process-card span,
.process-timeline span,
.catalog-panel-head p,
.product-card-meta,
.plan-summary,
.pricing-card li,
.plan-metrics dt,
.plan-metrics dd,
.detail-panels li,
.detail-panels p,
.form-footnote,
.lead-score-card span,
.designer-status,
.calculator-note p,
.calc-result-head p,
.calc-breakdown dt,
.calc-breakdown dd,
.calc-verdict,
.scene-preview-copy > p:last-of-type,
.product-detail-copy > p:nth-of-type(3),
#productHint,
.lead-form span,
.calculator-panel span,
.mini-grid span,
.section-heading p:last-child,
.library-note p,
.site-footer p,
.site-footer nav,
.footer-meta {
  color: var(--muted);
}

.intro-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro-grid h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.intro-grid p {
  margin: 12px 0 0;
}

.scenes-section {
  padding-bottom: 128px;
}

.scene-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.scene-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.scene-card {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 20px;
  text-align: left;
}

.scene-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.scene-card strong {
  font-size: 22px;
  line-height: 1.08;
}

.scene-card p {
  margin: 0;
  color: var(--muted);
}

.scene-card.active {
  border-color: rgba(195, 143, 71, 0.55);
  box-shadow: var(--shadow);
}

.scene-preview {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 560px;
  box-shadow: var(--shadow);
}

.scene-preview-media {
  position: relative;
}

.scene-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.scene-preview-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 40%, rgba(0, 0, 0, 0.12) 100%);
}

.scene-preview-media span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  min-width: 44px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.scene-preview-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 42px;
  background: #fff;
}

.scene-preview-copy h3,
#outputTitle,
#productDetailTitle {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.scene-preview-copy ul,
.pricing-card ul,
.meta-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.scene-preview-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.scene-preview-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scene-preview-actions,
.designer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.designer-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.designer-status[data-type="loading"] {
  color: var(--gold-deep);
  background: rgba(195, 143, 71, 0.1);
  border-color: rgba(195, 143, 71, 0.24);
}

.designer-status[data-type="success"] {
  color: #315f43;
  background: rgba(84, 140, 94, 0.1);
  border-color: rgba(84, 140, 94, 0.22);
}

.designer-status[data-type="warning"],
.designer-status[data-type="error"] {
  color: #8a4f23;
  background: rgba(195, 143, 71, 0.12);
  border-color: rgba(195, 143, 71, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.designer-section {
  padding-bottom: 128px;
}

.designer-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.designer-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.process-card {
  padding: 22px 0;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.process-card:first-child {
  border-top: 0;
}

.process-card span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.process-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  line-height: 1.1;
}

.process-card p {
  margin: 0;
  color: var(--muted);
}

.designer-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.designer-entry-panel {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow);
}

.designer-entry-panel .designer-form {
  padding: 38px;
}

.designer-entry-steps {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.designer-entry-steps .process-card {
  min-height: 180px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.designer-form,
.designer-output {
  overflow: hidden;
}

.designer-form {
  padding: 28px;
}

.designer-dialog {
  display: grid;
  gap: 10px;
}

.designer-dialog span,
.designer-option-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.designer-dialog textarea {
  width: 100%;
  min-height: 178px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
  font-size: 18px;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.designer-option-head {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.designer-option-head small {
  color: var(--muted);
  font-size: 13px;
}

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

.mini-grid label,
.lead-form label,
.calculator-panel label {
  display: grid;
  gap: 8px;
}

.mini-grid span,
.lead-form span,
.calculator-panel span {
  font-size: 13px;
  font-weight: 800;
}

.mini-grid input,
.mini-grid select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.calculator-panel input,
.calculator-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-form textarea {
  min-height: 104px;
  padding-top: 13px;
  resize: vertical;
}

.designer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.token-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.token-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.token-card strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.token-card p {
  max-width: 380px;
  margin: 10px 0 0;
  color: var(--muted);
}

.designer-output {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: 560px;
  box-shadow: var(--shadow);
}

.designer-output img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.designer-output-copy {
  padding: 28px;
  background: #fff;
}

.designer-result-link {
  justify-self: start;
  width: fit-content;
}

body.workspace-page {
  min-height: 100dvh;
  background: #efede7;
}

body.member-page {
  min-height: 100dvh;
  background: var(--paper);
}

.member-page .site-header {
  position: sticky;
  top: 0;
  inset: auto 0 auto;
  background: rgba(252, 251, 247, 0.95);
  box-shadow: 0 12px 36px rgba(26, 24, 20, 0.08);
  backdrop-filter: blur(18px);
}

.member-main {
  padding: 24px 0 96px;
}

.member-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.member-heading p:last-child {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 18px;
  align-items: start;
}

.member-panel {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member-side {
  display: grid;
  gap: 18px;
}

.member-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.member-panel-head h2 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.08;
}

.member-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-form + .member-form {
  margin-top: 16px;
}

.member-form h3,
.member-admin-form h3 {
  margin: 0;
  font-size: 19px;
}

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

.member-grid .full,
.member-form .full,
.member-admin-form .full {
  grid-column: 1 / -1;
}

.member-form label,
.member-admin-form label,
.member-admin-key {
  display: grid;
  gap: 8px;
}

.member-form label span,
.member-admin-form label span,
.member-admin-key span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-form input,
.member-form select,
.member-form textarea,
.member-admin-form input,
.member-admin-form select,
.member-admin-form textarea,
.member-admin-key input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-form textarea,
.member-admin-form textarea {
  min-height: 120px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

.wechat-login-box {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wechat-qr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 122px;
  height: 122px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.wechat-qr span {
  display: block;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(26, 24, 20, 0.92) 0%, rgba(26, 24, 20, 0.92) 35%, transparent 35% 65%, rgba(26, 24, 20, 0.9) 65% 100%);
}

.wechat-login-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.wechat-login-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-actions .primary-button,
.auth-actions .ghost-dark {
  min-height: 46px;
}

.member-status,
.member-admin-result {
  margin: 16px 0 0;
  min-height: 42px;
  padding: 11px 13px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.member-status[data-type="success"],
.member-admin-result[data-type="success"] {
  color: #32634a;
  background: rgba(100, 159, 111, 0.14);
  border-color: rgba(100, 159, 111, 0.28);
}

.member-status[data-type="error"],
.member-admin-result[data-type="error"] {
  color: #8a4f23;
  background: rgba(195, 143, 71, 0.12);
  border-color: rgba(195, 143, 71, 0.32);
}

.member-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--night);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.member-metrics div {
  min-width: 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-metrics strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.member-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.member-details div,
.member-list-item,
.member-empty {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.member-details strong,
.member-list-item strong {
  font-size: 13px;
}

.member-details span,
.member-list-item p,
.member-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.member-admin-panel {
  background: linear-gradient(180deg, #fff 0%, #f8f4ed 100%);
}

.member-admin-key {
  margin-bottom: 14px;
}

.member-admin-form {
  display: grid;
  gap: 14px;
}

.admin-main {
  padding-top: 24px;
}

.admin-login-row,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.admin-login-row {
  margin-bottom: 18px;
}

.admin-column,
.admin-sidebar {
  display: grid;
  gap: 18px;
}

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

.admin-summary-card {
  min-width: 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-summary-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-summary-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-toolbar .primary-button,
.admin-toolbar .ghost-dark {
  min-height: 44px;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.admin-record {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-record strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.admin-record p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.admin-record-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.admin-chip-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.admin-chip-button:hover {
  border-color: rgba(178, 131, 64, 0.45);
}

.admin-form .primary-button,
.admin-form .ghost-dark {
  width: 100%;
}

.workspace-page .brand-mark-img {
  width: 196px;
  height: 54px;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 12px 20px;
  background: rgba(252, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-shell {
  height: calc(100dvh - 78px);
  padding: 14px;
}

.workspace-layout {
  width: 100%;
  max-width: 1720px;
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 14px;
  align-items: stretch;
}

.workspace-stage,
.workspace-chat-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workspace-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.workspace-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.workspace-stage-head h1 {
  margin: 8px 0 8px;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.02;
}

.workspace-stage-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.workspace-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.workspace-options label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.workspace-options span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-options input,
.workspace-options select,
.workspace-chat-form textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workspace-options input,
.workspace-options select {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

.workspace-board {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #fbfaf6;
}

.workspace-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.workspace-board-title {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.workspace-board-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.workspace-board-title p {
  margin: 0;
  color: var(--muted);
}

.workspace-board-title #workspaceResultTag {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-board-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace-board-actions > span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.workspace-board-actions .ghost-dark,
.workspace-board-actions .primary-button {
  min-height: 40px;
  padding: 0 14px;
}

.workspace-board-actions .workspace-icon-button {
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 19px;
}

.workspace-board-actions .workspace-zoom-reset {
  min-width: 64px;
  padding-inline: 10px;
}

.workspace-result-link {
  width: fit-content;
  margin-top: 0;
}

.workspace-board-grid {
  min-height: 0;
  overflow: auto;
  position: relative;
  display: block;
  padding: 18px;
  background:
    linear-gradient(rgba(34, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 33, 29, 0.045) 1px, transparent 1px),
    #fbfaf6;
  background-size: 28px 28px;
  touch-action: none;
}

.workspace-board-zoom-plane {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.workspace-board-canvas {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: 0 0;
}

.workspace-board-card {
  position: absolute;
  min-width: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(26, 24, 20, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.workspace-board-card:hover,
.workspace-board-card.selected {
  border-color: rgba(195, 143, 71, 0.62);
  box-shadow: var(--shadow);
}

.workspace-board-card.active {
  border-color: rgba(195, 143, 71, 0.92);
  box-shadow: 0 22px 46px rgba(26, 24, 20, 0.16), 0 0 0 2px rgba(195, 143, 71, 0.16);
}

.workspace-board-card.dragging,
.workspace-board-card.resizing {
  z-index: 10;
}

.workspace-board-card.dragging {
  cursor: grabbing;
  box-shadow: 0 28px 64px rgba(26, 24, 20, 0.2);
}

.workspace-board-card.resizing {
  box-shadow: 0 28px 64px rgba(195, 143, 71, 0.2);
}

.workspace-board-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.workspace-board-floating-toolbar {
  position: absolute;
  z-index: 20;
  width: fit-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(34, 33, 29, 0.12);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(26, 24, 20, 0.16);
  backdrop-filter: blur(14px);
}

.workspace-toolbar-lead,
.workspace-board-floating-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-toolbar-lead {
  min-width: 230px;
  justify-content: flex-start;
  background: rgba(251, 250, 246, 0.9);
}

.workspace-toolbar-lead small {
  overflow: hidden;
  max-width: 160px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.workspace-toolbar-dot {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--night);
  border-radius: 50%;
}

.workspace-toolbar-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.workspace-board-floating-toolbar button {
  cursor: pointer;
}

.workspace-board-floating-toolbar button:hover {
  color: #fff;
  background: var(--night);
}

.workspace-board-floating-toolbar button.danger {
  color: #8a4f23;
}

.workspace-board-floating-toolbar button.danger:hover {
  color: #fff;
  background: #8a4f23;
}

.workspace-board-resize-handle {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.workspace-board-card:hover .workspace-board-resize-handle,
.workspace-board-card.active .workspace-board-resize-handle,
.workspace-board-card.selected .workspace-board-resize-handle,
.workspace-board-card.resizing .workspace-board-resize-handle {
  opacity: 0.72;
}

.workspace-board-resize-handle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(34, 33, 29, 0.42);
  border-style: solid;
}

.workspace-board-resize-handle:hover::after,
.workspace-board-card.resizing .workspace-board-resize-handle::after {
  border-color: var(--gold);
}

.workspace-board-resize-handle.nw {
  top: -2px;
  left: -2px;
  cursor: nwse-resize;
}

.workspace-board-resize-handle.nw::after {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.workspace-board-resize-handle.ne {
  top: -2px;
  right: -2px;
  cursor: nesw-resize;
}

.workspace-board-resize-handle.ne::after {
  top: 4px;
  right: 4px;
  border-width: 2px 2px 0 0;
}

.workspace-board-resize-handle.sw {
  bottom: -2px;
  left: -2px;
  cursor: nesw-resize;
}

.workspace-board-resize-handle.sw::after {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2px 2px;
}

.workspace-board-resize-handle.se {
  right: -2px;
  bottom: -2px;
  cursor: nwse-resize;
}

.workspace-board-resize-handle.se::after {
  right: 4px;
  bottom: 4px;
  border-width: 0 2px 2px 0;
}

.workspace-board-check {
  position: relative;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 33, 29, 0.26);
  border-radius: 50%;
}

.workspace-board-card.selected .workspace-board-check {
  background: var(--gold);
  border-color: var(--gold);
}

.workspace-board-card.selected .workspace-board-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}

.workspace-board-card-copy {
  display: grid;
  gap: 6px;
  padding: 13px 14px 15px;
  background: #fff;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.workspace-board-card-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.2;
}

.workspace-board-card-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workspace-board-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.workspace-side {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.workspace-chat-panel {
  min-height: 0;
  overflow: hidden;
}

.workspace-chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.workspace-chat-panel-unified {
  height: 100%;
}

.workspace-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.workspace-panel-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.workspace-clear-history {
  min-height: 38px;
  padding: 0 14px;
}

.workspace-chat-thread {
  min-height: 0;
  overflow-y: auto;
}

.workspace-empty-state {
  padding: 18px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.workspace-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: #fff;
}

.workspace-history-message {
  width: 100%;
  text-align: left;
}

.workspace-chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.45;
}

.workspace-chat-message strong,
.workspace-chat-message p {
  display: block;
  margin: 0;
}

.workspace-chat-message strong {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-chat-message.assistant {
  width: 100%;
  max-width: 100%;
  align-self: flex-start;
  color: var(--ink);
  background: transparent;
}

.workspace-chat-message.user {
  align-self: flex-end;
  color: var(--ink);
  background: transparent;
  border-color: transparent;
}

.workspace-chat-bubble {
  max-width: 100%;
  padding: 13px 16px;
  color: var(--ink);
  background: #f4f2ee;
  border: 1px solid rgba(34, 33, 29, 0.06);
  border-radius: 18px;
}

.workspace-chat-bubble p {
  margin: 0;
}

.workspace-chat-date {
  color: #a6a49d;
  font-size: 13px;
  font-weight: 800;
}

.workspace-agent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #9b9b96;
  font-size: 13px;
  font-weight: 800;
}

.workspace-agent-meta small {
  margin-left: auto;
  color: #b7b4ad;
  font-size: 12px;
}

.workspace-agent-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid #b9b6ae;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.workspace-chat-message.assistant h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.workspace-chat-richtext {
  display: grid;
  gap: 10px;
  color: #383a3d;
  font-size: 15px;
  line-height: 1.72;
}

.workspace-chat-richtext p,
.workspace-chat-richtext ul {
  margin: 0;
}

.workspace-chat-richtext ul {
  padding-left: 20px;
}

.workspace-chat-result-media {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  background: #efefec;
  border: 1px solid rgba(34, 33, 29, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
}

.workspace-chat-result-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.workspace-chat-result-link {
  width: fit-content;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.workspace-chat-result-link:hover {
  color: #fff;
  background: var(--night);
}

.workspace-chat-message.history {
  align-self: stretch;
  width: 100%;
  color: var(--ink);
  background: var(--soft);
  cursor: pointer;
}

.workspace-chat-message.history:hover {
  border-color: rgba(195, 143, 71, 0.48);
  transform: translateY(-1px);
}

.workspace-chat-message.history strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.workspace-chat-message.history p {
  color: var(--muted);
  font-size: 12px;
}

.workspace-chat-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.workspace-composer-box {
  position: relative;
  display: grid;
}

.workspace-chat-form textarea {
  min-height: 126px;
  max-height: 190px;
  padding: 13px 13px 56px;
  resize: vertical;
  line-height: 1.5;
  border-radius: 18px;
}

.workspace-agent-actions {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-agent-actions .ghost-dark {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 13px;
  background: rgba(252, 251, 247, 0.94);
}

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

.proposal-agent-actions .ghost-button {
  width: 100%;
  min-height: 40px;
  padding-inline: 12px;
}

.workspace-chat-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.workspace-chat-actions .ghost-dark,
.workspace-chat-actions .primary-button {
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
}

.workspace-status {
  margin: 0;
  min-height: 38px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
}

.workspace-status[data-type="loading"] {
  color: var(--gold-deep);
  background: rgba(195, 143, 71, 0.1);
  border-color: rgba(195, 143, 71, 0.24);
}

.workspace-status[data-type="success"] {
  color: #315f43;
  background: rgba(84, 140, 94, 0.1);
  border-color: rgba(84, 140, 94, 0.22);
}

.workspace-status[data-type="warning"],
.workspace-status[data-type="error"] {
  color: #8a4f23;
  background: rgba(195, 143, 71, 0.12);
  border-color: rgba(195, 143, 71, 0.28);
}

body.proposal-page {
  min-height: 100dvh;
  background: #ece9e1;
}

.proposal-page .brand-mark-img {
  width: 196px;
  height: 54px;
}

.proposal-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px 18px;
  background: rgba(252, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.proposal-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.proposal-shell {
  height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 360px;
  gap: 0;
}

.proposal-thumbs,
.proposal-chat {
  min-height: 0;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--line);
}

.proposal-chat {
  display: grid;
  grid-template-rows: auto minmax(96px, 0.75fr) auto minmax(120px, 0.9fr) auto;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.proposal-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.proposal-panel-head strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.proposal-thumb-list {
  height: calc(100% - 72px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.proposal-thumb {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-thumb.active,
.proposal-thumb:hover {
  background: #fff;
  border-color: rgba(195, 143, 71, 0.56);
  box-shadow: 0 10px 24px rgba(26, 24, 20, 0.08);
}

.proposal-thumb span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--night);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.proposal-thumb strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.35;
}

.proposal-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: #e6e2d9;
}

.proposal-status-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(236, 233, 225, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.proposal-status-bar h1 {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.08;
}

.proposal-status-bar > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.proposal-status-bar > span[data-status="ready"] {
  color: #315f43;
  border-color: rgba(84, 140, 94, 0.28);
}

.proposal-status-bar > span[data-status="error"] {
  color: #8a4f23;
  border-color: rgba(195, 143, 71, 0.36);
}

.proposal-pages {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding: 28px 28px 64px;
}

.proposal-page-card {
  position: relative;
  width: min(980px, 100%);
  min-height: 552px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(34, 33, 29, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 22px 56px rgba(26, 24, 20, 0.14);
}

.proposal-page-card.active {
  border-color: rgba(195, 143, 71, 0.6);
  box-shadow: 0 24px 60px rgba(26, 24, 20, 0.16), 0 0 0 3px rgba(195, 143, 71, 0.14);
}

.proposal-slide-cover {
  position: absolute;
  inset: 0;
}

.proposal-slide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proposal-slide-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(252, 251, 247, 0.94), rgba(252, 251, 247, 0.34));
}

.proposal-slide-cover > div {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 52px;
  z-index: 1;
}

.proposal-slide-cover p,
.proposal-slide-copy > p {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-slide-cover h2,
.proposal-slide-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.02;
}

.proposal-slide-cover span {
  display: block;
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
}

.proposal-slide-copy {
  display: grid;
  gap: 22px;
  padding: 54px;
}

.proposal-slide-copy ul {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 20px;
}

.proposal-slide-copy li {
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-slide-index {
  position: absolute;
  right: 42px;
  bottom: 32px;
  color: rgba(34, 33, 29, 0.12);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
}

.proposal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 54px 54px;
}

.proposal-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proposal-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.proposal-empty-card {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.proposal-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 54px 54px;
}

.proposal-metrics div {
  min-height: 112px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-metrics span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal-metrics strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.1;
}

.proposal-attachment-slide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 54px 54px;
}

.proposal-attachment-slide-card {
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-attachment-slide-card.image {
  margin: 0;
}

.proposal-attachment-slide-card.image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proposal-attachment-slide-card figcaption,
.proposal-attachment-slide-card.file {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.proposal-attachment-slide-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.proposal-attachment-slide-card span,
.proposal-attachment-slide-card small,
.proposal-attachment-slide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.proposal-attachment-slide-card.file > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--night);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 800;
}

.proposal-chat-thread {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.proposal-chat-message {
  padding: 12px 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.proposal-chat-message.user {
  background: #fff;
}

.proposal-chat-message.assistant {
  background: rgba(195, 143, 71, 0.1);
  border-color: rgba(195, 143, 71, 0.22);
}

.proposal-chat-message.status {
  color: var(--muted);
}

.proposal-chat-message strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.proposal-chat-message p {
  margin: 0;
  line-height: 1.65;
}

.proposal-chat-message ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.55;
}

.proposal-page-editor {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
}

.proposal-editor-head {
  margin: 0 -14px;
  padding: 13px 14px;
}

.proposal-editor-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 150px;
}

.proposal-editor-actions .ghost-button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
}

.proposal-editor-actions .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.proposal-page-editor label {
  display: grid;
  gap: 6px;
}

.proposal-page-editor label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.proposal-page-editor input,
.proposal-page-editor textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.proposal-page-editor textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.proposal-attachment-panel {
  min-height: 0;
  max-height: 42vh;
  overflow-y: auto;
  background: rgba(252, 251, 247, 0.86);
  border-top: 1px solid var(--line);
}

.proposal-attachment-head {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
}

.proposal-attachment-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.proposal-attachment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.proposal-attachment-actions .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.proposal-attachment-actions .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.proposal-board-pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 0;
}

.proposal-board-pool-head strong {
  color: var(--muted);
  font-size: 12px;
}

.proposal-board-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 14px 12px;
}

.proposal-board-pool-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 7px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-board-pool-card.attached,
.proposal-board-pool-card:hover {
  border-color: rgba(195, 143, 71, 0.58);
  box-shadow: 0 10px 22px rgba(26, 24, 20, 0.08);
}

.proposal-board-pool-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.proposal-board-pool-card span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.proposal-board-pool-card small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.proposal-attachment-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.proposal-attachment-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proposal-attachment-item img,
.proposal-file-badge {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
}

.proposal-file-badge {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--night);
  font-size: 11px;
  font-weight: 800;
}

.proposal-attachment-item strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.proposal-attachment-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.proposal-attachment-item button {
  width: 28px;
  height: 28px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.proposal-attachment-empty {
  padding: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 12px;
  text-align: center;
}

.proposal-chat-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.proposal-export-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.proposal-export-options legend {
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.proposal-export-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proposal-export-option {
  position: relative;
  display: block;
}

.proposal-export-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.proposal-export-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.proposal-export-option input:checked + span {
  color: #fff;
  background: var(--night);
  border-color: var(--night);
}

.proposal-export-option input:focus-visible + span {
  outline: 2px solid rgba(195, 143, 71, 0.42);
  outline-offset: 2px;
}

.proposal-chat-form textarea {
  width: 100%;
  min-height: 180px;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  resize: vertical;
}

.products-section {
  padding-bottom: 128px;
}

.calculator-section {
  padding-bottom: 128px;
}

.calculator-note {
  max-width: var(--page-max);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculator-note p {
  margin: 0;
  max-width: 860px;
}

.calc-mode-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.calculator-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.calculator-panel,
.calculator-result {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
}

.calculator-result {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(180deg, #fff 0%, #f8f4eb 100%);
}

.calc-result-head h3 {
  margin: 8px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.calc-result-head p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.calc-kpi-grid div {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calc-kpi-grid span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-kpi-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
}

.calc-breakdown {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.calc-breakdown h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.calc-breakdown dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.calc-breakdown div {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calc-breakdown dt {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-breakdown dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.calc-verdict {
  padding: 16px 18px;
  background: rgba(195, 143, 71, 0.1);
  border: 1px solid rgba(195, 143, 71, 0.18);
  border-radius: var(--radius);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.library-note {
  max-width: var(--page-max);
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.library-note p {
  margin: 0;
  max-width: 900px;
}

.library-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.library-meta span:first-child {
  font-size: 42px;
  line-height: 1;
}

.library-meta span:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-block {
  max-width: var(--page-max);
  margin: 0 auto 20px;
  display: grid;
  gap: 10px;
  padding: 6px 0 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.filter-row > span {
  padding-top: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.library-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.product-detail {
  position: sticky;
  top: 108px;
  align-self: start;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-detail-copy {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.product-detail-copy > p:nth-of-type(2),
.product-detail-copy > p:nth-of-type(3) {
  margin: 0;
  color: var(--muted);
}

.product-detail-copy > p:nth-of-type(2) {
  font-size: 17px;
  color: var(--ink);
}

.meta-list {
  margin-top: 6px;
}

.meta-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.meta-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

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

.detail-panels section {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-panels h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-panels ul,
.detail-panels p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-panels li + li {
  margin-top: 8px;
}

.detail-panels li {
  position: relative;
  padding-left: 16px;
}

.detail-panels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.catalog-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.catalog-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.catalog-panel-head h3 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.catalog-table-wrap {
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.catalog-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.catalog-table th,
.catalog-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.catalog-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.catalog-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

.catalog-table tbody tr:hover,
.catalog-table tbody tr.active {
  background: rgba(195, 143, 71, 0.08);
}

.catalog-table td:last-child {
  color: var(--gold-deep);
  font-weight: 700;
}

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

.product-card {
  padding: 0;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
  overflow: hidden;
  display: grid;
  text-align: left;
  box-shadow: var(--shadow);
}

.product-card.active {
  border-color: rgba(195, 143, 71, 0.55);
  box-shadow: var(--shadow-strong);
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.product-card-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.product-card-copy h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.product-card-copy p {
  margin: 0;
  color: var(--muted);
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.pricing-section {
  padding-bottom: 128px;
}

.pricing-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-note {
  max-width: var(--page-max);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-note p {
  margin: 0;
  color: var(--muted);
  max-width: 860px;
}

.credit-rule {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.credit-rule span,
.plan-metrics dd,
.form-footnote {
  color: var(--muted);
}

.credit-rule span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: #fff;
  background: var(--night);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pricing-card.featured {
  border-color: rgba(195, 143, 71, 0.55);
  box-shadow: var(--shadow-strong);
}

.pricing-card h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

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

.plan-metrics div {
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan-metrics dt {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-metrics dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.pricing-card li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pricing-token {
  background: var(--soft);
}

.contact-section {
  padding-bottom: 150px;
}

.contact-layout {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.lead-command {
  display: grid;
  gap: 18px;
}

.lead-score-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 239, 231, 0.92) 100%);
  border: 1px solid rgba(195, 143, 71, 0.22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-score-card strong {
  display: block;
  margin-top: 10px;
  font-size: 54px;
  line-height: 1;
}

.lead-score-card span {
  display: block;
  margin-top: 12px;
  max-width: 320px;
}

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

.process-timeline article {
  min-height: 220px;
  padding: 28px;
}

.process-timeline h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.process-timeline p {
  margin: 0;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.lead-form .full,
.calculator-panel .full {
  grid-column: 1 / -1;
}

.lead-form button {
  width: 100%;
}

.form-footnote {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 48px;
  min-height: 380px;
  padding: 84px 34px 40px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--night);
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 320px;
  margin: 22px 0 0;
}

.site-footer nav,
.footer-meta {
  display: grid;
  align-content: start;
  gap: 14px;
  font-size: 13px;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand-mark {
  color: currentColor;
}

@media (max-width: 1180px) {
  .library-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    position: static;
  }

  .workspace-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  }

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

  .workspace-board-head {
    grid-template-columns: 1fr;
  }

  .workspace-board-actions {
    justify-content: flex-start;
  }

  .proposal-shell {
    grid-template-columns: 180px minmax(0, 1fr) 320px;
  }

  .proposal-page-card {
    min-height: 500px;
  }

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

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

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

  .hero-actions {
    left: 24px;
    right: 24px;
    bottom: 128px;
    width: auto;
    transform: none;
  }

  .hero-stats {
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .section-heading,
  .scene-layout,
  .designer-layout,
  .calculator-note,
  .calculator-layout,
  .pricing-note,
  .contact-layout,
  .member-layout,
  .admin-login-row,
  .admin-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .credit-rule,
  .calc-mode-pills {
    justify-content: flex-start;
  }

  .scene-preview {
    grid-template-columns: 1fr;
  }

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

  body.workspace-page {
    overflow: auto;
  }

  .workspace-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workspace-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-shell {
    height: auto;
    min-height: calc(100dvh - 78px);
    padding: 12px;
  }

  .workspace-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .workspace-stage,
  .workspace-side {
    min-height: auto;
  }

  .workspace-side {
    grid-template-rows: minmax(0, 1fr);
  }

  .workspace-board-grid {
    max-height: 680px;
  }

  .proposal-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .proposal-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .proposal-shell {
    height: auto;
    grid-template-columns: 1fr;
  }

  .proposal-thumbs,
  .proposal-chat {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .proposal-thumb-list {
    height: auto;
    display: flex;
    overflow-x: auto;
  }

  .proposal-thumb {
    width: 190px;
    flex: 0 0 auto;
  }

  .proposal-main {
    overflow: visible;
  }

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

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

@media (max-width: 720px) {
  .section-shell {
    padding: 72px 20px 0;
  }

  .hero-content {
    top: 114px;
    text-align: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

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

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 11px;
    line-height: 1.3;
  }

  .home-floating-logo {
    right: 14px;
    bottom: 14px;
    width: 122px;
    height: 40px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .intro-band {
    padding-top: 84px;
  }

  .intro-grid,
  .pricing-grid,
  .process-timeline,
  .detail-panels,
  .designer-entry-steps,
  .member-grid,
  .member-metrics,
  .lead-form,
  .calculator-panel,
  .mini-grid,
  .product-grid,
  .workspace-options {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-record {
    flex-direction: column;
  }

  .admin-chip-button {
    width: 100%;
  }

  .wechat-login-box {
    grid-template-columns: 1fr;
  }

  .wechat-qr {
    margin: 0 auto;
  }

  .library-note {
    grid-template-columns: 1fr;
  }

  .library-meta {
    justify-items: start;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-row > span {
    padding-top: 0;
  }

  .catalog-panel-head {
    align-items: start;
  }

  .catalog-panel-head h3 {
    font-size: 22px;
  }

  .scene-card,
  .pricing-card,
  .intro-grid article,
  .process-timeline article,
  .lead-form,
  .calculator-panel,
  .calculator-result,
  .designer-form,
  .designer-entry-panel .designer-form,
  .designer-output-copy,
  .workspace-stage-head,
  .workspace-board-head,
  .product-detail-copy {
    padding: 22px;
  }

  .designer-dialog textarea {
    min-height: 150px;
    font-size: 16px;
  }

  .workspace-stage-head {
    display: grid;
  }

  .workspace-mode-tabs {
    justify-content: flex-start;
  }

  .workspace-board-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .proposal-status-bar,
  .proposal-panel-head {
    display: grid;
  }

  .proposal-pages {
    padding: 18px 16px 42px;
  }

  .proposal-page-card {
    min-height: 420px;
  }

  .proposal-slide-cover > div,
  .proposal-slide-copy {
    left: 24px;
    right: 24px;
    bottom: 28px;
    padding: 28px;
  }

  .proposal-slide-cover h2,
  .proposal-slide-copy h2 {
    font-size: 32px;
  }

  .proposal-slide-copy ul {
    gap: 10px;
    font-size: 15px;
  }

  .proposal-gallery,
  .proposal-attachment-slide-grid,
  .proposal-metrics {
    grid-template-columns: 1fr;
    padding: 0 28px 28px;
  }

  .proposal-slide-index {
    right: 22px;
    bottom: 18px;
    font-size: 58px;
  }

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

  .calc-kpi-grid,
  .calc-breakdown dl {
    grid-template-columns: 1fr;
  }

  .scene-preview {
    min-height: 0;
  }

  .scene-preview-media img,
  .designer-output img {
    min-height: 280px;
  }

  .scene-preview-copy {
    padding: 24px;
  }

  .product-detail-copy > p:nth-of-type(2),
  .product-detail-copy > p:nth-of-type(3) {
    font-size: 15px;
  }

  .site-footer {
    gap: 28px;
    min-height: 0;
    padding: 56px 20px 32px;
  }

  .brand-mark-img {
    width: 154px;
    height: 44px;
  }

  .brand {
    gap: 8px;
  }

  .brand-wordmark strong {
    font-size: 13px;
  }

  .brand-wordmark small {
    font-size: 10px;
    letter-spacing: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 18px 16px;
  }

  .site-header.scrolled {
    padding: 12px 16px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    top: 110px;
    left: 16px;
    right: 16px;
  }

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

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .hero-actions {
    bottom: 104px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-tags {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-tags span {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  .hero-stats {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .hero-stats strong {
    font-size: 20px;
  }

  .scene-tags span,
  .hero-tags span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }

  .catalog-table {
    min-width: 620px;
  }

  .pricing-card h3 {
    font-size: 36px;
  }

  .token-card strong {
    font-size: 34px;
  }

  .payment-modal {
    padding: 14px;
  }

  .payment-modal-card {
    padding: 22px;
  }

  .payment-modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .payment-page .desktop-nav {
    display: flex;
  }
}

@media (max-width: 720px) {
  .checkout-section {
    padding: 34px 20px 82px;
  }

  .checkout-panel,
  .payment-plan-options,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .checkout-panel,
  .checkout-summary {
    padding: 22px;
  }

  .payment-page .site-header {
    align-items: flex-start;
  }

  .payment-page .desktop-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
