/* Layout: phone = one column, bottom tabs, detail slides over. iPad landscape (>= 960px) = sidebar | list | detail,
   and a live session takes the list+detail area as exercise rail | logging pane. Dark-first like HQ (black and gold). */
/* Floor mode (21 Oct 2026, David): HQ Coach looks exactly like HQ (/admin). HQ's palette, one dark look, HQ's type. */
:root { color-scheme: dark; --leanbar:#4a5260; --skwas:rgba(242,240,234,.2);
  --bg:#0d0d0d; --panel:#151515; --panel2:#1d1d1c; --line:rgba(255,255,255,.08); --ink:#f2f0ea; --soft:#8f8c84; --gold:#c9a84c; --goldink:#e0c06a; --goldwash:rgba(201,168,76,.12);
  --blue:#0a84ff; --them:#3a3a3c; --themink:#ffffff; --good:#5fae7c; --goodwash:rgba(95,174,124,.14); --warn:#d9a441; --warnwash:rgba(217,164,65,.14); --bad:#d0584f; --badwash:rgba(208,88,79,.14);
  --disp:"Bebas Neue","DIN Condensed",Impact,sans-serif; --body:"Inter","Helvetica Neue",Arial,sans-serif; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--body); }
* { box-sizing: border-box; touch-action: manipulation; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
svg { display: block; }

/* shell */
.shell { min-height: 100%; }
.side { display: none; }
.col { min-width: 0; }
.list-col { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 12px 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.brand { font-size: 10.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--goldink); font-weight: 700; }
h1 { font-family: var(--disp); font-weight: 400; font-size: 40px; line-height: .9; margin: 4px 0 0; letter-spacing: .4px; text-wrap: balance; }
h2 { font-family: var(--disp); font-weight: 400; font-size: 32px; line-height: .95; margin: 0; letter-spacing: .3px; }
.pad { padding-block: 14px 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 14px; }
.sample { font-size: 12px; color: var(--goldink); background: var(--goldwash); border-radius: 10px; padding: 7px 11px; margin: 0; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--panel2); border: 0; display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }

/* detail: phone = full-screen overlay */
.detail { position: fixed; inset: 0; z-index: 20; background: var(--bg); transform: translateX(102%); transition: transform .26s cubic-bezier(.2,.8,.2,1); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.detail.on { transform: none; }
.dhead { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 10px; }
.back { border: 0; background: none; color: var(--gold); font-weight: 600; cursor: pointer; padding: 6px 2px; }
.dhead .tt { flex: 1; min-width: 0; } .dhead .tt b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dhead .tt span { font-size: 12.5px; color: var(--soft); }
.dempty { display: none; }

nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
nav.tabs .in { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 560px; margin: 0 auto; }
.tab { border: 0; background: none; padding: 9px 0 10px; display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--soft); cursor: pointer; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--gold); }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; line-height: 18px; padding: 0 5px; font-style: normal; text-align: center; }
.tab.live { color: var(--good); }

