:root {
  --green: #0f7b55;
  --green-dark: #153e30;
  --green-soft: #edf3ee;
  --mint: #b7d7be;
  --ink: #18372d;
  --muted: #6b7c75;
  --line: #dce4df;
  --warm: #f7f7f1;
  --white: #fff;
  --shadow: 0 14px 42px rgba(27, 60, 46, .09);
}

@font-face { font-family: "Paperlogy"; src: url("/fonts/Paperlogy-4Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/Paperlogy-5Medium.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/Paperlogy-6SemiBold.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/Paperlogy-7Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("/fonts/Paperlogy-8ExtraBold.woff2") format("woff2"); font-style: normal; font-weight: 800 900; font-display: swap; }

html,
body,
button,
input,
textarea,
select {
  font-family: "Paperlogy", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

html * { font-family: "Paperlogy", "Pretendard", "Noto Sans KR", system-ui, sans-serif !important; }
[hidden] { display: none !important; }

html,
body { overflow-x: hidden; }
body { background: #e9ece7; }
.app-shell { display: block; width: min(100%, 1180px); max-width: 1180px; min-height: 100vh; background: var(--warm); }
.context-panel { display: none !important; }
.flow-panel { width: 100%; min-width: 0; max-width: none; background: var(--warm); }
.screen { max-width: 760px; min-height: calc(100vh - 142px); background: var(--warm); padding: 48px 42px 112px; }
.mobile-header { position: sticky; z-index: 20; top: 0; width: 100%; height: 70px; display: flex !important; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid rgba(21, 62, 48, .08); background: rgba(247, 247, 241, .96); backdrop-filter: blur(12px); }
.mobile-progress { position: sticky; z-index: 21; top: 70px; display: block !important; height: 2px; background: #edf2ef; }
.mobile-progress span { display: block; height: 100%; background: var(--green); }
.mobile-brand-copy { display: grid; gap: 1px; }
.mobile-brand-copy small { color: var(--muted); font-size: 7px; font-weight: 500; letter-spacing: 0; }
.health-header-actions { display: flex; align-items: center; gap: 9px; }
.health-search-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--deep, #153e30); font-size: 27px; line-height: 1; text-decoration: none; }
.health-partner-indicator { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #b7d7be, #4e8e6f); font-size: 12px; font-weight: 900; }
.health-bottom-nav { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 1180px); height: 72px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 24px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(247, 247, 241, .97); backdrop-filter: blur(12px); }
.health-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8a9892; text-decoration: none; }
.health-bottom-nav a span { font-size: 23px; line-height: 1; }
.health-bottom-nav a small { font-size: 10px; }
.health-bottom-nav a.active { color: var(--green); font-weight: 800; }
.complete-share-card { display: grid; gap: 20px; }
.complete-share-card .share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.complete-share-card .share-actions button { min-height: 52px; }
.primary-btn { background: var(--green); box-shadow: 0 12px 28px rgba(15, 123, 85, .18); }
.primary-btn:hover:not(:disabled) { background: var(--green-dark); }
.outline-btn,
.segmented button,
.scale button,
.choice-grid button,
.upload-card,
.metric { background: #fff; }
.field input { background: transparent; color: var(--ink); }
.field > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.compact-consent { gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.compact-consent label { grid-template-columns: 24px 1fr auto; }
.compact-consent b { font-size: 11px; }
.compact-consent small { font-size: 9px; line-height: 1.45; }
.quote-metrics { grid-template-columns: repeat(2, 1fr); }
.include-upload { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green-dark); font-size: 10px; font-weight: 700; }
.upload-pick { display: flex; width: 100%; flex-direction: column; align-items: center; cursor: pointer; }
.include-upload input { accent-color: var(--green); }
.consultation-survey { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.consultation-survey summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 800; }
.consultation-survey summary small { margin-left: 5px; color: var(--green); }
.consultation-survey > p { color: var(--muted); font-size: 10px; }
#consultationSurveyQuestions { display: grid; gap: 12px; margin-top: 14px; }
#consultationSurveyQuestions label { display: grid; gap: 6px; }
#consultationSurveyQuestions span { color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.5; }
#consultationSurveyQuestions textarea { width: 100%; min-height: 58px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--warm); color: var(--ink); font-size: 11px; line-height: 1.5; }
.text-reset-btn { width: 100%; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.score-card { background: linear-gradient(145deg, #e7efe8, #f7f7f1); }
.toast { background: var(--deep, #153e30); }

@media (max-width: 800px) {
  body,
  .flow-panel,
  .screen { background: var(--warm); }
  .mobile-header { padding-left: 17px; padding-right: 17px; }
  .screen { min-height: calc(100vh - 144px); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .health-bottom-nav { padding-left: 18px; padding-right: 18px; }
  .complete-share-card .share-actions { grid-template-columns: 1fr; }
}

@media (min-width: 801px) {
  body { padding: 24px; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; }
  .mobile-header { border-radius: 28px 28px 0 0; }
  .health-bottom-nav { bottom: 24px; border-radius: 0 0 28px 28px; }
}
