/* Kraft. Quiet everywhere except the weight-stack sparkline. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --bg: #EEF0EC;
  --surface: #F6F7F4;
  --ink: #1C2633;
  --muted: #566170;
  --rule: #B9C0C8;
  --rule-soft: #D5DAD9;
  --pin: #F0B90B;
  --on-pin: #1C2633;
  --down: #B83A2A;
  --skin: #D5DAD9;
  --hair: #566170;
  --radius: 10px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141B24;
    --surface: #1A222D;
    --ink: #E4E8EE;
    --muted: #9AA5B3;
    --rule: #2E3946;
    --rule-soft: #243040;
    --pin: #F4C430;
    --on-pin: #1C2633;
    --down: #E3735F;
    --skin: #2E3946;
    --hair: #0B1017;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--text);
  font-variant-numeric: tabular-nums;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--num); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: 1.35rem; margin: 28px 0 12px; }
h3 { font-size: 1.15rem; }
.muted, .note { color: var(--muted); }
.note { font-size: 0.85rem; margin: 12px 0 0; max-width: 60ch; }
.down { color: var(--down); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

button { font: inherit; cursor: pointer; }
.primary {
  font: 600 0.95rem/1 var(--text);
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 8px;
  padding: 10px 14px; min-height: 40px;
}
.primary:disabled { opacity: 0.55; cursor: default; }

/* header */
.top {
  max-width: 1100px; margin: 0 auto;
  padding-top: max(8px, env(safe-area-inset-top));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.top h1 { font-size: 1.5rem; padding-bottom: 6px; flex: none; display: flex; align-items: center; gap: 8px; }
.top h1 a { text-decoration: none; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pin); }
.sync-dot[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .sync-dot { animation: pulse 1.2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }
nav { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a {
  position: relative; white-space: nowrap; font-size: 0.97rem;
  text-decoration: none; padding: 10px 6px 9px; color: var(--muted);
  font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.banner { max-width: 1100px; margin: 12px auto 0; display: grid; gap: 8px; }
.msg { margin: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); font-size: 0.92rem; }
.msg.error { border-color: var(--down); }
.msg.error::before { content: "Sync failed. "; font-weight: 600; color: var(--down); }

main { max-width: 1100px; margin: 0 auto; outline: none; }
.loading { margin-top: 32px; }

/* machines: all ten fit on one phone screen */
.region h2 { font-size: 1rem; margin: 9px 0 4px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } }
.tile {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto 46px;
  column-gap: 8px; row-gap: 3px;
  text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius);
  padding: 5px 8px 6px;
}
.tile:hover { border-color: var(--rule); }
.tile h3 {
  grid-column: 1 / -1; font-size: 1.02rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--rule-soft); display: block; }
