/* Independent Movers — app styles (loaded after styles.css) */
.app-body { background: var(--mist); min-height: 100vh; }
.app-header { background: #fff; color: var(--ink); border-bottom: 4px solid; border-image: var(--stripe) 1; }
.app-header .header-inner { min-height: 68px; }
.app-header-links { display: flex; align-items: center; gap: 18px; }
.app-header-links .btn { white-space: nowrap; }
.app-header-links a { color: var(--deep); text-decoration: none; font-weight: 500; }
.app-header-links a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .app-header .brand { font-size: 1.05rem; gap: 6px; }
  .app-header .brand .logo-mark { width: 42px; height: 42px; }
  .app-header-links { gap: 10px; font-size: .95rem; }
  .app-header-links .btn { padding: 6px 14px; }
  .app-header-links .avatar-btn .avatar { width: 36px; height: 36px; font-size: .9rem; }
}
/* Room for the profile photo on small phones: the logo already links to the website. */
@media (max-width: 440px) {
  .app-header-links a { display: none; }
}
.app-main { padding: 32px 0 80px; }
.app-main h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.app-main h2 { font-size: 1.4rem; }
.muted { color: var(--muted); }
.ok { color: var(--green); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.link { background: none; border: 0; padding: 8px 0; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: underline; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); max-width: 880px; margin-inline: auto; }
.panel-narrow { max-width: 560px; }
.card-app { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }

/* Auth */
.tabs-2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.tabs-2 button { min-height: 48px; border: 0; border-radius: 999px; background: none; font: 600 1rem var(--sans); color: var(--muted); cursor: pointer; }
.tabs-2 button.on { background: var(--sky); color: var(--on-sky); }
/* .check, a tick-box with its label, is in styles.css: the website forms use it too. */
.form-error { color: var(--red); font-weight: 600; margin: 0; }
.form-error:empty { display: none; }

