.note {
  --state: ready;
  margin: 0;
  max-width: 16rem;
  padding: 0.75rem 1rem;
  color: black;
  font: 0.875rem system-ui, sans-serif;
  background: gainsboro;
  border: 2px solid gray;
  background: if(style(--state: ready): honeydew; else: mistyrose);
  border-color: if(style(--state: ready): seagreen; else: tomato);
}