/* Scoped charts: preserve the existing centered greenhouse command deck. */
#history .history-overview{color:#8fb9b9;font-size:10px;margin:12px 0;line-height:1.7}
#history .history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#history .trend-card{min-width:0;padding:14px 12px 10px;background:linear-gradient(145deg,#102d35,#091f28);border:1px solid #254750;border-radius:8px}
#history .trend-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
#history .trend-card h3{font-size:12px;margin:0;display:flex;align-items:center;gap:7px;color:#d1e9e7;font-weight:600}
#history .trend-dot{width:6px;height:6px;border-radius:50%;background:var(--trend-color);box-shadow:0 0 8px color-mix(in srgb,var(--trend-color) 35%,transparent)}
#history .trend-unit{color:#739da4;font-size:10px}
#history .trend-reading{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:10px 0}
#history .trend-reading strong{font-size:24px;color:var(--trend-color);line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums}
#history .trend-reading strong small{font-size:10px;margin-left:4px;font-weight:400}
#history .trend-reading>span{font-size:8px;line-height:1.6;color:#7faaa9;text-align:right}
#history .trend-stats{display:flex;justify-content:space-between;gap:4px;color:#74999f;font-size:9px;padding-bottom:7px;border-bottom:1px solid #1d3d46}
#history .trend-stats b{color:#c4dcd8;font-weight:500;margin-left:3px;font-variant-numeric:tabular-nums}
#history .trend-plot{height:142px;margin-top:4px}#history .trend-plot svg{width:100%;height:100%;overflow:visible}
#history .trend-grid line{stroke:#26454c;stroke-dasharray:3 5}#history .trend-grid text{fill:#71979f;font-size:10px}
#history .trend-line path{fill:none;stroke:var(--trend-color);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#history .trend-line circle{fill:var(--trend-color)}
#history .trend-dates{display:flex;justify-content:space-between;gap:4px;font-size:8px;line-height:1.5;color:#71989f;font-variant-numeric:tabular-nums}
#history .trend-foot{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;margin-top:8px;font-size:8px;color:#709398}
#history .trend-quality{color:#d0b37c}#history .trend-empty{min-height:231px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#658a93;text-align:center}
#history .trend-empty strong{font-weight:500;font-size:13px}#history .trend-empty span{font-size:10px}
#history .no-data{border-style:dashed;background:#0b232c}#history .history-note{display:block;margin:12px 0 0;color:#73959c;font-size:9px;line-height:1.8}
#historyCharts[aria-busy="true"]{opacity:.6}
@media(min-width:761px) and (max-width:1250px){#history .history-grid{grid-template-columns:1fr}}
@media(max-width:520px){#history .history-grid{grid-template-columns:1fr}#history .trend-reading>span{font-size:9px}#history .trend-dates,#history .trend-foot{font-size:9px}}

/* Six miniature charts fit into one dashboard panel. */
#history .history-overview{margin:7px 0;font-size:9px}
#history .history-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#history .trend-card{height:118px;padding:7px 8px;border-radius:6px;display:flex;flex-direction:column}
#history .trend-card-head{gap:4px;min-height:15px}
#history .trend-card h3{font-size:10px;gap:5px;white-space:nowrap}
#history .trend-unit{font-size:8px}
#history .trend-dot{height:5px;width:5px;flex-shrink:0}
#history .trend-reading{margin:2px 0 0;min-height:23px}
#history .trend-reading strong{font-size:18px;line-height:1.15}
#history .trend-reading strong small{font-size:9px}
#history .trend-reading>span,#history .trend-stats,#history .trend-dates,#history .trend-foot{display:none}
#history .trend-plot{height:60px;min-height:0;flex:1;margin:2px 0 0}
#history .trend-grid text{display:none}
#history .trend-line path{stroke-width:1.5}
#history .trend-empty{min-height:0;flex:1;gap:4px}
#history .trend-empty strong{font-size:10px}
#history .trend-empty span{font-size:8px}
#history .history-note{font-size:8px;margin:7px 0 0;line-height:1.6}
@media(min-width:761px) and (max-width:1100px){
 #history .trend-card{padding:6px 5px;height:108px}
 #history .trend-card h3{font-size:9px;gap:3px}
 #history .trend-unit{display:none}
 #history .trend-reading strong{font-size:16px}
}
@media(max-width:520px){
 #history .history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #history .trend-card{height:112px}
}
