:root {
  --customer-navy: #0b1f3a;
  --customer-ink: #182231;
  --customer-muted: #647184;
  --customer-canvas: #f6f8fa;
  --customer-paper: #ffffff;
  --customer-line: #cbd5e1;
  --customer-teal: #239b8f;
  --customer-teal-dark: #19766d;
  --customer-gold: #c6a35b;
  --customer-danger: #a9584a;
  --customer-title-font: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --customer-body-font: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

body.customer-page {
  min-width: 0;
  margin: 0;
  background: var(--customer-canvas);
  color: var(--customer-ink);
  font-family: var(--customer-body-font);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.customer-page[data-landing-visual],
body.customer-page.is-authenticated,
body.customer-page.report-reader-page {
  background: var(--customer-canvas) !important;
}

.customer-page :where(h1, h2, .report-markdown-title.level-1) {
  color: var(--customer-navy);
  font-family: var(--customer-title-font);
  letter-spacing: 0;
}

.customer-page :where(h3, h4, p, li, label, input, select, textarea, button, a, span, small, strong, em) {
  letter-spacing: 0;
}

.customer-page .site-header {
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.customer-page .brand {
  color: var(--customer-navy);
  font-weight: 700;
}

.customer-page .nav a {
  color: var(--customer-muted);
  font-weight: 600;
}

.customer-page .nav a:hover,
.customer-page .nav a:focus-visible {
  color: var(--customer-navy);
}

.customer-page :where(.primary-button, .secondary-button, .ghost-button, button) {
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--customer-body-font);
  font-weight: 700;
  letter-spacing: 0;
}

.customer-page :where(.primary-button, button.primary-button),
.customer-page .account-entry-shell .primary-button {
  background: var(--customer-teal);
  border-color: var(--customer-teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(35, 155, 143, 0.18);
}

.customer-page :where(.primary-button, button.primary-button):hover {
  background: var(--customer-teal-dark);
  border-color: var(--customer-teal-dark);
}

.customer-page :where(.secondary-button, button.secondary-button),
.customer-page .account-entry-shell .secondary-button {
  border-color: rgba(11, 31, 58, 0.2);
  background: var(--customer-navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.14);
}

.customer-page :where(input, select, textarea) {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.58);
  border-radius: 6px;
  background: #fff;
  color: var(--customer-ink);
  font-family: var(--customer-body-font);
}

.customer-page textarea {
  min-height: 112px;
}

.customer-page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--customer-teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(35, 155, 143, 0.14);
}

.customer-page :where(
  .report-panel,
  .report-document-panel,
  .report-visual-summary-card,
  .question-panel,
  .payment-panel,
  .feedback-form-card,
  .feedback-contact-card,
  .auth-card,
  .sample-report-card
) {
  border-radius: 8px !important;
}

.customer-page .landing-visual,
.customer-page .account-entry-shell .auth-primary-panel,
body.customer-page.is-authenticated :where(
  .form-panel,
  .report-panel,
  .history-panel,
  .payment-panel,
  .question-panel,
  .daily-gua-panel,
  .profile-step-card
) {
  border-color: rgba(148, 163, 184, 0.36) !important;
  border-radius: 8px !important;
  background: var(--customer-paper) !important;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.07) !important;
}

body.customer-page.is-authenticated .profile-stepper {
  border-color: rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: #f8fafc;
}

body.customer-page.is-authenticated .profile-step {
  border-radius: 6px;
}

body.customer-page.is-authenticated .profile-step.active {
  background: rgba(35, 155, 143, 0.12);
  color: var(--customer-navy);
}

body.customer-page.is-authenticated .profile-step.active i {
  background: var(--customer-teal);
}

.customer-page.report-reader-page :where(
  .report-document-panel,
  .report-text.report-rich,
  .report-visual-summary-card,
  .reader-tools,
  .daily-gua-panel,
  .question-panel
) {
  border-radius: 8px !important;
}

.customer-page .site-footer {
  border-top-color: rgba(203, 213, 225, 0.72);
  background: #fff;
  color: var(--customer-muted);
}

