/* Light, calm visual layer for the existing assessment and long report. */
:root {
  --brand-green: #36aa9b;
  --brand-green-dark: #268f84;
  --brand-green-mid: #4eb8aa;
  --brand-green-soft: #a8ddd2;
  --brand-green-pale: #e9f7f2;
  --brand-gold: #f4c75c;
  --brand-gold-deep: #d69c30;
  --brand-gold-soft: #fff4d7;
  --brand-orange: #ed8958;
  --brand-orange-soft: #fff0e5;
  --sage-soft: #f2f9f4;
  --page-bg: #f9f8f1;
  --card-bg: #ffffff;
  --text-primary: #24433f;
  --text-secondary: #60736d;
  --text-muted: #82928b;
  --border-soft: #e4eee8;
  --border-green: #cce8dd;
  --shadow-soft: 0 12px 30px rgba(70, 118, 103, .08);
  --safe-inline: 16px;
}

html, body { background: var(--page-bg); }
body { color: var(--text-primary); }
.page { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.brand-mark { color: var(--brand-orange); font-size: 16px; }
.brand { color: #328f83; font-weight: 800; }

/* Cover and introduction in the source package are one screen. */
.home-screen {
  border: 1px solid #e0ede5;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(64, 107, 88, .09);
}
.home-hero {
  min-height: 370px;
  padding: 27px 27px 58px;
  color: var(--text-primary);
  background: radial-gradient(circle at 82% 70%, #fff2cf 0 12%, transparent 35%),
              linear-gradient(155deg, #e5f5ef 0%, #f1faf4 55%, #fff8e9 100%);
}
.home-hero::before {
  width: 255px; height: 255px; right: -90px; top: 134px;
  border: 1px solid rgba(73, 173, 156, .20);
  background: radial-gradient(circle at center, rgba(173, 223, 205, .28), transparent 66%);
}
.home-hero::after {
  width: 150px; height: 150px; right: -47px; top: 188px;
  border: 1px dashed rgba(73, 173, 156, .30);
}
.home-hero .brand-lockup {
  padding: 7px 12px 7px 8px;
  border: 1px solid #d5ece1;
  border-radius: 999px;
  color: var(--brand-green-dark);
  background: rgba(255,255,255,.75);
}
.home-hero .brand-mark { color: var(--brand-orange); }
.home-hero h1 {
  max-width: 280px;
  margin-top: 55px;
  color: #225b55;
  font-size: clamp(38px, 10.5vw, 46px);
  line-height: 1.17;
  letter-spacing: -.025em;
}
.subtitle { color: #398e81; font-size: 17px; line-height: 1.55; font-weight: 750; }
.home-insight {
  max-width: 290px;
  margin-top: 21px;
  color: #586e67;
  font-size: 14px;
  line-height: 1.85;
}
.orbit-dot { width: 9px; height: 9px; background: #f6c65f; box-shadow: none; }
.orbit-dot-a { right: 63px; top: 129px; }
.orbit-dot-b { right: 105px; top: 181px; width: 5px; height: 5px; opacity: 1; }
.home-body { padding: 27px 24px 27px; }
.info-list { gap: 8px; padding-right: 0; }
.info-list span {
  padding: 9px 11px;
  border: 1px solid #d9eee4;
  background: #f2faf6;
  color: #4b8579;
  font-size: 11px;
  font-weight: 650;
}
.character-placeholder {
  position: relative;
  top: auto; right: auto;
  width: 56px; height: 56px;
  margin: 18px 0 -4px auto;
  border: 1px solid #cfe9dd;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7e6, #e7f6ef);
  color: #ed8958;
  font-size: 28px;
  transform: rotate(8deg);
}
.ip-placeholder-ring { width: 37px; height: 37px; border-color: rgba(61, 165, 149, .28); }
.primary-button, .next-button {
  border-radius: 16px;
  background: linear-gradient(135deg, #f3a168, #eb8355);
  color: white;
  box-shadow: 0 9px 20px rgba(232, 133, 84, .22);
}
.primary-button { margin-top: 20px; min-height: 55px; font-size: 16px; }

/* Questions */
.question-header { padding: 12px 3px 21px; margin-bottom: 18px; border-bottom-color: #e3eee6; }
.question-header .brand-lockup { margin-bottom: 26px; }
.question-top { color: #688078; font-size: 13px; }
.question-progress-label { color: #389f90; }
.progress { height: 9px; background: #e5f2eb; }
.progress-bar { background: linear-gradient(90deg, #51bca9, #7bcfba); }
.question-notice {
  border: 1px solid #d6ede2;
  border-left: 4px solid #f1b96a;
  border-radius: 16px;
  background: #f4faf5;
  color: #536e65;
}
.question-panel {
  padding: 25px 20px 22px;
  border: 1px solid #dfede5;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.question-title { color: #45a99b; font-size: 13px; }
.question-panel h2 { color: #254944; font-size: 23px; line-height: 1.55; }
.options { gap: 11px; }
.option-button {
  min-height: 60px;
  padding: 16px 17px;
  border: 1px solid #e1eee6;
  border-radius: 15px;
  background: #fbfdf9;
  color: #3d5951;
  font-size: 14px;
  box-shadow: 0 3px 9px rgba(70,118,103,.035);
}
.option-button.selected {
  border-color: #70c9b6;
  background: #eaf8f0;
  box-shadow: inset 4px 0 0 #62bead;
}
.next-button { min-height: 52px; margin-top: 17px; }
.prev-button { min-height: 44px; color: #6d9d91; font-weight: 700; }

/* Continuous report */
.result-page { padding-top: 2px; padding-bottom: 24px; }
.result-page .result-hero {
  margin-bottom: 17px;
  border: 1px solid #dbece1;
  border-radius: 26px;
  background: #f2faf4;
  box-shadow: var(--shadow-soft);
}
.result-page .result-hero .hero-green-zone {
  min-height: 365px;
  padding: 0 25px 37px;
  border-radius: 25px 25px 0 0;
  color: #24584f;
  background: radial-gradient(circle at 89% 69%, #fff1c9 0, transparent 32%),
              linear-gradient(155deg, #e1f4eb, #f1fbf4 58%, #fff8e9);
}
.result-page .result-hero .hero-green-zone::before {
  width: 360px; height: 240px; right: -140px; top: 100px;
  border-color: rgba(70, 174, 153, .26); opacity: 1;
}
.result-page .result-hero .hero-green-zone::after {
  width: 270px; height: 190px; right: -98px; top: 145px;
  border-color: rgba(70, 174, 153, .19); opacity: 1;
}
.result-page .result-hero .hero-topbar {
  margin-bottom: 36px;
  padding: 17px 0 15px;
  border-bottom-color: rgba(50, 149, 130, .14);
}
.result-page .result-hero .hero-brand { color: #2d9789; font-weight: 800; }
.result-page .result-hero .hero-report-type { color: #799b8d; }
.result-page .result-hero .hero-star { background: #f6c865; box-shadow: 0 0 0 5px rgba(246,200,101,.13); }
.result-page .result-hero .result-label { color: #3a9f8e; font-size: 15px; font-weight: 800; }
.result-page .result-hero h2 {
  color: #205a52;
  font-size: clamp(37px, 10.2vw, 46px);
  white-space: normal;
  overflow-wrap: anywhere;
}
.result-page .result-hero .result-summary { max-width: 100%; color: #365e55; font-size: 16px; line-height: 1.65; }
.result-page .result-hero .result-moment {
  max-width: 100%;
  margin-top: 16px;
  padding-left: 12px;
  border-left-color: #efb66d;
  color: #6d8679;
  font-size: 13px;
  line-height: 1.65;
}
.result-page .result-hero .hero-keywords {
  margin-top: -20px;
  border-color: #e3efe7;
  background: #fff;
  box-shadow: 0 9px 22px rgba(67,119,98,.08);
}
.result-page .result-hero .hero-keywords span { color: #2b685e; font-size: 14px; }
.result-page .result-hero .hero-keywords span::before { background: #ecf8f1; color: #46ae9e; }
.result-page .result-hero .hero-keywords span:nth-child(2)::before { color: #dca749; }
.result-page .result-hero .hero-friction-card {
  border-color: #e2ede4;
  background: #fff;
  box-shadow: 0 8px 20px rgba(67,119,98,.06);
}
.result-page .result-hero .strip-icon { background: #fff0d7; color: #d39c3a; }
.result-page .result-hero .hero-friction-card strong { color: #db8055; font-size: 24px; }
.result-page .result-hero .hero-friction-summary { color: #4c665b; line-height: 1.7; }

.result-page .mechanism-module,
.result-page .friction-module,
.result-page .how-module,
.result-page .experiment-module {
  margin-bottom: 17px;
  padding: 20px 18px;
  border-color: #e0eee4;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.result-page .mechanism-module .module-index,
.result-page .friction-module .module-index,
.result-page .how-module .module-index,
.result-page .experiment-module .module-index {
  border-radius: 9px;
  background: #58b8a8;
}
.result-page .how-module .gold-index { background: #f0bb64; }
.result-page .mechanism-module h3,
.result-page .friction-module h3,
.result-page .how-module h3,
.result-page .experiment-module h3 { color: #275b52; font-size: 19px; }
.result-page .mechanism-primary { border-color: #dcefe5; background: #f1faf5; }
.result-page .mechanism-power { border-color: #f5e7c9; background: #fff9eb; }
.result-page .mechanism-primary h4 { color: #315f55; }
.result-page .mechanism-primary p,
.result-page .mechanism-secondary p,
.result-page .principle-band p { font-size: 13px; line-height: 1.65; }
.result-page .principle-band { border-color: #d6ecdd; background: #ecf8f0; }
.result-page .principle-band span:not(.principle-mark) { color: #399787; }
.result-page .friction-intro h4 { color: #da8358; }
.result-page .friction-intro > p,
.result-page .compact-text-item,
.result-page .explanation-section > p { font-size: 13px; line-height: 1.65; }
.result-page .friction-keywords span { background: #fff1e6; color: #b36f50; }
.result-page .analysis-label { color: #3c9c8d; }
.result-page .behavior-flow-node { border-color: #dcefe5; background: #f0faf5; font-size: 12px; }
.result-page .explanation-section { background: #f5faf5; }
.result-page .memory-band { border-color: #f4e5bf; background: #fff6e3; }
.result-page .formula-band { border-color: #f4dfb9; background: #fff3d9; }
.result-page .formula-flow .flow-node { background: #fffdfa; }
.result-page .good-actions { border-color: #d8ecdf; background: #eff9f1; }
.result-page .avoid-actions { border-color: #f4dfd2; background: #fff2eb; }
.result-page .action-group li,
.result-page .experiment-intro { font-size: 13px; line-height: 1.65; }
.result-page .reboot-quote { background: #f2faf4; }
.result-page .experiment-day h4 { color: #439d8c; }
.result-page .day-core { color: #315d53 !important; font-size: 12.5px !important; }
.result-page .day-detail { font-size: 12px !important; }
.result-page .day-observe { background: #f2faf4; font-size: 11.5px; }
.result-page .experiment-reboot { border-color: #d6eadf; background: #edf9f1; }

/* Bottom actions belong to the page UI, outside the exported image. */
.result-actions { display: grid; gap: 11px; padding: 8px 4px 18px; }
.result-actions button { width: 100%; min-height: 54px; border-radius: 16px; font-size: 15px; font-weight: 800; cursor: pointer; }
.save-image-button { border: 0; background: #ef8e5c; color: #fff; box-shadow: 0 8px 20px rgba(232,133,84,.18); }
.save-image-button:disabled { opacity: .65; cursor: wait; }
.restart-button { border: 1px solid #95cfc0; background: #f7fcf7; color: #3e9b8b; }
.save-status { min-height: 1em; margin: 0; color: #638176; text-align: center; font-size: 12px; }
.image-preview { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(27, 55, 47, .94); }
.image-preview-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top)) 18px 12px; color: #fff; font-size: 14px; font-weight: 700; }
.image-preview-bar button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.image-preview-body { flex: 1 1 auto; overflow: auto; padding: 8px 14px; text-align: center; -webkit-overflow-scrolling: touch; }
.image-preview-body img { display: block; width: min(100%, 430px); height: auto; margin: 0 auto; -webkit-touch-callout: default; user-select: auto; }
.preview-download { flex: 0 0 auto; display: block; margin: 8px 16px max(16px, env(safe-area-inset-bottom)); padding: 13px; border-radius: 12px; background: #f29a66; color: #fff; text-align: center; text-decoration: none; font-size: 14px; font-weight: 800; }

@media (max-width: 390px) {
  .home-hero { min-height: 350px; padding-left: 23px; padding-right: 23px; }
  .result-page .result-hero .hero-green-zone { min-height: 350px; padding-left: 22px; padding-right: 22px; }
  .result-page .result-hero h2 { font-size: 39px; }
  .result-page .result-hero .result-summary { font-size: 15px; }
  .result-page .result-hero .result-moment { font-size: 13px; }
}
@media (max-width: 375px) {
  .home-hero h1 { font-size: 38px; }
  .question-panel { padding-left: 18px; padding-right: 18px; }
  .question-panel h2 { font-size: 21px; }
  .result-page .result-hero h2 { font-size: 37px; }
  .result-page .result-hero .hero-keywords span { min-height: 76px; font-size: 12px; }
}
