/* Keep Active. One stylesheet, tokens on :root, mobile first, 480px app column, admin full width. */
:root {
  --ink: #221A33;
  --body: #4A4160;
  --muted: #655C78;
  --purple: #5B2D8E;
  --purple-dark: #44206C;
  --lilac: #EAE3F3;
  --lilac-text: #DCCDEE;
  --panel: #F4F1F9;
  --border: #DCD5E8;
  --gold: #E3B23C;
  --gold-dark: #7A5A0E;
  --cream: #FBF1D9;
  --red: #A33A3A;
  --red-border: #E3B6B6;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 20px;
  --touch: 56px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.45; color: var(--ink); background: var(--white); }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--body); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
strong { font-weight: 700; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* App shell */
.app main.page { max-width: 480px; margin: 0 auto; padding: 16px 20px 110px; display: flex; flex-direction: column; gap: 20px; }
.topbar { max-width: 480px; margin: 0 auto; padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { color: var(--purple); width: 26px; height: 26px; stroke-width: 2.4; }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--lilac); color: var(--purple); display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 17px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-tight { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { margin-top: auto; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid #E6E0EF; padding: 10px 0 calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); max-width: 480px; margin: 0 auto; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; min-height: 44px; }
.bottom-nav a[aria-current="page"] { color: var(--purple); font-weight: 700; }

.flash { max-width: 440px; margin: 12px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--panel); color: var(--ink); font-weight: 600; border: 2px solid var(--border); }
.flash-ok { background: #EAF6EC; border-color: #BFE3C6; }
.flash-error { background: #FBECEC; border-color: var(--red-border); color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--touch); padding: 0 22px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-size: 20px; font-weight: 700; text-decoration: none; cursor: pointer; width: 100%; color: var(--ink); background: var(--panel); -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #D9A52B; color: var(--ink); }
.btn-outline { background: var(--white); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--purple); color: var(--ink); }
.btn-white { background: var(--white); border-color: var(--white); color: var(--purple); }
.btn-xl { min-height: 64px; font-size: 22px; font-weight: 800; border-radius: 16px; }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 14px; border-radius: 10px; width: auto; }
.btn-link { background: none; border: 0; color: var(--purple); font-weight: 600; font-size: 16px; min-height: 44px; padding: 0 4px; width: auto; }
.btn-link.muted { color: var(--muted); }
.btn[disabled] { opacity: 0.5; cursor: default; }
form.inline { display: contents; }

/* Cards and panels */
.card { border: 2px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.card-panel { border-color: var(--panel); background: var(--panel); }
.big-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; padding: 22px; border-radius: var(--radius-lg); text-decoration: none; }
.big-card .title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.big-card .sub { font-size: 16px; margin-top: 4px; }
.big-card svg { flex-shrink: 0; width: 28px; height: 28px; stroke-width: 2.4; }
.big-card.primary { background: var(--purple); color: var(--white); }
.big-card.primary .sub { color: var(--lilac-text); }
.big-card.outline { border: 2px solid var(--border); color: var(--ink); }
.big-card.outline .sub { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: var(--muted); line-height: 1.3; }
.stat.on-white { background: var(--white); color: var(--ink); }
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--panel); font-size: 15px; color: var(--body); line-height: 1.4; }
.notice svg { color: var(--purple); flex-shrink: 0; }
.tip { font-size: 15px; line-height: 1.45; color: var(--body); padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; }
.tip.note { border-color: var(--purple); background: var(--panel); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 17px; font-weight: 700; }
.field .help { font-size: 15px; color: var(--muted); }
.field .err { font-size: 15px; color: var(--red); font-weight: 600; }
input[type=text], input[type=email], input[type=password], select, textarea { width: 100%; min-height: var(--touch); padding: 0 16px; font: inherit; font-size: 18px; color: var(--ink); background: var(--white); border: 2px solid var(--border); border-radius: 12px; }
textarea { padding: 12px 16px; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.15); }
.field.has-error input { border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--body); min-height: 44px; }
.check input { width: 26px; height: 26px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--purple); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choices label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--touch); padding: 8px 12px; border-radius: 14px; border: 2px solid var(--border); background: var(--white); font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.2; }
.choices input:checked + label { background: var(--purple); border-color: var(--purple); color: var(--white); font-weight: 700; }
.choices input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 2px solid var(--border); border-radius: 12px; font-size: 17px; font-weight: 600; cursor: pointer; }
.radios input { width: 24px; height: 24px; accent-color: var(--purple); margin: 0; }
.radios input:checked + span { color: var(--purple); }

