@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --surface-subtle: #f7f9fb;
  --surface-strong: #eef3f8;
  --ink: #18202c;
  --ink-soft: #3f4a5a;
  --muted: #606c7c;
  --line: #d9e0e8;
  --line-strong: #c8d2de;
  --blue: #255fd6;
  --blue-deep: #18479f;
  --blue-soft: #edf4ff;
  --gold: #e6ad35;
  --gold-soft: #fff8e8;
  --green: #16845e;
  --red: #c84c59;
  --navy: #111b2b;
  --shadow: 0 3px 14px rgba(24, 32, 44, 0.055);
  --shadow-raised: 0 10px 28px rgba(24, 38, 60, 0.1);
  --radius-panel: 16px;
  --radius-control: 12px;
  --radius-small: 8px;
  --page-pad: 20px;
  --panel-pad: 20px;
  --section-gap: 16px;
  --max: 444px;
}

[hidden] {
  display: none !important;
}

* {
  letter-spacing: 0;
}

html {
  background: #e7ecf2;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

body {
  background: #e7ecf2;
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  color: var(--ink);
}

button {
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.field-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.field-group legend {
  padding: 0;
}

.form-error {
  margin: 8px 0 0;
  color: #a93443;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.form-error[hidden] {
  display: none;
}

.phone {
  overflow: clip;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(24, 32, 44, 0.06),
    0 24px 70px rgba(24, 38, 60, 0.12);
  padding-bottom: 96px;
}

header {
  background: rgba(247, 249, 251, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.topbar {
  min-height: 68px;
  padding: 12px var(--page-pad);
}

.brand {
  gap: 10px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #2a63d5;
  box-shadow: 0 4px 12px rgba(37, 95, 214, 0.22);
  font-size: 20px;
  font-weight: 700;
}

.brand-title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}

.brand-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.pill {
  border: 1px solid #d5e1f5;
  border-radius: 999px;
  background: #f0f5fc;
  color: #315987;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

main {
  padding: 18px var(--page-pad) 24px;
}

.view.active {
  display: grid;
  gap: var(--section-gap);
  animation: show 0.18s ease-out;
}

@keyframes show {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

.h1,
.h2,
.h3,
.copy,
.strong {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.h1 {
  margin: 12px 0 14px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
}

.h2 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.28;
  font-weight: 700;
}

.h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 700;
}

.copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.strong {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 500;
}

.strong b,
.copy b {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  min-height: 28px;
  margin-bottom: 10px;
  border: 1px solid #d9e5f7;
  border-radius: 999px;
  background: #f1f6fd;
  color: #315f9e;
  padding: 5px 9px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.hero {
  min-height: 0;
  border: 1px solid #263852;
  border-radius: 20px;
  background: linear-gradient(145deg, #111b2b 0%, #1a2c49 68%, #2459ba 100%);
  box-shadow: var(--shadow-raised);
  padding: 26px 22px 22px;
}

.hero::after {
  display: none;
}

.hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e6efff;
}

.hero .copy {
  color: #dbe4f1;
}

.trust-row {
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: 8px;
  margin-top: 20px;
}

.trust {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px 10px;
}

.trust b {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trust:first-child b {
  font-size: 15px;
}

.trust span {
  margin-top: 5px;
  color: #c8d5e8;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.actions {
  gap: 8px;
  margin-top: 20px;
}

.panel {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--panel-pad);
}

.panel.blue,
.panel.gold {
  border-color: var(--line-strong);
  background: var(--surface);
}

.panel.blue::before,
.panel.gold::before {
  left: var(--panel-pad);
  right: auto;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  opacity: 1;
}

.panel.blue::before {
  background: var(--blue);
}

.panel.gold::before {
  background: var(--gold);
}

.panel.dark {
  border-color: #1d2a3e;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(12, 22, 38, 0.18);
}

.panel.dark .copy,
.panel.dark .muted {
  color: #c8d2df;
}

.btn {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: #dce5f2;
  background: #ffffff;
  color: var(--blue-deep);
  box-shadow: none;
}

.btn.blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: none;
}

.btn.soft {
  border-color: var(--line);
  background: #f1f4f7;
  color: #2d3949;
}

.btn.gold {
  border-color: #e7b849;
  background: #f5c75e;
  color: #392b0d;
  box-shadow: none;
}

.flow-step {
  grid-template-columns: 40px 1fr;
  gap: 12px;
  border-bottom-color: var(--line);
  padding: 17px 0;
}

.num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 700;
}

.flow-step b {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.flow-step span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 400;
}

.report-standard {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  border-left: 3px solid var(--blue);
  background: #f5f8fc;
  padding: 13px 14px;
}

.report-standard b {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.report-standard span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.engine-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 14px 2px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.engine-proof span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.engine-proof span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79a8ff;
  content: "";
}

.engine-proof b {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.personalization-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 13px 14px;
}

.personalization-prompt div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.personalization-prompt b {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.personalization-prompt span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.personalization-prompt button {
  min-width: 76px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: #ffffff;
  color: var(--navy);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.number-reason {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.report-preview .h3 {
  margin-bottom: 14px;
}

.preview-list {
  border-top: 1px solid var(--line);
}

.preview-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.preview-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.preview-row b {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.form {
  gap: 16px;
}

.field label,
.control-label {
  margin-bottom: 8px;
  color: #2b3543;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.input,
textarea,
select,
.round-select {
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: none;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

textarea {
  min-height: 148px;
  padding: 14px;
  line-height: 1.65;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8a95a4;
  opacity: 1;
}

.birth-picker {
  gap: 7px;
}

.picker-select {
  background-position: right 10px center;
  padding-right: 30px;
}

.auto-age {
  min-height: 52px;
  border: 1px solid #26364d;
  border-radius: 10px;
  background: #172335;
  padding: 0 14px;
  font-weight: 600;
}

.auto-age span {
  color: #c0cbd8;
  font-size: 13px;
  font-weight: 500;
}

.auto-age b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.choice-grid,
.calendar-grid {
  gap: 7px;
}

.choice-card {
  min-height: 84px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 12px 7px;
  color: #3e4958;
}

.choice-card svg {
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
  color: #65748a;
}

.choice-card b {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.choice-card span {
  margin-top: 4px;
  color: #5c6878;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.count-chip.earth,
.element-mark.earth {
  color: #875a00;
}

.choice-card.selected {
  border-color: #5e8fe5;
  background: #edf4ff;
  color: #184fB2;
  box-shadow: inset 0 0 0 1px rgba(37, 95, 214, 0.08);
}

.choice-card.selected svg {
  color: var(--blue);
}

.pillar-grid {
  gap: 8px;
  margin: 16px 0;
}

.pillar-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  box-shadow: none;
  padding: 14px;
}

.pillar-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.pillar-card b {
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
}

.pillar-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.count-row {
  gap: 6px;
  margin: 4px 0 16px;
}

.count-chip {
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.element-grid {
  gap: 0;
}

.element-row {
  grid-template-columns: 44px minmax(0, 1fr) 42px;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.element-row:last-child {
  border-bottom: 0;
}

.element-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-weight: 700;
}

.element-row b {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.element-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.element-score {
  color: #334155;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  border-radius: 4px;
  background: #e4e9ef;
}

.bar i {
  border-radius: 4px;
  background: #3974dd;
}

.bar.gold i {
  background: #d7a130;
}

.bar.green i {
  background: #2a9b72;
}

.bar.red i {
  background: #d45a66;
}

.bar.purple i {
  background: #7561c9;
}

.summary-line {
  min-height: 50px;
  align-items: center;
  border-bottom-color: var(--line);
  padding: 12px 0;
}

.summary-line span {
  color: var(--muted);
  font-weight: 500;
}

.summary-line b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.numbers {
  gap: 6px;
  margin: 20px 0;
}

.ball {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #e2b84e;
  background: #f7d16f;
  box-shadow: none;
  color: #3a2d0d;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ball.blueball {
  border-color: #8eb6e7;
  background: #bcd5f2;
  color: #183f70;
}

.ball.greenball {
  border-color: #82c5aa;
  background: #b7dfce;
  color: #174e3b;
}

.ai-action-button {
  min-width: 0;
  max-width: 100%;
  min-height: 72px;
  border: 1px solid #e0ac38;
  border-radius: 14px;
  background: #f2c45f;
  box-shadow: none;
  padding: 10px 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ai-action-button:active {
  background: #e9b94e;
  box-shadow: none;
  filter: none;
  transform: translateY(1px);
}

.ai-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

.number-empty-state {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 16px 2px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.number-empty-state b {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.number-empty-state span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.ai-action-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border: 1px solid rgba(56, 42, 10, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.ai-action-icon svg {
  width: 27px;
  height: 27px;
}

.ai-action-copy {
  min-width: 0;
  gap: 3px;
}

.ai-action-copy b {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}

.ai-action-copy span {
  color: #5c4616;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  white-space: normal;
}

.ai-action-quota {
  min-height: 40px;
  border: 1px solid rgba(63, 46, 8, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 9px;
  color: #4f3b0e;
  font-size: 13px;
  font-weight: 600;
}

.ai-action-quota strong {
  color: #241b07;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.quota-notice {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #d5deea;
  padding: 12px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.quota-notice p {
  margin: 0;
}

.quota-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.quota-cta:disabled {
  cursor: wait;
  opacity: 0.68;
}

.quota-notice[hidden] {
  display: none;
}

.report-action {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.saved-reports .copy {
  margin-bottom: 12px;
}

.saved-report-list {
  border-top: 1px solid var(--line);
}

.saved-report-list button {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  text-align: left;
}

.saved-report-list button[aria-pressed="true"] {
  color: var(--blue-deep);
  font-weight: 600;
}

.saved-report-list span,
.saved-report-detail span,
.comparison-result span {
  color: var(--muted);
  font-size: 14px;
}

.saved-report-list b,
.saved-report-detail b,
.comparison-result b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.saved-report-detail,
.comparison-result {
  display: grid;
  gap: 4px;
  padding: 14px 0;
}

.saved-report-detail {
  border-bottom: 1px solid var(--line);
}

.comparison-result {
  margin-bottom: 8px;
}

.saved-report-detail small,
.comparison-result small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

#subscriptionPlans {
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#subscriptionPlans.conversion-focus {
  border-color: #7ba3e6;
  box-shadow: 0 0 0 3px rgba(79, 126, 204, 0.14);
}

.trust-brief {
  margin: 0 0 16px;
  border: 0;
  border-left: 3px solid #5f8fe4;
  border-radius: 0;
  background: #f5f8fc;
  box-shadow: none;
  padding: 14px 15px;
}

.trust-brief b {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.trust-brief p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

.metric-cards {
  gap: 8px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  padding: 14px;
}

.metric-card.active {
  border-color: #7ba3e6;
  background: #f3f7fd;
  box-shadow: inset 0 0 0 1px rgba(37, 95, 214, 0.06);
}

.metric-head {
  margin-bottom: 10px;
  color: #2b3543;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.metric-head span:last-child {
  color: var(--blue-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.metric-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.metric-detail {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  box-shadow: none;
  padding: 15px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
}

.metric-detail b {
  color: var(--ink);
  font-weight: 600;
}

.metric-detail p {
  margin: 8px 0 0;
}

.analysis-detail {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.analysis-detail summary {
  min-height: 48px;
  align-content: center;
  cursor: pointer;
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.analysis-detail .metric-detail {
  margin-top: 0;
}

.metric-facts {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.metric-fact {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.metric-fact:last-child {
  border-bottom: 0;
}

.metric-fact strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.radar-card {
  gap: 10px;
}

.radar-wrap {
  max-width: 286px;
}

.radar-center b {
  font-size: 27px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-radar-center {
  font-weight: 600;
}

.mini-radar-center b {
  font-weight: 700;
}

.radar-center span,
.mini-radar-center span {
  min-height: 28px;
  border: 1px solid #d7e3f5;
  border-radius: 999px;
  background: #f1f5fb;
  color: #315c98 !important;
  padding: 4px 9px;
  font-size: 14px !important;
  line-height: 1.3;
  font-weight: 600;
}

.radar-center span.good,
.mini-radar-center span.good {
  border-color: #c8e5d9;
  background: #f0f8f5;
  color: #246e55 !important;
}

.radar-center span.watch,
.mini-radar-center span.watch {
  border-color: #eadca9;
  background: #fff9e9;
  color: #795f18 !important;
}

.radar-legend {
  gap: 0 14px;
}

.legend-item {
  min-height: 44px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.legend-item b {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.score-weight-summary,
.radar-weight {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.radar-weight {
  width: 100%;
  text-align: center;
  display: none;
}

.radar-wrap text {
  fill: #5c6878;
  font-size: 14px;
  font-weight: 600;
}

.source-box,
.round-result {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.source-box {
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.source-box b {
  color: var(--ink);
  font-weight: 600;
}

.round-result {
  padding: 15px;
}

.round-result .numbers {
  gap: 5px;
  flex-wrap: nowrap;
  margin: 12px 0 0;
}

.round-result .ball {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 16px;
}

.draw-number-row {
  display: grid;
  gap: 10px;
}

.bonus-number {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.bonus-number b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b6c0cc;
  border-radius: 50%;
  background: #eef1f4;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.round-select {
  margin: 4px 0 12px;
  font-weight: 500;
}

.round-hero b {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.round-hero span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.stat-grid {
  gap: 7px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  box-shadow: none;
  padding: 13px 6px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.stat b {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dream-results {
  gap: 10px;
}

.dream-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 17px;
}

.dream-card.status-error {
  border-color: #e4c8c8;
  background: #fff8f8;
}

.dream-card.status-error h4 {
  color: #8c3038;
}

.dream-card h4 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

.dream-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

.tag,
.source-link {
  border: 1px solid #d8e4f5;
  border-radius: 999px;
  background: #f1f6fd;
  color: #315f9e;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.tag {
  min-height: 30px;
  padding: 6px 9px;
}

.source-link {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
}

.dream-more {
  border-top-color: var(--line);
}

.dream-more summary {
  min-height: 44px;
  align-content: center;
  color: var(--blue-deep);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.value-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 4px;
}

.plan-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 14px 0 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-subtle);
  padding: 10px 13px;
}

.plan-current span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.plan-current b {
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 700;
}

.value-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 15px 0;
}

.value-card:last-child {
  border-bottom: 0;
}

.value-card.current {
  margin-inline: -10px;
  border: 1px solid #b8cdee;
  border-radius: 10px;
  background: var(--blue-soft);
  padding-inline: 10px;
}

.value-card b {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.value-card span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 400;
}

.plan-policy {
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.native-plan-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.native-plan-actions .btn {
  min-height: 52px;
  border-radius: 10px;
}

.native-plan-actions .btn:not(.blue) {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink);
}

.native-plan-actions .btn:disabled {
  border-color: var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: default;
  opacity: 1;
}

.text-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 600;
}

.danger-action {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  background: #ffffff;
  color: #a4373f;
  font-size: 15px;
  font-weight: 600;
}

.segmented {
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  padding: 4px;
}

.segment {
  min-height: 46px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.segment.active {
  color: var(--blue-deep);
  box-shadow: 0 2px 7px rgba(24, 38, 60, 0.08);
}

.data-status {
  margin-top: 16px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
}

.notice {
  border: 1px solid #dfcf9d;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #624d16;
  padding: 15px 16px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.update-banner {
  margin: 10px var(--page-pad) 0;
  border-color: #b8cdee;
  border-radius: 12px;
  background: #edf4ff;
  box-shadow: none;
  padding: 11px 12px;
  color: #244f8e;
  font-size: 14px;
  font-weight: 600;
}

.update-banner button {
  min-height: 44px;
  border-radius: 9px;
  padding: 0 12px;
  font-weight: 600;
}

.connection-banner {
  margin: 10px var(--page-pad) 0;
  border: 1px solid #dfcf9d;
  border-radius: 10px;
  background: #fff9e9;
  color: #654f17;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.connection-banner[hidden] {
  display: none;
}

.hot-row .tag {
  min-height: 44px;
  align-items: center;
}

.privacy-options-button {
  border: 0;
  cursor: pointer;
}

nav {
  min-height: 68px;
  border-top-color: var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(24, 38, 60, 0.05);
  padding: 5px 8px max(7px, env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
}

.tab {
  position: relative;
  height: 56px;
  border-radius: 8px;
  color: #5f6c7d;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
}

.tab.active {
  background: transparent;
  color: var(--blue-deep);
  box-shadow: none;
  font-weight: 700;
}

.tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
}

.tab i,
.tab svg {
  margin-bottom: 5px;
}

.toast {
  bottom: 92px;
  width: min(390px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #17202e;
  box-shadow: 0 12px 28px rgba(12, 21, 34, 0.2);
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.toast.show {
  bottom: 100px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 95, 214, 0.36);
  outline-offset: 2px;
}

body[data-text-size="large"] .copy,
body[data-text-size="large"] .dream-card p,
body[data-text-size="large"] .flow-step span,
body[data-text-size="large"] .value-card span,
body[data-text-size="large"] .source-box,
body[data-text-size="large"] .metric-detail {
  font-size: 18px;
  line-height: 1.68;
}

body[data-text-size="large"] .strong,
body[data-text-size="large"] .input,
body[data-text-size="large"] textarea,
body[data-text-size="large"] select,
body[data-text-size="large"] .btn {
  font-size: 18px;
}

body[data-text-size="large"] .stat span,
body[data-text-size="large"] .legend-item,
body[data-text-size="large"] .radar-center span,
body[data-text-size="large"] .mini-radar-center span,
body[data-text-size="large"] .trust span,
body[data-text-size="large"] .round-hero span {
  font-size: 15px !important;
}

body[data-text-size="large"] .ai-action-copy span,
body[data-text-size="large"] .ai-action-quota,
body[data-text-size="large"] .eyebrow,
body[data-text-size="large"] .brand-sub,
body[data-text-size="large"] .pill,
body[data-text-size="large"] .pillar-card span,
body[data-text-size="large"] .count-chip,
body[data-text-size="large"] .score-weight-summary,
body[data-text-size="large"] .radar-weight,
body[data-text-size="large"] .radar-wrap text {
  font-size: 15px !important;
}

@media (max-width: 370px) {
  :root {
    --page-pad: 18px;
    --panel-pad: 18px;
  }

  .h1 {
    font-size: 31px;
  }

  .h2 {
    font-size: 25px;
  }

  .trust-row,
  .stat-grid,
  .quota {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two,
  .value-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .birth-picker {
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
  }

  .choice-grid,
  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ball {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 16px;
  }

  .numbers {
    gap: 5px;
  }

  .radar-legend {
    grid-template-columns: 1fr 1fr;
  }

  .value-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .ai-action-copy b {
    font-size: 18px;
  }

  .ai-action-button {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
  }

  .ai-action-quota {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 700px) {
  .phone {
    margin-top: 24px;
    margin-bottom: 24px;
    min-height: calc(100vh - 48px);
    border-radius: 24px;
  }
}

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

/* 2026 liquid-glass refinement: blur stays on floating chrome only. */
:root {
  --bg: #f1f4f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-subtle: #f7f9fc;
  --surface-strong: #edf1f6;
  --ink: #171c24;
  --ink-soft: #3f4855;
  --muted: #626d7c;
  --line: rgba(30, 43, 61, 0.11);
  --line-strong: rgba(30, 43, 61, 0.17);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --blue: #2b63c7;
  --blue-deep: #1b4d9d;
  --blue-soft: #eaf1fc;
  --gold: #b8872f;
  --gold-soft: #fbf6e9;
  --green: #23795c;
  --red: #ba505c;
  --navy: #171d27;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 28px rgba(28, 42, 65, 0.075);
  --shadow-raised: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(15, 25, 42, 0.2);
  --radius-panel: 14px;
  --radius-control: 11px;
  --radius-small: 8px;
  --page-pad: 20px;
  --panel-pad: 22px;
  --section-gap: 16px;
}

html,
body {
  background: linear-gradient(180deg, #e7ecf3 0%, #f5f7fa 52%, #e9eef4 100%);
}

.phone {
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 210px),
    #f1f4f8;
  box-shadow: 0 0 0 1px rgba(25, 36, 52, 0.07),
    0 28px 74px rgba(24, 39, 61, 0.16);
  padding-bottom: 104px;
}

header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(245, 248, 252, 0.78);
  box-shadow: 0 1px 0 rgba(27, 40, 59, 0.07),
    0 10px 24px rgba(27, 40, 59, 0.045);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.topbar {
  min-height: 72px;
  padding: 12px var(--page-pad);
}

.brand {
  min-width: 0;
  gap: 11px;
}

.logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: linear-gradient(165deg, #315fba, #17366f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -8px 16px rgba(4, 17, 42, 0.14),
    0 7px 16px rgba(26, 65, 132, 0.2);
}

.logo svg {
  width: 29px;
  height: 29px;
  overflow: visible;
}

.logo svg path {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.15;
}

.logo svg circle {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 0.7;
}

.logo svg circle:last-child {
  fill: #d8b15c;
}

.brand-title {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}

.brand-sub {
  max-width: 188px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(37, 56, 82, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 4px 12px rgba(31, 46, 70, 0.055);
  color: #38516f;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.header-action svg {
  width: 17px;
  height: 17px;
}

main {
  padding: 20px var(--page-pad) 28px;
}

.view.active {
  display: grid;
  gap: var(--section-gap);
}

.h1 {
  margin: 11px 0 13px;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 700;
}

.h2 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.32;
  font-weight: 700;
}

.h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
}

.copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.strong {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 500;
}

.eyebrow {
  min-height: auto;
  margin: 0 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3564b2;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.eyebrow::before {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  background: linear-gradient(155deg, #171d27 0%, #202c3d 72%, #253d63 100%);
  box-shadow: var(--shadow-raised);
  padding: 27px 22px 23px;
}

.hero::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 54%;
  border-radius: 15px 15px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
  content: "";
}

.hero .eyebrow {
  position: relative;
  border: 0;
  background: transparent;
  color: #bed0ee;
}

.hero .copy {
  position: relative;
  color: #d4dce8;
}

.hero .h1,
.hero .trust-row,
.hero .actions {
  position: relative;
}

.trust-row {
  gap: 0;
  margin-top: 22px;
  border-block: 1px solid rgba(255, 255, 255, 0.13);
}

.trust {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: transparent;
  padding: 14px 10px;
}

.trust:first-child {
  padding-left: 0;
}

.trust:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust b,
.trust:first-child b {
  font-size: 16px;
  font-weight: 600;
}

.trust span {
  margin-top: 5px;
  color: #b8c5d7;
  font-size: 12px;
  font-weight: 500;
}

.actions {
  gap: 10px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 253, 0.78)),
    var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px rgba(31, 45, 66, 0.08);
  padding: var(--panel-pad);
}

.panel.blue,
.panel.gold {
  border-color: var(--glass-edge);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.8)),
    var(--surface);
}

.panel.blue::before,
.panel.gold::before {
  top: 0;
  left: var(--panel-pad);
  width: 30px;
  height: 2px;
  background: #5d83bf;
  opacity: 0.8;
}

.panel.gold::before {
  background: var(--gold);
}

.panel.dark,
.number-maker {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(155deg, #171d27 0%, #202a39 70%, #263c5d 100%);
  box-shadow: var(--shadow-raised);
}

.number-maker::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 90px;
  border-radius: 15px 15px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent);
  pointer-events: none;
  content: "";
}

.btn {
  min-height: 54px;
  border-radius: var(--radius-control);
  padding: 0 17px;
  font-size: 16px;
  font-weight: 600;
}

.btn.primary {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 #ffffff, 0 7px 16px rgba(0, 0, 0, 0.12);
  color: #1d4e9e;
}

.btn.gold {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn.blue {
  border: 1px solid rgba(24, 72, 155, 0.22);
  background: linear-gradient(180deg, #3971d3, #285bb9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(33, 83, 170, 0.17);
}

.btn.soft {
  border: 1px solid var(--line);
  background: #eef2f7;
  color: #314154;
}

.flow-step {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  padding: 16px 0;
}

.flow-step b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.flow-step span {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.6;
}

.num {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(47, 89, 153, 0.12);
  border-radius: 10px;
  background: #edf3fb;
  color: #315e9f;
  font-size: 15px;
  font-weight: 600;
}

.num svg {
  width: 21px;
  height: 21px;
}

.report-standard {
  gap: 5px;
  margin-top: 17px;
  border: 1px solid rgba(47, 82, 130, 0.12);
  border-left: 3px solid #5277b4;
  border-radius: 8px;
  background: rgba(239, 244, 250, 0.78);
  padding: 14px 15px;
}

.report-standard b {
  font-size: 15px;
  font-weight: 600;
}

.report-standard span {
  font-size: 14px;
  line-height: 1.62;
}

.input,
textarea,
select,
.round-select {
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 9px rgba(25, 39, 58, 0.035);
  font-size: 16px;
}

textarea {
  min-height: 136px;
  padding: 15px 16px;
  line-height: 1.62;
}

.form {
  gap: 16px;
}

.field label,
.control-label {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.birth-picker {
  gap: 8px;
}

.auto-age {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #edf2f7;
  color: var(--ink);
  padding: 0 15px;
  font-weight: 600;
}

.auto-age span {
  color: var(--muted);
  font-size: 14px;
}

.choice-card {
  position: relative;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 #ffffff;
  padding: 13px 8px;
}

.choice-card b {
  font-size: 15px;
  font-weight: 600;
}

.choice-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.choice-card.selected {
  border-color: #7398d2;
  background: #edf3fc;
  box-shadow: inset 0 0 0 1px rgba(45, 93, 171, 0.08);
}

.choice-card.selected::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2f63ba;
  box-shadow: inset 0 0 0 4px #edf3fc;
  content: "";
}

.pillar-card,
.stat,
.source-box,
.round-result,
.metric-detail,
.data-status {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 252, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pillar-card {
  padding: 14px;
}

.pillar-card b {
  font-size: 20px;
  font-weight: 600;
}

.count-chip,
.tag,
.source-link {
  border-radius: 7px;
  font-weight: 600;
}

.element-row {
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  padding: 8px 0;
}

.element-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-weight: 600;
}

.element-row b,
.element-score {
  font-weight: 600;
}

.element-row small {
  font-weight: 500;
  line-height: 1.48;
}

.bar {
  height: 8px;
  border-radius: 6px;
  background: #e2e7ee;
}

.bar i {
  border-radius: 6px;
  background: #4e7bc8;
}

.numbers {
  gap: 7px;
  margin: 20px 0;
}

.ball {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(31, 43, 60, 0.13);
  background: #eff2f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 10px rgba(28, 41, 61, 0.08);
  color: #263242;
  font-size: 17px;
  font-weight: 700;
}

.ball.range-yellow {
  border-color: #d9c17c;
  background: #f4e6b8;
  color: #59491f;
}

.ball.range-blue,
.ball.blueball {
  border-color: #9bb9de;
  background: #d6e5f6;
  color: #244b78;
}

.ball.range-red {
  border-color: #d8a7aa;
  background: #f0d5d7;
  color: #74393e;
}

.ball.range-slate {
  border-color: #aab2be;
  background: #d9dee5;
  color: #36404c;
}

.ball.range-green,
.ball.greenball {
  border-color: #99c5b4;
  background: #d1e7de;
  color: #295d49;
}

.ai-action-button {
  position: relative;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  background: linear-gradient(180deg, #3e73d3 0%, #2b5cb8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -10px 20px rgba(12, 43, 101, 0.09),
    0 12px 24px rgba(5, 16, 35, 0.2);
  color: #ffffff;
  padding: 12px 14px;
}

.ai-action-button::after {
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: 12px 12px 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent);
  pointer-events: none;
  content: "";
}

.ai-action-button:active {
  background: linear-gradient(180deg, #3567c1, #2653a7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 7px 16px rgba(5, 16, 35, 0.17);
}

.ai-action-left,
.ai-action-quota {
  position: relative;
  z-index: 1;
}

.ai-action-left {
  gap: 12px;
}

.ai-action-icon {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ai-action-icon svg {
  width: 25px;
  height: 25px;
}

.ai-action-copy {
  gap: 5px;
}

.ai-action-copy b {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 700;
}

.ai-action-copy span {
  max-width: 190px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
}

.ai-action-quota {
  display: grid;
  min-height: 46px;
  align-content: center;
  gap: 2px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 2px 0 2px 13px;
  text-align: center;
}

.ai-action-quota strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 700;
}

.ai-action-quota em {
  font-size: 12px;
  font-weight: 500;
}

.engine-proof {
  gap: 8px 14px;
  margin: 15px 1px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.engine-proof span::before {
  width: 4px;
  height: 4px;
  background: #9ab8e7;
}

.personalization-prompt,
.quota-notice {
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.065);
}

.personalization-prompt {
  margin-top: 17px;
  padding: 14px;
}

.personalization-prompt b {
  font-weight: 600;
}

.personalization-prompt button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
}

.number-empty-state {
  gap: 5px;
  margin-top: 17px;
  padding-top: 16px;
}

.number-empty-state b {
  font-size: 16px;
  font-weight: 600;
}

.report-action {
  min-height: 48px;
  border-radius: 9px;
  font-weight: 600;
}

.trust-brief {
  margin: 0 0 18px;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
}

.trust-brief-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.trust-brief-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.trust-brief-head b {
  margin: 0;
  color: #234f98;
  font-size: 17px;
  font-weight: 700;
  text-align: right;
}

.trust-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-facts > div {
  display: grid;
  gap: 3px;
  background: rgba(248, 250, 252, 0.96);
  padding: 12px;
}

.trust-facts span,
.trust-facts small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trust-facts b {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.trust-brief p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.metric-cards {
  gap: 8px;
}

.metric-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 #ffffff;
  padding: 14px 15px;
}

.metric-card::after {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #8090a4;
  font-size: 15px;
  content: "+";
}

.metric-card.active {
  border-color: #7e9fd1;
  background: #eef4fc;
  box-shadow: inset 0 0 0 1px rgba(43, 99, 199, 0.07);
}

.metric-card.active::after {
  content: "−";
}

.metric-head {
  padding-right: 20px;
  font-size: 15px;
  font-weight: 600;
}

.score-weight-summary,
.metric-hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 400;
}

.metric-detail {
  margin-top: 14px;
  padding: 16px;
}

.radar-card {
  gap: 14px;
}

.radar-wrap {
  max-width: 300px;
  padding: 5px 0;
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(72, 92, 119, 0.15);
  stroke-width: 1;
}

#radarPolygon,
.radar-shape {
  fill: rgba(57, 108, 196, 0.14);
  stroke: #396cc4;
  stroke-width: 2;
  stroke-linejoin: round;
}

.radar-dots circle,
.radar-dot {
  fill: #ffffff;
  stroke: #3568bd;
  stroke-width: 2;
}

.radar-wrap text {
  fill: #566477;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.radar-center,
.mini-radar-center {
  min-width: 92px;
}

.radar-center b,
.mini-radar-center b {
  color: #1e3557;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.radar-center small,
.mini-radar-center small {
  display: block;
  margin-top: 4px;
  color: #68778a;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
}

.radar-center span,
.mini-radar-center span,
.radar-center span.good,
.mini-radar-center span.good,
.radar-center span.watch,
.mini-radar-center span.watch {
  display: block !important;
  min-height: auto;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #466485 !important;
  padding: 0;
  font-size: 11px !important;
  line-height: 1.35;
  font-weight: 600;
}

.radar-center span.watch,
.mini-radar-center span.watch {
  color: #8a6525 !important;
}

.radar-legend {
  gap: 0 16px;
}

.legend-item {
  display: grid;
  min-height: 48px;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
}

.legend-item > div {
  display: grid;
  grid-template-columns: minmax(38px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.legend-item i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e2e7ee;
}

.legend-item i::after {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: #5d82bd;
  content: "";
}

.legend-item b {
  min-width: 38px;
  font-size: 13px;
  text-align: right;
}

.mini-radar {
  margin: 16px 0 6px;
}

.mini-radar svg {
  width: 242px;
}

.disclosure-panel {
  padding: 0;
}

.disclosure-panel > summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 14px var(--panel-pad);
}

.disclosure-panel > summary::-webkit-details-marker {
  display: none;
}

.disclosure-panel > summary span {
  display: grid;
  gap: 3px;
}

.disclosure-panel > summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.disclosure-panel > summary b {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.disclosure-panel > summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #607086;
  transition: transform 160ms ease;
}

.disclosure-panel[open] > summary svg {
  transform: rotate(180deg);
}

.disclosure-body {
  border-top: 1px solid var(--line);
  padding: 18px var(--panel-pad) var(--panel-pad);
}

.round-select {
  margin: 8px 0 12px;
}

.round-result {
  padding: 16px;
}

.dream-results {
  gap: 0;
}

.dream-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0;
}

.dream-card:first-child {
  border-top: 0;
  padding-top: 4px;
}

.dream-card h4 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
}

.dream-card p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.67;
  font-weight: 400;
}

.dream-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.dream-counts span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  padding: 10px 7px;
  font-size: 13px;
  text-align: center;
}

.dream-counts span:last-child {
  border-right: 0;
}

.dream-counts b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dream-more summary {
  min-height: 44px;
  align-content: center;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 600;
}

.plan-current {
  border-radius: 8px;
  background: rgba(247, 249, 252, 0.88);
}

.value-card {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
}

.value-card.current {
  margin-inline: -10px;
  border-color: #a9bfdf;
  border-radius: 8px;
  background: #edf3fb;
}

.value-card b {
  font-size: 16px;
  font-weight: 600;
}

.value-card span {
  font-size: 15px;
  line-height: 1.62;
}

.hot-row .tag {
  border-radius: 8px;
}

nav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), calc(var(--max) - 24px));
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(249, 251, 253, 0.79);
  box-shadow: inset 0 1px 0 #ffffff,
    0 14px 34px rgba(20, 34, 53, 0.16),
    0 0 0 1px rgba(27, 40, 59, 0.07);
  padding: 6px;
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
}

.tab {
  height: 57px;
  border-radius: 12px;
  color: #687587;
  font-size: 12px;
  font-weight: 500;
}

.tab svg {
  width: 21px;
  height: 21px;
  margin-bottom: 5px;
}

.tab.active {
  background: rgba(222, 233, 250, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  color: #2456a8;
  font-weight: 600;
}

.tab.active::before {
  display: none;
}

.toast {
  bottom: 104px;
  border-radius: 11px;
  background: rgba(23, 29, 39, 0.94);
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toast.show {
  bottom: 112px;
}

:where(
    .header-action,
    .btn,
    .ai-action-button,
    .choice-card,
    .metric-card,
    .report-action,
    .quota-cta,
    .text-action,
    .tab,
    .disclosure-panel > summary
  ) {
  transition:
    background-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .header-action:hover,
  .report-action:hover,
  .quota-cta:hover,
  .disclosure-panel > summary:hover {
    border-color: rgba(68, 101, 149, 0.28);
    background-color: rgba(237, 243, 252, 0.82);
  }

  .choice-card:hover,
  .metric-card:hover {
    border-color: #c3d2e7;
    box-shadow: 0 10px 24px rgba(27, 48, 79, 0.07);
  }

  .ai-action-button:hover {
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 16px 34px rgba(7, 25, 61, 0.2);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header,
  nav {
    background: rgba(248, 250, 253, 0.97);
  }
}

@media (max-width: 430px) {
  .radar-legend {
    grid-template-columns: 1fr;
  }

  .legend-item {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  :root {
    --page-pad: 18px;
    --panel-pad: 18px;
  }

  .topbar {
    padding-inline: 18px;
  }

  .brand-sub {
    max-width: 155px;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .h1 {
    font-size: 29px;
  }

  .h2 {
    font-size: 23px;
  }

  .hero {
    padding: 25px 20px 21px;
  }

  .trust-row {
    grid-template-columns: 1.24fr 0.78fr 0.98fr;
  }

  .trust {
    padding-inline: 7px;
  }

  .trust b,
  .trust:first-child b {
    font-size: 14px;
  }

  .ai-action-button {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
  }

  .ai-action-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .ai-action-copy b {
    font-size: 18px;
  }

  .ai-action-copy span {
    max-width: 156px;
    font-size: 12px;
  }

  .ai-action-quota {
    width: auto;
    min-width: 58px;
    grid-column: auto;
    padding-left: 10px;
  }

  .ball {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 16px;
  }

  .numbers {
    gap: 5px;
  }

}

@media (max-width: 350px) {
  :root {
    --page-pad: 16px;
    --panel-pad: 16px;
  }

  .brand-sub {
    display: none;
  }

  .actions,
  .analysis-actions {
    grid-template-columns: 1fr;
  }

  .ai-action-icon {
    display: none;
  }

  .ai-action-copy span {
    max-width: 150px;
  }

  .ball {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 15px;
  }
}