/* iPad landscape */
@media (min-width: 960px) {
  nav.tabs { display: none; }
  .shell { display: grid; grid-template-columns: 210px 360px minmax(0, 1fr); height: 100vh; height: 100dvh; }
  .side { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border-right: 1px solid var(--line); padding: calc(18px + env(safe-area-inset-top, 0px)) 12px 16px max(12px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
  .side .brand { padding: 0 10px 14px; }
  .sbtn { display: flex; align-items: center; gap: 10px; border: 0; background: none; border-radius: 10px; padding: 10px; font-weight: 600; cursor: pointer; color: var(--soft); text-align: left; position: relative; }
  .sbtn svg { width: 22px; height: 22px; flex: none; }
  .sbtn[aria-current="page"] { background: var(--goldwash); color: var(--goldink); }
  .sbtn .badge { position: static; margin-left: auto; }
  .sbtn.live { color: var(--good); }
  .side .foot { margin-top: auto; font-size: 12px; color: var(--soft); padding: 10px; }
  .list-col { overflow-y: auto; border-right: 1px solid var(--line); padding-bottom: 20px; }
  .list-col .hdr { padding-left: 16px; padding-right: 16px; }
  .detail { position: static; transform: none; transition: none; overflow-y: auto; height: 100%; padding-top: env(safe-area-inset-top, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .detail .back { display: none; }
  .detail .dhead, .detail .pad { padding-left: 22px; padding-right: 22px; }
  .dempty { display: grid; place-items: center; height: 100%; color: var(--soft); text-align: center; padding: 40px; }
  .detail:not(.on) > :not(.dempty) { display: none; }
  .detail.on .dempty { display: none; }
  .shell.session { grid-template-columns: 210px minmax(0, 1fr); }
  .shell.full { grid-template-columns: 210px minmax(0, 1fr); }
  .shell.full .detail { display: none; }
  .shell.full .list-col { border-right: 0; }
  .shell.full .list-col .pad, .shell.full .list-col .hdr { padding-left: 26px; padding-right: 26px; }
  .shell.session .list-col { display: none; }
  .item.sel { background: var(--goldwash); }
}

/* shared bits */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { font-style: normal; color: var(--soft); margin-left: 4px; font-weight: 500; } .chip[aria-pressed="true"] i { color: inherit; opacity: .7; }
.sumrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sum b { display: block; font-family: var(--disp); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.sum span { font-size: 11.5px; color: var(--soft); }
.list { display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; width: 100%; }
.item:last-child { border-bottom: 0; }
.item:active { background: var(--panel2); }
.item.static { cursor: default; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--panel2); color: var(--goldink); position: relative; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.av .k { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--panel); display: grid; place-items: center; font-size: 9px; }
.k.msg { background: var(--blue); color: #fff; } .k.ci { background: var(--gold); color: #111; } .k.ap { background: #8e7cf0; color: #fff; } .k.money { background: var(--bad); color: #fff; } .k.ok { background: var(--good); color: #fff; } .k.bk { background: #5ac8fa; color: #111; }
.it { min-width: 0; }
.it b { display: block; font-size: 15px; } .it b em { font-style: normal; font-weight: 500; color: var(--soft); font-size: 13px; }
.it p { margin: 1px 0 0; font-size: 13.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { display: grid; justify-items: end; gap: 5px; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.sec { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--soft); font-weight: 700; margin: 4px 2px -6px; }
.empty { text-align: center; color: var(--soft); padding: 26px 10px; font-size: 14px; margin: 0; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--goodwash); color: var(--good); } .pill.warn { background: var(--warnwash); color: var(--warn); } .pill.bad { background: var(--badwash); color: var(--bad); } .pill.gold { background: var(--goldwash); color: var(--goldink); }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--soft); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; padding: 11px 0; outline: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 7px; min-width: 0; }
.card h3 { margin: 0; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--soft); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .kv span { color: var(--soft); } .kv b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 1100px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 11px 12px; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn.pri { background: var(--gold); border-color: var(--gold); color: #111; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.go { background: var(--good); border-color: var(--good); color: #fff; }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.draft { white-space: pre-wrap; font-size: 14.5px; background: var(--panel2); border-radius: 12px; padding: 12px; }
.qa { display: grid; gap: 2px; font-size: 14px; } .qa span { color: var(--soft); font-size: 12.5px; }
.flag { display: flex; gap: 8px; align-items: flex-start; background: var(--badwash); color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.flag.warn { background: var(--warnwash); color: var(--warn); }
.spark { width: 100%; height: 70px; }
.ctabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -2px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctab { flex: none; border: 0; background: none; padding: 10px 10px; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; border-bottom: 2px solid transparent; }
.ctab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.chead { display: flex; gap: 14px; align-items: center; }
.chead .who { min-width: 0; } .chead .who p { margin: 2px 0 0; color: var(--soft); font-size: 13.5px; }
table.prog { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.prog th { text-align: left; font-size: 11px; color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 6px 6px 6px 0; }
table.prog td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tw { overflow-x: auto; }
.note { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; display: grid; gap: 4px; }
.note b { font-size: 13px; } .note p { margin: 0; font-size: 14px; white-space: pre-wrap; } .note small { color: var(--soft); font-size: 12px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 10px; background: linear-gradient(160deg, var(--panel2), var(--line)); display: grid; place-items: end start; padding: 6px 8px; font-size: 11px; color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; opacity: 0; transition: .2s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
textarea.ta { width: 100%; min-height: 84px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; line-height: 1.45; padding: 10px 12px; resize: vertical; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale button { min-width: 40px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 10px; font-weight: 700; cursor: pointer; }
.scale button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.lbl { font-size: 12.5px; color: var(--soft); font-weight: 600; }

/* iMessage thread */
.thread { display: flex; flex-direction: column; gap: 2px; }
.imtime { align-self: center; font-size: 11.5px; color: var(--soft); margin: 10px 0 6px; font-weight: 500; }
.imb { max-width: 78%; padding: 8px 13px; border-radius: 18px; font-size: 16px; line-height: 1.32; white-space: pre-wrap; overflow-wrap: anywhere; }
.imb.own { align-self: flex-end; background: var(--blue); color: #fff; } .imb.them { align-self: flex-start; background: var(--them); color: var(--themink); }
.imb.own.tail { border-bottom-right-radius: 5px; margin-bottom: 6px; } .imb.them.tail { border-bottom-left-radius: 5px; margin-bottom: 6px; }
.imstat { align-self: flex-end; font-size: 11px; color: var(--soft); margin: -3px 2px 4px; font-weight: 600; }
.imbar { display: flex; gap: 8px; align-items: flex-end; }
.imbar textarea { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; resize: none; background: var(--panel); max-height: 120px; }
.imsend { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; margin-bottom: 3px; cursor: pointer; }
.imsend svg { width: 18px; height: 18px; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.quick button { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer; }

/* home */
.homehi { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.homegrid { display: grid; gap: 12px; }
@media (min-width: 960px) { .homegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1300px) { .homegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero { background: linear-gradient(160deg, var(--goldwash), var(--panel)); }
.brief { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.brief ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.bar { height: 8px; border-radius: 4px; background: var(--panel2); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--gold); }
.linkish { border: 0; background: none; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
/* calendar */
.calbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--panel); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.calhead { display: grid; grid-template-columns: 48px repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.calhead b { padding: 9px 6px; font-size: 13px; text-align: center; border-left: 1px solid var(--line); }
.calhead b.today { color: var(--gold); }
.calbody { position: relative; display: grid; grid-template-columns: 48px repeat(var(--cols), minmax(0, 1fr)); }
.hours { position: relative; } .hours span { position: absolute; right: 6px; transform: translateY(-6px); font-size: 10.5px; color: var(--soft); }
.hours span:first-child { transform: none; }
.day { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.day i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); opacity: .6; }
.now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; } .now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.ev { position: absolute; left: 3px; right: 3px; border: 0; border-left: 3px solid; border-radius: 8px; padding: 3px 7px; text-align: left; overflow: hidden; cursor: pointer; display: grid; align-content: start; z-index: 1; }
.ev b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ev span { font-size: 11px; opacity: .8; }
.ev.pt { background: var(--goldwash); border-left-color: var(--gold); } .ev.call { background: var(--panel2); border-left-color: var(--blue); } .ev.skin { background: var(--goodwash); border-left-color: var(--good); } .ev.block { background: var(--panel2); border-left-color: var(--soft); color: var(--soft); }
/* HQ in app */
.hqframe { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.hqbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.hqmock { padding: 14px; display: grid; gap: 12px; }
.hqtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

/* quick add */
a.item { color: inherit; }

/* live session */
.live { display: grid; gap: 0; }
.livebar { position: sticky; top: 0; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; gap: 12px; align-items: center; }
.livebar .tt { flex: 1; min-width: 0; } .livebar .tt b { display: block; } .livebar .tt span { font-size: 12.5px; color: var(--soft); }
.clock { font-family: var(--disp); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--good); }
.lgrid { display: grid; gap: 14px; padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rex { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 9px 12px; text-align: left; cursor: pointer; min-width: 150px; }
.rex b { display: block; font-size: 14px; } .rex span { font-size: 12px; color: var(--soft); }
.rex[aria-current="true"] { border-color: var(--gold); background: var(--goldwash); }
.rex.done b::after { content: " ✓"; color: var(--good); }
@media (min-width: 960px) {
  .lgrid { grid-template-columns: 280px minmax(0, 1fr); align-items: start; padding-left: 22px; padding-right: 22px; }
  .rail { flex-direction: column; overflow: visible; position: sticky; top: 76px; }
  .rex { min-width: 0; }
  .livebar { padding-left: 22px; padding-right: 22px; }
}
.exhead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.exhead p { margin: 3px 0 0; color: var(--soft); font-size: 13.5px; }
.sets { display: grid; gap: 8px; }
.set { display: grid; grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, .6fr) 52px; gap: 8px; align-items: center; }
.set .n { font-weight: 700; color: var(--soft); text-align: center; }
.set label, .set .fl { display: grid; gap: 2px; font-size: 11px; color: var(--soft); font-weight: 600; }
.set input::placeholder { color: var(--soft); opacity: .55; font-weight: 500; }
.set input { width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 8px; font-size: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.tick { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 20px; font-weight: 700; color: var(--soft); align-self: end; }
.tick[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #fff; }
.set .prev { grid-column: 2 / -1; font-size: 12px; color: var(--soft); margin-top: -4px; }
.set.done input { border-color: var(--good); }
.stp { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; }
.stp .sb { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; font-size: 20px; font-weight: 700; color: var(--soft); cursor: pointer; touch-action: manipulation; }
.stp .sb:active { background: var(--goldwash); }
.beat { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-weight: 700; background: var(--line); color: var(--soft); }
.beat.up { background: var(--goodwash); color: var(--good); }
.rest .nx { font-size: 14px; font-weight: 600; opacity: .85; }
.rest { display: flex; align-items: center; gap: 10px; background: var(--goodwash); color: var(--good); border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.rest .clock { font-size: 26px; }
.rest .sp { flex: 1; }
.sgrid { display: grid; gap: 12px; }
@media (min-width: 1100px) { .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v5: offline, voice, client view, body comp, builder, coaching */
.netpill { border: 1px solid var(--line); background: var(--panel); color: var(--good); border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.netpill.off { color: var(--warn); border-color: var(--warn); background: var(--warnwash); }
.offbar { background: var(--warnwash); color: var(--warn); border: 1px solid var(--warn); border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.btn.gold { border-color: var(--gold); color: var(--goldink); background: var(--goldwash); }
.mic { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gold); background: var(--goldwash); color: var(--goldink); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mic svg { width: 15px; height: 15px; }
.mic.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.mic.on i { display: inline-block; width: 3px; height: 12px; background: currentColor; border-radius: 2px; animation: wave .8s ease-in-out infinite; }
.mic.on i:nth-child(3) { animation-delay: .15s } .mic.on i:nth-child(4) { animation-delay: .3s }
@keyframes wave { 0%, 100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
.cv { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; padding-block: calc(14px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: grid; grid-template-rows: auto 1fr; }
.cvtop { display: flex; align-items: center; gap: 12px; justify-content: space-between; color: var(--soft); font-weight: 600; }
.cvmain { display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; padding-block: 20px; }
.cvex { font-size: clamp(44px, 9vw, 96px); line-height: .9; margin: 0; }
.cvset { font-size: 20px; font-weight: 600; margin: 0; color: var(--soft); }
.cvbeat { border: 2px solid var(--gold); border-radius: 22px; padding: 14px 26px; display: grid; gap: 2px; }
.cvbeat span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--goldink); font-weight: 700; }
.cvbeat b { font-family: var(--disp); font-weight: 400; font-size: clamp(48px, 8vw, 84px); line-height: 1; }
.cvrest { font-family: var(--disp); font-size: clamp(90px, 18vw, 180px); line-height: .9; color: var(--good); font-variant-numeric: tabular-nums; }
.cvdots { display: flex; gap: 10px; } .cvdots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); } .cvdots i.on { background: var(--gold); }
.cvcue { font-size: 18px; margin: 0; }
.cvacts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .btn.big { font-size: 20px; padding: 16px 30px; border-radius: 16px; }
.sites { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .sites { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.site { background: var(--panel2); border-radius: 12px; padding: 8px 10px; display: grid; gap: 3px; min-width: 0; }
.site span { font-size: 12px; color: var(--soft); font-weight: 600; }
.site input, .bin { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 8px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.site small { font-size: 11px; color: var(--soft); }
.cmp { position: relative; aspect-ratio: 3 / 4; max-width: min(100%, 360px); margin-inline: auto; width: 100%; border-radius: 14px; overflow: hidden; }
.cmp .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; font-size: 13px; font-weight: 700; }
.cmp .ph.b { background: linear-gradient(160deg, var(--goldwash), var(--panel2)); place-items: end end; }
.cmp .ln { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold); }
.cmp input { position: absolute; inset: auto 8px 8px; width: calc(100% - 16px); }
.hgrid { width: 100%; border-collapse: collapse; font-size: 12.5px; } .hgrid th, .hgrid td { padding: 6px 3px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; } .hgrid th:first-child, .hgrid td:first-child { text-align: left; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); vertical-align: middle; } .dot.y { background: var(--good); } .dot.h { background: var(--warn); }
.risk { height: 6px; border-radius: 3px; background: var(--panel2); overflow: hidden; width: 70px; } .risk i { display: block; height: 100%; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow .nums { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .brow .nums label { display: grid; gap: 2px; font-size: 11px; color: var(--soft); } .brow .nums input { width: 74px; padding: 6px; font-size: 14px; }
.mv { display: flex; gap: 4px; } .mv button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 700; }
.wotabs { display: flex; gap: 6px; overflow-x: auto; } .wotabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; } .wotabs button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.libin { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px; }

/* ── real app additions (19 Oct 2026) ── */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; }
input, textarea, select { font-size: 16px; }   /* no zoom on iPhone */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.pin { display: grid; justify-items: center; gap: 16px; width: min(320px, 100%); }
.pin .brand { font-size: 12px; }
.pin h1 { font-size: 44px; text-align: center; }
.pin-dots { display: flex; gap: 12px; } .pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); } .pin-dots i.on { background: var(--gold); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.pin-pad button { aspect-ratio: 1.4; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font-size: 26px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pin-pad button:active { background: var(--goldwash); }
.pin-pad .pin-txt { font-size: 15px; color: var(--soft); }
.pin-msg { min-height: 20px; color: var(--soft); margin: 0; text-align: center; font-size: 14px; }
.shake { animation: shake .35s; } @keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.netpill { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 40; }
.offbar { margin: 0; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.imb.pending { opacity: .6; }
.rex.danger b { color: var(--bad); }
.hqwrap { display: grid; grid-template-rows: auto 1fr; height: calc(100vh - 140px); height: calc(100dvh - 140px - env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.hqif { width: 100%; height: 100%; border: 0; background: var(--bg); }
@media (min-width: 960px) { .hqwrap { height: calc(100vh - 110px); height: calc(100dvh - 110px); } }
.vsheet { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: grid; align-items: end; justify-items: center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.vsheet[hidden] { display: none; }
.vin { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.vtop { display: flex; justify-content: space-between; align-items: center; }
.recdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); margin-right: 6px; animation: blink 1s infinite; } @keyframes blink { 50% { opacity: .3; } }
.cmp img.ph { object-fit: cover; width: 100%; height: 100%; padding: 0; }
.cmpl { position: absolute; top: 8px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; padding: 3px 7px; border-radius: 8px; } .cmpl.l { left: 8px; } .cmpl.r { right: 8px; }
.linkish { border: 0; background: none; color: var(--goldink); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; }
/* Voice notes (21 Oct 2026) */
.chatf { position: relative; }
.immic { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--panel2, #2a2a2a); color: inherit; display: grid; place-items: center; cursor: pointer; }
.immic svg { width: 20px; height: 20px; }
.imb.voice { padding: 7px 11px; white-space: normal; }
.vn { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; }
.vn-p { width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.25); color: inherit; flex: none; }
.vn-p svg { width: 15px; height: 15px; }
.vn-bar { flex: 1; height: 4px; border-radius: 2px; background: currentColor; opacity: .35; position: relative; overflow: hidden; }
.vn-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: currentColor; }
.vn small { font-size: 12px; font-variant-numeric: tabular-nums; }
.vn-box { position: absolute; inset: 0; z-index: 2; }
.vn-rec { display: flex; align-items: center; gap: 10px; height: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 20px; padding: 6px 8px 6px 14px; background: var(--panel); font-size: 14px; }
.vn-rec span { flex: 1; opacity: .7; } .vn-rec .vn-t { font-variant-numeric: tabular-nums; }
.vn-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; animation: vnblink 1s infinite; }
@keyframes vnblink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .vn-dot { animation: none; } }
.vn-x, .vn-send { border: 0; border-radius: 14px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.vn-x { background: var(--panel2, #333); color: inherit; } .vn-send { background: #c9a84c; color: #111; }
/* Week summary (21 Oct 2026) */
.card.wb { border: 1px solid rgba(201,168,76,.5); }
.card.wb h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wb-h { font-weight: 600; margin: 4px 0 8px; } .wb-l { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 5px; line-height: 1.45; }
.wb-w, .wb-f { margin: 6px 0; line-height: 1.45; } .wb-w b, .wb-f b { color: #c9a84c; margin-right: 6px; }

/* ── HQ look (21 Oct 2026): panels, headings, menu and buttons as in kngmvmt.com/admin ── */
body { font-size: 14px; line-height: 1.5; }
.card { border-radius: 10px; padding: 16px; gap: 8px; }
.card h3 { font: 400 21px/1 var(--disp); letter-spacing: .06em; text-transform: none; color: var(--gold); }
h1 { letter-spacing: .04em; }
.brand { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.side-logo { width: 150px; opacity: .95; display: block; margin: 0 10px 6px; }
.side .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 0 10px 16px; }
@media (min-width: 960px) {
  .side { background: var(--bg); }
  .sbtn { border-radius: 6px; padding: 8px 10px; font-weight: 500; color: var(--soft); }
  .sbtn:hover { color: var(--ink); background: var(--panel); }
  .sbtn[aria-current="page"] { background: var(--panel2); color: var(--ink); box-shadow: inset 2px 0 0 var(--gold); }
  .sbtn.tohq { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; color: var(--goldink); }
}
.btn { border-radius: 6px; }
.btn.pri, .btn.go { background: var(--gold); color: #111; border-color: var(--gold); }
.tabs { background: var(--panel); }
.tab[aria-current="page"] { color: var(--goldink); }
a.btn { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.homehi { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
@media (max-width: 959px) { .homehi a.btn { display: none; } }   /* phones have HQ in the tab bar */

/* Day mode (23 Oct 2026, David): same layout, white page. Toggle in the header, shared with HQ on this device. */
:root[data-theme="light"] { color-scheme: light;
  --bg:#f6f4ef; --panel:#ffffff; --panel2:#ece9e2; --line:rgba(0,0,0,.1); --ink:#141311; --soft:#6b665e; --gold:#b8963f; --goldink:#8a6d1f; --goldwash:rgba(184,150,63,.14);
  --them:#e5e5ea; --themink:#141311; --good:#2f8f5b; --goodwash:rgba(47,143,91,.12); --warn:#a87516; --warnwash:rgba(168,117,22,.12); --bad:#b8433b; --badwash:rgba(184,67,59,.1); }
:root[data-theme="light"] img[src*="logo-white"] { filter: invert(1); }
.hdr-btns { display: flex; gap: 8px; }
.ic-sun { display: none; } :root[data-theme="light"] .ic-sun { display: block; } :root[data-theme="light"] .ic-moon { display: none; }
.beat { white-space: nowrap; }
@media (max-width: 600px) {
  .stp { grid-template-columns: minmax(0, 1fr); }
  .stp .sb { display: none; }
  .rest { flex-wrap: wrap; }
  .rest .nx { order: 9; flex-basis: 100%; }
}

/* Running a session: no menu, just the session and the client's file (24 Oct 2026) */
@media (min-width: 960px) {
  .shell.session { grid-template-columns: minmax(0, 1fr); }
  .shell.session .side { display: none; }
}
body.insession nav.tabs { display: none; }
.sessback { position: sticky; top: 0; z-index: 6; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 0; cursor: pointer;
  background: var(--gold); color: #111; font: inherit; font-weight: 800; font-size: 17px; text-align: left;
  padding-block: 14px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.sessback .m { font-weight: 600; font-size: 14px; }
.sessback + .dhead { top: 52px; }
.sessback + .dhead .back { display: none; }
.sessback ~ .dhead [data-start] { display: none; }
.endrow { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); align-items: center; }
.endrow .sp { flex: 1; }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.prog .ps { display: block; white-space: nowrap; } .prog .ps i { font-style: normal; color: var(--soft); font-size: 12px; }
/* The KNGMVMT mark sits faintly over every page (24 Oct 2026, David), fixed in place while the page scrolls. It lets every tap through. */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: url(/me/mark-white.svg) no-repeat center 55% / min(70vw, 520px) auto; opacity: .045; }
:root[data-theme="light"] body::after { background-image: url(/me/mark-dark.svg); opacity: .04; }
@media print { body::after { display: none; } }

/* Client view (24 Oct 2026, David): every set with today's goal, last time and editable kg/reps, what's still to come, logo watermark. */
.cv { grid-template-rows: none; align-content: start; gap: 18px; isolation: isolate; }
.cv::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(/me/mark-white.svg) no-repeat center 55% / min(70vw, 520px) auto; opacity: .05; }
:root[data-theme="light"] .cv::after { background-image: url(/me/mark-dark.svg); opacity: .045; }
.cv .cvmain { padding-block: 6px 0; gap: 10px; }
.cv .cvex { font-size: clamp(40px, 7vw, 76px); }
.cv .cvrest { font-size: clamp(72px, 13vw, 130px); }
.cvsets { display: grid; gap: 8px; width: min(900px, 100%); margin-inline: auto; }
.cvhd, .cvrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr) 56px; gap: 10px; align-items: center; }
.cvhd { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 700; padding: 0 12px; }
.cvrow { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cvrow.cvnow { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cvrow.done { opacity: .72; } .cvrow.done input { border-color: var(--good); }
.cvrow .n { font-family: var(--disp); font-size: 28px; font-weight: 400; color: var(--goldink); text-align: center; }
.cvrow .g, .cvrow .l { display: grid; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.cvrow .l { color: var(--soft); font-weight: 600; }
.cvrow small { font-size: 12px; color: var(--soft); font-weight: 500; }
.cvrow em { display: none; font-style: normal; font-size: 11px; color: var(--soft); font-weight: 600; }
.cvrow .fl { display: grid; gap: 2px; }
.cvrow input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 6px; font-size: 18px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cvrow input::placeholder { color: var(--soft); opacity: .55; }
.cvrow .tick { height: 52px; }
.cvnext { display: grid; gap: 6px; width: min(900px, 100%); margin-inline: auto; }
.cvnext button { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.cvnext button span { color: var(--soft); font-size: 13px; white-space: nowrap; }
.cvfoot { text-align: center; }
@media (max-width: 700px) {
  .cvhd { display: none; }
  .cvrow { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 56px; }
  .cvrow .fl { grid-column: span 1; } .cvrow em { display: block; }
  .cvrow .n { grid-row: span 2; } .cvrow .tick { grid-row: span 2; grid-column: 4; grid-row-start: 1; }
}

/* Client file wide (24 Oct 2026, David): opening a client tucks the list away; "All clients" brings it back. */
@media (min-width: 960px) {
  .shell.focus:not(.session):not(.full) { grid-template-columns: 210px minmax(0, 1fr); }
  .shell.focus:not(.session):not(.full) .list-col { display: none; }
  .shell.focus:not(.session):not(.full) .detail .back { display: inline-flex; }
  .shell.focus .detail .back { font-size: 0; } .shell.focus .detail .back::after { content: "‹ All clients"; font-size: 14px; }
}
.flagbtn { width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; align-items: center; }
.flagbtn span { flex: 1; } .flagbtn b { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.pfail { border-color: var(--bad); } .pfail h3 { color: var(--bad); }
.pfamt { font-size: 18px; }
.pfail select { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 10px; font: inherit; color: inherit; }
.bconfirm { border: 1px solid var(--gold); border-radius: 12px; padding: 12px; display: grid; gap: 6px; } .bconfirm p { margin: 0; }

/* Side menu: icons only (24 Oct 2026, David). The arrow at the bottom switches between icons only and full titles. */
.sidemini { display: none; }
@media (min-width: 960px) {
  .sbtn.sidemini { display: flex; margin-top: 8px; color: var(--soft); }
  .side { overflow-x: hidden; }
  .shell.mini { grid-template-columns: 68px 360px minmax(0, 1fr); }
  .shell.mini.full, .shell.mini.focus:not(.session):not(.full) { grid-template-columns: 68px minmax(0, 1fr); }
  .shell.mini .side { padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: 10px; }
  .shell.mini .side .sl, .shell.mini .side .tag { display: none; }
  .shell.mini .side-logo { width: 40px; height: 40px; margin: 0 auto 14px; object-fit: contain; content: url(/me/mark-white.svg); }
  :root[data-theme="light"] .shell.mini .side-logo { content: url(/me/mark-dark.svg); filter: none; }
  .shell.mini .sbtn { justify-content: center; padding: 10px 0; }
  .shell.mini .sbtn .badge { position: absolute; top: 2px; right: 4px; margin: 0; }
}

/* Client list filter (24 Oct 2026) */
.cfilt { margin-top: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
.cfilt::-webkit-scrollbar { display: none; }
.cf { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--soft); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cf i { font-style: normal; opacity: .7; margin-left: 2px; }
.cf[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #111; }
.cfrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 0 10px; }
.paypill { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Pull to refresh (24 Oct 2026) */
.pullbar { position: fixed; left: 50%; top: env(safe-area-inset-top, 0px); z-index: 90; transform: translate(-50%, -56px); opacity: 0; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface, var(--panel)); color: var(--fg, var(--ink)); border: 1px solid var(--gold-brd, var(--gold)); box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 13px; font-weight: 600; pointer-events: none; }
.pullbar svg { width: 18px; height: 18px; color: var(--gold); }
.pullbar.ready { border-color: var(--gold); }
.pullbar.spin svg { animation: pullspin .8s linear infinite; }
@keyframes pullspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pullbar.spin svg { animation: none; } }
/* Audit fixes (24 Oct 2026): toasts show over the client view; the menu's Live button lines up; a way out of a session in landscape */
.toast { z-index: 80; }
.sbtn.live { display: flex; gap: 10px; }
@media (min-width: 960px) { .livebar .back { display: inline-flex; } }
/* Plate maths in a session (24 Oct 2026) */
.plates { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--soft); font-size: 14px; }
.plates:empty { display: none; } .plates b { color: var(--ink); font-size: 16px; } .plates small { color: var(--soft); }
/* Exercise picker for Swap and Add (24 Oct 2026) */
.exlist { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.exgh { margin: 6px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--goldink); font-weight: 700; }
.expick { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-weight: 600; cursor: pointer; }
.expick small { color: var(--soft); font-weight: 500; font-size: 13px; white-space: nowrap; }
/* Team coaches (25 Oct 2026, a-floor A): head coach only parts are hidden; the server refuses them anyway. Assistants view only. */
.floor-sub .ho, .floor-sub [data-hq="bookings"], .floor-sub [data-stripesync], .floor-sub [data-build], .floor-sub [data-report], .floor-sub [data-sknew], .floor-sub [data-savenotes], .floor-sub [data-addnote] { display: none !important; }
.floor-asst [data-start], .floor-asst [data-skinsave], .floor-asst .card [data-skin] { display: none !important; }
.useg button { padding: 5px 11px; } /* kg or lb on a session exercise (26 Oct 2026) */

/* Estimated 1RM under the exercise name (26 Oct 2026) */
.exhead p.rm { margin-top: 3px; font-size: 13px; } .exhead p.rm b { font-weight: 700; } .exhead p.rm b.gold { color: var(--goldink); }
/* Exercise history in a live session (28 Oct 2026) */
.hxch { width: 100%; height: 100px; overflow: visible; margin-top: 6px; }
.hxl { display: grid; margin-top: 8px; }
.hxr { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.hxd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hxs { display: flex; flex-wrap: wrap; gap: 6px; } .hxs span { font-variant-numeric: tabular-nums; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: var(--panel2); }
.lbl.hxpr { color: var(--goldink); }
/* Another business's coach app (29 Oct 2026): its own logo in the sidebar, no K watermark. */
body.other::after, body.other .cv::after { content: none !important; }
body.other .shell.mini .side-logo { content: normal; }

/* Skinfold results after saving (30 Oct 2026) */
.skres .sum small { display: block; font-size: 11.5px; color: var(--soft); margin-top: 3px; font-variant-numeric: tabular-nums; }
.skres .sum b { margin-bottom: 4px; }
.skline { margin: 0 0 8px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.skline:last-child { margin-bottom: 0; }

/* Skinfold results (31 Oct 2026, David chose design 1): safe to show the client, landscape iPad first */
.skr { max-width: 1180px; }
.skhero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.skhl { font-size: clamp(44px, 6vw, 72px); line-height: .92; text-wrap: balance; }
.skhl em { font-style: normal; color: var(--goldink); }
.sksub { margin: 8px 0 0; font-size: 17px; color: var(--soft); }
.sk4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sk4 .sum b { font-size: 36px; margin: 2px 0; }
.sku { font-family: var(--body); font-size: 14px; font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.skchg { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.skchg.good { color: var(--goldink); }
.skseg { justify-self: start; } .skseg button[aria-pressed="true"] { color: var(--goldink); }
.skgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.skch { width: 100%; height: auto; overflow: visible; }
.sklg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--soft); margin: 4px 0 8px; }
.sklg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sksites { display: grid; gap: 7px; }
.sks { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.sks > span:first-child { font-weight: 600; }
.skt { position: relative; height: 20px; }
.skt i { position: absolute; left: 0; border-radius: 4px; }
.skt .was { top: 6px; height: 8px; background: var(--skwas); }
.skt .is { top: 3px; height: 14px; background: var(--gold); } .skt .is.up { background: var(--soft); }
.sks b { text-align: right; font-variant-numeric: tabular-nums; color: var(--goldink); } .sks b.up { color: var(--soft); }
.skfoot { align-items: center; } .skfoot .sp { flex: 1; }
@media (max-width: 900px) { .skhero, .skgrid { grid-template-columns: 1fr; } .sks { grid-template-columns: 86px minmax(0, 1fr) 48px; } }

/* Weight tab (31 Oct 2026) */
.wk5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wk5 .sum b { font-size: 32px; margin: 2px 0; }
.wch { width: 100%; height: auto; overflow: visible; touch-action: none; cursor: crosshair; }
.wread { margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .wk5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ccv { margin-left: auto; color: var(--goldink); }
/* Client file additions (31 Oct 2026) */
.trlog { border-top: 1px solid var(--line); padding: 8px 0; } .trlog summary { cursor: pointer; display: grid; gap: 2px; list-style: none; } .trlog summary::-webkit-details-marker { display: none; }
.trlog[open] summary { margin-bottom: 6px; }
.cit { display: grid; gap: 6px; } .cit-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px) 60px; gap: 12px; align-items: center; }
.cit-r svg { width: 100%; height: 34px; overflow: visible; } .cit-r b { text-align: right; font-variant-numeric: tabular-nums; }
.kv .linkish { font-size: inherit; }
span.chip { cursor: default; }
.kv a, .card a { color: var(--goldink); }
