:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #617084;
  --line: #dfe5ee;
  --soft-line: #e9edf3;
  --paper: #ffffff;
  --wash: #f6f7fb;
  --teal: #2f6f73;
  --teal-soft: #e4f4f2;
  --navy: #1f2937;
  --green: #166534;
  --green-soft: #dcfce7;
  --gold: #8a5a00;
  --gold-soft: #fff3c4;
  --rose: #9f1239;
  --rose-soft: #ffe4e6;
  --shadow: 0 18px 42px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(145deg, rgba(47, 111, 115, 0.10), transparent 34rem),
    linear-gradient(315deg, rgba(138, 90, 0, 0.10), transparent 28rem),
    var(--wash);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.preview-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.guide-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.profile-panel,
.progress-wrap,
.dimension-card,
.question-card,
.report {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 22px;
  margin-bottom: 22px;
}

.profile-head strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  font-weight: 850;
}

.profile-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

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

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

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(47, 111, 115, 0.16);
  border-color: var(--teal);
}

.guide-item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 229, 238, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-item strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.guide-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
  min-height: 260px;
  padding: 8px 0 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

h1 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 850;
}

.subtitle {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(223, 229, 238, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.metric strong {
  color: var(--teal);
  font-size: 34px;
  line-height: 1;
}

.metric span {
  color: #465264;
  font-size: 15px;
}

.progress-wrap {
  padding: 18px;
  margin-bottom: 22px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #465264;
  font-size: 15px;
  margin-bottom: 12px;
}

.progress-track {
  height: 10px;
  background: var(--soft-line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 14px;
}

.save-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dimension-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dimension-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  color: #4c596b;
  font-size: 13px;
  font-weight: 700;
}

.dimension-pill strong {
  color: var(--teal);
  font-weight: 900;
}

.section-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #4c596b;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--teal);
}

.tab.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.tab-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(47, 111, 115, 0.12);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.tab.active .tab-index {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dimension-card {
  padding: 22px;
  margin-bottom: 18px;
}

.dimension-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.dimension-name {
  display: block;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 850;
}

.core-question,
.question-hint,
.report-head p {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.core-question {
  margin-top: 7px;
}

.dimension-icon {
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.dimension-icon::before,
.dimension-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.dimension-icon.spark::before {
  width: 20px;
  height: 20px;
  background: var(--teal);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0 50%, 39% 35%);
}

.dimension-icon.compass::before {
  width: 23px;
  height: 23px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.dimension-icon.compass::after {
  width: 7px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: rotate(35deg);
}

.dimension-icon.chart::before {
  left: 11px;
  right: auto;
  bottom: 10px;
  top: auto;
  width: 5px;
  height: 12px;
  background: var(--teal);
  box-shadow: 8px -6px 0 var(--gold), 16px -12px 0 var(--navy);
  border-radius: 3px 3px 0 0;
}

.dimension-icon.diamond::before {
  width: 21px;
  height: 21px;
  background: var(--teal);
  transform: rotate(45deg);
  border-radius: 4px;
}

.dimension-icon.pin::before {
  width: 18px;
  height: 18px;
  top: 8px;
  bottom: auto;
  background: var(--teal);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.dimension-icon.pin::after {
  width: 6px;
  height: 6px;
  top: 14px;
  bottom: auto;
  background: #ffffff;
  border-radius: 50%;
}

.questions {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 22px;
}

.question-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.question-title {
  flex: 1;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
}

.question-type {
  flex: 0 0 auto;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.question-hint {
  margin-top: 8px;
}

.options,
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.option,
.rank-option {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f7f9fc;
  color: #253044;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.option:hover,
.rank-option:hover {
  border-color: var(--teal);
}

.option.selected,
.rank-option.selected {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: #173d40;
  font-weight: 800;
}

.rank-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.rank-num {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin: 26px 0;
}

.payment-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: -10px 0 24px;
}

.mobile-pager {
  position: sticky;
  bottom: 18px;
  z-index: 18;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 108px;
  align-items: center;
  gap: 12px;
  margin: 8px 0 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 32px rgba(31, 41, 55, 0.12);
  backdrop-filter: blur(12px);
}

.mobile-pager-button {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #2f3b4e;
  font-size: 14px;
  font-weight: 800;
}

.mobile-pager-button.primary {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.mobile-pager-button.primary[data-mode="ready"] {
  background: #0f766e;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.mobile-pager-center {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: center;
}

.mobile-pager-center strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.mobile-pager-center span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ghost,
.primary {
  height: 52px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.ghost {
  color: #2f3b4e;
  background: var(--paper);
  border: 1px solid #d8dee8;
}

.primary {
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.ghost:hover,
.primary:hover {
  filter: brightness(0.97);
}

.primary:disabled {
  background: #a8b4c3;
  border-color: #a8b4c3;
  color: #eef2f7;
  cursor: not-allowed;
  filter: none;
}

.mobile-pager-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.report {
  padding: 24px;
}

.hidden {
  display: none;
}

.report h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 850;
}

.report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-head p {
  margin-top: 8px;
}

.report-head-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 260px;
}

.report-save-button {
  min-width: 220px;
  min-height: 56px;
  flex: 0 0 auto;
  box-shadow: 0 14px 28px rgba(47, 111, 115, 0.18);
}

.report-save-hint,
.report-save-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.report-save-hint {
  color: #465264;
  font-weight: 700;
}

.report-save-status {
  color: #465264;
}

.report-save-status.is-loading {
  color: var(--teal);
}

.report-save-status.is-success {
  color: var(--green);
}

.report-save-status.is-error {
  color: var(--rose);
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.image-preview.hidden {
  display: none;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, 0.68);
  backdrop-filter: blur(4px);
}

.image-preview-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px rgba(17, 24, 39, 0.22);
}

.image-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.image-preview-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.image-preview-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.image-preview-close {
  min-width: 88px;
  height: 44px;
}

.image-preview-body {
  overflow: auto;
  padding: 4px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e5eaf2;
}

.image-preview-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}

.share-export-shell {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 720px;
  pointer-events: none;
  opacity: 0;
}

.share-report {
  width: 720px;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(47, 111, 115, 0.10), transparent 18rem),
    linear-gradient(320deg, rgba(138, 90, 0, 0.08), transparent 16rem),
    #ffffff;
  color: var(--ink);
}

.share-report-hero {
  padding: 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef6f7 100%);
  border: 1px solid #dbe8ea;
}

.share-report-eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.share-report-hero h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
}

.share-report-subtitle {
  margin-top: 12px;
  color: #445367;
  font-size: 16px;
  line-height: 1.75;
}

.share-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.share-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d7e2e5;
  color: #465264;
  font-size: 13px;
  font-weight: 800;
}

.share-report-section {
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5eaf2;
}

.share-report-section h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.share-spotlight {
  background: linear-gradient(180deg, #f9fbfc 0%, #f3f8f9 100%);
  border-color: #dce7ea;
}

.share-spotlight-summary {
  margin: 0 0 14px;
  color: #223041;
  font-size: 18px;
  line-height: 1.78;
  font-weight: 800;
}

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

.share-focus-card {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dde7ea;
}

.share-focus-label {
  display: block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.share-focus-lead {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 800;
}

.share-focus-support {
  margin: 8px 0 0;
  color: #4b596c;
  font-size: 14px;
  line-height: 1.68;
}

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

.share-overview-card {
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
}

.share-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 111, 115, 0.18);
  color: #173d40;
  font-size: 14px;
  font-weight: 800;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.share-report-item {
  padding: 18px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
}

.share-next {
  background: linear-gradient(180deg, #fff9df 0%, #fff4ca 100%);
  border-color: #f0dfaa;
}

.share-next-summary {
  margin: 0;
  color: #5f4a04;
  font-size: 15px;
  line-height: 1.8;
}

.share-next-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.share-next-action {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.share-next-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: #c58d00;
}

.share-next-action p {
  margin: 0;
  color: #5a4709;
  font-size: 15px;
  line-height: 1.76;
}

.share-report-footer {
  margin-top: 16px;
  color: #5b6778;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  color: #465264;
  font-size: 13px;
  font-weight: 700;
}

.report-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.overview-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fc 100%);
  border: 1px solid #e5eaf2;
}

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

.overview-value {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 850;
}

.overview-note {
  display: block;
  margin-top: 8px;
  color: #4c596b;
  font-size: 14px;
  line-height: 1.6;
}

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

.keyword-section,
.discussion-section {
  margin-top: 22px;
}

.keyword-section h3,
.discussion-section h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 111, 115, 0.2);
  color: #173d40;
  font-size: 14px;
  font-weight: 800;
}

