:root {
  --cream: #fdf8f4;
  --surface: #fffdfa;
  --ink: #0e5847;
  --ink-soft: #275f53;
  --pink: #e85f82;
  --pink-soft: #f9dadd;
  --green: #79bb8a;
  --green-soft: #dff0d8;
  --lavender: #e9dcf7;
  --yellow: #fae8ad;
  --line: #eaded7;
  --shadow: 0 18px 46px rgba(24, 72, 61, .12);
  font-family: Inter, ui-rounded, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(232, 95, 130, .25); outline-offset: 2px; }
.device { min-height: 100vh; width: 100%; padding: 0; }
.app-shell, .onboarding { width: 100%; min-height: 100vh; background: var(--cream); position: relative; overflow-x: hidden; }
.page { width: 100%; padding: max(18px, env(safe-area-inset-top)) 18px calc(104px + env(safe-area-inset-bottom)); }
.page--home { padding-top: max(12px, env(safe-area-inset-top)); }
.page-header { margin-bottom: 18px; }
.page-header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 70px; }
.page-header__brand { min-width: 155px; }
.page-header__copy h1 { margin: 0; font-size: clamp(24px, 7vw, 32px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.page-header__copy p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; }
.header-spacer { width: 42px; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 16px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-button:hover { background: #f6ece8; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 74px; height: 74px; display: grid; place-items: center; background: linear-gradient(145deg, #fff1f3, #eff8ef); border-radius: 28px; }
.brand__copy { display: flex; flex-direction: column; line-height: .92; font-size: 35px; letter-spacing: -.04em; }
.brand__copy span { color: var(--green); font-weight: 850; }
.brand__copy strong { color: var(--pink); font-weight: 850; }
.brand--compact { gap: 8px; }
.brand--compact .brand__mark { width: 48px; height: 48px; border-radius: 18px; }
.brand--compact .brand__copy { font-size: 21px; }
.brand-tagline { text-align: center; margin: 2px 0 22px; font-size: 16px; line-height: 1.35; color: var(--ink); }
.hero-card { display: grid; grid-template-columns: .95fr 1.15fr; gap: 14px; align-items: center; padding: 24px 20px; border-radius: 25px; background: linear-gradient(140deg, #fde9e7, #f9dcdf); box-shadow: inset 0 0 0 1px rgba(232,95,130,.08); }
.hero-card__visual { min-height: 150px; display: grid; place-items: center; }
.hero-card__copy h2 { margin: 0 0 9px; font-size: 24px; line-height: 1.04; }
.hero-card__copy p { margin: 0 0 13px; font-size: 15px; line-height: 1.35; color: #245b50; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.dashboard-card { min-height: 172px; border: 0; border-radius: 24px; padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(14,88,71,.035); transition: transform .18s ease, filter .18s ease; }
.dashboard-card:hover { transform: translateY(-2px); filter: saturate(1.06); }
.dashboard-card strong { font-size: 18px; line-height: 1.06; margin-top: 6px; }
.dashboard-card span { font-size: 13px; line-height: 1.2; margin: 4px 0 3px; }
.tone-pink { background: var(--pink-soft); }
.tone-green { background: var(--green-soft); }
.tone-lavender { background: var(--lavender); }
.tone-yellow { background: var(--yellow); }
.bottom-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(78px + env(safe-area-inset-bottom)); padding: 8px 12px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 253, 250, .94); border-top: 1px solid var(--line); backdrop-filter: blur(15px); }
.bottom-nav button { border: 0; background: transparent; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; cursor: pointer; }
.bottom-nav button.is-active { color: var(--ink); font-weight: 800; background: #f2f5ed; }
.search-box { height: 53px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 2px solid #edd5d9; border-radius: 22px; background: rgba(255,255,255,.42); }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; min-width: 0; }
.search-box input::placeholder { color: #9d918e; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 11px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; border: 0; border-radius: 999px; background: #edf5e8; color: #1a4d41; padding: 10px 14px; cursor: pointer; }
.chips button.is-active { background: var(--pink); color: #fff; font-weight: 800; }
.material-list { display: grid; gap: 12px; }
.material-card { position: relative; border-radius: 20px; overflow: hidden; }
.material-card__main { width: 100%; min-height: 105px; border: 0; background: transparent; display: grid; grid-template-columns: 64px 1fr 28px; gap: 12px; align-items: center; text-align: left; padding: 16px 52px 16px 16px; cursor: pointer; }
.material-card__copy { display: flex; flex-direction: column; gap: 5px; }
.material-card__copy strong { font-size: 17px; line-height: 1.1; }
.material-card__copy small { font-size: 13px; line-height: 1.35; color: #255e52; }
.save-button { position: absolute; right: 11px; top: 11px; width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.56); cursor: pointer; }
.save-button.is-saved { background: #fff; }
.article-hero { border-radius: 28px; padding: 30px 22px; text-align: center; }
.article-hero p { margin: 12px 0 0; font-size: 17px; line-height: 1.4; }
.article-body { padding: 8px 2px 4px; }
.article-body p { font-size: 16px; line-height: 1.62; color: #244f46; }
.note-box, .privacy-card { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border-radius: 18px; background: #eef5e9; font-size: 13px; line-height: 1.45; }
.note-box span { flex: 1; }
.privacy-card { margin-bottom: 14px; background: var(--yellow); }
.privacy-card p { margin: 0; }
.button { border: 0; border-radius: 17px; min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 800; }
.button--primary { background: var(--pink); color: #fff; box-shadow: 0 8px 22px rgba(232,95,130,.24); }
.button--secondary { background: var(--green-soft); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--danger { background: #fde6ec; color: #9e2945; }
.button--full { width: 100%; margin-top: 16px; }
.timeline { display: grid; gap: 12px; }
.timeline__item { display: grid; grid-template-columns: 43px 1fr; gap: 12px; padding: 16px; border-radius: 20px; background: #fffdf9; border: 1px solid #f0e5de; }
.timeline__number { width: 43px; height: 43px; border-radius: 15px; display: grid; place-items: center; font-weight: 900; background: var(--green-soft); }
.timeline__item strong { font-size: 16px; }
.timeline__item p { margin: 5px 0 0; font-size: 14px; line-height: 1.42; color: #345f56; }
.form-card { display: grid; gap: 14px; padding: 18px; background: #fffdfa; border-radius: 24px; border: 1px solid #eee3dc; }
.form-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1px solid #dfd5cf; background: #fff; border-radius: 14px; color: var(--ink); padding: 12px 13px; outline: 0; }
.form-card textarea { resize: vertical; min-height: 130px; }
.switch-row { grid-template-columns: 1fr auto !important; align-items: center; gap: 15px !important; }
.switch-row span { display: flex; flex-direction: column; }
.switch-row small { font-weight: 500; color: #6e7773; margin-top: 3px; }
.switch-row input[type="checkbox"] { appearance: none; width: 48px; height: 28px; border: 0; border-radius: 999px; background: #d9d7d2; padding: 0; position: relative; transition: .2s ease; }
.switch-row input[type="checkbox"]::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: white; left: 3px; top: 3px; box-shadow: 0 2px 7px rgba(0,0,0,.15); transition: .2s ease; }
.switch-row input[type="checkbox"]:checked { background: var(--green); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(20px); }
.success-message { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 12px; border-radius: 15px; background: var(--green-soft); font-size: 13px; font-weight: 800; }
.support-list { display: grid; gap: 12px; }
.support-card { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 13px; padding: 16px; border-radius: 22px; background: #fffdfa; border: 1px solid #eee3dc; }
.support-card__icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--green-soft); }
.support-card strong { font-size: 16px; }
.support-card p { margin: 5px 0 0; font-size: 13px; line-height: 1.35; color: #3f665c; }
.support-hero { padding: 24px; border-radius: 28px; text-align: center; background: linear-gradient(145deg, #fbe1e5, #edf5e4); }
.support-hero h2 { font-size: 22px; line-height: 1.12; margin: 8px 0; }
.support-hero p { margin: 0; font-size: 14px; line-height: 1.45; }
.action-stack { display: grid; gap: 10px; margin-top: 16px; }
.action-stack button, .mini-list button { width: 100%; display: grid; grid-template-columns: 35px 1fr 22px; gap: 10px; align-items: center; text-align: left; border: 0; border-radius: 18px; padding: 14px; background: #fffdfa; border: 1px solid #eee3dc; cursor: pointer; }
.action-stack span { display: flex; flex-direction: column; gap: 2px; }
.action-stack small { color: #6f7772; }
.section-title { margin: 24px 2px 10px; font-size: 17px; }
.mini-list { display: grid; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stats-grid div { padding: 18px; border-radius: 20px; background: var(--green-soft); display: flex; flex-direction: column; }
.stats-grid strong { font-size: 28px; }
.stats-grid span { font-size: 12px; }
.empty-state { min-height: 180px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; color: #5a6b66; }
.onboarding { display: flex; flex-direction: column; justify-content: space-between; padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); }
.onboarding__top { display: flex; justify-content: center; }
.onboarding__card { margin-top: 24px; padding: 32px 25px; border-radius: 34px; text-align: center; }
.onboarding__icon { min-height: 110px; display: grid; place-items: center; }
.eyebrow { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; margin-bottom: 8px; color: #5d6d68; }
.onboarding h1 { margin: 0; font-size: 31px; line-height: 1.04; letter-spacing: -.03em; }
.onboarding p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: #3e6259; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 24px 0 8px; }
.dots span { width: 8px; height: 8px; border-radius: 99px; background: #ded6d1; transition: .2s ease; }
.dots span.is-active { width: 28px; background: var(--pink); }
.onboarding__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.onboarding__actions .button--full { grid-column: 1 / -1; margin-top: 0; }
@media (min-width: 620px) {
  .page { max-width: 760px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
  .onboarding { max-width: 760px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
  .bottom-nav { padding-left: max(12px, calc((100vw - 760px) / 2)); padding-right: max(12px, calc((100vw - 760px) / 2)); }
}
@media (max-width: 370px) {
  .page { padding-left: 13px; padding-right: 13px; }
  .brand__copy { font-size: 31px; }
  .dashboard-card { min-height: 158px; }
  .hero-card { grid-template-columns: .85fr 1.15fr; padding: 20px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
