/* No Iron — brand: park concrete, chalk, powder-coated bar teal, grip-tape yellow */
:root {
  --concrete: #DFE1DC; --chalk: #F8F8F5; --ink: #17201E; --steel: #5A6663;
  --bar: #2E6E7E; --bar-dark: #1F5160; --grip: #F2C230; --line: #C9CDC6; --danger: #B3261E;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --r-sm: 6px; --r-md: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--grip); outline-offset: 2px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }

/* ---------- brand surfaces (landing, auth, dashboard) ---------- */
body.brand { background: var(--concrete); color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: .01em; text-decoration: none; text-transform: uppercase; }
.logo-bar { width: 30px; height: 18px; border-top: 5px solid var(--ink); border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); border-radius: 3px 3px 0 0; }
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.site-head nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-head nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.site-head nav a:not(.btn):hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--ink); color: var(--chalk); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--bar-dark); border-color: var(--bar-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--bar); text-decoration: underline; cursor: pointer; }
.linkish.danger { color: var(--danger); }
.text-link { font-weight: 600; }

/* Hero: the headline hangs from a pull-up bar */
.hero { padding: 40px 0 72px; }
.rig { display: flex; align-items: flex-start; height: 64px; margin-bottom: 18px; }
.rig .post { width: 12px; height: 64px; background: var(--ink); border-radius: 3px 3px 0 0; flex: none; }
.rig .steel { position: relative; flex: 1; height: 14px; margin-top: 6px; background: linear-gradient(180deg, #8E9B98 0%, #D7DDDB 35%, #6C7976 100%); border-radius: 7px; }
.rig .grip { position: absolute; top: -2px; left: 22%; width: 9%; height: 18px; border-radius: 4px; background: repeating-linear-gradient(115deg, var(--grip) 0 6px, #D9A915 6px 9px); }
.rig .grip-r { left: auto; right: 22%; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 9vw, 116px); line-height: .92; letter-spacing: -.005em; max-width: 13ch; margin: 0 0 28px; text-transform: uppercase; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 60ch; margin: 0 0 30px; }
.hero-cta, .deal-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: hang .9s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: top center; }
  @keyframes hang { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); text-transform: uppercase; letter-spacing: .005em; }

.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 64px 0; border-top: 2px solid var(--ink); }
.calc-copy p { max-width: 42ch; }
.calc-box { background: var(--chalk); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 28px; display: grid; gap: 20px; }
.calc-box label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-weight: 600; }
.calc-box output { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.calc-box input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--bar); }
.calc-out { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-out strong { font-family: var(--display); font-size: 30px; font-weight: 900; }
.meter { height: 14px; background: var(--concrete); border-radius: 7px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--bar); border-radius: 7px; transition: width .25s ease; }
.meter-dim span { background: #9AA3A0; }
.calc-note { margin: 6px 0 0; font-size: 15px; color: var(--steel); }

.how { padding: 64px 0; border-top: 2px solid var(--ink); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; color: var(--bar); margin-bottom: 8px; }
.steps h3 { font-size: 21px; }
.steps p { margin: 0; max-width: 34ch; }

.deal { padding: 64px 0 80px; border-top: 2px solid var(--ink); }
.deal dl { margin: 28px 0 36px; display: grid; gap: 0; max-width: 760px; }
.deal dl div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deal dt { font-weight: 700; }
.deal dd { margin: 0; }
.site-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 2px solid var(--ink); font-size: 14px; color: var(--steel); }
.site-foot span:first-child { font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--ink); font-size: 18px; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { font: 16px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #A7AFAB; border-radius: var(--r-sm); padding: 11px 12px; width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bar); box-shadow: 0 0 0 3px rgba(46, 110, 126, .25); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 8px; }
.inline-check { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.inline-check input { width: auto; }
.error { background: #FBE9E7; color: var(--danger); border-left: 4px solid var(--danger); padding: 10px 14px; border-radius: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth .auth-box { width: min(440px, 100% - 32px); margin: 32px auto 80px; background: var(--chalk); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 32px; }
.auth h1 { font-family: var(--display); font-weight: 900; font-size: 44px; text-transform: uppercase; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; background: var(--chalk); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.dash-head .logo { font-size: 24px; }
.dash-head-r { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.dash-body { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 66px); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 24px 12px; border-right: 1px solid var(--line); }
.dash-nav a { padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.dash-nav a:hover { background: rgba(23, 32, 30, .06); }
.dash-nav a[aria-current] { background: var(--ink); color: var(--chalk); }
.dash-main { padding: 28px clamp(16px, 3vw, 40px) 80px; max-width: 1100px; width: 100%; }
.dash-main.wide { margin: 0 auto; }
.dash-main h1 { font-family: var(--display); font-weight: 900; font-size: 42px; text-transform: uppercase; }
.dash-main h2 { font-size: 19px; }
.dash-main h3 { font-size: 15px; }
.h-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.flash { background: var(--ink); color: var(--chalk); padding: 12px 16px; border-radius: var(--r-sm); }
.demo-flag { background: var(--grip); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--chalk); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 2px; }
.stat-l { font-size: 14px; color: var(--steel); }
.stat strong { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1.05; }
.stat-n { font-size: 13px; color: var(--steel); }
.copy-row { display: flex; gap: 10px; margin-bottom: 8px; }
.copy-row input { font-size: 15px; background: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--steel); flex: none; }
.checklist li.done { color: var(--steel); text-decoration: line-through; }
.checklist li.done .tick { background: var(--bar); border-color: var(--bar); box-shadow: inset 0 0 0 4px var(--chalk); }

.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px; align-items: start; }
.preview-wrap { position: sticky; top: 90px; }
.preview-wrap p { margin: 0 0 6px; }
#preview { width: 100%; height: 76vh; border: 2px solid var(--ink); border-radius: var(--r-md); background: #fff; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.swatch { cursor: pointer; display: block; }
.swatch input { position: absolute; opacity: 0; }
.sw-card { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-sm); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch input:checked + .sw-card { border-color: var(--ink); box-shadow: 0 0 0 3px var(--grip); }
.swatch input:focus-visible + .sw-card { outline: 3px solid var(--bar); outline-offset: 2px; }
.sw-strip { display: flex; gap: 4px; }
.sw-strip i { flex: 1; height: 26px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.sw-name { font-weight: 600; font-size: 14px; }
.accent-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.accent-row input[type=color] { width: 56px; height: 40px; padding: 2px; }

.or-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.offering-row.inactive { opacity: .65; }
.times { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.time-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.time-list li { display: flex; gap: 12px; align-items: center; }
.time-list form { margin-left: auto; }
.add-time, .add-code { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.add-time input[type=datetime-local] { width: auto; }
.add-code label { flex: 1 1 140px; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--bar); }
.offering-form { margin: 14px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 13px; color: var(--steel); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--concrete); }
.tag-ni { background: var(--grip); }

@media (max-width: 860px) {
  .calc, .brand-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deal dl div { grid-template-columns: 1fr; gap: 4px; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .dash-nav a { white-space: nowrap; }
  .preview-wrap { position: static; }
  #preview { height: 70vh; }
  .two { grid-template-columns: 1fr; }
  .dash-head { padding: 12px 16px; }
}

/* ---------- coach pages (themed by each instructor's palette) ---------- */
body.coach { background: var(--bg); color: var(--text); }
.coach .muted { color: var(--muted); }
.preview-flag { position: fixed; top: 8px; right: 8px; z-index: 9; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.coach-hero { display: flex; gap: 22px; align-items: center; padding: 48px 0 28px; flex-wrap: wrap; }
.mono { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-family: var(--display); font-weight: 900; font-size: 40px; flex: none; }
.coach-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 76px); text-transform: uppercase; line-height: .95; margin: 0 0 6px; }
.coach-tag { font-size: 20px; margin: 0 0 4px; }
.coach-meta { margin: 0; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; }
.coach-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.coach-bio { max-width: 68ch; padding-bottom: 12px; }
.coach-bio p { margin: 0 0 10px; }
.spec { color: var(--muted); }
.offer-group { padding: 26px 0; }
.offer-group h2 { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.offer { background: var(--surface); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.offer-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.offer h3 { font-size: 20px; margin: 0; }
.price { font-family: var(--display); font-weight: 900; font-size: 26px; white-space: nowrap; }
.offer-meta { margin: 0; font-size: 14px; color: var(--muted); }
.offer p { margin: 0; }
.offer .cta { margin-top: auto; align-self: flex-start; }
.chips { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; font-size: 14px; padding: 5px 11px; border-radius: 99px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.chips a:hover { background: var(--accent); color: var(--accent-text); }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-text); border: 0; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; margin-top: 10px; }
.cta:hover { filter: brightness(1.08); }
.coach-foot { padding: 40px 0; font-size: 13px; color: var(--muted); }
.book { max-width: 620px; padding: 40px 0 80px; }
.book h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 60px); text-transform: uppercase; line-height: .95; }
.back { display: inline-block; margin-bottom: 18px; font-size: 15px; }
.panel { background: var(--surface); border-radius: var(--r-md); padding: 24px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.coach input, .coach select, .coach textarea { border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.slot-list { display: grid; gap: 8px; }
.slot { display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 25%, transparent); font-weight: 500; }
.slot small { color: var(--muted); font-weight: 400; }
.slot input:checked + span { box-shadow: inset 0 0 0 2.5px var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.slot input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.lede-sm { font-size: 20px; }
.program ol { padding-left: 22px; }
.program li { margin-bottom: 6px; }
.coach :focus-visible { outline-color: var(--accent); }
fieldset.card > legend { float: left; width: 100%; margin-bottom: 10px; }
fieldset.card > legend + * { clear: both; }

/* ---------- member app front door (No Iron brand) ---------- */
.front .front-main { width: min(1080px, 100% - 32px); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.front-brand { padding: 22px 0; }
.front-grid { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 24px 0 48px; }
.rig-sm { height: 44px; margin-bottom: 14px; max-width: 420px; }
.rig-sm .post { height: 44px; width: 10px; }
.rig-sm .steel { height: 11px; margin-top: 5px; }
.front-copy h1 { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 7.5vw, 92px); line-height: .92; text-transform: uppercase; margin: 0 0 22px; max-width: 11ch; }
.front-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.front-list li { display: flex; gap: 12px; align-items: baseline; }
.front-list li::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--bar); flex: none; transform: translateY(-4px); }
.front-signin { background: var(--chalk); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 28px; }
.front-signin h2 { font-family: var(--display); font-weight: 900; font-size: 36px; text-transform: uppercase; margin-bottom: 14px; }
.front-foot { border-top: 2px solid var(--ink); padding: 20px 0 32px; font-size: 15px; }
.front-foot a { font-weight: 600; }
@media (max-width: 860px) { .front-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 4px; } }

/* ---------- member app (themed by the coach's palette) ---------- */
body.member { padding-bottom: 84px; }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; max-width: 560px; margin: 0 auto; }
.m-coach { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.m-coach small { display: block; color: var(--muted); font-size: 12px; }
.m-coach strong { display: block; line-height: 1.2; }
.mono.mono-sm { width: 40px; height: 40px; font-size: 17px; }
.m-menu { position: relative; }
.m-menu summary { list-style: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 30%, transparent); }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu-pop { position: absolute; right: 0; top: 46px; z-index: 10; background: var(--surface); color: var(--text); border-radius: var(--r-md); padding: 16px; width: 240px; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent); }
.m-menu-pop p { margin: 0; }
.m-main { max-width: 560px; margin: 0 auto; padding: 4px 16px 24px; }
.m-hello { font-family: var(--display); font-weight: 900; font-size: 44px; text-transform: uppercase; line-height: 1; margin: 8px 0 16px; }
.m-h1 { font-family: var(--display); font-weight: 900; font-size: 40px; text-transform: uppercase; margin: 8px 0 16px; }
.m-h2 { font-size: 17px; margin: 24px 0 8px; }
.m-flash { background: var(--accent); color: var(--accent-text); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.m-stats div { background: var(--surface); border-radius: var(--r-md); padding: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.m-stats strong { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; }
.m-stats span { font-size: 13px; color: var(--muted); }
.m-card { background: var(--surface); border-radius: 16px; padding: 18px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.m-card h2 { font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; margin: 2px 0 12px; }
.m-card h3 { font-size: 19px; margin: 2px 0 4px; }
.m-card p { margin: 0 0 8px; }
.m-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.m-label span { font-weight: 500; }
.m-today { border-top: 6px solid var(--accent); }
.m-checklist ul { list-style: none; padding: 0; margin: 0 0 14px; }
.m-checklist li { border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.m-checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 2px; cursor: pointer; font-weight: 400; }
.m-checklist input { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; flex: none; border-radius: 50%; margin: 0; padding: 0; border: 2px solid color-mix(in srgb, var(--text) 35%, transparent); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.m-checklist input:checked { background: var(--accent); border-color: var(--accent); }
.m-checklist input:checked::after { content: ""; width: 7px; height: 13px; border: solid var(--accent-text); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.m-checklist input:disabled { cursor: default; }
.m-ex { display: grid; gap: 1px; }
.m-ex-name { font-weight: 600; font-size: 17px; }
.m-ex-rx { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.m-ex-note { font-size: 14px; color: var(--muted); }
.m-checklist input:checked + .m-ex .m-ex-name { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.m-done-btn, .m-wide { width: 100%; }
.m-wide { margin: 4px 0 12px; }
.m-done-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); padding-top: 12px; }
.m-done-msg { font-weight: 700; margin: 0; color: var(--accent); }
.member .linkish { color: var(--muted); }
.m-switch { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.m-switch a { white-space: nowrap; padding: 7px 13px; border-radius: 99px; font-size: 14px; text-decoration: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 25%, transparent); }
.m-switch a[aria-selected="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.m-session { border-left: 6px solid var(--accent); }
.m-plan { margin-bottom: 28px; }
.m-plan h2 { font-size: 20px; margin: 0 0 2px; }
.m-days { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.m-days > li { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.m-days > li.current { box-shadow: inset 0 0 0 2px var(--accent); }
.m-days summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.m-days summary::-webkit-details-marker { display: none; }
.m-day-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 25%, transparent); }
.m-days li.done .m-day-n { background: var(--accent); color: var(--accent-text); box-shadow: none; }
.m-day-t { flex: 1; font-weight: 600; }
.m-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--accent); color: var(--accent-text); }
.m-pill-done { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent); }
.m-days details ul { margin: 0; padding: 0 14px 14px 56px; display: grid; gap: 6px; }
.m-days details li small { color: var(--muted); }
.m-past { list-style: none; padding: 0; margin: 0; }
.m-past li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); font-size: 15px; }
.m-cal-head, .m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.m-cal-head span { text-align: center; font-size: 12px; color: var(--muted); }
.m-cal span { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.m-cal span.on { background: var(--accent); }
.m-cal span.future { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.m-cal span.today { outline: 2px solid var(--text); outline-offset: 1px; }
.m-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 8; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); }
.m-tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 10px; }
.m-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-tabs a[aria-current] { color: var(--accent); }
.m-auth { width: min(420px, 100% - 32px); margin: 0 auto; padding: 56px 0; text-align: left; }
.m-auth .mono { margin-bottom: 18px; }
.m-auth h1 { font-family: var(--display); font-weight: 900; font-size: 48px; text-transform: uppercase; line-height: .95; margin-bottom: 6px; }
.m-auth .cta { width: 100%; }
.coach-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.m-signin-link { font-weight: 600; color: var(--text); }

