/* Hilton PT: light, simple and friendly. Everton blue for Hilton PT itself;
   the client app wears the trainer's colour (--accent) on Pro. */
:root{
  --bg:#F4F6FA; --card:#FFFFFF; --soft:#EEF2F8; --ink:#0B1530; --dim:#4B5874; --faint:#7D88A0;
  --edge:rgba(11,21,48,.09); --edge-hi:rgba(11,21,48,.18);
  --brand:#1D3F9E; --brand-soft:rgba(29,63,158,.09); --accent:#1D3F9E;
  --good:#0E9F62; --warn:#B86E00; --crit:#D2304F; --good-bg:rgba(14,159,98,.11); --warn-bg:rgba(184,110,0,.11); --crit-bg:rgba(210,48,79,.10);
  --amber:#E8641C; --holo:#1D3F9E; --holo-soft:rgba(29,63,158,.1); --c1:#4F8DF7; --c2:#1D3F9E; --c3:#E8641C; --c4:#1F9E89; --c5:#A64FC4;
  --shadow:0 1px 2px rgba(11,21,48,.04), 0 8px 24px rgba(11,21,48,.06);
  --f-display:"Sora","Segoe UI",system-ui,sans-serif; --f-body:"Manrope","Segoe UI",system-ui,sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--ink); font:14.5px/1.5 var(--f-body); min-height:100vh}
a{color:inherit}
h1,h2,h3{font-family:var(--f-display); font-weight:600; margin:0; letter-spacing:-.01em}
h1{font-size:24px} h2{font-size:16px; margin-bottom:12px; display:flex; align-items:center; gap:8px} h3{font-size:13px; color:var(--dim); margin:14px 0 8px}
p{margin:0 0 8px}
button,input,select,textarea{font:inherit; color:inherit}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px}
[hidden]{display:none!important}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
.muted{color:var(--faint); font-size:13px} .center{text-align:center} .empty{color:var(--faint); margin:6px 0}

.wrap{max-width:1480px; margin:0 auto; padding:12px max(16px, env(safe-area-inset-left)) 40px}
.strip{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--dim); margin-bottom:10px}
.strip .badge{font-weight:700; letter-spacing:.04em; padding:4px 10px; border-radius:999px; background:var(--card); border:1px solid var(--edge)}
.strip .grow{flex:1} .strip a{color:var(--brand); font-weight:600}
.live{display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:11.5px; letter-spacing:.05em; padding:5px 12px; border-radius:999px; border:1px solid var(--edge-hi); background:var(--card); cursor:pointer; white-space:nowrap}
.live i{width:8px; height:8px; border-radius:50%; background:var(--crit); animation:pulse 1.6s ease-out infinite}
.live.paused i{background:var(--faint); animation:none} .live.ended i{background:var(--good); animation:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(210,48,79,.5)} 70%{box-shadow:0 0 0 8px transparent} 100%{box-shadow:0 0 0 0 transparent}}

