:root {
  --blue-950: #08295e;
  --blue-800: #0d4caa;
  --blue-700: #1769e0;
  --blue-600: #2d7ff0;
  --blue-100: #e9f2ff;
  --blue-50: #f4f8ff;
  --ink: #16243a;
  --muted: #6b7a90;
  --line: #dbe7f7;
  --surface: #fff;
  --surface-soft: #f5f9ff;
  --quiz-bg: #f2f7ff;
  --quiz-primary: #4d6fff;
  --quiz-accent: #7661F5;
  --quiz-title: #17345c;
  --quiz-text: #294266;
  --quiz-muted: #667a9b;
  --quiz-line: #dce6f5;
  --quiz-selected: #eef2ff;
  --result-bg: #f3f7ff;
  --result-primary: #2878F0;
  --result-primary-dark: #1767c9;
  --result-text: #183B66;
  --result-muted: #52677F;
  --result-subtle: #8796A8;
  --result-border: #DCE9FA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--quiz-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button { font: inherit; }

button:focus-visible {
  outline: 3px solid rgba(40, 120, 240, .28);
  outline-offset: 2px;
}

button:disabled { cursor: not-allowed; }

.site-header {
  display: none;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  color: #16355f;
}

.home-page {
  position: relative;
  background:
    radial-gradient(circle at 50% 10%, rgba(88, 164, 255, .18), transparent 35%),
    linear-gradient(180deg, #eaf4ff 0%, #f7faff 100%);
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 127, 240, .10) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 28%, rgba(123, 97, 255, .08) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(45, 127, 240, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 127, 240, .03) 1px, transparent 1px);
  background-size: 120px 120px, 150px 150px, 58px 58px, 58px 58px;
  opacity: .55;
}

.home-page .site-header { display: flex; }
.home-page .site-header,
.home-page .app-shell { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2878f0;
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(40, 120, 240, .18);
}

.brand-mark svg { width: 18px; height: 18px; }
.brand h1 { margin: 0; color: #143763; font-size: 14px; font-weight: 650; line-height: 1.2; white-space: nowrap; }

.app-shell {
  width: min(calc(100% - 32px), 430px);
  margin-right: auto;
  margin-left: auto;
}

.screen { display: none; width: 100%; }
.screen.active { display: block; }
.surface { background: var(--surface); }

#home-screen {
  min-height: calc(100svh - 54px - env(safe-area-inset-top));
  padding: 12px 0 max(18px, env(safe-area-inset-bottom));
}

.home-card {
  padding: 22px 24px 18px;
  text-align: center;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(51, 105, 175, .08);
}

.eyebrow,
.section-kicker {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #1671e8;
  background: #edf5ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.eyebrow {
  min-height: auto;
  padding: 7px 14px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 6px 16px rgba(45, 127, 240, .10);
}

.home-title {
  margin: 16px 0 0;
  color: #153868;
  font-size: clamp(24px, 6.4vw, 29px);
  font-weight: 780;
  line-height: 1.28;
  letter-spacing: -.03em;
}

.home-title .title-line-main,
.home-title .title-line-accent { display: block; white-space: nowrap; }

.home-title .title-line-accent {
  margin-top: 1px;
  color: #153868;
  font-size: inherit;
}

.home-title .title-line-main > span,
.home-title .title-line-accent > span { color: #1671e8; }

.text-nowrap { white-space: nowrap; }

.home-concept {
  margin: 14px 0 0;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.dimension-title {
  margin: 14px 0 0;
  color: #294266;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.dimension-item {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  color: #23466f;
  background: #f7faff;
  border: 1px solid #edf3fb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .16s ease, border-color .16s ease;
}

.dimension-item:active {
  background: #eef6ff;
  border-color: #dcecff;
}

.dimension-icon {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  color: #2878f0;
  background: #eaf3ff;
  border: 1px solid #dcecff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.option-btn,
.quiz-back {
  border: 0;
  cursor: pointer;
}

.primary-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  color: #fff;
  background: #2878f0;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(40, 120, 240, .18), 0 0 18px rgba(45, 127, 240, .12);
  font-weight: 700;
  transition: background .2s ease, transform .16s ease, box-shadow .2s ease;
}

.primary-btn:active { transform: scale(.98); }

.home-card .primary-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.home-card .primary-btn span {
  display: inline-block;
  animation: home-arrow-nudge 1.8s ease-in-out infinite;
}

.home-footer {
  position: relative;
  margin-top: 14px;
  padding-top: 12px;
}

.home-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(180px, 58%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(138, 148, 166, .28), transparent);
}

.home-note {
  margin: 0;
  color: #6f8199;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.home-icp {
  margin: 3px 0 0;
  color: #9aa6b8;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .01em;
}

.info-card {
  margin: max(12px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom));
  padding: 22px 20px 18px;
  border: 1px solid rgba(220, 230, 245, .9);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(55, 91, 145, .08);
}

