:root {
  color-scheme: light;
  --bg: #eef5f9;
  --surface: #ffffff;
  --surface-soft: #e4f3f8;
  --ink: #0f172a;
  --muted: #526274;
  --line: #c8d8e4;
  --primary: #0891b2;
  --primary-strong: #0e7490;
  --primary-soft: #d9f3f8;
  --accent: #f97316;
  --accent-soft: #fff1e7;
  --success: #0f766e;
  --danger: #a23b3b;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  --radius: 8px;
  --max: 920px;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 160ms;
  --motion-medium: 320ms;
  --motion-slow: 620ms;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, #f7fbfd 0%, var(--bg) 46%, #f8fafc 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

[tabindex="-1"]:focus {
  outline: none;
}

.app-shell {
  width: min(100%, var(--max));
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.screen {
  display: flex;
  min-height: calc(100dvh - 52px);
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px) scale(0.992);
}

.screen.is-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--motion-medium) var(--ease-standard), transform var(--motion-medium) var(--ease-emphasized);
}

.screen[hidden] {
  display: none;
}

.screen-welcome {
  min-height: calc(100dvh - 52px);
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding-top: clamp(32px, 9vh, 96px);
}

.welcome-main {
  max-width: 720px;
}

.welcome-side {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
}

.welcome-side h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.welcome-side ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

html:not(.has-anime) .screen-welcome.is-active .brand-mark,
html:not(.has-anime) .screen-welcome.is-active .eyebrow,
html:not(.has-anime) .screen-welcome.is-active h1,
html:not(.has-anime) .screen-welcome.is-active .lead,
html:not(.has-anime) .screen-welcome.is-active .intro-list,
html:not(.has-anime) .screen-welcome.is-active .button,
html:not(.has-anime) .screen-welcome.is-active .welcome-side {
  animation: reveal-up var(--motion-slow) var(--ease-emphasized) both;
}

html:not(.has-anime) .screen-welcome.is-active .brand-mark {
  animation-delay: 20ms;
}

html:not(.has-anime) .screen-welcome.is-active .eyebrow {
  animation-delay: 70ms;
}

html:not(.has-anime) .screen-welcome.is-active h1 {
  animation-delay: 110ms;
}

html:not(.has-anime) .screen-welcome.is-active .lead {
  animation-delay: 150ms;
}

html:not(.has-anime) .screen-welcome.is-active .intro-list {
  animation-delay: 190ms;
}

html:not(.has-anime) .screen-welcome.is-active .button {
  animation-delay: 230ms;
}

html:not(.has-anime) .screen-welcome.is-active .welcome-side {
  animation-delay: 260ms;
}

.brand-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-weight: 800;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.04;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  line-height: 1.15;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.lead {
  max-width: 620px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.8;
}

.intro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.intro-list span,
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.83rem;
}

.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  transition:
    background var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-emphasized);
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.button:focus-visible,
input:focus-visible,
.stage-card:focus-visible,
.option-button:focus-visible {
  outline: 3px solid rgba(8, 145, 178, 0.24);
  outline-offset: 3px;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 26px rgba(8, 145, 178, 0.22);
}

.button-primary:hover:not(:disabled) {
  background: var(--primary-strong);
}

.button-primary:disabled {
  background: #b8c6c9;
  color: #f8fafc;
}

.button-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.2);
}

.button-accent:hover {
  background: #ea580c;
}

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

.screen-header,
.quiz-top,
.report-header {
  margin-bottom: 22px;
}

.screen-note,
.disclaimer {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.info-form,
.question-panel,
.report-section,
.report-actions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.info-form {
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.stage-field {
  min-width: 0;
  margin: 18px 0;
  border: 0;
  padding: 0;
}

.stage-field legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.stage-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  transition:
    background var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-emphasized);
}

.stage-card:hover {
  border-color: rgba(8, 145, 178, 0.42);
  background: #f7fcfe;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.stage-card[aria-selected="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 12px 26px rgba(8, 145, 178, 0.14);
  transform: translateY(-1px);
}

.stage-code {
  display: inline-grid;
  min-width: 42px;
  min-height: 32px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}

.stage-name {
  display: block;
  font-weight: 800;
}

.stage-desc {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stage-helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

html:not(.has-anime) .stage-helper.is-updated {
  animation: soft-confirm var(--motion-medium) var(--ease-emphasized) both;
}

.form-error {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 0.9rem;
}

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

.screen-quiz {
  justify-content: flex-start;
  padding-top: clamp(16px, 5vh, 46px);
  padding-bottom: 96px;
}

.quiz-top h2 {
  margin-bottom: 0;
}

.question-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.progress {
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde7eb;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-emphasized);
}

.question-panel {
  padding: 16px;
}