/* Workout */
.dots { display: flex; gap: 6px; align-items: center; }
.dots span { width: 28px; height: 8px; border-radius: 4px; background: var(--border); }
.dots span.on { background: var(--purple); }
.video { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--ink); text-decoration: none; position: relative; overflow: hidden; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video .play { position: relative; width: 64px; height: 64px; border-radius: 32px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.video .play svg { width: 28px; height: 28px; fill: var(--ink); stroke: none; }
.video .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(transparent, rgba(34,26,51,.85)); font-size: 13px; font-weight: 600; color: var(--lilac-text); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: var(--ink); }
.video.none { background: var(--lilac); color: var(--muted); font-size: 15px; font-weight: 600; }
.dose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dose .stat { padding: 12px; }
.dose .n { font-size: 24px; }
.dose .n.long { font-size: 17px; font-weight: 700; line-height: 1.2; padding-top: 4px; }
.steps { margin: 0; padding-left: 24px; font-size: 17px; line-height: 1.45; display: flex; flex-direction: column; gap: 5px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--white); font: inherit; font-size: 13px; font-weight: 600; color: var(--body); padding: 0 4px; cursor: pointer; }
.thumbs button.hurts { border-color: var(--red-border); color: var(--red); }
.actions-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.actions-2 .btn { width: 100%; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.list .item { display: flex; justify-content: space-between; gap: 12px; }
.list .item .r { color: var(--muted); white-space: nowrap; }
.history a.card { text-decoration: none; color: inherit; }

/* Done screen */
body.done-screen { background: var(--purple); color: var(--white); }
body.done-screen .topbar .brand, body.done-screen .topbar .brand svg { color: var(--white); }
body.done-screen .avatar { background: var(--white); }
body.done-screen .lead { color: var(--lilac-text); }
body.done-screen .card { color: var(--ink); border-color: var(--white); }
body.done-screen .bottom-nav { display: none; }
body.done-screen main.page { padding-bottom: 32px; }
.check-badge { width: 56px; height: 56px; border-radius: 28px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.check-badge svg { width: 30px; height: 30px; stroke: var(--ink); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Landing */
body.wide { color: var(--ink); }
.land-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 24px; max-width: 1120px; margin: 0 auto; }
.land-head .brand { font-size: 22px; }
.land-head nav { display: flex; gap: 20px; align-items: center; font-size: 17px; font-weight: 500; flex-wrap: wrap; }
.land-head nav a { text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.hero { max-width: 1120px; margin: 0 auto; padding: 40px 24px 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero .copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.hero .lead { font-size: 20px; max-width: 540px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .cta .btn { width: auto; min-height: 60px; padding: 0 30px; }
.hero .cta span { font-size: 16px; color: var(--muted); }
.phone-wrap { flex: 0 1 340px; display: flex; justify-content: center; }
.phone { width: 300px; background: var(--ink); border-radius: 36px; padding: 14px; }
.phone .screen { background: var(--white); border-radius: 26px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 520px; }
.phone .name { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.phone .vid { height: 150px; border-radius: 14px; background: var(--lilac); display: flex; align-items: center; justify-content: center; }
.phone .vid .play { width: 54px; height: 54px; border-radius: 27px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.phone .vid .play svg { width: 22px; height: 22px; fill: var(--ink); }
.phone ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--body); display: flex; flex-direction: column; gap: 4px; }
.phone .fake-btn { height: 50px; border-radius: 12px; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.phone .fake-btn.alt { height: 42px; background: var(--white); border: 2px solid var(--border); color: var(--ink); font-weight: 600; font-size: 15px; }
.band { padding: 56px 24px; }
.band.panel { background: var(--panel); }
.band.dark { background: var(--ink); color: var(--white); }
.band .inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.band h2 { font-size: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how-card { background: var(--white); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.how-card .num { width: 44px; height: 44px; border-radius: 12px; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.how-card h3 { font-size: 21px; }
.how-card p { font-size: 17px; line-height: 1.5; color: var(--body); }
.place { border: 2px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.place.hi { border-color: var(--purple); background: var(--panel); }
.place h3 { font-size: 20px; }
.place p { font-size: 16px; line-height: 1.5; color: var(--body); }
.price-band .inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; }
.price-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.price-copy p { font-size: 19px; line-height: 1.5; color: #C9BFD9; }
.price-card { flex: 0 1 380px; width: 100%; background: var(--white); color: var(--ink); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.price-card .amount { display: flex; align-items: baseline; gap: 8px; }
.price-card .amount b { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; color: var(--purple); }
.price-card .amount span { font-size: 18px; color: var(--muted); }
.price-card .btn { min-height: 60px; }
.price-card .fine { font-size: 15px; color: var(--muted); line-height: 1.5; }
footer.land-foot { padding: 32px 24px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; text-align: center; }
footer.land-foot a { color: var(--muted); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .band h2 { font-size: 26px; }
  .phone-wrap { flex-basis: 100%; }
}

/* Legal pages */
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.55; color: var(--body); }
.prose h2 { font-size: 20px; color: var(--ink); margin-top: 8px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.pair .btn { font-size: 18px; padding: 0 12px; }

/* Admin: Steve's laptop, full width */
body.admin { background: #FAF9FC; font-size: 15px; }
.admin-bar { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: var(--white); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-bar nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.admin-bar nav a[aria-current="page"], .admin-bar nav a:hover { background: var(--panel); color: var(--purple); }
.admin-page { padding: 20px 24px 80px; max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.admin h1 { font-size: 26px; }
.admin h2 { font-size: 17px; }
.admin .lead { font-size: 15px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.kpi .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.kpi .l { font-size: 13px; color: var(--muted); }
.kpi.warn .n { color: var(--red); }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.grid th, table.grid td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #EEEAF4; vertical-align: top; }
table.grid th { background: var(--panel); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover td { background: #FBFAFD; }
table.grid a { font-weight: 600; text-decoration: none; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.filters .field { gap: 4px; }
.filters .field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.admin input[type=text], .admin input[type=number], .admin input[type=url], .admin select, .admin textarea { min-height: 40px; font-size: 15px; padding: 0 10px; border-radius: 8px; }
.admin textarea { padding: 8px 10px; min-height: 96px; font-family: inherit; line-height: 1.4; }
.admin .field label, .admin .field .label { font-size: 13px; font-weight: 600; color: var(--muted); }
.btn-admin { min-height: 40px; font-size: 15px; padding: 0 14px; border-radius: 8px; width: auto; }
.btn-admin.btn-xl { min-height: 48px; font-size: 16px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel); color: var(--body); line-height: 1.5; white-space: nowrap; }
.pill.live { background: #EAF6EC; color: #1E6B34; }
.pill.draft { background: var(--cream); color: var(--gold-dark); }
.pill.retired, .pill.off { background: #EEECF1; color: #666; }
.pill.dead, .pill.warn { background: #FBECEC; color: var(--red); }
.pill.ok { background: #EAF6EC; color: #1E6B34; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .edit-grid { grid-template-columns: 1fr; } }
.panel-box { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; font-size: 14px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--purple); margin: 0; flex-shrink: 0; }
.checks .opt { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.checks .opt input { width: 14px; height: 14px; }
.levels-table td input { min-height: 36px; font-size: 14px; }
.video-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid #EEEAF4; }
.video-row:first-of-type { border-top: 0; }
.video-row img { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--ink); flex-shrink: 0; }
.video-row .meta { flex: 1; min-width: 0; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.video-row .meta b { font-size: 14px; }
.video-row .acts { display: flex; gap: 6px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--border); margin: 0 -24px -80px; padding: 12px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; z-index: 2; }
.pager { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.safety-grid select { min-height: 36px; font-size: 14px; }
.inline-form { display: inline; }
.admin .notice { font-size: 14px; }

/* Routines */
.routine-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--ink); }
.routine-card .badge { width: 48px; height: 48px; border-radius: 12px; background: var(--lilac); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.routine-card .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.routine-card .meta b { font-size: 17px; }
.routine-card .meta span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.routine-card svg { margin-left: auto; flex-shrink: 0; color: var(--muted); }
.moves { display: flex; flex-direction: column; gap: 0; border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.moves .move { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid #EEEAF4; font-size: 16px; }
.moves .move:first-child { border-top: 0; }
.moves .move .r { color: var(--muted); white-space: nowrap; font-size: 15px; }
.moves .move .k { font-size: 13px; color: var(--muted); }

.choices .btn { padding: 0 8px; font-size: 18px; }
.dose .n.long { font-size: 20px; }

/* admin: videos, needs video, routines, equipment (2026-11-08) */
table.grid img.thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: var(--ink); display: block; }
table.grid td.group-row { background: var(--panel); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
table.grid td .inline-form + .inline-form { margin-left: 6px; }
.yt-picks { display: flex; flex-direction: column; gap: 10px; }
.yt-pick { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.yt-pick img { width: 200px; height: 112px; object-fit: cover; border-radius: 8px; background: var(--ink); flex-shrink: 0; }
.yt-pick .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 14px; }
.yt-pick .meta b { font-size: 15px; line-height: 1.3; }
@media (max-width: 640px) { .yt-pick { flex-direction: column; } .yt-pick img { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
.members-table td.handle { cursor: grab; color: var(--muted); font-weight: 800; letter-spacing: -2px; user-select: none; width: 28px; text-align: center; }
.members-table tr.dragging { opacity: 0.4; }
.members-table tr.drop-before td { border-top: 2px solid var(--purple); }
.members-table tr.drop-after td { border-bottom: 2px solid var(--purple); }
.admin input[type=number].sort { font-size: 14px; }
.admin .kpi .n { word-break: break-word; }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* PWA: the add-to-home-screen banner (2026-11-08) */
.install-banner[hidden] { display: none; }
.install-banner { max-width: 440px; margin: 12px auto 0; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 2px solid var(--border); display: flex; align-items: center; gap: 12px; }
.install-banner .words { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--body); }
.install-banner .words b { color: var(--ink); }
.install-banner .acts { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.install-banner .btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; width: auto; }
.install-banner .btn-link { min-height: 32px; font-size: 14px; }
