/* Fitness screen for the Fresh and Night looks (24 Oct 2026), painted by js/fitness.js. Gym colour: --f-gym. */
html[data-skin] .fxwrapall{display:flex;flex-direction:column;gap:12px}
html[data-skin] .fxwrapall>.card{margin:0!important}
html[data-skin] .fxcard{padding:18px!important}
html[data-skin] .fxcard h2{margin:2px 0 0;font-size:20px;font-weight:800}
html[data-skin] .fxhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html[data-skin] .fxhead>div{min-width:0}
html[data-skin] .fxk{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--f-gym)}
html[data-skin] .fxsub{margin:4px 0 0;color:var(--mu);font-size:14px;line-height:1.4}
html[data-skin] .fxbig{display:flex;align-items:baseline;gap:6px;margin-top:4px}
html[data-skin] .fxbig b{font-size:40px;font-weight:800;line-height:1;letter-spacing:-.03em}
html[data-skin] .fxbig span{color:var(--mu);font-size:15px}
html[data-skin] .fxring{--v:0;flex:none;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:conic-gradient(var(--f-gym) calc(var(--v)*1%),color-mix(in srgb,var(--f-gym) 16%,transparent) 0)}
html[data-skin] .fxring span{width:44px;height:44px;border-radius:50%;background:var(--s1);display:grid;place-items:center;font-size:12px;font-weight:800}

/* the week strip: filled = done, ring = a gym day still to come, faint ring = a gym day that was missed */
html[data-skin] .fxstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:16px 0 4px}
html[data-skin] .fxd{display:flex;flex-direction:column;align-items:center;gap:6px}
html[data-skin] .fxd small{font-size:12px;font-weight:700;color:var(--mu)}
html[data-skin] .fxd.today small{color:var(--tx)}
html[data-skin] .fxd>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--s2);color:#fff}
html[data-skin] .fxd>span svg{width:16px;height:16px}
html[data-skin] .fxd.plan>span{background:transparent;box-shadow:inset 0 0 0 2px var(--f-gym)}
html[data-skin] .fxd.miss>span{background:transparent;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--f-gym) 30%,transparent)}
html[data-skin] .fxd.done>span{background:var(--f-gym)}
html[data-skin] .fxd.today>span{outline:2px solid var(--tx);outline-offset:2px}
html[data-skin] .fxd .sr,html[data-skin] .fxsr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html[data-skin] .fxnudge{margin:12px 0;font-size:14px;line-height:1.45;color:var(--mu)}
html[data-skin] .fxok{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:14px;font-weight:700;
  background:color-mix(in srgb,var(--f-steps) 14%,transparent);color:var(--f-steps)}
html[data-skin] .fxok svg{width:18px;height:18px}
html[data-skin] .fxq{margin:12px 0 6px;font-size:13px;font-weight:700;color:var(--mu)}
html[data-skin] .fxchips{flex-wrap:wrap;gap:6px}
html[data-skin] .fxother{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px;font-size:14px}
html[data-skin] .fxother svg{width:16px;height:16px}
html[data-skin] .fxcard .lkwide{width:100%;margin:0}