.discussion-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.discussion-item {
  padding: 16px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #e5eaf2;
}

.discussion-item strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.discussion-item p {
  margin-top: 6px;
  color: #4c596b;
  font-size: 14px;
  line-height: 1.65;
}

.report-item {
  padding: 18px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid #e5eaf2;
}

.report-label {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 7px;
}

.report-summary,
.suggestion p {
  display: block;
}

.report-summary {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.summary-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f3f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.summary-text,
.suggestion p {
  margin: 0;
  color: #243044;
  font-size: 15px;
  line-height: 1.82;
}

.suggestion {
  margin-top: 18px;
  padding: 18px;
  background: #fff8db;
  border: 1px solid #f1dda1;
  border-radius: 8px;
}

.suggestion h3 {
  color: #704d00;
  font-size: 17px;
  font-weight: 850;
  margin-bottom: 8px;
}

.next-step-summary {
  margin: 0;
  color: #5f4a04;
  font-size: 15px;
  line-height: 1.78;
}

.next-step-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.next-step-action {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.next-step-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: #c58d00;
}

.next-step-action p {
  margin: 0;
  color: #5a4709;
  font-size: 15px;
  line-height: 1.76;
}

.pay-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(47, 111, 115, 0.10), transparent 34rem),
    linear-gradient(315deg, rgba(138, 90, 0, 0.10), transparent 28rem),
    var(--wash);
}

