#main[data-screen='trends'] > .card { margin-top: 14px; }
#main[data-screen='trends'] > .trend-icon-button { width: 100%; }
.trend-period-header { justify-content: space-between; }
.trend-period-header .muted { font-size: .9375rem; }
.trend-date-range { justify-content: center; text-align: center; font-weight: 700; margin-top: 12px; }
.trend-icon { width: 20px; height: 20px; flex: none; }
.trend-icon-button { position: relative; width: 100%; padding-inline: 42px; }
.trend-icon-button .trend-icon { position: absolute; left: 13px; }
.trend-period > .trend-icon-button { margin-top: 12px; }
.trend-metrics { display: grid; gap: 11px; margin-top: 12px; }
.trend-metric { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.trend-metric dt { font-size: .875rem; }
.trend-metric dd { text-align: right; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.trend-adjusted { border-radius: 18px; background: var(--selected); padding: 12px; margin-top: 3px; }
.trend-adjusted dt { color: var(--text); }
.trend-notes { display: grid; gap: 4px; margin-top: 11px; }
.trend-history-card .trend-icon-button { margin-top: 13px; }
.trend-latest-weight { font-size: 1.75rem; font-weight: 700; margin-top: 9px; }
.trend-chart { display: block; width: 100%; margin: 12px 0; color: var(--text); }
.trend-chart text { font-size: 11px; fill: var(--muted); }
.trend-chart-grid { stroke: var(--line); stroke-width: 1; }
.trend-chart-series { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.trend-chart-gap { stroke-width: 1.6; stroke-dasharray: 3 4; }
.trend-chart-point { fill: var(--accent); }
.trend-chart-empty { margin-top: 12px; }
.trend-chart-card > .button { width: 100%; margin-top: 8px; }
.trend-dialog { width: min(calc(100% - 42px), 420px); padding: 22px; margin: auto; background: #272727; color: var(--text); border: 1px solid var(--line); border-radius: 24px; }
.trend-dialog::backdrop { background: rgb(0 0 0 / .68); }
.trend-weight-list { margin-bottom: 16px; }
.trend-dialog > .button { width: 100%; }
