:root {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --text: #1f2633;
  --muted: #637086;
  --line: #d8deeb;
  --accent: #6781f2;
  --accent-soft: #e6ebff;
  --danger: #d74462;
  --radius: 16px;
  --shadow: 0 12px 24px rgba(55, 72, 120, 0.08);
  --maxw: 430px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 10% -10%, #f8e6ef 0%, transparent 48%),
    radial-gradient(900px 500px at 110% 15%, #dce9ff 0%, transparent 46%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

#app {
  display: flex;
  justify-content: center;
  padding: 24px 14px 40px;
}

.screen {
  width: 100%;
  max-width: var(--maxw);
}

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

button,
input {
  font: inherit;
}

button {
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

.ghost {
  background: #eef1fa;
  color: #38435a;
}

.unlock-screen {
  display: grid;
  gap: 18px;
}

.unlock-hero {
  overflow: hidden;
  position: relative;
  padding: 0;
  min-height: 560px;
  background:
    radial-gradient(180px 150px at 18% 14%, rgba(255, 211, 222, 0.88), transparent 78%),
    radial-gradient(170px 140px at 82% 12%, rgba(226, 217, 255, 0.78), transparent 76%),
    radial-gradient(220px 160px at 86% 88%, rgba(239, 216, 229, 0.82), transparent 78%),
    linear-gradient(160deg, #fff7f6 0%, #f7eef5 46%, #eeebf8 100%);
  border-radius: 28px;
  border: 1px solid rgba(237, 226, 234, 0.92);
  box-shadow: 0 22px 52px rgba(88, 68, 92, 0.1);
}

.unlock-hero::before,
.unlock-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.unlock-hero::before {
  left: 18px;
  top: 126px;
  width: 230px;
  height: 74px;
  border-top: 2px dotted rgba(229, 214, 224, 0.9);
  border-radius: 999px;
  transform: rotate(8deg);
}

.unlock-hero::after {
  right: 22px;
  bottom: 136px;
  width: 172px;
  height: 64px;
  border-top: 2px dotted rgba(225, 213, 223, 0.9);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.unlock-hero-panel {
  position: relative;
  margin: 22px;
  min-height: 458px;
  padding: 28px 22px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  border: 1.4px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 26px 54px rgba(95, 74, 99, 0.12);
}

.unlock-orbit {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 84px;
  height: 84px;
  opacity: 0.64;
}

.unlock-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.4px solid rgba(226, 215, 227, 0.95);
}

.unlock-orbit span:nth-child(2) {
  inset: 14px;
}

.unlock-orbit span:nth-child(3) {
  inset: 30px;
  background: rgba(247, 240, 246, 0.82);
}

.unlock-kicker,
.unlock-section-kicker,
.unlock-entry-kicker {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #a18899;
}

.unlock-hero-copy h1 {
  margin-top: 18px;
  font-family: "Iowan Old Style", "Source Han Serif SC", "Songti SC", serif;
  max-width: 5.2ch;
  font-size: clamp(44px, 12vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: #2d2230;
}

.unlock-lead {
  margin-top: 18px;
  max-width: 13ch;
  color: #5f4d61;
  font-size: 19px;
  line-height: 1.58;
}

.unlock-hero-copy {
  position: relative;
  z-index: 1;
}

.unlock-hero-copy::after {
  content: "";
  display: block;
  width: 104px;
  height: 3px;
  margin-top: 20px;
  border-radius: 999px;
  background: #d8b6c4;
}

.unlock-bullets {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.unlock-bullets div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unlock-bullets i {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d7a7ba;
  flex: 0 0 auto;
}

.unlock-bullets div:nth-child(2) i {
  background: #c8b8e8;
}

.unlock-bullets div:nth-child(3) i {
  background: #dbc3ca;
}

.unlock-bullets span {
  color: #7a6372;
  font-size: 16px;
  line-height: 1.5;
}

.unlock-hero-footnote {
  margin-top: 24px;
  color: #998793;
  font-size: 13px;
  line-height: 1.6;
}

.unlock-entry-card {
  position: relative;
  z-index: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 244, 248, 0.9));
  border: 1px solid rgba(229, 214, 223, 0.96);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(97, 76, 101, 0.08);
}

.unlock-entry-stage {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(228, 218, 228, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.unlock-entry-card h2 {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.15;
  color: #332938;
}

.unlock-entry-card p {
  margin-top: 8px;
  color: #6f5f71;
  line-height: 1.65;
  font-size: 14px;
}

.unlock-heart-mark {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 120px;
  height: 104px;
  opacity: 0.58;
  pointer-events: none;
}

.unlock-heart-mark::before,
.unlock-heart-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 0 0;
  background: rgba(248, 238, 243, 0.82);
  border: 1.6px solid rgba(216, 182, 193, 0.9);
}

.unlock-heart-mark::before {
  left: 25px;
  width: 34px;
  height: 54px;
  transform: rotate(-45deg);
  transform-origin: bottom left;
}

.unlock-heart-mark::after {
  left: 0;
  top: 25px;
  width: 34px;
  height: 54px;
  transform: rotate(45deg);
  transform-origin: bottom right;
}

.unlock-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.unlock-form input {
  background: rgba(244, 246, 251, 0.94);
  border: 1px solid #dcdce9;
  border-radius: 14px;
  height: 50px;
  padding: 0 14px;
  color: var(--text);
}

.unlock-entry-form button {
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(180deg, #7b8df7 0%, #667ff1 100%);
  box-shadow: 0 12px 24px rgba(104, 126, 236, 0.24);
}

.unlock-entry-form button:hover {
  filter: brightness(1.03);
}

.unlock-story-section {
  padding: 22px 18px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(228, 218, 228, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.unlock-story-section::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 122px;
  height: 122px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(208, 189, 213, 0.22) 0%, rgba(208, 189, 213, 0) 72%);
  pointer-events: none;
}

.unlock-story-empathy {
  background: linear-gradient(180deg, rgba(255, 252, 253, 0.9), rgba(250, 243, 248, 0.78));
}

.unlock-story-value {
  background: linear-gradient(180deg, rgba(252, 249, 255, 0.9), rgba(244, 239, 250, 0.78));
}

.unlock-story-preview {
  background: linear-gradient(180deg, rgba(255, 250, 253, 0.9), rgba(245, 240, 252, 0.78));
}

.unlock-story-result {
  background: linear-gradient(180deg, rgba(250, 251, 255, 0.9), rgba(244, 247, 255, 0.78));
}

.unlock-section-head h2,
.unlock-bottom-entry h2 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.unlock-section-head p,
.unlock-bottom-entry p {
  margin-top: 10px;
  color: #5d6a81;
  line-height: 1.7;
}

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

.unlock-line-list p {
  padding: 15px 14px 15px 16px;
  border-radius: 18px;
  background: rgba(248, 244, 248, 0.9);
  border: 1px solid rgba(231, 217, 226, 0.95);
  color: #4d4357;
  line-height: 1.6;
}

.unlock-note-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 241, 246, 0.94));
  border: 1px solid rgba(226, 208, 220, 0.95);
}

.unlock-note-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.7;
  color: #3e3348;
}

.unlock-value-grid,
.unlock-result-columns {
  display: grid;
  gap: 10px;
}

.unlock-value-grid {
  counter-reset: unlockValue;
}

.unlock-value-grid article,
.unlock-result-columns article {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(224, 209, 221, 0.95);
}

.unlock-value-grid article {
  position: relative;
  padding-top: 20px;
}

.unlock-value-grid article::before {
  counter-increment: unlockValue;
  content: "0" counter(unlockValue);
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #9a8aa3;
}

.unlock-value-grid strong,
.unlock-result-columns strong,
.unlock-preview-top strong,
.unlock-result-top strong,
.unlock-module-tile strong {
  display: block;
}

.unlock-value-grid p,
.unlock-result-columns p {
  margin-top: 8px;
  color: #5d6a81;
  line-height: 1.6;
}

.unlock-preview-shell {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(160deg, #f4d6e4 0%, #fbf1f6 52%, #edf1ff 100%);
  border: 1px solid rgba(222, 205, 219, 0.96);
}

.unlock-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unlock-preview-top span,
.unlock-module-order {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7f7592;
}

.unlock-preview-top strong {
  margin-top: 4px;
  font-size: 28px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.unlock-preview-top em {
  font-style: normal;
  font-size: 12px;
  color: #657189;
}

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

.unlock-module-tile {
  min-height: 126px;
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 214, 226, 0.98);
  display: grid;
  align-content: start;
  gap: 6px;
}

.unlock-module-tile strong {
  font-size: 16px;
  line-height: 1.05;
}

.unlock-module-tile em {
  font-style: normal;
  font-size: 11px;
  color: #7a869a;
  line-height: 1.4;
}

.unlock-module-pill {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4fb;
  color: #7a869a;
  font-size: 12px;
  font-weight: 600;
}

.unlock-module-tile.done .unlock-module-pill {
  background: #e8ecff;
  color: #4f66d8;
}

.unlock-result-sample {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(225, 210, 221, 0.95);
  display: grid;
  gap: 14px;
}

.unlock-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unlock-result-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #5c64c8;
  background: #edf0ff;
  border: 1px solid #d9defb;
  line-height: 1.35;
}

.unlock-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unlock-result-top strong {
  font-size: 26px;
}

.unlock-result-top span {
  color: #66738a;
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.unlock-result-copy {
  color: #485267;
  line-height: 1.7;
}

.unlock-bottom-entry {
  padding: 20px 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(228, 218, 228, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.unlock-bottom-entry button {
  width: 100%;
}

.error {
  color: var(--danger);
  margin-top: 12px;
}

.hidden {
  display: none;
}

.tiny {
  margin-top: 10px;
  font-size: 12px;
}

.panel-header,
.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-header h1,
.sub-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.panel-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.overview-screen {
  display: grid;
  gap: 14px;
}

.overview-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.hero-copy,
.hero-stat,
.hero-next {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(179, 188, 214, 0.5);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 24px;
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -36px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(103, 129, 242, 0.18) 0%, rgba(103, 129, 242, 0) 68%);
}

.overview-kicker,
.card-kicker,
.module-index {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7390;
}

.hero-copy h1 {
  margin-top: 10px;
  font-family: "Iowan Old Style", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.overview-lead {
  margin-top: 14px;
  max-width: 27ch;
  color: #485369;
  line-height: 1.65;
  font-size: 14px;
}

.hero-side {
  display: grid;
  gap: 12px;
}

.hero-stat,
.hero-next {
  border-radius: 20px;
  padding: 14px;
}

.hero-stat span,
.hero-next span,
.progress-copy span {
  display: block;
  color: #69748d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 8px;
  font-family: "Iowan Old Style", "Source Han Serif SC", "Songti SC", serif;
  font-size: 42px;
  line-height: 1;
}

.hero-stat em {
  font-style: normal;
  font-size: 15px;
  color: #6b7590;
}

.hero-next strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
  color: #20253a;
}

.hero-next p {
  margin-top: 6px;
  color: #5f6b85;
  font-size: 13px;
}

.theme-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #49566f;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(132, 143, 173, 0.22);
  min-height: 36px;
}

.theme-chip.active {
  background: rgba(255, 255, 255, 0.96);
  color: #243056;
  border-color: rgba(66, 84, 144, 0.4);
}

.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 90, 126, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.typeology-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(99, 110, 145, 0.18);
  box-shadow: var(--shadow);
}

.typeology-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.18) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 1px,
      transparent 1px,
      transparent 22px
    );
  pointer-events: none;
}