/* Setup stepper */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; font-size: .9rem; color: var(--muted); }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.stepper li::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: var(--line); }
.stepper li:first-child::before { display: none; }
.stepper span { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-weight: 700; }
.stepper .done span { background: var(--green); border-color: var(--green); color: #fff; }
.stepper .done::before, .stepper .current::before { background: var(--green); }
.stepper .current { color: var(--deep); font-weight: 700; }
.stepper .current span { border-color: var(--sky); background: var(--sky); color: var(--on-sky); }
@media (max-width: 560px) { .stepper { font-size: .72rem; } }

/* Programs */
.program-list { display: grid; gap: 18px; margin-top: 24px; }
.program { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 2px solid var(--deep); border-radius: var(--radius); padding: 24px; }
.program h2 { margin-bottom: .3em; }
.program p { margin: 0 0 .6em; }
.program.disabled { border: 2px dashed var(--line); color: var(--muted); }
.program.disabled h2 { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--mist); color: var(--deep); font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.soon { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* Alerts */
.alert { border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; border-left: 6px solid; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert h2 { font-size: 1.25rem; }
.alert h3 { font-size: 1.1rem; margin-top: 1em; }
.alert-warn { background: #FFF8DF; border-color: var(--accent-dark); }
.alert-info { background: var(--mist); border-color: var(--blue); }
.alert-success { background: var(--green-bg); border-color: var(--green); }
.safety-note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin: 28px 0 0; }

/* Safety questions */
.q-list { padding-left: 1.4em; margin: 24px 0; }
.q-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q-list li::marker { font-weight: 700; color: var(--deep); }
fieldset { border: 0; padding: 0; margin: 0; }
.q-list legend { font-weight: 500; margin-bottom: 12px; padding: 0; }
.yn { display: flex; gap: 12px; }
.yn label, .rating label { margin: 0; cursor: pointer; }
.yn input, .rating input { position: absolute; opacity: 0; }
.yn span, .rating span { display: grid; place-items: center; min-width: 110px; min-height: 52px; border: 2px solid var(--sky); border-radius: 12px; font-weight: 600; color: var(--deep); background: #fff; }
.yn input:checked + span, .rating input:checked + span { border-color: var(--sky); background: var(--sky); color: var(--on-sky); }
.yn input:focus-visible + span, .rating input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.rating { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rating legend { font-weight: 600; color: var(--deep); margin-bottom: 8px; width: 100%; }
.rating span { min-width: 56px; }
.rating small { color: var(--muted); width: 100%; }

/* Assessment */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 26px 0; }
.info-grid > div { background: var(--mist); border-radius: 12px; padding: 20px; }
.info-grid h3 { font-size: 1.1rem; }
.info-grid p { margin: 0; font-size: 1rem; }
.assess-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--deep); }
.assess-head p { margin: 0 0 8px; }
.bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.bar.big { height: 18px; margin-bottom: 22px; }
.assess-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin: 26px 0; }
.assess-body > div:only-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .assess-body { grid-template-columns: 1fr; } }
.target { font-size: 1.2rem; color: var(--deep); background: var(--mist); display: inline-block; padding: 6px 16px; border-radius: 999px; }
.ask { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.ask p { font: 600 1.25rem var(--serif); color: var(--deep); }
.ask .btn-row { justify-content: center; }
.btn-yes, .btn-no { min-width: 200px; min-height: 64px; font-size: 1.15rem; }
.btn-yes { background: var(--green); color: #fff; }
.btn-yes:hover { background: #3B6210; }
.btn-no { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-no:hover { background: var(--sky); color: var(--on-sky); }
.ask p.muted { font: 400 1.05rem var(--sans); color: var(--muted); }
.ask .btn.chosen { box-shadow: 0 0 0 4px var(--sky); }
.assess-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.assess-nav .btn { min-width: 150px; min-height: 56px; }
.assess-nav .btn:only-child { margin-right: auto; }

/* Doctor's clearance: the safety questions and the screen after a "yes" */
.clearance-note { text-align: center; font-size: 1.2rem; color: var(--deep); background: #FFF8DF; border: 2px solid var(--accent-dark); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 24px; }
.clearance { text-align: center; background: #FFF8DF; border: 3px solid var(--accent-dark); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin: 22px 0 26px; }
.clearance-icon { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent); color: var(--deep); font: 700 3rem/76px var(--serif); }
.clearance-tag { font-size: 1rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .3em; }
.clearance h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); color: var(--deep); }
.clearance-lead { font-size: clamp(1.3rem, 2.6vw, 1.55rem); font-weight: 600; color: var(--ink); max-width: 30em; margin-inline: auto; }
.clearance p:last-child { font-size: 1.15rem; max-width: 32em; margin: 0 auto; }
.center-row { justify-content: center; }
.clearance-form { max-width: 620px; margin: 34px auto 0; border: 2px solid var(--deep); border-radius: var(--radius); padding: 24px; justify-items: center; text-align: center; }
.clearance-form h2 { font-size: 1.4rem; margin: 0; }
.clearance-form .check { text-align: left; font-size: 1.12rem; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.placeholder { background: linear-gradient(135deg, var(--deep), var(--blue)); color: #E3EBF3; display: grid; place-content: center; justify-items: center; text-align: center; padding: 16px; font-size: .95rem; }
.video.placeholder .play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .6); display: grid; place-items: center; color: #fff; font-size: 1.3rem; padding-left: 4px; margin-bottom: 10px; }
.video.placeholder p { margin: 0; }
.video.placeholder strong { color: #fff; }

/* Levels */
.levels { list-style: none; padding: 0; margin: 20px 0; }
.levels li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.levels li > div:first-child span { display: block; font-size: .95rem; }
.lvl { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--deep); }
.pips { display: inline-flex; gap: 5px; }
.pips i { width: 18px; height: 12px; border-radius: 999px; background: var(--line); }
.pips i.on { background: var(--sky); }
/* Progress since the assessment: gained levels in pink, levels eased back as an outline. */
.pips i.up, .pip-key.up { background: var(--pink); }
.pips i.was, .pip-key.was { background: #fff; box-shadow: inset 0 0 0 2px var(--deep); }
.pip-key { display: inline-block; width: 18px; height: 12px; border-radius: 999px; }
.pip-key.on { background: var(--sky); }
.lvl em { font-style: normal; }
.flag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; font-size: .95rem; color: var(--muted); }
.flagged { font-size: .95rem; border-radius: 8px; padding: 8px 12px; margin: 10px 0 4px; background: var(--mist); }
.flagged.up { background: var(--green-bg); }
.chg { font-size: .88rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); }
.chg.up { background: var(--green-bg); color: var(--green); }

/* Dashboard */
.dash-nav { position: relative; margin-bottom: 28px; }
.dash-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; overflow-x: auto; }
.dash-tabs button { flex: 1; min-height: 50px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; font: 600 1.02rem var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; }
.dash-tabs button:hover { background: var(--mist); }
.dash-tabs button.on { background: var(--sky); color: var(--on-sky); }
/* Phone: a menu button that stays at the top of the screen and opens the tabs as a list. */
.dash-menu-btn { display: none; }
@media (max-width: 860px) {
  .dash-nav { position: sticky; top: 0; z-index: 30; margin: -16px 0 22px; padding-top: 8px; background: var(--mist); }
  .dash-menu-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 18px; border: 2px solid var(--deep); border-radius: var(--radius); background: #fff; font: 700 1.1rem var(--sans); color: var(--deep); cursor: pointer; box-shadow: var(--shadow); }
  .dash-menu-btn strong { margin-left: auto; font-weight: 600; color: var(--muted); }
  .dash-menu-btn .badge { margin-left: 0; }
  .burger { display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 20px; }
  .burger i { display: block; height: 3px; background: var(--deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .dash-nav.open .burger i:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .dash-nav.open .burger i:nth-child(2) { opacity: 0; }
  .dash-nav.open .burger i:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .dash-tabs { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); flex-direction: column; border-radius: var(--radius); padding: 8px; box-shadow: 0 12px 32px rgba(11, 37, 51, .2); }
  .dash-nav.open .dash-tabs { display: flex; }
  .dash-tabs button { flex: none; display: flex; align-items: center; min-height: 56px; padding: 8px 18px; border-radius: 10px; font-size: 1.12rem; color: var(--deep); text-align: left; }
}
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-head h1 { margin-bottom: .1em; }
.dash-head p { margin: 0; }
.mini-stats { display: flex; gap: 12px; }
.mini-stats div, .stat-cards div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; text-align: center; }
.mini-stats strong, .stat-cards strong { display: block; font: 700 2rem var(--serif); color: var(--deep); line-height: 1.1; }
.mini-stats span, .stat-cards span { font-size: .9rem; color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 22px 0; }
.stat-cards strong { font-size: 2.4rem; }
.ring-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin: 22px 0; }
.ring-card h2 { margin: 0 0 .3em; }
.ring-card p { margin: 0; max-width: 28em; }
.ring { position: relative; width: 190px; height: 190px; flex: none; margin-inline: auto; }
.ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--green); stroke-linecap: round; }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text strong { font: 700 2.6rem var(--serif); color: var(--deep); line-height: 1.1; }
.ring-text span { font-size: .95rem; color: var(--muted); }
@media (min-width: 620px) { .ring { margin-inline: 0; } }

