:root {
  font: 100%/1.5 system-ui, sans-serif;
  color: #102e52;
  background: #eef4f9;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; font-size: 1.125rem; }
[hidden] { display: none !important; }
.assistant {
  background: #fff;
  display: flex;
  flex-direction: column;
  width: min(100%, 740px);
  height: min(90dvh, 780px);
  border: 1px solid #dbe5ee;
  border-radius: 1rem;
  overflow: hidden;
}
.embedded .assistant { height: 100dvh; border: 0; border-radius: 0; }
.heading {
  background: #102e52;
  color: #fff;
  min-height: 3.4rem;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.heading h1 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.125rem; }
.heading-icon { flex: none; width: 2.125rem; height: 2.125rem; object-fit: contain; }
h2 { margin: 0; font-size: 1.6rem; }
.welcome { margin: auto; padding: 1.4rem; max-width: 31rem; }
.welcome p { margin: .6rem 0 1.25rem; }
button, select, textarea { font: inherit; }
button, .primary { cursor: pointer; }
.primary {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: .5rem;
  background: #165b84;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  padding: .55rem .85rem;
}
.primary:hover { background: #104768; }
.quiet {
  padding: .42rem .5rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  border-radius: .45rem;
  white-space: nowrap;
  font-size: 1rem;
}
:focus-visible { outline: 2px solid #00869f; outline-offset: 2px; }
button:disabled, select:disabled { cursor: wait; opacity: .6; }
.chat { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.toolbar { display: flex; gap: .4rem; padding: .6rem .75rem; border-bottom: 1px solid #dbe5ee; }
select, textarea { color: inherit; border: 1px solid #aabccc; border-radius: .45rem; padding: .35rem .5rem; background: #fff; }
select { min-width: 0; flex: 1; font-size: 1rem; }
.messages { flex: 1; min-height: 0; overflow: auto; padding: .85rem; }
.empty { color: #52677c; }
.message {
  max-width: 94%;
  width: fit-content;
  margin: 0 0 .6rem;
  padding: .5rem .7rem;
  border-radius: .65rem;
  background: #edf3f8;
  overflow-wrap: anywhere;
}
.message.user { margin-left: auto; background: #dff3f6; }
.message p { margin: .2rem 0 0; white-space: pre-wrap; }
.message a { color: #165b84; text-underline-offset: .15em; }
.message strong { font-size: 1rem; }
#compose { display: flex; gap: .5rem; padding: .65rem .75rem; border-top: 1px solid #dbe5ee; align-items: end; }
textarea { flex: 1; min-width: 0; resize: vertical; max-height: 7rem; }
.status { color: #52677c; font-size: 1rem; margin: .1rem .8rem .6rem; }
.status:empty { margin: 0; }
@media (max-width: 600px) {
  .assistant { height: 100dvh; border: 0; border-radius: 0; }
}
dialog {
  color: inherit;
  border: 1px solid #dbe5ee;
  border-radius: .65rem;
  max-width: calc(100% - 2rem);
  padding: 1rem;
}
dialog p { margin: 0 0 .85rem; }
dialog::backdrop { background: #102e526e; }

.support-options { padding: .15rem .75rem .6rem; }
.support-options p { margin: 0; font-size: 1rem; }
.support-options button { white-space: normal; text-align: left; }
#confirm-support input {
  display: block;
  width: 100%;
  margin: .25rem 0 1rem;
  padding: .4rem .5rem;
  font: inherit;
  color: inherit;
  border: 1px solid #aabccc;
  border-radius: .45rem;
}
.dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