.top{display:flex; align-items:center; gap:12px; margin-bottom:14px}
.logo{display:flex; align-items:center; gap:10px; text-decoration:none; min-width:0}
.logo .mark{width:38px; height:38px; flex:none; border-radius:12px; display:grid; place-items:center; background:var(--brand); color:#fff}
.logo .mark svg{width:22px}
.logo .txt{font:600 18px var(--f-display); display:flex; flex-direction:column; line-height:1.15}
.logo small{font:500 12px var(--f-body); color:var(--dim)}
.switch{margin-left:auto; display:none; background:var(--soft); border-radius:999px; padding:3px}
.switch button{border:0; background:transparent; padding:8px 14px; border-radius:999px; font-weight:700; font-size:13px; cursor:pointer; color:var(--dim)}
.switch button[aria-pressed=true]{background:var(--card); color:var(--ink); box-shadow:var(--shadow)}
.me{margin-left:auto; width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:#0F7B6C; color:#fff; font:600 13px var(--f-display); flex:none}

/* the two apps side by side */
.stage{display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:28px; align-items:start}
.capp-wrap{position:sticky; top:12px}
.caption{font-size:12px; font-weight:700; color:var(--dim); text-align:center; margin:0 0 8px; letter-spacing:.02em}
.phone{--holo:var(--accent); width:390px; height:min(800px, calc(100vh - 70px)); margin:0 auto; border-radius:44px; background:#F7F8FB; border:10px solid #0B1530;
  box-shadow:0 24px 60px rgba(11,21,48,.22); display:flex; flex-direction:column; overflow:hidden; position:relative}
.cbar{display:flex; align-items:center; gap:10px; padding:16px 16px 10px; background:var(--card); border-bottom:1px solid var(--edge)}
.cmark{width:34px; height:34px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font:600 13px var(--f-display); flex:none; transition:background .3s}
.cname{display:flex; flex-direction:column; font:600 14px var(--f-display); line-height:1.15; min-width:0}
.cname small{font:500 11px var(--f-body); color:var(--faint)}
.cwho{margin-left:auto} .cwho select{max-width:118px; font-size:12px; padding:5px 6px; border-radius:10px; border:1px solid var(--edge-hi); background:var(--card)}
.cmain{flex:1; overflow:auto; padding:14px 14px 20px}
.cnav{display:grid; grid-template-columns:repeat(5,1fr); background:var(--card); border-top:1px solid var(--edge); padding:6px 4px calc(8px + env(safe-area-inset-bottom))}
.cnav button{border:0; background:none; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:10.5px; font-weight:700; color:var(--faint); cursor:pointer; padding:4px 0; min-height:44px}
.cnav svg{width:22px; height:22px} .cnav button.on{color:var(--accent)}

/* trainer nav */
.tnav{display:flex; gap:6px; margin-bottom:16px; overflow-x:auto; scrollbar-width:none; padding:2px}
.tnav::-webkit-scrollbar{display:none}
.tnav a{flex:none; text-decoration:none; padding:9px 16px; border-radius:999px; background:var(--card); border:1px solid var(--edge); font-weight:700; font-size:13.5px; color:var(--dim); display:inline-flex; align-items:center; gap:6px}
.tnav a.on{background:var(--brand); color:#fff; border-color:var(--brand)}
.count{display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--crit); color:#fff; font-size:11px; font-weight:700}
.count:empty{display:none}

/* cards */
.card{background:var(--card); border:1px solid var(--edge); border-radius:20px; padding:18px; box-shadow:var(--shadow); margin-bottom:16px; min-width:0}
.grid2{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 16px} .grid2.wide{grid-template-columns:minmax(0,5fr) minmax(0,6fr)} .grid2.flat > div{min-width:0}
.ph{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px} .ph .right{margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; color:var(--dim)}
.lead{color:var(--dim); margin-bottom:12px}
.hello{background:linear-gradient(120deg, var(--brand), #2F5BD3); color:#fff; border:0}
.hello p{color:rgba(255,255,255,.85); margin:4px 0 0}
.kpis{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px}
.kcard{display:flex; flex-direction:column; text-decoration:none; gap:2px}
.kcard[href]:hover{border-color:var(--edge-hi)}
.klab{font-size:12.5px; font-weight:700; color:var(--dim)} .kval{font:600 28px var(--f-display); letter-spacing:-.02em} .kcard small{color:var(--faint); font-size:12px}

.list{display:flex; flex-direction:column; gap:2px}
.row{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; padding:10px; border-radius:14px; text-decoration:none}
a.row:hover{background:var(--soft)}
.row .rt{display:flex; flex-direction:column; min-width:0; text-decoration:none}
.row .rt small, .row .end small{color:var(--dim); font-size:12.5px}
.row .end{display:flex; flex-direction:column; align-items:flex-end; gap:4px; text-align:right}
.row .acts{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end}
.row.need{border:1px solid var(--edge); margin-bottom:6px; grid-template-columns:auto minmax(0,1fr)}
.row.need .acts{grid-column:2; justify-content:flex-start}
.row .ico{width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:var(--soft); font-weight:700; color:var(--brand)}
.need.money .ico{background:var(--crit-bg); color:var(--crit)} .need.health .ico{background:var(--warn-bg)} .need.request .ico{background:var(--brand-soft)}
.row.sess{grid-template-columns:44px auto minmax(0,1fr) auto}
.row .time{font-weight:700; font-variant-numeric:tabular-nums; color:var(--dim)}
.row.sess.done{opacity:.62} .row.sess.late-cancel .rt b{text-decoration:line-through}
.row.sess.on{background:var(--brand-soft)}
.st{font-size:11.5px; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--soft); color:var(--dim); white-space:nowrap}
.st.good{background:var(--good-bg); color:var(--good)} .st.warn{background:var(--warn-bg); color:var(--warn)} .st.crit{background:var(--crit-bg); color:var(--crit)}
.st.on{background:var(--brand); color:#fff} .st.next{background:var(--brand-soft); color:var(--brand)}
.pill{display:inline-block; font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:999px; background:var(--soft); color:var(--dim); white-space:nowrap}
.pill.good{background:var(--good-bg); color:var(--good)} .pill.warn{background:var(--warn-bg); color:var(--warn)} .pill.crit{background:var(--crit-bg); color:var(--crit)}
.av{width:38px; height:38px; border-radius:50%; display:inline-grid; place-items:center; color:#fff; font:600 12.5px var(--f-display); flex:none}
.av.xs{width:26px; height:26px; font-size:10px} .av.lg{width:64px; height:64px; font-size:20px}
.dot{display:inline-block; width:8px; height:8px; border-radius:50%; vertical-align:middle} .dot.crit{background:var(--crit)}
.pb{font-size:10.5px; font-weight:800; color:#fff; background:var(--good); border-radius:6px; padding:1px 5px; letter-spacing:.04em}
.activity{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:6px}
.activity a{display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:12px; text-decoration:none; background:var(--soft); font-size:13px}
.activity time{font-weight:700; color:var(--faint); font-size:12px; font-variant-numeric:tabular-nums}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--brand); background:var(--brand); color:#fff; font-weight:700; font-size:13.5px; padding:9px 16px; border-radius:12px; cursor:pointer; text-decoration:none; min-height:40px}
.btn:hover{filter:brightness(1.08)} .btn:disabled{opacity:.55; cursor:not-allowed; filter:none}
.btn.ghost{background:var(--card); color:var(--brand); border-color:var(--edge-hi)}
.btn.sm{padding:6px 12px; font-size:12.5px; min-height:34px} .btn.xs{padding:3px 9px; font-size:12px; min-height:28px; border-radius:9px} .btn.big{width:100%; padding:13px; font-size:15px}
.btn .pro{background:rgba(255,255,255,.25); color:inherit}
.pro{font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:2px 7px; border-radius:6px; background:linear-gradient(120deg,#E8641C,#F29A3E); color:#fff; vertical-align:middle}
.locked{text-align:center; padding:18px; border-radius:16px; background:repeating-linear-gradient(135deg, var(--soft) 0 10px, transparent 10px 20px); border:1px dashed var(--edge-hi)}
.locked b{display:block; margin:8px 0 4px; font-family:var(--f-display)} .locked p{color:var(--dim); max-width:380px; margin:0 auto 12px}
.back{display:inline-block; margin-bottom:10px; color:var(--brand); font-weight:700; text-decoration:none}
.acts{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px}

/* profile */
.phead{display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:center}
.phead .rt p{color:var(--dim); margin:2px 0 6px} .phead .tags{display:flex; gap:6px; flex-wrap:wrap}
.phead .acts{grid-column:1 / -1; margin:0}
.days{margin:6px 0; padding-left:18px; font-size:13px; color:var(--dim)} .days b{color:var(--ink)}
.noteform{display:flex; flex-direction:column; gap:8px; align-items:flex-start; margin-bottom:10px}
textarea, input[type=search], input[type=text], input:not([type]), select, input[type=number]{width:100%; border:1px solid var(--edge-hi); border-radius:12px; padding:9px 11px; background:var(--card)}
.notes, .bests, .hist, .pays, .thread, .why{list-style:none; margin:0; padding:0}
.notes li{padding:8px 0; border-top:1px solid var(--edge); font-size:13.5px} .notes time{display:block; font-size:11.5px; font-weight:700; color:var(--faint)}
.bests li{display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; padding:6px 0; border-top:1px solid var(--edge); font-size:13.5px} .bests small{color:var(--faint)}
.hist li{padding:8px 0; border-top:1px solid var(--edge); display:flex; flex-direction:column; gap:2px} .hist small{color:var(--dim)}
.flag{color:var(--warn); font-weight:600}
.pays li{display:grid; grid-template-columns:56px minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:7px 0; border-top:1px solid var(--edge); font-size:13px}
.pays li .acts{grid-column:2 / -1; margin:0} .pays li.failed{color:var(--crit)}
.thread{display:flex; flex-direction:column; gap:8px}
.thread li{max-width:85%; width:fit-content; display:flex; flex-direction:column; gap:2px}
.thread li span{padding:8px 12px; border-radius:16px; background:var(--soft); font-size:13.5px}
.thread li time{font-size:11px; color:var(--faint); padding:0 6px}
.thread li.trainer, .thread li.me{align-self:flex-end; align-items:flex-end}
.thread li.trainer span{background:var(--brand); color:#fff} .thread li.me span{background:var(--accent); color:#fff}

/* calendar */
.daychips{display:none; gap:6px; overflow-x:auto; margin-bottom:12px; scrollbar-width:none}
.chip{flex:none; border:1px solid var(--edge); background:var(--card); padding:7px 12px; border-radius:999px; font-weight:700; font-size:13px; cursor:pointer; text-decoration:none; color:var(--dim)}
.chip.on{background:var(--ink); color:#fff; border-color:var(--ink)}
.cal{display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:10px; padding:12px}
.day{min-width:0; display:flex; flex-direction:column; gap:6px}
.day h3{margin:0 0 4px; font-size:13px; color:var(--ink); padding:6px 4px; border-bottom:2px solid var(--edge)} .day h3 span{color:var(--faint); font-weight:500}
.day.is-today h3{border-color:var(--brand); color:var(--brand)}
.ev{display:flex; flex-direction:column; text-align:left; border:0; border-left:3px solid var(--brand); background:var(--brand-soft); border-radius:8px; padding:6px 8px; font-size:12px; cursor:pointer; width:100%}
.ev time{font-weight:800; font-size:11.5px} .ev small{color:var(--dim); font-size:11px}
.ev.done{opacity:.55} .ev.on{background:var(--brand); color:#fff} .ev.on small{color:rgba(255,255,255,.8)}
.ev.cancelled, .ev.late-cancel{opacity:.5; text-decoration:line-through; border-color:var(--faint); background:var(--soft)}
.ev.req{border:1px dashed var(--amber); border-left:3px solid var(--amber); background:var(--warn-bg); cursor:default} .ev.req .acts{margin-top:4px; gap:4px}
.ev.block{border-color:var(--faint); background:repeating-linear-gradient(135deg, var(--soft) 0 6px, transparent 6px 12px); cursor:default}
.open{display:flex; flex-wrap:wrap; gap:4px; margin-top:4px} .open small{width:100%; color:var(--faint); font-size:11px; font-weight:700}
.slot{border:1px dashed var(--edge-hi); background:var(--card); border-radius:8px; padding:4px 8px; font-size:12px; font-weight:700; cursor:pointer; color:var(--brand)}
.slot:hover{border-style:solid; border-color:var(--brand)}
.filters{display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px} .filters input{flex:1 1 220px; width:auto}

/* workouts */
.planner{display:flex; flex-direction:column; gap:12px}
.planner label{display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:12.5px; color:var(--dim)}
.two{display:grid; grid-template-columns:1fr 1fr; gap:10px}
fieldset{border:0; padding:0; margin:0} legend{font-weight:700; font-size:12.5px; color:var(--dim); margin-bottom:6px}
.checks{display:flex; flex-wrap:wrap; gap:6px}
.checks label{flex-direction:row; align-items:center; gap:6px; font-weight:600; font-size:13px; color:var(--ink); border:1px solid var(--edge); border-radius:999px; padding:5px 11px; cursor:pointer}
.checks label:has(input:checked){background:var(--brand-soft); border-color:var(--brand)}
.thinking{display:flex; align-items:center; gap:6px; padding:30px 0; justify-content:center; color:var(--dim); font-weight:600}
.thinking i{width:9px; height:9px; border-radius:50%; background:var(--brand); animation:dotty 1s infinite ease-in-out} .thinking i:nth-child(2){animation-delay:.15s} .thinking i:nth-child(3){animation-delay:.3s}
.thinking span{margin-left:8px}
@keyframes dotty{50%{transform:translateY(-6px); opacity:.5}}
.draft .pday{animation:rise .5s cubic-bezier(.2,.8,.2,1) both} .draft .pday:nth-of-type(2){animation-delay:.08s} .draft .pday:nth-of-type(3){animation-delay:.16s} .draft .pday:nth-of-type(4){animation-delay:.24s} .draft .pday:nth-of-type(5){animation-delay:.32s}
.pday{border:1px solid var(--edge); border-radius:14px; padding:4px 12px 8px; margin-bottom:10px} .pday h3{margin:8px 0 4px; color:var(--brand)}
.exrow{display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:6px; align-items:center; padding:5px 0; border-top:1px solid var(--edge)}
.exrow:first-of-type{border-top:0} .exrow .rt{display:flex; flex-direction:column} .exrow small{color:var(--dim); font-size:12px}
.icon{width:34px; height:34px; border-radius:10px; border:1px solid var(--edge); background:var(--card); cursor:pointer; font-size:14px; color:var(--dim)}
.icon:hover{border-color:var(--brand); color:var(--brand)}
.why{margin:6px 0} .why li{padding:5px 0 5px 22px; position:relative; font-size:13px; color:var(--dim)} .why li::before{content:"✓"; position:absolute; left:2px; color:var(--good); font-weight:800}
.inline{display:flex; align-items:center; gap:8px; font-weight:700} .inline select{width:auto}
.legend{font-size:12px; color:var(--dim); display:flex; align-items:center; gap:6px; flex-wrap:wrap} .legend i{width:10px; height:10px; border-radius:3px; display:inline-block; margin-left:6px}

/* my plan */
.how .three{display:grid; grid-template-columns:repeat(3,1fr); gap:14px} .how p{color:var(--dim); margin:0} .how b{color:var(--ink); display:block}
.tiers{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:16px; margin-bottom:10px}
.tier{background:var(--card); border:1px solid var(--edge); border-radius:20px; padding:18px; box-shadow:var(--shadow); display:flex; flex-direction:column}
.tier.on{border:2px solid var(--brand)} .tier h3{margin:0; color:var(--ink); font-size:16px}
.tier .price{font:600 30px var(--f-display); margin:6px 0 2px} .tier .price small{font:500 13px var(--f-body); color:var(--dim)}
.tier ul{list-style:none; padding:0; margin:8px 0 14px; flex:1} .tier li{padding:4px 0 4px 20px; position:relative; font-size:13px} .tier li::before{content:"✓"; position:absolute; left:0; color:var(--good); font-weight:800}
.brand{display:flex; flex-direction:column; gap:10px} .brand label{display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:12.5px; color:var(--dim)}
.swatches{display:flex; gap:8px; flex-wrap:wrap}
.sw{width:36px; height:36px; border-radius:50%; border:3px solid var(--card); box-shadow:0 0 0 1px var(--edge-hi); cursor:pointer}
.sw.on{box-shadow:0 0 0 2px var(--ink)}
.onlynarrow{display:none}

/* charts (kit) */
.chart svg{width:100%; height:auto; display:block; overflow:visible}
.chart text{font:600 11px var(--f-body); fill:var(--faint)}
.chart .tag text{fill:#fff; font-size:11px}
.chart .hit{fill:transparent}

/* client app */
.chi{font-size:22px; margin:2px 0 10px} .csub{color:var(--dim); margin:-6px 0 12px; font-size:13px}
.ccard{background:var(--card); border:1px solid var(--edge); border-radius:18px; padding:14px; margin-bottom:10px; display:flex; flex-direction:column; gap:4px; align-items:flex-start}
.ccard > small{font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--faint)}
.ccard > b{font:600 17px var(--f-display)} .ccard p{margin:0; color:var(--dim); font-size:13.5px}
.ccard .btn{background:var(--accent); border-color:var(--accent); margin-top:6px} .phone .btn.big{background:var(--accent); border-color:var(--accent)}
.ccard.good{background:var(--good-bg); border-color:transparent} .ccard.warn{background:var(--warn-bg); border-color:transparent} .ccard.crit{background:var(--crit-bg); border-color:transparent}
.ccard.center{align-items:center; text-align:center} .ccard .big{font-size:44px; line-height:1}
.ccard .chart, .ccard .bests, .ccard .pays, .ccard .thread, .ccard .slots{width:100%}
.calert{width:100%; text-align:left; border:0; border-radius:14px; padding:11px 14px; background:var(--crit); color:#fff; font-weight:700; margin-bottom:10px; cursor:pointer}
.dots{display:flex; gap:6px; margin-top:4px} .dots i{width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:11px; font-weight:800; background:var(--soft); color:var(--faint)}
.dots i.on{background:var(--accent); color:#fff} .dots i.now{box-shadow:0 0 0 2px var(--accent)}
.slots{display:flex; flex-wrap:wrap; gap:6px; margin-top:4px} .phone .slot{color:var(--accent)}
.ex .set{display:grid; grid-template-columns:auto auto 1fr auto; align-items:center; gap:8px; width:100%; padding:6px 0; border-top:1px solid var(--edge); font-size:13px; font-weight:600}
.ex .set input[type=checkbox]{width:22px; height:22px; accent-color:var(--accent)}
.ex .set .kg{justify-self:end; display:flex; align-items:center; gap:6px} .ex .set input[type=number]{width:76px; padding:6px 8px} .ex .set em{font-style:normal; color:var(--faint); font-size:12px; min-width:44px; text-align:right}
.ex .set:has(input:checked){color:var(--accent)}
.ccard.ex > small{color:var(--dim); font-size:12px; text-transform:none; letter-spacing:0; font-weight:600}

/* feed, toast, sheet */
.feed{position:fixed; z-index:40; left:16px; bottom:calc(16px + env(safe-area-inset-bottom)); max-width:min(440px, calc(100vw - 32px)); display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px;
  padding:11px 15px; border-radius:16px; background:var(--card); border:1px solid var(--edge-hi); box-shadow:0 16px 40px rgba(11,21,48,.16); font-size:13px; cursor:pointer; animation:feedin .45s cubic-bezier(.2,.8,.2,1)}
.feed .src{font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--brand); display:block}
.feed time{font-weight:700; font-size:12px; color:var(--faint); padding-top:1px}
.feed.good{border-left:4px solid var(--good)} .feed.crit{border-left:4px solid var(--crit)} .feed.warn{border-left:4px solid var(--amber)}
@keyframes feedin{from{opacity:0; transform:translateY(16px)}}
.toast{position:fixed; z-index:50; left:50%; transform:translateX(-50%); bottom:calc(24px + env(safe-area-inset-bottom)); background:var(--ink); color:#fff; padding:10px 18px; border-radius:999px; font-weight:600; font-size:13.5px; max-width:calc(100vw - 32px); text-align:center; box-shadow:var(--shadow)}
dialog{border:0; border-radius:22px; padding:22px; width:min(460px, calc(100vw - 32px)); box-shadow:0 30px 80px rgba(11,21,48,.3); color:var(--ink)}
dialog::backdrop{background:rgba(11,21,48,.35)}
dialog .x{position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%; border:1px solid var(--edge); background:var(--card); cursor:pointer}
dialog h2{padding-right:36px} dialog form{display:flex; flex-direction:column; gap:10px} dialog label{display:flex; flex-direction:column; gap:4px; font-weight:700; font-size:12.5px; color:var(--dim)}

/* motion (the kit tags numbers; this is how pages enter) */
.enter .card, .enter .tier{animation:rise .55s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(var(--i,0) * 45ms)}
.enter .card:nth-child(2){--i:1} .enter .card:nth-child(3){--i:2} .enter .card:nth-child(4){--i:3} .enter .card:nth-child(5){--i:4} .enter .card:nth-child(6){--i:5}
.enter .row, .enter .ev, .enter .activity li{animation:fadein .45s ease-out both; animation-delay:calc(120ms + var(--j,0) * 22ms)}
.enter .ccard{animation:rise .5s cubic-bezier(.2,.8,.2,1) both} .enter .ccard:nth-of-type(2){animation-delay:.06s} .enter .ccard:nth-of-type(3){animation-delay:.12s} .enter .ccard:nth-of-type(4){animation-delay:.18s} .enter .ccard:nth-of-type(5){animation-delay:.24s} .enter .ccard:nth-of-type(n+6){animation-delay:.3s}
@keyframes rise{from{opacity:0; transform:translateY(14px) scale(.985)}}
@keyframes fadein{from{opacity:0; transform:translateY(6px)}}
.chart .grow{transform-box:fill-box; transform-origin:50% 100%; animation:grow .7s cubic-bezier(.2,.8,.2,1) both; animation-delay:var(--d,0s)}
@keyframes grow{from{transform:scaleY(0)}}
.chart .tag.pop, .chart circle.pop{transform-box:fill-box; transform-origin:center; animation:pop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay:.85s}
@keyframes pop{from{opacity:0; transform:scale(.6)}}
.bump{animation:bump 1.4s ease-out} @keyframes bump{0%{color:var(--amber)}}
.kcard.bump{animation:glow 1.4s ease-out} @keyframes glow{0%{box-shadow:0 0 0 2px var(--amber), var(--shadow)}}

/* phones and tablets: one app at a time */
@media (max-width:1099px){
  .switch{display:flex} .me{margin-left:0}
  .stage{display:block}
  .stage[data-view=trainer] .capp-wrap, .stage[data-view=client] .tapp{display:none}
  .capp-wrap{position:static} .caption{display:none}
  .phone{width:auto; max-width:520px; height:auto; border:0; border-radius:20px; box-shadow:var(--shadow); overflow:visible}
  .cmain{overflow:visible}
  .cnav{position:sticky; bottom:0; z-index:5; border-radius:0 0 20px 20px}
  .onlywide{display:none} .onlynarrow{display:inline}
  .daychips{display:flex}
  .cal{grid-template-columns:minmax(0,1fr)} .cal .day:not(.sel){display:none}
}
@media (max-width:860px){
  .grid2, .grid2.wide{grid-template-columns:minmax(0,1fr)}
  .kpis{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px}
  .tiers, .how .three{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:560px){
  .strip .hint{display:none}
  .logo small{display:none}
  .switch button{padding:7px 10px; font-size:12.5px; white-space:nowrap}
  .me{display:none} .logo .txt{white-space:nowrap; font-size:16px} .logo .mark{width:34px; height:34px}
  .kpis .card{margin-bottom:0} .kpis{margin-bottom:12px}
  .card{padding:14px; border-radius:18px} .kval{font-size:24px}
  .row.sess{grid-template-columns:40px minmax(0,1fr) auto} .row.sess .av{display:none}
  .row.sess .end{gap:3px}
  .pays li{grid-template-columns:48px minmax(0,1fr) auto} .pays li .st{display:none}
  .two{grid-template-columns:minmax(0,1fr)}
  .feed{bottom:calc(84px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){ *{animation:none!important; transition:none!important} }
