:root {
  --fit-cream: #fffdf8;
  --fit-lavender: #e7e2f5;
  --fit-sage: #e4f2ea;
  --fit-sky: #e6f0fb;
  --fit-indigo: #4f5fc6;
  --fit-ink: #253057;
  --fit-muted: #6e7894;
  --fit-line: #dce4f4;
  --fit-radius: 22px;
  --tracker-blue: var(--fit-indigo);
  --tracker-blue-deep: #3c4aa9;
  --tracker-blue-soft: #eef1ff;
  --tracker-teal: #30a99d;
  --tracker-ink: var(--fit-ink);
  --tracker-muted: var(--fit-muted);
  --tracker-surface: #f8faff;
  --tracker-line: var(--fit-line);
  --tracker-radius: var(--fit-radius);
  --ink: #102c38;
  --ink-2: #244651;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --coral: #ef795e;
  --blue: #5d98c6;
  --green: #5c9679;
  --amber: #d9a145;
  --line: rgba(16, 44, 56, 0.13);
  --muted: #6f7d7f;
  --shadow: 0 24px 60px rgba(16, 44, 56, 0.1);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--fit-ink); background: var(--fit-cream); font-family: "Aptos", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { color: var(--white); background: var(--ink); min-height: 650px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 680px; height: 680px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -200px; top: 40px; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.nav { height: 90px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--coral); border-radius: 50%; letter-spacing: 0; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.text-link { font-size: 14px; color: rgba(255,255,255,.78); }
.button { display: inline-flex; min-height: 44px; padding: 0 20px; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 14px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--ink); }
.button-primary { background: var(--coral); color: var(--ink); padding-inline: 25px; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; padding: 76px 0 95px; }
.eyebrow { margin: 0 0 14px; color: #91c5cb; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: #4f7d82; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 6vw, 78px); line-height: 1.03; letter-spacing: -.045em; margin-bottom: 24px; }
h1 span { color: var(--coral); }
.hero-lede { max-width: 610px; color: rgba(255,255,255,.69); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.save-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.58); }
.save-note i { width: 7px; height: 7px; background: #7fc39c; border-radius: 50%; box-shadow: 0 0 0 5px rgba(127,195,156,.12); }

.profile-card { background: var(--white); color: var(--ink); border-radius: 28px; padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.28); transform: rotate(1.5deg); }
.profile-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.label, .profile-stats span, .target-line span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-top strong { display: block; font-size: 48px; line-height: 1; margin-top: 8px; letter-spacing: -.04em; }
.profile-top strong small { font-size: 15px; letter-spacing: 0; }
.month-badge { width: 68px; height: 68px; display: grid; place-content: center; background: var(--ink); color: var(--white); border-radius: 50%; font-size: 24px; font-weight: 800; text-align: center; }
.month-badge span { display: block; font-size: 10px; letter-spacing: .2em; font-weight: 500; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px 0; gap: 10px; }
.profile-stats div { border-right: 1px solid var(--line); }
.profile-stats div:last-child { border: 0; }
.profile-stats b { display: block; margin-top: 7px; font-size: 17px; }
.target-line { background: #e9eee9; border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.target-line b { color: var(--green); }

main section { padding-top: 90px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-note { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.week-switch { display: flex; gap: 7px; padding: 5px; background: rgba(16,44,56,.07); border-radius: 999px; }
.week-button { border: 0; background: transparent; color: var(--muted); width: 48px; height: 38px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.week-button.active { background: var(--ink); color: var(--white); }

.overview-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.progress-card, .metric-card { min-height: 190px; border-radius: 22px; padding: 28px; }
.dark-card { color: var(--white); background: var(--ink); display: flex; align-items: center; gap: 26px; }
.progress-ring { --progress: 0deg; width: 118px; height: 118px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: conic-gradient(var(--coral) var(--progress), rgba(255,255,255,.1) 0); }
.progress-ring::before { content: ""; width: 88px; height: 88px; border-radius: 50%; position: absolute; background: var(--ink); }
.progress-ring div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring strong { font-size: 24px; }
.progress-ring span, .card-kicker { font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.6); }
.progress-card h3 { margin: 8px 0 5px; font-size: 23px; }
.progress-card p { margin: 0; color: rgba(255,255,255,.55); font-size: 12px; }
.metric-card { background: var(--white); box-shadow: 0 14px 50px rgba(16,44,56,.05); display: flex; align-items: flex-start; gap: 18px; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #e9eee9; color: var(--green); border-radius: 13px; font-size: 21px; font-weight: 800; }
.metric-card div > span, .metric-card small { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 14px 0 8px; font-size: 23px; letter-spacing: -.025em; }

.workout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.workout-card { background: var(--white); border: 1px solid rgba(16,44,56,.08); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px rgba(16,44,56,.05); }
.workout-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 25px 27px; color: var(--white); }
.workout-head.coral { background: #c95f4b; }
.workout-head.blue { background: #386f91; }
.workout-head.green { background: #3f765e; }
.workout-head.amber { background: #b77a27; }
.workout-head div > span { font-size: 10px; font-weight: 800; letter-spacing: .15em; opacity: .7; }
.workout-head h3 { font-size: 28px; margin: 4px 0 2px; letter-spacing: -.025em; }
.workout-head p { margin: 0; opacity: .75; font-size: 12px; }
.session-check { cursor: pointer; }
.session-check input { position: absolute; opacity: 0; }
.session-check span { display: inline-flex; min-width: 65px; height: 34px; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; font-weight: 700; }
.session-check input:checked + span { color: var(--ink); background: var(--white); border-color: var(--white); }
.exercise-list { list-style: none; padding: 9px 27px 18px; margin: 0; }
.exercise-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.exercise-list li:last-child { border: 0; }
.exercise-list b { font-size: 14px; }
.exercise-list span { text-align: right; color: var(--muted); font-size: 12px; }
.exercise-list .cardio-row { color: #286c6d; }
.coach-note { margin: 0 27px 26px; padding: 14px 16px; border-radius: 13px; background: #eaf1f3; font-size: 11px; display: grid; gap: 4px; }
.coach-note span { color: #536b70; line-height: 1.6; }
.cardio-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.cardio-specs div { background: var(--white); padding: 32px 25px; }
.cardio-specs span { color: var(--muted); font-size: 11px; display: block; }
.cardio-specs strong { display: block; font-size: 33px; margin-top: 5px; }
.cardio-specs small { font-size: 12px; }
.safety-strip { margin: 22px 26px 26px; padding-left: 13px; border-left: 3px solid var(--amber); font-size: 12px; color: var(--muted); line-height: 1.7; }

.nutrition { background: var(--ink); color: var(--white); padding-bottom: 95px; margin-top: 100px; }
.nutrition-heading { max-width: 700px; }
.nutrition-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.plate-card { display: flex; align-items: center; gap: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 24px; padding: 28px; }
.plate { width: 170px; height: 170px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; transform: rotate(-8deg); border: 7px solid rgba(255,255,255,.12); }
.plate span { display: grid; place-content: center; text-align: center; font-size: 28px; font-weight: 800; }
.plate small { font-size: 10px; letter-spacing: .08em; }
.plate .veg { grid-row: 1 / 3; background: var(--green); }
.plate .protein { background: var(--coral); }
.plate .carb { background: var(--amber); }
.plate-card h3 { margin: 8px 0 7px; font-size: 21px; }
.plate-card p { margin: 0; color: rgba(255,255,255,.56); font-size: 12px; }
.nutrition-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nutrition-rules article { display: flex; gap: 14px; padding: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.nutrition-rules article > span { color: var(--coral); font-weight: 800; font-size: 12px; }
.nutrition-rules b { font-size: 14px; }
.nutrition-rules p { margin: 7px 0 0; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.6; }

.daily { padding-bottom: 95px; }
.habit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.habit-grid label { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; cursor: pointer; transition: transform .2s, border .2s; }
.habit-grid label:hover { transform: translateY(-3px); }
.habit-grid input { position: absolute; opacity: 0; }
.check-ui { width: 24px; height: 24px; display: block; border: 1px solid #b9c5c4; border-radius: 50%; margin-bottom: 24px; }
.habit-grid input:checked + .check-ui { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 5px var(--white); }
.habit-grid b, .habit-grid small { display: block; }
.habit-grid small { color: var(--muted); margin-top: 4px; }

footer { background: #0b222b; color: var(--white); padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
footer b { letter-spacing: .12em; font-size: 12px; }
footer p { margin: 8px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }
.footer-alert { text-align: right; max-width: 500px; }
.footer-alert span { color: var(--coral); font-size: 11px; font-weight: 800; }

@media (max-width: 900px) {
  .hero-grid, .nutrition-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; padding-top: 35px; }
  .profile-card { transform: none; max-width: 560px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .progress-card { grid-column: 1 / -1; }
  .workout-grid { grid-template-columns: 1fr; }
  .habit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 26px, 1180px); }
  .nav { height: 76px; }
  .text-link { display: none; }
  .hero { min-height: auto; }
  .hero-grid { padding-bottom: 65px; }
  h1 { font-size: 46px; }
  .hero-actions, .split-heading, .footer-grid { align-items: flex-start; flex-direction: column; }
  .save-note { margin-left: 5px; }
  .profile-stats { gap: 8px; }
  .profile-stats b { font-size: 14px; }
  main section { padding-top: 68px; }
  .overview-grid, .habit-grid, .nutrition-rules { grid-template-columns: 1fr; }
  .progress-card { grid-column: auto; }
  .dark-card { align-items: flex-start; }
  .workout-head, .exercise-list { padding-left: 20px; padding-right: 20px; }
  .exercise-list li { flex-direction: column; gap: 4px; }
  .exercise-list span { text-align: left; }
  .plate-card { flex-direction: column; align-items: flex-start; }
  .cardio-specs div { padding: 24px 16px; }
  .cardio-specs strong { font-size: 26px; }
  .footer-alert { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Three-page application */
.sub-hero { color: var(--white); background: var(--ink); }
.training-hero { background: #173b47; }
.diet-hero { background: #234a3c; }
.page-nav { display: flex; gap: 8px; padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; }
.page-nav a { padding: 8px 17px; border-radius: 999px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; }
.page-nav a.active { background: var(--white); color: var(--ink); }
.page-intro { min-height: 270px; display: flex; justify-content: space-between; align-items: flex-end; padding: 55px 0 52px; }
.page-intro h1 { margin: 0 0 12px; font-size: clamp(48px, 7vw, 80px); }
.page-intro p:last-child { max-width: 680px; color: rgba(255,255,255,.65); }
.page-number { font-size: 76px; line-height: .9; font-weight: 800; color: rgba(255,255,255,.16); }
.page-number span { font-size: 15px; }
.page-section { padding-top: 55px; padding-bottom: 90px; }
.profile-strip, .diet-summary { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 75px; }
.profile-strip div, .diet-summary div { padding: 24px 27px; border-right: 1px solid var(--line); }
.profile-strip div:last-child, .diet-summary div:last-child { border: 0; }
.profile-strip span, .diet-summary span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.profile-strip strong, .diet-summary strong { display: block; margin-top: 7px; font-size: 20px; }
.target-heading { margin-top: 0; }
.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goal-card { min-height: 230px; padding: 25px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.goal-card.featured { color: var(--white); background: var(--ink); }
.goal-card > span { font-size: 11px; color: var(--muted); font-weight: 800; }
.goal-card.featured > span, .goal-card.featured p { color: rgba(255,255,255,.58); }
.goal-card strong { display: block; margin: 35px 0 18px; font-size: 30px; letter-spacing: -.04em; }
.goal-card small { font-size: 13px; }
.goal-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.target-progress-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-top: 20px; }
.weekly-log { background: var(--white); padding: 28px; border-radius: 22px; }
.weekly-log h3 { font-size: 20px; }
.input-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.input-grid label, .log-inputs label { color: var(--muted); font-size: 10px; font-weight: 700; }
.input-grid input, .log-inputs input { display: block; width: 100%; border: 1px solid var(--line); background: #fbfaf6; color: var(--ink); border-radius: 10px; padding: 11px 12px; margin-top: 5px; outline: none; }
.input-grid input:focus, .log-inputs input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,115,150,.1); }
.next-page { color: var(--white); font-weight: 800; font-size: 13px; }
.next-page.back { color: rgba(255,255,255,.55); }

.training-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mini-progress { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; }
.mini-progress i { display: block; width: 150px; height: 7px; background: rgba(16,44,56,.1); border-radius: 99px; overflow: hidden; }
.mini-progress b { display: block; width: 0; height: 100%; background: var(--teal); transition: width .25s; }
.training-log { display: grid; gap: 22px; }
.log-card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: 0 16px 45px rgba(16,44,56,.06); }
.log-card-head { color: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
.log-card-head.coral { background: #c95f4b; }.log-card-head.blue { background: #386f91; }.log-card-head.green { background: #3f765e; }.log-card-head.amber { background: #b77a27; }
.log-card-head span { font-size: 10px; opacity: .65; font-weight: 800; }
.log-card-head h2 { font-size: 24px; margin: 3px 0 0; }
.log-row { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; padding: 19px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.exercise-name b, .exercise-name span { display: block; }
.exercise-name b { font-size: 14px; }
.exercise-name span { color: var(--muted); font-size: 11px; margin-top: 5px; }
.log-inputs { display: grid; grid-template-columns: .7fr 1fr 1.2fr .7fr .9fr 1.5fr; gap: 10px; }
.onboarding-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(10, 31, 40, .76); backdrop-filter: blur(10px); }
.onboarding-card { position: relative; width: min(100%, 500px); padding: 42px; border-radius: 26px; color: var(--ink); background: #fffdf8; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.onboarding-skip { position: absolute; top: 20px; right: 22px; border: 0; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.onboarding-orbit { display: grid; place-content: center; width: 78px; height: 78px; margin-bottom: 32px; border: 1px solid #c7d9df; border-radius: 50%; color: var(--blue); background: #eef7f9; text-align: center; }
.onboarding-orbit b { display: block; font-size: 26px; line-height: 24px; }.onboarding-orbit span { font-size: 11px; }
.onboarding-tag { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }.onboarding-card h2 { margin: 0; font-size: clamp(27px, 5vw, 38px); line-height: 1.13; }.onboarding-text { min-height: 52px; margin: 17px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.onboarding-dots { display: flex; gap: 7px; margin-bottom: 28px; }.onboarding-dots i { width: 7px; height: 7px; border-radius: 99px; background: #d1dadd; }.onboarding-dots i.active { width: 26px; background: var(--blue); }
.onboarding-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }.onboarding-back { border: 0; color: var(--blue); background: transparent; font-weight: 800; cursor: pointer; }.onboarding-back:disabled { opacity: .3; cursor: default; }
.log-note { margin: 0; padding: 14px 24px; color: #75622e; background: var(--pale-amber, #f7eedc); font-size: 12px; }
.safety-banner { display: flex; gap: 20px; margin-top: 24px; padding: 18px 22px; color: #8c3829; background: var(--pale-coral, #f8e8e3); border-radius: 14px; font-size: 12px; }
.amber-banner { color: #725723; background: #f7eedc; }

.diet-summary { margin-bottom: 65px; }
.meal-timeline { position: relative; display: grid; gap: 12px; margin-bottom: 55px; }
.meal-timeline::before { content: ""; position: absolute; left: 84px; top: 20px; bottom: 20px; width: 1px; background: var(--line); }
.meal-timeline article { display: grid; grid-template-columns: 85px 1fr; gap: 28px; align-items: start; }
.meal-timeline time { position: relative; z-index: 1; width: 70px; padding: 8px 5px; text-align: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.meal-timeline article > div { padding: 21px 24px; background: var(--white); border-radius: 17px; border: 1px solid var(--line); }
.meal-timeline article.highlight > div { border-left: 5px solid var(--coral); }
.meal-timeline h3 { margin-bottom: 8px; font-size: 15px; }
.meal-timeline p { margin-bottom: 6px; font-weight: 800; }
.meal-timeline span { color: var(--muted); font-size: 11px; }
.diet-rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.diet-rule-grid article { min-height: 180px; padding: 24px; background: var(--white); border-radius: 18px; }
.diet-rule-grid span { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.diet-rule-grid h3 { margin: 24px 0 10px; font-size: 17px; }
.diet-rule-grid p { color: var(--muted); font-size: 11px; }
.trend-panel { margin-top: 22px; padding: 26px; background: var(--white); border-radius: 22px; box-shadow: 0 16px 45px rgba(16,44,56,.06); }
.performance-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }.performance-grid article { min-height: 102px; padding: 18px; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }.performance-grid span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }.performance-grid strong { display: block; margin-top: 18px; font-size: 18px; }
.trend-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.trend-head h3 { margin: 0; font-size: 22px; }.trend-head > span { color: var(--muted); font-size: 11px; }
#trendCanvas { width: 100%; height: 300px; display: block; }.data-actions { display: flex; gap: 12px; margin-top: 22px; }.data-button { color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.diet-log-section { margin-top: 70px; }.diet-log-hint { margin: -12px 0 16px; color: var(--muted); font-size: 12px; }
.diet-log { border: 1px solid var(--line); border-radius: 18px; overflow: auto; background: var(--white); }.diet-log-header, .diet-log-row { min-width: 960px; display: grid; grid-template-columns: 70px 125px 110px 100px 115px 115px 90px 1fr; gap: 8px; align-items: center; padding: 12px 15px; }.diet-log-header { color: var(--white); background: var(--ink); font-size: 11px; font-weight: 800; }.diet-log-row { border-bottom: 1px solid var(--line); }.diet-log-row:last-child { border-bottom: 0; }.diet-log-row b { font-size: 12px; }.diet-log-row input, .diet-log-row select { width: 100%; min-height: 36px; border: 1px solid var(--line); background: #fbfaf6; border-radius: 8px; padding: 7px; color: var(--ink); }
.exercise-trend-section { margin-top: 64px; }.exercise-trend { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }.exercise-trend-head, .exercise-trend-row { min-width: 750px; display: grid; grid-template-columns: 2.4fr repeat(4, 1fr); gap: 8px; padding: 13px 18px; align-items: center; }.exercise-trend-head { color: var(--white); background: var(--ink); font-size: 11px; font-weight: 800; }.exercise-trend-row { border-bottom: 1px solid var(--line); font-size: 12px; }.exercise-trend-row:last-child { border-bottom: 0; }.exercise-trend-row span { color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .desktop-download { display: none; }
  .profile-strip, .diet-summary, .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .performance-grid { grid-template-columns: repeat(3, 1fr); }
  .target-progress-panel { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; }
  .diet-rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sub-hero .nav { flex-wrap: wrap; height: auto; padding: 18px 0; gap: 15px; }
  .page-nav { order: 3; width: 100%; justify-content: center; }
  .page-intro { min-height: 230px; padding-top: 30px; }
  .page-number { display: none; }
  .profile-strip, .diet-summary, .goal-grid { grid-template-columns: 1fr 1fr; }
  .performance-grid { grid-template-columns: 1fr 1fr; }
  .profile-strip div, .diet-summary div { padding: 18px; }
  .goal-card { min-height: 205px; }
  .training-toolbar { align-items: flex-start; flex-direction: column; gap: 17px; }
  .log-card-head { align-items: flex-start; }
  .log-inputs { grid-template-columns: 1fr 1fr; }
  .onboarding-card { padding: 34px 26px 28px; }
  .meal-timeline::before { display: none; }
  .meal-timeline article { grid-template-columns: 1fr; gap: 7px; }
  .meal-timeline time { background: var(--ink); color: var(--white); }
  .safety-banner { flex-direction: column; gap: 4px; }
  .trend-head { align-items: flex-start; flex-direction: column; gap: 8px; }.data-actions { flex-direction: column; }.data-actions .button { width: 100%; }
}
/* Fit in 30 Days V1 — mobile-first daily journey */
.fitin-header { background: #f3f7f4; border-bottom: 1px solid rgba(16,44,56,.09); }
.fitin-header .nav { min-height: 76px; }
.fitin-nav { gap: 18px; }
.fitin-nav a { font-size: .86rem; }
.fitin-home { padding-top: clamp(30px, 5vw, 64px); padding-bottom: 70px; }
.today-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; padding: clamp(28px, 5vw, 62px); min-height: 280px; border-radius: 28px; color: #f5fbf8; background: #102c38; overflow: hidden; position: relative; }
.today-hero::after { content: ""; position: absolute; width: 270px; height: 270px; border: 44px solid #dbf0a5; border-radius: 50%; right: -115px; top: -112px; opacity: .92; }
.today-copy { position: relative; z-index: 1; max-width: 720px; }
.today-hero .eyebrow { color: #b9dfa6; }
.today-hero h1 { margin: 12px 0; font-size: clamp(2.2rem, 5vw, 4.9rem); max-width: 760px; letter-spacing: -.065em; line-height: .98; }
.today-hero p:not(.eyebrow) { margin: 0; max-width: 510px; color: rgba(245,251,248,.75); font-size: 1.03rem; }
.day-badge { z-index: 1; display: flex; align-items: baseline; gap: 5px; color: #dbf0a5; white-space: nowrap; }
.day-badge strong { font-size: clamp(3.4rem, 6vw, 5.7rem); line-height: .8; letter-spacing: -.08em; }
.day-badge span { font-weight: 700; opacity: .68; }
.today-grid { margin-top: 22px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.today-plan, .daily-checkin, .reflection-card { border: 1px solid rgba(16,44,56,.12); border-radius: 22px; background: #fff; box-shadow: 0 15px 40px rgba(16,44,56,.06); }
.today-plan, .daily-checkin { padding: clamp(24px, 4vw, 36px); }
.card-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.card-kicker { font-size: .68rem; letter-spacing: .13em; font-weight: 800; color: #587278; }
.plan-status, .saved-note { border-radius: 999px; padding: 5px 10px; background: #eff6f1; color: #336143; font-size: .76rem; font-weight: 800; }
.today-plan h2, .daily-checkin h2 { margin: 22px 0 8px; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.04; letter-spacing: -.045em; }
.today-plan p { margin: 0; color: #5d7378; }
.move-picker, .energy-options, .reflection-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.move-picker { margin-top: 24px; }
.move-picker button, .energy-options button, .reflection-actions button { border: 1px solid rgba(16,44,56,.15); color: #23434d; background: #f8faf9; font: inherit; font-size: .86rem; font-weight: 750; cursor: pointer; padding: 10px 13px; border-radius: 10px; transition: transform .16s ease, background .16s ease, color .16s ease; }
.move-picker button:active, .energy-options button:active, .reflection-actions button:active { transform: scale(.98); }
.move-picker button.active, .energy-options button.active, .reflection-actions button.active { background: #102c38; border-color: #102c38; color: #fff; }
.today-plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button-quiet { background: #e7f3c9; color: #24452f; border: 1px solid #d0e7a0; }
.water-stepper { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(16,44,56,.1); display: flex; align-items: center; justify-content: space-between; }
.water-stepper span { display: block; color: #5d7378; font-size: .84rem; }.water-stepper strong { display: block; font-size: 1.7rem; letter-spacing: -.05em; color: #102c38; }
.stepper-buttons { display: flex; gap: 8px; }.stepper-buttons button { width: 42px; height: 42px; border: 1px solid rgba(16,44,56,.15); background: #fff; color: #102c38; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.move-toggle { display: flex; align-items: center; gap: 10px; margin-top: 21px; color: #26454e; font-weight: 700; cursor: pointer; }.move-toggle input { width: 18px; height: 18px; accent-color: #102c38; }
.reflection-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; margin-top: 22px; padding: clamp(24px, 4vw, 35px); background: #dff0f5; border-color: #c8e1e9; }.reflection-card h2 { margin: 5px 0; font-size: clamp(1.35rem, 3vw, 2.15rem); letter-spacing: -.045em; }.reflection-card p:not(.eyebrow) { margin: 0; color: #52727c; }.reflection-actions { justify-content: flex-end; }.reflection-actions button { background: rgba(255,255,255,.58); }
.home-progress { margin-top: 52px; }.text-link { align-self: end; color: #183e4b; font-weight: 800; text-decoration: none; }.home-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(16,44,56,.16); border-bottom: 1px solid rgba(16,44,56,.16); }.home-stat-grid article { min-height: 136px; padding: 23px 20px; border-right: 1px solid rgba(16,44,56,.16); }.home-stat-grid article:first-child { padding-left: 0; }.home-stat-grid article:last-child { border-right: 0; }.home-stat-grid span { display: block; color: #587278; font-size: .8rem; }.home-stat-grid strong { margin-top: 14px; display: inline-block; color: #102c38; font-size: 2.3rem; letter-spacing: -.07em; }.home-stat-grid small { color: #587278; font-weight: 700; }.home-stat-grid .home-encouragement strong { max-width: 230px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.035em; }
.fitin-onboarding { text-align: left; }.fitin-onboarding label { display: grid; gap: 7px; margin-top: 17px; color: #35545d; font-size: .84rem; font-weight: 800; }.fitin-onboarding select { appearance: none; padding: 12px 14px; background: #f4f8f6; border: 1px solid rgba(16,44,56,.16); border-radius: 10px; color: #102c38; font: inherit; }.fitin-onboarding .onboarding-next { margin-top: 26px; width: 100%; justify-content: center; }
.fitin-progress-hero .page-intro { padding-bottom: 54px; }
@media (max-width: 760px) { .fitin-header .nav { gap: 8px; align-items: center; }.fitin-header .brand { font-size: .66rem; }.fitin-header .brand-mark { width: 31px; height: 31px; font-size: .8rem; }.fitin-nav { overflow-x: auto; gap: 14px; padding-bottom: 2px; }.fitin-nav a { white-space: nowrap; font-size: .78rem; }.today-hero { grid-template-columns: 1fr; min-height: 310px; padding: 28px; }.day-badge { margin-top: 5px; }.today-grid, .reflection-card { grid-template-columns: 1fr; }.reflection-actions { justify-content: flex-start; }.home-stat-grid { grid-template-columns: repeat(2, 1fr); }.home-stat-grid article { min-height: 112px; padding: 18px; }.home-stat-grid article:first-child { padding-left: 18px; }.home-stat-grid article:nth-child(2) { border-right: 0; }.home-stat-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(16,44,56,.16); }.home-stat-grid .home-encouragement strong { font-size: 1.05rem; }.today-plan-actions .button { flex: 1; justify-content: center; } }

/* Editorial wellness refresh inspired by the supplied mobile reference. */
body.legacy-editorial-theme { background: #fae2dd; color: #1d1a1a; font-family: "Aptos", "Helvetica Neue", "Microsoft JhengHei", sans-serif; }
.fitin-header { background: rgba(250,226,221,.88); border-bottom: 0; }.fitin-header .nav { min-height: 68px; }.brand { color: #1d1a1a; }.brand-mark { background: #e89a91; color: #fffaf8; box-shadow: none; }.fitin-nav a { color: #756d6b; font-weight: 700; }.fitin-nav a.active { color: #1d1a1a; border-bottom-color: #1d1a1a; }
.fitin-home { max-width: 1120px; }.today-hero { grid-template-columns: 1.03fr .97fr; min-height: 370px; padding: 0 0 0 clamp(28px,5vw,62px); color: #1d1a1a; background: #fffaf8; box-shadow: 0 22px 54px rgba(91,59,54,.12); }.today-hero::after { display: none; }.today-hero .eyebrow { color: #b56a63; }.today-hero h1 { max-width: 520px; font-size: clamp(2.45rem,5.2vw,4.8rem); letter-spacing: -.075em; }.today-hero p:not(.eyebrow) { color: #756d6b; }.today-copy { padding: 34px 0; }.day-badge { margin-top: 28px; color: #df8b82; }.day-badge strong { font-size: 3.5rem; }.day-badge span { color: #8d827f; font-weight: 650; }.hero-photo { align-self: stretch; min-height: 370px; margin: 0; overflow: hidden; border-radius: 42px 0 0 42px; background: #f0b8b2; }.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; display: block; }
.today-plan, .daily-checkin, .reflection-card { border: 0; border-radius: 20px; box-shadow: 0 16px 35px rgba(91,59,54,.09); }.today-plan, .daily-checkin { background: #fffaf8; }.card-kicker { color: #a17a74; letter-spacing: .09em; }.plan-status, .saved-note { background: #f9e1dd; color: #9e554e; }.today-plan h2, .daily-checkin h2 { color: #1d1a1a; }.today-plan p { color: #756d6b; }.move-picker button, .energy-options button, .reflection-actions button { border: 0; background: #f7ece9; color: #514847; border-radius: 12px; }.move-picker button.active, .energy-options button.active, .reflection-actions button.active { background: #1d1a1a; color: #fffaf8; }.button-primary { background: #1d1a1a; color: #fffaf8; border-color: #1d1a1a; box-shadow: none; }.button-quiet { background: #efaaa2; color: #1d1a1a; border-color: #efaaa2; }.water-stepper { border-top-color: #f0d6d1; }.water-stepper strong { color: #1d1a1a; }.stepper-buttons button { border: 0; background: #f7ece9; color: #1d1a1a; }.move-toggle { color: #514847; }
.reflection-card { background: #f3cbc7; border-color: #f3cbc7; }.reflection-card p:not(.eyebrow) { color: #705d59; }.reflection-actions button { background: #fffaf8; }.home-progress { margin-top: 46px; }.text-link { color: #1d1a1a; }.home-stat-grid { border-color: #e7c7c2; }.home-stat-grid article { border-color: #e7c7c2; }.home-stat-grid span, .home-stat-grid small { color: #887b78; }.home-stat-grid strong { color: #1d1a1a; }
.sub-hero, .training-hero, .diet-hero, .fitin-progress-hero { background: #f3cbc7; color: #1d1a1a; }.sub-hero .page-intro p, .sub-hero .page-number span { color: #756d6b; }.sub-hero .page-number { color: #1d1a1a; }.goal-card, .weekly-log, .trend-panel, .log-card, .diet-log-section { border-color: #efd4cf; box-shadow: 0 14px 30px rgba(91,59,54,.07); }.dark-card { background: #1d1a1a; }.week-button.active { background: #1d1a1a; border-color: #1d1a1a; color: #fffaf8; }
@media (max-width: 760px) { body { padding-bottom: 73px; }.fitin-header { position: static; }.fitin-header .nav { min-height: 56px; }.fitin-header .brand { display: none; }.fitin-nav { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; justify-content: space-around; overflow: hidden; gap: 0; padding: 11px 8px; border-radius: 18px; background: rgba(255,250,248,.96); box-shadow: 0 12px 36px rgba(71,42,39,.18); }.fitin-nav a { padding: 6px 8px; border-bottom: 0; }.fitin-nav a.active { border-bottom: 0; color: #e07e75; }.today-hero { grid-template-columns: 1fr; padding: 30px 26px 0; min-height: 560px; }.today-copy { padding: 0; }.today-hero h1 { font-size: 2.65rem; }.hero-photo { min-height: 225px; border-radius: 28px 28px 0 0; }.day-badge { margin-top: 20px; margin-bottom: 26px; }.today-grid { gap: 14px; }.today-plan, .daily-checkin, .reflection-card { border-radius: 18px; }.home-progress { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Gender-inclusive pastel palette: cream, lavender, sage and powder blue. */
body.legacy-pastel-theme { background: #f7f5ef; color: #24232a; }
.fitin-header { background: rgba(247,245,239,.9); }.brand-mark { background: #a89bdb; color: #fff; }.fitin-nav a { color: #777583; }.fitin-nav a.active { color: #24232a; border-bottom-color: #24232a; }
.today-hero { color: #24232a; background: #fffdf8; box-shadow: 0 22px 54px rgba(74,70,101,.12); }.today-hero .eyebrow { color: #7566ad; }.today-hero p:not(.eyebrow) { color: #74717c; }.day-badge { color: #8c80c5; }.day-badge span { color: #86818d; }.hero-photo { background: #d9e6df; }
.today-plan, .daily-checkin { background: #fffdf8; box-shadow: 0 16px 35px rgba(74,70,101,.08); }.card-kicker { color: #7d7790; }.plan-status, .saved-note { background: #e5f0e8; color: #4f735b; }.today-plan h2, .daily-checkin h2, .water-stepper strong, .home-stat-grid strong, .text-link { color: #24232a; }.today-plan p { color: #74717c; }
.move-picker button, .energy-options button, .reflection-actions button { background: #eef0fa; color: #4f4c5d; }.move-picker button.active, .energy-options button.active, .reflection-actions button.active { background: #504a65; color: #fff; }.button-primary { background: #504a65; color: #fff; border-color: #504a65; }.button-quiet { background: #cfe4d4; color: #2f4c39; border-color: #cfe4d4; }.water-stepper { border-top-color: #e1dfeb; }.stepper-buttons button { background: #edf2fa; color: #3f4e6d; }.move-toggle { color: #4f4c5d; }
.reflection-card { background: #dce8f5; border-color: #dce8f5; box-shadow: 0 16px 35px rgba(74,70,101,.07); }.reflection-card p:not(.eyebrow) { color: #5d6e82; }.reflection-actions button { background: #fffdf8; }.home-stat-grid, .home-stat-grid article { border-color: #ddd9e9; }.home-stat-grid span, .home-stat-grid small { color: #817d8a; }
.sub-hero, .training-hero, .diet-hero, .fitin-progress-hero { background: #e3def3; color: #24232a; }.sub-hero .page-intro p, .sub-hero .page-number span { color: #706d7a; }.sub-hero .page-number { color: #24232a; }.goal-card, .weekly-log, .trend-panel, .log-card, .diet-log-section { border-color: #dfdce9; box-shadow: 0 14px 30px rgba(74,70,101,.07); }.dark-card { background: #504a65; }.week-button.active { background: #504a65; border-color: #504a65; color: #fff; }
@media (max-width: 760px) { .fitin-nav { background: rgba(255,253,248,.96); box-shadow: 0 12px 36px rgba(74,70,101,.16); }.fitin-nav a.active { color: #7566ad; } }

/* Lightweight journey check-in shown after moving between core pages. */
.transition-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(50, 47, 67, .3); }
.transition-card { position: relative; width: min(100%, 510px); padding: 30px; border: 1px solid rgba(80,74,101,.12); border-radius: 24px; background: #fffdf8; box-shadow: 0 28px 74px rgba(47,43,70,.26); }
.transition-close { position: absolute; top: 12px; right: 12px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: #eef0fa; color: #504a65; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.transition-kicker { margin: 0; color: #7566ad; font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.transition-card h2 { max-width: 410px; margin: 13px 34px 18px 0; color: #292735; font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.12; letter-spacing: -.045em; }
.transition-question { margin: 0 0 13px; color: #605d6b; font-weight: 750; }
.transition-helper { display: block; margin: -5px 0 14px; color: #777280; font-size: .84rem; line-height: 1.45; }
.transition-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.transition-options button { min-height: 48px; padding: 9px; border: 1px solid #dedbea; border-radius: 12px; background: #f5f4fb; color: #504a65; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.transition-options button.active { border-color: #504a65; background: #504a65; color: #fff; }
.transition-note { display: grid; gap: 8px; margin-top: 17px; color: #5f5c69; font-size: .84rem; font-weight: 800; }
.transition-note textarea, .transition-note input { width: 100%; resize: vertical; padding: 12px; border: 1px solid #d9d6e7; border-radius: 12px; background: #fff; color: #292735; font: inherit; line-height: 1.45; }
.transition-note textarea:focus, .transition-note input:focus, .transition-options button:focus-visible, .transition-close:focus-visible, .transition-skip:focus-visible { outline: 3px solid #a89bdb; outline-offset: 2px; }
.transition-hint { min-height: 1.25em; margin: 9px 0 0; color: #9a4e58; font-size: .84rem; font-weight: 700; }
.transition-save { width: 100%; margin-top: 5px; justify-content: center; }
.transition-skip { display: block; margin: 12px auto 0; min-height: 40px; border: 0; background: transparent; color: #696674; font: inherit; font-size: .84rem; font-weight: 750; text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .transition-overlay { align-items: end; padding: 0; }.transition-card { width: 100%; padding: 27px 20px 22px; border-radius: 24px 24px 0 0; }.transition-options { grid-template-columns: 1fr; }.transition-options button { min-height: 44px; } }
@media (prefers-reduced-motion: no-preference) { .transition-overlay { animation: transition-fade .18s ease-out; }.transition-card { animation: transition-rise .24s ease-out; } @keyframes transition-fade { from { opacity: 0; } to { opacity: 1; } } @keyframes transition-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } }

/* Expandable left navigation: compact while tracking, clear when choosing a task. */
.side-menu { position: fixed; z-index: 45; top: 50%; left: 16px; transform: translateY(-50%); display: flex; align-items: stretch; border: 1px solid rgba(80,74,101,.12); border-radius: 18px; background: rgba(255,253,248,.94); box-shadow: 0 14px 34px rgba(74,70,101,.14); backdrop-filter: blur(12px); }
.side-menu-toggle { display: grid; width: 52px; min-height: 132px; place-items: center; gap: 10px; padding: 12px 0; border: 0; border-radius: 17px; background: #504a65; color: #fff; font: inherit; font-size: 1.1rem; cursor: pointer; }
.side-menu-toggle-text { font-size: .67rem; font-weight: 800; letter-spacing: .08em; writing-mode: vertical-rl; }
.side-menu-links { display: grid; grid-template-columns: 0fr; overflow: hidden; transition: grid-template-columns .22s ease; }
.side-menu.open .side-menu-links { grid-template-columns: 188px; }
.side-menu-links > * { min-width: 0; }
.side-menu-links a, .side-menu-links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 17px; border: 0; background: transparent; color: #565260; font: inherit; font-size: .86rem; font-weight: 800; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.side-menu-links p { margin: 14px 17px 5px; color: #8b8796; font-size: .68rem; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }.side-menu-links hr { width: calc(100% - 34px); margin: 7px 17px; border: 0; border-top: 1px solid #ece9f2; }
.side-menu-links a:nth-of-type(1) { margin-top: 3px; }.side-menu-links a:last-child { margin-bottom: 8px; }
.side-menu-links a span:first-child, .side-menu-links button span:first-child { width: 18px; color: #7566ad; text-align: center; font-size: 1rem; }.side-menu-links a.active { background: #e8e5f5; color: #3f3a54; }.side-menu-links a:hover, .side-menu-links button:hover { background: #f0f4ed; }.side-menu-links .menu-signout { color: #85505a; }.side-menu-links .menu-signout span:first-child { color: #a4636d; }
.side-menu-toggle:focus-visible, .side-menu-links a:focus-visible, .side-menu-links button:focus-visible { outline: 3px solid #a89bdb; outline-offset: 2px; }
@media (max-width: 900px) { .side-menu { top: auto; bottom: 86px; left: 12px; transform: none; }.side-menu-toggle { width: 48px; min-height: 48px; }.side-menu-toggle-text { display: none; }.side-menu.open .side-menu-links { grid-template-columns: 178px; }.side-menu-links { position: absolute; bottom: 0; left: 57px; border: 1px solid rgba(80,74,101,.12); border-radius: 16px; background: #fffdf8; box-shadow: 0 12px 30px rgba(74,70,101,.16); } }

.plan-route { margin: 18px 0 0 !important; padding: 11px 13px; border-radius: 12px; background: #e5f0e8; color: #45684f !important; font-size: .86rem; font-weight: 750; }
.today-training-callout { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px 13px; margin-bottom: 18px; padding: 17px 20px; border: 1px solid #d7e5d9; border-radius: 17px; background: #edf5ee; }.today-training-callout span { color: #53795d; font-size: .71rem; font-weight: 900; letter-spacing: .1em; }.today-training-callout b { color: #294b33; font-size: 1.08rem; }.today-training-callout p { width: 100%; margin: 0; color: #55735d; font-size: .86rem; }.scheduled-workout { border-color: #b9d6bf; box-shadow: 0 15px 33px rgba(62,104,72,.11); }
.workout-library-section { margin-top: 54px; }.workout-library-section .section-heading p:not(.eyebrow) { max-width: 630px; color: #706d7a; }.library-note { align-self: end; padding: 8px 11px; border-radius: 999px; background: #e5f0e8; color: #42664d; font-size: .8rem; font-weight: 800; }
.workout-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }.library-group { overflow: hidden; border: 1px solid #dfdce9; border-radius: 20px; background: #fffdf8; box-shadow: 0 12px 25px rgba(74,70,101,.06); }.library-group header { padding: 19px 20px 15px; border-bottom: 1px solid #ebe8f1; background: #f4f2fb; }.library-group h3 { margin: 8px 0 4px; color: #302d3d; font-size: 1.18rem; letter-spacing: -.025em; }.library-group p { margin: 0; color: #7b7787; font-size: .8rem; }.library-track { color: #7566ad; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }.library-exercises { display: grid; }.library-exercise { padding: 15px 20px; border-bottom: 1px solid #f0edf5; }.library-exercise:last-child { border-bottom: 0; }.library-exercise b { display: block; color: #373442; font-size: .95rem; }.library-exercise > span { display: block; margin-top: 4px; color: #807c89; font-size: .78rem; }.library-exercise div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }.library-exercise i { padding: 4px 7px; border-radius: 999px; background: #edf2fa; color: #52637c; font-size: .7rem; font-style: normal; font-weight: 750; }.library-exercise i:first-child { background: #e5f0e8; color: #42664d; }
@media (max-width: 720px) { .workout-library { grid-template-columns: 1fr; }.workout-library-section { margin-top: 40px; }.library-note { align-self: start; }.workout-library-section .split-heading { gap: 10px; } }

.exercise-selector { display: grid; gap: 5px; }.exercise-selector > span { color: #817d8a; font-size: .72rem; font-weight: 800; }.exercise-selector select { width: 100%; min-height: 40px; padding: 8px 30px 8px 10px; border: 1px solid #dcd8e8; border-radius: 10px; background: #fff; color: #393647; font: inherit; font-size: .93rem; font-weight: 800; }.exercise-selector select:focus { outline: 3px solid #c7bee8; outline-offset: 1px; }
.profile-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(50,47,67,.32); }.profile-modal { position: relative; display: grid; gap: 15px; width: min(100%, 440px); padding: 31px; border-radius: 24px; background: #fffdf8; box-shadow: 0 28px 70px rgba(47,43,70,.26); }.profile-modal > p { margin: 0; color: #7566ad; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }.profile-modal h2 { margin: -5px 36px 0 0; color: #2c2938; font-size: 1.8rem; letter-spacing: -.045em; }.profile-email { margin-top: -9px; color: #787481; font-size: .8rem; }.profile-modal label { display: grid; gap: 7px; color: #55515f; font-size: .84rem; font-weight: 800; }.profile-modal select { padding: 12px; border: 1px solid #dcd8e8; border-radius: 11px; background: #fff; color: #393647; font: inherit; }.profile-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eef0fa; color: #504a65; font-size: 1.5rem; cursor: pointer; }.profile-modal .button { justify-content: center; margin-top: 5px; }

/* Navigation is a small launcher, not a permanent bar over the content. */
.side-menu { top: auto; bottom: 24px; left: 18px; transform: none; border: 0; border-radius: 50%; background: transparent; box-shadow: none; backdrop-filter: none; }
.side-menu-toggle { width: 46px; min-height: 46px; height: 46px; padding: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(74,70,101,.19); }
.side-menu-links { position: absolute; bottom: 56px; left: 0; max-height: 0; grid-template-columns: 188px; overflow: hidden; border: 1px solid rgba(80,74,101,.12); border-radius: 18px; background: #fffdf8; box-shadow: 0 16px 36px rgba(74,70,101,.18); opacity: 0; transition: max-height .25s ease, opacity .18s ease; }
.side-menu.open .side-menu-links { max-height: 480px; opacity: 1; }.side-menu.open .side-menu-toggle { background: #7566ad; }
@media (max-width: 900px) { .side-menu { bottom: 88px; left: 14px; }.side-menu-links { bottom: 56px; left: 0; }.side-menu.open .side-menu-links { grid-template-columns: 178px; } }

.library-fab { position: fixed; z-index: 44; right: 22px; bottom: 24px; display: flex; align-items: center; gap: 9px; padding: 11px 15px 11px 12px; border: 0; border-radius: 999px; background: #504a65; color: #fff; box-shadow: 0 12px 28px rgba(74,70,101,.25); font: inherit; font-size: .79rem; font-weight: 850; line-height: 1.13; text-align: left; cursor: pointer; }.library-fab > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #a89bdb; font-size: 1.15rem; }.library-fab:focus-visible { outline: 3px solid #a89bdb; outline-offset: 3px; }
.library-overlay, .exercise-confirm-overlay { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px; background: rgba(50,47,67,.34); }.library-modal { position: relative; width: min(100%, 680px); max-height: min(790px, calc(100vh - 36px)); overflow: auto; padding: 30px; border-radius: 25px; background: #fffdf8; box-shadow: 0 30px 76px rgba(47,43,70,.28); }.library-modal > p { margin: 0; color: #7566ad; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }.library-modal h2 { margin: 9px 42px 5px 0; color: #2d2939; font-size: clamp(1.75rem,4vw,2.35rem); letter-spacing: -.05em; }.library-modal-sub { display: block; color: #777280; font-size: .88rem; line-height: 1.45; }.library-close { position: absolute; top: 13px; right: 13px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #eef0fa; color: #504a65; font-size: 1.5rem; cursor: pointer; }
.muscle-map { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin: 22px 0 17px; padding: 14px 18px; border-radius: 18px; background: #f0f4ed; }.muscle-map svg { width: 130px; height: 202px; justify-self: center; }.body-base { fill: #d9d6e5; stroke: #bbb5ce; stroke-width: 2; }.muscle-zone { fill: #c7d9ed; stroke: #a5bdd9; stroke-width: 1.5; transition: fill .18s ease; }.muscle-zone.on { fill: #a89bdb; stroke: #7566ad; }.muscle-map b { display: block; color: #413c55; font-size: 1.12rem; }.muscle-map span { display: block; margin-top: 7px; color: #66706c; font-size: .86rem; line-height: 1.45; }
.muscle-tabs { display: flex; flex-wrap: wrap; gap: 8px; }.muscle-tabs button { min-width: 92px; padding: 10px; border: 1px solid #dedbea; border-radius: 12px; background: #f6f5fb; color: #514d5d; font: inherit; font-weight: 850; cursor: pointer; }.muscle-tabs button small { display: block; margin-top: 3px; color: #817c8c; font-size: .68rem; font-weight: 700; }.muscle-tabs button.active { border-color: #504a65; background: #504a65; color: #fff; }.muscle-tabs button.active small { color: #ded9f0; }.library-modal-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 18px; }.library-modal-list article { padding: 13px; border: 1px solid #e5e1ed; border-radius: 13px; background: #fff; }.library-modal-list b { display: block; color: #3d3949; }.library-modal-list span { display: block; margin-top: 5px; color: #777280; font-size: .78rem; line-height: 1.4; }
.exercise-confirm { width: min(100%, 430px); padding: 28px; border-radius: 22px; background: #fffdf8; box-shadow: 0 28px 70px rgba(47,43,70,.28); }.exercise-confirm p { margin: 0; color: #7566ad; font-size: .73rem; font-weight: 900; letter-spacing: .1em; }.exercise-confirm h2 { margin: 10px 0; color: #302c3e; font-size: 1.42rem; letter-spacing: -.035em; }.exercise-confirm > span { color: #706c79; font-size: .88rem; line-height: 1.45; }.exercise-confirm > div { display: flex; gap: 10px; margin-top: 22px; }.exercise-confirm button { flex: 1; justify-content: center; }.confirm-cancel { min-height: 43px; border: 1px solid #dedbea; border-radius: 10px; background: #fff; color: #5c5767; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 720px) { .library-fab { right: 13px; bottom: 86px; }.library-overlay { align-items: end; padding: 0; }.library-modal { width: 100%; max-height: 88vh; padding: 26px 20px; border-radius: 24px 24px 0 0; }.muscle-map { grid-template-columns: 110px 1fr; padding: 12px; }.muscle-map svg { width: 96px; height: 160px; }.muscle-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }.muscle-tabs button { min-width: 106px; }.library-modal-list { grid-template-columns: 1fr; } }

/* Health tracker visual system: cobalt for direction, teal for completed activity. */
body.deprecated-tracker-theme { --tracker-blue: #3768df; --tracker-blue-deep: #244fbe; --tracker-blue-soft: #eaf1ff; --tracker-teal: #18bdb1; --tracker-ink: #18264c; --tracker-muted: #687397; --tracker-surface: #f8faff; --tracker-line: #dce5fa; --tracker-radius: 18px; background: #edf4ff; color: var(--tracker-ink); font-family: "Aptos", "Helvetica Neue", "Microsoft JhengHei", sans-serif; }
.fitin-header { background: linear-gradient(135deg, #315fd4 0%, #427ee8 58%, #39a9da 100%); }.fitin-header .nav { min-height: 68px; }.fitin-header .brand, .fitin-header .fitin-nav a { color: rgba(255,255,255,.9); }.fitin-header .brand-mark { background: rgba(255,255,255,.2); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.36); }.fitin-header .fitin-nav a.active { border-bottom-color: #fff; color: #fff; }
.fitin-home { max-width: 1180px; padding-top: 34px; }.today-hero { min-height: 330px; border: 1px solid #d7e3fb; border-radius: var(--tracker-radius); background: linear-gradient(140deg, #ffffff 5%, #eff4ff 100%); box-shadow: 0 20px 48px rgba(55,104,223,.13); }.today-hero .eyebrow { color: var(--tracker-blue); }.today-hero h1, .today-plan h2, .daily-checkin h2 { color: var(--tracker-ink); }.today-hero p:not(.eyebrow), .today-plan p { color: var(--tracker-muted); }.day-badge { color: var(--tracker-blue); }.day-badge span { color: #6d7899; }.hero-photo { border-radius: var(--tracker-radius) 0 0 var(--tracker-radius); background: #dce9ff; }
.today-grid { gap: 18px; }.today-plan, .daily-checkin, .reflection-card, .goal-card, .weekly-log, .trend-panel, .log-card, .diet-log-section, .library-group { border: 1px solid var(--tracker-line); border-radius: var(--tracker-radius); background: #fff; box-shadow: 0 13px 30px rgba(41,78,170,.07); }.card-kicker { color: #6073a8; }.plan-status, .saved-note { background: #e5faf6; color: #13786f; }.plan-route { background: #e9f1ff; color: #355cae !important; }.daily-checkin { background: linear-gradient(160deg, #fff 22%, #eef5ff 100%); }.reflection-card { background: #e8f6f5; border-color: #d0ece9; }.reflection-card p:not(.eyebrow) { color: #557a7c; }
.button-primary { border-color: #3768df; background: linear-gradient(135deg, #416fe2, #2c57c6); color: #fff; box-shadow: 0 8px 18px rgba(55,104,223,.22); }.button-quiet { border-color: #d2e9e6; background: #dff5f2; color: #167b73; }.move-picker button, .energy-options button, .reflection-actions button { background: #edf3ff; color: #415989; }.move-picker button.active, .energy-options button.active, .reflection-actions button.active { background: #3768df; color: #fff; }.stepper-buttons button { background: #eef4ff; color: #315abe; }.water-stepper { border-top-color: #e1e8f7; }.water-stepper strong { color: var(--tracker-blue-deep); }
.home-stat-grid { border-color: #dbe5fa; }.home-stat-grid article { border-color: #dbe5fa; }.home-stat-grid strong, .text-link { color: var(--tracker-blue-deep); }.home-stat-grid span, .home-stat-grid small { color: #7080a3; }
.sub-hero, .training-hero, .diet-hero, .fitin-progress-hero { background: linear-gradient(135deg, #315fd4 0%, #427ee8 58%, #39a9da 100%); color: #fff; }.sub-hero .page-intro h1, .sub-hero .page-number { color: #fff; }.sub-hero .page-intro p, .sub-hero .page-number span { color: rgba(255,255,255,.78); }.sub-hero .brand, .sub-hero .fitin-nav a { color: rgba(255,255,255,.9); }.sub-hero .brand-mark { background: rgba(255,255,255,.2); color: #fff; }.sub-hero .fitin-nav a.active { color: #fff; border-bottom-color: #fff; }
.dark-card, .goal-card.featured { background: linear-gradient(145deg, #2d5fd1, #386fdc); }.week-button.active { border-color: #3768df; background: #3768df; color: #fff; }.week-button { border-color: #d4def5; color: #53658b; }.log-card-head.coral, .log-card-head.blue, .log-card-head.green, .log-card-head.amber { background: #3a6bd6; }.scheduled-workout { border-color: #9acfc9; box-shadow: 0 15px 33px rgba(24,189,177,.12); }.today-training-callout { border-color: #cfe7e4; background: #e8f8f6; }.today-training-callout span, .today-training-callout p { color: #187d75; }.today-training-callout b { color: #176258; }
.diet-summary, .profile-strip { border: 1px solid var(--tracker-line); border-radius: var(--tracker-radius); box-shadow: 0 12px 27px rgba(41,78,170,.07); }.diet-summary strong, .profile-strip strong { color: var(--tracker-blue-deep); }.trend-panel canvas { border-radius: 12px; background: #fbfcff; }.library-group header { background: #edf3ff; }.library-track { color: #3d67c6; }.library-exercise i { background: #eaf1ff; color: #45649d; }.library-exercise i:first-child { background: #e3f7f4; color: #187c74; }
.side-menu-toggle, .library-fab { background: #3768df; }.side-menu.open .side-menu-toggle { background: #244fbe; }.side-menu-links { border-color: #d8e3fb; box-shadow: 0 16px 36px rgba(41,78,170,.18); }.side-menu-links a.active { background: #eaf1ff; color: #315abe; }.side-menu-links a span:first-child, .side-menu-links button span:first-child { color: #3768df; }.library-fab > span:first-child { background: #22bfb2; }.library-modal, .profile-modal, .transition-card, .exercise-confirm { border: 1px solid #d9e4fb; }.library-modal > p, .profile-modal > p, .transition-kicker, .exercise-confirm p { color: #3768df; }.muscle-zone.on { fill: #20bdb0; stroke: #12887f; }.muscle-tabs button.active { border-color: #3768df; background: #3768df; }.profile-close, .library-close, .transition-close { background: #eaf1ff; color: #315abe; }
@media (max-width: 760px) { body { background: #edf4ff; }.fitin-header { background: linear-gradient(135deg, #315fd4, #3f8fdc); }.fitin-nav { background: rgba(255,255,255,.96); }.fitin-nav a { color: #667394 !important; }.fitin-nav a.active { color: #315abe !important; }.today-hero { min-height: 510px; border-radius: 18px; }.hero-photo { border-radius: 18px 18px 0 0; } }

.quick-weight-log { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) auto 1fr; gap: 11px; align-items: end; margin: 20px 0 14px; padding: 15px; border-radius: 15px; background: #edf3ff; }.quick-weight-log label { display: grid; gap: 6px; color: #52658e; font-size: .77rem; font-weight: 800; }.quick-weight-log input { min-height: 42px; padding: 9px 10px; border: 1px solid #cedcf7; border-radius: 10px; background: #fff; color: #263d76; font: inherit; }.quick-weight-log .button { min-height: 42px; white-space: nowrap; }.quick-weight-log > span { align-self: center; color: #287770; font-size: .8rem; font-weight: 750; }
.profile-page-section { max-width: 900px; }.profile-page-form { display: grid; gap: 18px; }.profile-form-card { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); gap: 34px; padding: 30px; border: 1px solid #d9e4fb; border-radius: var(--tracker-radius); background: #fff; box-shadow: 0 14px 32px rgba(41,78,170,.08); }.profile-form-card h2 { margin: 7px 0; color: #1f3467; font-size: 1.55rem; letter-spacing: -.04em; }.profile-form-card p:not(.eyebrow) { margin: 0; color: #6c7897; line-height: 1.55; }.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.profile-form-grid label { display: grid; gap: 7px; color: #4d5f88; font-size: .82rem; font-weight: 800; }.profile-form-grid input, .profile-form-grid select { min-height: 46px; padding: 10px 11px; border: 1px solid #cfdcf6; border-radius: 11px; background: #fafdff; color: #263d76; font: inherit; }.profile-preference-card { background: linear-gradient(145deg, #fff 35%, #eef5ff 100%); }.tone-preview { grid-column: 2; margin-top: -4px; padding: 14px; border-radius: 14px; background: #e7f7f5; }.tone-preview span { display: block; color: #218279; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }.tone-preview strong { display: block; margin-top: 5px; color: #176b64; font-size: 1.05rem; }.profile-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 3px 2px; color: #277c74; font-size: .86rem; font-weight: 750; }.profile-form-actions .button { min-width: 150px; justify-content: center; }
.profile-form-actions > div { display: flex; gap: 10px; }.profile-restart { min-height: 43px; padding: 0 14px; border: 1px solid #e2b8b3; border-radius: 11px; background: #fff8f7; color: #a94e45; font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 760px) { .quick-weight-log { grid-template-columns: 1fr 1fr; }.quick-weight-log .button, .quick-weight-log > span { grid-column: 1 / -1; }.profile-form-card { grid-template-columns: 1fr; gap: 20px; padding: 23px; }.profile-form-grid { grid-template-columns: 1fr; }.tone-preview { grid-column: 1; }.profile-form-actions { align-items: stretch; flex-direction: column; }.profile-form-actions .button { width: 100%; } }

.newbie-plan { max-width: 760px; margin: 0 auto; }.newbie-plan-hero { position: relative; overflow: hidden; padding: 30px; border-radius: var(--tracker-radius); background: linear-gradient(135deg, #3768df, #3d9bd9); color: #fff; box-shadow: 0 18px 40px rgba(55,104,223,.2); }.newbie-plan-hero > span { font-size: .76rem; font-weight: 850; letter-spacing: .1em; opacity: .82; }.newbie-plan-hero h2 { max-width: 75%; margin: 9px 0; font-size: clamp(1.65rem,4vw,2.45rem); letter-spacing: -.05em; }.newbie-plan-hero p { max-width: 500px; margin: 0; color: rgba(255,255,255,.84); line-height: 1.5; }.newbie-plan-hero > div { position: absolute; right: 26px; bottom: 25px; display: grid; place-items: center; width: 96px; height: 96px; border: 7px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.1); }.newbie-plan-hero b { font-size: 2rem; line-height: .9; }.newbie-plan-hero small { margin-top: 4px; font-size: .7rem; }.newbie-plan-steps { display: grid; gap: 11px; margin-top: 18px; }.newbie-plan-steps article { padding: 18px 20px; border: 1px solid #d9e4fb; border-radius: 15px; background: #fff; box-shadow: 0 8px 20px rgba(41,78,170,.05); }.newbie-plan-steps article > span { color: #6a7da9; font-size: .72rem; font-weight: 850; letter-spacing: .06em; }.newbie-plan-steps h3 { margin: 6px 0; color: #273d78; font-size: 1.15rem; }.newbie-plan-steps p { margin: 0; color: #6c7897; font-size: .87rem; line-height: 1.45; }.plan-exercise { display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: start; }.plan-exercise label { display: grid; place-items: center; padding-top: 3px; }.plan-exercise input { position: absolute; opacity: 0; }.plan-exercise label span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #eaf1ff; color: #3b65bf; font-size: .75rem; font-weight: 900; cursor: pointer; }.plan-exercise input:checked + span { background: #20bdb0; color: #fff; }.plan-exercise.done { border-color: #bde5df; background: #f4fcfa; }.plan-exercise div > p { color: #4770c7; font-size: .82rem; font-weight: 850; }.plan-exercise div > p small { margin-left: 8px; color: #7a869f; font-weight: 700; }.plan-exercise em { color: #73809c; font-size: .78rem; font-style: normal; }.plan-warmup { background: #edf3ff !important; }.plan-cooldown { background: #e9f8f6 !important; border-color: #d1ece8 !important; }.quick-plan-finish { display: flex; width: 100%; justify-content: center; margin-top: 18px; min-height: 50px; }
@media (max-width: 760px) { .fitin-nav a { font-size: .68rem; }.newbie-plan-hero { padding: 26px 20px 115px; }.newbie-plan-hero h2 { max-width: 100%; }.newbie-plan-hero > div { right: 20px; bottom: 18px; width: 78px; height: 78px; }.newbie-plan-hero b { font-size: 1.7rem; } }

.training-locked { padding: 34px; border: 1px solid #cdddf8; border-radius: var(--tracker-radius); background: linear-gradient(145deg, #f8fbff, #eaf2ff); text-align: center; }.training-locked p { margin: 0; color: #3e68c4; font-size: .74rem; font-weight: 900; letter-spacing: .1em; }.training-locked h2 { margin: 10px 0 8px; color: #263d76; font-size: 1.65rem; letter-spacing: -.04em; }.training-locked span { display: block; max-width: 490px; margin: 0 auto; color: #687799; line-height: 1.5; }.training-locked .button { margin-top: 21px; justify-content: center; }
.foundation-confirm-overlay { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 18px; background: rgba(24,38,76,.38); }.foundation-confirm { width: min(100%, 440px); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 28px 72px rgba(24,38,76,.25); }.foundation-confirm p { margin: 0; color: #3f69c8; font-size: .74rem; font-weight: 900; letter-spacing: .1em; }.foundation-confirm h2 { margin: 10px 0; color: #263d76; font-size: 1.45rem; letter-spacing: -.04em; }.foundation-confirm > span { display: block; color: #687799; line-height: 1.5; }.foundation-confirm > div { display: flex; gap: 10px; margin-top: 22px; }.foundation-confirm button { flex: 1; justify-content: center; }.foundation-back { min-height: 43px; border: 1px solid #cfdbf4; border-radius: 10px; background: #fff; color: #47608e; font: inherit; font-weight: 800; cursor: pointer; }

.newbie-day-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 15px 0 18px; }.newbie-day-progress i { padding: 9px 4px; border-radius: 10px; background: #edf2ff; color: #8291b1; font-size: .7rem; font-style: normal; font-weight: 850; text-align: center; }.newbie-day-progress i.active { background: #3768df; color: #fff; box-shadow: 0 7px 15px rgba(55,104,223,.2); }.newbie-day-progress i.done { background: #e3f7f3; color: #167b70; }.newbie-celebration-overlay { background: rgba(20,44,100,.64); backdrop-filter: blur(5px); }.newbie-celebration { padding: 34px 30px; text-align: center; }.celebration-mark { display: grid; width: 88px; height: 88px; margin: 4px auto 18px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #ffe897, #31c5b3); color: #fff; font-size: 2.55rem; box-shadow: 0 13px 30px rgba(30,183,169,.3); }.newbie-celebration h2 { font-size: 1.8rem; }.newbie-celebration > div:last-child { justify-content: center; }.newbie-celebration button { max-width: 270px; }.training-locked .try-training-log { display: inline-flex; width: auto; margin: 10px auto 0; justify-content: center; }.training-oath strong { display: block; margin-top: 18px; padding: 14px; border-radius: 12px; background: #edf7ff; color: #24549c; line-height: 1.45; }.training-trial { display: grid; gap: 4px; margin: 0 0 15px; padding: 14px 16px; border: 1px solid #b7e8df; border-radius: 14px; background: #f0fcf9; color: #177b70; }.training-trial span { color: #4e7b82; font-size: .85rem; line-height: 1.45; }

/* Let beginners glimpse the destination, but keep the formal training workspace unavailable until the 4-day start is complete. */
body.newbie-training-locked .training-toolbar,
body.newbie-training-locked #trainingLog,
body.newbie-training-locked .workout-library-section,
body.newbie-training-locked .exercise-trend-section,
body.newbie-training-locked .safety-banner {
  filter: blur(7px);
  opacity: .48;
  pointer-events: none;
  user-select: none;
}
body.newbie-training-locked .library-fab { display: none; }
.newbie-training-gate { z-index: 120; background: rgba(21,41,93,.33); backdrop-filter: blur(2px); }
.newbie-training-gate .foundation-confirm { text-align: center; }
.newbie-training-gate .foundation-confirm > div { justify-content: center; }
.newbie-training-gate .button { max-width: 260px; }
.training-insist { display: block; margin: 16px auto 0; border: 0; background: transparent; color: #8a96ae; font: inherit; font-size: .73rem; text-decoration: underline; cursor: pointer; }
.unlock-onboarding { text-align: center; }.unlock-orbit { display: grid; width: 126px; height: 126px; margin: 8px auto 20px; place-content: center; border: 12px solid #dce9ff; border-top-color: #20bdb0; border-right-color: #3768df; border-radius: 50%; background: #f8fbff; box-shadow: 0 14px 28px rgba(55,104,223,.15); }.unlock-orbit span { color: #274b9f; font-size: 2.35rem; font-weight: 900; line-height: .8; }.unlock-orbit i { margin-top: 8px; color: #5980c8; font-size: .78rem; font-style: normal; font-weight: 850; }.unlock-onboarding h2 { margin-bottom: 8px; }.unlock-progress-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin: 25px 0 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg,#f4f8ff,#e9f8f5); text-align: left; }.unlock-progress-card b { display: block; color: #27416f; }.unlock-progress-card span { display: block; margin-top: 4px; color: #7582a0; font-size: .78rem; }.unlock-progress-card input { grid-column: 1 / -1; width: 100%; accent-color: #20bdb0; cursor: ew-resize; }.unlock-progress-card strong { color: #187d73; font-size: .9rem; }.unlock-onboarding #unlockDayOne { width: 100%; justify-content: center; }.unlock-onboarding #unlockDayOne:disabled { opacity: .45; cursor: not-allowed; }.unlock-onboarding #unlockDayOne.ready { box-shadow: 0 10px 24px rgba(32,189,176,.25); }
body[data-page="diet"] .diet-summary, body[data-page="diet"] .meal-timeline, body[data-page="diet"] .diet-rule-grid, body[data-page="diet"] .diet-log-section, body[data-page="diet"] .amber-banner { display: none; }
.diet-intake, .diet-today { max-width: 760px; margin: 0 auto; padding: 30px; border-radius: 22px; background: #fff; box-shadow: 0 16px 34px rgba(41,78,170,.1); }.diet-intake > p, .diet-today > p { margin: 0; color: #3768df; font-size: .76rem; font-weight: 900; letter-spacing: .09em; }.diet-intake h2, .diet-today h2 { margin: 9px 0; color: #243b76; font-size: 1.7rem; letter-spacing: -.04em; }.diet-intake > span, .diet-today > span { color: #647493; line-height: 1.55; }.diet-choice-group { margin-top: 25px; }.diet-choice-group b { color: #405783; font-size: .9rem; }.diet-choice-group > div, .diet-quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }.diet-choice-group button, .diet-quick-actions button { padding: 11px 13px; border: 1px solid #d5e1f8; border-radius: 12px; background: #f7faff; color: #405783; font: inherit; font-weight: 800; cursor: pointer; }.diet-choice-group button.selected, .diet-quick-actions button.selected { border-color: #20bdb0; background: #e3f8f4; color: #14776c; }.diet-intake .button { margin-top: 26px; }.whole-food-plate { margin: 24px 0 14px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg,#eaf7f5,#edf3ff); }.whole-food-plate b { color: #246158; }.whole-food-plate div { display: grid; grid-template-columns: 34px 1fr; gap: 8px 11px; margin-top: 14px; align-items: center; }.whole-food-plate i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #fff; color: #20857a; font-style: normal; font-weight: 900; }.whole-food-plate span { color: #46697a; font-size: .87rem; }.diet-today > small { color: #7b88a2; }.diet-today strong { display: block; margin-top: 17px; color: #178075; }

/* The Foundation Workout is a check-off flow: make each completion target unmistakable. */
.newbie-plan-steps .plan-exercise { position: relative; grid-template-columns: 74px 1fr; min-height: 104px; padding: 20px 22px; border: 2px solid #d8e4fb; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.newbie-plan-steps .plan-exercise:hover, .newbie-plan-steps .plan-exercise:focus-visible { border-color: #6a91eb; box-shadow: 0 13px 26px rgba(55,104,223,.14); outline: none; transform: translateY(-1px); }
.newbie-plan-steps .plan-exercise label { padding-top: 0; }
.newbie-plan-steps .plan-exercise label span { width: 58px; height: 58px; border: 3px solid #b9cdf6; background: #f4f7ff; color: #365cae; font-size: 1rem; box-shadow: inset 0 0 0 5px #fff; transition: all .18s ease; }
.newbie-plan-steps .plan-exercise::after { position: absolute; right: 18px; top: 17px; content: "點此完成"; color: #5774ad; font-size: .72rem; font-weight: 900; letter-spacing: .05em; }
.newbie-plan-steps .plan-exercise.done { border-color: #28bcae; background: linear-gradient(120deg, #f1fcfa, #e1f8f4); box-shadow: 0 11px 24px rgba(24,189,176,.12); }
.newbie-plan-steps .plan-exercise.done label span { border-color: #20bdb0; background: #20bdb0; color: #fff; font-size: 1.75rem; box-shadow: 0 0 0 5px rgba(32,189,176,.13); }
.newbie-plan-steps .plan-exercise.done::after { content: "✓ 已完成"; color: #15796f; }
.newbie-plan-steps .plan-exercise.done h3 { color: #176b64; }
.newbie-plan-steps .plan-exercise.done em { color: #198176; font-weight: 800; }
@media (max-width: 600px) { .newbie-plan-steps .plan-exercise { grid-template-columns: 64px 1fr; padding: 19px 16px; }.newbie-plan-steps .plan-exercise label span { width: 52px; height: 52px; }.newbie-plan-steps .plan-exercise::after { right: 14px; top: 13px; font-size: .66rem; }.newbie-plan-steps .plan-exercise h3 { margin-top: 14px; } }
@media (max-width: 600px) { .foundation-confirm > div { flex-direction: column-reverse; }.training-locked { padding: 27px 20px; } }

/* Guided onboarding: baseline first, then one personal intention and a clear first session. */
.onboarding-overlay { background: rgba(24,38,76,.72); }.onboarding-card { width: min(100%, 560px); max-height: min(790px, calc(100vh - 36px)); overflow: auto; border: 1px solid #d7e3fb; background: #fff; color: #18264c; }.fitin-onboarding label { color: #485f91; }.fitin-onboarding input, .fitin-onboarding select { min-height: 46px; box-sizing: border-box; border-color: #cfdcf6; background: #fafdff; color: #263d76; }.onboarding-steps { display: flex; gap: 7px; margin: 16px 0 23px; }.onboarding-steps i { width: 32px; height: 5px; border-radius: 99px; background: #dbe5fa; }.onboarding-steps i.active { background: #3768df; }.onboarding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.onboarding-grid label { margin-top: 0 !important; }.onboarding-grid .onboarding-wide { grid-column: 1 / -1; }.onboarding-grid small { color: #7d8aa7; font-weight: 650; }.focus-options { display: grid; gap: 10px; }.focus-options button { display: grid; gap: 5px; padding: 17px; border: 1px solid #d5e1f8; border-radius: 14px; background: #f9fbff; color: #263d76; font: inherit; text-align: left; cursor: pointer; }.focus-options button:hover, .focus-options button:focus-visible { border-color: #3768df; background: #eef4ff; outline: none; }.focus-options b { font-size: 1rem; }.focus-options span { color: #73809e; font-size: .82rem; }.fitin-onboarding .onboarding-back { margin-top: 19px; }.first-plan { display: grid; gap: 9px; margin: 4px 0 22px; padding: 18px; border-radius: 16px; background: #e8f7f5; color: #176b64; }.first-plan > span { color: #26837a; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }.first-plan > b { color: #176057; font-size: 1.12rem; }.first-plan p { display: flex; align-items: center; gap: 9px; margin: 0; color: #2a706b; font-size: .89rem; }.first-plan i { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff; color: #248076; font-size: .74rem; font-style: normal; font-weight: 900; }
@media (max-width: 540px) { .onboarding-card { padding: 30px 22px 24px; }.onboarding-grid { grid-template-columns: 1fr; }.onboarding-grid .onboarding-wide { grid-column: auto; } }

/* V4 first-run journey: a calm, single-purpose route into Day Zero. */
.fitin-welcome { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 15%, #dff4ee 0 12%, transparent 38%), radial-gradient(circle at 90% 85%, #dce8ff 0 14%, transparent 42%), #f8faff; }
.welcome-card { width: min(100%, 500px); padding: clamp(32px, 7vw, 54px); border: 1px solid rgba(55,104,223,.15); border-radius: 32px; background: rgba(255,255,255,.9); box-shadow: 0 24px 70px rgba(42,73,149,.16); text-align: center; }
.welcome-brand { display: inline-flex; align-items: center; gap: 10px; color: #244881; letter-spacing: .06em; text-align: left; }.welcome-brand > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: linear-gradient(135deg,#3768df,#20bdb0); color: #fff; font-size: 1.3rem; font-weight: 900; }.welcome-brand b { font-size: .8rem; line-height: 1.05; }
.welcome-kicker { margin: 38px 0 10px; color: #378a80; font-size: .74rem; font-weight: 900; letter-spacing: .13em; }.welcome-card h1 { margin: 0; color: #1d346b; font-size: clamp(2.2rem,9vw,3.4rem); letter-spacing: -.075em; line-height: 1; }.welcome-copy { margin: 19px 0 29px; color: #647493; line-height: 1.7; }
.welcome-progress { padding: 18px; border-radius: 19px; background: linear-gradient(130deg,#f2f7ff,#e9f9f5); text-align: left; }.welcome-progress b,.welcome-progress span { display: block; }.welcome-progress b { color: #2a467e; }.welcome-progress span { margin-top: 4px; color: #7181a0; font-size: .78rem; }.welcome-track { position: relative; height: 10px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: #d8e3f5; }.welcome-track i { display: block; width: 14%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#20bdb0,#3768df); }.welcome-track em { position: absolute; right: 7px; top: -18px; color: #6d7c99; font-size: .68rem; font-style: normal; font-weight: 800; }
.welcome-login { width: 100%; justify-content: center; margin-top: 26px; }.welcome-card > small { display: block; margin-top: 15px; color: #8490a8; font-size: .73rem; line-height: 1.5; }
.onboarding-buddy-intro { margin: 5px 0 18px; padding: 12px 13px; border-radius: 13px; background: #eff6f6; }.onboarding-buddy-intro b { color: #287d75; font-size: .78rem; letter-spacing: .06em; }.onboarding-buddy-intro span { display: block; margin-top: 5px; color: #5b7073; font-size: .78rem; line-height: 1.45; }
.v4-steps i { flex: 1; }.goal-options button:first-child { border-color: #c7d5ff; }.day-zero-card .unlock-orbit { width: 102px; height: 102px; border-width: 9px; }.day-zero-card .first-plan { margin-top: 18px; }.day-zero-card .unlock-progress-card { margin: 16px 0; }.day-zero-hero { background: linear-gradient(135deg,#e8f8f5,#edf3ff); }.day-zero-preview { display: grid; max-width: 700px; gap: 11px; margin: 26px auto 0; padding: 26px; border-radius: 22px; background: #fff; box-shadow: 0 16px 34px rgba(41,78,170,.1); }.day-zero-preview > p { margin: 0 0 5px; color: #3a5998; font-size: .78rem; font-weight: 900; letter-spacing: .1em; }.day-zero-preview span { display: flex; align-items: center; gap: 11px; color: #385276; font-weight: 750; }.day-zero-preview i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e8f7f5; color: #187e73; font-size: .75rem; font-style: normal; }.day-zero-preview .button { justify-self: stretch; justify-content: center; margin-top: 14px; }

/* Fit Buddy: one contextual question, never a blocking pop-up or a substitute PT. */
.habit-buddy-card { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 15px; max-width: 1120px; margin: 22px auto 0; padding: 20px; border: 1px solid #d8dfef; border-radius: 20px; background: linear-gradient(128deg,#f7f6ff,#f1fbf7); box-shadow: 0 13px 28px rgba(74,70,101,.07); }.buddy-avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: linear-gradient(135deg,#a89bdb,#7cb7d9); color: #fff; font-size: 1.2rem; }.buddy-copy > p { margin: 1px 0 7px; color: #7566ad; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }.buddy-copy h2 { margin: 0; color: #302e3c; font-size: clamp(1.2rem,3vw,1.55rem); letter-spacing: -.04em; }.buddy-copy > span { display: block; margin-top: 7px; color: #6e6b79; font-size: .87rem; line-height: 1.5; }.buddy-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }.buddy-options button { min-height: 39px; padding: 8px 11px; border: 1px solid #ddd9ee; border-radius: 11px; background: #fffdf8; color: #4f4c5d; font: inherit; font-size: .84rem; font-weight: 780; cursor: pointer; }.buddy-options button:hover, .buddy-options button:focus-visible { border-color: #8c80c5; background: #eeeafd; outline: none; }.buddy-options .buddy-other { color: #686277; background: transparent; }.buddy-custom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-top: 12px; }.buddy-custom label { display: grid; gap: 5px; color: #625e70; font-size: .76rem; font-weight: 800; }.buddy-custom input { min-height: 42px; padding: 9px 10px; border: 1px solid #d8d5e6; border-radius: 10px; background: #fff; color: #302e3c; font: inherit; }.buddy-custom .button { min-height: 42px; align-self: end; }.buddy-controls { display: flex; gap: 15px; margin-top: 15px; }.buddy-controls button, .buddy-controls a { padding: 0; border: 0; background: transparent; color: #68627a; font: inherit; font-size: .76rem; font-weight: 800; text-decoration: underline; cursor: pointer; }.buddy-reason, .buddy-saved { margin: 10px 0 0; color: #536d72; font-size: .82rem; line-height: 1.5; }.buddy-saved { color: #238176; font-weight: 800; }.buddy-settings-card { background: linear-gradient(145deg,#f7f6ff 0%,#eff9f4 100%); }.buddy-settings-note { align-self: end; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.78); }.buddy-settings-note b, .buddy-settings-note span { display: block; }.buddy-settings-note b { color: #3e536d; font-size: .85rem; }.buddy-settings-note span { margin-top: 5px; color: #6b7484; font-size: .8rem; line-height: 1.5; }
@media (max-width: 600px) { .habit-buddy-card { grid-template-columns: 1fr; padding: 18px; }.buddy-avatar { width: 39px; height: 39px; border-radius: 13px; }.buddy-custom { grid-template-columns: 1fr; }.buddy-custom .button { justify-content: center; }.buddy-controls { gap: 13px; } }
.gimmy-reminder { position: fixed; z-index: 70; right: 20px; bottom: 22px; width: min(350px,calc(100vw - 40px)); padding: 18px; border: 1px solid #d8d5eb; border-radius: 18px; background: rgba(255,253,248,.97); box-shadow: 0 18px 48px rgba(62,57,91,.2); }.gimmy-reminder > p { margin: 0 0 8px; color: #7566ad; font-size: .7rem; font-weight: 900; letter-spacing: .1em; }.gimmy-reminder > b { display: block; padding-right: 25px; color: #302e3c; font-size: 1rem; line-height: 1.35; }.gimmy-reminder > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }.gimmy-reminder > div button { padding: 8px 10px; border: 0; border-radius: 9px; background: #eef0fa; color: #4f4c5d; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }.gimmy-reminder-close { position: absolute; top: 8px; right: 9px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1eff8; color: #625e70; font-size: 1.25rem; cursor: pointer; }.gimmy-reminder-later { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #777382; font: inherit; font-size: .76rem; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .gimmy-reminder { bottom: 86px; right: 14px; width: min(350px,calc(100vw - 28px)); } }

.buddy-options button.active { border-color: #504a65; background: #504a65; color: #fff; }
.buddy-quick-save { min-width: 106px; margin-top: 12px; justify-content: center; }
.buddy-quick-save:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.musclewiki-panel{margin-top:18px;border:1px solid #dde1fb;background:linear-gradient(145deg,#f6f7ff,#f6fffb);border-radius:15px;padding:13px;display:grid;gap:8px}.musclewiki-panel p{font-weight:800!important;color:#454aa0!important}.musclewiki-panel span,.musclewiki-panel small{font-size:.82rem;color:#68708d}.musclewiki-load{border:0;border-radius:11px;background:#5c5ee8;color:#fff;padding:10px 12px;font-weight:800;width:100%;margin-top:2px}.musclewiki-load:disabled{opacity:.65}.musclewiki-panel strong{color:#282d56}.musclewiki-panel ol{margin:0;padding-left:20px;color:#454b6b;line-height:1.6}.musclewiki-error{color:#9a5c6e!important}
.library-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.library-card-top i{font-style:normal;font-size:.68rem;color:#4d4fb5;background:#e8e7ff;padding:4px 7px;border-radius:999px;font-weight:850}.library-card-top span{font-size:.73rem;text-align:right;line-height:1.25}.library-page-card b{margin-top:2px}
.library-close{position:absolute;right:14px;top:14px;border:0;background:#eceefe;color:#42466a;border-radius:50%;height:34px;width:34px;font-size:1.25rem}
/* Dedicated exercise library: guide visuals stay hidden until the user opens an exercise. */
.library-page-tabs{display:flex;gap:8px;overflow:auto;padding:2px 0 14px;scrollbar-width:none}.library-page-tabs button{border:0;border-radius:999px;padding:9px 14px;background:#eef0ff;color:#51577e;font-weight:750;white-space:nowrap}.library-page-tabs button.active{background:#5c5ee8;color:#fff;box-shadow:0 8px 18px rgba(92,94,232,.24)}.library-page-note{margin:0 0 14px;color:#6a7190;font-size:.9rem}.library-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-page-card{appearance:none;text-align:left;border:1px solid #e5e8f3;background:#fff;border-radius:18px;padding:15px;min-height:142px;display:flex;flex-direction:column;gap:7px;box-shadow:0 7px 22px rgba(64,75,130,.06);color:#242846}.library-page-card:active,.training-exercise-preview:active{transform:scale(.98)}.library-page-card b{font-size:.98rem;line-height:1.38}.library-page-card span{font-size:.79rem;color:#68708f}.library-page-card small{margin-top:auto;color:#8177c4;font-weight:700}.library-overlay{position:fixed;inset:0;z-index:120;background:rgba(27,31,57,.44);display:grid;align-items:end;padding:16px;backdrop-filter:blur(5px)}.exercise-guide{background:#fcfcff;border-radius:26px 26px 18px 18px;max-width:620px;width:100%;margin:0 auto;max-height:min(88dvh,760px);overflow:auto;padding:18px;box-shadow:0 -16px 45px rgba(16,22,65,.18);position:relative}.exercise-guide-close{position:absolute;right:14px;top:14px;border:0;background:#eceefe;color:#42466a;border-radius:50%;height:34px;width:34px;font-size:1.25rem}.exercise-guide img,.guide-placeholder{width:100%;border-radius:18px;display:block;aspect-ratio:4/3;object-fit:cover;background:linear-gradient(135deg,#e9ecff,#def5ed)}.guide-placeholder{display:grid;place-items:center;color:#676c94;font-weight:750}.exercise-guide h2{font-size:1.32rem;margin:16px 40px 4px 0;line-height:1.3}.exercise-guide>p{margin:0;color:#69708d}.guide-meta{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.guide-meta span{background:#eff8f4;color:#38745d;border-radius:999px;padding:6px 9px;font-size:.78rem}.exercise-guide h3{font-size:1rem;margin:16px 0 8px}.exercise-guide ol{margin:0;padding-left:22px;color:#3e4568;line-height:1.72}.guide-disclaimer{font-size:.8rem!important;background:#f7f5ff;padding:10px;border-radius:11px;margin-top:16px!important}.training-exercise-preview{width:100%;border:0;border-radius:17px;background:#eef5ff;display:flex;align-items:center;gap:12px;padding:10px;margin:12px 0 2px;text-align:left;color:#242846}.training-exercise-preview img{height:76px;width:92px;object-fit:cover;border-radius:12px}.training-exercise-preview span{display:grid;gap:4px}.training-exercise-preview small{color:#656d97}@media(min-width:720px){.library-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.exercise-guide{border-radius:26px;margin:auto;align-self:center}}


/* Diet v3 compatibility layer: preserves the newer meal composition UI within the approved original visual system. */
.diet-page-shell { padding-top: 35px; }.diet-log-v3 { border: 0; background: transparent; overflow: visible; }.diet-v3 { --diet-protein:#21bdb0; --diet-carbs:#4f75dc; --diet-fibre:#9b83d3; max-width: 900px; padding: clamp(22px,4vw,34px); border: 1px solid var(--tracker-line); border-radius: 24px; background: linear-gradient(145deg,#fff 0%,#f8fbff 100%); box-shadow: 0 16px 34px rgba(41,78,170,.1); }.diet-v3-top { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }.diet-v3-top > div:first-child > p { margin: 0; color: #3768df; font-size: .74rem; font-weight: 900; letter-spacing: .08em; }.diet-v3 h2 { margin: 9px 0 7px; color: #243b76; font-size: clamp(1.75rem,4vw,2.4rem); letter-spacing: -.055em; }.diet-v3-top > div:first-child > span { color: #647493; line-height: 1.55; }.diet-score { display: grid; grid-template-columns: auto auto; gap: 1px 3px; min-width: 96px; padding: 15px 14px 13px; border-radius: 18px; background: #e9f7f5; text-align: right; }.diet-score strong { margin: 0; color: #167a70; font-size: 1.9rem; line-height: 1; }.diet-score > span { align-self: end; padding-bottom: 2px; color: #527a81; font-size: .86rem; font-weight: 800; }.diet-score small { grid-column: 1/-1; margin-top: 7px; color: #527a81; font-size: .67rem; font-weight: 800; }.diet-guidance { margin: 26px 0; padding: 18px 19px; border: 1px solid #cfe9e6; border-radius: 18px; background: #effaf8; }.diet-guidance b { color: #18786f; font-size: .78rem; letter-spacing: .05em; }.diet-guidance p { margin: 7px 0; color: #285e60; font-weight: 800; line-height: 1.5; }.diet-guidance small { color: #557a7c; line-height: 1.45; }.meal-pie-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.meal-pie-card { padding: 19px 16px 16px; border: 1px solid #dbe5f8; border-radius: 19px; background: #fff; }.meal-pie-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }.meal-pie-head h3 { margin: 0; color: #263d76; font-size: 1.03rem; }.meal-pie-head p { margin: 4px 0 0; color: #7a87a2; font-size: .75rem; }.meal-pie-state { max-width: 86px; color: #5470a7; font-size: .63rem; font-weight: 800; line-height: 1.35; text-align: right; }.meal-pie-wrap { display: grid; justify-items: center; margin: 15px 0 13px; }.meal-pie { position: relative; width: 154px; height: 154px; overflow: hidden; border: 7px solid #fff; border-radius: 50%; background: conic-gradient(var(--pie-protein) 0 33.33%,var(--pie-carbs) 33.33% 66.66%,var(--pie-fibre) 66.66% 100%); box-shadow: 0 9px 20px rgba(54,101,203,.11); }.meal-pie::after { content:"點擊"; position:absolute; inset:43px; display:grid; place-items:center; border-radius:50%; background:#fff; color:#536c9e; font-size:.68rem; font-weight:900; pointer-events:none; }.pie-slice { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color: #30426f; font: inherit; font-weight: 900; cursor: pointer; }.pie-slice span { position: absolute; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); font-size: .64rem; line-height: 1.1; }.pie-protein { clip-path: polygon(50% 50%,50% 0,100% 0,100% 50%); }.pie-protein span { top: 13px; right: 15px; }.pie-carbs { clip-path: polygon(50% 50%,100% 50%,100% 100%,0 100%); }.pie-carbs span { right: 15px; bottom: 13px; }.pie-fibre { clip-path: polygon(50% 50%,0 100%,0 0,50% 0); }.pie-fibre span { top: 42px; left: 10px; }.pie-slice:focus-visible { outline: 3px solid #193f9a; outline-offset: -3px; clip-path: none; z-index: 2; }.pie-slice:active { transform: scale(.98); }.pie-slice:not(.selected) span { opacity: .64; }.meal-pie-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 9px; margin-top: 11px; }.meal-pie-key span { color: #8a96ad; font-size: .67rem; font-weight: 800; }.meal-pie-key span::before { content:""; display:inline-block; width:7px; height:7px; margin-right:4px; border-radius:50%; background:#dfe6f2; }.meal-pie-key span:nth-child(1).on { color:#18887e; }.meal-pie-key span:nth-child(1).on::before { background:var(--diet-protein); }.meal-pie-key span:nth-child(2).on { color:#4664bd; }.meal-pie-key span:nth-child(2).on::before { background:var(--diet-carbs); }.meal-pie-key span:nth-child(3).on { color:#765fae; }.meal-pie-key span:nth-child(3).on::before { background:var(--diet-fibre); }.takeaway-toggle { display:flex; width:100%; align-items:center; justify-content:center; gap:7px; padding:10px; border:1px solid #d8e3f5; border-radius:12px; background:#f8fbff; color:#637291; font:inherit; font-size:.76rem; font-weight:850; cursor:pointer; }.takeaway-toggle span { display:grid; width:17px; height:17px; place-items:center; border:1px solid #aebdda; border-radius:5px; color:transparent; }.takeaway-toggle.selected { border-color:#e2b271; background:#fff8ea; color:#8c641f; }.takeaway-toggle.selected span { border-color:#dda851; background:#e9b35c; color:#fff; }.takeaway-tip { margin-top:16px; padding:17px 18px; border:1px solid #f0cf9a; border-radius:17px; background:#fff9ed; }.takeaway-tip b { color:#9a651c; font-size:.77rem; letter-spacing:.04em; }.takeaway-tip p { margin:7px 0 4px; color:#6e5128; font-weight:850; }.takeaway-tip span { color:#806a4d; font-size:.83rem; line-height:1.45; }.takeaway-tip button { display:block; margin:12px 0 0 auto; padding:8px 12px; border:0; border-radius:10px; background:#f0d59c; color:#6d4c1b; font:inherit; font-size:.76rem; font-weight:900; cursor:pointer; }.diet-v3-footer { display:flex; justify-content:space-between; gap:14px; margin-top:19px; color:#73809e; font-size:.76rem; }.diet-v3-footer strong { margin:0; color:#198076; text-align:right; }
.meal-food-entry { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:15px; }.meal-food-entry label { min-width:0; }.meal-food-entry label span { display:block; margin-bottom:5px; color:#687a9f; font-size:.67rem; font-weight:850; }.meal-food-entry input { box-sizing:border-box; width:100%; min-width:0; height:38px; border:1px solid #d7e2f7; border-radius:10px; background:#fbfdff; color:#2c426f; font:inherit; font-size:.76rem; padding:0 10px; }.meal-food-entry input:focus { outline:2px solid #8eaceb; outline-offset:1px; }.meal-food-entry button { align-self:end; height:38px; padding:0 11px; border:0; border-radius:10px; background:#e7efff; color:#355aa8; font:inherit; font-size:.74rem; font-weight:900; cursor:pointer; }.food-entry-chips { display:flex; min-height:22px; flex-wrap:wrap; gap:5px; margin-top:9px; }.food-entry-chips span { padding:4px 7px; border-radius:99px; background:#eef5ff; color:#4b6493; font-size:.67rem; font-weight:800; }.food-entry-chips small { color:#8995ad; font-size:.68rem; line-height:1.45; }.meal-pie.calculated { background:conic-gradient(var(--diet-protein) 0 var(--protein-stop),var(--diet-carbs) var(--protein-stop) var(--carbs-stop),var(--diet-fibre) var(--carbs-stop) 100%); }.meal-pie.calculated::after { content:"組成"; }

/* Four meal periods and one calm daily snapshot. */
.diet-v3 .meal-pie-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.diet-v3 .meal-pie-state { display:none; }
.day-composition-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px 22px; margin:0 0 18px; padding:18px 20px; border:1px solid #d6e4fa; border-radius:20px; background:linear-gradient(135deg,#f8f5ff,#edf9f7); }
.day-composition-card p { margin:0; color:#6b67ad; font-size:.71rem; font-weight:900; letter-spacing:.08em; }
.day-composition-card h3 { margin:5px 0; color:#293f78; font-size:1.15rem; }
.day-composition-card > div:first-child > span { color:#687895; font-size:.78rem; line-height:1.45; }
.day-composition-pie { width:108px; height:108px; margin:0; }
.day-composition-pie::after { inset:29px; content:"全日"; }
.day-composition-pie > span { display:none; }
.day-composition-key { grid-column:1/-1; justify-content:flex-start; margin:0; }
@media (max-width: 760px) { .day-composition-card { grid-template-columns:1fr auto; }.day-composition-pie { width:100px; height:100px; } }
@media (max-width: 430px) { .diet-v3 .meal-pie-grid { grid-template-columns:1fr; }.day-composition-card { grid-template-columns:1fr; }.day-composition-pie { justify-self:center; }.day-composition-key { justify-content:center; } }
@media (max-width: 760px) { .diet-page-shell { padding-top:22px; }.diet-v3 { border-radius:20px; }.meal-pie-grid { grid-template-columns: 1fr; }.meal-pie-card { display:grid; grid-template-columns:1fr auto; column-gap:14px; align-items:center; }.meal-pie-head { grid-column:1/-1; }.meal-pie-wrap { margin:14px 0 0; }.takeaway-toggle { width:auto; min-width:115px; grid-column:2; grid-row:2; align-self:center; }.diet-v3-footer { flex-direction:column; }.diet-v3-footer strong { text-align:left; } }
@media (max-width: 430px) { .diet-v3-top { gap:12px; }.diet-score { min-width:79px; padding:12px 10px; }.diet-score strong { font-size:1.55rem; }.meal-pie-card { grid-template-columns:1fr; }.takeaway-toggle { width:100%; grid-column:auto; grid-row:auto; margin-top:12px; }.meal-pie { width:145px; height:145px; } }

/* UI shell v6: a single, calm product system. Kept last so old feature markup
   continues to work while all shared surfaces use one visual language. */
.shell { width: min(1120px, calc(100% - 40px)); }
.fitin-header, .sub-hero { background: linear-gradient(135deg, var(--fit-cream), #f4f7ff 58%, var(--fit-sage)); color: var(--fit-ink); border: 0; }
.fitin-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--fit-cream) 90%, transparent); }
.fitin-header .nav, .sub-hero .nav { min-height: 70px; height: auto; }
.brand { color: var(--fit-ink); letter-spacing: .1em; }
.brand-mark { border-radius: 13px; background: linear-gradient(145deg, var(--fit-indigo), #57b7b0); color: #fff; box-shadow: 0 7px 16px rgb(79 95 198 / 20%); }
.fitin-nav { gap: 4px; }
.fitin-nav a { border: 0; border-radius: 999px; color: var(--fit-muted); font-size: .83rem; font-weight: 800; }
.fitin-nav a:hover, .fitin-nav a.active { background: var(--fit-lavender); color: var(--fit-ink); }
.button { border: 0; border-radius: 14px; font-weight: 850; }
.button-primary { background: var(--fit-indigo); color: #fff; box-shadow: 0 9px 18px rgb(79 95 198 / 18%); }
.button-quiet { background: var(--fit-sage); color: #315247; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a99fe0; outline-offset: 3px; }
.today-hero { border: 1px solid var(--fit-line); border-radius: 30px; background: linear-gradient(135deg, #fff, var(--fit-sky)); box-shadow: 0 20px 44px rgb(58 77 145 / 10%); }
.today-plan, .daily-checkin, .reflection-card, .goal-card, .weekly-log, .trend-panel, .log-card, .diet-log-section, .library-group { border: 1px solid var(--fit-line); border-radius: var(--fit-radius); background: #fff; box-shadow: 0 12px 32px rgb(58 77 145 / 7%); }
.today-plan, .daily-checkin { background: #fff; }
.reflection-card { background: var(--fit-sky); }
.sub-hero .page-intro { padding-block: 50px 62px; }
.sub-hero .page-intro h1 { color: var(--fit-ink); max-width: 720px; }
.sub-hero .page-intro p, .sub-hero .page-number span { color: var(--fit-muted); }
.sub-hero .page-number { color: var(--fit-indigo); }
.page-section { padding-block: 46px 68px; }
.week-switch { background: #eff1fb; }
.week-button.active { background: var(--fit-indigo); color: #fff; }
.side-menu { border-color: var(--fit-line); background: rgb(255 253 248 / 94%); box-shadow: 0 14px 32px rgb(58 77 145 / 13%); }
.side-menu-toggle { border-radius: 17px; background: var(--fit-indigo); }
.side-menu-links a.active { background: var(--fit-lavender); color: var(--fit-ink); }
.side-menu-links a:hover, .side-menu-links button:hover { background: var(--fit-sage); }

body[data-page="home"] .fitin-home { padding-top: 30px; }
body[data-page="plan"] .sub-hero, body[data-page="training"] .sub-hero, body[data-page="progress"] .sub-hero, body[data-page="profile"] .sub-hero, body[data-page="library"] .sub-hero, body[data-page="diet"] .sub-hero { min-height: auto; }
body[data-page="plan"] .newbie-plan-card { border-color: var(--fit-line); }
body[data-page="plan"] .plan-exercise-visual { display: grid; width: 74px; height: 74px; align-self: center; place-items: center; overflow: hidden; padding: 0; border: 1px solid var(--fit-line); border-radius: 16px; background: var(--fit-sky); cursor: pointer; }
body[data-page="plan"] .plan-exercise-visual img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
body[data-page="training"] .training-toolbar { border-color: var(--fit-line); background: #fff; box-shadow: 0 10px 28px rgb(58 77 145 / 6%); }
body[data-page="training"] .training-log > article { border-color: var(--fit-line); box-shadow: 0 12px 26px rgb(58 77 145 / 6%); }
body[data-page="progress"] .chart-card, body[data-page="profile"] .profile-card, body[data-page="library"] .library-page-card { border-color: var(--fit-line); background: #fff; box-shadow: 0 12px 28px rgb(58 77 145 / 7%); }
body[data-page="diet"] .diet-v3 { border-color: var(--fit-line); background: #fff; box-shadow: 0 16px 34px rgb(58 77 145 / 9%); }
.fitin-onboarding, .profile-modal, .exercise-guide { border: 1px solid var(--fit-line); border-radius: 26px; background: var(--fit-cream); color: var(--fit-ink); }
.fitin-onboarding .onboarding-next, .profile-modal .button-primary { background: var(--fit-indigo); color: #fff; }
.diet-v3 .diet-guidance { background: var(--fit-sage); border-color: #cfe7da; }
.diet-v3 .day-composition-card { background: linear-gradient(135deg, #f8f6ff, var(--fit-sky)); border-color: var(--fit-line); }

@media (max-width: 760px) {
  body { padding-bottom: 84px; }
  .shell { width: min(100% - 28px, 1120px); }
  .fitin-header { position: static; }
  .fitin-header .nav, .sub-hero .nav { min-height: 58px; }
  .fitin-header .brand { display: none; }
  .fitin-nav { position: fixed; z-index: 40; top: auto; right: auto; bottom: 12px; left: 12px; width: calc(100vw - 24px); max-width: calc(100vw - 24px); display: flex; justify-content: space-around; overflow: hidden; padding: 9px 6px; border: 1px solid var(--fit-line); border-radius: 18px; background: rgb(255 253 248 / 96%); box-shadow: 0 12px 30px rgb(58 77 145 / 16%); }
  .fitin-nav a { padding: 8px 7px; font-size: .76rem; white-space: nowrap; }
  .fitin-nav a.active { background: var(--fit-lavender); color: var(--fit-indigo); }
  .side-menu { top: auto; bottom: 88px; left: 12px; transform: none; }
  .side-menu-toggle { width: 48px; min-height: 48px; }
  .side-menu-toggle-text { display: none; }
  .side-menu.open .side-menu-links { grid-template-columns: 178px; }
  .side-menu-links { position: absolute; bottom: 0; left: 56px; border: 1px solid var(--fit-line); border-radius: 16px; background: var(--fit-cream); }
  .today-hero { min-height: 0; padding: 28px 22px 0; }
  .hero-photo { min-height: 215px; border-radius: 22px 22px 0 0; }
  .sub-hero .page-intro { padding-block: 35px 42px; }
  .sub-hero .page-intro h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .page-section { padding-block: 30px 46px; }
}

/* Sub-pages use the same light shell as the rest of the product. */
.sub-hero .brand,
.sub-hero .fitin-nav a {
  color: var(--fit-ink);
}

.sub-hero .brand-mark {
  color: #fff;
  background: linear-gradient(135deg, var(--fit-indigo), #32aaa0);
  box-shadow: 0 8px 18px rgba(79, 95, 198, 0.22);
}

.sub-hero .fitin-nav a:hover,
.sub-hero .fitin-nav a.active {
  color: var(--fit-indigo);
  background: var(--fit-lavender);
  border-bottom-color: transparent;
}
