.ha-support-chat[hidden],
.ha-support-chat [hidden] { display: none !important; }
.ha-support-chat {
  margin-block: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #bccbbe;
  border-radius: 1rem;
  background: #f6f8f1;
  color: #163b31;
}
.ha-support-chat h2 { margin-block: .75rem; }
.ha-support-chat form, .ha-support-chat label { display: grid; gap: .5rem; }
.ha-support-chat textarea {
  width: 100%;
  border: 1px solid #79978a;
  border-radius: .5rem;
  padding: .65rem;
  background: white;
  color: #163b31;
  font: inherit;
  resize: vertical;
}
.ha-support-chat button {
  justify-self: start;
  min-height: 44px;
  border: 1px solid #315f4e;
  border-radius: .55rem;
  padding: .5rem .9rem;
  background: #174f3e;
  color: white;
  font: inherit;
  cursor: pointer;
}
.ha-support-chat button:disabled { opacity: .65; }
.ha-support-chat form + button { margin-top: .75rem; }
.ha-support-chat ul { display: grid; gap: .4rem; padding-left: 0; list-style: none; }
.ha-support-chat [role="log"] { max-height: 20rem; overflow-y: auto; }
.ha-support-chat [role="log"] p { background: white; padding: .65rem; border-radius: .55rem; }
.ha-support-chat [role="log"] span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.ha-support-chat a { color: #174f3e; text-decoration: underline; }
.support-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.support-hero-actions .support-chat-cta { display: inline-flex; align-items: center; min-height: 44px; }
.gp-support-entry {
  min-height: 44px;
  align-self: flex-start;
  padding: .5rem .75rem;
  border: 1px solid #6d8c7b;
  border-radius: .55rem;
  background: #f6f8f1;
  color: #174f3e;
  font: inherit;
  cursor: pointer;
}
.gp-dialog:has(#gp-human-support:not([hidden])) { overflow-y: auto; }
.gp-dialog:has(#gp-human-support:not([hidden])) :is(.gp-dialog-form, .gp-dialog-choices, .gp-mode-tools, .gp-support-entry) {
  display: none;
}
.gp-dialog:has(#gp-human-support:not([hidden])) .gp-dialog-log {
  flex: none;
  max-height: 25dvh;
}
#gp-human-support { flex: none; margin: .75rem; }