/* today's workout */
html[data-skin] .fxdays{display:flex;gap:6px;margin:14px 0 4px;overflow-x:auto;scrollbar-width:none}
html[data-skin] .fxdays button{position:relative;flex:1 0 auto;min-width:52px;padding:8px 10px;border:0;border-radius:12px;background:var(--s2);color:var(--tx);font-weight:700;font-size:14px;cursor:pointer}
html[data-skin] .fxdays button.on{background:var(--f-gym);color:#fff}
html[data-skin] .fxdays button i{position:absolute;top:5px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--f-food)}
html[data-skin] .fxlist{margin:10px 0 14px}
html[data-skin] .fxex{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
html[data-skin] .fxex:last-child{border-bottom:0}
html[data-skin] .fxex .n{flex:none;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-size:13px;font-weight:800;
  background:color-mix(in srgb,var(--f-gym) var(--f-tint),transparent);color:var(--f-gym)}
html[data-skin] .fxex b{flex:1;min-width:0;font-weight:600;font-size:15px}
html[data-skin] .fxex em{flex:none;font-style:normal;font-weight:700;font-size:14px;color:var(--mu)}
html[data-skin] .fxnote{margin:-4px 0 12px;padding:10px 12px;border-radius:12px;font-size:13px;background:var(--s2);color:var(--mu)}
html[data-skin] .fxsetup{text-align:center}
html[data-skin] .fxsetup .fxsub{margin:6px auto 16px;max-width:30em}
html[data-skin] .fxic{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;margin-bottom:8px;
  background:color-mix(in srgb,var(--f-gym) var(--f-tint),transparent);color:var(--f-gym)}
html[data-skin] .fxic.sm{flex:none;width:38px;height:38px;border-radius:12px;margin:0}
html[data-skin] .fxic svg{width:22px;height:22px}
html[data-skin] .fxic.sm svg{width:18px;height:18px}

/* my plan */
html[data-skin] .fxplan .btn.small{flex:none}
html[data-skin] .fxwk{margin:14px 0 12px}
html[data-skin] .fxwk span{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
html[data-skin] .fxwk .bar{height:8px;border-radius:8px;background:var(--s2);overflow:hidden}
html[data-skin] .fxwk .bar i{display:block;height:100%;border-radius:8px;background:var(--f-gym)}
html[data-skin] .fxpills{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
html[data-skin] .fxpills span{text-align:center;padding:6px 0;border-radius:10px;font-size:12px;font-weight:700;background:var(--s2);color:var(--mu)}
html[data-skin] .fxpills span.on{background:color-mix(in srgb,var(--f-gym) var(--f-tint),transparent);color:var(--f-gym)}

/* recent */
html[data-skin] .fxrecent .fxhead{align-items:center;margin-bottom:6px}
html[data-skin] .fxrecent .fxhead h2{font-size:18px}
html[data-skin] .fxrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
html[data-skin] .fxrow:last-child{border-bottom:0}
html[data-skin] .fxrow .tx{flex:1;min-width:0;display:flex;flex-direction:column}
html[data-skin] .fxrow .tx b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-skin] .fxrow .tx small{color:var(--mu);font-size:13px}
html[data-skin] .fxfoot{justify-content:center;margin:0}

/* plan sheet */
html[data-skin] .fxsheet .field{margin-bottom:16px}
html[data-skin] .fxwrap{flex-wrap:wrap;gap:6px}
html[data-skin] .fxpick{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
html[data-skin] .fxpick button{aspect-ratio:1;max-width:46px;width:100%;justify-self:center;border:0;border-radius:50%;background:var(--s2);color:var(--tx);font-weight:800;font-size:15px;cursor:pointer}
html[data-skin] .fxpick button.on{background:var(--f-gym);color:#fff}
html[data-skin] .fxrestart{display:block;margin:12px auto 0}

/* detailed view: links to the screens that are no longer tabs */
html[data-skin] .fxlinks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
html[data-skin] .fxlinks.one{grid-template-columns:1fr}
html[data-skin] .fxlinks button{display:flex;align-items:center;gap:10px;padding:14px;border:0;border-radius:var(--f-r);background:var(--s1);box-shadow:var(--f-shadow);color:var(--tx);text-align:left;cursor:pointer}
html[data-skin] .fxlinks button>svg{flex:none;width:20px;height:20px;color:var(--f-gym)}
html[data-skin] .fxlinks span{display:flex;flex-direction:column;min-width:0}
html[data-skin] .fxlinks b{font-size:15px}
html[data-skin] .fxlinks small{color:var(--mu);font-size:12px}
html[data-skin] .fxback{margin-bottom:10px}

/* tap the kcal of an exercise on the Food diary to change it */
html[data-skin] .fxkc{display:inline-flex;align-items:center;gap:4px;border:0;background:color-mix(in srgb,var(--f-gym) var(--f-tint),transparent);color:var(--f-gym);
  font:inherit;font-weight:800;font-size:14px;padding:6px 10px;border-radius:10px;cursor:pointer;white-space:nowrap}
html[data-skin] .fxkc svg{width:14px;height:14px}