.week-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--deep); font-size: 1.1rem; }
.week-nav strong, .week-nav .btn { white-space: nowrap; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.cal-hint { color: var(--muted); margin: 0 0 10px; }
.cal-today { margin: 0 0 26px; }
.day .go { display: none; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; background: #fff; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; }
.day:hover { border-color: var(--sky); }
.day .dn { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day .dd { font: 700 1.5rem var(--serif); color: var(--deep); line-height: 1.1; }
/* Two-line labels ("Strength + Balance") get a rounded box rather than a stretched pill. */
.day .dt { font-size: .78rem; font-weight: 600; line-height: 1.25; padding: 4px 10px; border-radius: 10px; margin-top: 6px; text-align: center; max-width: 100%; }
/* Phones: shorter week buttons ("← Previous", "Next →") so nothing wraps. */
@media (max-width: 560px) {
  .week-nav { font-size: 1rem; gap: 8px; }
  .week-nav .btn { padding: 8px 14px; }
  .week-nav .wk-word { display: none; }
}
.day .ds { font-size: .8rem; font-weight: 700; color: var(--muted); }
.day.is-today .ds { color: var(--blue); }
.day.st-done { background: var(--green-bg); border-color: #C5DE96; }
.day.st-done .ds { color: var(--green); }
.day.is-today { border-color: var(--deep); box-shadow: 0 0 0 2px var(--deep); }
/* Phones and narrow tablets: the week is a list of full-width day buttons, so every day
   shows without scrolling sideways (owner's request, 31 Oct 2026). */
@media (max-width: 760px) {
  .week-strip { grid-template-columns: 1fr; gap: 10px; }
  .day { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; padding: 12px 14px; min-height: 64px; text-align: left; }
  .day .dn { font-size: .95rem; }
  .day .dd { font-size: 1.4rem; }
  .day .dt { margin: 0; justify-self: start; font-size: .9rem; }
  .day .dt br { display: none; }
  .day .ds { font-size: .9rem; text-align: right; }
  .day .go { display: block; font-size: 1.6rem; line-height: 1; color: var(--muted); }
}
/* A day's session page: back to the calendar, and the days either side. */
.day-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.day-nav .btn-row { margin: 0; }
@media (max-width: 560px) { .day-nav .wk-word { display: none; } }
.dt.t-cardio { background: #D9F0FA; color: var(--blue); }
.dt.t-strength { background: var(--pink-dark); color: #fff; }
.dt.t-stretch { background: #FEF0B8; color: #6B4A00; }
.t-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; flex: none; }
.t-dot.t-cardio { background: var(--sky); }
.t-dot.t-strength { background: var(--pink); }
.t-dot.t-stretch { background: var(--accent); }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 940px) { .dash-cols { grid-template-columns: 1fr; } }
.session, .ahead { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.session h2 { font-size: 1.6rem; display: flex; align-items: center; }
.session .alert { margin: 12px 0; padding: 12px 18px; font-size: .98rem; }

.ex-list { list-style: none; padding: 0; margin: 18px 0 0; }
.ex { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.tick { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--sky); background: #fff; color: transparent; font-size: 1.7rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.tick:hover:not([disabled]) { border-color: var(--green); color: #C5DE96; }
.tick[disabled] { cursor: not-allowed; opacity: .5; }
.ex.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
.ex.done h3 { text-decoration: line-through; color: var(--muted); }
.ex-body { flex: 1; min-width: 0; }
.ex-body h3 { font-size: 1.22rem; margin-bottom: .15em; }
.grp { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.dose { font-weight: 600; color: var(--deep); margin-bottom: .4em; }
.note { font-size: .95rem; background: #FFF8DF; border-radius: 8px; padding: 8px 12px; }
.effort { font-size: .95rem; color: var(--muted); margin-bottom: .4em; }
.ex details summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 8px 0; }
.ex details .video { margin: 10px 0 14px; max-width: 520px; }

/* Effort chart on cardio days */
.rpe { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; background: #fff; }
.rpe summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 10px 0; }
.rpe-row { display: grid; grid-template-columns: 76px 1fr 150px; align-items: stretch; margin-bottom: 8px; border-radius: 10px; overflow: hidden; background: var(--mist); }
.rpe-num { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: #10222C; }
.rpe-feel { padding: 10px 14px; }
.rpe-feel p { font-size: .95rem; margin: 0; }
.rpe-hr { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 8px; font-size: .8rem; color: var(--muted); }
.rpe-hr strong { font-size: 1.05rem; color: var(--ink); }
.rpe-10 .rpe-num { background: #F4452B; color: #fff; }
.rpe-9 .rpe-num { background: #FB9A1F; }
.rpe-7-8 .rpe-num { background: #FFDA1F; }
.rpe-4-6 .rpe-num { background: #8BE234; }
.rpe-2-3 .rpe-num { background: #2FE0EC; }
.rpe-1 .rpe-num { background: #2F6FD6; color: #fff; }
.rpe-aim { border: 3px solid #10222C; border-radius: 14px; padding: 8px 8px 0; margin: 18px 0 12px; }
.rpe-tag { display: inline-block; margin: -24px 0 6px 10px; background: #10222C; color: #fff; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: 2px 14px; }
.rpe-foot { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) {
  .rpe-row { grid-template-columns: 60px 1fr; }
  .rpe-hr { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; background: #fff; border-top: 1px solid var(--line); }
}

.ahead h2 { font-size: 1.25rem; }
.dash-side { display: grid; gap: 24px; }
.extra-session { border-top: 4px solid var(--pink); }
.extra-session .extra-price strong { font: 700 1.6rem var(--serif); color: var(--deep); margin-right: 4px; }
.ahead-list { list-style: none; padding: 0; margin: 0 0 18px; }
.ahead-list button { display: grid; grid-template-columns: auto 1fr; align-items: center; width: 100%; text-align: left; padding: 12px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; }
.ahead-list button:hover { background: var(--mist); }
.ahead-list strong { color: var(--deep); font-size: 1rem; }
.ahead-list span:last-child { grid-column: 2; font-size: .9rem; color: var(--muted); }

/* Progress grid */
.g-grid { display: grid; gap: 6px; max-width: 440px; }
.g-row { display: grid; grid-template-columns: 56px repeat(7, 1fr); gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.g { display: inline-block; aspect-ratio: 1; width: 100%; border-radius: 6px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.g.st-done { background: var(--green); }
.g.st-partial { background: var(--accent); }
.g.st-missed { background: #E3B5B5; }
.g.st-today { background: #fff; box-shadow: inset 0 0 0 3px var(--deep); }
.g.st-future { background: #E3EEF4; }
.g-sep { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border-top: 2px dashed var(--sky); padding-top: 4px; margin: 4px 0 2px 62px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .g { width: 18px; cursor: default; }

/* Learn */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.learn-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; }
.learn-card:hover { border-color: var(--deep); box-shadow: var(--shadow); }
.learn-card h2 { font-size: 1.25rem; }
.learn-card p { flex: 1; }
.learn-card span { font-weight: 600; color: var(--blue); }
.dash-links { margin-top: 12px; gap: 10px; }
.help-q { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--on-sky); font-weight: 700; font-size: .95rem; margin-right: 4px; }
.faq + .card-app { margin-top: 26px; }

/* Membership price on the sign-up form */
.price-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; background: var(--mist); border-radius: 12px; padding: 16px 20px; }
.price-box > div:first-child { display: grid; }
.price-box span { color: var(--muted); font-size: .98rem; }
.price { font: 700 1.8rem var(--serif); color: var(--deep); }
.price small { font: 600 .9rem var(--sans); color: var(--muted); }
.price-box p { flex-basis: 100%; margin: 0; font-size: .98rem; color: var(--muted); }
.vid-tools { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; margin-top: 20px; }
.vid-tools input { max-width: 560px; }
.vid-pick-label { font-weight: 600; color: var(--deep); margin: 14px 0 6px; }
.vid-count { font-weight: 600; color: var(--muted); margin: 20px 0 0; }
.vid-group { padding: 0; margin-top: 30px; }
.vid-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.vid-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vid-card.mine { border: 2px solid var(--green); }
.vid-card .video { border-radius: 0; }
.vid-body { padding: 16px 20px 6px; }
.vid-body h3 { font-size: 1.2rem; margin: .2em 0 .3em; }
.vid-body p { font-size: 1rem; }
.vid-mine { float: right; font-size: .85rem; font-weight: 700; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 2px 12px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); max-width: 780px; }
.article h3 { margin-top: 1.4em; }
.article li { margin-bottom: .4em; }

/* Account */
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; }
.dl dt { font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.safety-answers { padding-left: 1.4em; margin: 0 0 12px; }
.safety-answers li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.safety-answers li span { display: block; }
.safety-answers strong { display: inline-block; margin-top: 4px; padding: 1px 12px; border-radius: 999px; font-size: .95rem; }
.safety-clear { border: 2px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; background: #FFF8DF; }
.safety-clear .check { margin: 0; }
.ans-no { background: var(--green-bg); color: var(--green); }
.ans-yes { background: var(--red-bg); color: var(--red); }

/* Completion */
.congrats { text-align: center; margin-bottom: 10px; }
.medal { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); display: grid; place-items: center; }
.medal .logo-mark { width: 78px; height: 78px; }

/* Locked 4-week blocks */
.lock-note { background: var(--cream); border: 1px dashed var(--sky); border-radius: 12px; padding: 12px 16px; font-size: .98rem; color: var(--muted); margin: 0 0 16px; }
.lock-note strong { color: var(--deep); }
.g.st-locked { background: repeating-linear-gradient(45deg, #EDF4F8, #EDF4F8 4px, #D8E6EE 4px, #D8E6EE 8px); cursor: default; }

/* Community */
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--accent); color: var(--deep); font-size: .8rem; font-weight: 700; }
.nudge { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 0; }
.nudge p { margin: 0; }
.link.small { font-size: .9rem; padding: 4px 0; }
.share-row { margin: 4px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.comm-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 940px) { .comm-cols { grid-template-columns: 1fr; } }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 10px; border-top: 1px solid var(--line); }
.board li.me { background: var(--mist); border-radius: 12px; border-top-color: transparent; }
.board .rank { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--on-sky); font-weight: 700; display: grid; place-items: center; }
.board li:nth-child(n+4) .rank { background: var(--line); color: var(--deep); }
.board .who strong { display: block; color: var(--deep); }
.board .who .muted { display: block; font-size: .9rem; }
.board .who .sample-tag, .feed .sample-tag { margin: 2px 0; font-size: .68rem; }
.board .streak { text-align: center; min-width: 70px; }
.board .streak strong { display: block; font: 700 1.6rem var(--serif); color: var(--deep); line-height: 1; }
.board .streak span { font-size: .8rem; color: var(--muted); }
.board .act { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 104px; font-size: .92rem; font-weight: 600; }
@media (max-width: 560px) {
  .board li { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .board .act { grid-column: 2 / -1; flex-direction: row; align-items: center; gap: 14px; }
}
/* Profile photos */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--mist); color: var(--deep); font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.avatar-initials { font-size: 1rem; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-lg.avatar-initials { font-size: 2rem; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; line-height: 0; }
.avatar-btn .avatar { width: 40px; height: 40px; }
.avatar-btn:hover .avatar, .avatar-btn:focus-visible .avatar { box-shadow: 0 0 0 3px var(--sky); }
.photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo-row > div { flex: 1 1 260px; }
.photo-row .btn-row { margin-top: 8px; }
.board .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.req-who { display: flex; align-items: center; gap: 12px; }
.feed-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.feed-top .feed-head { margin: 0; }
/* Login streak banner */
.visit-msg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.visit-msg p { flex: 1 1 260px; margin: 0; }
.visit-flame { font-size: 2rem; line-height: 1; }

.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.add-friend { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.add-friend .form-error, .add-friend .ok { grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .add-friend { grid-template-columns: 1fr; } }
.feed { list-style: none; padding: 0; margin: 0 0 16px; }
.feed > li { padding: 16px 0; border-top: 1px solid var(--line); }
.feed-head { margin: 0 0 4px; }
.feed-head .muted { display: block; font-size: .9rem; }
.feed details summary { cursor: pointer; font-weight: 600; color: var(--blue); padding: 6px 0; }
.feed details ul { margin: 4px 0 8px; padding-left: 1.2em; font-size: .98rem; }
.feed-foot { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.cheer { min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--sky); background: #fff; font: 600 .95rem var(--sans); color: var(--deep); cursor: pointer; }
.cheer.on { background: var(--accent); border-color: var(--accent); }

/* Server connection and streak sharing */
.net-status { position: sticky; top: 0; z-index: 40; margin: 0; padding: 12px 20px; text-align: center; font-weight: 600; background: #FFF8DF; color: #6B4A00; border-bottom: 2px solid var(--accent-dark); }
.optin { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 0; }
.optin > div { flex: 1 1 320px; }
/* Leaderboard picker, invitations, steps */
.board-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.board-pick button { min-height: 44px; padding: 6px 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 600 .95rem var(--sans); color: var(--deep); cursor: pointer; }
.board-pick button:hover { border-color: var(--sky); }
.board-pick button.on { border-color: var(--sky); background: var(--sky); color: var(--on-sky); }
/* Today / This week / Average under the Steps board. */
.board-sub { margin-top: -2px; padding-left: 12px; border-left: 4px solid var(--sky); }
.board-sub button { min-height: 40px; font-size: .9rem; }
/* Who nudged and cheered the member. */
.kudos h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.kudos-list { list-style: none; padding: 0; margin: 0; }
.kudos-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kudos-list li:last-child { border-bottom: 0; }
.board-note { font-size: .92rem; margin: 0 0 8px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.share-fb, .share-ig, .share-wa { color: #fff; border-color: transparent; }
.share-fb { background: #1460C8; }
.share-ig { background: linear-gradient(45deg, #A3348F, #C9186F 50%, #B84A12); }
.share-wa { background: #0B7064; }
.share-fb:hover, .share-ig:hover, .share-wa:hover { color: #fff; filter: brightness(1.12); }
.invite textarea { min-height: 0; margin-top: 6px; font-size: .95rem; }
.ref-code { display: inline-block; margin: 4px 0 14px; padding: 10px 16px; border-radius: var(--radius); background: var(--mist); }
.ref-code strong { font-size: 1.25rem; letter-spacing: .12em; color: var(--deep); }
.ref-list { list-style: none; padding: 0; margin: 0 0 14px; }
.ref-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ref-list li span { display: block; font-size: .95rem; }
.move-log { margin: 22px 0 0; padding: 18px 20px; border-radius: var(--radius); background: var(--mist); }
.move-log h3 { margin: 0 0 4px; }
.move-log .muted { font-size: .95rem; }
.move-log .form-error:empty { display: none; }
.board li.private .rank { background: var(--line); color: var(--muted); }
.board li.private .who strong { color: var(--muted); }

/* Assessment: one multiple-choice question per test */
.assess-mc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; margin: 26px 0; }
@media (max-width: 760px) { .assess-mc { grid-template-columns: 1fr; } }
.assess-mc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.assess-mc legend { padding: 0; }
.assess-mc legend h1 { margin-bottom: .2em; }
.choices { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 400; color: var(--ink); }
.choice:hover { border-color: var(--sky); }
.choice:has(input:checked) { border-color: var(--deep); background: var(--mist); }
.choice input { width: 26px; height: 26px; margin: 2px 0 0; flex: none; accent-color: var(--deep); }
.choice strong { display: block; color: var(--deep); font-size: 1.08rem; }
.choice .target { display: inline-block; font-size: .95rem; padding: 2px 12px; margin: 6px 0 2px; }
.choice .lvl-tag { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--deep); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin-bottom: 4px; }
.choice .how { display: block; font-size: .95rem; color: var(--muted); margin-top: 4px; }
.hr { font-size: .95rem; color: var(--pink-deep); margin-bottom: .4em; }

/* Email confirmation code */
.code-input { font: 700 1.8rem var(--sans); letter-spacing: .3em; text-align: center; max-width: 280px; }

/* Nutrition: when to book a consultation */
.nutri-help { margin-top: 30px; border: 2px solid var(--pink); }
.nutri-help h2 { font-size: 1.4rem; }

/* Learn articles (js/learn.js). Everything inside an article is scoped to .prose. */
.learn-group { font-size: 1.45rem; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 4px solid; border-image: var(--stripe) 1; }
.learn-card { border-top: 6px solid var(--sky); }
.learn-card.cat-training { border-top-color: var(--pink); }
.learn-card.cat-conditions { border-top-color: var(--lime); }
.learn-card.cat-nutrition { border-top-color: var(--accent); }
/* Learn cards with a picture and the title only (31 Oct 2026). */
.learn-pic { padding: 0; overflow: hidden; }
.learn-pic img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist, #EEF5F8); }
.learn-pic h2 { margin: 0; padding: 16px 20px 20px; }
.prose { font-size: 1.05rem; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li::marker { color: var(--pink-dark); font-weight: 700; }
.prose p .link, .prose li .link, .prose td .link, .prose th .link { padding: 0; font-size: inherit; text-align: left; }
.prose .standfirst { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--deep); line-height: 1.5; }
.prose .byline { color: var(--muted); font-size: 1rem; }
.prose .part-title { margin-top: 2.2em; padding-top: 1em; border-top: 4px solid; border-image: var(--stripe) 1; font-size: clamp(1.6rem, 4vw, 2.1rem); }

.prose .callout { background: var(--mist); border-left: 6px solid var(--sky); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0; }
.prose .callout .label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .5em; }
.prose .callout > :last-child, .prose .callout ul { margin-bottom: 0; }
.prose .callout-good { background: var(--green-bg); border-left-color: var(--lime); }
.prose .callout-good .label { color: var(--green); }
.prose .callout-note { background: var(--cream); border-left-color: var(--accent); }
.prose .callout-note .label { color: #6E4E00; }
.prose .callout-warn { background: var(--red-bg); border-left-color: var(--red); }
.prose .callout-warn .label { color: var(--red); }
.prose .pull-quote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--pink); font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--deep); }
.prose .pull-quote p { margin: 0; }

/* Tables scroll sideways inside their box rather than the whole page. */
.prose .table-wrap { overflow-x: auto; margin: 22px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.prose .table-wrap + p:not(.table-note), .prose .table-wrap + .callout { margin-top: 22px; }
.prose .data { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.prose .data th, .prose .data td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose .data thead th { background: var(--mist); color: var(--deep); font-family: var(--serif); }
.prose .data tbody th { color: var(--deep); font-weight: 600; }
.prose .data tbody tr:last-child > * { border-bottom: 0; }
.prose .data .num { white-space: nowrap; }
.prose .data .t-green { background: var(--green-bg); }
.prose .data .t-amber { background: var(--cream); }
.prose .data .t-red { background: var(--red-bg); }
.prose .data thead .t-green { color: var(--green); }
.prose .data thead .t-red { color: var(--red); }
.prose .table-note { font-size: .92rem; color: var(--muted); font-style: italic; margin: 0 0 22px; }
.prose .write-in td:nth-child(2) { min-width: 180px; border-bottom-style: dashed; }
.prose .write-in td:last-child { width: 48px; text-align: center; font-size: 1.3rem; color: var(--muted); }

/* Small cards, big numbers, bar charts */
.prose .boxes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 22px 0 26px; }
.prose .boxes.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.prose .boxes.small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.prose .box { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--sky); border-radius: var(--radius); padding: 16px 18px; font-size: 1rem; }
.prose .box h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.prose .box p, .prose .box ul { margin: 0 0 .5em; }
.prose .box > :last-child { margin-bottom: 0; }
.prose .box ul { padding-left: 1.2em; }
.prose .box.pink { border-top-color: var(--pink); }
.prose .box.yellow { border-top-color: var(--accent); }
.prose .box.green { border-top-color: var(--lime); }
.prose .box.red { border-top-color: var(--red); background: var(--red-bg); }
.prose .box.good { border-top-color: var(--lime); background: var(--green-bg); }
.prose .box.warm { border-top-color: var(--accent); background: var(--cream); }
.prose .box .big { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--deep); line-height: 1.2; margin-bottom: 4px; }
.prose .stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 22px 0 26px; }
.prose .stat { background: var(--red-bg); border-radius: var(--radius); padding: 18px 20px; font-size: 1rem; }
.prose .stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--red); margin-bottom: 6px; }
.prose .bars { margin: 22px 0 8px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .bars h3 { font-size: 1.05rem; margin: 0 0 12px; }
.prose .bar-row { display: grid; grid-template-columns: minmax(110px, 30%) 1fr 56px; gap: 12px; align-items: center; margin: 10px 0; font-size: 1rem; }
.prose .bar-row .label { font-weight: 600; color: var(--deep); line-height: 1.3; }
.prose .bar-row .label small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.prose .chart-bar { display: block; height: 20px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.prose .chart-bar span { display: block; height: 100%; background: var(--blue); border-radius: 999px; }
.prose .bar-row .val { font-weight: 700; color: var(--deep); text-align: right; }
.prose .pair-row { grid-template-columns: 90px 1fr; }
.prose .pair-row .pair { display: grid; gap: 4px; }
.prose .pair-row .chart-bar { height: 15px; }
.prose .chart-bar.pain span { background: var(--pink-dark); }
.prose .key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 4px 0 6px; font-size: .92rem; color: var(--muted); }
.prose .key span::before { content: ''; display: inline-block; width: 22px; height: 10px; border-radius: 4px; margin-right: 8px; background: var(--blue); }
.prose .key .k-pain::before { background: var(--pink-dark); }
.prose .key .k-line::before, .prose .key .k-dash::before, .prose .key .k-daily::before { height: 0; background: none; border-radius: 0; vertical-align: middle; border-top: 3px solid var(--blue); }
.prose .key .k-dash::before { border-top: 3px dashed var(--pink-dark); }
.prose .key .k-daily::before { border-top-color: var(--ink); }

/* Layers, numbered steps, arrows */
.prose .layers { margin: 22px 0 26px; display: grid; gap: 6px; }
.prose .layers div { padding: 14px 18px; text-align: center; border-radius: 10px; font-size: 1rem; }
.prose .layers strong { color: var(--deep); }
.prose .layers .l1 { background: var(--mist); }
.prose .layers .l2 { background: var(--cream); }
.prose .layers .l3 { background: var(--green-bg); }
.prose .layers .l4 { background: var(--deep); color: #fff; }
.prose .layers .l4 strong { color: #fff; }
.prose .steps { list-style: none; padding: 0; margin: 22px 0 26px; counter-reset: step; }
.prose .steps li { position: relative; padding: 2px 0 18px 62px; margin: 0; counter-increment: step; }
.prose .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--on-sky); font: 700 1.15rem var(--serif); display: grid; place-items: center; }
.prose .steps li:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 48px; bottom: 2px; width: 2px; background: var(--line); }
.prose .steps strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--deep); }
.prose .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.prose .flow li { margin: 0; background: var(--mist); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--deep); font-size: 1rem; }
.prose .flow li + li::before { content: '→'; color: var(--pink-dark); font-weight: 700; margin: 0 10px 0 -2px; }
.prose .stack-pairs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px 14px; align-items: center; margin: 20px 0 24px; }
.prose .stack-pairs span { background: var(--mist); border-radius: 10px; padding: 12px 16px; text-align: center; font-weight: 600; color: var(--deep); }
.prose .stack-pairs span.to { background: var(--green-bg); color: var(--green); }
.prose .stack-pairs i { font-style: normal; color: var(--pink-dark); font-weight: 700; font-size: 1.3rem; }
.prose .versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 20px 0 6px; text-align: center; font-weight: 700; }
.prose .versus span { padding: 16px; border-radius: var(--radius); }
.prose .versus .a { background: var(--green-bg); color: var(--green); }
.prose .versus .b { background: var(--red-bg); color: var(--red); }
.prose .versus i { font-style: normal; font-size: 2rem; color: var(--muted); }
.prose .lead-in { text-align: center; font-weight: 700; color: var(--deep); background: var(--mist); border-radius: var(--radius); padding: 12px 16px; margin: 20px 0 10px; }

/* Diagrams drawn in SVG */
.prose .figure { margin: 22px 0 8px; }
.prose .figure-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prose .figure-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.prose .figure-grid h3 { font-size: 1.05rem; margin: 0 0 8px; }
.prose .figure-grid p { font-size: .95rem; color: var(--muted); margin: 8px 0 0; }
.prose .diagram { display: block; width: 100%; height: auto; }
.prose .diagram text { font: 600 12px var(--sans); fill: var(--deep); }
.prose .diagram .muted-text { fill: var(--muted); font-weight: 500; }
.prose .diagram .axis { stroke: var(--line); stroke-width: 2; }
.prose .diagram .tissue, .prose .diagram .curve { stroke: var(--blue); stroke-width: 3.5; fill: none; }
.prose .diagram .pain { stroke: var(--pink-dark); stroke-width: 3.5; fill: none; stroke-dasharray: 7 6; }
.prose .diagram .daily { stroke: var(--ink); stroke-width: 3; }
.prose .diagram .buffer { fill: var(--mist); }
.prose .diagram .dot { fill: #fff; stroke: var(--blue); stroke-width: 3; }
.prose .patterns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 22px 0 26px; }
.prose .pattern { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 1rem; }
.prose .pattern h3 { font-size: 1.08rem; margin: 0 0 6px; }
.prose .pattern p { margin: 6px 0 0; }
.prose .pattern svg { display: block; width: 100%; height: 64px; }
.prose .pattern polyline { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.prose .pattern.bad h3 { color: var(--red); }
.prose .pattern.bad polyline { stroke: var(--red); }
.prose .pattern.meh h3 { color: #6E4E00; }
.prose .pattern.meh polyline { stroke: var(--accent-dark); }
.prose .pattern.good { background: var(--green-bg); border-color: #CFE3A8; }
.prose .pattern.good h3 { color: var(--green); }
.prose .pattern.good polyline { stroke: var(--green); }
.prose .rpe-chart { margin: 22px 0 8px; padding: 16px 16px 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

.prose .sources { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.prose .sources h2 { font: 700 .85rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin: 0 0 10px; }
.prose .article-note { font-size: .95rem; color: var(--muted); font-style: italic; margin-top: 22px; }
@media (max-width: 560px) {
  .prose { font-size: 1rem; }
  .prose .bar-row { grid-template-columns: 1fr 48px; }
  .prose .bar-row .chart-bar { grid-column: 1 / -1; grid-row: 2; }
  .prose .pair-row { grid-template-columns: 1fr; }
  .prose .stack-pairs, .prose .versus { grid-template-columns: 1fr; }
  .prose .stack-pairs i { transform: rotate(90deg); }
}
#photo-file:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Assessment: Cardio Readiness questions (vCardio() in app.js) */
.cardio-q { max-width: 720px; margin-top: 22px; }
.cardio-q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cardio-q legend { padding: 0; }
.cardio-q legend h1 { margin-bottom: .2em; }
.cardio-mins { margin: 0 0 18px; }
.cardio-mins input { width: 9em; margin-right: 8px; }
.cardio-q .form-error:empty { display: none; }

/* Rest days: cardio days for a member with no cardio program */
.dt.t-rest { background: var(--line); color: var(--muted); }
.t-dot.t-rest { background: var(--line); }
.g.st-rest { background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.monitor-switch { font-size: .95rem; margin: 6px 0 14px; }

/* End of the free trial: the plans to choose from */
.trial-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px 22px; margin: 26px 0; }
@media (max-width: 760px) { .trial-plans { grid-template-columns: 1fr; } }
.trial-plan { position: relative; display: flex; flex-direction: column; margin: 0; }
.trial-plan .check-list { flex: 1; }
.trial-plan.featured { border: 3px solid var(--pink-dark); }
.trial-plan .tag { position: absolute; top: -14px; left: 22px; background: var(--pink-dark); color: #fff; }
.trial-plan.best-value { border: 3px solid var(--green); }
.trial-plan.best-value .tag { background: var(--accent); color: var(--deep); }
.trial-price { font: 700 2.2rem/1.1 var(--serif); color: var(--deep); margin: 4px 0 14px; }
.trial-price s { font-size: .6em; color: var(--muted); font-weight: 600; }
.trial-price small { display: block; font: 600 .95rem var(--sans); color: var(--muted); margin-top: 4px; }
.trial-note p { margin: 0; }

/* Week 12: the member's story (testimonial) */
.story-box { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--mist); }
.story-box h3 { margin-top: 0; }
.story-box fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.story-box legend { font-weight: 600; color: var(--deep); }
.story-photo { display: block; width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; margin: 6px 0 10px; }
.trial-plan .btn + .btn { margin-top: 10px; }

/* Streak freezes and reminder emails (18 Oct 2026) */
.freeze-msg { border-color: var(--blue); }
.freeze-card { display: flex; gap: 16px; align-items: flex-start; }
.freeze-card h2 { margin-top: 0; }
.freeze-card p { margin-bottom: 0; }
.freeze-icon { font-size: 2.2rem; line-height: 1; }
.remind-prompt { border: 2px solid var(--sky); background: var(--mist); }
.remind-prompt h2 { margin-top: 0; }
.remind-form select { min-height: 52px; font: inherit; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; max-width: 260px; display: block; }

/* Milestones: the badge, the celebration and the list on Progress */
.ms-badge { display: block; }
.congrats .ms-badge { margin: 0 auto 10px; }
.celebrate-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(7, 59, 84, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.celebrate { position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 30px 26px 26px; max-width: 560px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.celebrate::before, .report-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--stripe); }
.celebrate .ms-badge { margin: 4px auto 6px; position: relative; }
.celebrate h2 { font-size: 2rem; margin: 6px 0; outline: none; }
.celebrate .share-out { text-align: left; }
.celebrate .share-btns { justify-content: center; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; left: calc(var(--x) * 1%); width: 10px; height: 16px; background: var(--c); border-radius: 2px; opacity: 0;
  animation: confetti-fall 2.6s ease-in calc(var(--d) * .25s) 2 both; }
@keyframes confetti-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(620px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
.share-out { margin: 18px 0; }
.share-out h3 { margin: 0 0 8px; }
.badge-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge-list button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: center; }
.badge-list button:hover, .badge-list button:focus-visible { border-color: var(--sky); }
.badge-list .small { color: var(--blue); font-weight: 700; }
.feed-badge { margin: 4px 0 4px 56px; }
.feed-report { margin: 6px 0; }

/* 12-week report card: designed to be shown off, printed and shared */
.report-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 26px 26px; margin: 18px 0; box-shadow: var(--shadow); max-width: 760px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-logo { display: flex; align-items: center; gap: 8px; }
.rc-logo .logo-mark { width: 52px; height: 52px; }
.rc-tag { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-dark); }
.rc-who h2 { font-size: 2.1rem; margin: 16px 0 0; }
.rc-who p { margin: 0; color: var(--muted); }
.rc-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 14px; background: var(--mist); border-radius: var(--radius); padding: 18px; margin: 18px 0; text-align: center; }
.rc-score span { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); }
.rc-score strong { font: 700 3.2rem/1.1 var(--serif); color: var(--blue); }
.rc-score .rc-now strong { color: var(--pink-dark); }
.rc-arrow { font-size: 2.4rem; font-weight: 700; color: var(--deep); }
.rc-change { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--green); }
.rc-rows { list-style: none; padding: 0; margin: 0; }
.rc-rows li { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-lv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-lv b, .rc-cardio b { color: var(--pink-dark); }
.rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; text-align: center; }
.rc-stats div { background: var(--cream); border-radius: var(--radius); padding: 12px; }
.rc-stats strong { display: block; font: 700 2.2rem/1.1 var(--serif); color: var(--deep); }
.rc-stats span { font-size: .95rem; color: var(--muted); }
.rc-foot { margin: 16px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
@media (max-width: 520px) {
  .report-card { padding: 18px 16px; }
  .rc-score { grid-template-columns: 1fr; }
  .rc-arrow { transform: rotate(90deg); }
}
/* "Print it" prints only the report card */
@media print {
  body.print-report * { visibility: hidden; }
  body.print-report .report-card, body.print-report .report-card * { visibility: visible; }
  body.print-report .report-card { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; box-shadow: none; }
  .celebrate-wrap { display: none; }
}

/* Admin (team only, 31 Oct 2026): bright green so admin buttons are never mistaken for
   members' ones. Dark text on the green keeps it readable. */
.btn-admin { background: #22E05A; border: 2px solid #12B544; color: #04230F; font-weight: 700; }
.btn-admin:hover:not([disabled]) { background: #12C84B; color: #04230F; }
.btn-admin.off { background: #fff; color: #0B6B2B; }
.btn-admin.off:hover { background: #E3FBEA; }
.btn-admin[disabled] { opacity: .45; cursor: not-allowed; }
.admin-tab { border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.admin-bar { margin: 0 0 14px; text-align: right; }
.admin-note { background: #E3FBEA; border: 2px solid #22E05A; border-radius: 10px; padding: 8px 14px; color: #04230F; font-weight: 600; }
.admin-panel { border-top: 6px solid #22E05A; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-tag { display: inline-block; margin: 0; background: #22E05A; color: #04230F; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 2px 14px; }
.admin-picks { flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.admin-step { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; color: var(--deep); }
.admin-list { padding-left: 1.4em; }
.admin-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list .lvl-tag, .admin-list .how { display: block; }
.admin-list .how { color: var(--muted); font-size: .95rem; }
.dash-tabs button.btn-admin, .dash-tabs button.btn-admin:hover { background: #22E05A; border: 2px solid #12B544; color: #04230F; font-weight: 700; }