html:not(.has-anime) .question-panel.is-entering .question-meta,
html:not(.has-anime) .question-panel.is-entering .question-stem p,
html:not(.has-anime) .question-panel.is-entering .question-helper,
html:not(.has-anime) .question-panel.is-entering .option-button {
  animation: question-reveal 520ms var(--ease-emphasized) both;
  animation-delay: calc(var(--reveal-index, 0) * 42ms);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.question-meta span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 700;
}

.question-stem {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: clamp(1.03rem, 3.6vw, 1.14rem);
  font-weight: 720;
  line-height: 1.68;
}

.question-stem p {
  margin-bottom: 0;
}

.question-helper {
  margin: -4px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--muted);
  padding: 9px 10px;
  font-size: 0.9rem;
  line-height: 1.65;
}

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

.option-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 56px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 13px;
  text-align: left;
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  transition:
    background var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-emphasized);
}

.option-button:hover:not(:disabled) {
  border-color: var(--primary);
  background: #f7fcfe;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.option-button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.14);
}

html:not(.has-anime) .option-button.is-selected {
  animation: selected-settle 360ms var(--ease-emphasized) both;
}

.option-button:disabled:not([aria-pressed="true"]) {
  color: #98a4b1;
}

.option-key {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 800;
}

.option-text {
  min-width: 0;
  padding-top: 3px;
  line-height: 1.55;
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: static;
  z-index: 5;
  margin-top: 14px;
  border: 1px solid rgba(217, 225, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(246, 248, 251, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.11);
  padding: 10px;
  backdrop-filter: blur(10px);
}

.quiz-nav-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.quiz-nav-actions .button {
  min-width: 92px;
  padding-inline: 14px;
}

html:not(.has-anime) .quiz-actions.is-visible {
  animation: action-rise 360ms var(--ease-emphasized) both;
}

.quiz-milestone,
.answer-feedback {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.answer-feedback {
  min-height: 22px;
  flex: 1;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.screen-loading {
  align-items: center;
  text-align: center;
}

.loading-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 5px solid #dce8eb;
  border-top-color: var(--primary);
  border-right-color: rgba(8, 145, 178, 0.36);
  border-radius: 50%;
  animation: spin 900ms linear infinite, loading-breathe 1800ms var(--ease-standard) infinite;
}

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

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes question-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes selected-settle {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.012);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes action-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.08);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(8, 145, 178, 0.02);
  }
}

@keyframes report-reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes radar-guide-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes radar-area-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes radar-point-in {
  from {
    opacity: 0;
    transform: scale(0.35);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes soft-confirm {
  0% {
    opacity: 0.72;
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-report {
  justify-content: flex-start;
  padding: 10px 0 0;
}

.report-section {
  margin-bottom: 14px;
  padding: 18px;
}

.report-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 18px;
}

html:not(.has-anime) .screen-report.report-ready .report-header,
html:not(.has-anime) .screen-report.report-ready .report-summary,
html:not(.has-anime) .screen-report.report-ready .report-section,
html:not(.has-anime) .screen-report.report-ready .report-actions,
html:not(.has-anime) .screen-report.report-ready .disclaimer {
  animation: report-reveal var(--motion-slow) var(--ease-emphasized) both;
  animation-delay: calc(var(--reveal-index, 0) * 58ms);
}

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

.summary-heading h3 {
  margin-bottom: 0;
}

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

.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 14px;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-emphasized);
}

.summary-card:hover,
.feedback-card:hover,
.advisor-item:hover {
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.summary-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.feedback-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 14px;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-emphasized);
}

.feedback-label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.feedback-card strong {
  display: block;
  margin-bottom: 6px;
}

.feedback-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.report-overview p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.radar-wrap {
  min-height: 230px;
}

