#greenHealthRoot fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px;min-width:0}
#greenHealthRoot label{display:grid;gap:6px;min-width:0}
#greenHealthRoot input,#greenHealthRoot select,#greenHealthRoot textarea{max-width:100%;box-sizing:border-box}
#greenHealthRoot dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#greenHealthRoot dl div{margin:8px 0}
#greenHealthRoot .green-health-results{display:grid;gap:16px;margin-top:16px}

#greenHealthRoot .green-health-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin-top:16px}

#greenHealthRoot .green-health-chart svg{width:100%;height:auto;max-height:260px}#greenHealthRoot .green-health-chart table{width:100%;table-layout:fixed}#greenHealthRoot .green-health-chart td{overflow-wrap:anywhere}

#greenHealthRoot fieldset>p,#greenHealthRoot fieldset>small{grid-column:1/-1}#greenHealthRoot .green-health-temperature{min-width:0}#greenHealthRoot .green-health-temperature small{display:block;margin-top:4px}

#greenHealthRoot label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px;min-height:40px}#greenHealthRoot label>input[type=checkbox]{width:auto}

/* Keep Green Health primary actions in a clear vertical order on phones. */
@media(max-width:600px){
 #greenHealthRoot>.card>.intro:has(>button[data-health="new"]){display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 #greenHealthRoot>.card>.intro:has(>button[data-health="new"])>h2{margin:0 0 4px}
 #greenHealthRoot>.card>.intro>button[data-health="new"],#greenHealthRoot>.card>.intro>button[data-health="export"]{width:100%;min-width:0}
}
