:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-soft: #faf7f1;
  --ink: #241f2b;
  --muted: #756d78;
  --line: rgba(70, 52, 82, 0.14);
  --line-strong: rgba(70, 52, 82, 0.24);
  --purple: #56326f;
  --purple-deep: #321b46;
  --purple-soft: #ede4f4;
  --accent: #c77b5d;
  --accent-soft: #f4e2d8;
  --sage: #61786b;
  --shadow: 0 18px 50px rgba(65, 46, 78, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(222, 207, 232, 0.62), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(244, 226, 216, 0.68), transparent 26rem),
    var(--bg);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "Microsoft YaHei", serif;
  line-height: 1.75;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(199, 123, 93, 0.5);
  outline-offset: 3px;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--muted);
}

.loading-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.page {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.page-home {
  min-height: 100vh;
  padding: 72px 0 44px;
}

.home-hero {
  max-width: 840px;
}

.eyebrow,
.section-index,
.card-label,
.preview-label,
.footer-label {
  margin: 0;
  color: var(--purple);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-kicker,
.report-kicker {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 1rem;
}

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

.home-hero h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--purple-deep);
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-subtitle {
  max-width: 680px;
  color: #554d5a;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 26px;
}

.home-meta span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.55);
  font-size: 0.88rem;
}

.primary-button,
.small-button,
.text-button {
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.primary-button {
  padding: 14px 25px;
  color: #fff;
  background: var(--purple-deep);
  box-shadow: 0 12px 24px rgba(50, 27, 70, 0.16);
  font-weight: 700;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #47245e;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.home-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.home-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1.15fr);
  align-items: center;
  gap: 56px;
  margin-top: 84px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow);
}

.preview-orbit {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.preview-orbit::before,
.preview-orbit::after {
  position: absolute;
  inset: 17%;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.preview-orbit::after {
  inset: 34%;
  background: rgba(237, 228, 244, 0.72);
}

.orbit-center {
  position: absolute;
  inset: 41%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--purple);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
}

.orbit-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.dot-creator { top: 7%; left: 48%; background: var(--purple); }
.dot-analyst { top: 31%; right: 8%; background: var(--accent); }
.dot-builder { right: 20%; bottom: 13%; background: var(--sage); }
.dot-connector { left: 12%; bottom: 26%; background: #8a719c; }
.dot-explorer { left: 14%; top: 20%; background: #c39b78; }

.preview-copy h2 {
  margin: 12px 0 16px;
  color: var(--purple-deep);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.preview-copy p:last-child {
  color: var(--muted);
}

.home-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 52px 0 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-details > div {
  min-height: 180px;
  padding: 28px;
  background: rgba(255, 253, 249, 0.64);
}

.detail-number {
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-details h3 {
  margin: 24px 0 8px;
  color: var(--purple-deep);
}

.home-details p {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-quiz {
  min-height: 100vh;
  padding: 34px 0 38px;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--purple-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.progress-label {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.progress-divider {
  margin: 0 3px;
  color: var(--line-strong);
}

.progress-track {
  height: 3px;
  margin: 18px 0 42px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(70, 52, 82, 0.1);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--purple);
  transition: width 250ms ease;
}

.quiz-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 64px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-deep);
  background: rgba(255, 253, 249, 0.72);
  font-size: 0.88rem;
}

.quiz-back-button:disabled {
  cursor: default;
}

.question-panel {
  max-width: 820px;
  margin: 0 auto;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.question-panel h1 {
  margin: 24px 0 12px;
  color: var(--purple-deep);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.35;
}

.question-hint {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.option-button {
  width: 100%;
  min-height: 78px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.72);
  text-align: left;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.option-button:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateX(3px);
}

.option-button.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
  box-shadow: 0 9px 24px rgba(86, 50, 111, 0.12);
}

.option-letter {
  flex: 0 0 30px;
  color: var(--purple);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.option-text {
  font-size: 1.02rem;
}

.quiz-footer {
  max-width: 820px;
  margin: 42px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-button {
  padding: 10px 0;
  color: var(--muted);
  background: transparent;
}

.text-button:hover {
  color: var(--purple);
}

.report-page {
  min-height: 100vh;
  padding-bottom: 80px;
}

.report-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 13px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 234, 0.88);
  backdrop-filter: blur(14px);
}

.report-nav-title {
  color: var(--purple-deep);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-nav-links {
  display: flex;
  gap: 20px;
}

.report-nav-links a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.report-nav-links a:hover {
  color: var(--purple);
}

.small-button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  color: var(--purple-deep);
  background: rgba(255, 253, 249, 0.7);
  font-size: 0.84rem;
}

.small-button:hover {
  background: var(--surface);
}

.report {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
}

.report-hero {
  max-width: 880px;
  padding: 100px 0 86px;
}

.report-kicker {
  margin-top: 20px;
}

.result-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
  margin: 12px 0 12px;
}

.result-title-row h1 {
  margin: 0;
  color: var(--purple-deep);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 1;
}

.result-title-row span {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.result-slogan {
  margin: 22px 0 18px;
  color: var(--purple);
  font-size: clamp(1.22rem, 3vw, 1.75rem);
}

.result-summary {
  max-width: 760px;
  color: #554d5a;
  font-size: 1.1rem;
}

.report-stamp {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--purple-deep);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.22;
}

.section-heading > p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.dimension-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: 60px;
}

.radar-wrap {
  min-height: 430px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.65);
}

#radar-chart {
  width: min(100%, 440px);
  height: auto;
}

.dimension-bars {
  display: grid;
  gap: 25px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 92px 1fr 52px;
  align-items: center;
  gap: 14px;
}

.dimension-name {
  color: var(--purple-deep);
  font-weight: 700;
}

.dimension-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(70, 52, 82, 0.1);
}