.radar-svg {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.radar-svg .radar-ring,
.radar-svg .radar-axis,
.radar-svg .radar-label {
  opacity: 0;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-ring,
html:not(.has-anime) .radar-svg.is-drawn .radar-axis,
html:not(.has-anime) .radar-svg.is-drawn .radar-label {
  animation: radar-guide-in 520ms var(--ease-standard) both;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-ring:nth-of-type(1) {
  animation-delay: 80ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-ring:nth-of-type(2) {
  animation-delay: 120ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-ring:nth-of-type(3) {
  animation-delay: 160ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-ring:nth-of-type(4) {
  animation-delay: 200ms;
}

.radar-ring,
.radar-axis {
  fill: none;
  stroke: #d7e1e6;
  stroke-width: 1;
}

.radar-area {
  fill: rgba(8, 145, 178, 0.16);
  stroke: var(--primary);
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.72);
  transform-box: fill-box;
  transform-origin: center;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-area {
  animation: radar-area-in 760ms var(--ease-emphasized) 260ms both;
}

.radar-point {
  fill: var(--primary);
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point {
  animation: radar-point-in 360ms var(--ease-emphasized) both;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(1) {
  animation-delay: 580ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(2) {
  animation-delay: 630ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(3) {
  animation-delay: 680ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(4) {
  animation-delay: 730ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(5) {
  animation-delay: 780ms;
}

html:not(.has-anime) .radar-svg.is-drawn .radar-point:nth-of-type(6) {
  animation-delay: 830ms;
}

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

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

.dimension-item {
  display: grid;
  gap: 7px;
}

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

.dimension-name {
  font-weight: 800;
}

.dimension-score {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e9ed;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform-origin: left center;
}

html:not(.has-anime) .bar span {
  animation: bar-grow 820ms var(--ease-emphasized) both;
  animation-delay: calc(var(--reveal-index, 0) * 42ms + 220ms);
}

.dimension-desc,
.persona-desc,
.course-copy,
.course-reason,
.quality-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.dimension-guide {
  display: grid;
  gap: 6px;
  border: 1px solid #dce8eb;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--muted);
  padding: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.persona-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.persona-initial {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.persona-name {
  margin-bottom: 4px;
  font-size: 1.15rem;
  font-weight: 850;
}

.persona-dims,
.persona-signal {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.course-tags span {
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.advisor-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 14px;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-emphasized);
}

.advisor-item strong {
  color: var(--primary);
}

.advisor-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.advisor-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
}

.advisor-details summary::-webkit-details-marker {
  display: none;
}

.advisor-details summary::after {
  content: "展开";
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.advisor-details[open] summary::after {
  content: "收起";
}

.advisor-details .advisor-list {
  margin-top: 12px;
}

.quality-grid {
  display: grid;
  gap: 12px;
}

.quality-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.quality-card-solid {
  background: var(--primary-soft);
  border-color: rgba(8, 145, 178, 0.24);
}

.quality-card-notice {
  background: var(--accent-soft);
  border-color: rgba(249, 115, 22, 0.24);
}

.quality-card strong {
  display: block;
  margin-bottom: 6px;
}

.quality-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quality-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 18px;
}

.contact-panel {
  display: grid;
  gap: 4px;
  flex-basis: 100%;
  margin: 4px 0 0;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #7c2d12;
  padding: 10px 12px;
  line-height: 1.7;
}

html:not(.has-anime) .contact-panel:not([hidden]) {
  animation: action-rise 360ms var(--ease-emphasized) both;
}

.contact-panel strong {
  color: var(--accent);
}

.copy-status {
  flex-basis: 100%;
  min-height: 20px;
  margin: 0;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

html:not(.has-anime) .copy-status.is-updated {
  animation: soft-confirm var(--motion-medium) var(--ease-emphasized) both;
}

.disclaimer {
  padding: 0 2px 12px;
  font-size: 0.82rem;
  text-align: center;
}

.screen-error {
  align-items: flex-start;
}

.screen-error p {
  color: var(--muted);
  line-height: 1.7;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  border-radius: var(--radius);
  background: #a23b3b;
  color: #fff;
  padding: 12px;
}

@media (min-width: 720px) {
  .app-shell {
    padding-inline: 28px;
  }

  .screen-welcome {
    padding-block: 64px;
  }

  .info-form,
  .question-panel,
  .report-section,
  .report-actions,
  .report-summary {
    padding: 24px;
  }

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

  .screen-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
  }

  .quiz-actions {
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .report-overview {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
  }

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

  .summary-list .summary-card:first-child,
  #child-body .feedback-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  .screen-quiz,
  .screen-quiz.is-active {
    transform: none;
  }

  .screen-quiz {
    padding-bottom: 180px;
  }

  .quiz-actions {
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    z-index: 30;
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 12px;
  }

  .screen-welcome {
    padding-top: 34px;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

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

  .welcome-side {
    padding: 14px;
  }

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

  .stage-card {
    min-height: 104px;
    padding: 12px;
  }

  .quiz-top {
    align-items: flex-start;
  }

  .question-count {
    align-self: flex-start;
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-nav-actions {
    justify-content: stretch;
    width: 100%;
  }

  .quiz-nav-actions .button {
    flex: 1;
    min-width: 0;
  }

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

  .summary-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-heading .button {
    width: 100%;
  }

  .report-header h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .radar-svg {
    max-width: 300px;
  }
}

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

  .skip-link,
  .report-actions,
  .button {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    min-height: auto;
    padding: 0;
  }

  .screen-report {
    display: block !important;
    opacity: 1;
    transform: none;
  }

  .report-section,
  .report-summary {
    break-inside: avoid;
    box-shadow: none;
  }
}

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