/* Today: rings, workout windows, tiles, meters, body composition. */
/* Rings */
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.ring { position: relative; width: 100%; max-width: 88px; aspect-ratio: 1; margin: 0 auto 10px; }
/* Narrow screens. Note: the .ring .mid b size here is overridden by the rule below (kept as it was). */
@media (max-width: 340px) { .ring .mid b { font-size: 21px; } .ring .mid span { display: none; } }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--surface2); }
.ring .val { stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .mid b { font-size: 26px; font-weight: 800; line-height: 1; }
.ring .mid span { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--faint); margin-top: 2px; }
.rname { font-weight: 700; font-size: 14px; }
.rsub { font-size: 12px; color: var(--muted); }

/* Windows */
.wrow { padding: 13px 0; border-top: 1px solid var(--line); }
.wrow:first-of-type { border-top: 0; padding-top: 0; }
.wrow:last-child { padding-bottom: 0; }
.whead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.whead b { font-size: 15px; font-weight: 700; }
.whead .fx { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.whead > div { white-space: nowrap; }
@media (max-width: 370px) { .whead .fx { display: none; } }
.state { font-size: 12px; font-weight: 600; white-space: nowrap; }
.state.open { color: var(--cardio); } .state.rest { color: var(--muted); } .state.missed { color: var(--bad); }
.tl { position: relative; height: 6px; border-radius: 3px; background: var(--surface2); }
.tl .zone { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 3px; opacity: .35; }
.tl .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2.5px solid var(--surface); }
.tlk { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 6px; letter-spacing: .3px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tiles .card { margin-bottom: 14px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 3px; transition: width .4s; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.strip b { display: block; font-size: 17px; font-weight: 700; }
.strip span { font-size: 12px; color: var(--muted); }
.mrow { display: flex; justify-content: space-between; font-size: 13px; }
.mrow span:last-child { color: var(--muted); }

/* Estimate marker on card titles and the closing note (Principle III). */
.label .est { font-weight: 500; color: var(--faint); margin-left: 4px; }
.fineprint { font-size: 11px; color: var(--faint); text-align: center; margin: 4px 0 8px; }
