/* ==================================================================== body
   Gym and food. Two things that were paper and are now taps. */

.prot{text-align:left}
.prot.done{border-color:#BEE8A0; background:var(--greenSoft)}
.pnum{display:flex; align-items:baseline; gap:11px; flex-wrap:wrap}
.pnum b{font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:44px;
  line-height:.95; letter-spacing:-.04em; font-variant-numeric:tabular-nums}
.pnum b small{font-size:20px; font-weight:700; margin-left:2px}
.pnum span{font-size:13px; color:var(--ink2)}
.pbar{height:9px; border-radius:6px; background:var(--sunk); overflow:hidden; margin:13px 0 0}
.pbar i{display:block; height:100%; border-radius:6px; background:var(--green);
  transition:width .55s cubic-bezier(.22,1,.36,1)}
.prot.done .pbar i{background:#3FD9A0}
.fine.good{color:var(--green)}

/* the three eating occasions, as three objects rather than a form */
.anch{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:11px 0}
.an{display:flex; flex-direction:column; gap:2px; text-align:left; padding:11px 11px 12px;
  border-radius:var(--r2); border:2px solid var(--edge); background:var(--card); cursor:pointer;
  min-height:78px; justify-content:center; color:var(--ink); font:inherit;
  font-family:"Nunito",sans-serif}
.an:active{transform:scale(.97)}
.an .ak{font-family:"JetBrains Mono",monospace; font-size:9px; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ink3)}
.an .av{font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:13px;
  line-height:1.15; letter-spacing:-.01em}
.an .ad{font-size:10.5px; color:var(--ink3)}
.an.on{border-color:#BEE8A0; background:var(--greenSoft); color:var(--greenInk)}
.an.on .ak{color:var(--greenInk); opacity:.8}
.an.on .av{color:var(--greenInk)}
.an.on .ad{color:var(--greenInk); font-weight:700}

/* a heading with a rule through it, so the tab reads as sections */
.rulehead{display:flex; align-items:center; gap:11px; margin:26px 0 10px}
.rulehead h3{margin:0; font-size:17px}
.rulehead span{flex:1; height:2px; background:var(--edge); border-radius:2px}
.rulehead em{font-style:normal; font-family:"JetBrains Mono",monospace; font-size:9.5px;
  letter-spacing:.13em; text-transform:uppercase; color:var(--ink3)}

/* the lift list: name on the left, what to do on the right */
.lifts{display:grid; gap:8px}
.lift{display:flex; align-items:center; gap:12px; width:100%; text-align:left; cursor:pointer;
  padding:12px 14px; border-radius:var(--r2); border:2px solid var(--edge); background:var(--card);
  min-height:66px; color:var(--ink); font:inherit; font-family:"Nunito",sans-serif}
.lift:active{transform:scale(.985)}
.lift.on{border-color:#BEE8A0; background:var(--greenSoft)}
.lift.on .lb2 b{color:var(--greenInk)}
.lift.on .lb2 span{color:var(--greenInk); opacity:.75}
.lb2{flex:1; min-width:0}
.lb2 b{display:block; font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:15px;
  letter-spacing:-.015em; line-height:1.2; color:var(--ink)}
.lb2 span{display:block; font-size:11.5px; color:var(--ink3); line-height:1.3; margin-top:2px}
.lv{flex:none; text-align:right; font-family:"JetBrains Mono",monospace; font-weight:700;
  font-size:16px; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.1}
.lv em{display:block; font-style:normal; font-size:10px; font-weight:400; color:var(--ink3);
  letter-spacing:.04em; margin-top:3px}
.lv .new{font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink3)}
.lift.on .lv{color:var(--greenInk)}

.wst .pnum b{font-size:38px}

/* the programme's own level, which climbs on sessions rather than on weeks */
.stg{border:2px solid var(--edge); border-radius:var(--r2); background:var(--card2);
  padding:13px 15px; margin:0 0 11px}
.stg .sh{display:flex; align-items:baseline; gap:10px; flex-wrap:wrap}
.stg .sh b{font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:17px;
  letter-spacing:-.02em}
.stg .sh span{font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.11em;
  text-transform:uppercase; color:var(--ink3)}
.stg .fine{margin:5px 0 0}
.sbar{height:7px; border-radius:5px; background:var(--sunk); overflow:hidden; margin:10px 0 0}
.sbar i{display:block; height:100%; border-radius:5px; background:var(--gold, #F2B735);
  transition:width .55s cubic-bezier(.22,1,.36,1)}
.hold{margin:9px 0 0; padding:11px 14px; border-radius:var(--r2); border:2px dashed var(--edge2);
  background:var(--sunk); color:var(--ink3); font-size:12.5px; line-height:1.4}

/* the day's condition: one score, five basics, none of them able to punish */
.cond{display:flex; align-items:center; gap:14px; padding:14px 16px; margin:0 0 11px;
  border:2px solid var(--edge); border-radius:var(--r2); background:var(--card)}
.cond.full{border-color:#F3D9A0; background:var(--flameSoft)}
.cring{position:relative; width:46px; height:46px; flex:none}
/* Every ring in this app declares its own circle styling - there is no global
   rule - so leaving it out fills the disc solid black. */
.cring .rg{width:46px; height:46px; transform:rotate(-90deg); display:block}
.cring .rg circle{fill:none; stroke-width:4}
.cring .rg .bg{stroke:var(--cardSunk)}
.cring .rg .fg{stroke:var(--gold); stroke-linecap:round; transition:stroke-dasharray .6s var(--tap)}
.cring .rg.done .fg{stroke:var(--jade)}
.cring b{position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:"JetBrains Mono",monospace; font-size:16px; font-weight:700}
.cbd h3{margin:0; font-size:16px}
.cbd span{display:block; font-size:12.5px; color:var(--ink2); margin-top:2px}

.vit{display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin:0 0 10px}
.vc{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  padding:9px 4px; min-height:60px; border-radius:14px; border:2px solid var(--edge);
  background:var(--card); color:var(--ink); font:inherit; font-family:"Nunito",sans-serif}
button.vc{cursor:pointer}
button.vc:active{transform:scale(.96)}
.vc .vv{font-family:"JetBrains Mono",monospace; font-variant-numeric:tabular-nums;
  font-weight:700; font-size:13px; letter-spacing:-.02em}
.vc .vl{font-size:9.5px; letter-spacing:.04em; color:var(--ink3); text-align:center; line-height:1.1}
.vc.on{border-color:#BEE8A0; background:var(--greenSoft)}
.vc.on .vv{color:var(--greenInk)}
.vc.on .vl{color:var(--greenInk); opacity:.8}

/* eight glasses, because eight taps is the entire interface */
.glass{display:grid; grid-template-columns:repeat(8,1fr); gap:8px; margin:2px 0 10px}
.gl{padding:0; border:none; background:none; cursor:pointer; min-height:34px;
  display:flex; align-items:center; justify-content:center}
.gl i{display:block; width:100%; height:8px; border-radius:5px;
  background:var(--edge2); transition:background .18s}
.gl.on i{background:linear-gradient(90deg,#7ED4FF,#1CB0F6)}
.gl:active i{transform:scale(.9)}

/* the week's three, which regenerate on a Monday and never run out */
.qwk{display:grid; gap:8px; margin:0 0 9px}
.qq{padding:11px 14px 12px; border-radius:var(--r2); border:2px solid var(--edge);
  background:var(--card)}
.qq.on{border-color:#BEE8A0; background:var(--greenSoft)}
.qt{display:flex; align-items:baseline; justify-content:space-between; gap:10px}
.qt b{font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:14.5px;
  letter-spacing:-.015em; line-height:1.2}
.qt span{flex:none; font-family:"JetBrains Mono",monospace; font-variant-numeric:tabular-nums;
  font-size:11.5px; font-weight:700; color:var(--ink3)}
.qq.on .qt b, .qq.on .qt span{color:var(--greenInk)}
.qbar{height:6px; border-radius:4px; background:var(--sunk); overflow:hidden; margin:9px 0 0}
.qbar i{display:block; height:100%; border-radius:4px; background:var(--gold, #F2B735);
  transition:width .55s cubic-bezier(.22,1,.36,1)}
.qq.on .qbar i{background:var(--jade, #58CC02)}

/* a slot and its swap, because the rack being busy is not a reason to leave */
.liftrow{display:flex; gap:7px; align-items:stretch}
.liftrow .lift{flex:1; min-width:0}
.swap{flex:none; width:46px; border-radius:var(--r2); border:2px solid var(--edge);
  background:var(--card2); color:var(--ink3); font-size:20px; line-height:1; cursor:pointer}
.swap:active{transform:scale(.94)}

/* --------------------------------------------------------------- the job */
.countdown{display:flex; align-items:center; gap:15px; border-color:#F3D9A0;
  background:var(--flameSoft)}
.cd{flex:none; text-align:center; min-width:64px}
.cd b{display:block; font-family:"Bricolage Grotesque",sans-serif; font-weight:800; font-size:38px;
  line-height:.95; letter-spacing:-.04em; font-variant-numeric:tabular-nums}
.cd span{display:block; font-family:"JetBrains Mono",monospace; font-size:9px; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ink3); margin-top:3px}
.cdb h3{margin:0; font-size:17px}
.cdb p{margin:4px 0 0; font-size:13px; color:var(--ink2); line-height:1.4}

.wk{display:grid; gap:8px}
.wi{display:flex; align-items:flex-start; gap:12px; width:100%; text-align:left; cursor:pointer;
  padding:12px 14px; border-radius:var(--r2); border:2px solid var(--edge); background:var(--card);
  color:var(--ink); font:inherit; font-family:"Nunito",sans-serif}
.wi:active{transform:scale(.985)}
.wi.on{border-color:#BEE8A0; background:var(--greenSoft)}
.wbox{flex:none; width:24px; height:24px; border-radius:8px; border:2px solid var(--edge2);
  display:flex; align-items:center; justify-content:center; font-size:14px; margin-top:1px;
  background:var(--card)}
.wi.on .wbox{background:var(--jade); border-color:var(--jade); color:#FFFFFF}
.wb{flex:1; min-width:0}
.wb b{display:block; font-family:"Bricolage Grotesque",sans-serif; font-weight:700; font-size:15px;
  letter-spacing:-.015em; line-height:1.25}
.wb span{display:block; font-size:12px; color:var(--ink3); line-height:1.35; margin-top:3px}
.wi.on .wb b{color:var(--greenInk)}
.wi.on .wb span{color:var(--greenInk); opacity:.7}

/* the order list on Food */
.ordl{display:grid; gap:7px; margin:0 0 4px}
.ord{display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%;
  text-align:left; cursor:pointer; padding:11px 14px; border-radius:14px;
  border:2px solid var(--edge); background:var(--card); color:var(--ink);
  font:inherit; font-family:"Nunito",sans-serif}
.ord:active{transform:scale(.985)}
.ord .on2{font-size:14px; font-weight:700}
.ord .og{flex:none; font-family:"JetBrains Mono",monospace; font-weight:700; font-size:13px;
  color:var(--ink3)}

/* ==========================================================================
   The hero.

   Four tabs used to open with a grey hairline rule and a heading, which is
   how a document opens, not a place. You could not tell Food from Work at a
   glance and there was nothing on the screen to want. Each tab now owns a
   colour and opens with the one number it is about, big, on that colour.
   ========================================================================== */
.hero{position:relative; overflow:hidden; isolation:isolate;
  border-radius:24px; padding:17px 18px 19px; margin:14px 0 15px; color:#fff;
  background:linear-gradient(152deg,var(--h1),var(--h2) 58%,var(--h3));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 14px 30px -16px var(--hsh), 0 2px 5px -2px rgba(0,0,0,.18),
             0 1px 0 rgba(255,255,255,.3) inset}
.hero.full{margin-top:6px; padding:22px 18px 24px}
.hero-gl,.hero-gl2{position:absolute; border-radius:50%; z-index:-1; pointer-events:none}
.hero-gl{width:230px; height:230px; right:-72px; top:-104px;
  background:radial-gradient(circle,rgba(255,255,255,.42),transparent 66%)}
.hero-gl2{width:280px; height:280px; left:-110px; bottom:-166px;
  background:radial-gradient(circle,rgba(0,0,0,.24),transparent 64%)}
.hero::after{content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(104deg,transparent 34%,rgba(255,255,255,.16) 47%,transparent 58%)}
.hero-ic{position:absolute; right:15px; top:15px; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:#fff;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.26)}
.hero-k{font-size:10.5px; font-weight:800; letter-spacing:.15em; text-transform:uppercase;
  opacity:.84; margin-bottom:5px}
.hero-n{display:flex; align-items:baseline; gap:5px; line-height:1;
  font-family:"Nunito",sans-serif}
.hero-n b{font-size:44px; font-weight:800; letter-spacing:-.035em;
  font-variant-numeric:tabular-nums; text-shadow:0 2px 8px rgba(0,0,0,.16)}
.hero-n b small{font-size:.46em; font-weight:800; opacity:.72; margin-left:1px}
.hero-n i{font-style:normal; font-size:19px; font-weight:800; opacity:.72}
.hero-l{margin-top:6px; font-size:14px; font-weight:700; opacity:.93; text-wrap:balance}
.hero-b{height:9px; border-radius:6px; margin-top:13px; overflow:hidden;
  background:rgba(0,0,0,.19); box-shadow:0 1px 2px rgba(0,0,0,.14) inset}
.hero-b i{display:block; height:100%; border-radius:6px; background:#fff;
  box-shadow:0 0 12px rgba(255,255,255,.55);
  transition:width .55s var(--tap)}
.hero-f{margin-top:13px; padding-top:11px; font-size:12.5px; font-weight:700; opacity:.82;
  border-top:1px solid rgba(255,255,255,.24)}

.t-gold  {--h1:#FFCE2E; --h2:#F0A800; --h3:#D07E06; --hsh:rgba(214,140,0,.75)}
.t-flame {--h1:#FFA53A; --h2:#F27000; --h3:#D14A12; --hsh:rgba(214,90,10,.7)}
.t-green {--h1:#78DB2B; --h2:#4FBB03; --h3:#2F8A08; --hsh:rgba(64,150,6,.7)}
.t-blue  {--h1:#4CC6FF; --h2:#159FE6; --h3:#0B72BD; --hsh:rgba(15,130,200,.7)}
.t-violet{--h1:#D79AFF; --h2:#A961EE; --h3:#7A38C4; --hsh:rgba(140,70,215,.66)}

/* Small facts under a hero: numbers that qualify the big one without
   competing with it. */
.facts{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:8px; margin:0 0 4px}
.fct{background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px;
  border-radius:14px; padding:10px 8px; text-align:center}
.fct b{display:block; font-family:"Nunito",sans-serif; font-size:20px; font-weight:800;
  letter-spacing:-.03em; font-variant-numeric:tabular-nums; line-height:1.1}
.fct span{display:block; margin-top:3px; font-size:10.5px; font-weight:700; color:var(--ink3);
  letter-spacing:.04em}
.fct.on{background:var(--greenSoft); border-color:#BFE79A}
.fct.on b{color:var(--greenInk)}
.fct.warn{background:var(--flameSoft); border-color:#F5CE96}
.fct.warn b{color:#A85F0E}

/* Leaving a screen that is not in the bar. */
.backrow{display:inline-flex; align-items:center; gap:6px; margin:10px 0 0; padding:7px 13px 7px 9px;
  background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px;
  border-radius:999px; color:var(--ink2); font:inherit; font-size:13px; font-weight:800;
  cursor:pointer; -webkit-appearance:none}
.backrow svg{transform:rotate(180deg)}
.backrow:active{transform:translateY(1px); border-bottom-width:2px}

/* ============================================================== the vault
   Where the money came from, as bars rather than a list, because the answer
   he actually wants is "which of these is doing the work". */
.src{display:grid; gap:8px}
.sr{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px;
  border-radius:16px; padding:11px 13px; opacity:.55}
.sr.on{opacity:1}
.sr .si{display:flex; color:var(--ink3)}
.sr.on .si{color:var(--goldEdge)}
.sr .sb{min-width:0}
.sr .sb b{display:block; font-size:14.5px; font-weight:800; letter-spacing:-.01em}
.sr .sb > span{display:block; font-size:11.5px; font-weight:600; color:var(--ink3); line-height:1.35}
.sr .srb{display:block; height:5px; border-radius:4px; margin-top:6px; background:var(--sunk);
  overflow:hidden}
.sr .srb i{display:block; height:100%; border-radius:4px;
  background:linear-gradient(90deg,var(--gold),var(--goldEdge))}
.sr .sv{font-family:"JetBrains Mono",monospace; font-variant-numeric:tabular-nums;
  font-size:14px; font-weight:700; color:var(--ink3)}
.sr.on .sv{color:var(--goldInk)}

/* The door to the vault, on You. */
.potdoor{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px;
  width:100%; text-align:left; margin:12px 0 4px; padding:15px 16px; cursor:pointer;
  border-radius:20px; color:#5A3E00; font:inherit;
  background:linear-gradient(150deg,#FFE9A3,#FFD34D 58%,#F5B915);
  border:1.5px solid #E9B411; border-bottom-width:4px;
  box-shadow:0 10px 22px -14px rgba(200,140,0,.9)}
.potdoor:active{transform:translateY(1px); border-bottom-width:3px}
.potdoor .pd-a{font-family:"Nunito",sans-serif; font-size:27px; font-weight:800;
  letter-spacing:-.035em; font-variant-numeric:tabular-nums; color:#4A3200}
.potdoor .pd-b b{display:block; font-size:14.5px; font-weight:800}
.potdoor .pd-b span{display:block; font-size:11.5px; font-weight:700; opacity:.72}
.potdoor .pd-c{display:flex; opacity:.5}

/* ------------------------------------------------------- water, seven days
   The Water tab's own record. It used to borrow the condition ring for a
   sense of history, which meant borrowing four things that were not water. */
.wk7{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:7px; margin:2px 0 4px;
  align-items:end}
.w7{display:flex; flex-direction:column; align-items:center; gap:5px;
  background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px;
  border-radius:13px; padding:9px 4px 8px}
.w7 .w7b{display:flex; align-items:flex-end; justify-content:center;
  width:14px; height:44px; border-radius:5px; background:var(--sunk); overflow:hidden}
.w7 .w7b i{display:block; width:100%; border-radius:5px;
  background:linear-gradient(180deg,#6ED0FF,var(--blue)); transition:height .45s var(--tap)}
.w7 b{font-family:"Nunito",sans-serif; font-size:14px; font-weight:800; line-height:1;
  font-variant-numeric:tabular-nums; color:var(--ink2)}
.w7 .w7d{font-family:"JetBrains Mono",monospace; font-size:9.5px; letter-spacing:.06em;
  color:var(--ink3)}
.w7.on{background:var(--blueSoft); border-color:#A8DFFA}
.w7.on b{color:#0B72BD}
.w7.now{box-shadow:0 0 0 2px var(--blue) inset}
.hero-f2{margin-top:6px; font-size:12.5px; font-weight:700; opacity:.82}

/* ==================================================================== fold
   A heading, one line of what is inside, and a chevron. Open or shut, it
   stays how he left it. */
.fold{margin:14px 0 0}
.fold .fh{display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:13px 14px;
  background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px; border-radius:16px;
  font:inherit; color:var(--ink); cursor:pointer}
.fold .fh b{font-size:15.5px; font-weight:800; letter-spacing:-.01em; flex:1}
.fold .fh em{font-style:normal; font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink3)}
.fold .fh i{display:flex; color:var(--ink3); transform:rotate(90deg); transition:transform .2s var(--tap)}
.fold.open .fh{border-radius:16px 16px 0 0; border-bottom-width:1.5px}
.fold.open .fh i{transform:rotate(-90deg)}
.fold .fb{border:1.5px solid var(--edge); border-top:0; border-bottom-width:3px; border-radius:0 0 16px 16px;
  padding:12px 12px 14px; background:var(--card)}
.fold .fb .rulehead{margin-top:6px}
.fold .fb .rec{background:var(--card2)}
.btn.big{min-height:56px; font-size:16px; width:100%}
.how{margin:4px 0 8px 18px; padding:0; text-align:left}
.how li{margin:7px 0; font-size:14px; line-height:1.45}
.how li:last-child{color:var(--flameEdge); font-weight:700}

/* ================================================================= session
   The guided one. Full screen, one movement at a time, nothing else on it. */
#session{position:fixed; inset:0; z-index:130; display:none; background:var(--bg); overflow-y:auto;
  -webkit-overflow-scrolling:touch; overscroll-behavior:contain}
#session.on{display:block; animation:fadein .2s ease-out both}
.ss{max-width:560px; margin:0 auto; padding:max(14px,env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom))}
.sstop{display:flex; align-items:center; gap:12px; margin-bottom:6px}
.ssx{width:42px; height:42px; border-radius:50%; font:inherit; font-size:24px; line-height:1; cursor:pointer;
  background:var(--card); color:var(--ink2); border:1.5px solid var(--edge); border-bottom-width:3px}
.ssk{font-family:"JetBrains Mono",monospace; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink3); flex:1}
.ssp{font-family:"JetBrains Mono",monospace; font-size:10.5px; letter-spacing:.1em; color:var(--ink3)}
/* the same iron the Gym tab is made of: the session is that tab, full screen */
.sshero{position:relative; overflow:hidden; border-radius:24px; padding:20px 18px 18px; color:#fff; margin:8px 0 14px;
  background:linear-gradient(152deg,#2B3442,#161C27 58%,#0B0F17);
  box-shadow:0 14px 30px -16px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.16) inset}
.sshero::after{content:""; position:absolute; width:230px; height:230px; right:-70px; top:-100px;
  border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,rgba(255,140,40,.5),transparent 62%)}
.sshero > *{position:relative; z-index:1}
.sshero .ssk2{font-family:"JetBrains Mono",monospace; font-size:10.5px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:#FFB35C}
.sshero h2{font-family:"Nunito",sans-serif; font-size:30px; font-weight:900; letter-spacing:-.03em; line-height:1.05;
  margin:6px 0 0; text-transform:none; color:#fff}
.sshero p{margin:10px 0 0; font-size:14.5px; font-weight:700; opacity:.94; line-height:1.45}
.sshero .sstarget{background:rgba(255,255,255,.08); border-radius:14px; padding:10px 12px}
.ssacts{display:flex; gap:8px; margin-top:12px}
.ssacts .btn{flex:1; background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.35);
  padding:10px 8px; min-height:42px; font-size:13px}
.sssets{display:flex; gap:7px; margin:4px 0 12px; align-items:center}
.sspill{min-width:44px; height:44px; padding:0 12px; border-radius:14px; display:flex; align-items:center;
  justify-content:center; font-family:"Nunito",sans-serif; font-size:17px; font-weight:800;
  background:var(--card); color:var(--ink3); border:1.5px solid var(--edge); border-bottom-width:3px}
.sspill.on{background:var(--greenSoft); color:var(--greenInk); border-color:#BFE79A}
.sspill.now{border-color:var(--flame); color:var(--flameEdge); box-shadow:0 0 0 2px var(--flameSoft)}
.sspill.add{font:inherit; font-size:22px; cursor:pointer; color:var(--ink2)}
.sslab{display:block; font-family:"JetBrains Mono",monospace; font-size:9.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink3); margin:10px 0 4px}
/* The rest clock is the one live thing on the screen, so it looks alive: the
   fill drains left to right as the seconds go. */
.ssrest{position:relative; min-height:0; margin:6px 0 2px; text-align:center; font-weight:800;
  font-size:14px; color:var(--ink3); overflow:hidden}
.ssrest > i{display:none}
.ssrest > span{position:relative; z-index:1}
.ssrest.going{min-height:54px; display:flex; align-items:center; justify-content:center; border-radius:17px;
  background:var(--blueSoft); color:#0B72BD; border:2px solid var(--blue); font-size:17px}
.ssrest.going > i{display:block; position:absolute; left:0; top:0; bottom:0;
  width:calc(var(--rest, 1) * 100%); background:rgba(28,176,246,.28);
  transition:width 1s linear}
.ssrest.done{color:var(--greenInk); padding:6px 0}
#session .lf .lfr{grid-template-columns:auto 60px 1fr 60px}
#session .lfb{width:60px; height:58px}
#session .lfv{font-size:34px}
/* the paste, on the nudge sheet */
#modal .bundle{width:100%; height:110px; resize:none; margin:8px 0 4px; padding:10px 12px; border-radius:12px;
  font:600 11px/1.4 "JetBrains Mono",monospace; color:var(--ink2); background:var(--sunk);
  border:1.5px solid var(--edge); word-break:break-all}

/* ==========================================================================
   v34 - each tab gets one object that belongs to its subject, and the rest
   of the screen gets quieter. Iron for the gym, a plate for food, a bottle
   for water, a calendar leaf for work.
   ========================================================================== */
.hero-cta{display:block; width:100%; margin-top:16px; min-height:54px; border-radius:16px;
  font:inherit; font-size:15.5px; font-weight:900; letter-spacing:.01em; cursor:pointer;
  color:#1B1200; background:linear-gradient(180deg,#FFE38A,#F2B735 60%,#D89412);
  border:0; border-bottom:4px solid #A87A0E; box-shadow:0 10px 24px -12px rgba(0,0,0,.6)}
.hero-cta:active{transform:translateY(2px); border-bottom-width:2px}

/* ------------------------------------------------------------------- iron */
.t-iron{--h1:#2B3442; --h2:#161C27; --h3:#0B0F17; --hsh:rgba(0,0,0,.7)}
.t-iron .hero-gl{background:radial-gradient(circle,rgba(255,140,40,.55),transparent 62%); right:-60px; top:-90px}
.t-iron .hero-gl2{background:radial-gradient(circle,rgba(255,110,30,.28),transparent 60%)}
.t-iron .hero-n b{color:#FFB35C; text-shadow:0 0 22px rgba(255,150,60,.55)}
.t-iron .hero-b{background:rgba(255,255,255,.1)}
.t-iron .hero-b i{background:linear-gradient(90deg,#FF9A3C,#FFD35C); box-shadow:0 0 14px rgba(255,170,60,.7)}
.t-iron .hero-ic{background:rgba(255,160,60,.16); border-color:rgba(255,180,80,.4); color:#FFB35C}
/* the programme as numbered plates */
.lifts{counter-reset:move}
.liftrow{counter-increment:move; display:grid; grid-template-columns:1fr auto auto; gap:0; margin:9px 0;
  align-items:stretch; background:var(--card); border:1.5px solid var(--edge); border-bottom-width:3px;
  border-radius:20px; overflow:hidden}
.lift{display:flex; align-items:center; gap:13px; padding:11px 18px 11px 12px; min-height:78px; width:100%;
  text-align:left; font:inherit; color:var(--ink); cursor:pointer; border:0; border-radius:0;
  background:none}
.liftrow:has(.lift.on){border-color:#BEE8A0; background:var(--greenSoft)}
.lift::before{content:counter(move); flex:none; width:26px; height:26px; border-radius:50%; display:flex;
  align-items:center; justify-content:center; font:900 12px/1 "JetBrains Mono",monospace;
  color:var(--ink3); background:var(--sunk)}
.lift.on::before{background:var(--green); color:#fff}
.lift .lb2{flex:1; min-width:0}
.lift .lb2 b{display:block; font-size:15.5px; font-weight:800; letter-spacing:-.01em}
.lift .lb2 span{display:block; font-size:11.5px; color:var(--ink3); margin-top:2px; line-height:1.3}
.lift .lv{flex:none; width:60px; height:60px; border-radius:50%; display:flex; flex-direction:column;
  align-items:center; justify-content:center; line-height:1; text-align:center;
  font-family:"Nunito",sans-serif; font-size:14.5px; font-weight:900; color:#F8FAFC;
  background:radial-gradient(circle at 50% 40%,#3B4657,#161C27 70%);
  box-shadow:0 0 0 3px #0B0F17, 0 0 0 4.5px #4B5563, 0 4px 10px rgba(0,0,0,.35)}
.lift .lv em{font-style:normal; font-family:"JetBrains Mono",monospace; font-size:7.5px; letter-spacing:.06em;
  text-transform:uppercase; color:rgba(255,255,255,.55); margin-top:3px; max-width:52px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lift.on .lv{background:radial-gradient(circle at 50% 40%,#5CC26B,#2E7D3C 70%); box-shadow:0 0 0 3px #1F4D28, 0 0 0 4.5px #7ED88B}
.lift .lv .new{font-size:11px; color:#FFB35C}
.swap{width:38px; min-height:78px; border:0; border-left:1.5px solid var(--edge); border-radius:0;
  font:inherit; font-size:16px; cursor:pointer; color:var(--ink3); background:none}
.swap:active{background:var(--sunk)}

/* ------------------------------------------------------------------ plate */
.plate{position:relative; display:grid; grid-template-columns:1fr; justify-items:center; margin:12px 0 6px}
.plate svg{width:184px; height:184px; display:block}
.plate .rim{fill:none; stroke:var(--sunk); stroke-width:13}
.plate .rimx{fill:none; stroke:transparent}
.plate .fill{fill:none; stroke:var(--green); stroke-width:13; stroke-linecap:round;
  transition:stroke-dasharray .7s var(--tap)}
.plate.done .fill{stroke:var(--green)}
.plate .pc{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  pointer-events:none}
.plate .pc b{font-family:"Nunito",sans-serif; font-size:40px; font-weight:900; letter-spacing:-.04em; line-height:1;
  color:var(--ink); font-variant-numeric:tabular-nums}
.plate .pc b small{font-size:.42em; color:var(--ink3); margin-left:2px; font-weight:800}
.plate .pc span{font-size:12.5px; font-weight:800; color:var(--ink2); margin-top:4px}
.pnote{margin:2px 0 12px; text-align:center; font-size:13.5px; font-weight:800; color:var(--greenInk)}
.anch{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:8px 0 4px}
.an{aspect-ratio:1; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding:8px 6px; max-width:118px; margin:0 auto; width:100%; font:inherit; color:var(--ink); cursor:pointer; text-align:center;
  background:var(--card); border:2px solid var(--edge); box-shadow:0 3px 0 var(--edge), 0 0 0 6px var(--card2) inset}
.an .ak{font-family:"JetBrains Mono",monospace; font-size:8.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink3)}
.an .av{font-size:12.5px; font-weight:800; line-height:1.15; letter-spacing:-.01em}
.an .ad{font-size:15px; font-weight:900; color:var(--ink3); line-height:1}
.an.on .ad{font-size:9.5px; text-transform:uppercase; letter-spacing:.08em}
.an.on{background:var(--greenSoft); border-color:#BFE79A; color:var(--greenInk);
  box-shadow:0 3px 0 #BFE79A, 0 0 0 6px #EEF9E2 inset}
.an.on .ad{color:var(--greenInk)}

/* ----------------------------------------------------------------- bottle */
.bottle{display:grid; grid-template-columns:132px 1fr; gap:16px; align-items:center; margin:8px 0 6px}
.bottle button.bt{background:none; border:0; padding:0; cursor:pointer; display:block; -webkit-tap-highlight-color:transparent}
.bottle svg{width:132px; height:236px; display:block; filter:drop-shadow(0 10px 18px rgba(15,130,200,.22))}
.bottle .glass-body{fill:#F3F9FD; stroke:#BFDDF0; stroke-width:3}
.bottle .cap{fill:#1899D6}
.bottle .liquid{fill:url(#waterGrad); transition:transform .5s var(--tap)}
.bottle .wave{fill:#7ED4FF; opacity:.9}
.bottle .ticks line{stroke:#CFE6F4; stroke-width:1.5}
.bottle .bn{font-family:"Nunito",sans-serif; font-size:52px; font-weight:900; letter-spacing:-.04em; line-height:1;
  color:var(--ink); font-variant-numeric:tabular-nums}
.bottle .bn small{font-size:.4em; color:var(--ink3); margin-left:2px}
.bottle .bl{font-size:14px; font-weight:800; color:var(--ink2); margin-top:6px; line-height:1.35}
.bottle .bh{font-size:12px; font-weight:700; color:#0B72BD; margin-top:10px}
.bottle .bacts{display:flex; gap:8px; margin-top:12px}
.bottle .bacts .btn{padding:9px 13px; min-height:40px; font-size:12.5px; flex:none}
.glass{display:flex; gap:7px; margin:12px 0 6px}
.gl{flex:1; height:34px; border:0; background:none; padding:0; cursor:pointer;
  display:flex; align-items:center; position:relative; overflow:visible}
.gl i{display:block; width:100%; height:8px; border-radius:5px; background:var(--edge2);
  transition:background .18s}
.gl.on i{background:linear-gradient(90deg,#7ED4FF,#1CB0F6)}
.gl:active i{transform:scaleY(1.5)}

/* ------------------------------------------------------------------ leaf */
.leafrow{display:grid; grid-template-columns:118px 1fr; gap:14px; align-items:stretch; margin:10px 0 8px}
.leaf{border-radius:18px; overflow:hidden; background:var(--card); border:1.5px solid var(--edge);
  border-bottom-width:3px; text-align:center; display:flex; flex-direction:column}
.leaf .lm{background:linear-gradient(180deg,#CE82FF,#A855E8); color:#fff; font-family:"JetBrains Mono",monospace;
  font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; padding:8px 0 7px}
.leaf .ld{font-family:"Nunito",sans-serif; font-size:56px; font-weight:900; letter-spacing:-.05em; line-height:1;
  padding:12px 0 4px; color:var(--ink)}
.leaf .lw{font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ink3); padding-bottom:12px}
.until{display:flex; flex-direction:column; justify-content:center; padding:12px 14px; border-radius:18px;
  color:#fff; background:linear-gradient(152deg,#D79AFF,#A961EE 58%,#7A38C4);
  box-shadow:0 14px 30px -16px rgba(140,70,215,.66)}
.until b{font-family:"Nunito",sans-serif; font-size:40px; font-weight:900; letter-spacing:-.04em; line-height:1}
.until b i{font-style:normal; font-size:.42em; opacity:.8; margin-left:4px; font-weight:800}
.until .ut{font-size:15px; font-weight:800; margin-top:6px; line-height:1.2}
.until .un{font-size:12px; font-weight:700; opacity:.85; margin-top:4px; line-height:1.35}
.tl{position:relative; margin:6px 0 4px 10px; padding-left:22px}
.tl::before{content:""; position:absolute; left:6px; top:8px; bottom:8px; width:2px; background:var(--edge2); border-radius:2px}
.tli{position:relative; padding:7px 0}
.tli::before{content:""; position:absolute; left:-21px; top:13px; width:12px; height:12px; border-radius:50%;
  background:var(--card); border:2.5px solid var(--violetEdge)}
.tli b{display:block; font-size:14.5px; font-weight:800}
.tli span{display:block; font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink3); margin-top:2px}

/* --- v34: eight weeks of sessions, as iron. Never blue: this is not water. */
.gwk{display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:6px; align-items:end;
  height:76px; margin:4px 0 10px; padding:0 2px}
.gwb{display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  gap:5px; height:100%}
.gwb i{display:block; width:100%; max-width:26px; border-radius:6px 6px 3px 3px;
  background:var(--line); min-height:3px}
.gwb.on i{background:linear-gradient(180deg,#FFA13C,#F2701E)}
.gwb b{font-family:"JetBrains Mono",monospace; font-size:9.5px; letter-spacing:.04em;
  color:var(--ink3); line-height:1}
.gwb.now b{color:#D8600E}
.gwb.now i{box-shadow:0 0 0 2px rgba(242,112,30,.35)}

/* the bottle's own hint, where the eye already is */
.bottle .bh2{font-size:11.5px; font-weight:700; color:var(--ink3); margin:6px 0 2px}

/* the week's three, flat: the fold is already the box */
.qq{border:0; background:none; padding:6px 2px 8px}
.qq + .qq{border-top:1.5px solid var(--edge)}
.qq.on{background:none}

/* v34b: a task inside a fold is a line, not a card inside a card */
.wk{gap:0}
.wi{border:0; background:none; border-radius:12px; padding:11px 4px}
.wi + .wi{border-top:1.5px solid var(--edge)}
.wi.on{background:none}
.wi.on .wbox{background:var(--jade); border-color:var(--jade)}
/* the same, for the food list */
.ordl{gap:0}
.ord{border:0; background:none; padding:11px 4px; border-radius:12px}
.ord + .ord{border-top:1.5px solid var(--edge)}

/* a basic waiting to be logged wears its plus in the gold that means "your move" */
button.vc:not(.on) .vv{color:var(--goldEdge, #C98A08); font-family:"Nunito",sans-serif;
  font-size:19px; font-weight:900; line-height:.9}


/* ------------------------------------------------------------ the finisher
   A row after the lifts that is not a move: no number, a dashed edge, and it
   never counts towards the session or Trained. */
.liftrow.finrow{counter-increment:none; border-style:dashed}
.liftrow.finrow:has(.lift.on){border-style:solid}
.lift.fin::before{content:"+"; font-size:17px; font-weight:800}
.bellywhy{margin:8px 0 2px}
/* specific enough to beat .btns.tight button.btn, so the tap target is 44px */
.btns.tight.bellywhy button.btn{width:100%; text-transform:none; font-weight:800; font-size:13.5px; min-height:44px}

/* ==================================================================== v39
   The meal the clock is pointing at, on the Food tab. Same shape as a logged
   anchor, in the colour of a thing to do rather than a thing done. */
.an.next{border-color:#A6DFF7; background:var(--blueSoft)}
.an.next .ak{color:var(--navOn); opacity:.9}
.an.next .ad{color:var(--navOn); font-weight:800}
/* The gym hero says a word on a rest day, where it says a number on a
   lifting one; 44px is a count, a word needs to sit down a little. */
.hero-n b.word{font-size:34px; letter-spacing:-.02em}

/* ==========================================================================
   The drawers. A closed fold used to be a card, so six of them read as six
   more things on the screen. Inside a drawer list they are hairline rows -
   one quiet block that says "there is more here" without shouting any of it.
   ========================================================================== */
.drawers{margin:18px 0 4px; border-radius:18px; background:var(--card);
  border:1.5px solid var(--edge); border-bottom-width:3px; overflow:hidden}
.drawers .fold{margin:0}
.drawers .fold + .fold{border-top:1.5px solid var(--edge)}
.drawers .fold .fh{border:0; border-radius:0; background:none; padding:15px 15px}
.drawers .fold .fh b{font-size:15px; font-weight:800; color:var(--ink2); text-wrap:balance}
.drawers .fold .fh em,.drawers .fold .fh i{flex:none}
.drawers .fold.open .fh{border-radius:0; border-bottom:1.5px solid var(--edge)}
.drawers .fold.open .fh b{color:var(--ink)}
.drawers .fold .fb{border:0; border-radius:0; background:var(--card2); padding:13px 15px 16px}
.drawers .fold.open + .fold{border-top:1.5px solid var(--edge)}
/* a plain action can sit in the list too, reading the same as a door */
.drawers .drow{display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:15px; background:none; border:0; font:inherit; color:var(--ink2); cursor:pointer;
  font-family:"Nunito",sans-serif; font-size:15px; font-weight:800}
.drawers .fold + .drow,.drawers .drow + .fold,.drawers .drow + .drow{border-top:1.5px solid var(--edge)}
/* a door that opens elsewhere points across, not down like a fold */
.drawers .drow i{margin-left:auto; display:flex; color:var(--ink3)}
.drawers .drow:active{background:var(--sunk)}

/* v47: the five basics as marks, not cards. Same language as the week dots
   above them - no border, no fill, just the number and its word. */
.vit.flat{display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin:12px 0 14px;
  background:none}
.vit.flat .vc{border:0; background:none; padding:4px 2px; min-height:0; gap:2px}
.vit.flat .vc .vv{font-size:14px; color:var(--ink2)}
.vit.flat .vc .vl{font-size:9.5px; color:var(--ink3)}
.vit.flat .vc.on .vv{color:var(--greenInk)}
.vit.flat .vc.on .vl{color:var(--greenInk); opacity:.75}
.vit.flat button.vc:not(.on) .vv{font-size:17px}
.vit.flat .vc:active{transform:scale(.94)}

/* v47: the away actions as a line of links under the hero, not menu rows */
.awayline{display:flex; flex-wrap:wrap; gap:14px; margin:-6px 0 14px; padding:0 2px}
.awayline button{font:inherit; font-family:"Nunito",sans-serif; font-size:13.5px; font-weight:800;
  color:var(--blue); background:none; border:0; padding:0; cursor:pointer;
  border-bottom:1.5px solid color-mix(in srgb, var(--blue) 35%, transparent)}
.awayline button:active{opacity:.6}
/* the move that is up next is the only one wearing an accent */
.liftrow.next{border-color:var(--edge2)}
.liftrow.next .lift .lb2 b{color:var(--ink)}

/* v47: the moves as one list with rules between them, not six cards. Same
   move to flatten that the work items got - a border per row is six borders. */
.lifts{border-radius:20px; background:var(--card); border:1.5px solid var(--edge);
  border-bottom-width:3px; overflow:hidden}
.lifts .liftrow{margin:0; border:0; border-radius:0; background:none}
.lifts .liftrow + .liftrow{border-top:1.5px solid var(--edge)}
.lifts .liftrow:has(.lift.on){background:color-mix(in srgb, var(--green) 8%, transparent)}
.lifts .lift{min-height:70px}
.lifts .lift .lv{width:52px; height:52px; font-size:13px}
.lifts .lift .lv em{font-size:7px; max-width:46px}
.lifts .swap{min-height:70px; width:36px}

/* what is already done, counted rather than listed */
.donerow{display:block; width:100%; text-align:left; padding:10px 4px; margin:2px 0 4px;
  background:none; border:0; font:inherit; font-family:"JetBrains Mono",monospace;
  font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink3);
  cursor:pointer}
.donerow:active{opacity:.6}
.wk.done .wi{opacity:.55}
