/* Wevzi Dryland v4: season program, competitions, parents' guide */
.plan-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.plan-head .eyebrow, .page-head .eyebrow { display: inline-block; margin-bottom: 10px; }
.plan-head .btn svg, .plan-home .btn svg { width: 18px; height: 18px; }
.plan-wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; padding-bottom: 64px; }
.plan-home { padding-top: 8px; padding-bottom: 28px; }
.plan-home .wrap { display: flex; flex-direction: column; gap: 14px; }
.footer-link { color: var(--accent); font-weight: 700; margin-left: 8px; }

/* today */
.today-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 26px; border-left: 4px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 12%, var(--surface)), var(--surface) 60%); }
.today-card.is-done { border-left-color: var(--work); }
.today-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.today-card h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.coach-says { margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(6, 17, 28, .55); border: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; max-width: 640px; }
.coach-says b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.today-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.today-min { display: flex; align-items: baseline; gap: 5px; }
.today-min b { font-family: var(--font-head); font-size: 54px; font-weight: 800; line-height: 1; }
.today-min span { color: var(--muted); font-weight: 600; }
.today-side.rest svg { width: 64px; height: 64px; color: var(--dim); }

/* phase + next meet */
.plan-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.phase-card, .meet-card, .meet-ask { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.phase-card > *, .meet-card > * { max-width: 100%; }
.phase-card h3, .meet-card h3, .meet-ask h3 { font-size: 26px; font-weight: 800; }
.phase-card .field-label, .meet-card .field-label, .meet-ask .field-label { margin: 0; display: flex; align-items: center; gap: 7px; }
.meet-card .field-label svg, .meet-ask .field-label svg { width: 16px; height: 16px; color: var(--rest); }
.phase-card .muted, .meet-card .muted, .meet-ask .muted { font-size: 14px; }
.phase-steps { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 4px; }
.phase-steps span { flex: 1 1 0; min-width: 70px; font-size: 11.5px; font-weight: 700; color: var(--dim); display: flex; flex-direction: column; gap: 5px; }
.phase-steps i { height: 5px; border-radius: 999px; background: var(--surface-3); }
.phase-steps .past i { background: var(--work); }
.phase-steps .on { color: var(--text); }
.phase-steps .on i { background: var(--accent); }
.meet-count { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--rest); line-height: 1.1; }
.meet-ask { border-color: color-mix(in srgb, var(--rest) 45%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--rest) 10%, var(--surface)), var(--surface)); }
.meet-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-btns .btn { height: 46px; padding: 0 18px; }

