:root {
  color-scheme: light;
  --ink: #1e302a;
  --muted: #718078;
  --line: #e4e8df;
  --paper: #f6f5f1;
  --white: #fff;
  --green: #386c50;
  --green-dark: #28553e;
  --green-soft: #e6eee7;
  --lime: #d5ea9c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible + .custom-check { outline: 3px solid #94bba2; outline-offset: 3px; }
.app-shell { max-width: 1100px; margin: auto; padding: 0 30px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce2d8; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 850; letter-spacing: .14em; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--white); font-size: 23px; line-height: 1; }
.topbar-date { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #839086; }
.intro { padding: 60px 0 35px; }
.eyebrow, .small-label, .section-kicker, .week-label { font-size: 11px; letter-spacing: .16em; font-weight: 850; color: var(--green); }
.eyebrow { display: flex; gap: 8px; align-items: center; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #82a46a; }
h1, h2, p { margin-top: 0; }
h1 { margin: 20px 0 16px; max-width: 690px; font-size: clamp(42px, 6.4vw, 70px); line-height: 1.06; font-weight: 760; letter-spacing: -.052em; }
h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.intro > p { font-size: 16px; color: var(--muted); line-height: 1.6; }
.day-panel { background: var(--green); color: white; border-radius: 23px; padding: 29px 32px 0; box-shadow: 0 14px 35px #315b4018; }
.day-panel-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.day-panel .small-label { color: var(--lime); margin-bottom: 12px; }
.day-panel h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 7px; text-transform: capitalize; }
.day-subtitle { margin: 0; opacity: .78; font-size: 15px; }
.progress-ring { --progress: 0%; flex: 0 0 88px; width: 88px; height: 88px; background: conic-gradient(var(--lime) var(--progress), #72967b var(--progress)); border-radius: 50%; display: grid; place-items: center; position: relative; }
.progress-ring::before { content: ""; background: var(--green); position: absolute; inset: 8px; border-radius: 50%; }
.progress-ring strong { position: relative; font-size: 23px; letter-spacing: -.04em; }
.progress-track { height: 5px; margin-top: 25px; background: #71917a; border-radius: 5px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--lime); border-radius: 5px; transition: width .25s; }
.day-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; min-height: 56px; border-top: 1px solid #ffffff2c; }
.text-button { background: none; border: 0; color: white; padding: 8px 0; font-size: 13px; font-weight: 750; }
.text-button:hover { color: var(--lime); }
.text-button:disabled { opacity: .38; cursor: default; }
.week-toggle { color: var(--lime); }
.week-toggle span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.week-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.week-view { padding: 14px 0 27px; border-top: 1px solid #ffffff2c; }
.week-view[hidden] { display: none; }
.week-label { color: var(--lime); margin-bottom: 12px; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { background: #ffffff16; color: white; border: 1px solid #ffffff25; border-radius: 12px; padding: 11px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-day.is-current { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.week-day:hover { border-color: var(--lime); }
.week-day span { font-size: 10px; opacity: .7; text-transform: uppercase; font-weight: 700; }
.week-day strong { font-size: 20px; }
.week-day small { font-size: 10px; min-height: 13px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; margin: 20px 0 30px; }
.card { background: var(--white); border: 1px solid #e9ede5; border-radius: 22px; padding: 26px 27px; box-shadow: 0 3px 18px #27442d08; }
.activity-card { grid-row: span 2; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.section-kicker { margin-bottom: 8px; }
.card h2 { font-size: 25px; letter-spacing: -.04em; margin: 0; }
.count-pill { padding: 7px 10px; border-radius: 50px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.section-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin-bottom: 19px; }
.section-note:empty { display: none; }
.checklist, .meal-list { border-top: 1px solid var(--line); }
.check-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 71px; border-bottom: 1px solid var(--line); }
.exercise-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 16px; padding: 17px 0; min-height: 0; }
.exercise-visual { width: 112px; align-self: start; }
.exercise-art { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; background: #eef4ed; }
.exercise-copy { min-width: 0; }
.exercise-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.exercise-top .check-main { padding: 0; gap: 9px; align-items: flex-start; }
.exercise-top .custom-check { margin-top: 1px; }
.exercise-top .check-name { font-size: 13px; line-height: 1.35; }
.exercise-top .amount { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; background: #f1f5ee; color: var(--green-dark); font-size: 11px; font-weight: 750; }
.exercise-cues { margin: 9px 0 8px 29px; padding: 0; color: #52645a; font-size: 12px; line-height: 1.5; }
.exercise-cues li + li { margin-top: 4px; }
.exercise-breath { margin: 0 0 11px 29px; color: #52645a; font-size: 11px; line-height: 1.5; }
.exercise-breath strong { display: block; color: var(--green-dark); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.exercise-copy .video-link { display: inline-block; margin-left: 29px; }
.check-main { display: flex; align-items: center; gap: 13px; min-width: 0; cursor: pointer; padding: 15px 0; flex: 1; }
.check-main input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { width: 21px; height: 21px; flex: 0 0 21px; border: 1.7px solid #afc0b1; border-radius: 6px; display: grid; place-items: center; color: white; transition: background .15s, border-color .15s; }
.check-main input:checked + .custom-check { background: var(--green); border-color: var(--green); }
.check-main input:checked + .custom-check::after { content: "✓"; font-size: 14px; font-weight: 800; }
.check-name { font-size: 14px; font-weight: 690; line-height: 1.35; }
.is-done .check-name { color: #8a9990; text-decoration: line-through; text-decoration-color: #bdc8bf; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.amount { color: var(--muted); font-size: 12px; white-space: nowrap; }
.video-link { text-decoration: none; font-size: 12px; color: var(--green); font-weight: 800; border: 1px solid #dae7dd; border-radius: 20px; padding: 7px 9px; white-space: nowrap; }
.video-link:hover { background: var(--green-soft); }
.video-link span { font-size: 9px; margin-right: 3px; }
.helper-note { color: #93a098; font-size: 11px; line-height: 1.5; margin: 15px 0 0; }
.helper-note[hidden] { display: none; }
.meal-row { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.meal-row .check-main { padding-bottom: 4px; }
.meal-details { margin-left: 34px; }
.meal-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; }
.meal-details summary::-webkit-details-marker, .swap-guide summary::-webkit-details-marker { display: none; }
.meal-details summary span { color: var(--green); font-size: 17px; transition: transform .2s; }
.meal-details[open] summary span { transform: rotate(180deg); }
.meal-details ul { color: #4f6056; font-size: 12px; line-height: 1.7; padding-left: 18px; margin: 10px 0 3px; }
.swap-guide { margin-top: 15px; background: #eff4ed; border-radius: 12px; padding: 0 14px; }
.activity-card .swap-guide { margin: 0 0 18px; }
.activity-card .swap-guide[hidden] { display: none; }
.swap-guide summary { padding: 13px 0; cursor: pointer; display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--green-dark); list-style: none; }
.swap-content { border-top: 1px solid #d8e5d8; padding: 12px 0 2px; }
.swap-content p { font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
.swap-content .muted { color: var(--muted); }
.habit-row { display: block; min-height: 0; padding-bottom: 14px; }
.habit-row .check-main { padding-bottom: 2px; }
.habit-row p { margin: 0 0 0 34px; color: var(--muted); font-size: 12px; line-height: 1.5; }
footer { padding: 14px 0 35px; color: #8d9990; font-size: 11px; }
footer p { margin: 0; }
.backup-guide { margin-top: 12px; max-width: 520px; }
.backup-guide summary { cursor: pointer; color: var(--green-dark); font-weight: 750; list-style: none; }
.backup-guide summary::-webkit-details-marker { display: none; }
.backup-guide p { margin-top: 9px; line-height: 1.5; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.backup-actions button { border: 1px solid #c5d4c7; border-radius: 8px; background: #fff; color: var(--green-dark); padding: 8px 11px; font-size: 12px; font-weight: 750; }
.backup-actions button:hover { background: #eff4ed; }

@media (max-width: 880px) {
  .content-grid { display: block; }
  .card { margin-bottom: 16px; }
}

@media (max-width: 760px) {
  .app-shell { padding: 0 17px; }
  .topbar { height: 66px; }
  .brand { font-size: 12px; }
  .topbar-date { font-size: 9px; }
  .intro { padding: 43px 0 25px; }
  h1 { font-size: clamp(40px, 11vw, 58px); }
  .intro > p { font-size: 14px; }
  .day-panel { padding: 24px 22px 0; border-radius: 19px; }
  .progress-ring { width: 72px; height: 72px; flex-basis: 72px; }
  .progress-ring strong { font-size: 19px; }
  .content-grid { display: block; }
  .card { margin-bottom: 14px; padding: 23px 20px; border-radius: 19px; }
}

@media (max-width: 430px) {
  .topbar-date { display: none; }
  .day-panel h2 { font-size: 27px; }
  .day-controls .text-button { font-size: 12px; }
  .check-row { align-items: flex-start; flex-wrap: wrap; padding: 8px 0; gap: 0; }
  .check-row .check-main { padding: 7px 0; flex-basis: 100%; }
  .row-meta { margin: 0 0 6px 34px; justify-content: flex-start; }
  .exercise-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 15px 0; }
  .exercise-visual { width: 82px; }
  .exercise-top { flex-wrap: wrap; gap: 5px; }
  .exercise-top .check-main { flex-basis: 100%; }
  .exercise-top .amount { margin-left: 29px; }
  .exercise-cues { margin-top: 7px; }
  .habit-row .check-main { padding-bottom: 2px; }
  .week-days { gap: 4px; }
  .week-day { border-radius: 8px; }
  .week-day strong { font-size: 16px; }
}

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