:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #263a33;
  background: #f6f5f0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background-color: #f6f5f0;
  background-image: radial-gradient(ellipse at 12% 0%, #eaf0e9, transparent 42rem);
  background-attachment: fixed;
}


button, input, select { font: inherit; }

button {
  min-height: 48px;
  padding: .8rem 1.35rem;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #285b4b;
  cursor: pointer;
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

:focus-visible {
  outline: 3px solid #da8b35;
  outline-offset: 3px;
}

.screen {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) 0;
}

.intro-card, .form-card {
  position: relative;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #d7e0da;
  border-radius: 20px;
  background: #fffefa;
  box-shadow: 0 18px 48px rgba(41, 65, 56, .05);
  overflow-wrap: anywhere;
}

#screen-start { isolation: isolate; }
.return-intro { position: relative; z-index: 2; top: .5rem; left: 0; width: auto; min-height: 40px; padding: .5rem .9rem; border: 1px solid rgba(47,113,102,.16); background: rgba(255,255,255,.82); box-shadow: 0 8px 18px rgba(41,65,56,.08); backdrop-filter: blur(10px); }
.start-backdrop { display: none; }
.start-backdrop svg { position: absolute; width: clamp(4.5rem, 9vw, 7rem); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .085; }
.start-backdrop svg:nth-child(1) { top: 4%; left: 2%; transform: rotate(-8deg); }
.start-backdrop svg:nth-child(2) { top: 17%; right: 1%; color: #a86127; transform: rotate(7deg); }
.start-backdrop svg:nth-child(3) { bottom: 8%; left: 4%; color: #536d9b; transform: rotate(6deg); }
.start-backdrop svg:nth-child(4) { right: 10%; bottom: 4%; color: #a86127; transform: rotate(-7deg); }
.start-backdrop svg:nth-child(5) { right: 38%; bottom: 1%; transform: rotate(9deg); }

.intro-card {
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .7fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.2rem);
  width: min(100%, 1040px);
  margin-block: clamp(1rem, 5vh, 4rem);
  overflow: hidden;
}

.intro-card::before { position: absolute; top: -8rem; right: -6rem; width: 22rem; height: 22rem; border: 1px dashed rgba(47,113,102,.13); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(218,139,53,.035); content: ""; }
.intro-card::after { position: absolute; bottom: 0; left: 0; width: 42%; height: 3px; border-radius: 0 99px 0 0; background: linear-gradient(90deg, #2f7166, #da8b35, transparent); content: ""; }
.intro-card > * { position: relative; z-index: 1; }
.intro-copy { min-width: 0; }
.intro-kicker { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.intro-kicker .eyebrow { margin: 0; }
.intro-kicker span { padding: .28rem .55rem; border: 1px solid rgba(47,113,102,.16); border-radius: 999px; color: #5f746c; background: rgba(255,255,255,.72); font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: .66rem; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }

.eyebrow {
  margin: 0 0 .75rem;
  color: #467666;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.25;
}

#start-title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; text-wrap: balance; }

.intro { margin: 1rem 0 .75rem; font-weight: 800; }
.start-description { max-width: 42rem; margin: 0; color: #40534c; line-height: 1.75; }

.dimension-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.15rem; }
.dimension-tags span { padding: .36rem .65rem; border: 1px solid rgba(47,113,102,.15); border-radius: 999px; color: #315f53; background: rgba(231,242,237,.78); font-size: .76rem; font-weight: 700; }
.dimension-tags span:nth-child(even) { color: #8a532c; background: rgba(248,235,218,.72); }

.start-visual { position: relative; min-width: 0; min-height: 310px; overflow: hidden; border: 1px solid rgba(47,113,102,.14); border-radius: 30px; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.96), transparent 45%), linear-gradient(145deg, rgba(220,239,232,.74), rgba(240,229,212,.68)); box-shadow: 0 18px 34px rgba(41,65,56,.1), 0 1px 0 white inset; isolation: isolate; }
.start-visual::before { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(47,113,102,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(47,113,102,.045) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, black, transparent 92%); content: ""; }
.career-map { width: 100%; height: 100%; min-height: 310px; color: #2f7166; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: map-drift 7s ease-in-out infinite; }
.map-route { stroke: rgba(47,113,102,.25); stroke-dasharray: 5 8; }
.map-orbit { stroke: rgba(47,113,102,.16); stroke-dasharray: 3 7; }
.map-orbit-inner { stroke: rgba(168,97,39,.13); }
.map-card > rect { fill: rgba(255,255,255,.86); stroke: rgba(47,113,102,.32); }
.map-card circle { fill: #d9ebe5; stroke: #2f7166; }
.map-card .map-chart { fill: rgba(83,109,155,.12); stroke: #536d9b; }
.map-token rect { fill: rgba(255,255,255,.88); stroke: currentColor; }
.token-code { color: #536d9b; }
.token-care { color: #2f7166; }
.token-design { color: #a86127; }
.token-knowledge { color: #536d9b; }
.map-dot { fill: #da8b35; stroke: white; stroke-width: 3; }
.visual-label { position: absolute; padding: .28rem .55rem; border: 1px solid rgba(47,113,102,.13); border-radius: 999px; color: #365f55; background: rgba(255,255,255,.84); box-shadow: 0 8px 18px rgba(41,65,56,.08); font-size: .68rem; font-weight: 700; backdrop-filter: blur(8px); }
.label-one { top: 6%; left: 8%; }
.label-two { top: 43%; right: 4%; }
.label-three { bottom: 6%; left: 32%; }

.explore-steps { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.explore-steps li { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .8rem; border: 1px solid rgba(47,113,102,.13); border-radius: 16px; background: rgba(255,255,255,.66); box-shadow: 0 8px 18px rgba(41,65,56,.06); }
.explore-steps li > span { display: grid; width: 2rem; height: 2rem; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: #2f7166; font-family: Bahnschrift, sans-serif; font-size: .68rem; font-weight: 800; }
.explore-steps li:nth-child(2) > span { background: #536d9b; }
.explore-steps li:nth-child(3) > span { background: #a86127; }
.explore-steps b, .explore-steps small { display: block; }
.explore-steps b { font-size: .84rem; }
.explore-steps small { margin-top: .14rem; color: #66756f; font-size: .7rem; }
.test-mode-options { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.test-mode-button { display: grid; gap: .28rem; min-width: 0; min-height: 112px; padding: 1rem 1.15rem; border: 1px solid rgba(47,113,102,.18); border-radius: 20px; color: #20342e; background: rgba(255,255,255,.84); box-shadow: 0 10px 22px rgba(41,65,56,.08); text-align: left; }
.test-mode-button.recommended { border-color: transparent; color: white; background: linear-gradient(135deg, #245f51, #2f7166); box-shadow: 0 14px 26px rgba(36,95,81,.2); }
.mode-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mode-heading strong { font-size: 1.08rem; }
.mode-heading em { padding: .2rem .45rem; border-radius: 999px; color: #245f51; background: #e7f2ed; font-size: .62rem; font-style: normal; font-weight: 800; }
.test-mode-button b { font-size: 1rem; }
.test-mode-button small { color: #62736d; line-height: 1.45; }
.test-mode-button.recommended small { color: rgba(255,255,255,.78); }

.form-card { width: min(100%, 760px); margin-block: clamp(1rem, 8vh, 6rem); overflow: hidden; isolation: isolate; }
.form-card::before { position: absolute; z-index: -1; top: -7rem; right: -6rem; width: 20rem; height: 20rem; border: 1px dashed rgba(47,113,102,.13); border-radius: 50%; box-shadow: 0 0 0 2.5rem rgba(218,139,53,.03); content: ""; }
.form-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-topline .eyebrow { margin: 0; }
.form-stage-badge { padding: .34rem .65rem; border: 1px solid rgba(47,113,102,.15); border-radius: 999px; color: #41665b; background: rgba(231,242,237,.8); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.field-title { display: flex; align-items: center; gap: .45rem; }
.field-title svg { width: 1.25rem; height: 1.25rem; padding: .18rem; border-radius: 6px; color: #2f7166; background: #e6f1ec; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@keyframes map-drift { 50% { transform: translateY(-5px) rotate(.5deg); } }

h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.45; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.form-grid label { display: grid; gap: .45rem; font-weight: 700; }

select {
  width: 100%;
  min-height: 48px;
  padding: .7rem;
  border: 1px solid #aebdb5;
  border-radius: 12px;
  color: inherit;
  background: white;
}

.button-row, .quiz-nav-main { display: flex; gap: .75rem; justify-content: flex-end; }
.secondary { color: #285b4b; background: #e2ece7; }

.quiz-backdrop { display: none; }
.quiz-backdrop svg { position: absolute; width: clamp(3.4rem, 7vw, 5.4rem); fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; opacity: .11; transform: rotate(var(--turn, 0)); }
.quiz-backdrop svg:nth-child(1) { top: 7%; left: 1%; --turn: -8deg; }
.quiz-backdrop svg:nth-child(2) { top: 18%; right: 0; color: #536d9b; --turn: 7deg; }
.quiz-backdrop svg:nth-child(3) { top: 32%; left: 0; --turn: 8deg; }
.quiz-backdrop svg:nth-child(4) { top: 45%; right: 1%; color: #a86127; --turn: -7deg; }
.quiz-backdrop svg:nth-child(5) { top: 58%; left: 1%; color: #a86127; --turn: 7deg; }
.quiz-backdrop svg:nth-child(6) { top: 70%; right: 0; --turn: -9deg; }
.quiz-backdrop svg:nth-child(7) { top: 82%; left: 0; color: #536d9b; --turn: -6deg; }
.quiz-backdrop svg:nth-child(8) { top: 93%; right: 1%; --turn: 6deg; }
.quiz-header, .question-list, .quiz-nav { z-index: 1; }
.question-list { position: relative; }

.quiz-header {
  position: relative;
  display: block;
  margin-bottom: 1rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(47, 113, 102, .16);
  border-radius: 16px;
  background: #fffefa;
}

.quiz-heading, #quiz-progress, .quiz-stickers { position: relative; z-index: 1; }
.quiz-header .eyebrow { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; margin: 0; font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(1.55rem, 3.4vw, 1.95rem); font-weight: 900; letter-spacing: .18em; text-shadow: 2px 2px 0 rgba(218,139,53,.14); }
.quiz-header .eyebrow::after { width: 2.2rem; height: 3px; border-radius: 99px; background: linear-gradient(90deg, #da8b35 0 68%, rgba(218,139,53,.2) 68%); content: ""; }
.quiz-heading h2 { margin: .65rem 0 .4rem; font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }
#quiz-progress { margin: .7rem 0 0; color: #53645e; font-weight: 700; }
#quiz-progress-bar { display: block; width: 100%; height: 5px; margin-top: .9rem; overflow: hidden; border: none; border-radius: 4px; background: #e6ece5; accent-color: #365f50; }
#quiz-progress-bar::-webkit-progress-bar { background: #e6ece5; border-radius: 4px; }
#quiz-progress-bar::-webkit-progress-value { background: #365f50; border-radius: 4px; }
#quiz-progress-bar::-moz-progress-bar { background: #365f50; border-radius: 4px; }
#screen-quiz { max-width: 800px; padding-block: 1rem; }
.quiz-stickers { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .45rem; padding-left: 1rem; }
.quiz-stickers::before { position: absolute; top: 50%; left: -.2rem; width: 1.2rem; border-top: 2px dotted rgba(47,113,102,.38); content: ""; }
.sticker { width: 2.7rem; height: 2.7rem; padding: .5rem; border: 1px solid rgba(47,113,102,.2); border-radius: 13px; color: #285b4b; background: rgba(255,255,255,.78); box-shadow: 0 7px 16px rgba(41,65,56,.09); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status:empty { display: none; }
.status { padding: .8rem 1rem; border-radius: 12px; background: #e5eee9; }
.status.error { color: #7b2f2f; background: #f9e5e2; }
.question-list { display: grid; gap: 1rem; }

.question {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  overflow: hidden;
  border: 1px solid #d4ded8;
  border-radius: 16px;
  background: #fffefa;
}


.question legend { float: left; width: 100%; max-width: 100%; margin-bottom: 1rem; padding: 0; font-weight: 800; overflow-wrap: anywhere; }
.question-number { margin-right: .45rem; color: #55746a; }
.options { display: grid; clear: both; gap: .65rem; }
.scale-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.option {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  min-height: 48px;
  padding: .75rem;
  border: 1px solid #d5dfda;
  border-radius: 12px;
  background: rgba(251,252,251,.88);
  box-shadow: 0 1px 0 white inset;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.option:hover { border-color: #9ab4aa; }
.option:has(input:checked) { border-color: #2f7166; background: linear-gradient(145deg, #e4f2ed, #d9ebe5); box-shadow: 0 8px 20px rgba(47,113,102,.12); }
.option input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; accent-color: #2f7166; }
.scale-options .option { min-height: 72px; flex-direction: column; justify-content: center; gap: .45rem; padding: .4rem .2rem; text-align: center; overflow-wrap: normal; }
.scale-options .option:has(input:checked) { background: rgba(251,252,251,.88); box-shadow: 0 1px 0 white inset; }
.scale-options .option span { display: grid; min-height: 2.4em; place-items: end center; order: 1; line-height: 1.2; white-space: normal; }
.scale-options .option input { width: var(--dot); height: var(--dot); margin: 0; border: 2px solid #718078; border-radius: 50%; appearance: none; order: 2; }
.scale-options .option input:checked { border-color: #2f7166; background: radial-gradient(circle, #2f7166 0 34%, white 38% 100%); }
.scale-options .option:nth-child(1), .scale-options .option:nth-child(5) { --dot: 2rem; }
.scale-options .option:nth-child(2), .scale-options .option:nth-child(4) { --dot: 1.65rem; }
.scale-options .option:nth-child(3) { --dot: 1.3rem; }
.question:has(.scale-options) { padding: 1rem; }
.question:has(.scale-options) legend { font-weight: 600; }
.unknown-option { margin-top: .55rem; }
.tradeoff-context { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.tradeoff-context p { margin: 0; padding: .9rem; border-top: 2px solid #7a9788; background: #eef2ed; font-size: .9rem; line-height: 1.7; }
.tradeoff-context b { display: block; margin-bottom: .4rem; color: #3d6351; }
.tradeoff-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.tradeoff-options .option { flex-direction: column; min-width: 0; padding: .65rem .2rem; text-align: center; font-size: .8rem; }
.unknown-option .option { min-height: 40px; padding: .4rem .65rem; border-color: transparent; background: transparent; color: #52675e; font-size: .8rem; }
#quiz-guide { margin: .65rem 0 0; font-size: .85rem; line-height: 1.6; color: #5d6c65; }
.score-caption { color: #596b63; font-size: .8rem; line-height: 1.7; }
.answer-evidence { margin: 1.5rem 0; }
#career-basis { margin: 0; padding: 0; list-style: none; }
#career-basis li { padding: .9rem 0; border-bottom: 1px solid #dce3dd; }
#career-basis small { color: var(--accent); }
#career-basis p { margin: .4rem 0; font-size: .9rem; }
#career-basis b { display: block; font-size: .85rem; font-weight: 500; color: #41564b; }
.answer-review { display: block; min-height: 44px; margin-top: .25rem; padding: .5rem 0; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.score-method { border-top: 1px solid #d5ddd5; margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; line-height: 1.8; }
.score-method summary { cursor: pointer; padding: .5rem 0; font-weight: 700; }
.insufficient-report { max-width: 720px; margin: 2rem auto; }
.insufficient-report button { margin: .5rem .5rem 0 0; }
.question-missing { border-color: #bd4f42; box-shadow: 0 0 0 3px rgba(189, 79, 66, .16); }
.quiz-nav { margin-top: 1rem; padding: .7rem 0; border-top: 1px solid #d7dfd5; }
.quiz-restart-row { display: flex; justify-content: flex-end; margin-top: .55rem; }
.quiz-restart-row button { width: auto; min-height: 34px; padding: .35rem .8rem; font-size: .78rem; }
.submit { background: #7d4b30; }

.career-report {
  --deep: #183f3a;
  --accent: #2f7166;
  --pale: #d7ece6;
  --soft: #f4faf7;
  overflow: clip;
  border-radius: 20px;
  color: var(--deep);
  background: white;
  border: 1px solid #d7dfd5;
  box-shadow: 0 18px 48px rgba(27, 50, 43, .05);
}

.result-header, .action-panel, .final-analysis { padding: clamp(1.4rem, 4vw, 3rem); }
.result-header { border-top: 4px solid var(--accent); border-bottom: 1px solid var(--pale); background: linear-gradient(110deg, white, var(--soft)); }
.result-header h1 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); }
.result-header > p:last-child { max-width: 760px; margin-bottom: 0; font-size: .95rem; line-height: 1.8; }
.career-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: .9rem 0; }
#career-code { padding: .3rem .5rem; border: 1px solid var(--pale); border-radius: 5px; color: var(--accent); font-size: .8rem; line-height: 1.2; letter-spacing: .08em; }
#career-name-en { color: #111; font-size: .8rem; }

.report-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "ranks ranks" "analysis portrait";
  align-items: start;
  gap: clamp(1rem, 2vw, 1.8rem);
  padding: clamp(1rem, 3vw, 2rem);
  background: #fffefa;
}

.rank-rail { grid-area: ranks; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.rank-card {
  min-width: 0;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--deep) 18%, transparent);
  border-radius: 12px;
  color: var(--deep);
  text-align: left;
  background: rgba(255,255,255,.78);
}
.rank-card small, .rank-card strong, .rank-card span { display: block; }
.rank-card strong { margin: .45rem 0; font-size: 1rem; line-height: 1.35; }
.rank-card span { color: color-mix(in srgb, var(--deep) 72%, white); font-size: .8rem; }
.rank-card.active { border-color: var(--accent); color: white; background: var(--deep); box-shadow: 0 10px 25px color-mix(in srgb, var(--deep) 22%, transparent); }
.rank-card.active span { color: rgba(255,255,255,.86); }

.portrait-panel {
  grid-area: portrait;
  display: flex;
  min-width: 0;
  min-height: 280px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, white, var(--soft));
  border: 1px solid var(--pale);
}
.portrait-images { display: grid; flex: 1; place-items: center; min-height: 0; }
.portrait-images img { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 1; border-radius: 12px; object-fit: contain; }

.career-analysis { grid-area: analysis; min-width: 0; padding: .6rem 0; }
.career-analysis h2 { overflow-wrap: anywhere; }
.career-lead { font-size: 1rem; font-weight: 600; line-height: 1.8; }
.career-analysis p { line-height: 1.75; }
.ability-meters { display: grid; gap: .65rem; margin: 1.5rem 0; }
.meter { display: grid; grid-template-columns: 5.3rem 2rem 1fr; align-items: center; gap: .55rem; font-size: .88rem; }
.meter b { text-align: right; }
.meter i { height: 8px; overflow: hidden; border-radius: 99px; background: var(--pale); }
.meter i::after { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--accent); content: ""; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.detail-grid section { min-width: 0; padding: 1rem 0; border-top: 1px solid var(--pale); background: transparent; overflow-wrap: anywhere; }
.detail-grid h3 { margin: 0 0 .55rem; font-size: .92rem; }
.detail-grid p { margin: 0; font-size: .88rem; }
.role-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.role-list li { padding: .32rem .55rem; border-radius: 99px; background: var(--pale); font-size: .82rem; }

.action-panel { color: var(--deep); background: var(--soft); border-block: 1px solid var(--pale); }
.action-panel .eyebrow { color: var(--accent); }
.action-panel ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.action-panel li { display: flex; gap: .75rem; padding: 1rem; border: 1px solid var(--pale); border-radius: 12px; background: white; line-height: 1.7; }
.action-panel li b { flex: 0 0 auto; }
.final-analysis { position: relative; line-height: 1.75; background: white; }
.final-analysis::before { position: absolute; top: 0; left: clamp(1.4rem, 4vw, 3rem); width: 5rem; height: 3px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--accent), #da8b35); content: ""; }
.final-analysis p { max-width: 900px; }
.final-analysis small { color: #5d6964; }
.career-analysis h3 { display: flex; align-items: center; gap: .45rem; }
.career-analysis h3::before { width: .48rem; height: .48rem; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .22rem var(--pale); content: ""; }
.result-controls { display: flex; justify-content: flex-end; gap: .7rem; padding: 0 clamp(1.4rem, 4vw, 3rem) 1rem; }
.share-status { margin: 0 clamp(1.4rem, 4vw, 3rem) 2rem; }
#result-author { display: grid; gap: .25rem; padding: 1.2rem; color: #111; text-align: center; font-size: .78rem; background: #f3f4f3; }

@media (max-width: 960px) and (min-width: 601px) {
  .report-body { grid-template-columns: minmax(0, 1fr) 210px; }
  .portrait-panel { min-height: 230px; }
}

@media (max-width: 700px) {
  .quiz-header { padding: 1rem; border-radius: 16px; }
  .quiz-stickers .sticker { width: 2.55rem; height: 2.55rem; }
  .scale-options { gap: clamp(.25rem, 1vw, .65rem); }
  .scale-options .option { font-size: clamp(.72rem, 3vw, 1rem); }
}

@media (max-width: 760px) {
  .intro-card { grid-template-columns: 1fr; gap: 1rem; margin-block: 1rem; }
  .test-mode-options { grid-row: 2; }
  .start-visual { grid-row: 3; min-height: 260px; }
  .explore-steps { grid-row: 4; }
  .career-map { min-height: 260px; }
  .start-backdrop svg:nth-child(even) { display: none; }
}

@media (max-width: 520px) {
  .screen { width: min(100% - 1rem, 1120px); }
  .intro-card { border-radius: 22px; }
  .intro-kicker { align-items: flex-start; }
  .dimension-tags { gap: .35rem; }
  .dimension-tags span { padding: .3rem .52rem; font-size: .68rem; }
  .explore-steps { gap: .4rem; }
  .explore-steps li { flex-direction: column; gap: .35rem; padding: .6rem .25rem; text-align: center; }
  .explore-steps li > span { width: 1.75rem; height: 1.75rem; }
  .explore-steps b { font-size: .75rem; white-space: nowrap; }
  .explore-steps small { font-size: .6rem; white-space: nowrap; }
  .test-mode-options { gap: .5rem; }
  .test-mode-button { min-height: 108px; padding: .8rem; }
  .mode-heading strong { font-size: .95rem; }
  .test-mode-button small { font-size: .68rem; }
  .visual-label { font-size: .61rem; }
  button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .button-row, .quiz-nav-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-nav-main .submit { grid-column: 1 / -1; }
}

@media (hover: hover) {
  button:hover { filter: brightness(1.04); box-shadow: 0 10px 22px rgba(41,65,56,.14); transform: translateY(-1px); }
  .explore-steps li:hover { border-color: rgba(47,113,102,.28); box-shadow: 0 12px 24px rgba(41,65,56,.09); }
}

@media (max-width: 460px) {
  body::before { width: 13rem; height: 13rem; }
  body::after { width: 17rem; height: 17rem; }
  .quiz-header::after { right: 4rem; }
  .quiz-stickers { gap: .35rem; }
  .quiz-stickers .sticker { width: 2.35rem; height: 2.35rem; padding: .42rem; }
  .quiz-stickers .sticker:last-child { display: none; }
  .quiz-heading h2 { margin-top: 1.1rem; }
  .quiz-backdrop svg { width: 3.2rem; opacity: .09; }
  .quiz-backdrop svg:nth-child(4n), .quiz-backdrop svg:nth-child(7) { display: none; }
}

@media (max-width: 600px) {
  .career-report { border-radius: 20px; }
  .result-header { padding: 1.25rem; }
  .result-header h1 { font-size: clamp(1.45rem, 6vw, 1.8rem); }
  .result-header > p:last-child { font-size: .82rem; }
  .report-body { grid-template-columns: 1fr; grid-template-areas: "ranks" "portrait" "analysis"; gap: 1rem; padding: 1rem; }
  .rank-rail { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .rank-card { min-width: 0; min-height: 84px; padding: .8rem 1rem; border-radius: 14px; }
  .rank-card strong { font-size: .95rem; }
  .rank-card small, .rank-card span { font-size: .8rem; }
  .portrait-panel { justify-self: center; width: min(100%, 248px); min-height: 248px; padding: .65rem; border-radius: 24px; background: radial-gradient(ellipse at 50% 75%, var(--pale), var(--soft) 65%, white); }
  .career-analysis { padding: .5rem 0; }
  .detail-grid, .action-panel ol { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 4.8rem 1.8rem 1fr; }
  .result-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .result-controls button { width: 100%; padding-inline: .35rem; font-size: .78rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Readable comparison and native disclosure keep long reports manageable. */
.result-jump { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .65rem 1.25rem; border-bottom: 1px solid var(--pale); background: #fffefa; }
.result-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--deep); text-underline-offset: 4px; font-size: .85rem; }
.result-jump label { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .8rem; }
.result-jump select { min-height: 44px; max-width: 250px; padding: .5rem; border: 1px solid var(--pale); border-radius: 8px; background: white; color: var(--deep); }
#report-comparison, #career-current, #career-actions { scroll-margin-top: 8rem; }
.career-analysis .action-panel { margin: 1rem 0; padding: 1.1rem; border: 1px solid var(--pale); border-radius: 12px; }
.career-analysis .action-panel h3 { margin: .5rem 0; }
.career-analysis .action-panel ol { grid-template-columns: 1fr; gap: .5rem; margin-top: 1rem; }
.career-analysis .action-panel li { padding: .7rem; }
.answer-evidence, .dimension-details { margin: 1rem 0; border-top: 1px solid var(--pale); }
.answer-evidence summary, .dimension-details summary { min-height: 48px; padding: 1rem 0; cursor: pointer; font-weight: 600; }
.result-storage-note { margin: 0; padding: 0 1.4rem 1rem; font-size: .8rem; line-height: 1.7; color: #586b62; }
.specialty-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1rem 0; border-top: 1px solid #dce4dc; }
.specialty-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.specialty-card h3, .specialty-card h4 { margin: 0 0 .6rem; font-size: 1rem; }
.specialty-card p { margin: .5rem 0; font-size: .85rem; line-height: 1.7; }
.start-directory-link { float: right; width: auto; min-height: 40px; margin-top: .5rem; padding: .5rem .8rem; }
#career-directory { width: min(940px, calc(100% - 24px)); max-height: 88svh; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #d7e0da; border-radius: 20px; color: #263a33; background: #fffefa; overscroll-behavior: contain; }
#career-directory::backdrop { background: rgba(20, 40, 30, .42); }
.directory-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.directory-header h2 { margin: .4rem 0 1rem; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.directory-header form { flex: none; }
.directory-search-label { display: block; margin-bottom: .5rem; font-size: .9rem; }
#directory-search { width: 100%; min-height: 48px; padding: .75rem; border: 1px solid #bdcec0; border-radius: 10px; background: white; }
#directory-count { color: #586b62; font-size: .85rem; }
#directory-content { display: grid; gap: .65rem; }
.directory-group { border: 1px solid #dce4dc; border-radius: 12px; }
.directory-group > summary { display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; min-height: 88px; cursor: pointer; }
.directory-group > summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; }
.directory-group[open] > summary::after { content: '−'; }
.directory-group > summary img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.directory-group > summary b, .directory-group > summary small { display: block; }
.directory-group > summary small { margin-top: .35rem; color: #586b62; font-size: .8rem; line-height: 1.6; }
.directory-detail { padding: 0 1rem 1rem; line-height: 1.75; }
@media (max-width: 600px) {
  .result-jump { gap: .2rem .8rem; padding: .5rem 1rem; }
  .result-jump label { width: 100%; margin: 0; }
  .result-jump select { flex: 1; max-width: none; min-width: 0; }
  .specialty-card { grid-template-columns: 76px minmax(0, 1fr); gap: .7rem; }
  .directory-group > summary { gap: .6rem; padding: .5rem; }
  .directory-group > summary img { width: 52px; height: 52px; }
}

@media (min-width: 601px) {
  .scale-options .option span { min-height: 1.2em; }
  .scale-options .option br { display: none; }
  .question:has(.scale-options) { padding: .75rem; }
  .question:has(.scale-options) legend { margin-bottom: .75rem; }
}
.quiz-progress-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
#quiz-section-progress { margin: 0; color: #62736d; font-size: .8rem; line-height: 1.6; }
.test-mode-button.advanced { border-color: #cab891; background: #f7f1e5; }
.test-mode-button.advanced em { color: #795b2d; background: #ede2ca; }
@media (max-width: 760px) {
  .test-mode-options { grid-template-columns: 1fr; }
  .test-mode-button { min-height: 108px; }
}