.info-card .section-kicker {
  display: flex;
  width: max-content;
  margin: 0 auto;
}

.info-card h2 {
  margin: 16px 0 0;
  color: var(--quiz-title);
  font-size: 24px;
  line-height: 1.35;
  text-align: center;
}

.info-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.flow-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
  background: var(--surface-soft);
  border-radius: 14px;
}

.flow-list > li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #2878f0;
  background: #e7f1ff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 750;
}

.flow-list strong { color: #17345c; font-size: 15px; }
.flow-list p { margin: 4px 0 0; color: #667a9b; font-size: 13px; line-height: 1.55; }

.boundary-note,
.disclaimer {
  color: #65768c;
  background: #eef5ff;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
}

.boundary-note {
  margin-top: 12px;
  padding: 0;
  color: #8B9BB2;
  background: transparent;
  font-size: clamp(8px, 2.55vw, 11px);
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.info-card .primary-btn { width: 100%; margin-top: 18px; }

#auth-screen { padding: max(18px, env(safe-area-inset-top)) 0 max(18px, env(safe-area-inset-bottom)); }

.auth-card {
  margin: 0;
  padding: 24px 20px 20px;
  text-align: center;
  border: 1px solid rgba(220, 230, 245, .9);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(55, 91, 145, .08);
}

.auth-card h2 {
  margin: 16px 0 0;
  color: var(--quiz-title);
  font-size: 24px;
  line-height: 1.35;
}

.auth-lead {
  margin: 10px auto 0;
  max-width: 310px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.auth-form label {
  color: #294266;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--quiz-title);
  background: #f7faff;
  border: 1px solid #dbe7f7;
  border-radius: 13px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-form input:focus {
  background: #fff;
  border-color: #2878f0;
  box-shadow: 0 0 0 4px rgba(40, 120, 240, .10);
}

.auth-form input.is-invalid {
  border-color: #e58b8b;
  box-shadow: 0 0 0 4px rgba(229, 139, 139, .12);
}

.auth-error {
  min-height: 18px;
  margin: -2px 0 0;
  color: #c65353;
  font-size: 12px;
  line-height: 1.5;
}

.auth-form .primary-btn { width: 100%; margin-top: 2px; }

.ghost-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #6B7F9D;
  background: transparent;
  border-radius: 12px;
  font-size: 14px;
}

.auth-back-btn { margin-top: 10px; }

#quiz-screen { padding: max(10px, env(safe-area-inset-top)) 0 max(16px, env(safe-area-inset-bottom)); }

.quiz-card {
  padding: 20px 20px 24px;
  border: 1px solid rgba(220, 230, 245, .9);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(55, 91, 145, .07);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f83a4;
  font-size: 14px;
  line-height: 1.2;
}

.progress-meta span { font-weight: 500; }

.progress-meta b {
  color: var(--quiz-accent);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .01em;
}

.progress-track,
.loading-track {
  height: 6px;
  overflow: hidden;
  background: #e5ecf8;
  border-radius: 999px;
}

.progress-track { margin: 9px 0 22px; }

.progress-track i,
.loading-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--quiz-primary), var(--quiz-accent));
  border-radius: inherit;
  transition: transform .28s ease;
}

.progress-track i { background: var(--quiz-accent); }

.quiz-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 19px;
}

.phase-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.45;
}

.phase-label {
  color: #fff;
  background: var(--quiz-accent);
  font-weight: 700;
}

.question-content.entering { animation: question-in .22s ease both; }

.question-text {
  margin: 0;
  color: var(--quiz-title);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .1px;
  line-break: auto;
  text-wrap: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.options { display: grid; gap: 10px; margin-top: 20px; }

.option-btn {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--quiz-text);
  background: #fff;
  border: 1px solid #c8d9f2;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .16s ease;
}

.option-text { min-width: 0; overflow-wrap: anywhere; }

.option-letter {
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--quiz-primary);
  background: #fff;
  border: 1px solid #c8d9f2;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 650;
}