/* routine builder in the coach dashboard */
.routine-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; }
.routine-help pre { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; overflow-x: auto; }
.routine-help code { background: #fff; padding: 1px 5px; border-radius: 4px; }
.routine-preview { background: var(--concrete); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.rp-days { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.rp-days ul { margin: 2px 0 0; padding-left: 16px; }
.tag-on { background: #CFE6D9; }
.copy-sm input { font-size: 13px; padding: 7px 8px; min-width: 160px; }
.logo img { display: block; height: 44px; width: auto; }
.dash-head .logo img { height: 38px; }
.front-brand { display: flex; justify-content: flex-end; }
.front-coach-link { font-weight: 600; }
.front-logo { display: block; width: clamp(180px, 26vw, 280px); height: auto; margin: 0 0 28px; }

/* ---------- v3: brand, admin, plans ---------- */
.hero-split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero-mark { width: clamp(160px, 20vw, 260px); height: auto; margin-bottom: 28px; }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } .hero-mark { display: none; } }
.site-foot img { height: 30px; width: auto; }
.auth-logo { display: block; margin-bottom: 18px; }
.auth-logo img { width: 130px; height: auto; display: block; }
.notice { background: #E3EEE9; border-left: 4px solid var(--bar); padding: 12px 14px; border-radius: 4px; }
.imp-bar { background: var(--grip); color: var(--ink); padding: 10px 24px; font-weight: 600; font-size: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.imp-bar .linkish { color: var(--ink); font-weight: 700; }
.admin-badge { background: var(--ink); color: var(--chalk); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.preset-row, .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.btn-row form { margin: 0; }
.plan-list { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.plan-preview { background: var(--concrete); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 16px; }
.plan-preview p { margin: 0; }
.billing-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.billing-row form { margin: 0; }
.row-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.narrow { max-width: 440px; }
.check-pad { align-self: end; padding-bottom: 12px; }
.tag-off { background: #F5D9D6; }
.danger-btn { border-color: var(--danger); color: var(--danger); }
.danger-btn:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.pad { padding: 18px 22px 0; }
.card.flush > p.pad { padding-bottom: 18px; }
.search-row { display: flex; gap: 10px; margin-bottom: 16px; max-width: 520px; }
.notice-card { border: 2px solid var(--ink); }
.profile-form { align-items: end; margin: 12px 0; grid-template-columns: 1fr 1fr auto; }
@media (max-width: 860px) { .profile-form { grid-template-columns: 1fr; } }
.flash code, code.selectable { background: rgba(255,255,255,.15); padding: 2px 6px; border-radius: 4px; word-break: break-all; user-select: all; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; }
.powered img { height: 14px; width: auto; opacity: .75; }
body.coach[style*="--bg:#12161C"] .powered img, body.coach[style*="--bg:#12161C"] .m-powered img { filter: invert(1); }
.m-powered { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-top: 10px; }
.m-powered img { height: 11px; width: auto; opacity: .7; }
/* Card headings inside dashboards stay in sentence case so names like NoIron read correctly. */
.dash-main section h2, .dash-main fieldset legend { text-transform: none; font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: 0; }

/* ---------- v4: progress, benchmarks, report ---------- */
.m-share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.m-share-btns .cta { margin-top: 0; width: 100%; padding: 0 12px; }
.cta-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.cta-ghost:hover { background: var(--accent); color: var(--accent-text); filter: none; }
.cta-sm { min-height: 38px; padding: 0 14px; margin-top: 0; font-size: 14px; }
.m-share-card .copy-row input { background: var(--surface); color: var(--text); }
.m-locked { border: 2px dashed color-mix(in srgb, var(--text) 25%, transparent); box-shadow: none; }
.bm-list { list-style: none; padding: 0; margin: 4px 0 8px; }
.bm { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.bm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.spark { color: var(--accent); flex: none; }
.bm-vals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bm-now { font-family: var(--display); font-weight: 900; font-size: 30px; }
.bm-from { font-size: 14px; color: var(--muted); }
.bm-up { color: var(--accent); }
.bm-hist summary, .bm-add summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); margin-top: 6px; }
.bm-add summary { color: var(--text); font-size: 16px; margin-top: 10px; }
.bm-add form { margin-top: 12px; }
.bm-hist ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; display: grid; gap: 4px; }
.bm-hist li { display: flex; gap: 10px; align-items: center; }
.bm-hist form { margin-left: auto; }
.two-sm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-list li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 15%, transparent); }
.ms-list li.done { color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.ms-dot { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--text) 20%, transparent); }
.ms-list li.done .ms-dot { background: var(--accent); }

/* Printable progress report */
.report-body { background: var(--bg); }
.report-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.report-bar .cta { margin-top: 0; }
.report { max-width: 820px; margin: 24px auto 60px; background: var(--surface); color: var(--text); border-radius: 16px; padding: clamp(20px, 5vw, 48px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 4px solid var(--accent); padding-bottom: 16px; margin-bottom: 22px; }
.rp-coach { display: flex; gap: 12px; align-items: center; }
.rp-coach small { display: block; color: var(--muted); }
.rp-date { text-align: right; font-size: 14px; color: var(--muted); }
.report h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 64px); text-transform: uppercase; line-height: .95; margin: 0 0 6px; }
.rp-sub { color: var(--muted); margin: 0 0 22px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.rp-stats div { border-radius: 12px; padding: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); }
.rp-stats strong { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--accent); }
.rp-stats span { font-size: 13px; color: var(--muted); }
.rp-sec { margin-top: 26px; break-inside: avoid; }
.rp-sec h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 0 0 10px; }
.rp-bar { height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.rp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.rp-tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, var(--text) 18%, transparent); }
.rp-tbl td { padding: 8px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); vertical-align: top; }
.rp-tbl small { color: var(--muted); }
.rp-spark .spark { display: block; }
.rp-cal-wrap { max-width: 420px; }
.rp-cal { gap: 4px; }
.rp-cal span { border-radius: 4px; }
.rp-cta { margin-top: 30px; padding: 22px; border-radius: 12px; text-align: center; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rp-cta p { font-weight: 700; font-size: 20px; margin: 0 0 4px; }
.rp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); font-size: 12px; color: var(--muted); }
.rp-foot img { height: 22px; width: auto; }
body.coach[style*="--bg:#12161C"] .rp-foot img { filter: invert(1); }
@media (max-width: 600px) { .rp-stats { grid-template-columns: repeat(2, 1fr); } .rp-spark { display: none; } }
@media print {
  @page { margin: 14mm; }
  .no-print { display: none !important; }
  body.report-body { background: #fff !important; }
  .report { margin: 0; max-width: none; box-shadow: none; padding: 0; border-radius: 0; background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp-log { break-before: auto; }
}
.rp-cal-wrap { max-width: 260px; }
