/* Body (views/body.js, body-area.js, body-measure.js, body-score.js). Colours and spacing come from the tokens of
   tokens.css; the screen is a column (#app.screen). */
.msr{display:flex;flex-direction:column;gap:16px}
/* legacy.css also styles .mrow as a boxed card; inside Body a row is a line of its card (widgets.css) */
.msr .mrow{background:none;border:0;border-block-start:1px solid var(--line);border-radius:0;margin:0;padding:8px 0;box-shadow:none}
.msr .mrow:first-child{border-block-start:0}
.msr .navrow .end{display:flex;align-items:center;gap:8px}
.msr .hint{display:flex;gap:8px;align-items:center;color:var(--mut);font-size:.84rem;font-weight:600;padding-inline:4px}

/* the root's score card: the gauge, the why line and Why; before a score, n of 3 and the quickest measures */
.body-score{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px}
.body-why{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.body-score.empty .arows{align-self:stretch}

/* the tiles: two columns, the notes tile across both */
.body-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.body-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;color:var(--ink);text-align:start;cursor:pointer}
.body-tile.wide{grid-column:1 / -1}
/* Trends and Experiments, under the tiles: a plain column of rows (no accordion on a root, P6) */
.body-links{display:flex;flex-direction:column;gap:var(--s-3)}
.body-tile-top{display:flex;align-items:center;gap:8px;min-width:0}
.body-tile-top b{font-size:.95rem;line-height:1.2}
.body-tile-pill{display:flex;flex-wrap:wrap;gap:6px}
.body-tile small{color:var(--mut);font-size:.8rem;line-height:1.35}

/* an area's rows: the row opens its measure, the + beside it adds (48 px, the touch target) */
.area-pill{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding-inline:4px}
/* the word that says the pill beside it is the score out of 100 */
.body-pill-lbl{color:var(--mut)}
.arows{display:flex;flex-direction:column;gap:0;padding-block:4px}
.arow{display:flex;align-items:center;gap:8px;border-block-start:1px solid var(--line);min-height:60px}
.arow:first-child{border-block-start:0}
.arow > .tt{flex:1;display:flex;flex-direction:column;min-width:0;padding-block:8px}
.arow-main{flex:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;min-width:0;min-height:60px;padding:8px 0;border:0;background:none;color:var(--ink);text-align:start;cursor:pointer}
/* the name keeps room for two words; the value, its trend and its grade stand on the line below it, from the
   name's edge, so every row's value starts at the same place */
.arow-main .tt{flex:1 1 9em;display:flex;flex-direction:column;min-width:0}
.arow-main .tt small{color:var(--mut);font-size:.8rem}
.arow-main .tt small.msr-goal{white-space:normal}
.arow-main .rt{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:1 0 100%}
.arow-main .rt:empty{display:none}
/* the row's + is Today's (style.css .iconbtn): the 48 px outlined circle; on the start card the whole row is the
   button, so the circle there is its drawing only */
.arow-main>.arow-plus{pointer-events:none}
.arow-trend{inline-size:48px}

/* a measure's page: the latest value, the range and its chart, every reading */
.body-top{display:flex;flex-direction:column;gap:10px;padding:16px}
.body-latest{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.body-latest b{font-size:2rem;line-height:1.1}
.body-trend{display:flex;flex-direction:column;gap:10px;padding:14px}
.body-chart{inline-size:100%;block-size:auto}
.body-chart path{fill:none;stroke:var(--a);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.body-chart circle{fill:var(--a)}
.body-chart-g{stroke:var(--line);stroke-width:1;stroke-dasharray:4 3}
.body-chart text{fill:var(--mut);font-size:10px}
.body-mark{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.body-chart-ends{display:flex;justify-content:space-between;gap:8px;margin:0}
.body-readings{padding:14px}

/* The Cooper report (views/cooper-report.js): its own style is shared/cooper-report-html.js REPORT_CSS, one string
   for the app and the shared page; here only the app's own parts, the buttons row and the share sheet. */
.cpr .card{margin:0}.cpr-acts{gap:8px;flex-wrap:wrap}
.cpr-share-private{margin:0 0 12px}.cpr-share-private>p{margin:0 0 2px;color:var(--mut);font-size:13px;font-weight:600}
.cpr-share-metric{display:flex;gap:10px;align-items:center;min-height:44px;font-weight:600}.cpr-share-metric input{width:22px;height:22px;accent-color:var(--a)}
.cpr-share .note{color:var(--mut);font-size:13px;margin:12px 0 0}
/* The Fitness score card (views/fitness-card.js): the score beside its title and coverage, each test a row of its name
   and value, a bar under them (a percentile, or the sub-score of a test read by band or level) and where it sits. */
.fsc-card{display:grid;gap:6px}.fsc-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fsc-head .tt{display:grid}.fsc-head small{color:var(--mut);font-size:13px}.fsc-score{font-size:34px;line-height:1;color:var(--a)}
.fsc-need{color:var(--mut);font-size:13px;text-align:end}.fsc-g{font-size:13px;color:var(--mut);margin:8px 0 0;font-weight:600}
.fsc-test{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;width:100%;padding:6px 0;background:none;border:0;color:inherit;font:inherit;text-align:start;cursor:pointer}
.fsc-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}.fsc-name small{color:var(--mut);font-size:12.5px}
.fsc-track{grid-column:1;display:block;block-size:8px;border-radius:var(--pill);background:var(--surface2);overflow:hidden}
.fsc-track i{display:block;block-size:100%;border-radius:var(--pill);background:var(--a)}
.fsc-where{grid-column:2;color:var(--mut);font-size:12.5px;text-align:end;max-width:46vw}
.fsc-none{cursor:default}.fsc-choose summary{cursor:pointer;color:var(--a);font-weight:600;padding:6px 0}.fsc-choose .chk{display:flex;gap:8px;padding:4px 0}