.dimension-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #9774ad);
  transition: width 500ms ease;
}

.dimension-score {
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.highlight-card {
  padding: 36px;
  border: 1px solid rgba(86, 50, 111, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(237, 228, 244, 0.8), rgba(255, 253, 249, 0.86));
  box-shadow: var(--shadow);
}

.highlight-card h3 {
  margin: 12px 0 16px;
  color: var(--purple-deep);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
}

.highlight-card p:last-child {
  margin-bottom: 0;
  color: #4f4654;
  font-size: 1.04rem;
}

.combination-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
}

.combination-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-strong);
}

.combination-top h3 {
  margin: 0;
  color: var(--purple-deep);
  font-size: 1.65rem;
  font-weight: 600;
}

.combination-top span {
  color: var(--muted);
  font-size: 0.84rem;
}

.combination-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 24px;
}

.combination-copy h4 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 0.92rem;
}

.combination-copy p {
  margin-bottom: 0;
  color: #5d5562;
}

.combination-empty {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 253, 249, 0.52);
}

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

.content-card {
  min-height: 130px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.7);
}

.content-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.content-card p {
  margin: 0;
  color: #4f4654;
}

.challenge-grid .content-card {
  background: rgba(244, 226, 216, 0.43);
}

.environment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.environment-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.7);
}

.environment-box.positive {
  border-top: 4px solid var(--sage);
}

.environment-box.caution {
  border-top: 4px solid var(--accent);
}

.environment-box h3 {
  margin-bottom: 20px;
  color: var(--purple-deep);
  font-size: 1.1rem;
}

.environment-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.environment-box li {
  position: relative;
  padding: 0 0 14px 18px;
  color: #554d5a;
}

.environment-box li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.environment-note {
  margin: 20px 0 0;
  padding: 21px 24px;
  border-left: 3px solid var(--purple);
  color: #5d5562;
  background: rgba(237, 228, 244, 0.42);
}

.growth-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.growth-item {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 253, 249, 0.74);
}

.growth-item span {
  color: var(--accent);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.growth-item h3 {
  margin: 28px 0 12px;
  color: var(--purple-deep);
  font-size: 1.1rem;
}

.growth-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.check-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.7);
}

.check-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid rgba(86, 50, 111, 0.35);
  border-radius: 50%;
  color: var(--purple);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
}

.check-item p {
  margin: 0;
  color: #504754;
  font-size: 0.95rem;
}

.direction-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.direction-pill {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-deep);
  background: rgba(255, 253, 249, 0.68);
  font-size: 0.96rem;
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  padding: 38px;
  border-radius: var(--radius-md);
  color: #f9f6f0;
  background: var(--purple-deep);
}

.report-footer p {
  margin: 0;
  color: rgba(249, 246, 240, 0.74);
  font-size: 0.88rem;
}

.report-footer .footer-label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.52);
}

.report-footer .primary-button {
  flex: 0 0 auto;
  color: var(--purple-deep);
  background: #f9f6f0;
}

