/* Biohacking (views/biohacking.js, views/bio-gauge.js): the score gauges, the points list, the areas. Colours come
   from the tokens in style.css only; the five band colours are --gauge-0 (red) to --gauge-4 (green). */
.bio{display:flex;flex-direction:column;gap:16px}
.bio-sec{display:flex;flex-direction:column;gap:8px}

/* The gauges: a tap opens that area's card, so each small one is a plain button the size of the drawing. */
.bio-hero{display:flex;flex-direction:column;gap:12px;padding:16px}
.bio-hero .bx-pill{align-self:center;margin-block-end:6px}
.bio-gbtn{display:block;width:100%;padding:6px;border:1px solid transparent;border-radius:var(--rm);background:none;color:var(--ink);font:inherit;cursor:pointer}
.bio-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bio-gauge{display:flex;flex-direction:column;align-items:center}
.bio-gauge svg{display:block;width:100%;height:auto;overflow:visible}
/* Every band in full colour, so the scale reads from across the room; the band the score is in is thicker and glows.
   The track is a darker rim under the bands that keeps them off the moving background. */
.bio-track{fill:none;stroke:var(--bg);stroke-width:24;opacity:.85}
.bio-gauge.big .bio-track{stroke-width:30}
.bio-arc{fill:none;stroke:currentColor;stroke-width:18}
.bio-gauge.big .bio-arc{stroke-width:24}
.bio-arc.on{stroke-width:22;filter:drop-shadow(0 0 5px currentColor)}
.bio-gauge.big .bio-arc.on{stroke-width:29}
.bio-g0{color:var(--gauge-0)}.bio-g1{color:var(--gauge-1)}.bio-g2{color:var(--gauge-2)}.bio-g3{color:var(--gauge-3)}.bio-g4{color:var(--gauge-4)}
.bio-range{fill:var(--mut);font:700 9px var(--sans)}
.bio-needle{fill:var(--ink);transform-box:view-box;transform-origin:100px 100px}
/* No score yet: the needle rests at zero in a muted ink and the "?" sits inside the arc, right over the word. */
.bio-needle.rest{fill:var(--mut)}
.bio-q{fill:var(--mut);font:600 38px var(--serif)}
.bio-gauge.big .bio-q{font-size:56px}
[lang=he] .bio-q{font-family:var(--sans);font-weight:800}
.bio-gauge.empty .bio-gnum{margin-top:2px}
.bio-gnum{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:4px;text-align:center}
.bio-gnum b{font-family:var(--serif);font-weight:600;font-size:2rem;line-height:1}
.bio-gauge.big .bio-gnum b{font-size:3.6rem}
.bio-glabel{font-weight:800;font-size:.92rem}
.bio-gword{font-weight:800;font-size:.84rem;color:var(--ink2)}
.bio-gauge.big .bio-gword{font-size:1.05rem}
.bio-gnum small{color:var(--mut);font-size:.76rem}
[lang=he] .bio-gnum b{font-family:var(--sans);font-weight:800}
.bio-cov{margin:0;text-align:center;color:var(--mut);font-size:.86rem;font-weight:600}
.bio-cov b{color:var(--ink2)}
.bio-why{margin:0;font-size:1rem;line-height:1.5;font-weight:500}

/* A band shown on text: a swatch of its colour next to the word, the word in ink (the colour never speaks alone). */
.bio-pill{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:0 10px;border-radius:var(--pill);border:1px solid var(--line);background:var(--surface2);color:var(--ink);font-size:.76rem;font-weight:800;white-space:nowrap}
.bio-pill::before{content:"";inline-size:10px;block-size:10px;border-radius:50%;background:currentColor;flex:none}
.bio-pill.bio-b0::before{background:var(--gauge-0)}
.bio-pill.bio-b1::before{background:var(--gauge-1)}
.bio-pill.bio-b2::before{background:var(--gauge-2)}
.bio-pill.bio-b3::before{background:var(--gauge-3)}
.bio-pill.bio-b4::before{background:var(--gauge-4)}