/* week */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.week-head > div { text-align: center; }
.week-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wd { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 148px; transition: transform .2s, border-color .2s; border-top: 3px solid var(--c, var(--surface-3)); }
a.wd:hover { transform: translateY(-3px); border-color: var(--line-2); border-top-color: var(--c); }
.wd.rest { opacity: .6; border-top-color: var(--surface-3); }
.wd.today { outline: 2px solid var(--accent); outline-offset: 2px; opacity: 1; }
.wd.is-done { border-top-color: var(--work); background: color-mix(in srgb, var(--work) 8%, var(--surface)); }
.wd.missed .wd-state { color: var(--dim); }
.wd-day { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wd-day b { font-family: var(--font-head); font-size: 22px; color: var(--text); letter-spacing: 0; }
.wd-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.wd-body b { font-size: 14.5px; line-height: 1.25; }
.wd-body small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.wd-state { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--surface-3)) 22%, transparent); color: var(--c, var(--muted)); }
.wd-state svg { width: 15px; height: 15px; }
.wd.is-done .wd-state { background: var(--work); color: #04121d; }
.wd.race { border-top-color: var(--rest); }
.wd.race .wd-state { background: var(--rest); color: #04121d; }

/* competitions list */
.meets { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.meets .btn { height: 44px; }
.meets .btn svg { width: 16px; height: 16px; }
.meet-list { display: flex; flex-direction: column; gap: 8px; }
.meet-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.meet-row.yes { border-color: color-mix(in srgb, var(--work) 50%, transparent); }
.meet-row.no { opacity: .6; }
.meet-date { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.meet-date b { font-family: var(--font-head); font-size: 24px; color: var(--text); }
.meet-info { display: flex; flex-direction: column; min-width: 0; }
.meet-info small { color: var(--muted); font-size: 12.5px; }
.seg.seg-3 { display: inline-grid; grid-template-columns: repeat(3, auto); }
.seg.seg-3 button { padding: 0 12px; height: 34px; font-size: 12.5px; }
.meet-row.yes .seg button[aria-pressed="true"] { background: var(--work); color: #04121d; }
.ch-form .meet-row { grid-template-columns: 1fr auto; }

/* session page + setup */
.block-note { margin: -4px 0 10px; color: var(--muted); font-size: 14px; font-style: italic; }
.wz-row.wz-row-2 { grid-template-columns: 1fr 1fr; }

/* parents' guide */
.pg { display: flex; flex-direction: column; gap: 34px; padding-top: 26px; padding-bottom: 72px; max-width: 920px; }
.pg-sec { display: flex; flex-direction: column; gap: 14px; }
.pg-sec h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.pg-sec p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.pg-sec p b, .pg-list b { color: var(--text); }
.pg-now { display: flex; flex-direction: column; gap: 12px; border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pg-now .stat b { font-size: 22px; }
.pg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pg-list li { display: flex; gap: 11px; align-items: flex-start; }
.pg-list svg { width: 20px; height: 20px; flex: none; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--work) 18%, transparent); color: var(--work); margin-top: 2px; }
.pg-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pg-seasons .card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pg-seasons ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 14.5px; }
.pg-seasons ol b { color: var(--text); }
.pg-ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-age { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pg-age h3 { font-size: 22px; }
.pg-age p { font-size: 14.5px; }
.pg-age.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pg-faq { display: flex; flex-direction: column; gap: 8px; }
.pg-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pg-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.pg-faq details p { margin-top: 8px; font-size: 15px; }

@media (max-width: 980px) {
  .plan-grid, .pg-seasons, .pg-ages { grid-template-columns: 1fr; }
  .week-days { grid-template-columns: 1fr; }
  .wd { flex-direction: row; align-items: center; min-height: 0; border-top: 1px solid var(--line); border-left: 4px solid var(--c, var(--surface-3)); padding: 12px 14px; }
  .wd.rest { border-left-color: var(--surface-3); }
  .wd.is-done { border-left-color: var(--work); }
  .wd.race { border-left-color: var(--rest); }
  .wd-day { flex-direction: column; align-items: center; width: 44px; flex: none; gap: 0; }
}
@media (max-width: 760px) {
  .today-card { grid-template-columns: 1fr; padding: 20px 18px; gap: 16px; }
  .today-side { flex-direction: row; justify-content: space-between; width: 100%; }
  .today-side .btn { flex: 1; }
  .today-min b { font-size: 40px; }
  .meet-row { grid-template-columns: 44px 1fr; }
  .meet-row .seg, .meet-row > .del { grid-column: 1 / -1; justify-self: start; }
  .wz-row.wz-row-2 { grid-template-columns: 1fr; }
  .meet-btns .btn { flex: 1 1 auto; }
}

.meet-owner { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* v6: start button, rewards, celebration, tour */
.go-btn { min-width: 190px; font-size: 19px; }
.today-side .linkish { font-size: 13.5px; }
.rewards { display: flex; flex-direction: column; gap: 16px; }
.rw-top { display: grid; grid-template-columns: auto auto 1fr; gap: 22px; align-items: center; }
.rw-stat { display: flex; align-items: center; gap: 12px; }
.rw-stat b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; }
.rw-stat span { color: var(--muted); font-size: 13px; }
.rw-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--rest) 18%, transparent); color: var(--rest); flex: none; }
.rw-ico.fire { background: color-mix(in srgb, #fb923c 20%, transparent); color: #fb923c; }
.rw-ico svg { width: 24px; height: 24px; }
.rw-next { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--muted); min-width: 0; }
.rw-next b { color: var(--text); }
.rw-badges { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.rw-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); opacity: .45; }
.rw-badge i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.rw-badge i svg { width: 18px; height: 18px; }
.rw-badge b { font-family: var(--font-head); font-size: 17px; }
.rw-badge small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.rw-badge.got { opacity: 1; border-color: color-mix(in srgb, var(--rest) 55%, transparent); background: color-mix(in srgb, var(--rest) 9%, var(--bg-2)); }
.rw-badge.got i { background: var(--rest); color: #04121d; }
.done { position: relative; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 15px; border-radius: 2px; opacity: 0; animation: confetti-fall 2.6s ease-in forwards; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
.done-newbadge { display: inline-flex; align-items: center; gap: 12px; margin: 4px auto; padding: 12px 20px; border-radius: 16px; background: color-mix(in srgb, var(--rest) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rest) 55%, transparent); font-family: var(--font-head); font-size: 22px; font-weight: 800; text-align: left; }
.done-newbadge svg { width: 34px; height: 34px; color: var(--rest); flex: none; }
.done-newbadge small { display: block; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rest); }
.tour { position: fixed; inset: 0; z-index: 400; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(2, 8, 14, .78); outline: 3px solid var(--accent); outline-offset: 0; transition: all .25s ease; pointer-events: none; }
.tour-card { position: fixed; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: top .25s ease, left .25s ease; }
.tour-card h3 { font-size: 22px; font-weight: 800; }
.tour-card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.tour-card p b { color: var(--text); }
.tour-n { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.tour-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.tour-acts span { display: flex; gap: 8px; }
.tour-acts .btn { height: 44px; padding: 0 18px; }
.tour-acts .linkish { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .rw-top { grid-template-columns: 1fr 1fr; }
  .rw-next { grid-column: 1 / -1; }
  .rw-badges { grid-template-columns: repeat(4, 1fr); }
  .go-btn { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* v6: on phones the menu is a tab bar at the bottom, where thumbs are */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: nowrap; }
  .topbar-inner .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; width: auto; order: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; overflow: visible;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(6, 17, 28, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); }
  .nav a { padding: 10px 2px; font-size: 11px; font-weight: 700; text-align: center; border-radius: 12px; overflow: hidden; text-overflow: ellipsis; }
  .nav a.active { background: var(--surface-2); color: var(--accent); }
  .nav a.timing { justify-content: center; font-size: 10.5px; }
  body { padding-bottom: 62px; }
  .toast { bottom: 78px; }
  .b-mini { bottom: 62px; }
}
@media (max-width: 760px) { .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); } .topbar-inner { height: 56px; padding-top: 0; padding-bottom: 0; } }