.option-check {
  width: 20px;
  min-width: 20px;
  color: var(--quiz-accent);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.option-btn.selected {
  background: var(--quiz-selected);
  border-color: var(--quiz-accent);
  box-shadow: inset 0 0 0 1px var(--quiz-accent);
}

.option-btn.selected .option-text { font-weight: 600; }
.option-btn.selected .option-letter { color: #fff; background: var(--quiz-accent); border-color: var(--quiz-accent); }
.option-btn.selected .option-check { opacity: 1; }

.quiz-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 20px 0 0;
  padding: 0 2px;
  color: #6f83a4;
  background: transparent;
  font-size: 14px;
}

.quiz-back[hidden] { display: none; }

.screenshot-mode .quiz-back { display: none; }

.quiz-footer-note {
  margin: 14px 0 0;
  color: var(--quiz-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  opacity: .66;
}

.screenshot-mode .quiz-back + .quiz-footer-note { margin-top: 18px; }

#loading-screen {
  min-height: 100svh;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
}

#loading-screen.active { display: flex; }

.loading-card {
  width: 100%;
  padding: 34px 22px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(55, 91, 145, .08);
}

.loader {
  width: 48px;
  height: 48px;
  display: inline-block;
  border: 5px solid #e5ecf8;
  border-top-color: var(--quiz-primary);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.loading-card h2 { margin: 18px 0 0; color: var(--quiz-title); font-size: 22px; }
.loading-card p { margin: 9px 0 20px; color: var(--muted); font-size: 14px; }
.loading-track i.running { transform: scaleX(1); transition-duration: .8s; }

.result-page { background: var(--result-bg); }

.result-page .app-shell {
  width: min(calc(100% - 32px), 520px);
}

.result-screen {
  padding: max(10px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
}

.result-hero {
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--result-primary-dark), #4f83ed);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(49, 89, 216, .18);
}

.result-kicker { font-size: 13px; opacity: .8; }

.result-status {
  width: max-content;
  margin-top: 15px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: 12px;
}

.result-hero h2 { margin: 12px 0 0; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
.result-hero p { margin: 9px 0 0; font-size: 14px; line-height: 1.65; opacity: .93; }

.top-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.top-tags span { padding: 6px 9px; background: rgba(255, 255, 255, .14); border-radius: 999px; font-size: 13px; }

.result-grid { display: grid; gap: 20px; margin-top: 20px; }

.result-card {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--result-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(51, 105, 175, .08);
}

.result-card h3 { margin: 0; color: var(--result-text); font-size: 18px; }
.section-note { margin: 9px 0 16px; color: #8494a8; font-size: 13px; line-height: 1.6; }

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.result-summary-grid div {
  min-width: 0;
  padding: 11px 7px;
  background: var(--surface-soft);
  border-radius: 11px;
  text-align: center;
}

.result-summary-grid strong { display: block; color: #1767c9; font-size: 18px; }
.result-summary-grid span { display: block; margin-top: 4px; color: #6b7f9b; font-size: 11px; line-height: 1.4; }

.data-details { margin-top: 14px; border-top: 1px solid #e5edf8; }

.data-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: #1767c9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.answer-list,
.score-list,
.code-list { display: grid; gap: 8px; padding-top: 2px; }

.answer-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  color: #536a86;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.answer-item strong { color: #23466f; }

.highlight-group + .highlight-group { margin-top: 14px; }
.highlight-group h4 { margin: 0 0 8px; color: #536a86; font-size: 13px; }

.top-result-list { display: grid; gap: 8px; }

.top-result-list article {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border-radius: 11px;
}

.top-result-list strong { min-width: 0; color: #173f77; font-size: 13px; overflow-wrap: anywhere; }
.top-result-list span { flex: 0 0 auto; color: #63789d; font-size: 12px; white-space: nowrap; }

.score-card {
  padding: 11px 12px;
  background: var(--surface-soft);
  border-radius: 11px;
}

.score-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.score-card-head strong { min-width: 0; color: #23466f; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.score-card-head b { flex: 0 0 auto; color: #1767c9; font-size: 12px; line-height: 1.5; white-space: nowrap; }

.metric-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.metric-row span { padding: 4px 7px; color: #63789d; background: #fff; border-radius: 7px; font-size: 11px; }
.compact-score { padding-top: 10px; padding-bottom: 10px; }

.data-total {
  margin: 12px 0 0;
  color: #536a86;
  font-size: 12px;
  font-weight: 650;
}

.city-results { display: grid; gap: 8px; }

.city-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border-radius: 11px;
}

.city-result span { grid-row: 1 / 3; align-self: center; color: #1767c9; font-size: 12px; overflow-wrap: anywhere; }
.city-result strong { color: #23466f; font-size: 13px; }
.city-result b { color: #63789d; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }

.city-debug-grid,
.city-top-rankings { display: grid; gap: 14px; }

.city-debug-grid h4,
.city-top-rankings h4 { margin: 0 0 8px; color: #536a86; font-size: 13px; }

.debug-value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.debug-value-list div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  background: var(--surface-soft);
  border-radius: 9px;
}

.debug-value-list span { color: #6b7f9b; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.debug-value-list strong { color: #1767c9; font-size: 11px; overflow-wrap: anywhere; }

.city-recommendation-group { margin-top: 18px; }
.city-recommendation-list { display: grid; gap: 12px; }

.city-recommendation-card {
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #e1eaf7;
  border-radius: 14px;
}

.city-recommendation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.city-recommendation-head > div { min-width: 0; }
.city-recommendation-head > div > span { color: #6b7f9b; font-size: 11px; }
.city-recommendation-head h5 { margin: 4px 0 0; color: #12376b; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.city-recommendation-head p { margin: 4px 0 0; color: #63789d; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }

.city-recommendation-head > b {
  min-width: 56px;
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  padding: 8px 4px;
  color: #fff;
  background: var(--result-primary);
  border-radius: 11px;
}

.city-recommendation-head > b strong { font-size: 19px; line-height: 1; }
.city-recommendation-head > b span { margin-top: 4px; font-size: 9px; font-weight: 500; }

.city-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.city-score-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 5px;
  background: #fff;
  border-radius: 9px;
  text-align: center;
}

.city-score-grid span { min-height: 18px; color: #7a8da8; font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
.city-score-grid strong { color: #1767c9; font-size: 10px; overflow-wrap: anywhere; }
.city-summary { margin: 12px 0 0; color: #536a86; font-size: 12px; line-height: 1.7; }

.city-reason-block,
.city-group-scores,
.city-debug-section { margin-top: 12px; }

.city-reason-block > strong,
.city-debug-section > strong { color: #23466f; font-size: 12px; }
.city-reason-block p { margin: 5px 0 0; color: #536a86; font-size: 12px; line-height: 1.65; }
.city-reason-block ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; color: #536a86; font-size: 11px; line-height: 1.6; }
.city-tradeoffs { padding: 9px 10px; background: #fff8eb; border-radius: 9px; }

.city-group-scores { display: grid; gap: 6px; }
.city-group-scores div { display: grid; gap: 3px; padding: 8px 9px; background: #fff; border-radius: 8px; }
.city-group-scores span { color: #6b7f9b; font-size: 10px; line-height: 1.45; }
.city-group-scores strong { color: #345578; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }

.city-top-rankings { margin-top: 18px; }
.city-ranking-list { display: grid; gap: 7px; }

.city-ranking-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  background: var(--surface-soft);
  border-radius: 9px;
}

.city-ranking-item > span { color: #6b7f9b; font-size: 10px; }
.city-ranking-item > strong { min-width: 0; color: #23466f; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.city-ranking-item > b { color: #1767c9; font-size: 15px; text-align: right; }
.city-ranking-item em { display: block; color: #7a8da8; font-size: 8px; font-style: normal; font-weight: 500; white-space: nowrap; }

.city-full-details { margin-top: 18px; }
.city-full-ranking { display: grid; gap: 10px; }

.city-full-item {
  min-width: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid #e1eaf7;
  border-radius: 11px;
}

.city-full-item > summary {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #23466f;
  cursor: pointer;
}

.city-full-item > summary > span { min-width: 0; display: grid; gap: 2px; }
.city-full-item > summary b { color: #6b7f9b; font-size: 10px; }
.city-full-item > summary strong { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.city-full-item > summary em { color: #7a8da8; font-size: 10px; font-style: normal; }
.city-full-item > summary i { color: #1767c9; font-size: 16px; font-style: normal; font-weight: 750; text-align: right; }
.city-full-content { padding: 0 10px 12px; border-top: 1px solid #e1eaf7; }
.city-score-grid.five-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.city-debug-section .debug-value-list { margin-top: 7px; }

.code-list code {
  display: block;
  padding: 9px 10px;
  color: #536a86;
  background: var(--surface-soft);
  border-radius: 9px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dimension-results { display: grid; gap: 9px; }

.dimension-result {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: #536a86;
  background: var(--surface-soft);
  border-radius: 11px;
  font-size: 13px;
}

.dimension-result strong { color: #23466f; }
.dimension-result em { color: #8494a8; font-size: 12px; font-style: normal; white-space: nowrap; }

.recommendation-list { display: grid; gap: 9px; }

.recommendation-card {
  padding: 13px 14px;
  background: var(--surface-soft);
  border-radius: 14px;
}

.recommendation-card strong { color: #12376b; font-size: 14px; }
.recommendation-card p { margin: 6px 0 0; color: #536a86; font-size: 13px; line-height: 1.6; }

.career-match-list,
.career-ranking-list { display: grid; gap: 12px; }

.career-match-card {
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #e1eaf7;
  border-radius: 14px;
}

.career-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.career-match-head > div { min-width: 0; }
.career-match-head > div > span { color: #6b7f9b; font-size: 11px; }
.career-match-head h5 { margin: 4px 0 0; color: #12376b; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.career-match-head p { margin: 4px 0 0; color: #63789d; font-size: 12px; }

.career-match-head > b {
  min-width: 54px;
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  padding: 8px 4px;
  color: #fff;
  background: var(--result-primary);
  border-radius: 11px;
}

.career-match-head > b strong { font-size: 19px; line-height: 1; }
.career-match-head > b span { margin-top: 4px; font-size: 9px; font-weight: 500; }

.career-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.career-metrics div {
  min-width: 0;
  padding: 8px 5px;
  background: #fff;
  border-radius: 9px;
  text-align: center;
}

.career-metrics span {
  display: block;
  min-height: 22px;
  color: #7a8da8;
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.career-metrics strong { display: block; margin-top: 3px; color: #1767c9; font-size: 11px; }
.career-summary { margin: 12px 0 0; color: #536a86; font-size: 12px; line-height: 1.65; }

.career-mapping { display: grid; gap: 7px; margin: 12px 0 0; }

.career-mapping div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
}

.career-mapping dt { color: #7a8da8; }
.career-mapping dd { min-width: 0; margin: 0; color: #345578; overflow-wrap: anywhere; }

.career-reason,
.career-guidance,
.career-content-row { margin-top: 12px; }

.career-reason > strong,
.career-guidance > strong,
.career-content-row > strong { color: #23466f; font-size: 12px; }

.career-reason p,
.career-guidance p { margin: 5px 0 0; color: #536a86; font-size: 12px; line-height: 1.65; }

.career-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.career-pills span { padding: 4px 7px; color: #536a86; background: #fff; border-radius: 7px; font-size: 10px; }

.career-content-row ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: #536a86;
  font-size: 11px;
  line-height: 1.55;
}

.career-guidance { padding: 9px 10px; border-radius: 9px; }
.career-guidance.caution { background: #fff8eb; }
.career-guidance.action { background: #eaf4ff; }

.career-ranking-details { margin-top: 18px; }

.career-rank-item {
  min-width: 0;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid #e1eaf7;
  border-radius: 11px;
}

.career-rank-item > summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #23466f;
  cursor: pointer;
}

.career-rank-item > summary > span { min-width: 0; display: grid; gap: 2px; }
.career-rank-item > summary b { color: #6b7f9b; font-size: 10px; }
.career-rank-item > summary strong { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.career-rank-item > summary em { color: #7a8da8; font-size: 10px; font-style: normal; }
.career-rank-item > summary i { color: #1767c9; font-size: 16px; font-style: normal; font-weight: 750; text-align: right; }
.career-rank-content { padding: 0 10px 12px; border-top: 1px solid #e1eaf7; }

.advice-box {
  padding: 14px;
  color: #536a86;
  background: var(--surface-soft);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.disclaimer { padding: 16px; }

.result-actions {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 10px;
  margin-top: 18px;
}

.result-actions button { width: 100%; min-height: 48px; padding: 0 10px; white-space: nowrap; }

.result-tools {
  grid-template-columns: 1fr 1fr;
  margin-bottom: max(6px, env(safe-area-inset-bottom));
}

.secondary-btn {
  color: #1767c9;
  background: #edf5ff;
  border-radius: 12px;
  font-weight: 650;
}

.result-actions #clear-btn { grid-column: 1 / -1; }

.back-to-top-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--result-primary);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(49, 89, 216, .2);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.back-to-top-fab[hidden] { display: none; }

.save-feedback {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--result-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

@keyframes question-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes home-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (hover: hover) {
  .primary-btn:hover { background: #176de2; }
  .option-btn:not(:disabled):hover { background: #f7f9ff; border-color: #c8d9f2; }
  .quiz-back:hover { color: var(--quiz-primary); }
}

.option-btn:not(:disabled):active {
  transform: scale(.98);
  background: #f7f9ff;
}

@media (max-width: 340px) {
  .app-shell { width: min(calc(100% - 24px), 430px); }
  .brand h1 { font-size: 14px; }
  .home-card, .info-card, .auth-card { padding-right: 18px; padding-left: 18px; }
  .home-title { font-size: 23px; }
  .dimension-item { padding-right: 7px; padding-left: 7px; font-size: 13px; }
  .home-card .primary-btn { padding-right: 12px; padding-left: 12px; font-size: 15px; }
  .quiz-card { padding-right: 16px; padding-left: 16px; }
  .option-btn { gap: 9px; padding-right: 11px; padding-left: 11px; }
  .result-hero { padding-right: 16px; padding-left: 16px; }
  .result-hero h2 { font-size: 25px; }
  .result-card { padding-right: 14px; padding-left: 14px; }
}

@media (max-height: 720px) {
  .home-card { padding-top: 20px; padding-bottom: 16px; }
  .home-title { margin-top: 12px; }
  .home-concept { margin-top: 12px; font-size: 12px; }
  #home-screen { padding-top: 8px; }
  .dimension-title { margin-top: 12px; }
  .dimension-grid { margin-top: 8px; gap: 8px; }
  .dimension-item { min-height: 46px; font-size: 13px; }
  .home-card .primary-btn { min-height: 54px; margin-top: 13px; }
  .home-footer { margin-top: 10px; padding-top: 10px; }
  .home-note { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Formal report styles stay within this project's existing blue result system. */
.official-result {
  display: grid;
  gap: 16px;
}

.official-result-hero {
  overflow: hidden;
  padding: 0 0 18px;
  color: var(--result-text);
  background: #fff;
  border: 1px solid var(--result-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(40, 120, 240, .08);
}

.official-hero-top {
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #2878F0 0%, #5A96F5 100%);
}

.official-hero-top .result-kicker {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  opacity: .9;
}

.official-result-hero > .official-hero-top > h2 {
  margin: 12px 0 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.official-result-hero > .official-hero-top > p {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  opacity: .92;
}

.type-intro {
  margin: 16px 16px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--result-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(40, 120, 240, .08);
}

.type-intro > span {
  color: var(--result-subtle);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.type-intro h3 {
  margin: 8px 0 0;
  color: var(--result-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.type-summary {
  margin-top: 12px;
  color: var(--result-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.type-summary p {
  margin: 0;
}

.type-summary p + p {
  margin-top: 8px;
}

.type-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.type-keywords span {
  padding: 6px 10px;
  color: var(--result-primary);
  background: #EEF5FF;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.overview-grid {
  display: grid;
  gap: 10px;
  margin: 16px 16px 0;
}

.overview-grid div {
  position: relative;
  min-width: 0;
  padding: 14px 16px 14px 44px;
  background: #F2F7FF;
  border: 1px solid var(--result-border);
  border-radius: 14px;
  text-align: left;
}

.overview-grid div::before {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--result-primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.overview-grid div:nth-child(1)::before { content: "天"; }
.overview-grid div:nth-child(2)::before { content: "职"; }
.overview-grid div:nth-child(3)::before { content: "城"; }
.overview-grid span {
  display: block;
  color: var(--result-subtle);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.overview-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--result-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.overview-grid em {
  display: block;
  margin-top: 3px;
  color: var(--result-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.official-result-grid { display: grid; gap: 16px; }

.official-section,
.result-disclaimer {
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--result-border);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(51, 105, 175, .05);
}

.section-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.section-heading > span { width: 32px; height: 32px; display: grid; place-items: center; color: #1767c9; background: #eaf3ff; border-radius: 10px; font-size: 11px; font-weight: 750; }
.section-heading h3 { margin: 0; color: var(--result-text); font-size: 23px; line-height: 1.34; }
.section-heading p { margin: 6px 0 0; color: #6B7F9D; font-size: 15px; line-height: 1.65; }

.radar-wrap { display: grid; place-items: center; margin: 18px auto 6px; }
.radar-wrap svg { width: min(100%, 290px); height: auto; overflow: visible; }
.radar-grid polygon { fill: none; stroke: #dce8f7; stroke-width: 1; }
.radar-grid line { stroke: #dce8f7; stroke-width: 1; }
.radar-grid text { fill: #526d91; font-size: 12px; font-family: inherit; }
.radar-area { fill: rgba(79, 111, 255, .21); stroke: #4f6fff; stroke-width: 2; }
.radar-points circle { fill: #3159d8; stroke: #fff; stroke-width: 1.5; }

.talent-bar-list,
#official-talent-bars { display: grid; gap: 11px; }
.talent-bar-list { margin-top: 12px; }
.talent-bar-item { padding: 11px 12px; background: var(--surface-soft); border: 1px solid #e1eaf7; border-radius: 12px; }
.talent-bar-item > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.talent-bar-item strong { color: #23466f; font-size: 14px; }
.talent-bar-item span { flex: 0 0 auto; color: #1767c9; font-size: 12px; font-weight: 700; }
.talent-bar-item i { display: block; height: 7px; margin-top: 8px; overflow: hidden; background: #dfe9f8; border-radius: 999px; }
.talent-bar-item i b { display: block; height: 100%; background: linear-gradient(90deg, #84a9f4, #4f6fff); border-radius: inherit; }
.talent-bar-item p { margin: 7px 0 0; color: #536a86; font-size: 12px; line-height: 1.62; }

.result-subsection { margin-top: 20px; }
.result-subsection h4 { margin: 0; color: #345578; font-size: 15px; line-height: 1.45; }
.gentle-note { margin: 7px 0 0; color: #6f8199; font-size: 13px; line-height: 1.65; }
.talent-copy-list { display: grid; gap: 10px; margin-top: 11px; }
.talent-copy-list article { padding: 14px; background: var(--surface-soft); border: 1px solid #e1eaf7; border-radius: 14px; }
.core-talent-list article:first-child { box-shadow: 0 8px 18px rgba(40, 120, 240, .08); }
.talent-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.talent-copy-list strong { min-width: 0; color: #23466f; font-size: 17px; line-height: 1.38; overflow-wrap: anywhere; }
.core-talent-list strong { font-size: 21px; }
.talent-copy-list b { flex: 0 0 auto; color: #1767c9; font-size: 12px; line-height: 1.4; }
.talent-copy-list p { margin: 8px 0 0; color: #405673; font-size: 15px; line-height: 1.72; }
.talent-copy-list em { display: block; margin-top: 7px; color: #6B7F9D; font-size: 14px; font-style: normal; line-height: 1.65; }
.core-talent-list p { font-size: 16px; }
.core-talent-list em { font-size: 15px; }
.potential-list article { background: #f8fbff; border-color: #e7eef9; }
.potential-list strong { font-size: 14px; }
.potential-list b,
.potential-list p { color: #667a96; }

.collapse-block { margin-top: 18px; }
.collapsible-panel { overflow: hidden; animation: result-panel-in 200ms ease; transform-origin: top; }
.collapsible-panel[hidden] { display: none; }

.official-career-list,
.official-city-list { display: grid; gap: 14px; margin-top: 12px; }

.official-career-card,
.official-city-card { min-width: 0; padding: 14px; background: var(--surface-soft); border: 1px solid #dce7f5; border-radius: 14px; }
.official-career-card.exploration-card { background: #f8fbff; }
.official-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.official-card-head > div { min-width: 0; }
.official-card-head > div > span { color: #667b98; font-size: 13px; line-height: 1.4; }
.official-card-head h5 { margin: 4px 0 0; color: #12376b; font-size: 21px; line-height: 1.34; overflow-wrap: anywhere; }
.official-card-head p { margin: 5px 0 0; color: #6B7F9D; font-size: 14px; line-height: 1.6; }
.official-card-head > b { min-width: 54px; display: grid; flex: 0 0 54px; place-items: center; padding: 7px 3px; color: #fff; background: var(--result-primary); border-radius: 10px; text-align: center; }
.official-card-head > b strong { font-size: 17px; line-height: 1; }
.official-card-head > b small { margin-top: 4px; font-size: 9px; line-height: 1.2; font-weight: 500; }
.official-card-summary { margin: 12px 0 0; color: #4f6683; font-size: 15px; line-height: 1.72; }
.career-info-block { margin-top: 12px; }
.career-info-block strong { color: #345578; font-size: 15px; }
.career-info-block p { margin: 5px 0 0; color: #405673; font-size: 16px; line-height: 1.7; }
.career-role-row { margin-top: 12px; }
.career-role-row > strong,
.city-copy > strong { color: #345578; font-size: 15px; }
.career-role-row > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.career-role-row span,
.city-keywords span { padding: 5px 8px; color: #536a86; background: #fff; border-radius: 7px; font-size: 13px; line-height: 1.35; }
.details-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 10px;
  color: #1767c9;
  background: #edf5ff;
  border: 1px solid #dbe8fa;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.details-toggle:active { transform: scale(.98); }
.collapse-toggle { width: 100%; }
.official-career-card > .details-toggle,
.official-city-card > .details-toggle { width: auto; max-width: 100%; padding-right: 2px; padding-left: 2px; background: transparent; border-color: transparent; }
.official-card-details { display: grid; gap: 11px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dfe9f7; animation: result-panel-in 200ms ease; transform-origin: top; }
.official-card-details[hidden] { display: none; }
.collapsible-panel.is-collapsing,
.official-card-details.is-collapsing { animation: result-panel-out 180ms ease forwards; }
.official-card-details > div > strong { color: #345578; font-size: 14px; }
.official-card-details ul { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; color: #536a86; font-size: 14px; line-height: 1.65; }
.official-card-details p { margin: 5px 0 0; color: #4f6683; font-size: 14px; line-height: 1.68; }
.detail-caution,
.detail-action { padding: 10px; border-radius: 9px; }
.detail-caution { background: #fff8eb; }
.detail-action { background: #eaf4ff; }
.index-note { margin: 14px 0 0; color: #7487a1; font-size: 12px; line-height: 1.6; }

.official-city-card { padding: 16px; }
.official-city-card.city-overall { border-color: #cfddf5; }
.official-city-card.city-career { border-color: #dfe6f5; background: #f8fbff; }
.official-city-card.city-life { border-color: #dbe7f5; background: #f8fbff; }
.city-card-head { display: block; }
.city-card-head > span { display: block; color: #6B83A5; font-size: 13px; font-weight: 500; line-height: 1.4; }
.city-card-head h5 { margin: 6px 0 0; color: #174F9C; font-size: 26px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; overflow-wrap: anywhere; }
.city-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.city-keywords span { padding: 5px 9px; color: #52677F; background: #fff; border: 1px solid #dfe9f7; border-radius: 999px; font-size: 13px; line-height: 1.35; }
.city-brief-copy { margin: 14px 0 0; color: #405B7D; font-size: 15px; line-height: 1.72; }
.city-risk-card { margin-top: 14px; padding: 12px 14px; background: #fff8eb; border-radius: 12px; }
.city-risk-card strong { color: #6b4d18; font-size: 14px; line-height: 1.45; }
.city-risk-card p { margin: 5px 0 0; color: #6f5a35; font-size: 14px; line-height: 1.65; }
.city-fit-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.city-fit-values span { min-width: 0; padding: 8px 6px; color: #6B83A5; background: #fff; border: 1px solid #e1eaf7; border-radius: 10px; font-size: 12px; line-height: 1.35; text-align: center; }
.city-fit-values strong { display: block; margin-top: 3px; color: #1767c9; font-size: 18px; font-weight: 700; line-height: 1.1; }
.city-detail-toggle { width: 100%; margin-top: 12px; padding-right: 10px; padding-left: 10px; background: #edf5ff; border-color: #dbe8fa; }
.official-city-card > .city-detail-toggle { width: 100%; padding-right: 10px; padding-left: 10px; background: #edf5ff; border-color: #dbe8fa; }
.city-detail-panel { gap: 10px; }
.city-copy { margin-top: 0; }
.city-copy p { margin: 5px 0 0; color: #405673; font-size: 15px; line-height: 1.72; }
.city-tradeoff-copy { padding: 10px 12px; background: #fff8eb; border-radius: 10px; }
.model-score-note { margin: 10px 0 0; padding: 0; color: #8796A8; background: transparent; border-radius: 0; font-size: 11px; line-height: 1.55; }

.result-disclaimer {
  padding: 4px 6px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.result-disclaimer p { margin: 0; color: #8B9BB2; font-size: 11px; line-height: 1.65; text-align: center; }

.developer-debug { margin-top: 20px; padding-top: 18px; border-top: 2px dashed #bdd0ea; }
.developer-debug .result-hero { margin-top: 0; }
.debug-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.debug-actions .secondary-btn { min-height: 48px; padding: 0 9px; }

@keyframes result-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes result-panel-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}

@media (max-width: 340px) {
  .official-hero-top { padding-right: 16px; padding-left: 16px; }
  .official-result-hero > .official-hero-top > h2 { font-size: 25px; }
  .type-intro { margin-right: 12px; margin-left: 12px; padding: 18px 16px; }
  .type-intro h3 { font-size: 29px; }
  .type-summary { font-size: 15px; }
  .overview-grid { margin-right: 12px; margin-left: 12px; }
  .overview-grid div { padding-right: 14px; padding-left: 42px; }
  .official-section, .result-disclaimer { padding-right: 14px; padding-left: 14px; }
  .section-heading { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .section-heading > span { width: 30px; height: 30px; }
  .radar-wrap svg { width: min(100%, 260px); }
  .official-card-head { gap: 8px; }
  .official-card-head > b { min-width: 50px; flex-basis: 50px; }
  .city-fit-values { gap: 6px; }
  .city-fit-values span { padding-right: 4px; padding-left: 4px; }
  .result-actions { gap: 8px; }
}
