*, *::before, *::after { box-sizing: border-box; }

:root{
  --bg:#F6FAF7;
  --surface:#FFFFFF;
  --green-900:#1F6B4A;
  --green-700:#2A7D57;
  --green-500:#4C9E76;
  --mint:#E3F1E9;
  --mint-soft:#F0F8F3;
  --ink:#212F29;
  --muted:#6B7A72;
  --amber:#E2A94A;
  --amber-soft:#FCF4E4;
  --danger-soft:#FBEDEB;
  --danger:#A85244;
  --hair:#E7EEE9;
  --shadow:0 10px 30px rgba(31,107,74,.08);
  --shadow-sm:0 3px 14px rgba(31,107,74,.07);
  --r-xl:28px;
  --r-lg:22px;
  --r-md:16px;
  --r-sm:12px;
}

html, body{ height:100%; margin:0; }

body{
  background:#E8F0EB;
  color:var(--ink);
  font-family:'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button, input{ font-family:inherit; }
button{ -webkit-user-select:none; user-select:none; -webkit-tap-highlight-color:transparent; }
:focus-visible{ outline:3px solid rgba(76,158,118,.5); outline-offset:2px; border-radius:10px; }

.app{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100dvh;
  max-width:560px;
  margin:0 auto;
  background:var(--bg);
  overflow:hidden;
}
@media (min-width:600px){
  .app{ box-shadow:0 0 70px rgba(31,107,74,.12); }
}

.main{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:16px;
}

/* ---------- views ---------- */
.view{
  padding:20px 20px 12px;
  animation:viewIn .3s ease-out both;
}
.view[hidden]{ display:none !important; }
@keyframes viewIn{
  from{ opacity:0; transform:translateY(8px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding:22px 20px;
  border-radius:var(--r-xl);
  background:linear-gradient(158deg,#E9F6EF 0%,#F6FBF8 52%,#FFFFFF 100%);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-copy{ flex:1 1 auto; min-width:0; }
.hero-date{
  margin:0 0 2px;
  font-size:12.5px;
  font-weight:500;
  color:var(--green-500);
  letter-spacing:0;
}
.hero-greet{
  margin:0 0 6px;
  font-size:25px;
  font-weight:700;
  line-height:1.35;
  color:var(--green-900);
  overflow-wrap:anywhere;
}
.hero-motiv{
  margin:0;
  font-size:14.5px;
  line-height:1.65;
  color:var(--muted);
}
.hero-art{
  flex:0 0 96px;
  width:96px;
  align-self:flex-end;
  margin-bottom:-6px;
}
@media (min-width:420px){
  .hero-art{ flex-basis:110px; width:110px; }
}

/* mascot */
.mascot{ width:100%; height:auto; display:block; overflow:visible; }
.mascot .m-body{
  transform-box:fill-box;
  transform-origin:50% 100%;
  animation:mBreath 4.4s ease-in-out infinite;
}
.mascot .m-leaf{
  transform-box:fill-box;
  transform-origin:0% 100%;
  animation:mSway 3.6s ease-in-out infinite;
}
.mascot--celebrate{ animation:mHop 1.15s ease-in-out infinite; }
.mascot--celebrate .m-leaf{ animation:mSwayBig 1.15s ease-in-out infinite; }
@keyframes mBreath{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.035); } }
@keyframes mSway{ 0%,100%{ transform:rotate(-3deg); } 50%{ transform:rotate(4.5deg); } }
@keyframes mSwayBig{ 0%,100%{ transform:rotate(-9deg); } 50%{ transform:rotate(11deg); } }
@keyframes mHop{
  0%,100%{ transform:translateY(0) scale(1); }
  35%{ transform:translateY(-9px) scale(1.04); }
  60%{ transform:translateY(0) scale(.98); }
}

/* ---------- daily tip ---------- */
.daily{
  margin-top:14px;
  padding:18px 20px;
  border-radius:var(--r-lg);
  background:var(--amber-soft);
  box-shadow:var(--shadow-sm);
}
.daily-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}
.eyebrow{
  font-size:12.5px;
  font-weight:600;
  color:#A8792A;
}
.tag{
  flex:0 0 auto;
  font-size:11.5px;
  font-weight:600;
  color:var(--green-900);
  background:#FFFFFF;
  padding:3px 12px;
  border-radius:999px;
}
.daily-text{
  margin:0;
  font-size:15.5px;
  line-height:1.7;
  color:#4A3E22;
}

/* ---------- section grid ---------- */
.section-title{
  margin:26px 0 12px;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
}
.section-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.section-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  text-align:start;
  padding:16px 14px;
  min-height:124px;
  border:0;
  border-radius:20px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  cursor:pointer;
  transition:transform .16s ease, box-shadow .2s ease;
}
.section-card:active{ transform:scale(.975); }
@media (hover:hover){
  .section-card:hover{ box-shadow:var(--shadow); }
}
.section-card h3{
  margin:0;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
}
.section-card p{
  margin:0;
  font-size:12px;
  line-height:1.5;
  color:var(--muted);
}
.icon-chip{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:14px;
  background:var(--mint);
  color:var(--green-900);
}

/* ---------- generic ---------- */
.card{
  background:var(--surface);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.stack{ display:grid; gap:12px; }
.hair{ height:1px; background:var(--hair); }
.disclaimer{
  margin:24px 6px 6px;
  font-size:12.5px;
  line-height:1.8;
  color:#8A978F;
  text-align:center;
}
.view-head{ margin-bottom:18px; }
.view-head h1{
  margin:0 0 4px;
  font-size:25px;
  font-weight:700;
  color:var(--ink);
  line-height:1.35;
}
.view-head p{
  margin:0;
  font-size:14.5px;
  color:var(--muted);
}
.back-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-bottom:8px;
  padding:8px 12px 8px 4px;
  border:0;
  background:transparent;
  color:var(--green-900);
  font-size:14.5px;
  font-weight:600;
  cursor:pointer;
  border-radius:12px;
  min-height:44px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 22px;
  border:0;
  border-radius:var(--r-md);
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:transform .14s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active{ transform:scale(.97); }
.btn-primary{
  background:var(--green-900);
  color:#FFFFFF;
  box-shadow:0 8px 20px rgba(31,107,74,.22);
}
@media (hover:hover){
  .btn-primary:hover{ background:#1A5C3F; }
}
.btn-ghost{
  background:var(--mint);
  color:var(--green-900);
}
@media (hover:hover){
  .btn-ghost:hover{ background:#D8EBE0; }
}
.btn-danger{
  background:var(--danger-soft);
  color:var(--danger);
}
.btn-danger.is-confirm{
  background:var(--danger);
  color:#FFFFFF;
}
.btn-sm{
  min-height:44px;
  padding:0 16px;
  font-size:14px;
  border-radius:14px;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }

/* ---------- chips ---------- */
.chips{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 20px 14px;
  margin:0 -20px;
  scrollbar-width:none;
}
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--hair);
  background:var(--surface);
  color:var(--muted);
  font-size:13.5px;
  font-weight:500;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.chip.is-active{
  background:var(--mint);
  color:var(--green-900);
  border-color:transparent;
  font-weight:600;
}
.cat-lead{
  font-size:13.5px;
  color:var(--muted);
  padding:0 4px 2px;
}

/* ---------- tip cards ---------- */
.tip-card{
  background:var(--surface);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.tip-head{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:14px 16px;
  border:0;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  font-weight:600;
  text-align:start;
  cursor:pointer;
  min-height:64px;
}
.tip-head > svg{ flex:0 0 auto; color:#9DAEA5; transition:transform .25s ease; }
.tip-card.is-open .tip-head > svg{ transform:rotate(180deg); }
.tip-title{ flex:1 1 auto; line-height:1.45; }
.tip-badge{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:54px;
  padding:5px 8px;
  border-radius:12px;
  background:var(--mint);
  color:var(--green-900);
  line-height:1.15;
}
.tip-badge b{ font-size:14px; font-weight:700; }
.tip-badge span{ font-size:9.5px; color:var(--green-700); }
.tip-body{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .3s ease;
}
.tip-card.is-open .tip-body{ grid-template-rows:1fr; }
.tip-body > div{ overflow:hidden; }
.tip-body p{
  margin:0;
  padding:0 16px 16px;
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}

/* ---------- exercise picker ---------- */
.exercise-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:16px;
}
.ex-chip{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:14px 6px;
  min-height:104px;
  border:1.5px solid transparent;
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  cursor:pointer;
  transition:background .2s ease, border-color .2s ease;
}
.ex-chip .ex-name{ font-size:13.5px; font-weight:600; }
.ex-chip .ex-min{ font-size:11px; color:var(--muted); }
.ex-ico{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:var(--mint);
  color:var(--green-900);
  transition:background .2s ease;
}
.ex-chip.is-active{
  background:var(--mint);
  border-color:var(--green-500);
}
.ex-chip.is-active .ex-ico{ background:#FFFFFF; }
.ex-chip.is-active .ex-min{ color:var(--green-700); }

/* ---------- timer ---------- */
.timer-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:20px;
}
.ring-wrap{
  position:relative;
  width:min(216px, 58vw);
  aspect-ratio:1 / 1;
}
.ring{ display:block; width:100%; height:100%; }
.ring-bg{ fill:none; stroke:var(--hair); stroke-width:10; }
.ring-fg{
  fill:none;
  stroke:var(--green-500);
  stroke-width:10;
  stroke-linecap:round;
  transform:rotate(-90deg);
  transform-origin:50% 50%;
  transition:stroke .3s ease;
}
.ring-fg.is-done{ stroke:var(--amber); }
.ring-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
}
.ring-time{
  font-size:32px;
  font-weight:700;
  color:var(--green-900);
  font-variant-numeric:tabular-nums;
  line-height:1.2;
}
.ring-state{ font-size:12.5px; color:var(--muted); }
.dur-chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.dur{
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--hair);
  background:var(--surface);
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.dur.is-active{
  background:var(--green-900);
  color:#FFFFFF;
  border-color:var(--green-900);
}
.timer-actions{
  display:flex;
  gap:10px;
  width:100%;
}
.timer-main{ flex:1 1 auto; }
.timer-reset{
  flex:0 0 52px;
  width:52px;
  padding:0;
}

/* ---------- steps ---------- */
.steps{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}
.steps li{
  display:flex;
  gap:12px;
  padding:14px 16px;
  border-radius:var(--r-md);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  font-size:14.5px;
  line-height:1.7;
  color:#33443C;
}
.steps .num{
  flex:0 0 26px;
  width:26px;
  height:26px;
  margin-top:2px;
  border-radius:9px;
  background:var(--mint);
  color:var(--green-900);
  display:grid;
  place-items:center;
  font-size:12.5px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* ---------- flip card ---------- */
.myth-progress{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  font-size:12.5px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.progress{
  flex:1 1 auto;
  height:6px;
  border-radius:999px;
  background:var(--hair);
  overflow:hidden;
}
.progress > i{
  display:block;
  height:100%;
  border-radius:999px;
  background:var(--green-500);
  transition:width .35s ease;
}
.flip{
  position:relative;
  min-height:308px;
  perspective:1400px;
}
.flip-inner{
  position:absolute;
  inset:0;
  transform-style:preserve-3d;
  transition:transform .62s cubic-bezier(.25,.8,.3,1);
}
.flip.is-flipped .flip-inner{ transform:rotateY(180deg); }
.flip-face{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:24px 22px;
  border-radius:var(--r-lg);
  background:var(--surface);
  box-shadow:var(--shadow);
  text-align:center;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
  overflow:auto;
}
.flip-back{
  transform:rotateY(180deg);
  background:linear-gradient(165deg,#F1FAF5 0%,#FFFFFF 70%);
}
.myth-text{
  margin:0;
  font-size:19px;
  font-weight:600;
  line-height:1.6;
  color:var(--ink);
}
.myth-hint{
  margin:0;
  font-size:13px;
  color:#9DAEA5;
}
.verdict{
  display:inline-block;
  padding:6px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
}
.verdict-fact{ background:#E6F4EC; color:#17553B; }
.verdict-myth{ background:var(--danger-soft); color:var(--danger); }
.myth-answer{
  margin:0;
  font-size:15px;
  font-weight:600;
  color:var(--green-900);
}
.myth-explain{
  margin:0;
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}
.myth-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.myth-actions .btn{ flex:1 1 0; }

/* ---------- quiz ---------- */
.q-progress{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  font-size:12.5px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.q-card{ padding:20px; }
.q-text{
  margin:0 0 4px;
  font-size:17.5px;
  font-weight:600;
  line-height:1.65;
  color:var(--ink);
}
.opts{ display:grid; gap:9px; margin-top:10px; }
.opt{
  display:block;
  width:100%;
  min-height:54px;
  padding:13px 16px;
  border:1.5px solid transparent;
  border-radius:var(--r-md);
  background:var(--mint-soft);
  color:var(--ink);
  font-size:15px;
  line-height:1.5;
  text-align:start;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, color .16s ease;
}
@media (hover:hover){
  .opt:hover{ background:#EAF5EE; }
}
.opt:disabled{ cursor:default; }
.opt.is-correct{
  background:#E6F4EC;
  border-color:var(--green-500);
  color:#17553B;
  font-weight:600;
}
.opt.is-wrong{
  background:var(--danger-soft);
  border-color:#DDA096;
  color:var(--danger);
}
.feedback{
  margin-top:14px;
  padding:13px 16px;
  border-radius:var(--r-md);
  font-size:14px;
  line-height:1.7;
}
.feedback strong{ display:block; margin-bottom:2px; font-size:14.5px; }
.feedback.ok{ background:#E6F4EC; color:#17553B; }
.feedback.no{ background:var(--danger-soft); color:var(--danger); }
.q-actions{ margin-top:14px; display:flex; }
.q-actions .btn{ flex:1 1 auto; }

/* ---------- result ---------- */
.result-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:26px 22px 22px;
  text-align:center;
}
.result-art{ width:96px; margin-bottom:2px; }
.result-eyebrow{ margin:0; font-size:12.5px; font-weight:600; color:var(--green-500); }
.result-score{
  margin:0;
  font-size:16px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.result-score span{
  font-size:42px;
  font-weight:700;
  color:var(--green-900);
  line-height:1.1;
}
.result-msg{
  margin:6px 0 12px;
  font-size:14.5px;
  line-height:1.7;
  color:var(--muted);
  max-width:32ch;
}
.result-card .btn{ width:100%; }
.result-best{
  margin:0;
  font-size:12.5px;
  color:#9DAEA5;
}

/* ---------- food ---------- */
.plate-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:22px 20px 18px;
}
.plate-wrap{ width:min(180px, 50vw); }
.plate-ring{ display:block; width:100%; height:auto; }
.plate-legend{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
  width:100%;
}
.plate-legend li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13.5px;
  color:var(--muted);
}
.plate-legend i{
  flex:0 0 12px;
  width:12px;
  height:12px;
  border-radius:4px;
}
.plate-legend b{ color:var(--ink); font-weight:600; }
.plate-note{
  margin:2px 0 0;
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
  text-align:center;
  border-top:1px solid var(--hair);
  padding-top:12px;
  width:100%;
}
.nutrient-grid{ display:grid; gap:12px; }
.nut-card{
  background:var(--surface);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  padding:16px;
}
.nut-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.nut-card h3{
  margin:0;
  font-size:15.5px;
  font-weight:600;
}
.nut-why{
  margin:0 0 8px;
  font-size:13.5px;
  line-height:1.7;
  color:var(--muted);
}
.nut-ex{
  margin:0;
  font-size:12.5px;
  line-height:1.7;
  color:var(--green-900);
  background:var(--mint-soft);
  border-radius:12px;
  padding:8px 12px;
}
.nut-ex span{ font-weight:600; }

/* ---------- organs ---------- */
.organ-card{
  background:var(--surface);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.organ-head{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:14px 16px;
  border:0;
  background:transparent;
  color:var(--ink);
  text-align:start;
  cursor:pointer;
  min-height:68px;
}
.organ-head > svg{ flex:0 0 auto; color:#9DAEA5; transition:transform .25s ease; }
.organ-card.is-open .organ-head > svg{ transform:rotate(180deg); }
.organ-title{ flex:1 1 auto; display:flex; flex-direction:column; min-width:0; }
.organ-title b{ font-size:15px; font-weight:600; }
.organ-title i{ font-style:normal; font-size:12.5px; color:var(--muted); line-height:1.55; }
.organ-body{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .3s ease;
}
.organ-card.is-open .organ-body{ grid-template-rows:1fr; }
.organ-body > div{ overflow:hidden; }
.organ-fact{
  margin:0;
  padding:0 16px 16px;
  font-size:13.5px;
  line-height:1.75;
  color:var(--muted);
}
.organ-fact span{ color:var(--green-900); font-weight:600; }

/* ---------- account ---------- */
.profile-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  margin-bottom:14px;
}
.avatar{
  flex:0 0 52px;
  width:52px;
  height:52px;
  border-radius:18px;
  background:var(--mint);
  color:var(--green-900);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:700;
}
.profile-fields{ flex:1 1 auto; min-width:0; }
.field-label{
  display:block;
  font-size:11.5px;
  color:var(--muted);
  margin-bottom:2px;
}
.field{
  width:100%;
  min-height:40px;
  padding:6px 0;
  border:0;
  border-bottom:1px solid var(--hair);
  background:transparent;
  color:var(--ink);
  font-size:16px;
  font-weight:500;
  border-radius:0;
}
.field::placeholder{ color:#B3C0B9; font-weight:400; }
.field:focus{ outline:none; border-bottom-color:var(--green-500); }

.stats-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px;
}
.stat{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:14px 16px;
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow-sm);
}
.stat-num{
  font-size:24px;
  font-weight:700;
  color:var(--green-900);
  line-height:1.2;
  font-variant-numeric:tabular-nums;
}
.stat-num small{ font-size:13px; font-weight:500; color:#9DAEA5; }
.stat-label{ font-size:12.5px; color:var(--muted); }

.list-card{ padding:4px 16px; }
.list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.list-copy{ min-width:0; }
.list-title{ margin:0; font-size:15px; font-weight:600; }
.list-sub{ margin:0; font-size:12.5px; color:var(--muted); line-height:1.5; }

.switch{
  flex:0 0 auto;
  position:relative;
  width:54px;
  height:32px;
  border:0;
  border-radius:999px;
  background:#DCE7E0;
  cursor:pointer;
  transition:background .22s ease;
}
.switch span{
  position:absolute;
  top:4px;
  inset-inline-start:4px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#FFFFFF;
  box-shadow:0 2px 6px rgba(31,107,74,.18);
  transition:inset-inline-start .22s ease;
}
.switch.is-on{ background:var(--green-500); }
.switch.is-on span{ inset-inline-start:26px; }

/* ---------- tabbar ---------- */
.tabbar{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:2px;
  padding:7px 8px 8px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--hair);
}
.tab{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:58px;
  padding:6px 2px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:#8A978F;
  font-size:10.5px;
  font-weight:500;
  line-height:1.3;
  text-align:center;
  cursor:pointer;
  transition:color .18s ease, background .18s ease;
}
.tab svg{ width:22px; height:22px; }
.tab.is-active{
  color:var(--green-900);
  background:var(--mint);
  font-weight:600;
}
.tab span{ overflow-wrap:anywhere; }

/* ---------- toast ---------- */
.toast{
  position:fixed;
  bottom:96px;
  left:50%;
  transform:translate(-50%, 12px);
  z-index:60;
  max-width:min(320px, 86vw);
  padding:11px 18px;
  border-radius:999px;
  background:rgba(31,107,74,.96);
  color:#FFFFFF;
  font-size:13.5px;
  font-weight:500;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease, transform .24s ease;
}
.toast.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
}

/* ---------- responsive ---------- */
@media (max-width:359px){
  .view{ padding:16px 14px 12px; }
  .chips{ padding-inline:14px; margin-inline:-14px; }
  .hero{ padding:18px 16px; }
  .hero-greet{ font-size:22px; }
  .section-card{ padding:14px 12px; min-height:118px; }
  .tab{ font-size:9.5px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .flip-inner{ transition:none !important; }
}