/* v7: greeting, missions, levels and motion */
.plan-head { position: relative; overflow: hidden; }
.plan-head h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--wz-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-head p b { color: var(--text); }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.plan-head > div:not(.bubbles), .plan-head > a { position: relative; z-index: 1; }
.bubbles i { position: absolute; bottom: -30px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(103, 232, 249, .35); background: rgba(103, 232, 249, .06); animation: bubble 9s linear infinite; }
.bubbles i:nth-child(1) { left: 6%; animation-duration: 8s; }
.bubbles i:nth-child(2) { left: 18%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: 2s; }
.bubbles i:nth-child(3) { left: 31%; width: 20px; height: 20px; animation-duration: 13s; animation-delay: 1s; }
.bubbles i:nth-child(4) { left: 46%; animation-duration: 9s; animation-delay: 4s; }
.bubbles i:nth-child(5) { left: 58%; width: 8px; height: 8px; animation-duration: 7s; animation-delay: 3s; }
.bubbles i:nth-child(6) { left: 69%; width: 18px; height: 18px; animation-duration: 12s; }
.bubbles i:nth-child(7) { left: 80%; animation-duration: 10s; animation-delay: 5s; }
.bubbles i:nth-child(8) { left: 90%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 1.5s; }
.bubbles i:nth-child(9) { left: 96%; width: 16px; height: 16px; animation-duration: 14s; animation-delay: 6s; }
@keyframes bubble { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translate(12px, -140px); } 100% { transform: translate(-8px, -300px); opacity: 0; } }
.rise { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.today-card:not(.is-done) .go-btn { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7), 0 0 0 0 rgba(var(--accent-rgb), .55); } 50% { box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .7), 0 0 0 12px rgba(var(--accent-rgb), 0); } }
.go-btn:hover { transform: translateY(-2px) scale(1.03); }