@media (max-width: 860px) {
  .home-preview,
  .dimension-layout,
  .combination-copy,
  .environment-grid {
    grid-template-columns: 1fr;
  }

  .home-preview {
    gap: 34px;
    padding: 30px;
  }

  .home-details,
  .growth-list {
    grid-template-columns: 1fr;
  }

  .home-details > div,
  .growth-item {
    min-height: auto;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }

  .report-nav-links {
    display: none;
  }

  .report-hero {
    padding: 68px 0 60px;
  }

  .report-section {
    padding: 62px 0;
  }

  .dimension-layout {
    gap: 30px;
  }

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

  .card-grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .report-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page,
  .report {
    width: min(100% - 28px, var(--content));
  }

  .page-home {
    padding-top: 42px;
  }

  .home-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .home-meta {
    margin-top: 25px;
  }

  .home-preview {
    margin-top: 54px;
    padding: 24px;
  }

  .home-details {
    margin-top: 36px;
  }

  .page-quiz {
    padding-top: 22px;
  }

  .progress-track {
    margin-bottom: 44px;
  }

  .question-panel h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .option-button {
    min-height: 70px;
    padding: 16px;
    gap: 12px;
  }

  .option-text {
    font-size: 0.95rem;
  }

  .quiz-footer {
    margin-top: 28px;
  }

  .report-nav {
    padding: 11px 14px;
  }

  .report-nav-title {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .small-button {
    flex: 0 0 auto;
    padding: 8px 11px;
  }

  .report-stamp {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .highlight-card,
  .combination-card,
  .environment-box {
    padding: 23px;
  }

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

  .dimension-row {
    grid-template-columns: 72px 1fr 45px;
    gap: 10px;
  }
}

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

.answer-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 160ms ease;
}

.answer-status.saved {
  color: var(--sage);
}

.page-confirm {
  min-height: 100vh;
  padding: 34px 0 54px;
}

.progress-track.complete .progress-bar {
  width: 100%;
}

.confirm-panel {
  max-width: 680px;
  margin: 48px auto 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.8);
  box-shadow: var(--shadow);
}

.confirm-panel h1 {
  margin: 16px 0 14px;
  color: var(--purple-deep);
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.18;
}

.confirm-copy,
.confirm-note {
  color: var(--muted);
}

.confirm-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--purple-soft);
}

.confirm-summary span {
  color: var(--muted);
  font-size: 0.9rem;
}

.confirm-summary strong {
  color: var(--purple-deep);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.18rem;
}

.confirm-question {
  color: var(--purple-deep);
  font-size: 1.1rem;
  font-weight: 700;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.secondary-button {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--purple-deep);
  background: transparent;
  font-weight: 700;
}

.confirm-actions .primary-button {
  min-height: 52px;
}

.confirm-note {
  margin: 14px 0 0;
  font-size: 0.83rem;
}

.report-share-button {
  margin-top: 26px;
}

body.modal-open {
  overflow: hidden;
}

.image-modal[hidden] {
  display: none;
}

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

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 20, 35, 0.68);
  backdrop-filter: blur(8px);
}

.image-modal-panel {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(23, 14, 29, 0.32);
}

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

.image-modal-header h2 {
  margin: 6px 0 0;
  color: var(--purple-deep);
  font-size: 1.35rem;
}

.image-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-deep);
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}

.image-preview-wrap {
  margin: 18px 0 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.image-preview-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.image-modal-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.image-modal-panel > .primary-button {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .page-quiz {
    padding: 20px 0 32px;
  }
  .quiz-header {
    gap: 10px;
  }
  .quiz-brand {
    font-size: 0.82rem;
  }
  .quiz-back-button {
    min-width: 54px;
    min-height: 44px;
    padding: 8px 10px;
  }
  .quiz-back-label {
    display: none;
  }
  .progress-track {
    margin: 12px 0 28px;
  }
  .question-panel {
    padding: 0 2px;
  }
  .question-meta {
    font-size: 0.68rem;
  }
  .question-panel h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.34;
  }
  .question-hint {
    margin-bottom: 24px;
    font-size: 0.84rem;
  }
  .options-list {
    gap: 11px;
  }
  .option-button {
    min-height: 82px;
    padding: 17px 16px;
    gap: 13px;
    border-radius: 15px;
  }
  .option-button:hover {
    transform: none;
  }
  .option-button.selected {
    transform: scale(0.99);
  }
  .option-letter {
    flex-basis: 28px;
  }
  .option-text {
    font-size: 1rem;
    line-height: 1.55;
  }
  .answer-status {
    margin-top: 14px;
    text-align: center;
  }
  .page-confirm {
    padding: 20px 0 40px;
  }
  .confirm-panel {
    display: flex;
    min-height: calc(100vh - 130px);
    margin-top: 18px;
    padding: 28px 22px;
    flex-direction: column;
  }
  .confirm-panel h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
  .confirm-summary {
    margin: 24px 0 auto;
  }
  .confirm-actions {
    position: sticky;
    bottom: 14px;
    margin-top: 30px;
    padding-top: 12px;
    background: linear-gradient(180deg, transparent, rgba(255, 253, 249, 0.96) 35%);
  }
  .confirm-actions .primary-button {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .confirm-actions .secondary-button {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