.thumb.noimg { visibility: hidden; }
.tile-main { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.big { font: 600 1.6rem/1 var(--num); margin: 0; white-space: nowrap; }
.big small { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.delta { font: 500 1rem var(--num); margin-left: 6px; color: var(--muted); }
.delta.down { color: var(--down); }
.spark { width: 100%; max-width: 120px; height: auto; display: block; overflow: visible; }
.spark .rule, .bars-plot .rule, .calendar .rule { stroke: var(--rule); stroke-width: 1; opacity: 0.55; }
.spark .step { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; }
.spark .pin-shaft { stroke: var(--pin); stroke-width: 2.5; }
.pin { fill: var(--pin); }

/* machine detail */
.back { margin: 14px 0 0; }
.back a { color: var(--muted); text-decoration: none; }
.back a::before { content: "‹ "; }
.detail-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.big-thumb { width: 64px; height: 64px; }
.detail h2 { margin: 0; font-size: 1.8rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 14px 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats dt { font-size: 0.85rem; color: var(--muted); }
.stats dd { margin: 0; font: 600 1.6rem/1.1 var(--num); }
.chart { margin: 8px 0 16px; }
.axis-title { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); }
.axis-title.x { text-align: center; margin: 2px 0 0 44px; }
.bars { display: flex; align-items: flex-start; }
.bars-axis { flex: none; }
.bars-scroll { overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.bars-plot { display: block; }
.bars-axis .axis, .bars-plot .axis, .calendar .axis { fill: var(--muted); font: 500 12px var(--num); }
.calendar .axis.small { font-size: 10px; }
.bars-plot .baseline, .bars-plot .tick { stroke: var(--muted); stroke-width: 1; }
.bars-plot .part { fill: var(--ink); stroke: var(--surface); stroke-width: 1; }
.bars-plot .part.low { fill: var(--muted); fill-opacity: 0.45; }
.bars-plot .part.alt { fill: var(--surface); stroke: var(--ink); stroke-width: 1.25; }
.bars-plot .bar-val { fill: var(--ink); font: 600 11px var(--num); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; width: 10px; height: 10px; border-radius: 2px; }
.lg-seg { background: var(--ink); }
.lg-seg.low { background: var(--muted); opacity: 0.45; }
.lg-seg.alt { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th { text-align: left; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); padding: 6px 8px 6px 0; }
td { border-bottom: 1px solid var(--rule-soft); padding: 8px 8px 8px 0; vertical-align: top; }
.num { text-align: right; white-space: nowrap; }
td.sets { font-family: var(--num); font-size: 1rem; }
.mtag { font: 600 0.62em var(--text); font-style: normal; text-transform: uppercase; letter-spacing: 0.03em; margin-left: 2px; vertical-align: 0.1em; }
td.sets .mtag { color: var(--muted); }
.tests { margin: -4px 0 12px; color: var(--muted); font-size: 0.9rem; }
.tests b { color: var(--ink); font: 600 1rem var(--num); }
.stats dd small { font: 500 1rem var(--num); color: var(--muted); }
.stats dd small.down, .sc-meta b.down { color: var(--down); }
.tag { font-size: 0.75rem; border: 1px solid var(--rule); border-radius: 4px; padding: 0 5px; color: var(--muted); white-space: nowrap; }
.warn-tag { border-color: var(--down); color: var(--down); }

/* sessions */
.cal-wrap { overflow-x: auto; padding-bottom: 4px; }
.calendar { width: 100%; min-width: 320px; max-width: 520px; height: auto; display: block; }
.cal.v0 { fill: var(--rule-soft); }
.cal.v1 { fill: var(--ink); fill-opacity: 0.28; }
.cal.v2 { fill: var(--ink); fill-opacity: 0.48; }
.cal.v3 { fill: var(--ink); fill-opacity: 0.72; }
.cal.v4 { fill: var(--ink); }
.cal.future { fill: none; }
.wk-bar { fill: var(--muted); }

/* body */
.switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.switch a { text-decoration: none; padding: 8px 14px; font-weight: 500; color: var(--muted); }
.switch a + a { border-left: 1px solid var(--rule); }
.switch a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.switch.sort { margin: 12px 0 6px; }
.switch.sort a { padding: 6px 12px; }

/* machines by strength */
.sbar, .pbar { display: block; width: 100%; max-width: 120px; height: 8px; }
.sbar-bg { fill: var(--rule-soft); }
.sbar-fill { fill: var(--ink); }
.sbar-mark { stroke: var(--pin); stroke-width: 2; }
.balance h2 { font-size: 1rem; color: var(--muted); margin: 18px 0 6px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.pair-head { margin: 0 0 2px; display: flex; gap: 8px; align-items: center; }
.pair-kg { margin: 0 0 4px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--num); }
.pair-ratio { font-weight: 600; font-size: 1.1rem; }
.pairs .pbar { max-width: none; }
.pbar-front { fill: var(--ink); }
.pbar-back { fill: var(--muted); fill-opacity: 0.5; }
.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 640px; }
.groups li { display: grid; grid-template-columns: 9.5em 1fr 3em; align-items: center; gap: 10px; }
.g-label { font-size: 0.95rem; }
.g-bar { height: 10px; background: var(--rule-soft); border-radius: 2px; overflow: hidden; }
.g-fill { display: block; height: 100%; width: 0; background: var(--ink); }
.g-val { font: 600 1.05rem var(--num); text-align: right; }
.bio { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; max-width: 640px; }
.big-inline { font: 600 1.6rem var(--num); margin-left: 8px; }
.bio-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; margin: 10px 0 0; }
@media (min-width: 640px) { .bio-list { grid-template-columns: repeat(3, 1fr); } }
.bio-list dt { font-size: 0.82rem; color: var(--muted); }
.bio-list dd { margin: 0; font: 600 1.15rem var(--num); }

.empty { margin: 40px auto; max-width: 420px; text-align: center; }
.empty p { color: var(--muted); }

/* login */
.login-page { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; }
.login { width: 100%; max-width: 320px; }
.login h1 { font-size: 2.4rem; }
.login form { display: grid; gap: 8px; margin-top: 20px; }
.login label { font-weight: 500; }
.login input[type="password"] {
  font: inherit; padding: 10px 12px; border-radius: 8px; min-height: 44px;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
.login .primary { margin-top: 8px; min-height: 44px; }
.form-error { color: var(--down); margin: 0; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* body figure */
.body-fig .skin { fill: var(--skin); stroke: var(--rule); stroke-width: 0.8; stroke-linejoin: round; }
.body-fig .hair { fill: var(--hair); }
.body-fig .m { stroke: var(--rule); stroke-width: 0.6; stroke-linejoin: round; }
.body-fig .lv0 { fill: none; }
.body-fig .lv1 { fill: var(--ink); fill-opacity: 0.28; }
.body-fig .lv2 { fill: var(--ink); fill-opacity: 0.5; }
.body-fig .lv3 { fill: var(--ink); fill-opacity: 0.75; }
.body-fig .lv4 { fill: var(--ink); }
.body-fig .cut { stroke: var(--rule); stroke-width: 0.6; opacity: 0.7; }
.body-fig .axis { fill: var(--muted); font: 500 12px var(--num); }
.body-wrap { display: grid; gap: 16px; align-items: start; }
.body-big { width: 100%; max-width: 300px; height: auto; justify-self: center; }
@media (min-width: 720px) { .body-wrap { grid-template-columns: 300px minmax(0, 640px); } }

/* pull to refresh */
html, body { overscroll-behavior-y: contain; }
.ptr {
  position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; z-index: 20;
  transform: translate(-50%, -48px);
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px; font-weight: 500; font-size: 0.92rem; pointer-events: none;
}
.ptr.settle { transition: transform 0.25s ease; }
.ptr-pin { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--rule); }
.ptr.ready .ptr-pin { background: var(--pin); border-color: var(--pin); }

/* the dot on the Sessions tab while a session runs */
.live-pin[hidden] { display: none; }
.live-pin { position: absolute; top: 6px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--pin); }

/* workout tiles: every machine on one phone screen */
/* two columns at fixed spots: front of the body left, back right */
.wt-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; margin-top: 14px;
  flex: 1 1 auto; grid-auto-rows: minmax(auto, 1fr); max-height: 600px;
}
@media (min-width: 720px) { .wt-grid { max-width: 640px; gap: 8px 10px; } }
.wt.skipped { opacity: 0.42; }
.box.target { color: var(--muted); font-weight: 500; }
.wt-delta.up { color: var(--ink); }
.wt.skipped .box { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-soft); }
.wt {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; align-content: center;
  text-decoration: none; padding: 8px;
  background: var(--surface); border: 0; border-radius: 12px;
}
.wt-photo { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 8px; }
.wt h3 { grid-column: 2; grid-row: 1; }
.wt-delta { grid-column: 1; grid-row: 3; align-self: center; text-align: center; font: 600 0.92rem/1 var(--num); color: var(--ink); white-space: nowrap; }
.wt-delta.down { color: var(--down); }
.noimg-ph { display: flex; align-items: center; justify-content: center; background: var(--rule-soft); color: var(--muted); font: 600 1rem var(--num); }
.wt h3 { font-size: 1rem; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.wt-cols.wide { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; }
.wt-last { grid-column: 2; grid-row: 2; font: 500 0.78rem/1.1 var(--num); color: var(--muted); opacity: 0.7; text-align: center; min-height: 0.9em; white-space: nowrap; }
.boxes { grid-column: 2; grid-row: 3; }
.wt-last span { overflow: hidden; text-overflow: clip; }
.wt-last span.same { opacity: 0.35; }
.box {
  height: 28px; border-radius: 6px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font: 600 1rem var(--num); color: var(--muted); white-space: nowrap; overflow: hidden;
}
.box.done { background: var(--rule-soft); color: var(--ink); }
.box.done.alt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.wt.complete .box.done { color: var(--muted); }
.wt.complete h3 { color: var(--muted); }

/* sessions: full-screen cards that snap into place */
html.snap-mode, html.snap-mode body { height: 100%; overflow: hidden; }
.snap {
  height: calc(100dvh - var(--top-h, 60px));
  overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
  scrollbar-width: none;
}
.snap::-webkit-scrollbar { display: none; }
.snap-card {
  min-height: calc(100dvh - var(--top-h, 60px)); display: flex; flex-direction: column;
  scroll-snap-align: start; scroll-snap-stop: always;
  padding: 12px 0 8px;
}
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sc-title h2 { margin: 0; font-size: 1.35rem; }
.sc-meta { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
.sc-meta b { font: 600 1.05rem var(--num); color: var(--ink); }
.sc-vs { font-size: 0.88rem; }
.sc-vs b { font-size: 1rem; }
.sc-vs .nw { white-space: nowrap; }
.sc-tests { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.sc-tests b { font: 600 1rem var(--num); color: var(--ink); }
.sc-body { width: 62px; height: auto; flex: none; }
.wt-cols.wide .box { font-size: 0.85rem; }
.sc-load { display: flex; align-items: stretch; gap: 6px; flex: none; }
.vol-bar { width: 6px; border-radius: 3px; background: var(--rule-soft); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.vol-fill { display: block; background: var(--ink); }

/* body: linked figure and dot grid */
.body-caption { margin: 0 0 8px; min-height: 2.6em; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }
.body-main { display: grid; gap: 12px; justify-items: center; }
.body-main .cal-wrap { width: 100%; }
.body-fig .m[data-group] { cursor: pointer; }
.body-fig .m.sel { stroke: var(--pin); stroke-width: 2; }
.calendar .cal[data-date] { cursor: pointer; }
.calendar .cal.sel { stroke: var(--pin); stroke-width: 2; }
.calendar .cal.dim { fill: var(--rule-soft); fill-opacity: 1; }
.groups li[data-group] { cursor: pointer; border-radius: 4px; }
.groups li.sel .g-label { font-weight: 600; }
.groups li.sel .g-fill { background: var(--pin); }

/* log a set (Kraft-only exercises) */
button.wt { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
dialog#log-dialog {
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  padding: 16px; width: min(92vw, 340px);
}
dialog#log-dialog::backdrop { background: rgba(20, 27, 36, 0.45); }
#log-form h2 { margin: 0 0 4px; font-size: 1.4rem; }
.log-today { margin: 0 0 12px; color: var(--muted); font-family: var(--num); }
.log-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.log-fields label { display: grid; gap: 4px; font-weight: 500; font-size: 0.92rem; }
.log-fields input {
  font: 600 1.4rem var(--num); padding: 8px 10px; min-height: 48px; width: 100%;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.log-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.log-actions .primary { flex: 1 1 100%; min-height: 48px; font-size: 1.05rem; }
.secondary { background: none; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); padding: 10px 12px; min-height: 44px; flex: 1; font: 500 0.95rem var(--text); }

/* swiping between tabs */
@media (prefers-reduced-motion: no-preference) {
  main.slide-left { animation: from-right 0.2s ease-out; }
  main.slide-right { animation: from-left 0.2s ease-out; }
}
@keyframes from-right { from { transform: translateX(24px); opacity: 0.4; } }
@keyframes from-left { from { transform: translateX(-24px); opacity: 0.4; } }

/* sessions: the date strip above the cards */
.tl {
  --tl-day: min(18px, calc((100vw - 2 * var(--gutter)) / 28));
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 2px;
}
.tl::-webkit-scrollbar { display: none; }
.tl-row { position: relative; display: flex; width: max-content; }
.tl-day {
  position: relative; flex: none; width: var(--tl-day); height: 38px;
  display: flex; align-items: flex-end; justify-content: center; padding: 0 0 9px;
  background: none; border: 0; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent;
}
.tl-day.weekend::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 20px; background: var(--surface); }
.tl-day.weekend + .tl-day.weekend::before { border-radius: 0 6px 6px 0; }
.tl-day.weekend:has(+ .tl-day.weekend)::before { border-radius: 6px 0 0 6px; }
.tl-day i { position: relative; z-index: 2; display: block; width: 4px; height: 4px; margin-bottom: 3px; border-radius: 50%; background: var(--rule-soft); }
.tl-day.weekend i { background: var(--muted); }
.tl-day.today i { width: 8px; height: 8px; margin-bottom: 1px; background: none; border: 1.5px solid var(--ink); }
.tl-day.trained i { width: 8px; height: 8px; margin-bottom: 1px; background: var(--ink); border: 0; }
.tl-day.sel i { background: var(--on-pin); border-color: var(--on-pin); }
.tl-day.today.sel:not(.trained) i { background: none; }
button.tl-day { cursor: pointer; }
.tl-label {
  position: absolute; z-index: 2; left: 1px; top: 0; white-space: nowrap;
  font: 500 0.72rem/1 var(--num); color: var(--muted);
}
.tl-mark {
  position: absolute; z-index: 1; left: 0; bottom: 1px; width: var(--tl-day); height: 24px;
  border-radius: 12px; background: var(--pin);
}
.tl-mark[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tl-mark.ready { transition: transform 0.25s ease-out; }
}