.missions { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(150deg, color-mix(in srgb, var(--wz-green) 9%, var(--surface)), var(--surface) 55%); }
.ms-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ms-head h3 { font-size: 22px; font-weight: 800; margin-top: 2px; }
.ms-stars, .week-stars { display: flex; align-items: center; gap: 4px; }
.ms-stars i, .week-stars i { width: 34px; height: 34px; color: var(--surface-3); transition: color .3s, transform .3s; }
.ms-stars i svg, .week-stars i svg { width: 100%; height: 100%; }
.ms-stars i.on, .week-stars i.on { color: var(--rest); filter: drop-shadow(0 0 8px rgba(251, 191, 36, .5)); animation: pop-star .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.ms-stars.all i { animation: pop-star .5s cubic-bezier(.2, 1.6, .4, 1) both, twinkle 1.6s ease-in-out .5s infinite; }
@keyframes pop-star { from { transform: scale(.3) rotate(-30deg); } to { transform: none; } }
@keyframes twinkle { 50% { transform: scale(1.15) rotate(6deg); } }
.week-stars { justify-content: center; margin-top: 6px; }
.week-stars i { width: 22px; height: 22px; }
.week-stars span { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; }
.ms-list li.done { border-color: color-mix(in srgb, var(--wz-green) 45%, transparent); }
.ms-list li.done .ms-title { color: var(--muted); }
.ms-box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #04121d; flex: none; }
.ms-list li.done .ms-box { background: var(--wz-green); border-color: var(--wz-green); animation: pop-star .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.ms-box svg { width: 16px; height: 16px; }
.ms-list .chip { height: 36px; padding: 0 14px; font-weight: 800; color: var(--text); border-color: var(--line-2); display: inline-flex; align-items: center; gap: 6px; }
.ms-list .chip svg { width: 13px; height: 13px; }
.ms-yn { display: flex; gap: 6px; }

.rw-level { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rw-lv { width: 78px; height: 78px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--wz-blue), #38bdf8); box-shadow: 0 12px 28px -12px rgba(var(--accent-rgb), .8); }
.rw-lv small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.rw-lv b { font-family: var(--font-head); font-size: 36px; font-weight: 800; line-height: 1; }
.rw-lvbody { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rw-lvbody > b { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.rw-lvbody span { color: var(--muted); font-size: 13.5px; }
.rw-ico.fire.lit svg { animation: flicker 1.3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.14) rotate(3deg); } }
.rw-badge.got { animation: none; transition: transform .2s; }
.rw-badge.got:hover { transform: translateY(-4px) rotate(-2deg); }
.wd { animation: none; }
a.wd.today:not(.is-done) .wd-state { animation: nudge 2.4s ease-in-out infinite; }
@media (max-width: 760px) { .ms-stars i { width: 28px; height: 28px; } .ms-list li { font-size: 14.5px; padding: 10px 12px; gap: 10px; } .rw-lv { width: 66px; height: 66px; } }
@media (prefers-reduced-motion: reduce) { .bubbles, .rise { animation: none; } .bubbles { display: none; } .go-btn, .ms-stars i, .rw-ico svg, .wd-state { animation: none !important; } }

/* v7: keep the today card inside a phone screen */
.today-card { grid-template-columns: minmax(0, 1fr) auto; }
.coach-says { max-width: min(640px, 100%); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .today-card { grid-template-columns: minmax(0, 1fr); }
  .today-side { flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
  .today-side .go-btn { flex: 1 1 150px; }
  .today-side .linkish { flex: 1 1 100%; }
}

/* ───────── v25: program page layout ───────── */
.plan-wrap > .plan-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
.week-block { display: flex; flex-direction: column; gap: 14px; }
.week-block .week-head { margin-top: 0; }
.lvl-card { gap: 14px; }
.lvl-card .rw-level { align-items: center; }
.lvl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lvl-card .rw-badges { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.lvl-card .rw-badge { padding: 6px 2px; border-radius: 12px; }
.lvl-card .rw-badge i { width: 28px; height: 28px; }
.lvl-card .rw-badge i svg { width: 15px; height: 15px; }
.lvl-card .rw-badge b { font-size: 14px; }
.lvl-next { margin: 0; font-size: 14px; }
/* competitions fold */
details.meets > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.meets > summary::-webkit-details-marker { display: none; }
.meets-sum > span { display: flex; flex-direction: column; gap: 2px; }
.meets-sum b { font-family: var(--font-head); font-size: 20px; }
.meets-sum small { color: var(--muted); font-size: 14px; }
.meets-chev { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: transform .25s ease; }
.meets-chev::before { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
details.meets[open] .meets-chev { transform: rotate(180deg); }
details.meets:not([open]) { gap: 0; }
@media (max-width: 860px) { .plan-wrap > .plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lvl-card .rw-badges { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; } .lvl-card .rw-badge i { width: 24px; height: 24px; } }

/* ───────── v25: practice days in the setup ───────── */
.wz-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wz-day { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); color: var(--text, #e6f0f7); font: inherit; font-weight: 800; text-transform: capitalize; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.wz-day[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--bg-2)); }
.wz-day:active { transform: scale(.96); }
@media (max-width: 420px) { .wz-days { gap: 4px; } .wz-day { font-size: 13px; padding: 0; } }

/* ───────── v25: level-up party ───────── */
.lvup { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 30, .78); backdrop-filter: blur(6px); animation: fade .25s ease; }
.lvup.out { opacity: 0; transition: opacity .3s ease; }
.lvup-card { position: relative; z-index: 1; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 22px 24px; text-align: center; border-radius: 28px; background: linear-gradient(180deg, var(--wz-blue), #0b108f); border: 2px solid var(--wz-green); box-shadow: 0 30px 80px -20px rgba(var(--wz-blue-rgb), .8); animation: lvPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.lvup-card h2 { margin: 0; font-size: 26px; color: #fff; }
.lvup-card .muted { color: rgba(255, 255, 255, .8); margin: 0; }
.lvup-kicker { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--wz-green); }
.lvup-medal { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, #c6ff9e, var(--wz-green) 45%, #3f9b24); color: #04121f; box-shadow: 0 0 0 8px rgba(255, 255, 255, .15), 0 18px 40px -10px rgba(0, 0, 0, .5); animation: lvSpin 1s cubic-bezier(.2, 1.2, .4, 1) .15s both; }
.lvup-medal small { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lvup-medal b { font-family: var(--font-head); font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums; }
.lvup-ring { position: absolute; inset: -14px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .55); animation: lvRing 6s linear infinite; }
.lvup-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.lvup-burst i { position: absolute; width: 10px; height: 18px; border-radius: 3px; background: var(--c); transform: rotate(var(--a)) translateY(0); opacity: 0; animation: lvBurst 1.4s cubic-bezier(.1, .8, .3, 1) calc(.25s + var(--d)) both; }
@keyframes lvPop { from { transform: scale(.6) translateY(30px); opacity: 0; } }
@keyframes lvSpin { from { transform: scale(.3) rotate(-200deg); opacity: 0; } }
@keyframes lvRing { to { transform: rotate(360deg); } }
@keyframes lvBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.6); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-46vmin) scale(1); } }
@media (prefers-reduced-motion: reduce) { .lvup-card, .lvup-medal, .lvup-ring, .lvup-burst i { animation: none !important; } .lvup-burst { display: none; } }

/* ───────── v26: habit star and the stars on the Progress calendar ───────── */
.ms-list li.said .ms-title { color: var(--muted); font-style: italic; }
.cal-cell { position: relative; }
.cal-stars { position: absolute; top: 6px; right: 6px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1px; max-width: 46%; }
.cal-stars i { width: 7px; height: 7px; background: #ffc531; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cal-stars.all i { background: #ffd84d; filter: drop-shadow(0 0 3px rgba(255, 197, 49, .8)); }
.cal-legend .cal-stars { position: static; display: inline-flex; margin-right: 6px; vertical-align: middle; }
.cal-legend .cal-stars i { width: 11px; height: 11px; }
@media (min-width: 700px) { .cal-stars i { width: 9px; height: 9px; } }

/* ───────── v30: the level card with the animal, its ring and the badge pictures ───────── */
.lvl-top { display: flex; align-items: center; gap: 18px; }
.lvl-avatar { position: relative; flex: none; width: 128px; height: 128px; display: grid; place-items: center; }
.lvl-avatar img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(var(--wz-blue-rgb), .45)); animation: lvlFloat 3.2s ease-in-out infinite; }
.lvl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lvl-ring circle { fill: none; stroke-width: 9; }
.lvl-ring .bg { stroke: var(--surface-3); }
.lvl-ring .fg { stroke: var(--wz-green); stroke-linecap: round; stroke-dashoffset: var(--off); animation: lvlRing 1.2s cubic-bezier(.2, .8, .2, 1) both; filter: drop-shadow(0 0 6px rgba(var(--wz-green-rgb), .6)); }
.lvl-chip { position: absolute; right: -2px; bottom: 2px; display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 10px; border-radius: 999px; background: var(--wz-blue); color: #fff; border: 2px solid var(--wz-green); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
.lvl-chip small { font-size: 11px; font-weight: 800; opacity: .85; }
.lvl-chip b { font-family: var(--font-head); font-size: 18px; line-height: 1; }
.lvl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lvl-info h3 { margin: 0; font-size: 24px; }
.lvl-ring-note { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.lvl-ring-note b { color: var(--wz-green); }
.lvl-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.lvl-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 6px 2px; border-radius: 14px; }
.lvl-badge img { width: 54px; height: 54px; object-fit: contain; filter: grayscale(1) brightness(.45); opacity: .55; transition: transform .2s; }
.lvl-badge small { font-size: 10.5px; line-height: 1.15; color: var(--dim, var(--muted)); }
.lvl-lock { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.lvl-badge.got img { filter: none; opacity: 1; animation: lvlPop .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * 60ms); }
.lvl-badge.got small { color: var(--text, #e6f0f7); font-weight: 700; }
.lvl-badge.got:hover img { transform: rotate(-8deg) scale(1.12); }
.lvl-badge.newest { background: color-mix(in srgb, #ffc531 12%, transparent); }
.lvl-badge.newest img { animation: lvlPop .5s cubic-bezier(.2, 1.5, .4, 1) both, lvlShine 2.6s ease-in-out 1s infinite; }
.lvup-pet { width: 96px; height: 96px; object-fit: contain; margin: -40px auto 0; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.done-newbadge img { width: 72px; height: 72px; object-fit: contain; flex: none; animation: lvlPop .6s cubic-bezier(.2, 1.5, .4, 1) .3s both; }
@keyframes lvlRing { from { stroke-dashoffset: var(--full); } }
@keyframes lvlFloat { 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes lvlPop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
@keyframes lvlShine { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 197, 49, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 197, 49, .9)); transform: scale(1.06); } }
@media (max-width: 640px) { .lvl-avatar { width: 108px; height: 108px; } .lvl-avatar img { width: 84px; height: 84px; } .lvl-badges { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); } .lvl-badge img { width: 46px; height: 46px; } .lvl-lock { top: 18px; } }
@media (prefers-reduced-motion: reduce) { .lvl-avatar img, .lvl-ring .fg, .lvl-badge img, .lvl-badge.newest img, .done-newbadge img { animation: none !important; } }

/* ───────── v32: simpler top menu (Program · Sessions · Swim track · Progress · More) ───────── */
.nav { align-items: center; }
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14.5px var(--font); cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav-more-btn:hover { color: var(--text); background: rgba(148, 197, 255, 0.08); }
.nav-more-btn.active, .nav-more.open .nav-more-btn { color: var(--text); background: var(--surface-2); }
.nav-more-btn:focus-visible, .nav-menu a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nm-chev { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-more.open .nm-chev { transform: rotate(180deg); }
.nm-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--work); box-shadow: 0 0 0 0 var(--work); animation: nmPulse 1.6s ease-out infinite; }
.nav-more-btn.timing .nm-dot { display: inline-block; }
@keyframes nmPulse { 70% { box-shadow: 0 0 0 6px transparent; } }
.nav-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 460px; padding: 10px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .7); transform-origin: top right; animation: nmIn .18s ease-out; }
.nav-menu[hidden] { display: none; }
@keyframes nmIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.nm-col { display: grid; align-content: start; gap: 2px; }
.nm-col small { padding: 6px 12px 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-menu a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.nav-menu a:hover { background: var(--surface-2); }
.nav-menu a.active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.nav-menu a svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.nav-menu a.timing { color: var(--work); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .topbar-inner .nav { grid-template-columns: repeat(5, 1fr); }
  .nav-more { display: contents; }
  .nav-more-btn { justify-content: center; gap: 3px; padding: 10px 2px; border-radius: 12px; font-size: 11px; font-weight: 700; }
  .nm-chev { width: 13px; height: 13px; transform: rotate(180deg); }
  .nav-more.open .nm-chev { transform: none; }
  .nav-menu { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); width: auto; grid-template-columns: 1fr; max-height: calc(100vh - 140px); overflow: auto; transform-origin: bottom center; }
  .nav-menu a { min-height: 48px; font-size: 16px; }
}

/* Timer: follow a video and play your music while the clock runs */
.tm-vid { position: relative; width: 100%; max-width: 560px; align-self: center; aspect-ratio: 16 / 9; margin-bottom: 14px; overflow: hidden; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tm-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-vid.empty { display: grid; place-items: center; aspect-ratio: 16 / 6; }
.tm-vid.empty span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.tm-vid.empty svg { width: 20px; height: 20px; }
.tm-vname { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 11, 30, .7); color: #fff; font-size: 12.5px; font-weight: 700; }
.tm-picks { display: grid; width: 100%; max-width: 560px; align-self: center; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; text-align: left; }
.tm-picks .tm-vol { grid-column: 1 / -1; }
.tm-picks .tm-vol input { width: 100%; accent-color: var(--accent); }
.tm-picks select { width: 100%; }
.tm-swimlink { display: flex; align-items: center; gap: 12px; color: var(--text); transition: border-color .2s ease; }
.tm-swimlink:hover { border-color: var(--line-2); }
.tm-swimlink > svg { flex: none; width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-swimlink span { display: grid; gap: 2px; }
.tm-swimlink small { color: var(--muted); }
@media (max-width: 520px) { .tm-picks { grid-template-columns: 1fr; } }

/* Frequent questions and Support */
.faq-wrap { display: grid; gap: 22px; max-width: 860px; padding-bottom: 40px; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 52px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.faq-search:focus-within { border-color: var(--accent); }
.faq-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.faq-search input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--text); font: 16px var(--font); outline: none; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jump a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.faq-jump a:hover { color: var(--text); border-color: var(--line-2); }
.faq-group { scroll-margin-top: 90px; }
.faq-group h2 { margin: 0 0 10px; font-size: 22px; }
.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.faq-more h3, .faq-more p { margin: 0; }
.support-wrap { display: grid; gap: 14px; max-width: 760px; padding-bottom: 40px; }
.support-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.support-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.support-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.support-card > div:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 200px; }
.support-mail { font-size: clamp(15px, 4.4vw, 19px); overflow-wrap: anywhere; }
.support-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.support-list { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nm-dot { animation: none; } .nm-chev { transition: none; } }

/* setup: a different practice time for each day */
.wz-times { display: grid; gap: 8px; }
.wz-time-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 10px auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.wz-time-row b { text-transform: capitalize; }
.wz-time-row .field { margin: 0; }
.wz-time-row input { width: 158px; }
.wz-each { margin-top: 2px; }
@media (max-width: 420px) { .wz-time-row { grid-template-columns: 1fr 1fr; } .wz-time-row b { grid-column: 1 / -1; } .wz-time-row > span { display: none; } .wz-time-row input { width: 100%; } }

/* Swim track: the team practices from the setup */
.sl-prac { display: grid; gap: 12px; margin-bottom: 16px; }
.sl-prac-empty { grid-template-columns: 1fr auto; align-items: center; }
.sl-prac-empty p { margin: 4px 0 0; }
.sl-prac-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sl-prac-head h3 { margin: 2px 0 0; }
.sl-prac-score { font-weight: 700; color: var(--muted); }
.sl-prac-score b { font-family: var(--font-head); font-size: 26px; color: var(--wz-green); }
.sl-prac-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-prac-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.sl-prac-list li.yes { border-color: color-mix(in srgb, var(--wz-green) 55%, transparent); }
.sl-prac-list li.no { opacity: .7; }
.sl-prac-day { flex: 1 1 160px; display: grid; }
.sl-prac-day b { text-transform: capitalize; }
.sl-prac-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.sl-prac-st.ok { color: var(--wz-green); }
.sl-prac-st svg { width: 16px; height: 16px; }
.sl-prac .chip svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .sl-prac-empty { grid-template-columns: 1fr; } }

/* Program week: stars each day earns by itself (dryland or rest, and swim) */
.wd-stars { display: flex; gap: 2px; }
.wd-stars i { width: 20px; height: 20px; color: #ffc531; filter: drop-shadow(0 0 4px rgba(255, 197, 49, .45)); }
.wd-stars i svg { width: 100%; height: 100%; }
.wd.rest .wd-stars i { opacity: 1; }

/* Progress: the month calendar comes first, full width, with dryland and swim minutes in each day */
.prog-cal { padding-top: 6px; }
.prog-cal .cal-cell { aspect-ratio: auto; min-height: 96px; padding: 8px; }
.prog-cal .cal-marks { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.prog-cal .mk { height: 22px; font-size: 12px; }
.prog-cal .cal-n { font-weight: 800; }
.prog-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .prog-cal .cal-cell { min-height: 64px; padding: 4px; }
  .prog-cal .mk { height: 16px; font-size: 10px; padding: 0 3px; }
  .prog-cal .mk em { display: inline; }
  .prog-cal .mk svg { display: none; }
  .prog-grid-2 { grid-template-columns: 1fr; }
}
.prog-cal .mk:has(em:empty) svg { display: block; }
.prog-stats { padding-top: 22px; }

/* Program: next goal, quote, technique focus and challenges (moved here from Sessions) */
.plan-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan-extras > .card { margin: 0; }
.pe-goal h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; }
.pe-goal-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pe-goal-add { display: flex; gap: 8px; }
.pe-goal-add input { flex: 1; min-width: 0; }
.plan-wrap > .trial-bar { margin: 0; }
.sessions-head { padding-bottom: 8px; }
@media (max-width: 760px) { .plan-extras { grid-template-columns: 1fr; } }

/* end of the Program page: the "How your program works" video */
.pg-film { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line-2); text-align: left; color: #fff; font: inherit; cursor: pointer; min-height: 220px; background: #050b2e; }
.pg-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s ease, opacity .3s ease; }
.pg-film:hover img { transform: scale(1.04); opacity: .7; }
.pg-film-in { position: relative; display: flex; align-items: flex-end; gap: 18px; min-height: 220px; padding: 26px; background: linear-gradient(45deg, rgba(4, 8, 40, .85), rgba(4, 8, 40, .15) 70%); }
.pg-film-in b { display: block; font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); }
.pg-film-in small { display: block; max-width: 52ch; opacity: .85; font-size: 15px; margin-top: 4px; }
.pg-film-play { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--wz-green); color: #0b1030; animation: lpPulse 2.2s ease-out infinite; }
.pg-film-play svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.pg-film:focus-visible { outline: 3px solid var(--wz-green); outline-offset: 3px; }
@media (max-width: 560px) { .pg-film-in { flex-direction: column; align-items: flex-start; } .pg-film-play { width: 58px; height: 58px; } }
@media (prefers-reduced-motion: reduce) { .pg-film-play { animation: none; } .pg-film img { transition: none; } }

/* setup: BLAST practice group */
.wz-group { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); border: 1px solid var(--line-2); }
.wz-group .chip[aria-pressed="true"] { background: var(--accent); color: #04121d; border-color: var(--accent); }

/* v49: the Program page has one card per row */
.plan-wrap .plan-grid, .plan-extras { grid-template-columns: 1fr; }
.pg-overview .phase-card { padding-top: 6px; display: grid; gap: 8px; }
.pg-overview .phase-card h3, .pg-overview .phase-card p { margin: 0; }

/* v55: phone fixes — the birthday box fits, and "This week" is one small row with only the exercise days */
input[type="date"] { min-width: 0; max-width: 100%; }
@media (max-width: 560px) {
  .wz-row:has(#wz-bday) { grid-template-columns: 1fr; }
  #wz-bday { width: 100%; display: block; -webkit-appearance: none; appearance: none; min-height: 48px; }
}
@media (max-width: 640px) {
  .week-head h2 { font-size: 20px; }
  .week-head .muted { font-size: 12px; }
  .week-days { display: flex !important; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .week-days::-webkit-scrollbar { display: none; }
  .week-days .wd.rest:not(.today) { display: none; }
  .week-days .wd { flex: 1 0 0; min-width: 54px; min-height: 0 !important; padding: 8px 4px; gap: 4px; align-items: center; text-align: center; flex-direction: column !important; border-radius: 14px; }
  .week-days .wd-body { display: none; }
  .week-days .wd-day { flex-direction: column; align-items: center; gap: 0; font-size: 10px; }
  .week-days .wd-day b { font-size: 18px; }
  .week-days .wd-state { width: 22px; height: 22px; }
  .week-days .wd-state svg { width: 11px; height: 11px; }
  .week-days .wd-stars { justify-content: center; }
  .week-days .wd-stars i { width: 13px; height: 13px; }
}

/* ───────── v60: workout reminders card (phone notifications on dryland days) ───────── */
.rm-card { display: grid; gap: 10px; padding: 14px 16px; }
.rm-row { display: flex; align-items: center; gap: 12px; }
.rm-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.rm-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rm-txt small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.rm-why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--surface-2, rgba(255,255,255,.04)); border-radius: 10px; padding: 8px 10px; }
.rm-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-left: 52px; }
.rm-opts label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rm-opts input[type="time"] { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: inherit; font: inherit; color-scheme: dark; }
@media (max-width: 480px) { .rm-opts { padding-left: 0; } }

/* v62: iPhone time boxes stay inside their card (Safari gives time inputs a wide built-in minimum, like the birthday box) */
input[type="time"] { min-width: 0; max-width: 100%; box-sizing: border-box; }
.wz-time-row .field, .wz-row-2 .field { min-width: 0; }
@media (max-width: 560px) {
  .wz-time-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wz-time-row b { grid-column: 1 / -1; }
  .wz-time-row > span { display: none; }
  .wz-time-row input, .wz-row-2 input[type="time"] { width: 100%; display: block; -webkit-appearance: none; appearance: none; min-height: 46px; }
  .wz-row-2:has(#wz-sfrom) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* v62: kid-friendly Program page */
.plan-head h1.hi { margin: 0; }
.today-card .coach-says small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.today-card .quote-says { font-style: italic; }
.today-card .quote-says b, .today-card .quote-says small { font-style: normal; }
.plan-wrap > .rewards, .plan-wrap > .missions { margin-top: 0; }
.ms-modal { max-width: 520px; padding: 18px; }
.ms-modal .ms-host .missions { margin: 0 0 14px; }
.ms-modal .ms-go { width: 100%; justify-content: center; }
