:root {
  --bg: #f4f0e6;
  --paper: #fffef9;
  --ink: #151f2a;
  --muted: #686f73;
  --line: #ddd3c1;
  --teal: #117f83;
  --teal-dark: #0a6368;
  --teal-soft: #e9f3f1;
  --teal-700: var(--teal);
  --teal-050: var(--teal-soft);
  --green: #6f9b59;
  --gold: #d7a441;
  --coral: #d96f42;
  --danger: #b54d3e;
  --shadow: 0 12px 32px rgb(21 31 42 / 7%);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

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

.text-label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.text-label input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 400;
}

.text-label input:focus-visible {
  outline: 3px solid rgb(215 164 65 / 42%);
  outline-offset: 2px;
}

button {
  border: 0;
}

.brand-bar {
  border-bottom: 1px solid rgb(221 211 193 / 80%);
  background: rgb(255 254 249 / 88%);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  width: min(100% - 40px, 760px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-en,
.brand-cn {
  display: block;
  font-weight: 700;
}

.brand-en {
  color: var(--teal-dark);
  font-size: 12px;
}

.brand-cn {
  font-size: 14px;
}

.page-shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 32px 0 max(48px, env(safe-area-inset-bottom));
}

.view:not(.is-active) {
  display: none;
}

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

.hero-panel {
  padding: clamp(28px, 7vw, 56px);
}

.compact-hero {
  margin-top: min(12vh, 96px);
}

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

.eyebrow.coral {
  color: var(--coral);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 4vw, 20px);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.fact-row > div {
  min-height: 88px;
  padding: 16px;
  border-top: 3px solid var(--teal);
  background: var(--teal-soft);
}

.fact-row > div:nth-child(2) {
  border-color: var(--green);
}

.fact-row strong,
.fact-row span {
  display: block;
}

.fact-row strong {
  font-size: 17px;
}

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

.notice-block {
  margin-bottom: 30px;
  padding: 20px 0 4px 20px;
  border-left: 4px solid var(--gold);
}

.notice-block h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.notice-block p {
  margin-bottom: 10px;
  color: var(--muted);
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  color: white;
  background: var(--teal-dark);
}

.primary-button:hover {
  background: var(--teal);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
}

.text-button {
  width: 100%;
  margin-top: 8px;
  color: var(--teal-dark);
  background: transparent;
}

.hero-panel > .primary-button {
  width: 100%;
}

.section-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 4px 0 26px;
}

.section-number {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.section-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 8vw, 48px);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.form-panel {
  min-width: 0;
  margin: 0 0 18px;
  padding: 22px;
}

fieldset.form-panel {
  border: 1px solid var(--line);
}

.form-question,
.select-label {
  margin: 0 0 14px;
  padding: 0 6px;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 750;
}

.select-label {
  display: block;
  padding: 0;
}

.field-help {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

.choice-grid label {
  position: relative;
  display: block;
}

.choice-grid input {
  position: absolute;
  inset: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid span {
  min-height: 48px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  text-align: center;
  cursor: pointer;
}

.choice-grid input:checked + span {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.choice-grid input:focus-visible + span,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.scale-option input:focus-visible + span,
.binary-option input:focus-visible + span {
  outline: 3px solid rgb(215 164 65 / 42%);
  outline-offset: 2px;
}

select {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
}

.form-actions,
.assessment-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 22px;
}

.form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--danger);
  color: var(--danger);
  background: #fff4ef;
}

