:root { --pico-font-size: 100%; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.brand-icon { width: 32px; height: 32px; }
.muted { color: var(--pico-muted-color); }
.small { padding: .25rem .6rem; font-size: .85rem; width: auto; margin: 0; }
form.inline { display: inline; margin: 0; }
form.inline select { margin: 0; padding-top: .25rem; padding-bottom: .25rem; width: auto; }
.message { padding: .75rem 1rem; margin-bottom: 1rem; }
.message.success { border-left: 4px solid #2a9d5c; }
.message.error { border-left: 4px solid #d93526; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1, .page-head h2 { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.actions a[role=button], .actions button { margin: 0; }
.badge { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 1rem; background: var(--pico-secondary-background); color: var(--pico-secondary-inverse); vertical-align: middle; }
.badge.write { background: var(--pico-primary-background); color: var(--pico-primary-inverse); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.cards article { margin: 0; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.size-tile { border: 1px solid var(--pico-muted-border-color); border-radius: var(--pico-border-radius); padding: .75rem; }
.size-tile .label { font-size: .8rem; color: var(--pico-muted-color); }
.size-tile .value { font-size: 1.5rem; font-weight: 600; }
.size-tile .date { font-size: .75rem; color: var(--pico-muted-color); }
.compact dl { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; margin: 0; }
.compact dt { color: var(--pico-muted-color); font-weight: normal; }
.compact dd { margin: 0; font-weight: 600; }
.chart-box { position: relative; height: 220px; margin-bottom: 1rem; }
section.history { margin-bottom: 2rem; }
table td.num { font-variant-numeric: tabular-nums; }
.danger { --pico-background-color: #d93526; --pico-border-color: #d93526; }
.figure-wrap { max-width: 640px; margin: 0 auto 2rem; }
.body-figure { width: 100%; height: auto; display: block; }
.body-figure .silhouette { fill: var(--pico-muted-color); opacity: .3; }
.body-figure .silhouette .limb line { stroke: var(--pico-muted-color); stroke-linecap: round; }
.body-figure .height-bar line, .body-figure .weight-bar line { stroke: var(--pico-muted-color); stroke-width: 1.5; }
.body-figure .leader { stroke: var(--pico-primary); stroke-width: 1.2; opacity: .7; }
.body-figure .dot { fill: var(--pico-primary); }
.body-figure text { fill: var(--pico-color); }
.body-figure .name { font-size: 12px; fill: var(--pico-muted-color); }
.body-figure .value { font-size: 17px; font-weight: 600; }
.body-figure .unit { font-size: 12px; font-weight: normal; fill: var(--pico-muted-color); }
.body-figure a.callout { text-decoration: none; }
.body-figure a.callout:hover .value { fill: var(--pico-primary); }
.body-figure a.callout:hover .leader { opacity: 1; stroke-width: 2; }
.body-figure .name-link { fill: var(--pico-primary); text-decoration: none; }
.body-figure .name-link:hover { text-decoration: underline; }
.body-figure g.group:hover .leader { opacity: 1; stroke-width: 2; }
@media (max-width: 600px) {
  .body-figure .name { font-size: 17px; }
  .body-figure .value { font-size: 24px; }
  .body-figure .unit { font-size: 16px; }
}
.welcome { align-items: center; margin: 1rem 0 2rem; }
.welcome h1 { font-size: 2.4rem; margin: 0 0 .75rem; }
.welcome .lead { font-size: 1.15rem; color: var(--pico-muted-color); }
.welcome .figure-wrap { margin: 0; }
.features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { margin: 0; border-top: 4px solid var(--pico-primary); }
.features h3 { font-size: 1.1rem; }
.features p { margin: 0; color: var(--pico-muted-color); }
.chart-box.tall { height: 300px; margin-bottom: 2rem; }
table.clickable tbody tr { cursor: pointer; }
table.clickable tbody tr:hover td { background: var(--pico-muted-border-color); }
