/* Quality of life: the chart is the primary working surface. */
.qol-trend-panel{padding:24px;margin-bottom:20px}
.qol-trend-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.qol-trend-heading label{display:flex;align-items:center;gap:12px;margin:0;flex:0 1 310px;font-size:14px}
.qol-trend-heading select{margin:0;min-width:0;flex:1}
.qol-legend{display:flex;flex-wrap:wrap;gap:12px 26px;padding:0;margin:24px 0 18px;list-style:none}
.qol-legend li{display:flex;align-items:center;gap:8px;font-size:14px}
.qol-legend svg{flex:0 0 42px;overflow:visible}
.qol-range{font-size:14px;color:#514e49;margin:0 0 4px}
.qol-chart-scroll{overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;border-radius:3px}
.qol-chart-scroll:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.qol-trend-chart{display:block;width:100%;min-width:var(--qol-chart-width);height:auto;color:var(--ink)}
.qol-trend-chart text{fill:#514e49;font:14px Rubik,Arial,sans-serif;font-variant-numeric:tabular-nums}
.qol-grid{stroke:var(--line,#d7d2c8);stroke-width:1}
.qol-grid-average{stroke:#9a958a;stroke-dasharray:3 5}
.qol-tick{stroke:#9a958a;stroke-width:1}
.qol-chart-note{font-size:14px;color:#514e49;max-width:760px;margin:6px 0 0}
.qol-empty{padding:36px 0 24px;border-top:1px solid var(--line);min-height:210px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.qol-empty h3{font-size:20px;margin-bottom:12px}
.qol-empty p{max-width:650px;color:#514e49;font-size:16px;margin-bottom:10px}
.qol-recording{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.qol-recording h2{font-size:17px;margin-bottom:6px}
.qol-recording p{font-size:14px;color:#514e49;margin:0}
.qol-record-controls{display:flex;align-items:center;gap:12px}
.qol-record-controls .toolbar{margin:0}
.qol-record-controls .toolbar label{font-size:14px}
.qol-record-controls input{max-width:190px}
.qol-record-controls button{white-space:nowrap}
.qol-history{margin:18px 0}
.qol-history table{min-width:650px}
.qol-history td{font-variant-numeric:tabular-nums}
.qol-history th,.qol-history td{padding:14px}
.qol-history summary{font-size:16px}
@media(max-width:850px){.qol-recording{display:block}.qol-record-controls{margin-top:16px;flex-wrap:wrap}.qol-record-controls .toolbar label{width:auto}}
@media(max-width:650px){.qol-trend-panel{padding:18px 14px}.qol-trend-heading{display:block}.qol-trend-heading label{margin-top:16px;width:100%}.qol-trend-heading h2{font-size:20px}.qol-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin:22px 0 18px}.qol-legend li{align-items:flex-start;font-size:14px;line-height:1.4;gap:6px}.qol-legend svg{margin-top:2px;flex-basis:32px;width:32px}.qol-record-controls{display:grid;grid-template-columns:1fr;gap:12px}.qol-record-controls .toolbar,.qol-record-controls .toolbar label{width:100%}.qol-record-controls .toolbar label{justify-content:space-between}.qol-record-controls input{max-width:190px}.qol-record-controls button{justify-self:start}.qol-empty{padding-top:24px;min-height:230px}.qol-empty h3{font-size:18px}.qol-range,.qol-chart-note{font-size:14px}}
@media print{.qol-recording,.qol-trend-heading label{display:none}.qol-chart-scroll{overflow:visible}.qol-trend-chart{min-width:0;width:100%}.qol-trend-panel{break-inside:avoid}.qol-legend{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
