:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #dfe5ee;
  --paper: #fbfaf6;
  --white: #ffffff;
  --blue: #1d5f92;
  --blue-dark: #133a5a;
  --teal: #1a9a91;
  --gold: #b9863f;
  --red: #b94f4b;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 0 36px;
  background: rgba(251, 250, 246, 0.86);
  border-bottom: 1px solid rgba(223, 229, 238, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a,
.header-actions a,
.header-actions button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

.nav a:hover,
.header-actions a:hover,
.header-actions button:hover {
  background: rgba(29, 95, 146, 0.08);
  color: var(--blue-dark);
}

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

.user-menu {
  position: relative;
}

.user-menu-trigger {
  gap: 6px;
}

.menu-caret {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 178px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 46px rgba(23, 32, 51, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.user-menu:hover .user-menu-panel,
.user-menu:focus-within .user-menu-panel,
.user-menu.is-open .user-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.user-menu-panel button {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
}

.user-menu-panel button:hover,
.user-menu-panel button:focus-visible {
  background: rgba(29, 95, 146, 0.08);
  color: var(--blue-dark);
  outline: none;
}

.user-menu-divider {
  display: block;
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  background-image: url("/hero-bg.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 18, 30, 0.78), rgba(6, 18, 30, 0.32) 52%, rgba(6, 18, 30, 0.14)),
    linear-gradient(180deg, rgba(6, 18, 30, 0.3), rgba(6, 18, 30, 0.54));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  max-width: 780px;
  padding: 90px 36px 120px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.hero-actions,
.form-actions,
.report-actions,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 28px rgba(26, 154, 145, 0.28);
}

.secondary-button {
  background: var(--blue-dark);
  color: #fff;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.ghost-button.light {
  background: rgba(29, 95, 146, 0.08);
  border-color: rgba(29, 95, 146, 0.18);
  color: var(--blue-dark);
}

.danger-button {
  background: rgba(185, 79, 75, 0.1);
  color: var(--red);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 46px;
}

.hero-metrics div {
  flex: 1 1 132px;
  min-width: 132px;
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

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

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 36px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.app-heading h2,
.price-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p,
.price-panel p,
.price-details,
.app-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-card,
.auth-panel,
.form-panel,
.report-panel,
.history-panel,
.payment-panel,
.question-panel,
.feedback-panel,
.daily-gua-panel,
.admin-panel,
.metric-card,
.legal-panel,
.price-panel,
.price-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 36px rgba(23, 32, 51, 0.06);
}

.feature-card {
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(29, 95, 146, 0.1);
  color: var(--blue);
  font-weight: 900;
}

.feature-card h3 {
  margin: 18px 0 8px;
}

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

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

.flow-list {
  counter-reset: flow;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.flow-list li::before {
  content: counter(flow);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 900;
}

.flow-list span,
.flow-list small {
  display: block;
}

.flow-list span {
  font-weight: 900;
}

.flow-list small {
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.price-panel,
.price-details {
  padding: 28px;
}

.price {
  margin: 18px 0;
  color: var(--blue-dark);
  font-size: 52px;
  font-weight: 900;
}

.price-details h3 {
  margin: 0 0 12px;
}

.price-details ul {
  margin: 0;
  padding-left: 20px;
}

.payment-qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 12px;
  margin: 12px 0;
}

.payment-qr-card img {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.payment-qr-card strong,
.payment-qr-card span,
.payment-account {
  display: block;
}

.payment-qr-card strong,
.payment-account {
  color: var(--blue-dark);
  font-weight: 900;
}

.payment-qr-card span {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.proof-upload-field input[type="file"] {
  padding: 12px;
  background: #fff;
  border: 1px dashed rgba(29, 95, 146, 0.28);
}

.proof-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 160px;
}

.disclaimer-section {
  padding-top: 34px;
}

.disclaimer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.disclaimer-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 20px;
  box-shadow: 0 12px 36px rgba(23, 32, 51, 0.05);
}

.disclaimer-item strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}

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

.app-shell {
  max-width: 1160px;
  margin: 0 auto 72px;
  padding: 34px 36px 48px;
}

.app-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.app-root {
  display: grid;
  gap: 16px;
}

.auth-grid,
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.auth-panel,
.form-panel,
.report-panel,
.history-panel,
.payment-panel,
.question-panel,
.feedback-panel,
.daily-gua-panel,
.admin-panel,
.legal-panel {
  padding: 24px;
}

.auth-panel h3,
.form-panel h3,
.report-panel h3,
.history-panel h3,
.payment-panel h3,
.question-panel h3 {
  margin: 0 0 14px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-subsection {
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f4faf9;
  padding: 12px 14px;
}

.form-subsection strong,
.form-subsection span {
  display: block;
}

.form-subsection strong {
  color: var(--blue-dark);
}

.form-subsection span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

[data-lang-button].active {
  background: rgba(26, 154, 145, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.advanced-feature-panel {
  background: rgba(255, 255, 255, 0.68);
}

.advanced-feature-panel summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
  list-style: none;
}

.advanced-feature-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-feature-panel summary::before {
  content: "+";
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  margin-right: 8px;
  border-radius: 8px;
  background: rgba(29, 95, 146, 0.1);
  color: var(--blue);
}

.advanced-feature-panel[open] summary {
  margin-bottom: 18px;
}

.advanced-feature-panel[open] summary::before {
  content: "-";
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.compact-form {
  margin-top: 0;
}

.compact-form textarea {
  min-height: 88px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 154, 145, 0.14);
}

.muted {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(29, 95, 146, 0.1);
  color: var(--blue-dark);
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
}

.compact-heading {
  align-items: start;
  margin-bottom: 14px;
}

.calibration-result {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.calibration-list {
  display: grid;
  gap: 12px;
}

.calibration-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  padding: 14px;
}

.calibration-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(26, 154, 145, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.calibration-card strong,
.calibration-card span,
.calibration-card p {
  display: block;
}

.calibration-card strong {
  color: var(--blue-dark);
}

.calibration-card strong span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calibration-card p {
  margin: 6px 0 0;
  line-height: 1.65;
}

.calibration-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.calibration-card li + li {
  margin-top: 5px;
}

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

.history-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  padding: 12px;
}

.history-item:hover {
  border-color: rgba(29, 95, 146, 0.5);
}

.history-item strong,
.history-item span {
  display: block;
}

.history-item span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.order-item strong,
.order-item span {
  display: block;
}

.order-item > div:first-child span {
  color: var(--muted);
  font-size: 13px;
}

.order-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 132px;
}

.order-side > strong {
  color: var(--blue-dark);
}

.report-text,
.qa-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
  color: #1f2937;
}

.report-text.report-rich {
  white-space: normal;
  display: grid;
  gap: 14px;
  line-height: 1.82;
  font-size: 16px;
}

.report-rich p {
  margin: 0;
}

.report-rich > p {
  max-width: 76ch;
}

.delivery-progress-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(29, 95, 146, 0.16);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6fbfb);
  padding: 16px;
}

.delivery-progress-card + .report-panel,
.delivery-progress-card + .payment-panel {
  margin-top: 14px;
}

.delivery-progress-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.delivery-progress-head h2,
.delivery-progress-head h3,
.delivery-progress-head p {
  margin: 0;
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.delivery-step {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(29, 95, 146, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--muted);
}

.delivery-step span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(29, 95, 146, 0.09);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.delivery-step strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.delivery-step.done {
  border-color: rgba(26, 154, 145, 0.3);
  color: #176c66;
}

.delivery-step.done span,
.delivery-step.current span {
  background: var(--teal);
  color: #fff;
}

.delivery-step.current {
  border-color: rgba(185, 134, 63, 0.44);
  background: #fffaf0;
  color: var(--blue-dark);
  box-shadow: 0 10px 22px rgba(185, 134, 63, 0.12);
}

.delivery-timeline,
.admin-order-timeline {
  display: grid;
  gap: 8px;
}

.delivery-timeline > div,
.admin-order-timeline > div {
  display: grid;
  gap: 2px;
  border-left: 3px solid rgba(29, 95, 146, 0.18);
  background: rgba(29, 95, 146, 0.045);
  border-radius: 8px;
  padding: 8px 10px;
}

.delivery-timeline strong,
.admin-order-timeline strong {
  color: var(--blue-dark);
  font-size: 13px;
}

.delivery-timeline span,
.admin-order-timeline span {
  color: var(--muted);
  font-size: 12px;
}

.admin-order-timeline .internal-event {
  border-left-color: var(--gold);
  background: rgba(185, 134, 63, 0.08);
}

.compact-delivery-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generation-progress {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(29, 95, 146, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f6fafc);
  padding: 12px 14px;
}

.compact-progress {
  padding: 10px;
}

.progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.progress-meta strong {
  color: var(--blue-dark);
}

.progress-meta small {
  margin-left: auto;
  color: var(--gold);
  font-weight: 800;
}

.progress-track,
.reader-progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(29, 95, 146, 0.1);
}

.progress-track span,
.reader-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.2s ease;
}

.reader-tools {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(29, 95, 146, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  box-shadow: 0 10px 26px rgba(18, 63, 99, 0.08);
  backdrop-filter: blur(10px);
}

.reader-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 13px;
}

.reader-actions,
.report-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-toc {
  max-height: 132px;
  overflow: auto;
  padding-top: 2px;
}

.report-toc button {
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-radius: 8px;
  background: #f6fafc;
  color: var(--blue-dark);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.report-toc button:hover {
  border-color: rgba(29, 95, 146, 0.36);
  background: #edf5f8;
}

.report-markdown-title {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.report-markdown-title.level-1 {
  border-left: 4px solid var(--blue-dark);
  padding-left: 12px;
}

.report-markdown-title.level-2,
.report-markdown-title.level-3 {
  font-size: 18px;
  color: var(--blue);
}

.annual-trend-card {
  display: grid;
  gap: 18px;
  margin: 10px -18px;
  padding: 26px 18px;
  border-top: 1px solid rgba(18, 63, 99, 0.16);
  border-bottom: 1px solid rgba(18, 63, 99, 0.16);
  background: #f7fafb;
}

.annual-trend-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.annual-trend-heading h3 {
  margin: 5px 0 8px;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.annual-trend-heading p {
  max-width: 66ch;
  color: var(--muted);
}

.annual-trend-heading .secondary-button {
  flex: 0 0 auto;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #334b5b;
  font-size: 14px;
  font-weight: 700;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend-line {
  width: 28px;
  height: 3px;
  background: var(--trend-color);
}

.annual-trend-chart-wrap {
  width: 100%;
  overflow-x: auto;
  border-block: 1px solid rgba(18, 63, 99, 0.1);
  background: #fff;
  scrollbar-width: thin;
}

.annual-trend-svg {
  display: block;
  width: 100%;
  min-width: 720px;
  aspect-ratio: 1040 / 460;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.trend-grid-line {
  stroke: rgba(18, 63, 99, 0.13);
  stroke-width: 1;
}

.trend-axis-label,
.trend-month-label,
.trend-axis-note,
.trend-band-label {
  fill: #657685;
  font-size: 13px;
}

.trend-band-label {
  fill: rgba(46, 67, 81, 0.7);
  font-size: 12px;
}

.trend-current-line {
  stroke: #0f756f;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.trend-current-label {
  fill: #0f756f;
  font-size: 12px;
  font-weight: 800;
}

.trend-series-line,
.trend-point {
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.trend-series-line.is-past,
.trend-point.is-past {
  opacity: 0.38;
}

.trend-point.is-selected {
  filter: drop-shadow(0 0 4px rgba(18, 63, 99, 0.48));
  stroke-width: 4;
}

.trend-hit-area {
  cursor: pointer;
}

.trend-month-tabs {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  gap: 6px;
}

.trend-month-tabs button {
  min-height: 38px;
  border: 1px solid rgba(18, 63, 99, 0.14);
  border-radius: 6px;
  background: #fff;
  color: #455a68;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.trend-month-tabs button:hover,
.trend-month-tabs button.is-active {
  border-color: var(--blue);
  background: var(--blue-dark);
  color: #fff;
}

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

.trend-highlights span {
  border-left: 3px solid #17877f;
  background: #edf7f5;
  padding: 11px 13px;
}

.trend-highlights span:last-child {
  border-left-color: #b8862f;
  background: #fff7e9;
}

.trend-month-detail {
  display: grid;
  gap: 16px;
}

.trend-month-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.trend-month-heading h4 {
  margin: 4px 0 0;
  color: var(--blue-dark);
  font-size: 18px;
  letter-spacing: 0;
}

.trend-month-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trend-month-grade {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e7f1f5;
  color: var(--blue-dark);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.trend-score-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 3px;
  border-top: 3px solid var(--blue-dark);
  background: #fff;
  padding: 12px;
}

.trend-score-card span,
.trend-score-card small {
  color: var(--muted);
  font-size: 12px;
}

.trend-score-card strong {
  color: var(--blue-dark);
  font-size: 25px;
  line-height: 1;
}

.trend-score-wealth {
  border-top-color: #b8862f;
}

.trend-score-relationship {
  border-top-color: #b45170;
}

.trend-score-health {
  border-top-color: #17877f;
}

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

.trend-detail-grid > div {
  border-left: 2px solid rgba(18, 63, 99, 0.2);
  padding-left: 12px;
}

.trend-detail-grid h5 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 15px;
}

.trend-detail-grid ul {
  margin: 0;
  padding-left: 19px;
  color: #354b59;
}

.trend-detail-grid li + li {
  margin-top: 5px;
}

.trend-dimension-notes {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(18, 63, 99, 0.12);
  padding-top: 14px;
}

.trend-dimension-notes p {
  max-width: none;
}

.trend-disclaimer {
  max-width: none;
  color: var(--muted);
  font-size: 13px;
}

.daily-gua-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(26, 154, 145, 0.08), rgba(185, 134, 63, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.daily-gua-panel h2 {
  margin: 0;
  color: var(--blue-dark);
}

.daily-gua-card,
.daily-gua-empty,
.daily-admin-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(29, 95, 146, 0.16);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.daily-gua-empty strong {
  color: var(--blue-dark);
}

.daily-gua-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.daily-gua-head > div > strong,
.daily-gua-head > div > span {
  display: block;
}

.daily-gua-head > div > strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.daily-gua-head > div > span {
  color: var(--muted);
  font-size: 13px;
}

.daily-gua-score {
  display: grid;
  min-width: 132px;
  gap: 2px;
  border: 1px solid rgba(185, 134, 63, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(185, 134, 63, 0.14), rgba(185, 134, 63, 0.07));
  color: var(--gold);
  padding: 10px 12px;
  text-align: center;
}

.daily-gua-score small,
.daily-gua-score em,
.daily-gua-score strong {
  display: block;
  font-style: normal;
  line-height: 1.2;
}

.daily-gua-score small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.daily-gua-score strong {
  color: var(--gold);
  font-size: 20px;
  font-weight: 900;
}

.daily-gua-score em {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.daily-reading-body {
  max-height: 720px;
  overflow: auto;
}

.lingqian-evidence {
  border: 1px solid rgba(185, 134, 63, 0.24);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.lingqian-evidence summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.lingqian-evidence .report-text {
  margin-top: 12px;
  background: #fff;
}

.report-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  max-width: 82ch;
  border: 1px solid rgba(29, 95, 146, 0.16);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: rgba(29, 95, 146, 0.06);
  padding: 12px 14px;
}

.report-callout strong {
  display: inline-grid;
  min-width: 44px;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 13px;
}

.report-callout span {
  color: var(--ink);
  font-weight: 700;
}

.callout-good {
  border-left-color: var(--teal);
  background: rgba(26, 154, 145, 0.08);
}

.callout-good strong {
  background: var(--teal);
}

.callout-bad,
.callout-caution {
  border-left-color: var(--red);
  background: rgba(185, 79, 75, 0.07);
}

.callout-bad strong,
.callout-caution strong {
  background: var(--red);
}

.callout-basis {
  border-left-color: var(--gold);
  background: rgba(185, 134, 63, 0.08);
}

.callout-basis strong {
  background: var(--gold);
}

.daily-history summary,
.daily-admin-card summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.daily-history-list,
.daily-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.daily-history-list article {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.78);
  padding: 10px;
}

.report-history-card {
  display: grid;
  gap: 10px;
}

.report-history-card > a {
  display: grid;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.daily-history-list strong,
.daily-history-list span,
.daily-history-list small {
  display: block;
}

.daily-history-list span,
.daily-history-list small {
  color: var(--muted);
}

.report-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.35;
}

.report-section-title span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(29, 95, 146, 0.1);
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.report-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 4px;
}

.report-fact {
  min-width: 0;
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-left: 4px solid rgba(29, 95, 146, 0.7);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  padding: 12px 14px;
}

.report-fact.wide {
  grid-column: 1 / -1;
}

.fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.fact-value {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fact-农历,
.fact-时间提醒 {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.fact-四柱 {
  border-left-color: var(--teal);
  background: #f3fbfa;
}

.fact-五行统计 {
  border-left-color: var(--red);
  background: #fff7f6;
}

.pillar-row,
.element-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-chip {
  display: grid;
  gap: 3px;
  min-width: 84px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(26, 154, 145, 0.28);
  padding: 8px 10px;
  box-shadow: 0 8px 20px rgba(26, 154, 145, 0.08);
}

.pillar-chip small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.pillar-chip strong {
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.1;
}

.element-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  background: #fff;
  padding: 6px 10px;
  font-weight: 900;
}

.element-chip strong {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.element-木 strong {
  background: #2f8f5b;
}

.element-火 strong {
  background: #c64f43;
}

.element-土 strong {
  background: #b9863f;
}

.element-金 strong {
  background: #8a7a46;
}

.element-水 strong {
  background: #1d5f92;
}

.report-list-line {
  position: relative;
  border-left: 3px solid rgba(29, 95, 146, 0.28);
  background: rgba(29, 95, 146, 0.045);
  border-radius: 8px;
  padding: 10px 12px;
}

.report-list-line.score-line {
  border-left-color: var(--gold);
  background: #fffaf0;
  font-weight: 700;
}

.report-note {
  border-radius: 8px;
  background: rgba(105, 115, 134, 0.08);
  color: var(--muted);
  padding: 12px 14px;
}

.qa-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.qa-question {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.loading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(29, 95, 146, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--blue-dark);
}

.admin-shell,
.report-page,
.legal-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 36px 80px;
}

.admin-heading h1,
.report-page h1,
.legal-page h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
}

.admin-root {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 20px;
  background: #fff;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  color: var(--blue-dark);
  font-size: 32px;
  line-height: 1;
}

.metric-card span {
  margin-top: 8px;
  color: var(--muted);
}

.operations-panel {
  border-color: rgba(19, 164, 150, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 249, 0.9));
}

.operations-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.queue-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 154px;
  border: 1px solid rgba(29, 95, 146, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.queue-card.needs-attention {
  border-color: rgba(231, 153, 28, 0.42);
  box-shadow: inset 4px 0 0 rgba(231, 153, 28, 0.72);
}

.queue-card strong,
.queue-card span {
  display: block;
}

.queue-card strong {
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1;
}

.queue-card span {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 900;
}

.queue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.operations-clear {
  margin: 14px 0 0;
}

.muted-admin-panel {
  background: rgba(255, 255, 255, 0.66);
}

.muted-admin-panel details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.muted-admin-panel summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.maintenance-grid div {
  min-width: 0;
  border: 1px solid rgba(29, 95, 146, 0.12);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 12px;
}

.maintenance-grid strong,
.maintenance-grid span {
  display: block;
}

.maintenance-grid strong {
  color: var(--blue-dark);
}

.maintenance-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.payment-settings-panel textarea {
  min-height: 110px;
}

.order-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}

.segmented-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 1px solid rgba(29, 95, 146, 0.14);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 6px;
}

.segmented-filter button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 900;
}

.segmented-filter button.active {
  background: var(--blue-dark);
  color: #fff;
}

.segmented-filter span {
  margin-left: 6px;
  opacity: 0.74;
}

.order-search {
  display: grid;
  gap: 4px;
  min-width: min(320px, 100%);
}

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

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

.admin-panel h2,
.question-panel h2,
.payment-panel h2 {
  margin: 0 0 14px;
}

.feedback-panel h2,
.feedback-panel h3 {
  margin: 0 0 12px;
}

.same-chart-section,
.my-feedback {
  margin-top: 22px;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.experience-card p {
  margin: 10px 0 0;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

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

.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.review-card h3 {
  margin: 0 0 4px;
}

.review-details {
  margin-top: 12px;
}

.review-details summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.customer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.customer-card h3 {
  margin: 0 0 4px;
}

.customer-card p {
  margin: 2px 0;
}

.customer-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.customer-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.customer-stats span {
  border-radius: 8px;
  background: rgba(29, 95, 146, 0.06);
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.customer-stats strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 1.1;
}

.customer-latest {
  display: grid;
  gap: 3px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.customer-latest a,
.mini-list a {
  color: var(--blue-dark);
  font-weight: 900;
}

.customer-latest span,
.mini-list span {
  color: var(--muted);
  font-size: 13px;
}

.customer-details {
  margin-top: 12px;
}

.customer-details summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-list > a,
.mini-list > div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.72);
  padding: 10px;
}

.report-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.report-edit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-editor {
  min-height: 420px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  font: 15px/1.7 "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  resize: vertical;
}

.report-editor:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 154, 145, 0.14);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
}

.data-table small {
  display: block;
  color: var(--muted);
}

.order-detail-panel {
  margin-top: 10px;
  min-width: 360px;
}

.order-detail-panel summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.admin-order-detail-grid {
  display: grid;
  gap: 12px;
  min-width: min(680px, calc(100vw - 48px));
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(29, 95, 146, 0.12);
  border-radius: 8px;
  background: #fbfefd;
}

.admin-order-detail-grid section {
  display: grid;
  gap: 8px;
}

.admin-order-detail-grid h4 {
  margin: 0;
  color: var(--blue-dark);
}

.admin-order-detail-grid p {
  margin: 0;
}

.admin-order-notes {
  display: grid;
  gap: 8px;
}

.admin-note {
  border: 1px solid rgba(185, 134, 63, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.admin-note p {
  margin: 0 0 4px;
}

.admin-note span {
  color: var(--muted);
  font-size: 12px;
}

.order-note-form {
  display: grid;
  gap: 8px;
}

.order-note-form textarea {
  min-height: 76px;
  resize: vertical;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-top: 24px;
}

.legal-nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.legal-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--blue-dark);
  font-weight: 800;
}

.legal-panel h2 {
  margin: 0 0 12px;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .nav {
    display: none;
  }

  .hero-content,
  .section,
  .app-shell,
  .admin-shell,
  .report-page,
  .legal-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    width: 100%;
  }

  .feature-grid,
  .split,
  .pricing,
  .disclaimer-grid,
  .auth-grid,
  .workspace-grid,
  .metric-grid,
  .legal-grid,
  .report-fact-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .app-heading,
  .site-footer {
    display: block;
  }

  .header-actions {
    gap: 6px;
  }

  .user-menu-panel {
    right: -54px;
  }

  .order-item {
    grid-template-columns: 1fr;
  }

  .order-side {
    justify-items: start;
  }

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

  .order-detail-panel {
    min-width: 0;
  }

  .admin-order-detail-grid {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    gap: 6px;
    padding: 8px 12px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .header-actions {
    min-width: 0;
    margin-left: auto;
    gap: 2px;
  }

  .header-actions a,
  .header-actions button {
    padding: 6px 7px;
    white-space: nowrap;
    font-size: 13px;
  }

  .header-actions a[href="/admin.html"] {
    display: none;
  }

  .header-actions button[data-action="scroll-app"] {
    display: none;
  }

  .header-actions .status-pill {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    padding-top: 64px;
    max-width: 390px;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .hero-metrics div {
    min-width: 0;
    padding: 12px;
  }

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

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .price {
    font-size: 40px;
  }

  .report-text.report-rich {
    padding: 14px;
    font-size: 15px;
  }

  .annual-trend-card {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .annual-trend-heading,
  .trend-month-heading {
    display: grid;
  }

  .annual-trend-heading .secondary-button {
    width: 100%;
  }

  .trend-month-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trend-highlights,
  .trend-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .delivery-progress-head {
    display: grid;
  }

  .delivery-steps,
  .compact-delivery-steps {
    grid-template-columns: 1fr;
  }

  .report-panel,
  .payment-panel,
  .question-panel,
  .feedback-panel,
  .daily-gua-panel,
  .admin-panel,
  .legal-panel {
    padding: 16px;
  }

  .report-section-title {
    font-size: 18px;
  }

  .pillar-chip {
    min-width: calc(50% - 4px);
  }

  .daily-gua-head {
    align-items: start;
    display: grid;
  }

  .daily-gua-score {
    width: 100%;
    min-width: 0;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    text-align: left;
  }

  .daily-gua-score small,
  .daily-gua-score strong,
  .daily-gua-score em {
    display: inline;
  }

  .report-callout {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root {
    --paper: #fff;
    --ink: #111827;
  }

  body {
    background: #fff;
    color: #111827;
    font-size: 12pt;
  }

  .site-header,
  .toast,
  .reader-tools,
  .delivery-progress-card,
  .daily-gua-panel,
  .feedback-panel,
  .question-panel,
  .report-actions,
  .payment-panel {
    display: none !important;
  }

  .report-page {
    max-width: none;
    padding: 0;
  }

  .report-page h1 {
    margin: 0 0 8px;
    font-size: 24pt;
  }

  .report-page > .muted {
    margin: 0 0 18px;
  }

  .report-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .report-text.report-rich {
    border: 0;
    background: #fff;
    padding: 0;
    font-size: 12pt;
    line-height: 1.8;
  }

  .annual-trend-card,
  .trend-month-detail,
  .trend-score-card,
  .report-callout,
  .pillar-chip {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .annual-trend-card {
    border-color: #cbd5e1;
    box-shadow: none;
  }
}