/* The open cards' rows (views/bio-cards.js): the shared .mrow, with the gain and the value in the heading face. */
.bio-gain{font-size:1.15rem;font-weight:800;color:var(--c)}
.bio .btn.sm{min-height:48px}

/* Blood tests: the upload is the card's one large button when nothing counts; the note under it says where it is read. */
.bio-lup{display:flex;align-items:center;justify-content:center;gap:8px;inline-size:100%;min-height:56px;height:auto;margin-top:8px;padding:10px 18px;font-size:1rem;font-weight:800;line-height:1.3;text-align:center;white-space:normal;text-wrap:balance;cursor:pointer}
.bio-lup .i{flex:none}

.bio-basis{display:flex;gap:6px;align-items:flex-start}

.bio-xbody .bio-sec{gap:10px}
.bio-row .btn.sm{min-height:48px}
/* a row is a line of its card, not a card of its own: the legacy .mrow box is reset */
.bio .mrow.bio-row{margin:0;padding:8px 0;background:none;border:0;border-block-start:1px solid var(--line);border-radius:0;cursor:default}
.bio .inside .mrow.bio-row:first-child{border-block-start:0}
/* The score screen's sentences are its explanation, so each is read whole: the line under a row's name and under a
   folded group's name wraps here, over the one-line rule of widgets.css (.mrow .tt small) and fold.css (details.fc .tt
   small) that the other lists keep; the value, its pill or the button stays on the row's first line. */
.bio-score .mrow.bio-row{align-items:start}
.bio-score .mrow.bio-row .tt small,.bio-score details.fc .tt small{white-space:normal;overflow:visible;text-overflow:clip}

/* My experiments: a card per experiment, its moved measures as rows; the better way in teal, the worse in red, each
   with its word so the colour never speaks alone. */
.bio-xcard{display:flex;flex-direction:column;gap:8px}
.bio-xhead{display:flex;align-items:center;gap:12px}
.bio-xhead .tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bio-xhead small{color:var(--mut);font-size:.8rem}
.bio-xneedle{margin:0;font-weight:800}
.bio-xmoves{list-style:none;margin:0;padding:0}
.bio-xmove{display:flex;align-items:baseline;gap:8px;padding:6px 0;border-top:1px solid var(--line)}
.bio-xmove:first-child{border-top:0}
.bio-xmove span{flex:1;min-width:0}
.bio-xmove b{font-weight:800;white-space:nowrap}
.bio-xmove small{font-size:.76rem;font-weight:800}
.bio-xmove.up b,.bio-xmove.up small{color:var(--c)}
.bio-xmove.down b,.bio-xmove.down small{color:var(--red)}
.bio-xnew .item{display:flex;align-items:center;gap:12px;width:100%;background:none;border:0;color:var(--ink);font:inherit;text-align:start;cursor:pointer;min-height:48px}
.bio-xnew .item .tt{flex:1}

/* The body profile (views/body-profile.js): the weight-and-height pill, the live line under the fields, the prompt. */
.bx-pill{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:var(--pill);border:1px solid var(--line);background:var(--surface2);color:var(--ink);font:700 .82rem/1.2 var(--sans);cursor:pointer;white-space:nowrap}
.bx-pill svg{inline-size:16px;block-size:16px;color:var(--mut)}
.bx-live{display:flex;flex-direction:column;gap:2px;margin:0;min-height:1.2em}
.bx-live [data-grade=ok]{color:var(--green)}
.bx-live [data-grade=hi]{color:var(--amber)}
.bx-sex .seg{margin-block-start:4px}
:is(#app,#pane) .card.bx-prompt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:12px 14px;font-size:.88rem;text-align:start;color:var(--ink)}
.bx-prompt>span{text-align:start}
.bx-prompt svg{flex:none}