/* Customer reports share one reading rhythm across briefs, deep reports and follow-ups. */
.customer-page .report-text.report-rich {
  gap: 0;
  padding: clamp(22px, 4vw, 42px) !important;
  color: #263442;
  font-size: 16px;
  line-height: 1.85;
}

.customer-page .report-document-title {
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.34);
  padding-bottom: 18px;
  color: var(--customer-navy);
  font-family: var(--customer-title-font);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}

.customer-page .report-subsection-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-top: 24px;
  color: var(--customer-navy);
  font-family: var(--customer-title-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.customer-page .report-subsection-title::before {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--customer-teal);
  content: "";
}

.customer-page .report-insight-row {
  display: grid;
  grid-template-columns: minmax(86px, 118px) minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  border-top: 1px solid rgba(203, 213, 225, 0.66);
  padding: 15px 0;
}

.customer-page .report-insight-row:first-of-type {
  border-top: 0;
}

.customer-page .report-insight-row > strong {
  color: #526373;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.customer-page .report-insight-row > p {
  max-width: 68ch;
  color: #263442;
  line-height: 1.85;
}

.customer-page .report-insight-row.insight-conclusion {
  margin: 14px 0 4px;
  border: 1px solid rgba(35, 155, 143, 0.24);
  border-left: 4px solid var(--customer-teal);
  border-radius: 6px;
  background: rgba(35, 155, 143, 0.06);
  padding: 16px 18px;
}

.customer-page .report-insight-row.insight-conclusion > strong {
  color: #126f68;
}

.customer-page .report-insight-row.insight-action > strong {
  color: #2f766b;
}

.customer-page .report-insight-row.insight-boundary > strong,
.customer-page .report-insight-row.insight-verify > strong {
  color: #7a6847;
}

.customer-page .report-list {
  display: grid;
  gap: 10px;
  max-width: 68ch;
  margin: 4px 0 18px;
  padding: 14px 18px 14px 42px;
  border-left: 2px solid rgba(35, 155, 143, 0.28);
  background: #f8fafc;
  color: #263442;
}

.customer-page .report-list li {
  padding-left: 4px;
  line-height: 1.75;
}

.customer-page .report-list li::marker {
  color: #14857b;
  font-weight: 700;
}

.customer-page .report-note {
  margin-top: 18px;
  border: 0;
  border-left: 3px solid rgba(184, 148, 72, 0.48);
  border-radius: 0 6px 6px 0;
  background: rgba(245, 241, 228, 0.68);
  padding: 13px 15px;
  color: #6b6255;
  font-size: 14px;
  line-height: 1.75;
}

.customer-page .qa-list > article {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: #fff;
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.05);
}

.customer-page .qa-question {
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  padding-bottom: 14px;
  color: var(--customer-navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}

.customer-page .qa-answer {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  white-space: normal;
}

.customer-page .followup-answer-layout {
  display: grid;
  gap: 0;
}

.customer-page .followup-answer-layout > p {
  margin: 0;
  color: #334454;
  line-height: 1.82;
}

.customer-page .followup-answer-layout > p + p {
  margin-top: 12px;
}

.customer-page .followup-answer-layout .report-list {
  margin-bottom: 0;
}

.customer-page .report-daily-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  scroll-margin-top: 86px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 247, 0.92));
  padding: 22px 24px;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.06);
}

.customer-page .report-daily-entry h2 {
  margin: 3px 0 7px;
  color: var(--customer-navy);
  font-family: var(--customer-title-font);
  font-size: 22px;
  line-height: 1.35;
}

.customer-page .report-daily-entry .muted {
  max-width: 66ch;
  margin: 0;
  line-height: 1.7;
}

.customer-page .report-daily-entry .primary-button {
  width: fit-content;
  white-space: nowrap;
}

.customer-page .report-chart-summary {
  display: grid;
  grid-template-columns: minmax(96px, 124px) minmax(0, 1fr);
  gap: 22px;
  margin: 12px 0 20px;
  border-block: 1px solid rgba(148, 163, 184, 0.46);
  padding: 18px 0;
}

.customer-page .report-chart-summary-label {
  display: grid;
  align-content: start;
  gap: 9px;
}