.card-topline,
.progress-rack,
.module-grid {
  position: relative;
  z-index: 1;
}

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

.typeology-card h2 {
  margin-top: 6px;
  font-family: "Iowan Old Style", "Source Han Serif SC", "Songti SC", serif;
  font-size: 24px;
  line-height: 1;
}

.progress-rack {
  margin: 14px 0 12px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(124, 132, 163, 0.16);
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.progress-copy strong {
  font-size: 22px;
  color: #27314c;
}

.progress-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #405fd8 0%, #7c8ff4 100%);
}

.progress-rack p {
  margin-top: 9px;
  color: #57627a;
  font-size: 13px;
}

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

.module-card {
  border: 1px solid rgba(115, 124, 158, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #2f3550;
  border-radius: 16px;
  min-height: 148px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.module-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
}

.module-card-title {
  display: block;
  margin-top: 10px;
  font-family: "Iowan Old Style", "Source Han Serif SC", "Songti SC", serif;
  font-size: 18px;
  line-height: 1.1;
  word-break: break-word;
  color: #23304b;
}

.module-card-subtitle {
  color: #697489;
  font-size: 12px;
  line-height: 1.2;
}

.module-card-status {
  display: block;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #46526e;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.module-card-action {
  color: #2b4ed7;
  font-size: 12px;
  font-style: normal;
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
}

.module-card.done {
  border-color: rgba(65, 96, 211, 0.34);
  background: rgba(255, 255, 255, 0.96);
}

.module-card.done .module-card-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(58, 88, 198, 0.14);
  background: linear-gradient(180deg, rgba(80, 108, 215, 0.1) 0%, rgba(80, 108, 215, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #26429f;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.module-card:not(.done) .module-card-status {
  color: #7a8499;
  font-size: 12px;
  font-weight: 500;
}

.tip {
  color: var(--muted);
  font-size: 13px;
}

.disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: #7a8398;
}

.module-screen {
  display: grid;
  gap: 10px;
}

.module-subtitle {
  font-size: 14px;
  color: #4764a3;
  font-weight: 600;
}

.module-desc {
  color: var(--muted);
  line-height: 1.6;
}

.done-banner {
  background: #f4f8ff;
  border: 1px solid #d3dff9;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.version-card {
  background: var(--panel);
  border: 1px solid #dee6f5;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(70, 88, 125, 0.07);
}

.version-card h2 {
  font-size: 18px;
}

.version-card p {
  margin-top: 6px;
  color: var(--muted);
}

.start-btn {
  margin-top: 10px;
  width: 100%;
}

.quiz-screen {
  display: grid;
  gap: 12px;
}

.progress {
  color: #4a5f91;
  font-weight: 600;
}

.question-card {
  background: var(--panel);
  border: 1px solid #dde4f4;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(67, 85, 123, 0.08);
}

.question-card h2 {
  font-size: 18px;
  line-height: 1.45;
}

.options {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.option {
  border: 1px solid #d9dfed;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #3a4660;
  background: #fafbff;
}

.option input {
  accent-color: #4f69de;
}

.option.selected {
  border-color: #91a8f3;
  background: #edf2ff;
}

.quiz-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-screen {
  display: grid;
  gap: 10px;
}

.result-card,
.result-section {
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid #dde3f3;
  padding: 14px;
}

.result-card h2 {
  font-size: 24px;
}

.result-card {
  background:
    linear-gradient(180deg, rgba(247, 241, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.muted {
  margin-top: 6px;
  color: var(--muted);
}

.result-section h3 {
  font-size: 16px;
}

.result-section p {
  margin-top: 8px;
  line-height: 1.65;
  color: #3e4d67;
}

.result-section ul {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.result-section li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #3f4d68;
  line-height: 1.5;
}

.result-section li.stacked-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #dbe4fb;
  line-height: 1.65;
}

.tag-list {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.profile-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #dbe4fb;
}

.profile-item strong {
  color: #243250;
}

.profile-item span {
  color: #36508f;
  font-weight: 600;
}

.profile-item em {
  grid-column: 2;
  color: #65728c;
  font-style: normal;
  line-height: 1.5;
  font-size: 13px;
}

.tag-list span {
  background: #edf2ff;
  color: #2f4ca5;
  border: 1px solid #ccd8fb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.readable-tag-list span {
  background: linear-gradient(180deg, #f5efff 0%, #eef3ff 100%);
  color: #3850ab;
  border-color: #d6defb;
  font-size: 13px;
  padding: 6px 12px;
}

.result-radar-section {
  gap: 12px;
}

.radar-wrap {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

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

.radar-grid {
  fill: none;
  stroke: #dbe4fb;
  stroke-width: 1;
}

.radar-spoke {
  stroke: #dbe4fb;
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(122, 107, 227, 0.18);
  stroke: #6c63d9;
  stroke-width: 2;
}

.radar-point {
  fill: #6c63d9;
}

.radar-label {
  font-size: 11px;
  fill: #48597c;
  text-anchor: middle;
  dominant-baseline: middle;
}

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

.radar-axis-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #dde5fb;
}

.radar-axis-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.radar-axis-item strong {
  color: #263655;
  font-size: 13px;
}

.radar-axis-item em {
  font-style: normal;
  color: #5a64cf;
  font-weight: 700;
  font-size: 13px;
}

.radar-axis-item span {
  color: #60708f;
  line-height: 1.55;
  font-size: 13px;
}

.match-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8faff;
  border: 1px solid #dde5fb;
}

.match-item div {
  display: grid;
  gap: 4px;
}

.match-item strong {
  color: #6c63d9;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.match-item span {
  color: #2a3858;
  font-weight: 600;
}

.match-item em {
  font-style: normal;
  color: #4966b0;
  font-weight: 600;
}

.caution-item {
  background: #fff8f4;
  border-color: #f2dccf;
}

.action-item {
  background: #f4fbf6;
  border-color: #d7ecd9;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.deep-dive {
  display: grid;
  gap: 10px;
}

.result-detail-disclosure {
  border: 1px solid #d8e0f2;
  border-radius: 14px;
  background: rgba(246, 248, 255, 0.9);
  overflow: hidden;
}

.result-detail-disclosure summary {
  cursor: pointer;
  list-style: none;
  padding: 14px;
  font-weight: 600;
  color: #2d3d62;
}

.result-detail-disclosure summary::-webkit-details-marker {
  display: none;
}

.result-detail-body {
  display: grid;
  gap: 10px;
  padding: 0 0 12px;
}

.result-detail-body .result-section {
  margin: 0 12px;
}

@media (max-width: 390px) {
  .overview-hero {
    grid-template-columns: 1fr;
  }

  .card-topline {
    flex-direction: column;
  }

  .theme-row {
    justify-content: flex-start;
  }

  .module-card-title {
    font-size: 17px;
  }

  .module-card.done .module-card-status {
    font-size: 14px;
  }
  .panel-header h1,
  .sub-header h1 {
    font-size: 20px;
  }
}

@media (min-width: 860px) {
  #app {
    padding-top: 36px;
  }
  .screen {
    border: 1px solid #d8dff0;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .unlock-screen {
    min-height: auto;
  }
}
