/* v0.35.0 (the owner, 2026-10-12): the indicator is chosen by name from the list (its code is never shown),
   and each analysis card shows the curve of its values right under the latest value. */

/* the indicator field: a combobox like the doctor search */
.personal-records{--pr-pick:#e9f3f0;--pr-pick-line:#6e9b90}
:root[data-theme=dark] .personal-records{--pr-pick:#253936;--pr-pick-line:#5d8d82}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .personal-records{--pr-pick:#253936;--pr-pick-line:#5d8d82}}
.personal-records .pr-indicator{position:relative;margin:12px 0;min-width:0}
.personal-records .pr-indicator .pr-indicator-label{display:block;margin:0 0 7px}
.personal-records .pr-indicator-box{position:relative;min-width:0}
.personal-records .pr-indicator-options{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);list-style:none;margin:0;padding:4px;max-height:min(320px,55vh);overflow-y:auto;background:var(--pr-bg);border:1px solid var(--pr-border);border-radius:10px;box-shadow:0 10px 28px rgba(18,38,36,.16)}
.personal-records .pr-indicator-options[hidden]{display:none}
.personal-records .pr-indicator-options [role=option]{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:44px;padding:9px 11px;border-radius:7px;cursor:pointer;font-weight:600;overflow-wrap:anywhere}
.personal-records .pr-indicator-options [role=option] small{font-size:.8rem;font-weight:400;color:var(--pr-muted)}
.personal-records .pr-indicator-options [role=option]:hover{background:var(--pr-pick)}
.personal-records .pr-indicator-options [aria-selected=true]{background:var(--pr-pick);outline:2px solid var(--pr-pick-line);outline-offset:-2px}
.personal-records .pr-indicator-hint{margin:6px 0 0;font-size:.85rem;font-weight:400;color:var(--pr-muted)}
.personal-records .pr-indicator-hint.pr-indicator-unlisted{color:var(--pr-low);font-weight:600}
.personal-records .pr-sr-only{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* the curve: green inside the printed reference, red outside it, grey when no reference is known (words say it too) */
.personal-records .pr-spark{margin:4px 0 10px;min-width:0}
.personal-records .pr-spark-svg{display:block;width:100%;height:64px;overflow:visible}
.personal-records .pr-spark-band{fill:var(--st-normal,#1f9d63);fill-opacity:.13}
.personal-records .pr-spark-line{fill:none;stroke-width:2;stroke-linecap:round}
.personal-records .pr-spark-dot{fill:none;stroke-width:8;stroke-linecap:round}
.personal-records .pr-spark-line.pr-spark-in,.personal-records .pr-spark-dot.pr-spark-in{stroke:var(--st-normal,#1f9d63)}
.personal-records .pr-spark-line.pr-spark-out,.personal-records .pr-spark-dot.pr-spark-out{stroke:var(--st-high,#d9363e)}
.personal-records .pr-spark-line.pr-spark-unknown,.personal-records .pr-spark-dot.pr-spark-unknown{stroke:var(--st-unknown,#9aa5b5)}
.personal-records .pr-spark-note{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:2px 12px;margin-top:5px;font-size:.82rem;line-height:1.35;color:var(--pr-muted)}
.personal-records .pr-spark-state{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.personal-records .pr-spark-state.pr-spark-in{color:var(--pr-good)}
.personal-records .pr-spark-state.pr-spark-out{color:var(--pr-high)}
.personal-records .pr-spark-state.pr-spark-unknown{color:var(--pr-muted)}
.personal-records .pr-spark-key{flex:none;width:9px;height:9px;border-radius:50%;background:currentColor}
.personal-records .pr-spark-dates{font-variant-numeric:tabular-nums}