.cashier-page {
  min-height: 100vh;
  padding: 32px 16px 64px;
  background:
    linear-gradient(145deg, rgba(47, 111, 115, 0.10), transparent 34rem),
    linear-gradient(315deg, rgba(138, 90, 0, 0.10), transparent 28rem),
    var(--wash);
}

.middle-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f4f4;
}

.middle-card {
  width: min(100%, 420px);
  padding: 32px 24px;
}

.loader-container {
  display: grid;
  place-items: center;
}

.loader {
  width: 60px;
  height: 60px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #0d47a1;
  border-right: 8px solid #ffd700;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

.loading-text {
  margin-top: 12px;
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.loading-error {
  color: #c62828;
}

.loading-warn {
  color: #e65100;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cashier-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

.cashier-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1fr;
  gap: 16px;
}

.cashier-panel {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cashier-panel h2 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.method-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.method-card {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 16px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  cursor: pointer;
}

.method-card strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.method-card span {
  color: var(--muted);
  font-size: 14px;
}

.method-card.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.settlement-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #e5eaf2;
}

.settlement-amount {
  color: #4c596b;
  font-size: 15px;
  line-height: 1.5;
}

.settlement-amount strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.pay-card {
  width: min(100%, 520px);
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pay-eyebrow {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.pay-card h1 {
  margin-top: 10px;
  font-size: 38px;
}

.pay-subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid rgba(47, 111, 115, 0.16);
  color: #173d40;
  font-size: 13px;
  font-weight: 800;
}

.pay-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 24px;
}

.qr-wrap {
  display: grid;
  place-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #e5eaf2;
}

.pay-qr {
  width: min(100%, 260px);
  aspect-ratio: 1;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5eaf2;
  padding: 10px;
}

.qr-tip {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.pay-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #e5eaf2;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.pay-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pay-row span:last-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.ghost-link,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 850;
}

.ghost-link {
  color: #2f3b4e;
  background: var(--paper);
  border: 1px solid #d8dee8;
}

.primary-link {
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.admin-page {
  min-height: 100vh;
  padding: 32px 16px 64px;
  background:
    linear-gradient(145deg, rgba(47, 111, 115, 0.10), transparent 34rem),
    linear-gradient(315deg, rgba(138, 90, 0, 0.10), transparent 28rem),
    var(--wash);
}

.admin-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.admin-subtitle,
.admin-tip {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.admin-subtitle {
  margin-top: 10px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 240px 180px minmax(0, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field-grow {
  min-width: 0;
}

.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
}

.admin-tip {
  margin-top: 16px;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-card,
.admin-empty {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.admin-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.admin-card-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #e5eaf2;
  background: #f8fafc;
  color: #465264;
}

.admin-state.success {
  background: var(--green-soft);
  border-color: #b7ebc6;
  color: var(--green);
}

.admin-state.notpay,
.admin-state.userpaying {
  background: #fff8db;
  border-color: #f1dda1;
  color: #704d00;
}

.admin-state.review {
  background: var(--rose-soft);
  border-color: #fecdd3;
  color: var(--rose);
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 16px;
}

.admin-meta div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #e5eaf2;
}

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

.admin-meta b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  word-break: break-all;
}

.admin-card .field {
  margin-top: 16px;
}

.admin-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1040px);
    padding-top: 24px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .guide-band,
  .profile-grid,
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cashier-head,
  .cashier-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .options,
  .rank-list,
  .report-overview,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .status-row,
  .dimension-head,
  .question-title-row {
    flex-direction: column;
  }

  .dimension-summary {
    justify-content: flex-start;
  }

  .dimension-icon,
  .question-type {
    align-self: flex-start;
  }

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

  .report-head {
    flex-direction: column;
  }

  .report-head-actions {
    width: 100%;
    justify-items: stretch;
  }

  .report-save-button {
    width: 100%;
  }

  .report-save-hint,
  .report-save-status {
    text-align: left;
  }

  .image-preview {
    padding: 12px;
  }

  .image-preview-card {
    max-height: calc(100vh - 24px);
    padding: 14px;
  }

  .image-preview-head {
    flex-direction: column;
  }

  .image-preview-close {
    width: 100%;
  }

  .mobile-pager-button {
    min-height: 44px;
  }

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

  .admin-head,
  .admin-card-head {
    flex-direction: column;
  }

  .admin-toolbar,
  .admin-meta {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .hero-panel,
  .guide-band,
  .progress-wrap,
  .profile-panel,
  .section-tabs,
  .dimension-card,
  .questions,
  .actions {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 16px;
    min-height: auto;
  }

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