.progress-panel {
  position: sticky;
  z-index: 5;
  top: 10px;
  margin-bottom: 20px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgb(21 31 42 / 9%);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9e1d4;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.question-list {
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 22px;
}

.question-index {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.question-prompt {
  margin-bottom: 18px;
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 700;
  line-height: 1.55;
}

.question-answer-hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.question-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.question-option {
  position: relative;
  display: block;
}

.question-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.question-option > span {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.question-option .option-letter {
  flex: 0 0 26px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.question-option.is-selected > span {
  border-color: var(--teal-700);
  color: var(--teal-dark);
  background: var(--teal-050);
  box-shadow: inset 4px 0 var(--teal);
}

.question-option input:focus-visible + span {
  outline: 3px solid rgb(215 164 65 / 42%);
  outline-offset: 2px;
}

.scale-list,
.binary-list {
  display: grid;
  gap: 9px;
}

.scale-option,
.binary-option {
  position: relative;
}

.scale-option input,
.binary-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.scale-option span,
.binary-option span {
  min-height: 48px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.scale-option strong {
  flex: 0 0 26px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.scale-option input:checked + span,
.binary-option input:checked + span {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
  box-shadow: inset 4px 0 var(--teal);
}

.binary-option span {
  min-height: 68px;
  justify-content: flex-start;
}

.loading-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(244 240 230 / 88%);
  backdrop-filter: blur(10px);
}

.loading-box {
  min-width: min(280px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.loading-box p {
  margin: 12px 0 0;
}

.spinner {
  width: 28px;
  height: 28px;
  display: inline-block;
  border: 3px solid #d8d2c7;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.report-page {
  background:
    linear-gradient(90deg, rgb(17 127 131 / 5%) 0, transparent 18%, transparent 82%, rgb(215 164 65 / 6%) 100%),
    var(--bg);
}

.compact-button {
  min-height: 42px;
  padding: 8px 16px;
}

.report-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.report-state {
  min-height: 320px;
  padding: 48px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow);
}

.report-state p {
  margin: 14px 0 0;
  color: var(--muted);
}

.report-error h1 {
  font-size: clamp(30px, 7vw, 46px);
}

.report-error .primary-button {
  margin-top: 22px;
}

.report-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.report-section {
  padding: clamp(32px, 7vw, 68px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.report-section:last-child {
  border-bottom: 0;
}

.report-section h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 5.2vw, 42px);
  font-weight: 780;
  line-height: 1.22;
}

.report-section h3,
.report-section h4 {
  margin: 0;
  font-weight: 740;
}

.report-kicker,
.section-order {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.report-kicker {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0;
}

.overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 32px;
  align-items: end;
}

.overview-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 800;
  line-height: 1.08;
}

.report-lead,
.section-intro,
.large-copy,
.meaning-copy,
.report-note {
  color: var(--muted);
}

.report-lead {
  max-width: 650px;
  margin: 0;
  font-size: 18px;
}

.report-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.report-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.report-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.report-meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  margin-top: 48px;
}

.radar-panel h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

#preferenceRadar {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
}

.index-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.index-row {
  display: grid;
  grid-template-columns: 72px minmax(80px, 1fr) 66px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.index-label {
  font-weight: 700;
}

.index-track,
.science-track {
  height: 8px;
  overflow: hidden;
  display: block;
  border-radius: 4px;
  background: #e9e1d4;
}

.index-fill,
.science-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.index-value,
.science-score {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.style-key {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: 13px;
}

.style-key strong {
  margin-right: 4px;
  color: var(--ink);
}

.strategy-progress-block {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #fff;
}

.strategy-progress-block > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.strategy-progress {
  display: grid;
  gap: 8px;
}

.strategy-progress-row {
  display: grid;
  grid-template-columns: 76px minmax(72px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #eee8dd;
  font-size: 14px;
}

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

.strategy-progress-row.is-priority strong,
.strategy-progress-row.is-priority .strategy-status {
  color: var(--coral);
}

.strategy-status {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.strategy-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.strategy-meter i {
  height: 7px;
  border-radius: 99px;
  background: #e9e1d4;
}

.strategy-meter i.is-filled {
  background: var(--teal);
}

.strategy-progress-row.is-priority .strategy-meter i.is-filled {
  background: var(--coral);
}

.strategy-progress-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.overview-summary {
  display: grid;
  gap: 14px;
  align-content: center;
}

.summary-block {
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 6px;
  background: white;
}

.summary-block > span,
.logic-label,
.support-role,
.priority-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-block strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.36;
}

.summary-block p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.accent-teal { border-left-color: var(--teal); }
.accent-green { border-left-color: var(--green); }
.accent-gold { border-left-color: var(--gold); }
.accent-coral { border-left-color: var(--coral); }

.judgment-section {
  background: var(--teal-soft);
}

.statement {
  max-width: 880px;
  margin-bottom: 26px;
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 650;
  line-height: 1.65;
}

.report-note {
  margin: 0;
  padding: 18px 0 0 20px;
  border-left: 4px solid var(--gold);
}

.large-copy {
  max-width: 900px;
  margin: 0;
  font-size: clamp(18px, 3.2vw, 22px);
}

.section-intro {
  max-width: 820px;
  margin: -8px 0 28px;
}

.preference-list,
.science-list {
  display: grid;
  gap: 24px;
}

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

.preference-summary {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  background: #fff;
}

.preference-summary.preference-a { border-top-color: var(--coral); }
.preference-summary.preference-r { border-top-color: var(--green); }
.preference-summary.preference-k { border-top-color: var(--gold); }

.preference-summary .card-heading h3 {
  font-size: 20px;
}

.preference-summary .definition-copy {
  margin: 14px 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

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

.preference-card {
  padding: 28px 0 4px;
  border-top: 3px solid var(--teal);
}

.preference-a { border-top-color: var(--coral); }
.preference-r { border-top-color: var(--green); }
.preference-k { border-top-color: var(--gold); }

.card-heading,
.mechanism-heading,
.science-heading,
.day-heading,
.seven-day-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-heading h3 {
  font-size: 24px;
  line-height: 1.3;
}

.score-pill,
.evidence-level,
.strategy-level {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-size: 12px;
  font-weight: 750;
}

.definition-copy {
  margin: 16px 0 6px;
  font-weight: 650;
}

.meaning-copy {
  margin-bottom: 22px;
}

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

.mechanism-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.mechanism-card p {
  margin: 10px 0;
  font-size: 14px;
}

.conclusion-visuals {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 32px;
  margin-top: 26px;
}

.radar-wrap {
  width: min(100%, 280px);
  margin: 0 auto;
}

.mode-radar {
  display: block;
  width: 100%;
  overflow: visible;
}

.radar-grid,
.radar-axis {
  fill: none;
  stroke: #c8d5cf;
  stroke-width: 1;
}

.radar-shape {
  fill: rgb(15 124 130 / 20%);
  stroke: var(--teal);
  stroke-width: 3;
}

.radar-dot { fill: var(--coral); }

.radar-label {
  fill: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.mode-progress-list {
  display: grid;
  gap: 16px;
}

.mode-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.mode-progress-heading span { color: var(--ink); font-weight: 700; }
.mode-progress-heading strong { color: var(--muted); font-size: 15px; }

.mode-progress-track {
  height: 16px;
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e1d9;
}

.mode-progress-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--teal);
}

.mode-progress:nth-child(2) .mode-progress-track span { background: var(--coral); }
.mode-progress:nth-child(3) .mode-progress-track span { background: var(--green); }
.mode-progress:nth-child(4) .mode-progress-track span { background: var(--gold); }

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

.mode-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 7px;
  background: #fff;
}

.mode-card:nth-child(2) { border-top-color: var(--coral); }
.mode-card:nth-child(3) { border-top-color: var(--green); }
.mode-card:nth-child(4) { border-top-color: var(--gold); }
.mode-card h3 { margin: 0 0 10px; font-size: 24px; }
.mode-role { margin-bottom: 6px; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.mechanism-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.mechanism-list li { padding-top: 10px; border-top: 1px solid var(--line); }
.mechanism-list li > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mechanism-list p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.mechanism-list .mechanism-example { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--teal); background: var(--teal-soft); color: var(--ink); line-height: 1.55; }
.mechanism-status { color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.subject-example { margin: 0; padding: 12px; border-radius: 4px; background: var(--teal-soft); color: var(--ink); font-size: 14px; }

.compact-list {
  margin: 8px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.evidence-note {
  color: var(--teal-dark);
}

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

.science-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.science-card.is-priority {
  border-top: 4px solid var(--coral);
  background: #fffaf5;
}

.science-heading h3 {
  font-size: 20px;
}

.science-score {
  flex: 0 0 auto;
}

.science-track {
  margin: 14px 0 18px;
}

.science-track span {
  background: var(--teal);
}

.science-card.is-priority .science-track span {
  background: var(--coral);
}

.science-card p {
  margin-bottom: 12px;
  font-size: 14px;
}

.science-card p:last-child {
  margin-bottom: 0;
}

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

.action-implication {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 650;
}

.insight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-list li {
  position: relative;
  padding: 16px 0 16px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.insight-list li::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

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

.insight-columns h3 {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 20px;
}

.risk-list li::before {
  background: var(--coral);
}

.priority-strategy {
  margin-top: 34px;
  padding: 24px 0 4px 20px;
  border-left: 4px solid var(--coral);
}

.priority-strategy > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.priority-strategy h3 {
  margin: 8px 0;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.38;
}

.priority-strategy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.subject-tag {
  margin: -8px 0 22px;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 750;
}

.risk-section {
  background: #fffaf5;
}

.mechanism-section {
  background: #f7faf9;
}

.risk-section .insight-list li::before {
  background: var(--coral);
}

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

.logic-grid > div,
.support-grid > div {
  padding: 22px 0 4px;
  border-top: 3px solid var(--teal);
}

.logic-grid > div:nth-child(2),
.support-grid > div:nth-child(2) {
  border-color: var(--gold);
}

.logic-grid p,
.support-grid p {
  margin: 10px 0 0;
}

.next-step-section {
  background: #f4f8f6;
}

.experiment-question {
  max-width: 860px;
  margin: 26px 0 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  background: #fff9e7;
}

.experiment-question span,
.action-path-card > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.experiment-question strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.4;
}

.smart-target {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 12px;
  margin: 0 0 18px;
}

.smart-target > div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.smart-target span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.smart-target strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  line-height: 1.5;
}

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

.action-path-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  background: #fff;
}

.action-path-card.accent-coral { border-top-color: var(--coral); }
.action-path-card.accent-gold { border-top-color: var(--gold); }

.action-path-card h3 {
  margin: 10px 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.4;
}

.action-path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trial-lead {
  margin: 30px 0 -8px;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

.trial-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trial-list > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.trial-list h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.trial-list p {
  margin: 0;
  color: var(--muted);
}

.priority-action {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: white;
  box-shadow: inset 6px 0 var(--teal);
}

.priority-label {
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 15px;
}

.action-details,
.day-details {
  margin: 0;
}

.action-details > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.action-details dt,
.day-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.action-details dd,
.day-details dd {
  margin: 0;
}

.seven-day-heading {
  align-items: end;
  margin: 44px 0 18px;
}

.seven-day-heading h3 {
  font-size: 27px;
}

.seven-day-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.seven-day-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.seven-day-list > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.day-marker {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.day-heading {
  align-items: center;
}

.day-heading h4 {
  font-size: 18px;
}

.day-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.day-details > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.support-role {
  color: var(--teal-dark);
  font-size: 15px;
}

.support-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.support-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.support-list p {
  color: var(--muted);
}

.feedback-section {
  background: #fbfaf6;
}

.rating-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.rating-fieldset legend,
.feedback-field > span {
  margin-bottom: 10px;
  display: block;
  font-weight: 700;
}

.fit-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.fit-rating label {
  position: relative;
}

.fit-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fit-rating span {
  min-height: 84px;
  padding: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  text-align: center;
  cursor: pointer;
}

.fit-rating strong {
  display: block;
  color: var(--teal-dark);
  font-size: 22px;
}

.fit-rating input:checked + span {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.fit-rating input:focus-visible + span {
  outline: 3px solid rgb(215 164 65 / 42%);
  outline-offset: 2px;
}

.feedback-field {
  display: block;
  margin-top: 20px;
}

.feedback-field select {
  margin-top: 0;
}

.feedback-field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  resize: vertical;
}

.feedback-section .primary-button {
  width: 100%;
  margin-top: 22px;
}

.feedback-success {
  margin: 20px 0 0;
  padding: 14px;
  border-left: 4px solid var(--green);
  color: #44683b;
  background: #f0f6ec;
}

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

.level-grid span {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.level-grid small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.rank-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.rank-control {
  display: grid;
  gap: 0.5rem;
}

.rank-control > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rank-control select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 3.5rem;
  padding: 0.75rem 2.5rem 0.75rem 0.85rem;
  width: 100%;
}

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

.mode-options label { display: block; }

.mode-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.mode-options label > span {
  min-height: 68px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: #f3eee5;
  font-size: 14px;
}

.option-copy {
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}

.mode-options input:checked + span {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: inset 4px 0 var(--teal);
}

.mode-options input:checked + span .option-letter {
  color: #fff;
  background: var(--teal);
}

.mode-options input:focus-visible + span {
  outline: 3px solid rgb(15 124 130 / 35%);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .conclusion-visuals {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .radar-wrap { width: min(100%, 240px); }
}

.mode-result-grid,
.specific-mode-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-action-details {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}

.minimum-copy,
.check-copy {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.check-copy {
  color: var(--teal-deep);
}

@media (max-width: 720px) {
  .text-field-grid {
    grid-template-columns: 1fr;
  }
  .level-grid,
  .rank-grid,
  .mode-result-grid,
  .specific-mode-columns {
    grid-template-columns: 1fr;
  }
}

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

@media (min-width: 680px) {
  .choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .question-card {
    padding: 28px 32px;
  }

  .scale-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .scale-option span {
    min-height: 82px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .overview-heading,
  .overview-grid,
  .logic-grid,
  .support-grid,
  .science-list,
  .insight-columns,
  .preference-summary-grid,
  .action-path,
  .smart-target {
    grid-template-columns: 1fr;
  }

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

  .report-meta div {
    display: block;
  }

  .report-meta dd {
    margin-top: 4px;
    text-align: left;
  }

  .seven-day-heading {
    display: block;
  }

  .seven-day-heading > p {
    margin-top: 10px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-lockup {
    width: min(100% - 28px, 760px);
  }

  .brand-en {
    display: none;
  }

  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 22px;
  }

  .hero-panel,
  .form-panel,
  .question-card {
    padding: 20px;
  }

  .section-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .section-number {
    width: 52px;
    height: 52px;
  }

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

  .report-shell {
    width: 100%;
    padding: 0;
  }

  .report-document,
  .report-state {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .report-section {
    padding: 30px 20px;
  }

  .overview-heading h1 {
    font-size: 40px;
  }

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

  .index-row {
    grid-template-columns: 66px minmax(70px, 1fr) 60px;
    gap: 8px;
  }

  .strategy-progress-row {
    grid-template-columns: 70px minmax(56px, 1fr) auto;
    gap: 8px;
  }

  .mechanism-grid,
  .fit-rating {
    grid-template-columns: 1fr;
  }

  .fit-rating span {
    min-height: 50px;
    grid-template-columns: 32px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .action-details > div,
  .day-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .seven-day-list > li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
  }

  .trial-list > li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
  }

  .day-marker {
    width: 42px;
    height: 42px;
  }
}

@media print {
  @page {
    margin: 12mm;
    size: A4;
  }

  html,
  body,
  .report-page {
    background: white !important;
  }

  .print-hidden,
  .report-state {
    display: none !important;
  }

  .report-shell {
    width: 100%;
    padding: 0;
  }

  .report-document {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .report-section {
    padding: 12mm 8mm;
    background: white !important;
  }

  .preference-card,
  .science-card,
  .priority-action,
  .seven-day-list > li,
  .trial-list > li,
  .support-grid > div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .overview-grid,
  .overview-heading {
    gap: 18px;
  }

  .overview-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  #preferenceRadar {
    max-width: 120mm;
  }

  .mode-progress-track {
    width: 100% !important;
    height: 18px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mode-progress-track span {
    display: block !important;
    height: 100% !important;
    min-width: 4px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mode-progress-list {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