.customer-page .report-chart-summary-label span {
  color: #526373;
  font-size: 13px;
  font-weight: 700;
}

.customer-page .report-chart-summary-label strong {
  width: fit-content;
  border: 1px solid rgba(35, 155, 143, 0.28);
  border-radius: 6px;
  background: rgba(35, 155, 143, 0.07);
  padding: 5px 8px;
  color: #126f68;
  font-family: var(--customer-title-font);
  font-size: 15px;
}

.customer-page .report-chart-summary-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.customer-page .report-chart-summary .pillar-row,
.customer-page .report-chart-summary .element-row {
  display: grid;
  gap: 8px;
}

.customer-page .report-chart-summary .pillar-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-page .report-chart-summary .element-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.customer-page .report-chart-summary .pillar-chip,
.customer-page .report-chart-summary .element-chip {
  min-width: 0;
  border-radius: 6px;
  box-shadow: none;
}

.customer-page .visual-main-axis {
  border: 1px solid rgba(35, 155, 143, 0.2);
  border-left: 4px solid var(--customer-teal);
  border-radius: 6px;
  background: rgba(35, 155, 143, 0.045);
}

.customer-page .visual-main-axis p {
  font-family: var(--customer-body-font);
  font-size: 18px;
  line-height: 1.75;
}

.customer-page .visual-summary-advice ol {
  counter-reset: visual-advice;
  list-style: none;
  padding: 0;
}

.customer-page .visual-summary-advice li {
  counter-increment: visual-advice;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(203, 213, 225, 0.62);
  padding: 12px 4px;
  line-height: 1.75;
}

.customer-page .visual-summary-advice li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #173c52;
  color: #fff;
  content: counter(visual-advice);
  font-size: 12px;
  font-weight: 700;
}

.customer-page .report-feedback-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.42);
  padding-top: 20px;
}

.customer-page .report-feedback-cta h3 {
  margin: 3px 0 6px;
  color: var(--customer-navy);
  font-family: var(--customer-title-font);
  font-size: 20px;
}

.customer-page .report-feedback-cta p {
  max-width: 64ch;
  margin: 0;
  color: var(--customer-muted);
  line-height: 1.7;
}

.customer-page .report-feedback-cta .secondary-button {
  width: fit-content;
  white-space: nowrap;
}

.customer-page .complaint-feedback-contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.customer-page .complaint-feedback-contact-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
}

.customer-page .complaint-feedback-contact-item + .complaint-feedback-contact-item {
  border-left: 1px solid rgba(47, 95, 111, 0.14);
}

@media (max-width: 720px) {
  .customer-page .site-header {
    min-height: 58px;
  }

  .customer-page :where(.primary-button, .secondary-button, .ghost-button, button) {
    min-height: 44px;
  }

  .customer-page .report-text.report-rich {
    padding: 18px !important;
    font-size: 15px;
  }

  .customer-page .report-subsection-title {
    margin-top: 24px;
    padding-top: 20px;
    font-size: 18px;
  }

  .customer-page .report-insight-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .customer-page .report-insight-row.insight-conclusion {
    gap: 6px;
    padding: 14px;
  }

  .customer-page .report-list {
    padding: 12px 12px 12px 34px;
  }

  .customer-page .report-daily-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .customer-page .report-daily-entry .primary-button {
    width: 100%;
  }

  .customer-page .report-chart-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-page .report-chart-summary-label {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .customer-page .report-chart-summary .pillar-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-page .report-chart-summary .element-row {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .customer-page .visual-main-axis {
    grid-template-columns: 1fr;
  }

  .customer-page .visual-main-axis span {
    width: fit-content;
    min-width: 0;
    min-height: 0;
    padding: 5px 9px;
  }

  .customer-page .visual-main-axis p {
    font-size: 16px;
  }

  .customer-page .report-feedback-cta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-page .report-feedback-cta .secondary-button {
    width: 100%;
  }

  .customer-page .complaint-feedback-contact-row {
    grid-template-columns: 1fr;
  }

  .customer-page .complaint-feedback-contact-item + .complaint-feedback-contact-item {
    border-top: 1px solid rgba(47, 95, 111, 0.14);
    border-left: 0;
  }
}
