:root {
  color-scheme: only light;
  --paper: #f7f6f1;
  --paper-2: #efede7;
  --ink: #171815;
  --muted: #5f625c;
  --forest: #173f31;
  --orange: #ff5226;
  --orange-button: #c63b18;
  --line: #d7d4cd;
  --white: #fff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overscroll-behavior: none; }
body { min-width: 0; background: #e3e8e4; color: var(--ink); }
button, summary { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, p { margin: 0; }

#app { min-height: 100dvh; display: grid; place-items: center; }
.screen { position: relative; width: min(100%, 440px); min-height: 100dvh; background: var(--paper); }
.brand-lockup { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; }
.brand-lockup img { display: block; width: 114px; height: auto; }
.brand-lockup span { color: var(--ink); font-size: 15px; font-weight: 900; letter-spacing: -.025em; }

.loading { height: 100dvh; display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.error { min-height: 100dvh; padding: 32px 24px; display: grid; align-content: center; gap: 28px; }
.error h1 { margin-top: 20px; font-size: 36px; letter-spacing: -.05em; }
.error p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.error button { min-height: 56px; border: 0; background: var(--forest); color: var(--white); font-weight: 800; }

.intro {
  height: 100dvh;
  overflow: hidden;
  padding: max(26px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}
.intro header, .result > header { display: flex; align-items: center; justify-content: space-between; }
.intro header span, .result > header span { color: var(--muted); font-size: 16px; font-weight: 750; }
.intro-copy { align-self: center; }
.intro-copy > p:first-child { margin-bottom: 14px; color: var(--orange); font-size: 16px; font-weight: 850; }
.intro-copy h1 { font-size: clamp(38px, 10.4vw, 48px); line-height: 1.08; letter-spacing: -.055em; word-break: keep-all; }
.intro-copy h1 span { display: block; }
.intro-body { max-width: 28ch; margin-top: 22px; color: var(--muted); font-size: 18px; line-height: 1.55; word-break: keep-all; }
.intro-rule { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--forest); font-size: 15px; font-weight: 750; line-height: 1.55; }
.primary { min-height: 60px; border: 0; background: var(--forest); color: var(--white); font-size: 17px; font-weight: 850; cursor: pointer; }

.quiz {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) auto;
}
.quiz-head { padding: max(18px, env(safe-area-inset-top)) 22px 0; display: grid; align-content: start; gap: 10px; }
.quiz-progress { display: flex; align-items: center; gap: 14px; }
.count { flex: 0 0 auto; color: var(--muted); font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.progress-track { flex: 1; height: 3px; overflow: hidden; background: var(--line); }
.progress-track i { display: block; height: 100%; background: var(--orange); transition: width 180ms ease; }
.question-stage { min-height: 0; padding: 34px 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.situation-label { margin-bottom: 18px; color: var(--orange); font-size: 16px; font-weight: 850; }
.question-stage h2 { max-width: 100%; font-size: clamp(28px, 7.2vw, 34px); line-height: 1.24; letter-spacing: -.046em; word-break: keep-all; text-wrap: balance; }

/* Approved photo layout shared by all questions; scoring and copy are unchanged. */
.quiz.has-scene-image { height: auto; min-height: 100dvh; overflow: visible; grid-template-rows: 58px auto auto; align-content: start; }
.has-scene-image .question-stage { justify-content: flex-start; padding: 24px 24px 22px; }
.has-scene-image .situation-label { margin-bottom: 12px; }
.question-scene { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 16px; }
.has-scene-image .choice { min-height: 104px; }
@media (max-height: 720px) {
  .quiz.has-scene-image { grid-template-rows: 50px auto auto; }
  .has-scene-image .question-stage { padding-top: 14px; padding-bottom: 16px; }
  .question-scene { margin-top: 14px; }
  .has-scene-image .choice { min-height: 94px; }
}

.choice-row { display: grid; gap: 10px; padding: 0 20px max(20px, env(safe-area-inset-bottom)); background: var(--paper); }
.choice {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 16px 46px 14px 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.45;
  word-break: keep-all;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}
.choice > span { position: absolute; left: 17px; top: 18px; color: var(--orange); font-size: 16px; font-weight: 900; }
.choice-copy { display: block; font-size: 16px; font-weight: 760; }
.choice-counter { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.choice-counter[hidden] { display: none; }
.choice:active { transform: scale(.988); }
.choice-row.is-locked .choice:not(.selected) { opacity: .28; }
.choice-row.is-locked.show-votes .choice:not(.selected) { opacity: 1; }
.choice.selected { border-color: var(--forest); background: var(--forest); color: var(--white); transform: scale(.988); }
.choice.selected > span { color: #ffb09d; }
.choice.selected .choice-counter { color: #ffb09d; }
.choice::before { content: ""; position: absolute; left: 0; bottom: 0; width: var(--vote-share, 0%); height: 5px; background: var(--orange); transition: width 480ms cubic-bezier(.2,.7,.2,1); }
.choice-followup { padding: 18px 24px 28px; }
.choice-followup[hidden] { display: none; }
.choice-followup p { margin: 0 0 16px; min-height: 20px; color: var(--muted); font-size: 13px; }
.choice:disabled { color: var(--ink); cursor: default; }
.choice.selected:disabled { color: var(--white); }
.choice.selected::after { content: "✓"; position: absolute; right: 17px; top: 17px; color: #ffb09d; font-size: 18px; font-weight: 900; }

.has-scene-image .choice-row { padding-left: 24px; padding-right: 24px; }
.has-scene-image .choice { padding-right: 20px; }
.has-scene-image .choice-copy { font-weight: 600; }
.has-scene-image .situation-label,
.has-scene-image .choice:not(.selected) > .choice-letter { color: var(--orange-button); }
.has-scene-image .choice.selected { padding-right: 46px; }

.result { min-height: 100dvh; padding: max(26px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); }
.result > header { margin-bottom: 22px; }
.section-label { color: var(--orange); font-size: 16px; font-weight: 850; }
.result-profile { margin: 30px 0 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-row { min-height: 42px; display: grid; grid-template-columns: 48px minmax(0,1fr) 56px; gap: 10px; align-items: center; }
.profile-row span, .profile-row strong { font-size: 16px; }
.profile-row span { font-weight: 800; }
.profile-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.profile-row i { height: 8px; background: var(--paper-2); }
.profile-row b { display: block; height: 100%; background: var(--orange); transition: width 280ms ease; }
.result-traits { display: grid; margin: 20px 0 34px; }
.result-traits h2, .result-counts h2 { margin-bottom: 12px; font-size: 23px; line-height: 1.3; letter-spacing: -.04em; word-break: keep-all; }
.result-traits div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result-traits span { display: block; margin-bottom: 6px; color: var(--orange-button); font-size: 14px; font-weight: 850; }
.result-traits p { font-size: 18px; line-height: 1.5; font-weight: 500; word-break: keep-all; }
.share-card { margin: 0 0 12px; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--forest); background: var(--forest); color: var(--white); }
.share-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.share-card .brand-lockup span { color: var(--white); }
.share-brand > span, .share-card small { color: #ffb09d; font-size: 14px; font-weight: 760; }
.result-hero h1 { margin: 32px 0 8px; color: var(--white); font-size: clamp(38px, 9.2vw, 46px); line-height: 1.14; letter-spacing: -.05em; word-break: keep-all; }
.result-hero h1.tied-names { display: grid; gap: 12px; font-size: clamp(30px, 7.7vw, 40px); }
.result-hero h1.tied-names span { display: block; }
.result-art { margin: 16px 0 24px; }
.result-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.result-art.tied-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tie-traits { display: grid; gap: 8px; margin: 10px 0 24px; padding: 0; list-style: none; color: var(--white); font-size: 17px; line-height: 1.4; font-weight: 700; }
.result-hero > .result-subtitle { margin: 0 0 18px; color: var(--white); font-size: 17px; line-height: 1.4; font-weight: 760; word-break: keep-all; }
.result-hero > .result-hook { max-width: 27ch; margin: 0 0 24px; color: var(--white); font-size: 18px; line-height: 1.45; font-weight: 680; word-break: keep-all; }
.result-signs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.result-signs li { padding: 7px 9px; border: 1px solid #729183; color: var(--white); font-size: 13px; font-weight: 700; }
.result-frequency { display: block; margin-top: 24px; color: #ffb09d; font-size: 13px; line-height: 1.5; font-weight: 600; }
.result-frequency:empty { display: none; }
.result-hero > small { margin-top: auto; }
.share-card small { display: block; line-height: 1.5; }
.result-counts { padding: 0 0 25px; }
.deep-example { margin: 22px 0; padding: 20px; background: var(--white); border: 1px solid var(--line); }
.deep-example header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.deep-example h3 { margin: 0; font-size: 18px; }
.deep-example small { color: var(--muted); }
.deep-example dl { display: grid; gap: 12px; margin: 20px 0 0; }
.deep-example dl > div { padding: 16px; background: var(--paper); border-left: 3px solid var(--forest); }
.deep-example dt { margin-bottom: 6px; font-size: 14px; font-weight: 800; color: var(--orange-button); }
.deep-example dt span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; background: var(--forest); color: var(--white); }
.deep-example dd { margin: 0; font-size: 17px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.deep-example .preview-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 4px; margin: 0; padding: 0; list-style: none; font-size: 10px; }
.preview-areas li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; color: var(--muted); }
.preview-icon { display: block; width: 20px; height: 20px; flex: none; }
.area-symbol { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.preview-areas .area-focus { color: var(--orange-button); font-weight: 700; }
.area-focus .area-symbol { border-color: var(--orange-button); }
.preview-connector { display: block; width: 100%; height: 30px; margin-top: 16px; color: var(--forest); }
.deep-example .example-evidence { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.deep-example .example-label { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.deep-example .example-label:first-child { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .deep-example .example-output { animation: preview-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
    .preview-connector path { stroke-dasharray: 320; animation: preview-connect linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
  @keyframes preview-enter { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes preview-connect { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
}
.result-counts .result-profile { margin: 10px 0 14px; }
.result-counts > p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.less-chosen { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.less-chosen h3 { margin: 0 0 12px; font-size: 18px; }
.less-chosen p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.less-chosen strong { display: block; color: var(--orange-button); }
.result .less-chosen { margin: 0 0 32px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.result .less-chosen > article { margin: 0 0 28px; }
.result .less-chosen .section-label { display: block; margin-bottom: 10px; line-height: 1.5; }
.result .less-chosen h2 { margin: 0; font-size: 24px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.result .less-chosen > p { margin: 0 0 24px; font-size: 17px; line-height: 1.65; }
.result .deep-example h3 { margin: 0; }
.result .deep-example small { font-size: 12px; white-space: nowrap; }
.type-distribution { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.type-distribution h2 { margin-bottom: 10px; font-size: 23px; letter-spacing: -.04em; }
.type-distribution > p { margin-bottom: 20px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.type-rows { display: grid; gap: 18px; }
.type-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; }
.type-row span { font-size: 15px; font-weight: 720; word-break: keep-all; }
.type-row strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.type-row i { grid-column: 1 / -1; height: 7px; background: var(--paper-2); }
.type-row b { display: block; height: 100%; background: #8e938a; }
.type-row.mine span, .type-row.mine strong { color: var(--orange-button); }
.type-row.mine b { background: var(--orange); }
.share { width: 100%; min-height: 54px; border: 1px solid var(--forest); background: var(--white); color: var(--forest); font-weight: 850; cursor: pointer; }
.share-status { min-height: 20px; margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.share-status:empty { display: none; }
.result-section { padding: 0; border-top: 1px solid var(--line); }
.evidence-section ol { margin: 18px 0 0; padding: 0; list-style: none; }
.evidence-section li { min-height: 92px; padding: 15px 0; display: grid; grid-template-columns: 38px 1fr; align-items: start; border-bottom: 1px solid var(--line); }
.evidence-section li > span { color: var(--orange); font-size: 16px; font-weight: 900; }
.evidence-section li p { font-size: 16px; line-height: 1.5; }
.evidence-section li small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 16px; font-weight: 800; }
.answer-review { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.answer-review summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 16px; font-weight: 850; list-style: none; }
.answer-review summary::after { content: "+"; color: var(--orange); font-size: 22px; }
.answer-review[open] summary::after { content: "−"; }
.answer-review ol { margin: 0; padding: 0 0 20px; list-style: none; }
.answer-review li { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 15px 0; border-top: 1px solid var(--line); }
.answer-review li > span, .answer-review small, .answer-review li p { font-size: 16px; }
.answer-review li > span { color: var(--orange); font-weight: 900; }
.answer-review small { display: block; color: var(--muted); line-height: 1.45; }
.answer-review li p { margin-top: 5px; font-weight: 760; line-height: 1.45; }
.preview-boundary { padding: 24px 0 0; font-size: 16px; font-weight: 800; line-height: 1.55; }
.paid-next { margin: 24px -22px 0; padding: 30px 22px; background: var(--forest); color: var(--white); }
.paid-next small { color: #ffb09d; font-size: 13px; font-weight: 850; }
.paid-next h2 { margin: 10px 0 12px; font-size: 24px; line-height: 1.3; letter-spacing: -.04em; word-break: keep-all; }
.paid-next p { font-size: 16px; line-height: 1.6; }
.paid-next a { min-height: 56px; margin-top: 18px; display: grid; place-items: center; background: var(--orange-button); color: var(--white); font-weight: 850; text-decoration: none; }
.again { width: 100%; min-height: 54px; margin-top: 14px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font-weight: 850; cursor: pointer; }
.empty-result { display: flex; flex-direction: column; gap: 20px; }
.empty-result h1 { margin-top: 80px; font-size: 32px; line-height: 1.25; word-break: keep-all; }
.empty-result p { font-size: 17px; line-height: 1.5; }
.empty-result .again { margin-top: auto; }

:focus-visible { outline: 3px solid #2366d1; outline-offset: -3px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
@keyframes choice-progress { from { width: 0; } to { width: 100%; } }

@media (max-height: 720px) {
  .quiz { grid-template-rows: 50px minmax(0, 1fr) auto; }
  .quiz-head { padding-top: 12px; gap: 7px; }
  .question-stage { padding-top: 18px; padding-bottom: 18px; }
  .situation-label { margin-bottom: 12px; }
  .question-stage h2 { font-size: 25px; }
  .choice { min-height: 94px; padding-top: 12px; padding-bottom: 12px; }
  .choice > span { top: 14px; }
  .choice.selected::after { top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
.profile { display:block; padding:max(26px,env(safe-area-inset-top)) 24px max(22px,env(safe-area-inset-bottom)); }
.profile header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.profile header > span { color:var(--muted); font-size:14px; font-weight:750; }
.profile-content { padding-top:32px; }
.profile h1 { margin:0; font-size:clamp(28px,8vw,36px); line-height:1.2; letter-spacing:-.045em; word-break:keep-all; }
.profile .intro-body { margin-top:14px; max-width:none; font-size:17px; }
.profile-options { display:grid; gap:8px; margin-top:24px; }
.profile-option { display:grid; gap:4px; width:100%; min-height:52px; padding:12px 16px; text-align:left; border:1px solid var(--line); background:var(--white); color:var(--ink); cursor:pointer; font:inherit; font-size:18px; }
.profile-option strong { font-weight:750; }
.profile-option span { font-size:13px; line-height:1.4; color:var(--muted); word-break:keep-all; }
.profile-option:hover,.profile-option:active { border-color:var(--forest); background:var(--paper-2); }
.profile-option:focus-visible,.profile-back:focus-visible,.profile-skip:focus-visible { outline:3px solid var(--forest); outline-offset:3px; }
.profile-industry { margin-bottom:12px; color:var(--forest); font-weight:750; }
.profile-back,.profile-skip { width:100%; min-height:44px; margin-top:12px; background:none; border:0; color:var(--forest); font:inherit; cursor:pointer; }
.profile-back { color:var(--muted); text-decoration:underline; }
@media(max-height:740px) { .profile-content { padding-top:20px; } .profile-options { margin-top:18px; } .profile-option { padding:10px 14px; } }

.deep-example h3, .deep-example dt { word-break: keep-all; line-height: 1.5; }
.result .less-chosen .section-label { color: var(--orange-button); }
.draft-restart { margin: 8px 24px 24px; border-top: 1px solid #d8d6ce; font-size: 14px; line-height: 1.65; color: #58645b; }
.draft-restart summary { min-height: 48px; padding: 14px 0; cursor: pointer; }
.draft-restart-panel { padding: 0 0 16px; }
.draft-restart-panel p { margin: 0 0 16px; }
.draft-restart-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.draft-restart-actions button { min-height: 48px; padding: 10px 14px; font: inherit; border: 1px solid #173f31; background: transparent; color: #173f31; cursor: pointer; }
.draft-restart-actions [data-new-draft] { background: #173f31; color: white; }
.draft-restart [data-restart-status]:not(:empty) { margin: 16px 0 0; color: #a13b24; }

/* UI refresh: visual hierarchy only. Test copy, scoring and timing stay unchanged. */
:root {
  --surface: #fcfbf7;
  --customer: #2f7561;
  --profit: #c55a2d;
  --action: #356999;
  --operations: #735b88;
  --radius-control: 14px;
  --radius-panel: 22px;
  --shadow-panel: 0 18px 48px rgb(23 63 49 / 10%);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgb(47 117 97 / 11%), transparent 30rem),
    radial-gradient(circle at 88% 92%, rgb(255 82 38 / 10%), transparent 28rem),
    #e8ece8;
}

.screen { width: min(100%, 480px); max-width: 100%; min-width: 0; background: var(--surface); }
#app { width: 100%; min-width: 0; overflow-x: hidden; }
.intro, .profile, .quiz, .result { isolation: isolate; }

.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14%;
  right: -106px;
  width: 250px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 28deg, var(--customer), var(--action), var(--operations), var(--profit), var(--customer));
  opacity: .12;
  filter: saturate(.85);
}
.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -88px;
  bottom: 14%;
  width: 186px;
  aspect-ratio: 1;
  border: 34px solid rgb(23 63 49 / 6%);
  border-radius: 44% 56% 62% 38%;
  transform: rotate(18deg);
}
.intro header, .result > header, .profile header { min-height: 28px; }
.intro-copy { width: 100%; max-width: 390px; min-width: 0; }
.intro-copy > p:first-child { letter-spacing: -.02em; }
.intro-copy h1 { max-width: 9.5em; text-wrap: balance; }
.intro-body { max-width: 31ch; }
.intro-rule { width: fit-content; padding: 9px 12px; border: 1px solid rgb(23 63 49 / 14%); border-radius: 999px; background: rgb(255 255 255 / 68%); }
.primary, .error button, .profile-option, .choice, .share, .again, .paid-next a, .draft-restart-actions button {
  border-radius: var(--radius-control);
}
.primary, .paid-next a {
  box-shadow: 0 10px 22px rgb(23 63 49 / 18%);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.primary:active, .paid-next a:active { transform: translateY(1px) scale(.99); box-shadow: 0 5px 12px rgb(23 63 49 / 14%); }

.profile-content { max-width: 420px; margin-inline: auto; }
.profile-option {
  min-height: 58px;
  border-color: rgb(23 63 49 / 16%);
  box-shadow: 0 5px 18px rgb(23 63 49 / 4%);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.profile-option:hover { box-shadow: 0 8px 22px rgb(23 63 49 / 8%); }
.profile-option:active { transform: scale(.99); }

.quiz-head { background: rgb(252 251 247 / 92%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.progress-track { height: 4px; border-radius: 999px; }
.progress-track i { border-radius: inherit; }
.has-scene-image .question-stage { padding-top: 22px; }
.question-stage h2 { max-width: 13em; }
.question-scene {
  overflow: hidden;
  border: 1px solid rgb(23 63 49 / 9%);
  border-radius: 18px;
  background: var(--paper-2);
  box-shadow: 0 14px 34px rgb(23 63 49 / 9%);
}
.choice-row {
  gap: 10px;
  padding-top: 4px;
  background: linear-gradient(to bottom, rgb(252 251 247 / 78%), var(--surface) 22px);
}
.choice-followup {
  position: relative;
  min-height: 30px;
  padding: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(23 63 49 / 7%);
}
.choice-followup[hidden] { display: grid; visibility: hidden; }
.choice-followup p { min-height: 0; margin: 0; padding: 6px 12px; color: var(--forest); text-align: center; font-size: 12px; font-weight: 750; }
.choice-followup:not([hidden])::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  animation: choice-feedback-time 2.5s linear forwards;
}
.choice {
  border-color: rgb(23 63 49 / 15%);
  box-shadow: 0 7px 20px rgb(23 63 49 / 5%);
}
.choice:hover:not(:disabled) { border-color: rgb(23 63 49 / 42%); box-shadow: 0 10px 26px rgb(23 63 49 / 9%); }
.choice.selected { border-color: var(--forest); box-shadow: 0 12px 28px rgb(23 63 49 / 18%); }
.choice::before { height: 4px; }
.choice-counter { font-size: 14px; }
@keyframes choice-feedback-time { from { width: 100%; } to { width: 0; } }

.result { padding-inline: 20px; }
.share-card {
  border: 0;
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.result-hero { position: relative; overflow: hidden; }
.result-hero::before {
  content: "";
  position: absolute;
  inset: auto -110px -130px auto;
  width: 260px;
  aspect-ratio: 1;
  border: 46px solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  pointer-events: none;
}
.result-art { position: relative; z-index: 1; overflow: hidden; border-radius: 16px; background: rgb(255 255 255 / 7%); }
.result-art img { border-radius: 16px; }
.result-signs li { border-color: rgb(255 255 255 / 30%); border-radius: 999px; background: rgb(255 255 255 / 6%); }
.share { border-color: rgb(23 63 49 / 24%); box-shadow: 0 5px 16px rgb(23 63 49 / 5%); transition: transform 140ms ease, background 140ms ease; }
.share:hover { background: rgb(23 63 49 / 5%); }
.share:active, .again:active { transform: scale(.99); }
.result-share {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}
.result-share:hover:not(:disabled) { background: #e9efea; }
.result-share:disabled { opacity: .65; cursor: wait; }
.result-share:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

body.share-sheet-open { overflow: hidden; }
#representative-footer[hidden] { display: none !important; }
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  padding-top: max(24px, env(safe-area-inset-top));
  background: rgb(12 30 24 / 58%);
}
.share-sheet-panel {
  width: min(100%, 480px);
  max-height: 90dvh;
  margin: 0 auto;
  padding: 12px 20px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 -18px 60px rgb(12 30 24 / 24%);
  animation: share-sheet-enter 180ms cubic-bezier(.2,.7,.2,1) both;
}
.share-sheet-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.share-sheet-panel h2 { margin: 4px 0 5px; font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.share-sheet-panel header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; word-break: keep-all; }
.share-sheet-close { flex: none; min-width: 52px; min-height: 44px; border: 0; background: transparent; color: var(--forest); font: inherit; font-weight: 760; cursor: pointer; }
.share-preview {
  display: grid;
  place-items: center;
  min-height: 290px;
  max-height: 45dvh;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgb(23 63 49 / 11%);
  border-radius: 18px;
  background: #e8ece8;
}
.share-preview-loading { max-width: 18ch; color: var(--muted); text-align: center; font-size: 14px; line-height: 1.5; }
.share-preview img { display: block; width: auto; max-width: 100%; height: 100%; max-height: calc(45dvh - 24px); object-fit: contain; border-radius: 12px; box-shadow: 0 12px 34px rgb(23 63 49 / 17%); }
.share-sheet-actions { display: grid; gap: 8px; margin-top: 14px; }
.share-sheet-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-sheet-actions button { min-height: 52px; border: 1px solid rgb(23 63 49 / 22%); border-radius: var(--radius-control); background: var(--white); color: var(--forest); font: inherit; font-weight: 820; cursor: pointer; }
.share-sheet-actions .share-sheet-primary { border-color: var(--forest); background: var(--forest); color: var(--white); }
.share-sheet-actions button:active { transform: translateY(1px) scale(.99); }
.share-sheet-actions button:disabled { cursor: wait; opacity: .48; }
.share-sheet-status { min-height: 20px; margin: 10px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
@keyframes share-sheet-enter { from { transform: translateY(24px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
.result-traits, .result-counts {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid rgb(23 63 49 / 10%);
  border-radius: var(--radius-panel);
  background: var(--white);
  box-shadow: 0 10px 30px rgb(23 63 49 / 5%);
}
.result-traits div:last-child { border-bottom: 0; padding-bottom: 0; }
.result-counts { padding-bottom: 10px; }
.result-profile { border: 0; }
.profile-row { grid-template-columns: 56px minmax(0, 1fr) 56px; }
.profile-row i { height: 7px; overflow: hidden; border-radius: 999px; }
.profile-row b { border-radius: inherit; }
.profile-row[data-lens="customer"] b { background: var(--customer); }
.profile-row[data-lens="profit"] b { background: var(--profit); }
.profile-row[data-lens="action"] b { background: var(--action); }
.profile-row[data-lens="operations"] b { background: var(--operations); }
.profile-row[data-lens="customer"] span { color: var(--customer); }
.profile-row[data-lens="profit"] span { color: var(--profit); }
.profile-row[data-lens="action"] span { color: var(--action); }
.profile-row[data-lens="operations"] span { color: var(--operations); }
.type-distribution { padding: 28px 2px 34px; }
.type-row i { overflow: hidden; border-radius: 999px; }
.type-row b { border-radius: inherit; }
.type-row[data-type="customer"] b { background: var(--customer); }
.type-row[data-type="profit"] b { background: var(--profit); }
.type-row[data-type="action"] b { background: var(--action); }
.type-row[data-type="operations"] b { background: var(--operations); }
.type-row.mine { padding: 12px; border-radius: 12px; background: rgb(255 82 38 / 6%); }
.deep-example { border-color: rgb(23 63 49 / 12%); border-radius: var(--radius-panel); box-shadow: 0 10px 30px rgb(23 63 49 / 5%); }
.deep-example dl > div, .area-symbol { border-radius: 12px; }
.answer-review { border-color: rgb(23 63 49 / 13%); }
.again { border-color: rgb(23 63 49 / 28%); }

@media (min-width: 700px) {
  body { padding: 24px; }
  .screen { min-height: calc(100dvh - 48px); border-radius: 28px; box-shadow: 0 24px 70px rgb(23 63 49 / 15%); }
  .intro, .quiz { height: calc(100dvh - 48px); min-height: 680px; overflow: hidden; }
  .share-sheet { align-items: center; padding: 24px; }
  .share-sheet-panel { border-radius: 24px; }
}

@media (max-width: 359px) {
  .intro, .profile { padding-inline: 18px; }
  .intro-copy h1 { max-width: 100%; font-size: 34px; line-height: 1.1; text-wrap: wrap; overflow-wrap: anywhere; }
  .intro-body { font-size: 16px; }
  .has-scene-image .question-stage, .has-scene-image .choice-row { padding-left: 18px; padding-right: 18px; }
  .question-stage h2 { font-size: 26px; }
  .choice { padding-left: 46px; font-size: 15px; }
  .result { padding-inline: 16px; }
  .share-card, .result-traits, .result-counts, .deep-example { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .choice-followup:not([hidden])::after { animation: none; width: 100%; }
  .share-sheet-panel { animation: none; }
}

@media (max-width: 699px) {
  .quiz.has-scene-image { grid-template-rows: 40px auto auto; }
  .quiz-head { padding-top: max(10px, env(safe-area-inset-top)); }
  .has-scene-image .question-stage { padding-block: 8px 12px; }
  .has-scene-image .situation-label { margin-bottom: 6px; font-size: 14px; }
  .has-scene-image .question-stage h2 {
    max-width: none;
    font-size: clamp(22px, 6vw, 27px);
  }
  .question-scene {
    height: clamp(100px, 24dvh, 184px);
    margin-top: 10px;
  }
  .has-scene-image .choice-row {
    gap: 8px;
    padding-block: 0 max(10px, env(safe-area-inset-bottom));
  }
  .has-scene-image .choice { min-height: 60px; padding-block: 10px; }
  .has-scene-image .choice-letter { top: 12px; }
  .choice-followup[hidden] { display: none; }
  .draft-restart { margin-block: 0; }
  .draft-restart summary { min-height: 44px; padding-block: 9px; }
}
