/* Sets with Willie — mobile-first styles */
:root {
  --bg: #0d0f11; --panel: #16191d; --panel2: #1e2227; --line: #2b3038; --text: #f3f5f7; --mute: #9aa4af;
  --accent: #8f1d2f; --accent-t: #ec7388; --accent-ink: #ffffff; --accent-edge: #a8283c; --accent-soft: #6b2a36; --accent-wash: #24121a; --gold: #ffb224; --red: #ff6b6b; --blue: #62b6ff; --green: #3ddc84; --pink: #ff8ad1;
  --r: 14px; --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
body.modal-open { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 16px; font-weight: 750; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
h2 .btn, h2 .more, h2 .count { margin-left: auto; }
h3.sub, h4.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 20px 0 8px; font-weight: 700; }
h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 14px 0 6px; }
a { color: var(--accent-t); text-decoration: none; }
small { font-size: 12.5px; }
[hidden], .filtered { display: none !important; }
.mute { color: var(--mute); } .good { color: var(--green); } .bad { color: var(--red); }
.grow { flex: 1 1 auto; min-width: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-t); font-weight: 700; margin-bottom: 4px; }
.hint { font-size: 13px; color: var(--mute); margin-top: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2px solid var(--accent-t); outline-offset: 2px; }

/* ── shell ── */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(13, 15, 17, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; border: 1px solid #3a1820; }
.brand { font-weight: 800; letter-spacing: -.01em; font-size: 16px; color: var(--text); }
#sidebar { display: none; }
#view { padding: 16px 16px calc(96px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }
#bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(22, 25, 29, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
#bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; color: var(--mute); font-size: 11px; font-weight: 600; min-height: 56px; }
#bottom-nav a.on { color: var(--accent-t); }

@media (min-width: 900px) {
  body { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
  #topbar, #bottom-nav { display: none; }
  #sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; }
  #sidebar .brand-row { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
  #side-nav { display: flex; flex-direction: column; gap: 2px; }
  #side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--mute); font-weight: 600; }
  #side-nav a:hover { background: var(--panel2); color: var(--text); }
  #side-nav a.on { background: var(--accent); color: var(--accent-ink); }
  #view { padding: 32px 36px 60px; width: 100%; }
  h1 { font-size: 32px; }
}

/* ── building blocks ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 4px; }
.row-head h2 { margin: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
a.card { color: inherit; display: block; }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.cols > .card { margin: 0; } .cols { margin-bottom: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
.grid > .card { margin: 0; }
@media (min-width: 720px) { .cols, .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } .cols.wide-left { grid-template-columns: 3fr 2fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #4a515c; }
.btn.primary { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); }
.btn.danger { color: var(--red); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent-t); font: inherit; font-size: 13px; cursor: pointer; }
.more { font-size: 13px; font-weight: 600; }
.ib { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 16px; cursor: pointer; }
.ib:disabled { opacity: .3; } .ib.del { color: var(--red); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.quick::-webkit-scrollbar, .scroll::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.quick .btn { flex: none; }

.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); color: var(--mute); white-space: nowrap; font-style: normal; }
.pill.link { color: var(--accent-t); cursor: pointer; font-size: 12.5px; padding: 6px 12px; }
.pill.blue { color: var(--blue); border-color: #2b4d6b; } .pill.green { color: var(--green); border-color: #1f5a3a; }
.pill.red { color: var(--red); border-color: #6b2f2f; } .pill.gold { color: var(--gold); border-color: #6b4d14; }
.pill.accent { color: var(--accent-t); border-color: var(--accent-soft); } .pill.pink { color: var(--pink); border-color: #6b3a5a; }
.lvl1 { color: var(--blue) !important; border-color: #2b4d6b !important; } .lvl2 { color: var(--green) !important; border-color: #1f5a3a !important; }
.lvl3 { color: var(--gold) !important; border-color: #6b4d14 !important; } .lvl4 { color: var(--red) !important; border-color: #6b2f2f !important; }
.tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; background: var(--panel2); color: var(--mute); vertical-align: 1px; }
.tag.gold { background: var(--gold); color: #201400; }
.count { font-size: 12px; color: var(--mute); font-weight: 600; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accent-t); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; } .avatar.xl { width: 60px; height: 60px; font-size: 20px; }
.empty { text-align: center; padding: 18px 10px; color: var(--mute); font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.empty .btn { margin-top: 10px; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.bar { height: 7px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin: 8px 0 6px; }
.bar i { display: block; height: 100%; background: var(--accent-t); border-radius: 99px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: inherit; display: block; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--mute); }
.stat.hot b { color: var(--gold); }
.stats.small .stat b { font-size: 20px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; width: 100%; cursor: pointer; min-height: var(--tap); }
.rows > .row:first-child { border-top: 0; }
div.row { cursor: default; }
.row b, .grow > b { display: block; font-weight: 650; }
.row small, .grow > small { display: block; color: var(--mute); }
.time { flex: none; width: 62px; text-align: left; }
.time b { display: block; font-size: 14px; } .time small { display: block; color: var(--mute); }
.chev { color: var(--mute); font-size: 20px; flex: none; }
.trophy { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 178, 36, .14); color: var(--gold); display: grid; place-items: center; flex: none; }
.kv { margin: 10px 0; font-size: 14px; white-space: pre-line; }
.kv small { display: block; color: var(--mute); text-transform: uppercase; letter-spacing: .07em; font-size: 11px; font-weight: 700; margin-bottom: 2px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs a { flex: none; padding: 10px 12px; color: var(--mute); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent-t); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px -16px; padding: 0 16px; }
.chip { flex: none; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.search { width: 100%; margin-bottom: 4px; }

/* ── forms ── */
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
textarea { resize: vertical; line-height: 1.4; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent-t); flex: none; }
input.bad { border-color: var(--red); }
select.mini { width: auto; min-height: 36px; padding: 4px 8px; font-size: 13.5px; }
.field { margin-bottom: 12px; min-width: 0; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; color: #cfd6dd; }
.field small { display: block; color: var(--mute); margin-top: 4px; }
.field.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.field.check span { font-weight: 600; }
.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 12px; }
.fgrid > * { grid-column: span 6; }
.fgrid > .half { grid-column: span 3; }
.fgrid > .third { grid-column: span 2; }
@media (max-width: 420px) { .fgrid > .third { grid-column: span 3; } .fgrid > .third:first-child { grid-column: span 6; } }
.tick { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.tick input { margin-top: 1px; }

/* ── modal sheet ── */
#modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .18s ease-out; }
.sheet form { display: flex; flex-direction: column; min-height: 0; }
.sheet.tall { height: 92dvh; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet header h3 { font-size: 17px; font-weight: 750; }
.sheet .x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--text); cursor: pointer; font-size: 14px; }
.sheet-body { padding: 14px 16px; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.sheet footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.sheet footer .btn.primary { margin-left: auto; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 720px) { #modal { align-items: center; } .sheet { border-radius: 18px; max-height: 86vh; } .sheet.tall { height: 86vh; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-grid a { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 650; }
#toast { position: fixed; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── clients ── */
.back { display: inline-block; margin-bottom: 10px; font-weight: 650; padding: 4px 0; }
.client-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.client-card .cc-top { display: flex; gap: 12px; align-items: center; }
.cc-goal { margin: 12px 0 6px; font-size: 14px; }
.level-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.level-pick button { padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--mute); font: inherit; cursor: pointer; min-height: 58px; }
.level-pick { margin-top: 10px; }
.level-pick button { padding-left: 1px; padding-right: 1px; overflow-wrap: normal; }
.level-pick button b { display: block; font-size: 18px; } .level-pick button span { font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; }
.level-pick button.on { background: rgba(255, 255, 255, .06); border-width: 2px; }
.ratings { width: 100%; border-collapse: collapse; }
.ratings th { text-align: left; font-weight: 600; font-size: 13.5px; padding: 7px 0; }
.ratings thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
.dots { display: inline-flex; gap: 3px; }
.dots button { width: 24px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 4px; top: 7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.dots button.on::after { background: var(--accent-t); border-color: var(--accent-t); }
.goal { padding: 10px 0; border-top: 1px solid var(--line); }
.goal:first-of-type { border-top: 0; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.goal.done b { text-decoration: line-through; color: var(--mute); }
.pr.is-primary, .lib-item.is-primary, .blist li.is-primary, .pick.is-primary { border-color: #6b4d14; box-shadow: inset 3px 0 0 var(--gold); }
.pr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .big small { font-size: 14px; color: var(--mute); font-weight: 600; }
.spark { width: 100%; height: 56px; color: var(--accent-t); margin: 8px 0; display: block; }
.trend { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 8px; }
.hist { display: flex; flex-direction: column; }
.hrow { display: flex; justify-content: space-between; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.jnote { padding: 10px 0; border-top: 1px solid var(--line); } .jnote small { color: var(--mute); } .jnote p { white-space: pre-line; margin-top: 2px; }

/* ── workouts / details cards ── */
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .chev { transform: rotate(180deg); }
.workout { padding: 12px 14px; margin-bottom: 8px; }
.w-body, .lib-body { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.xlist, .blist, .points, .agenda ul { list-style: none; margin: 0; padding: 0; }
.xlist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.xlist li:first-child { border-top: 0; }
.xlist li small { display: block; color: var(--mute); }
.xlist li.is-primary b { color: var(--gold); }
.dose { flex: none; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--accent-t); font-size: 14px; }

/* ── builder ── */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
@media (min-width: 720px) { .split-grid { grid-template-columns: repeat(4, 1fr); } .split-grid.five { grid-template-columns: repeat(5, 1fr); } }
.split { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; cursor: pointer; min-height: 64px; }
.split b { display: block; } .split small { display: block; color: var(--mute); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.split .days { color: var(--accent-t); margin-top: 6px; }
.split.on { border-color: var(--accent-t); box-shadow: inset 0 0 0 1px var(--accent-t); }
.blist { margin-bottom: 12px; }
.blist li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: var(--bg); }
.b-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.b-note { color: var(--mute); font-size: 13.5px; margin: 6px 0 10px; }
.b-ctl { display: flex; align-items: center; gap: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel2); }
.stepper button { width: 40px; height: 36px; border: 0; background: none; color: var(--text); font-size: 18px; cursor: pointer; }
.stepper button:disabled { opacity: .25; }
.stepper b { min-width: 34px; text-align: center; font-size: 13px; }
.sr { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.sr input { width: 48px; min-height: 38px; padding: 4px; text-align: center; font-weight: 700; font-size: 15px; }
.sr input:last-child { width: 74px; }
.sr i { color: var(--mute); font-style: normal; }
.weeks { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .weeks { grid-template-columns: repeat(4, 1fr); } }
.week { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: center; }
.week small { color: var(--mute); text-align: right; } .week p { grid-column: 1 / -1; font-size: 12.5px; color: var(--mute); }
.savebar { position: sticky; bottom: calc(64px + var(--safe-b)); display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; background: rgba(22, 25, 29, .96); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); z-index: 10; }
.savebar .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .savebar { bottom: 16px; } }
.picks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.pick .chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; color: transparent; flex: none; }
.pick.on { border-color: var(--accent-t); } .pick.on .chk { background: var(--accent); border-color: var(--accent-t); color: var(--accent-ink); }

/* ── library / meetings ── */
.lib { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 1000px) { .lib { grid-template-columns: 1fr 1fr; align-items: start; } }
.lib-item { margin: 0; padding: 12px 14px; }
.lib-body p { margin: 10px 0; font-size: 14px; }
.levels { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.levels th, .levels td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.levels th { width: 86px; font-weight: 400; } .levels th small { display: block; color: var(--mute); margin-top: 3px; }
.levels td.dose { width: 84px; white-space: normal; }
.tpl { padding: 14px; } .agenda { padding-left: 20px; margin: 12px 0; } .agenda > li { margin-bottom: 10px; }
.agenda ul li { color: var(--mute); font-size: 13.5px; padding: 2px 0; } .agenda ul li::before { content: "– "; }
.meeting { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1000px) { .meeting { grid-template-columns: 320px 1fr; } .snapshot { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.snapshot { margin: 0; }
.points li { padding: 7px 0; } .points { margin-bottom: 10px; }
.points input:checked + span { color: var(--mute); text-decoration: line-through; }

/* ── comms / grow ── */
.comm { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: var(--panel); }
.card .comm { background: var(--bg); }
.comm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comm-text { margin: 8px 0 0; white-space: pre-line; font-size: 14.5px; }
.comm-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tplrow { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.tplrow p { font-size: 14.5px; } .tplrow .btn { flex: none; }
.play { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.play b { display: block; } .play small { display: block; color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.play.done b { text-decoration: line-through; color: var(--mute); }

/* ── calendar ── */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head b { flex: 1; text-align: center; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; font-size: 11px; color: var(--mute); font-weight: 700; text-transform: uppercase; padding: 4px 0; }
.dow i { font-style: normal; display: none; } @media (min-width: 720px) { .dow i { display: inline; } }
.day { aspect-ratio: 1 / 1; min-height: 42px; border-radius: 10px; border: 1px solid transparent; background: var(--panel2); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; }
@media (min-width: 720px) { .day { aspect-ratio: auto; height: 62px; } }
.day.out { background: none; color: #56606b; }
.day.today { border-color: var(--accent-t); color: var(--accent-t); }
.day.sel { background: var(--accent); color: var(--accent-ink); }
.day i { display: flex; gap: 2px; height: 6px; }
.day u, .legend u { width: 6px; height: 6px; border-radius: 50%; display: inline-block; text-decoration: none; }
u.e { background: var(--gold); } u.m { background: var(--blue); }
.day.sel u.e { background: var(--accent-ink); } .day.sel u.m { background: #2b4d6b; }
.legend { font-size: 12px; color: var(--mute); margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.cal-embed { width: 100%; height: 520px; border: 0; border-radius: 10px; background: #fff; }

@media print {
  #topbar, #sidebar, #bottom-nav, .quick, .actions, .savebar, .tabs { display: none !important; }
  body { background: #fff; color: #000; display: block; } .card { border-color: #ccc; background: #fff; }
}

/* ── client grade ── */
.grade { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.grade-badge { width: 64px; height: 64px; border-radius: 16px; border: 2px solid currentColor; display: grid; place-items: center; font-size: 30px; font-weight: 800; flex: none; background: rgba(255,255,255,.04); }
.shift { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); margin-left: auto; }
.sync-dot.ok { background: var(--green); } .sync-dot.err { background: var(--gold); } .sync-dot.busy { background: var(--blue); }
.card > p.mute { margin-bottom: 10px; }

/* ── form diagrams ── */
.form-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin: 8px 0 10px; }
.form-svg { display: block; width: 100%; max-width: 520px; margin: 0 auto; }
.form-svg[viewBox$="200 190"] { max-width: 260px; }
.fg-limb, .fg-torso, .fg-far { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fg-limb { stroke: #e9edf1; stroke-width: 8; } .fg-torso { stroke: #e9edf1; stroke-width: 12; } .fg-far { stroke: #5b6470; stroke-width: 8; }
.fg-head { fill: #e9edf1; } .fg-ground { stroke: #3a414b; stroke-width: 2; } .fg-prop { fill: #3a414b; } .fg-propline { stroke: #3a414b; stroke-width: 4; stroke-linecap: round; }
.fg-bar { stroke: var(--accent-t); stroke-width: 5; stroke-linecap: round; } .fg-weight { fill: var(--accent-t); } .fg-hole { fill: var(--bg); }
.fg-label { fill: var(--mute); font-size: 11px; font-weight: 600; } .fg-arrow { fill: none; stroke: var(--accent-t); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; margin: 0 0 10px; padding: 0; } .checks li { position: relative; padding: 5px 0 5px 24px; font-size: 14px; }
.checks li::before { position: absolute; left: 0; top: 5px; font-weight: 800; }
.checks.ok li::before { content: "✓"; color: var(--green); } .checks.no li::before { content: "✕"; color: var(--red); } .checks.q li::before { content: "?"; color: var(--accent-t); }
.checks li.mine { color: var(--gold); }
.cols2 { display: grid; gap: 0 16px; } @media (min-width: 520px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.inline-add { display: flex; gap: 8px; margin: 6px 0 12px; } .inline-add input { flex: 1; min-width: 0; }
.pill.mus { border-color: var(--accent-soft); color: #c9909b; } .pill.mus.p { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); }
.formd summary { display: inline-flex; padding: 4px 0; } .stack { display: flex; flex-direction: column; gap: 6px; flex: none; }
.kv.warn { border-left: 3px solid var(--gold); padding-left: 10px; }

/* ── 3D body ── */
.body3d { position: relative; height: 380px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #20242b, #0d0f11 75%); border: 1px solid var(--line); overflow: hidden; margin: 8px 0; touch-action: none; }
.body3d canvas { display: block; width: 100%; height: 100%; cursor: grab; } .body3d canvas:active { cursor: grabbing; }
.b3-bar { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.b3-bar button { min-height: 34px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line); background: rgba(22, 25, 29, .85); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.b3-bar button[data-zoom] { margin-left: 0; width: 34px; padding: 0; } .b3-bar button[data-zoom="1"] { margin-left: auto; }
.b3-tip { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: 12.5px; font-weight: 650; color: var(--text); background: rgba(13, 15, 17, .7); border-radius: 8px; padding: 6px 8px; pointer-events: none; }
.body3d.no3d { height: auto; padding: 14px; }
.region { padding: 8px 0; border-top: 1px solid var(--line); } .region b { font-size: 13px; } .region .chips { margin: 6px 0 0; }
.region .chip.on { background: var(--gold); border-color: var(--gold); color: #201400; }

/* ── segmented controls, portal ── */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel2); }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--mute); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.seg button:first-child { border-left: 0; } .seg button.on { color: var(--accent-ink); background: var(--accent); } .seg button.on.some { background: #7a5a12; } .seg button.on.no { background: #5b6470; }
.seg.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; } .seg.wide button { padding: 8px 2px; min-height: 52px; }
.seg.wide b { display: block; font-size: 15px; } .seg.wide small { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.2; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.plog { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; } .pex.done { border-color: #1f5a3a; }
.plink { display: flex; align-items: center; gap: 12px; } .plink .pill { flex: none; }
.promo { display: block; border-color: var(--accent-soft); background: var(--accent-wash); } .promo b { display: block; font-size: 16px; margin-bottom: 2px; } .promo small { color: var(--mute); }
.agenda-block.off { opacity: .6; } .agenda-block h2 { margin-bottom: 4px; } .agenda-block h2 .tick span { font-weight: 750; } .points li.mine span { color: var(--gold); }
.portal-msg { max-width: 420px; margin: 60px auto; text-align: center; } .portal-msg .logo { margin: 0 auto 12px; width: 56px; height: 56px; } .portal-msg h2 { justify-content: center; }
body.portal-mode #sidebar, body.portal-mode #bottom-nav { display: none; }
body.portal-mode { display: block; } body.portal-mode #topbar { display: flex; } body.portal-mode #topbar .brand { pointer-events: none; }
body.portal-mode #view { padding-bottom: 40px; max-width: 760px; }
.hrow { gap: 12px; text-align: left; } .hrow span:last-child { text-align: right; }

/* ── brand, view toggle, messaging, cycles ── */
.logo { background: #fff; object-fit: cover; } :root:not([data-brand="matt"]) .logo { background: none; }
.brand-org { padding: 0 8px 16px; } .brand-org img { display: block; width: 150px; max-width: 100%; } .brand-org small { color: var(--mute); font-size: 11.5px; }
#topbar .brand-org { padding: 0; margin-left: auto; } #topbar .brand-org img { width: 96px; } #topbar .brand-org small { display: none; }
.viewtoggle { margin: 0 0 14px; } .viewtoggle .seg { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; }
.viewtoggle .seg a { display: grid; place-items: center; min-height: 40px; color: var(--mute); font-weight: 650; font-size: 13.5px; border-left: 1px solid var(--line); }
.viewtoggle .seg a:first-child { border-left: 0; } .viewtoggle .seg a.on { background: var(--accent); color: var(--accent-ink); }
.thread { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); align-self: flex-start; white-space: pre-line; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); }
.msg small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; } .msg .pill { margin-bottom: 5px; }
.msg.req { border-color: var(--gold); } .msg .actions { margin-top: 8px; }
.composer { display: flex; gap: 8px; align-items: flex-end; } .composer textarea { flex: 1; min-height: 44px; }
.reqs { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 12px; } @media (min-width: 560px) { .reqs { grid-template-columns: repeat(3, 1fr); } }
.cyc-hyp { color: var(--pink) !important; border-color: #6b3a5a !important; } .cyc-str { color: var(--red) !important; border-color: #6b2f2f !important; }
.cyc-pow { color: var(--gold) !important; border-color: #6b4d14 !important; } .cyc-end { color: var(--blue) !important; border-color: #2b4d6b !important; }
.cyc-rec { color: var(--green) !important; border-color: #1f5a3a !important; } .cyc-base { color: var(--mute) !important; }
.timeline { display: flex; gap: 3px; height: 34px; border-radius: 10px; overflow: hidden; margin: 10px 0; background: var(--panel2); }
.timeline span { display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0d0f11; min-width: 0; overflow: hidden; white-space: nowrap; padding: 0 4px; }
.timeline .cyc-hyp { background: var(--pink); color: #0d0f11 !important; } .timeline .cyc-str { background: var(--red); color: #0d0f11 !important; } .timeline .cyc-pow { background: var(--gold); color: #0d0f11 !important; }
.timeline .cyc-end { background: var(--blue); color: #0d0f11 !important; } .timeline .cyc-rec { background: var(--green); color: #0d0f11 !important; } .timeline .cyc-base { background: #7b8591; color: #0d0f11 !important; }
.timeline span.now { outline: 2px solid var(--text); outline-offset: -2px; }
.cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } @media (min-width: 720px) { .cycle-grid { grid-template-columns: repeat(4, 1fr); } }
#view { min-width: 0; } @media (min-width: 900px) { .quick { flex-wrap: wrap; overflow: visible; } }
.plink { flex-wrap: wrap; } .plink .grow { flex: 1 1 55%; }

/* ── team (owner / trainers) ── */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; } table.team { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.team th, table.team td { padding: 10px 8px; border-top: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.team thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); border-top: 0; }
table.team tbody tr { cursor: pointer; } table.team tbody tr:hover { background: var(--panel2); }
table.team tbody th { display: flex; align-items: center; gap: 10px; font-weight: 400; } table.team tbody th small { display: block; color: var(--mute); }

/* ── revenue ── */
table.team td.amt, table.team th.amt { text-align: right; font-variant-numeric: tabular-nums; }
table.team tr.total th, table.team tr.total td { border-top: 2px solid var(--line); font-weight: 700; } table.team tr.total { cursor: default; } table.team tr.total:hover { background: none; }
table.team.plain tbody tr { cursor: default; } table.team.plain tbody tr:hover { background: none; } table.team.plain tbody th { display: table-cell; font-weight: 600; }
.bar.big { height: 12px; position: relative; overflow: visible; } .bar.big i { border-radius: 99px; } .bar.big u { position: absolute; top: -4px; width: 3px; height: 20px; background: var(--text); border-radius: 2px; transform: translateX(-1px); }
.lrow { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; } .lrow:first-of-type { border-top: 0; }
.lrow small { display: block; color: var(--mute); } .lrow .bar { display: block; margin: 6px 0 0; } .lval { flex: none; font-size: 15px; white-space: nowrap; }
.chart { position: relative; } .chart svg { display: block; width: 100%; height: auto; }
.ch-grid { stroke: #2c2f34; stroke-width: 1; } .ch-base { stroke: #3d4148; stroke-width: 1; } .ch-axis { fill: #8b9199; font-size: 11px; } .ch-axis.now { fill: var(--text); font-weight: 700; }
.ch-val { fill: var(--text); font-size: 12px; font-weight: 700; } .ch-now { fill: rgba(255, 255, 255, .04); }
.ch-recv { fill: #3987e5; } .ch-exp { fill: url(#hatch); stroke: #3987e5; stroke-width: 1; } .ch-grow { fill: #d95926; }
.ch-goal { stroke: #f0efec; stroke-width: 2; stroke-dasharray: 4 3; } .ch-hit { fill: transparent; cursor: pointer; outline: none; } .ch-hit:hover, .ch-hit:focus { fill: rgba(255, 255, 255, .06); }
.ch-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12.5px; color: #c3c7cd; margin-top: 6px; } .ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; } .k.recv { background: #3987e5; } .k.grow { background: #d95926; }
.k.exp { background: repeating-linear-gradient(45deg, #3987e5 0 3px, rgba(57, 135, 229, .28) 3px 6px); border: 1px solid #3987e5; } .ch-legend .k.goal { height: 0; width: 18px; border-top: 2px dashed #f0efec; border-radius: 0; }
.ch-tip { position: absolute; z-index: 5; background: #0b0c0e; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); max-width: 240px; }
.ch-tip b { display: block; margin-bottom: 2px; } .ch-tip span { display: block; color: #c3c7cd; font-variant-numeric: tabular-nums; }

/* ── expenses & profit ── */
.ch-expl { fill: none; stroke: #199e70; stroke-width: 2; stroke-linejoin: round; } .ch-expd { fill: #199e70; stroke: #16191d; stroke-width: 2; }
.ch-legend .k.expl { height: 0; width: 18px; border-top: 2px solid #199e70; border-radius: 0; position: relative; }
.ch-legend .k.expl::after { content: ""; position: absolute; left: 5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #199e70; }
.pl { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; } .pl div { flex: 1 1 90px; } .pl small { display: block; color: var(--mute); font-size: 12px; }
.pl b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .pl i { font-style: normal; color: var(--mute); font-size: 20px; }
.monthnav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .monthnav b { min-width: 150px; text-align: center; font-size: 16px; }
.row .lval small { font-weight: 400; }
.actions .btn { white-space: normal; text-align: center; }
.workout > summary { flex-wrap: wrap; row-gap: 6px; } .workout > summary .grow { flex: 1 1 52%; }

/* ── horizontal bars: stay visible, stay centred, show there is more ── */
:root { --bar-top: 59px; } @media (min-width: 900px) { :root { --bar-top: 0px; } }
.tabs { position: sticky; top: var(--bar-top); z-index: 15; background: var(--bg); padding-top: 2px; }
.tabs a.on { font-weight: 750; }
.tabs, .chips.scroll, .quick { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tabs, .chips.scroll { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); }
.tabs::after, .chips.scroll::after { content: ""; flex: 0 0 12px; }
.sheet .chips.scroll { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; }

/* ── comfortable tap targets for text links ── */
.link, .more { display: inline-block; padding: 9px 6px; margin: -9px -6px; }
.back { min-height: 36px; display: inline-flex; align-items: center; }
.dots button { width: 26px; height: 34px; } .dots button::after { left: 5px; top: 9px; }
.pill.link { margin: 0; padding: 6px 12px; display: inline-flex; }

/* ── app tour ── */
.tour video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.tour-list { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; } .tour-list li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 520px) { .tour-list { columns: 1; } }
.tour-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-color: var(--accent-soft); background: var(--accent-wash); }
.tour-main { display: flex; align-items: center; gap: 14px; color: inherit; flex: 1; min-width: 0; }
.tour-card .thumb { position: relative; flex: none; } .tour-card img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.tour-card .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.tour-card b { display: block; } .tour-card small { display: block; color: var(--mute); }
.tour-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-width: 0; }
@media (max-width: 640px) { .tour-tiles { grid-template-columns: 1fr; gap: 8px; } }
.tour-pick { margin-bottom: 10px; }
@media (max-width: 400px) { .tour-card img { width: 92px; } }

/* ── session log & summary ── */
table.sets { width: 100%; border-collapse: collapse; margin: 4px 0 2px; } table.sets th, table.sets td { padding: 4px 4px; text-align: left; }
table.sets thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); }
table.sets tbody th { width: 40px; color: var(--mute); font-weight: 700; } table.sets input { min-height: 42px; padding: 8px 10px; font-weight: 650; }
.lg-wu { padding: 8px 0; border-top: 1px solid var(--line); } .lg-wu:first-of-type { border-top: 0; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } @media (min-width: 720px) { .share-grid { grid-template-columns: repeat(3, 1fr); } }
.summary .sum-title { font-size: 24px; margin: 2px 0 4px; } .summary .sum-head { margin: 6px 0 14px; }
.bodymap { display: flex; justify-content: center; margin: 4px 0 10px; } .bodymap svg { width: 100%; max-width: 300px; height: auto; }
.sum-portal .stats { margin: 4px 0 8px; }
.sum-list .sum-sets { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text); }
.sum-list .sum-num { flex: none; text-align: right; font-variant-numeric: tabular-nums; } .sum-list .sum-num b { display: block; font-size: 15px; } .sum-list .sum-num small { display: block; margin-bottom: 4px; }

/* ── content studio ── */
.studio-kinds { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; } @media (min-width: 720px) { .studio-kinds { grid-template-columns: repeat(3, 1fr); } }
.studio-kind { text-align: left; font: inherit; color: inherit; cursor: pointer; margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.studio-kind:hover { border-color: var(--accent-soft); } .studio-kind b { font-size: 17px; } .studio-kind small { color: var(--mute); font-size: 13.5px; } .sk-icon { font-size: 26px; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.clip-tile { position: relative; aspect-ratio: 9 / 12; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; padding: 0; cursor: pointer; }
.clip-tile img { width: 100%; height: 100%; object-fit: cover; display: block; } .clip-tile small { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; }
.clip-tile .ph, .clip-head .ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--mute); font-size: 20px; }
.clip-view, .exp-out video, .demo-video video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; display: block; }
.demo-video { margin: 0 0 12px; } .demo-video small { display: block; margin-top: 4px; }
.tag.vid { background: var(--accent); color: var(--accent-ink); }
.editor { display: grid; gap: 14px; align-items: start; } @media (min-width: 1000px) { .editor { grid-template-columns: 380px 1fr; } .pv-card { position: sticky; top: 16px; } }
.pv-card { margin: 0; } .pv-wrap { position: relative; margin: 0 auto 10px; background: #000; border-radius: 12px; overflow: hidden; }
.pv-wrap canvas { display: block; width: 100%; height: auto; } .pv-wrap.f916 { max-width: 300px; } .pv-wrap.f11 { max-width: 380px; } .pv-wrap.f169 { max-width: 100%; }
.pv-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-size: 14px; }
.pv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .pv-bar input[type=range] { flex: 1; min-height: 30px; padding: 0; }
.pv-time { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 13px; text-align: center; margin: 6px 0; }
input[type=range] { accent-color: var(--accent-t); padding: 0; min-height: 30px; background: none; border: 0; }
.title-in { font-size: 24px; font-weight: 800; background: none; border: 1px solid transparent; padding: 4px 6px; margin-left: -7px; } .title-in:hover, .title-in:focus { border-color: var(--line); background: var(--bg); }
.clip-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--bg); }
.clip-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .clip-head img, .clip-head .ph { width: 44px; height: 56px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.clip-head small { display: block; color: var(--mute); } .trim { display: block; margin: 4px 0; } .trim span { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); } .trim b { color: var(--text); font-variant-numeric: tabular-nums; }
.cap-in { margin-top: 6px; }
/* recorder */
.sheet.rec-sheet { max-width: none; width: 100%; height: 100dvh; max-height: none; border-radius: 0; background: #000; border: 0; }
@media (min-width: 720px) { .sheet.rec-sheet { width: min(96vw, 1100px); height: 92vh; border-radius: 18px; } }
.rec { position: relative; height: 100%; display: flex; flex-direction: column; } .rec > video, .rec-review video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; }
.rec > video.mirror { transform: scaleX(-1); }
.rec-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; z-index: 2; }
.rec-time { background: #c62828; color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.rec-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 160px; font-weight: 900; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); z-index: 3; pointer-events: none; }
.rec-msg { position: absolute; top: 40%; left: 20px; right: 20px; text-align: center; color: #fff; z-index: 2; }
.rec-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(0,0,0,.85) 35%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.rec-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .rec-opts label { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; } .rec-opts select { width: auto; min-height: 36px; padding: 4px 8px; }
.rec-btn { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rec-btn span { width: 58px; height: 58px; border-radius: 50%; background: #e53935; transition: .15s; } .rec-btn.on span { width: 30px; height: 30px; border-radius: 6px; }
.rec-tip { color: #c3c7cd; font-size: 12.5px; text-align: center; max-width: 420px; margin: 0; }
.rec-review { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; z-index: 4; } .rec-review .actions { justify-content: center; padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)); margin: 0; }

/* ── live coaching & celebrations ── */
.live-grid .clip-tile { aspect-ratio: 1 / 1; } .clip-tile.image small { background: rgba(0,0,0,.7); }
img.clip-view { object-fit: contain; }
.ann-wrap { background: #000; border-radius: 10px; overflow: hidden; display: flex; justify-content: center; } .ann-wrap canvas { display: block; max-width: 100%; max-height: 62vh; height: auto; touch-action: none; cursor: crosshair; }
.ann-tools { margin-top: 10px; } .ann-tools .seg { display: flex; width: 100%; overflow-x: auto; } .ann-tools .seg button { flex: 1; white-space: nowrap; }
.ann-colors { display: flex; align-items: center; gap: 8px; margin-top: 10px; } .ann-colors button[data-c] { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; } .ann-colors button.on { outline: 3px solid var(--text); outline-offset: 2px; }
.cel-prev { margin: 0 auto 12px; max-width: 300px; border-radius: 12px; overflow: hidden; background: #000; } .cel-prev.story { max-width: 240px; } .cel-prev canvas { display: block; width: 100%; height: auto; }
.cheers { flex-wrap: wrap; } .cheers .chip { white-space: normal; text-align: left; height: auto; padding: 8px 12px; line-height: 1.3; }
.pr-found { border-color: #6b4d14; background: rgba(255, 178, 36, .06); }

.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 250; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); cursor: pointer; max-width: 92vw; }
@media (min-width: 900px) { .update-bar { bottom: 24px; } }
/* ── set logging: suggested vs done ── */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.sets td:last-child { width: 48px; text-align: center; }
.set-tick { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line, #3a3f47); background: transparent; color: var(--mute); font-size: 18px; font-weight: 800; cursor: pointer; }
.set-tick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
table.sets tr.todo input::placeholder { color: var(--mute); opacity: .75; font-weight: 500; }
table.sets tr.done input { border-color: var(--accent-soft); }
input.invalid, textarea.invalid { border-color: #e5484d !important; box-shadow: 0 0 0 2px rgba(229, 72, 77, .25); }

.mus-pick { display: inline-flex; align-items: center; gap: 4px; }
.mus-pick .sides { display: inline-flex; gap: 3px; }
.mus-pick .side { min-width: 32px; min-height: 32px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); font-weight: 700; cursor: pointer; }
.mus-pick .side.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.hint.pin { margin: 2px 0 0; }
.ask-sent { flex-basis: 100%; margin: 0 0 6px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sheet:focus { outline: none; }

/* ── Today card, camera check, form videos ── */
.today-card { border-color: var(--accent-soft); background: var(--accent-wash); }
.today-card h2 { margin: 2px 0 4px; font-size: 22px; }
.today-card .btn.big { min-height: 50px; padding: 0 26px; font-size: 17px; }
.cam-wrap { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 52vh; margin: 0 auto; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; } .cam-wrap video.mirror { transform: scaleX(-1); }
.cam-frame { position: absolute; inset: 6% 22%; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 40px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 6px; pointer-events: none; }
.cam-frame span { font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 999px; }
.cam-list { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 6px; }
.cam-list li { padding: 8px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cam-list li.ok::before { content: '✓'; color: #34c759; font-weight: 800; } .cam-list li.bad::before { content: '✕'; color: #e5484d; font-weight: 800; }
.cam-list .meter { flex: 1; min-width: 80px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .cam-list .meter i { display: block; height: 100%; background: #34c759; transition: width .1s; }
.thumb-sm { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; flex: none; }
.banner.copies { flex-direction: column; align-items: stretch; } .copy-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--accent-soft); padding-top: 8px; }

/* ── pushes to the client portal ── */
.pushes .push-card { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .pushes .push-card:first-of-type { border-top: 0; padding-top: 4px; }
.push-card .ico { font-size: 22px; line-height: 1.2; flex: none; } .push-card .grow { min-width: 0; } .push-card p { margin: 4px 0; }
.push-card .big { font-size: 22px; font-weight: 800; color: var(--accent); margin: 2px 0; }
.push-card.win { background: var(--accent-wash); border-radius: 12px; padding: 12px; border: 1px solid var(--accent-soft); }
.rt-list { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; } .rt-list small { color: var(--mute); }
.dot-new { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; }
.push-hint { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-size: 14px; }
.pill.tiny { font-size: 10px; padding: 1px 6px; margin-right: 6px; }
.share-grid > .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
/* ── presets ── */
.split-grid.presets { margin-top: 8px; }
.preset-btn { position: relative; display: flex; } .preset-btn .split { flex: 1; min-width: 0; padding-right: 40px; }
.preset-btn .fav { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; }
.preset-btn .fav.on { color: #f5b301; }
.preset-card.off { opacity: .6; }
.pe-list input.pe-dose { width: 100%; max-width: 220px; min-height: 38px; padding: 4px 8px; }
/* ── exercise figures (solid, animated, storyboard) ── */
.fig { position: relative; }
.fig-anim { display: block; width: 100%; max-width: 300px; margin: 0 auto; }
.fig-board { display: block; width: 100%; max-width: 620px; margin: 0 auto; }
.fig.hold .fig-board { max-width: 300px; }
.fb-body { fill: #d3d9e0; } .fb-head { fill: #dde2e8; }
.fb-far { fill: #7b8592; } .fb-shoe { fill: #3a414b; } .fb-shoe-far { fill: #2a2f36; }
.fb-body.fb-hot { fill: #e4475f; } .fb-body.fb-warm { fill: #e8a3ae; }
.fig-anim, .fig-board { filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.fg-plate { fill: #2a2f36; stroke: var(--accent-t); stroke-width: 2; } .fg-plate2 { fill: none; stroke: #4a525d; stroke-width: 1.5; } .fg-hub { fill: #c9ced5; }
.fg-db { fill: #9aa4af; } .fg-dbp { fill: #2a2f36; stroke: var(--accent-t); stroke-width: 1.2; } .fg-kb { fill: #2a2f36; stroke: var(--accent-t); stroke-width: 1.2; }
.fg-bench { fill: #2f353d; stroke: #4a525d; stroke-width: 1.2; } .fg-frame { stroke: #4a525d; stroke-width: 4; stroke-linecap: round; }
.fg-rig { stroke: #9aa4af; stroke-width: 4; stroke-linecap: round; } .fg-cable { stroke: #8a939e; stroke-width: 1.5; stroke-dasharray: 3 2; }
.fg-step { fill: var(--accent-t); font-size: 13px; font-weight: 800; }
.fig-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; margin-top: 4px; }
.fig-cap { font-size: 12px; color: var(--mute); display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; justify-content: center; width: 100%; }
.fig-bar .fig-cap { width: auto; margin: 0 0 0 6px; }
.hot-dot, .warm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #e4475f; } .warm-dot { background: #e8a3ae; }
/* ── 3D body: marking tools, labels, styles ── */
.b3-style { min-height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(22,25,29,.85); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 6px; }
.b3-tools { position: absolute; left: 8px; top: 50px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.b3-tools button { min-height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(22,25,29,.88); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; text-align: left; }
.b3-tools button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.b3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.b3-label { position: absolute; transform: translate(10px, -50%); background: rgba(13,15,17,.88); border: 1px solid var(--line); border-left: 3px solid #fff; border-radius: 7px; padding: 3px 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.b3-label small { display: block; font-weight: 500; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.b3-label.k-sharp, .mark-dot.k-sharp { border-left-color: #ff4d4d; } .b3-label.k-dull, .mark-dot.k-dull { border-left-color: #ffb224; } .b3-label.k-burning, .mark-dot.k-burning { border-left-color: #ff7a1a; }
.b3-label.k-tingling, .mark-dot.k-tingling { border-left-color: #62b6ff; } .b3-label.k-ache, .mark-dot.k-ache { border-left-color: #c084fc; } .b3-label.k-tight, .mark-dot.k-tight { border-left-color: #3ddc84; }
.mark-dot { width: 14px; height: 14px; border-radius: 50%; border-left: 7px solid #fff; border-right: 7px solid transparent; flex: none; box-sizing: border-box; }
.mark-dot.k-sharp { border-right-color: #ff4d4d; } .mark-dot.k-dull { border-right-color: #ffb224; } .mark-dot.k-burning { border-right-color: #ff7a1a; } .mark-dot.k-tingling { border-right-color: #62b6ff; } .mark-dot.k-ache { border-right-color: #c084fc; } .mark-dot.k-tight { border-right-color: #3ddc84; }
.marks-list { margin: 6px 0 10px; }

/* ───────── in-person session screen ───────── */
body.cs-mode #sidebar, body.cs-mode #bottom-nav, body.cs-mode #topbar { display: none; }
body.cs-mode { display: block; }
body.cs-mode #view { max-width: 1280px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px calc(110px + var(--safe-b)); }
.cs-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0 8px; }
.cs-title h1 { font-size: 20px; line-height: 1.15; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-title .eyebrow { margin: 0; }
.cs-meta { text-align: right; } .cs-meta b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; } .cs-meta small { color: var(--mute); font-size: 12px; }
.cs-progress { height: 5px; border-radius: 9px; background: var(--panel2); overflow: hidden; margin-bottom: 4px; } .cs-progress i { display: block; height: 100%; background: var(--accent-t); transition: width .3s; }
.cs-steps.chips.scroll { margin: 6px -14px 10px; padding: 0 14px; }
.cs-chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cs-chip.ok { color: var(--green); border-color: #2c5b40; } .cs-chip.on { background: var(--accent); border-color: var(--accent-edge); color: var(--accent-ink); }
.cs-card h2 { display: flex; align-items: center; gap: 8px; }
.cs-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); } .cs-grid > * { min-width: 0; } .cs-side, .cs-main { display: grid; gap: 12px; align-content: start; } .cs-grid .card { margin: 0; }
@media (min-width: 820px) { .cs-grid { grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); } }
.cs-exhead h2 { font-size: 22px; margin: 4px 0 2px; } .cs-exhead p { margin: 0; }
.cs-fig { margin: 8px auto 4px; max-width: 360px; } .cs-fig svg { width: 100%; height: auto; }
.cs-libcue { font-size: 16px; font-weight: 600; margin: 4px 0 6px; }
.cs-used .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-wash); color: var(--text); border-color: var(--accent-soft); }
.chip .x-in { background: none; border: 0; color: var(--mute); font-size: 12px; cursor: pointer; padding: 4px; min-width: 24px; min-height: 24px; }
.chips.wrap { flex-wrap: wrap; }
.cs-addcue { display: flex; gap: 8px; align-items: center; margin: 8px 0 10px; } .cs-addcue input { flex: 1; min-width: 0; }
.btn.mic.rec { background: var(--red); border-color: var(--red); color: #fff; animation: cs-pulse 1.2s infinite; }
@keyframes cs-pulse { 50% { opacity: .65; } }
.cs-sets-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 8px; font-size: 11px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px 4px; }
.cs-sets { display: grid; gap: 8px; }
.cs-set { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 8px; align-items: center; padding: 8px 4px; border-radius: 14px; border: 1px solid transparent; }
.cs-set.cur { border-color: var(--accent-soft); background: var(--accent-wash); }
.cs-set.done { opacity: .9; } .cs-set.done .cs-val input { color: var(--green); }
.cs-n { font-size: 18px; font-weight: 800; text-align: center; color: var(--mute); }
.cs-step-wt, .cs-step-r { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 4px; min-width: 0; }
.cs-pm { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.cs-pm:active { background: var(--accent-soft); }
.cs-val { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cs-val input { width: 100%; min-width: 0; text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; background: transparent; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 4px 0; color: var(--text); }
.cs-val input:focus { border-bottom-color: var(--accent-t); outline: none; } .cs-val small { font-size: 10.5px; color: var(--mute); font-weight: 600; }
.cs-timed { grid-column: span 1; }
.cs-tick { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--mute); font-size: 22px; font-weight: 800; cursor: pointer; touch-action: manipulation; justify-self: center; }
.cs-tick.on { background: var(--green); border-color: var(--green); color: #06210f; }
.cs-set.cur .cs-tick:not(.on) { border-color: var(--accent-t); color: var(--accent-t); }
.cs-prflag { grid-column: 2 / -1; justify-self: start; background: #3a2c08; border: 1px solid #6b5212; color: var(--gold); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cs-prs { color: var(--gold); font-size: 14px; margin: 8px 0 0; }
@media (max-width: 420px) { .cs-set, .cs-sets-head { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 5px; } .cs-step-wt, .cs-step-r { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 2px; } .cs-pm { height: 44px; font-size: 19px; } .cs-tick { width: 46px; height: 46px; } .cs-val input { font-size: 19px; } }
.cs-wu { display: grid; gap: 8px; }
.cs-wu-row { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; cursor: pointer; min-height: 60px; }
.cs-wu-row b { display: block; } .cs-wu-row small { color: var(--mute); }
.cs-tick-s { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: var(--mute); font-weight: 800; }
.cs-wu-row.done .cs-tick-s { background: var(--green); border-color: var(--green); color: #06210f; }
.cs-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px calc(10px + var(--safe-b)); background: rgba(13, 15, 17, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.cs-nav .btn { min-height: 50px; font-size: 15px; } .cs-next { flex: 1; max-width: 520px; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-next.pulse { animation: cs-pulse 1.1s 3; }
#cs-rest { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(82px + var(--safe-b)); z-index: 30; width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--accent-soft); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); overflow: hidden; }
#cs-rest .cs-rest-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; } #cs-rest .cs-rest-bar i { display: block; height: 100%; background: var(--accent-t); transition: width .25s linear; }
#cs-rest .cs-rest-txt { flex: 1; } #cs-rest b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; } #cs-rest small { color: var(--mute); font-size: 12px; }
#cs-rest.go { border-color: var(--green); } #cs-rest.go b { color: var(--green); }
.cs-promo { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--accent-soft); background: var(--accent-wash); } .cs-promo p { margin: 0; flex: 1; min-width: 220px; }
.cs-done { border-color: var(--accent-soft); }
.sum-tags { margin: 0 0 12px; }
.rc-prev { display: grid; place-items: center; min-height: 200px; } .rc-prev img { width: 100%; max-width: 360px; border-radius: 12px; }
.rc-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rc-ph { flex: none; width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel2); color: var(--mute); font: inherit; font-size: 12px; cursor: pointer; overflow: hidden; padding: 0; }
.rc-ph img { width: 100%; height: 100%; object-fit: cover; } .rc-ph.on { border-color: var(--accent-t); }
.sess-grid { display: grid; gap: 10px; } @media (min-width: 760px) { .sess-grid { grid-template-columns: 1fr 1fr; } }
.card.sess-item { display: flex; gap: 14px; align-items: center; color: var(--text); margin: 0; } .sess-item.filtered { display: none; }
.sess-item b { display: block; font-size: 16px; margin: 2px 0; } .sess-item small { display: block; color: var(--mute); }
.sess-thumb { flex: none; width: 84px; height: 100px; border-radius: 10px; overflow: hidden; background: var(--panel2); display: grid; place-items: center; } .sess-thumb img { width: 100%; height: 100%; object-fit: cover; } .sess-thumb svg { width: 100%; height: auto; }
.sess-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.cs-today .row .btn { flex: none; }
@media (max-width: 819px) { .cs-main { order: -1; } .cs-fig { max-width: 220px; } }
@media (max-width: 400px) { .cs-set, .cs-sets-head { grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 4px; } .cs-step-wt, .cs-step-r { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 1px; } .cs-pm { height: 44px; font-size: 18px; border-radius: 10px; } .cs-val input { font-size: 18px; letter-spacing: -.02em; } .cs-n { font-size: 15px; } .cs-tick { width: 44px; height: 44px; } }
.cs-vis { font-weight: 600; font-size: 12px; }

/* ───────── accounts: sign-in and first-start screens ───────── */
body.acct-gate #sidebar, body.acct-gate #bottom-nav { display: none; }
body.acct-gate { display: block; }
.acct-wrap { min-height: 70vh; display: grid; place-items: center; padding: 24px 0; }
.acct-card { width: min(460px, 100%); }
.acct-card h1 { font-size: 26px; margin: 4px 0 8px; }
.acct-card .hrow { width: 100%; text-align: left; justify-content: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel2); cursor: pointer; }
.acct-card .hrow .grow { text-align: left; display: block; } .acct-card .hrow b { display: block; font-size: 15px; } .acct-card .hrow small { color: var(--mute); }
.acct-err { background: #3a1418; border: 1px solid #6b2a36; color: #ffb3bd; padding: 10px 12px; border-radius: 10px; }
.acct-setup { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; } .acct-setup summary { cursor: pointer; color: var(--mute); font-size: 13px; }

/* phones: the save bar is one slim row so it doesn't sit over the builder; the Form link never breaks mid-word */
@media (max-width: 899px) {
  .savebar { flex-wrap: nowrap; padding: 6px; gap: 6px; }
  .savebar .btn { min-height: 42px; padding: 8px 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .savebar .btn:not(.primary) { flex: 0 1 auto; }
}
.b-ctl .link { white-space: nowrap; }
