/* ============================================================================ openGym — design system ---------------------------------------------------------------------------- Rebuilt around four rules, each aimed at a specific "generated" tell in the previous sheet: 1. ONE TYPE SCALE, MOSTLY REGULAR WEIGHT. The old sheet set font-weight 700/800 on nearly every element, which flattens hierarchy — when everything shouts, position is the only cue left. Here weight carries meaning: 600 for a title, 400 for its content, and size does the rest. 2. A NEUTRAL SURFACE RAMP. Cards are near-neutral greys a few points apart, not saturated blue-greys. Colour is spent only on the accent and on status. 3. HAIRLINES, NOT BORDERS. Separators are sub-pixel and inset past the icon rail, so a list reads as one object instead of a stack of outlined boxes. 4. MOTION THAT ACKNOWLEDGES, NOT ANIMATES. Presses scale ~2%, transitions run 140–220ms on an ease-out curve. Nothing bounces or slides for decoration. ========================================================================== */ /* ---------------------------------------------------------------- tokens -- */ :root { /* surfaces — dark is the default */ --bg: #000000; --bg-el: #0e0e10; /* elevated backdrop (sheets, bars) */ --surface: #1c1c1e; /* card / grouped-list fill */ --surface-2: #2c2c2e; /* pressed + nested fill */ --surface-3: #3a3a3c; /* controls (segmented track, switch off) */ /* text */ --label: #ffffff; --label-2: rgba(235,235,245,.60); --label-3: rgba(235,235,245,.32); --label-4: rgba(235,235,245,.18); /* lines */ --sep: rgba(84,84,88,.60); --sep-op: rgba(84,84,88,.34); /* for edges sitting over blur */ --hair: .5px; /* system palette (iOS dark values) */ --blue:#0a84ff; --green:#30d158; --red:#ff453a; --orange:#ff9f0a; --yellow:#ffd60a; --teal:#40c8e0; --indigo:#5e5ce6; --pink:#ff375f; --purple:#bf5af2; --mint:#63e6e2; --brown:#ac8e68; --grey:#8e8e93; /* accent (per-account, synced) */ --acc: var(--green); --acc-2:#248a3d; --on-acc:#000000; --acc-soft: color-mix(in srgb, var(--acc) 16%, transparent); --acc-line: color-mix(in srgb, var(--acc) 38%, transparent); /* geometry */ --r-sm:8px; --r:12px; --r-lg:16px; --r-xl:22px; --r-card:14px; --pad:16px; --icon-stroke:1.7; /* motion */ --ease:cubic-bezier(.32,.72,0,1); --fast:140ms; --med:220ms; --sab:env(safe-area-inset-bottom,0px); --sat:env(safe-area-inset-top,0px); } :root[data-theme="light"] { --bg: #f2f2f7; --bg-el: #f7f7fa; --surface: #ffffff; --surface-2: #ececef; --surface-3: #e3e3e8; --label: #000000; --label-2: rgba(60,60,67,.60); --label-3: rgba(60,60,67,.30); --label-4: rgba(60,60,67,.16); --sep: rgba(60,60,67,.29); --sep-op: rgba(60,60,67,.20); --blue:#007aff; --green:#34c759; --red:#ff3b30; --orange:#ff9500; --yellow:#ffcc00; --teal:#30b0c7; --indigo:#5856d6; --pink:#ff2d55; --purple:#af52de; --mint:#00c7be; --brown:#a2845e; --grey:#8e8e93; --acc-2:#248a3d; --on-acc:#ffffff; } /* accents — Apple's system colours, so a recolour never looks off-system */ :root[data-accent="lime"] { --acc:var(--green); --acc-2:#248a3d; --on-acc:#000 } :root[data-accent="sky"] { --acc:var(--blue); --acc-2:#0060df; --on-acc:#fff } :root[data-accent="orange"]{ --acc:var(--orange); --acc-2:#c76b00; --on-acc:#000 } :root[data-accent="violet"]{ --acc:var(--purple); --acc-2:#8944ab; --on-acc:#fff } :root[data-accent="pink"] { --acc:var(--pink); --acc-2:#d70036; --on-acc:#fff } :root[data-accent="red"] { --acc:var(--red); --acc-2:#d70015; --on-acc:#fff } :root[data-accent="teal"] { --acc:var(--teal); --acc-2:#0071a4; --on-acc:#000 } :root[data-accent="gold"] { --acc:var(--yellow); --acc-2:#b25000; --on-acc:#000 } /* Label colour on a filled accent button is picked per accent by measured contrast, not by taste. Button text is 17px/600, so the AA bar is 3:1 (large text). White on the light-theme green is 2.22:1 and on teal 2.57:1 — both fail, and green is the DEFAULT accent, so every primary button in light mode was failing. Black scores 9.46 / 8.16 there. Blue, purple, pink and red keep white (3.5–4.1:1), which both passes and matches the platform convention. */ :root[data-theme="light"][data-accent="lime"], :root[data-theme="light"][data-accent="teal"] { --on-acc:#000 } :root[data-theme="light"][data-accent="sky"], :root[data-theme="light"][data-accent="violet"], :root[data-theme="light"][data-accent="pink"], :root[data-theme="light"][data-accent="red"] { --on-acc:#fff } /* ---------------------------------------------------------------- reset -- */ *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent} html{ font-size:16px;background:var(--bg);overscroll-behavior:none;overflow-x:clip; -webkit-text-size-adjust:100%; } body{ background:var(--bg);color:var(--label); font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','SF Pro Display','Segoe UI',Roboto,system-ui,sans-serif; font-size:17px;line-height:1.29;letter-spacing:-.01em; min-height:100vh;min-height:100dvh;overscroll-behavior-y:none;overflow-x:clip; -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale; touch-action:manipulation; font-variant-numeric:tabular-nums; } button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;letter-spacing:inherit} input,select,textarea{font:inherit;color:var(--label);letter-spacing:inherit} img{max-width:100%} a{color:var(--acc);text-decoration:none} :focus{outline:none} :focus-visible{outline:2.5px solid var(--acc);outline-offset:2px;border-radius:6px} button,.chip,.tile,.item,.wday,.cal-d,.swatch,.hm-c,.lrow,.seg button,.stp button,.sld {-webkit-user-select:none;user-select:none} /* icons inherit colour and optical size from their context */ .icn{ width:1em;height:1em;flex:none;display:block; fill:none;stroke:currentColor;stroke-width:var(--icon-stroke); stroke-linecap:round;stroke-linejoin:round; } @media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}} /* ------------------------------------------------------------ type scale -- */ .t-large {font-size:34px;line-height:1.06;font-weight:700;letter-spacing:-.028em} .t-title {font-size:28px;line-height:1.12;font-weight:700;letter-spacing:-.024em} .t-title2 {font-size:22px;line-height:1.18;font-weight:700;letter-spacing:-.021em} .t-head {font-size:17px;line-height:1.29;font-weight:600;letter-spacing:-.012em} .t-body {font-size:17px;line-height:1.29;font-weight:400;letter-spacing:-.012em} .t-callout{font-size:16px;line-height:1.31;font-weight:400;letter-spacing:-.009em} .t-sub {font-size:15px;line-height:1.33;font-weight:400;letter-spacing:-.006em} .t-foot {font-size:13px;line-height:1.38;font-weight:400;letter-spacing:-.001em} .t-cap {font-size:12px;line-height:1.33;font-weight:400;letter-spacing:0} .muted{color:var(--label-2)} .dim{color:var(--label-3)} .small{font-size:13px;line-height:1.38} .accent{color:var(--acc)} .capitalize{text-transform:capitalize} /* exercise names and body-part/equipment terms arrive lowercase from the dataset, so tags and chips capitalise by default. Anything that is a unit or a sentence opts back out — blanket-capitalising turned "60 kg" into "60 Kg" and a whole hint into Title Case. The compound selectors are needed: .tag/.chip come later in this file and would otherwise win on source order. */ .nocap,.tag.nocap,.chip.nocap{text-transform:none} /* ---------------------------------------------------------------- layout -- */ #app{ padding:calc(var(--sat) + 8px) var(--pad) calc(88px + var(--sab)); max-width:560px;margin:0 auto; } /* Keep the last workout controls clear of the mobile overlays without adding a second screenful of blank scroll space. The stacked rest timer needs the larger reserve. */ body.resting #app{padding-bottom:calc(206px + var(--sab))} .workout-end-spacer{height:0} @keyframes viewfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}} #app.vfade{animation:viewfade var(--med) var(--ease)} /* sync banner: one line for a signed-in user whose changes are not on the server yet */ .sync-banner{ display:flex;align-items:center;gap:9px;width:100%;text-align:left; margin:0 0 12px;padding:9px 12px;border-radius:var(--r); background:color-mix(in srgb,var(--yellow) 16%,var(--surface));color:var(--label);font-size:13px;line-height:1.35; } .sync-banner.off{background:color-mix(in srgb,var(--label-3) 18%,var(--surface))} .sync-banner .icn,.sync-banner svg{flex:none;font-size:16px;color:var(--label-2)} /* large title, the way a nav bar does it */ .hdr{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:8px 0 18px} .hdr h1{font-size:34px;line-height:1.06;font-weight:700;letter-spacing:-.028em} .hdr .sub{color:var(--label-2);font-size:15px;letter-spacing:-.006em;margin-top:4px} .iconbtn{ width:36px;height:36px;border-radius:50%;flex:none; background:var(--surface);color:var(--label); display:flex;align-items:center;justify-content:center;font-size:18px; transition:background var(--fast),transform var(--fast); } .iconbtn:active{background:var(--surface-2);transform:scale(.92)} /* invisible hit-area extension: these look right at their size but fall short of a finger-sized target, so the pseudo element widens what the tap lands on without changing the painted box. Segmented buttons sit flush against each other, so they only grow vertically or the neighbour would steal the edge of the tap. */ .iconbtn,.chip,.seg button,.helpbtn{position:relative} .iconbtn::before,.chip::before,.seg button::before,.helpbtn::before{content:'';position:absolute;inset:-6px} .seg button::before{inset:-6px 0} .iconbtn.on-ss{background:var(--acc-soft);color:var(--acc)} .iconbtn:disabled{opacity:.32} h4.sec{ font-size:13px;font-weight:400;letter-spacing:-.004em;color:var(--label-2); text-transform:none;margin:22px 0 8px;padding:0 4px; } .card h2{ font-size:13px;font-weight:400;letter-spacing:-.004em;color:var(--label-2); text-transform:none;margin:0 0 12px; } .divider{height:var(--hair);background:var(--sep);margin:14px 0;border:0} .grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px} .row{display:flex;align-items:center;gap:12px} .row.between{justify-content:space-between} /* ----------------------------------------------------------------- card -- */ .card{ background:var(--surface);border-radius:var(--r-card); padding:16px;margin-bottom:12px; } .card .big{font-size:30px;font-weight:600;letter-spacing:-.026em;line-height:1.1} /* ------------------------------------------------------ inset group list -- */ .sect{margin-bottom:22px} .sect-t{ font-size:13px;font-weight:400;color:var(--label-2); letter-spacing:-.004em;padding:0 4px 7px;display:block; } .sect-b{background:var(--surface);border-radius:var(--r-card);overflow:hidden} .sect-f{font-size:13px;color:var(--label-2);padding:7px 4px 0;line-height:1.38} .lrow{ display:flex;align-items:center;gap:12px;width:100%;text-align:left; padding:11px 14px;min-height:46px;position:relative;color:var(--label); background:none; } /* hairline starts after the icon rail so the list reads as one object */ .lrow+.lrow::before{ content:'';position:absolute;left:14px;right:0;top:0;height:var(--hair);background:var(--sep); } .lrow:has(.lrow-i)+.lrow:has(.lrow-i)::before{left:55px} .lrow.tap:active{background:var(--surface-2)} .lrow-i{ width:29px;height:29px;border-radius:7px;flex:none;font-size:18px; display:flex;align-items:center;justify-content:center; background:var(--tint,var(--acc));color:#fff; } .lrow-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px} .lrow-t{font-size:17px;letter-spacing:-.012em;line-height:1.25} .lrow-s{font-size:13px;color:var(--label-2);line-height:1.3} /* flex:none would let a long value ("Follow the routine (Linear progression)") run straight through the title next to it, since the title's column is already free to shrink to nothing. Letting the value shrink and ellipsise instead keeps the two out of each other's way. The cap is max-width, not flex-basis: .lrow-m is flex:1, so its basis is 0 and it absorbs none of the shrink — a long value would otherwise take the whole row and squeeze the title to 21px. A basis of 45% fixes that but reserves the space even for "3", costing the title 141px on the rows that need it most. A cap does neither. */ .lrow-v{color:var(--label-2);font-size:17px;letter-spacing:-.012em;flex:0 1 auto;max-width:55%;min-width:0; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right} .lrow-c{color:var(--label);font-size:15px;flex:none;--icon-stroke:2.4} .lrow-k{color:var(--acc);font-size:17px;flex:none;--icon-stroke:2.4} .lrow.danger,.lrow.danger .lrow-t{color:var(--red)} /* The Stats exercise name gets its own line so long names cannot run into the title. Two columns only — label/value on the left, chevron on the right — so this is for rows WITHOUT an icon. `.lrow-i` is not placed here; on a row that has one it would auto-place into the grid and push the layout around. Give it a leading column before using this anywhere else. */ .lrow.lrow-stack-value{ display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto; } .lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1} .lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left} .lrow.lrow-stack-value .lrow-c{grid-column:2;grid-row:1 / span 2;align-self:center} /* an (i) before a row's control: painted small and dim so the control stays the loud thing, but with a finger-sized target like everything else — the padding is the hit area and the vertical negative margin keeps it from making the row taller. The horizontal ones pull the hit area back under the row's own 12px gap instead of adding to it. */ .helpbtn{ color:var(--label-3);font-size:16px;background:none;line-height:0;flex:none; margin:-11px -2px -11px -4px;padding:11px 4px; } .helpbtn:active{color:var(--label)} /* -------------------------------------------------------------- buttons -- */ .btn{ display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%; padding:14px 18px;border-radius:var(--r);font-size:17px;font-weight:600; letter-spacing:-.012em;background:var(--surface-2);color:var(--label); transition:transform var(--fast) var(--ease),background var(--fast),opacity var(--fast); } .btn .icn{font-size:19px} .btn:active{transform:scale(.975)} .btn.primary{background:var(--acc);color:var(--on-acc)} .btn.primary:active{background:var(--acc-2)} .btn.tinted{background:var(--acc-soft);color:var(--acc)} .btn.danger{background:color-mix(in srgb,var(--red) 15%,transparent);color:var(--red)} .btn.ghost,.btn.plain{background:none;color:var(--acc);font-weight:400} .btn.ghost:active,.btn.plain:active{background:var(--surface-2)} .btn.sm{padding:8px 14px;width:auto;font-size:15px;border-radius:var(--r-sm);gap:5px} .btn.sm .icn{font-size:16px} .btn.xs{padding:5px 10px;width:auto;font-size:13px;border-radius:7px;gap:4px} .btn:disabled{opacity:.32;pointer-events:none} /* ----------------------------------------------------------- tab bar ----- */ /* Nearly opaque, and deliberately so. At the old 72% the page read straight through the bar and the labels had to compete with whatever was scrolling behind them — nobody needs to read the content under a navigation bar. 94% keeps a hint of movement behind the glass without letting text through. The blur is also down from 24px to 10px: this is a fixed element, so the WebView recomposites the blurred region on every scroll frame, and on Android that is the single most expensive thing on the screen. See @supports below for the no-blur case. */ #tabbar{ position:fixed;left:0;right:0;bottom:0;z-index:50; display:flex;justify-content:space-around;align-items:flex-end; padding:7px 6px calc(6px + var(--sab)); background:color-mix(in srgb,var(--bg-el) 94%,transparent); -webkit-backdrop-filter:saturate(180%) blur(10px);backdrop-filter:saturate(180%) blur(10px); border-top:var(--hair) solid var(--sep-op); } :root[data-theme="light"] #tabbar{background:rgba(249,249,251,.94)} #tabbar button{ flex:1;display:flex;flex-direction:column;align-items:center;gap:3px; color:var(--label-3);font-size:10px;font-weight:500;letter-spacing:.005em;padding-top:3px; transition:color var(--fast); } /* The inactive tint is semi-transparent, so wherever two strokes cross inside an icon (the calendar's hangers over its frame, the divider's caps on its sides) the alpha doubled up and the icon read as a stack of loose layers. Carrying the fade on the instead of in the stroke colour flattens the icon first and fades it as one shape — and it does that for every icon, not just this one. */ #tabbar button .icn{font-size:25px;--icon-stroke:1.65;color:var(--label)} #tabbar button.on{color:var(--acc)} #tabbar button.on .icn{--icon-stroke:2;color:inherit;opacity:1} #tabbar button.start{margin-top:-24px} #tabbar button.start .cir{ width:52px;height:52px;border-radius:50%;background:var(--acc);color:var(--on-acc); display:flex;align-items:center;justify-content:center;position:relative; box-shadow:0 6px 18px -4px color-mix(in srgb,var(--acc) 55%,transparent); transition:transform var(--fast) var(--ease); } #tabbar button.start:active .cir{transform:scale(.93)} #tabbar button.start .cir .icn{font-size:26px;--icon-stroke:2;color:inherit;opacity:1} #tabbar button.start span{color:var(--acc);font-weight:600} /* `.cir` is itself a , so the label rules above and below reach it too and outrank the `.cir` block — which is how the running state ended up painting an orange play glyph onto an orange disc. Both states restate their own colour. The disc is orange in either theme, so its glyph is black, not `--on-acc`. */ #tabbar button.start .cir{color:var(--on-acc)} #tabbar button.start.rec .cir{background:var(--orange);color:#000;box-shadow:0 6px 18px -4px color-mix(in srgb,var(--orange) 55%,transparent)} #tabbar button.start.rec span{color:var(--orange)} #tabbar button.start.rec .cir::after{ content:'';position:absolute;inset:0;border-radius:50%; border:2px solid var(--orange);animation:ping 1.9s var(--ease) infinite; } @keyframes ping{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.45);opacity:0}} /* NOTE on every backdrop-filter pair in this file: the -webkit- line comes first and the standard property last, which is the order a prefixed/standard pair wants — whichever is written last wins in the cascade, and that should be the standard name. Where backdrop-filter is genuinely unsupported there is no glass either — only the alpha, and the page shows through unblurred, which is the worst of both. Older Android WebViews never had it, and "reduce transparency" accessibility settings drop it. Those surfaces go fully opaque instead. Keep this in sync with the rules above. */ @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ #tabbar{background:var(--bg-el)} :root[data-theme="light"] #tabbar{background:#f9f9fb} #timer{background:var(--surface)} #toast{background:var(--surface-2)} } /* ------------------------------------------------------------ week strip -- */ .week{display:flex;justify-content:space-between;gap:4px} .wday{ flex:1;text-align:center;padding:8px 2px 9px;border-radius:10px; background:none;border:none;transition:background var(--fast); } .wday .lbl{font-size:11px;color:var(--label-3);font-weight:500;text-transform:uppercase;letter-spacing:.03em} .wday .num{font-size:17px;font-weight:400;margin:4px 0;letter-spacing:-.012em} .wday .dot{width:5px;height:5px;border-radius:50%;background:transparent;margin:0 auto} .wday .dot.plan{background:var(--label-3)} .wday .dot.ovr{background:var(--orange)} .wday .dot.done{background:var(--acc)} .wday:active{background:var(--surface-2)} .wday.today .num{ background:var(--acc);color:var(--on-acc);font-weight:600; width:31px;height:31px;border-radius:50%;display:flex;align-items:center; justify-content:center;margin:2px auto; } /* ----------------------------------------------------------------- list -- */ .list{display:flex;flex-direction:column;gap:8px} .item{ display:flex;align-items:center;gap:12px;background:var(--surface); border-radius:var(--r-card);padding:10px 12px;min-height:60px; transition:background var(--fast);text-align:left;width:100%; } .item:active{background:var(--surface-2)} .routine-list{position:relative} .routine-drag-row{touch-action:pan-y;-webkit-touch-callout:none;position:relative;transition:transform var(--fast) var(--ease)} .routine-list.is-reordering{user-select:none;-webkit-user-select:none} .routine-list.is-reordering .routine-drag-row{transition:none} .routine-drag-row.is-dragging{z-index:2;pointer-events:none} .routine-drag-row.is-dragging .item{box-shadow:0 10px 28px rgba(0,0,0,.22);background:var(--surface-2)} .routine-drop-indicator{ position:absolute;left:6px;right:6px;height:3px;border-radius:99px; background:var(--acc);transform:translateY(-50%);pointer-events:none;z-index:3; } .thumb{width:50px;height:50px;border-radius:9px;object-fit:cover;background:#fff;flex:none} /* exercise pictures are decoration inside tappable rows/cards: no save-image callout on a long press and no drag ghost when a scroll starts on the picture */ .thumb,.exmedia img{-webkit-touch-callout:none;-webkit-user-drag:none;user-select:none;-webkit-user-select:none} .thumb-x{ display:flex;align-items:center;justify-content:center;font-size:21px; background:var(--surface-2);color:var(--label-2); } .item .tt{font-size:16px;font-weight:400;line-height:1.25;letter-spacing:-.009em} .item .ss{color:var(--label-2);font-size:13px;margin-top:2px} .item .grow{flex:1;min-width:0} .chev{color:var(--label);flex:none;font-size:15px;--icon-stroke:2.4} .tag{ display:inline-flex;align-items:center;gap:3px;background:var(--surface-2); color:var(--label-2);border-radius:6px;padding:3px 7px;font-size:12px; font-weight:500;text-transform:capitalize; } .tag.acc{background:var(--acc-soft);color:var(--acc)} /* favourite marker (issue #6): a small yellow star glued to the exercise name — distinct from the accent "chosen" tag at the row's end, which means "already in a routine or the log" */ .fav-star{color:var(--yellow);font-size:12px;display:inline-block;margin-right:5px;vertical-align:-1px} .fav-btn{margin-top:-4px} .fav-btn.on{color:var(--yellow)} /* ---------------------------------------------------------------- chips -- */ .chips{ display:flex;gap:7px;overflow-x:auto;padding:4px 4px 6px; /* room for a chip's focus outline inside a sheet (#162) */ scrollbar-width:none; } .chips::-webkit-scrollbar{display:none} /* horizontal strips: keep a sideways overscroll from chaining to the page and leave a margin when a chip is scrolled into view. The chip row also claims the horizontal axis (touch-action:pan-x): on a phone a slightly diagonal swipe along the chips used to hand the gesture to the page, which scrolled down instead. The row is 32px tall, so losing a vertical scroll that happens to start on it costs nothing; the ~130px heatmap wrap keeps both axes, there the trade-off goes the other way. The chips contain both axes: once a strip is at its end, a diagonal drag must not chain into the page either. */ .chips,.hm-wrap{overscroll-behavior-x:contain;scroll-padding-inline:16px} .chips{touch-action:pan-x;overscroll-behavior:contain} /* The chip hit-area (.chip::before, inset:-6px) must not poke out of the strip vertically: overflow-x:auto makes overflow-y auto as well, and that 6px of positioned overflow gave the 32px row a 36px scroll height — a diagonal swipe, wheel or drag then scrolled the whole row up by 4px and left it there. Vertical slop is clipped by the strip anyway. */ .chips .chip::before{top:0;bottom:0} .chip{ flex:none;padding:6px 13px;border-radius:99px;background:var(--surface); font-size:14px;font-weight:400;color:var(--label);text-transform:capitalize; letter-spacing:-.006em;transition:background var(--fast),color var(--fast); } .chip:active{background:var(--surface-2)} .chip.on{background:var(--acc);color:var(--on-acc);font-weight:500} .chip.on .dim{color:color-mix(in srgb,var(--on-acc) 62%,transparent)} /* On a phone these rows scroll by swipe. On a pointer device lib/hchips.js lets you click-drag anywhere on the row to pull it along; a grab cursor on rows that actually overflow (data-xscroll, set by hchips.js on hover) is the hint. */ @media (hover:hover) and (pointer:fine){ .chips[data-xscroll]{cursor:grab} } /* while a drag is in flight: no text selection, grabbing cursor everywhere (the `*` rule outweighs button{cursor:pointer} so it holds even over a chip) */ body.chips-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none} body.chips-dragging *{cursor:inherit} /* =========================== CONTROLS ==================================== */ /* --- text field --- */ .field,.input{ width:100%;background:var(--surface);border:none;border-radius:var(--r); padding:13px 15px;font-size:17px;letter-spacing:-.012em;outline:none; transition:box-shadow var(--fast); } .field::placeholder,.input::placeholder{color:var(--label-3)} .field:focus,.input:focus{box-shadow:inset 0 0 0 2px var(--acc)} .field.area,textarea.input{min-height:92px;resize:vertical;line-height:1.42} .exnote{ background:var(--surface);border-radius:var(--r);padding:13px 15px; line-height:1.45;white-space:pre-wrap;font-size:15px;margin-bottom:10px;color:var(--label-2); } /* --- search field --- */ .searchf{position:relative;display:flex;align-items:center} .searchf .lead{ position:absolute;left:11px;font-size:16px;color:var(--label-3); pointer-events:none;--icon-stroke:2.1;z-index:1; } .searchf .field{padding-left:35px;padding-right:36px;background:var(--surface-2);border-radius:10px} :root[data-theme="light"] .searchf .field{background:rgba(118,118,128,.12)} .searchf .clear{ position:absolute;right:8px;width:22px;height:22px;border-radius:50%; background:var(--label-3);color:var(--bg);display:flex;align-items:center; justify-content:center;font-size:11px;--icon-stroke:3; } /* legacy .search wrapper */ .search{position:relative} .search .input{padding-left:35px;background:var(--surface-2);border-radius:10px} :root[data-theme="light"] .search .input{background:rgba(118,118,128,.12)} .search>svg{ position:absolute;left:11px;top:50%;transform:translateY(-50%);z-index:1; width:16px;height:16px;stroke:var(--label-3);fill:none;stroke-width:2.1;stroke-linecap:round; } /* --- switch --- */ .sw{ width:51px;height:31px;border-radius:99px;background:var(--surface-3); flex:none;padding:2px;display:flex;align-items:center; transition:background var(--med) var(--ease); } .sw .knob{ width:27px;height:27px;border-radius:50%;background:#fff; box-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.16); transition:transform var(--med) var(--ease),width var(--fast) var(--ease); } .sw.on{background:var(--acc)} .sw.on .knob{transform:translateX(20px)} .sw:active .knob{width:31px} .sw.on:active .knob{transform:translateX(16px)} .sw:disabled{opacity:.4} /* --- segmented control --- */ /* flex, not grid: an absolutely-positioned child of a GRID container is placed into a grid area, so the sliding thumb resolved top/bottom against the wrong box and overflowed the track. A flex container leaves abspos children on the padding box, which is what the thumb needs. */ .seg{ position:relative;display:flex; background:var(--surface-3);border-radius:9px;padding:2px;isolation:isolate; } .seg>button{flex:1 1 0;min-width:0} :root[data-theme="light"] .seg{background:rgba(118,118,128,.12)} .seg-sel{ position:absolute;z-index:0;top:2px;bottom:2px;left:2px; width:calc((100% - 4px)/var(--n)); transform:translateX(calc(100% * var(--i))); background:var(--surface);border-radius:7px; box-shadow:0 3px 8px rgba(0,0,0,.12),0 1px 1px rgba(0,0,0,.06); transition:transform var(--med) var(--ease); } :root[data-theme="light"] .seg-sel{background:#fff} .seg button{ position:relative;z-index:1;padding:6px 8px;font-size:14px;font-weight:500; letter-spacing:-.006em;color:var(--label);display:flex;align-items:center; justify-content:center;gap:5px;min-height:30px;transition:opacity var(--fast); } .seg button .icn{font-size:16px} .seg button:not(.on){color:var(--label-2);font-weight:400} .seg button:active{opacity:.5} /* sitting in a list row: shrink to content instead of filling the row. The control never shrinks below its labels, so a row whose title and control do not both fit — most translated packs at 390px: "Übungs-Animationen" against "Voll · Klein · Aus" — wraps the control onto its own line under the title instead of painting it over the title. */ .seg-inline{flex:none;min-width:132px;max-width:100%;margin-left:auto} .lrow:has(.seg-inline){flex-wrap:wrap} .lrow:has(.seg-inline) .lrow-m{min-width:min(150px,100%)} .seg-range{margin-bottom:10px} .seg-inline button{padding:5px 10px;font-size:13px;min-height:28px} .seg-inline button .icn{font-size:14px} /* native time input, restyled to sit in a row like a value label */ .timef{ background:var(--surface-2);border:none;border-radius:8px;padding:6px 10px; font-size:16px;color:var(--label);outline:none;font-variant-numeric:tabular-nums; } .timef::-webkit-calendar-picker-indicator{filter:invert(.5)} :root[data-theme="light"] .timef::-webkit-calendar-picker-indicator{filter:none} /* --- stepper --- */ .stp-w{display:flex;flex-direction:column;gap:6px;min-width:0} .stp-l{font-size:13px;color:var(--label-2);text-align:center} .stp{ display:flex;align-items:center;background:var(--surface-2); border-radius:10px;overflow:hidden;min-width:0; } .stp button{ width:40px;height:44px;flex:none;color:var(--label);font-size:16px; display:flex;align-items:center;justify-content:center; transition:background var(--fast);--icon-stroke:2.2; } .stp button:active{background:var(--surface-3)} .stp .val{ flex:1;min-width:0;display:flex;align-items:baseline;justify-content:center;gap:3px;padding:0 2px; align-self:stretch; } .stp .val i{font-style:normal;font-size:12px;color:var(--label-2);flex:none} .stp .num{ width:100%;min-width:0;text-align:center;background:none;border:none;outline:none; font-size:17px;font-weight:500;letter-spacing:-.012em;padding:0; -moz-appearance:textfield;appearance:textfield; /* the field is the whole height of the stepper, not just its 18px text line, so a tap anywhere between the two buttons focuses it */ height:100%;min-height:40px;cursor:text; } .stp .num::-webkit-inner-spin-button{display:none} .stp.invalid{box-shadow:inset 0 0 0 1px var(--red)} /* --- slider --- */ .sld{position:relative;height:32px;display:flex;align-items:center;cursor:pointer;touch-action:none} .sld-track{ position:absolute;left:0;right:0;height:6px;border-radius:99px; background:var(--surface-3);overflow:hidden; } .sld-fill{display:block;height:100%;background:var(--acc);border-radius:99px} .sld-knob{ position:absolute;width:26px;height:26px;border-radius:50%;background:#fff; transform:translateX(-50%); box-shadow:0 4px 10px rgba(0,0,0,.22),0 1px 2px rgba(0,0,0,.16); transition:transform var(--fast) var(--ease); } .sld.dragging .sld-knob{transform:translateX(-50%) scale(1.14)} /* --- checkbox --- */ .chk,.ck{ width:30px;height:30px;border-radius:50%;flex:none;position:relative; display:flex;align-items:center;justify-content:center; background:none;box-shadow:inset 0 0 0 1.8px var(--label-4);color:transparent; transition:background var(--fast),box-shadow var(--fast),color var(--fast),transform var(--fast); } .chk .icn{font-size:16px;--icon-stroke:2.6} /* 30px is the right look next to a stepper but a poor target: extend the tap area to 44px without painting it; the left side stays shorter so the stepper's + button keeps its edge */ .chk::before,.ck::before{content:'';position:absolute;inset:-7px -7px -7px -4px} .chk.on{background:var(--acc);box-shadow:none;color:var(--on-acc)} .chk:active,.ck:active{transform:scale(.9)} .ck svg{ width:16px;height:16px;stroke:transparent;fill:none;stroke-width:2.6; stroke-linecap:round;stroke-linejoin:round;transition:stroke var(--fast); } .ck.on{background:var(--acc);box-shadow:none} .ck.on svg{stroke:var(--on-acc)} /* ------------------------------------------------------------- workout --- */ /* Workout header. In list mode it is pinned: pulled up over #app's top padding so it sits flush with the screen edge from the first pixel, and given the page's own ground plus a light blur so the rows scrolling underneath read as underneath. */ .whdr.stick{ position:sticky;top:0;z-index:20; margin:calc(-1 * (var(--sat) + 8px)) calc(-1 * var(--pad)) 6px; padding:calc(var(--sat) + 8px) var(--pad) 0; background:color-mix(in srgb,var(--bg) 94%,transparent); -webkit-backdrop-filter:saturate(180%) blur(10px);backdrop-filter:saturate(180%) blur(10px); } .whdr.stick .hdr{margin-bottom:12px} .whdr.stick .wprog{margin-bottom:10px} @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .whdr.stick{background:var(--bg)} } .wprog{height:4px;background:var(--surface-2);border-radius:99px;overflow:hidden;margin-bottom:16px} .wprog i{display:block;height:100%;background:var(--acc);border-radius:99px;transition:width var(--med) var(--ease)} .exmedia{position:relative;border-radius:var(--r-lg);overflow:hidden;background:#fff;margin-bottom:12px} .exmedia img{width:100%;height:320px;object-fit:contain;display:block} .exmedia .gifhint,.exmedia .giftoggle{ position:absolute;bottom:9px;display:inline-flex;align-items:center;gap:4px; background:rgba(0,0,0,.45);color:#fff;border-radius:99px;padding:5px 11px; font-size:12px;font-weight:500; -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px); } .exmedia .gifhint{right:9px} .exmedia .giftoggle{left:9px} .exmedia .gifhint .icn,.exmedia .giftoggle .icn{font-size:13px} /* superset: both exercises are on screen together, so the animations have to give way — at 180px you had to scroll a full screen between two exercises done back-to-back */ .exmedia.compact img{height:120px} .exmedia.mini img{height:84px} /* both the animation and the still failed to load: a neutral tile instead of the browser's broken-image glyph; same heights as the picture so the card does not jump. tap retries. */ .exmedia.broken{background:var(--surface-2)} .exmedia-x{width:100%;height:320px;display:flex;align-items:center;justify-content:center;color:var(--label-3);font-size:34px} .exmedia.compact .exmedia-x{height:120px} .exmedia.mini .exmedia-x{height:84px} .sethead{ display:flex;align-items:center;gap:8px;padding:0 0 6px; font-size:11px;color:var(--label-3);font-weight:500;text-transform:uppercase;letter-spacing:.045em; } .sethead .n-sp{width:24px;flex:none} .sethead .w-sp{flex:1.4;text-align:center} .sethead .r-sp{flex:1;text-align:center} .sethead .eff-sp{text-align:center} .sethead .ck-sp{width:30px;flex:none} .setrow{display:flex;align-items:center;gap:8px;padding:7px 0;position:relative} .setrow+.setrow::before{ content:'';position:absolute;left:32px;right:0;top:0;height:var(--hair);background:var(--sep); } .setph{margin:8px 0 2px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);display:flex;align-items:center;gap:10px} .setph::after{content:'';flex:1;height:1px;background:var(--sep)} .setsep{height:1px;background:var(--sep);margin:9px 0} /* the per-side wrapper carries its own .n (the set number in front of the L/R rows) */ .setrow .n,.setrow-side>.n{ width:24px;height:24px;border-radius:50%;background:var(--surface-2);color:var(--label-2); display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;flex:none; position:relative;padding:0;border:0;font-family:inherit;cursor:pointer; transition:background var(--fast),color var(--fast); } .setrow .stp.w{flex:1.4;min-width:0} .setrow .stp.r{flex:1;min-width:0} /* The number outranks the buttons in every set row, not only the ones with an effort column that #235 covered: a 320 px phone left 0–6 px for the reps number and showed 102.5 as "102", and the cardio row's 10.5 km/h read "10" at 368 px (QA C2, C21, C24). The field reserves the widest value it shows at its font — "227.5" kg, "100" reps or "10.5" km/h (`--num`, incl. the field's 4 px padding and 2 px against font rounding) — and the two buttons give up width first, down to an 18 px floor, before anything is clipped. The cell itself is never narrower than number + two floors, so the row's flex hands a starving cell width from the others instead of clipping its buttons. */ .setrow .stp button{width:32px;height:40px} /* Only the weight/reps buttons: `.effcell-stp` is a `.stp` too, and its value is a `