body > main {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container-fluid {
  max-width: 1024px;
}

textarea {
  field-sizing: content;
  scrollbar-width: none;
  resize: none;
}

code {
  padding: 0.125rem 0.375rem;
  vertical-align: middle;
}

pre > code {
  overflow-x: auto;
}

ul#chat > article#github {
  text-align: center;
}

ul#chat {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
  padding-left: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin-bottom: 1rem;
}

ul#chat > li {
  list-style-type: none;
  border-radius: 0.5rem;
  margin-bottom: 0;
  padding: 1rem;
}

ul#chat > li.user {
  background-color: #0172ad;
  align-self: flex-end;
}

ul#chat > li.thoughts {
  background-color: #5E206B;
}

ul#chat > li.assistant {
  background-color: #525f7a;
}

ul#chat > li.assistant :last-child {
  margin-bottom: 0;
}

section#actions {
  margin-bottom: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-direction: row-reverse;
}

section#actions > button[type="submit"],
section#settings > button[type="submit"] {
  margin-bottom: 0;
  font-size: small;
  font-weight: 500;
  width: 5rem;
}

section#actions > small {
  flex-grow: 1;
  margin-top: 0.25rem;
  margin-left: 0.25rem;
}

section#settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

a[data-placement="right"] {
  padding-right: 0.5rem;
}

.warning {
  color: #ffc107;
}

#models {
  position: relative;

  fieldset {
    bottom: 100%;
    position: absolute;
    width: max-content;
    border-radius: 1rem;
    background-color: var(--pico-form-element-background-color);
    padding: 1rem 2rem 1rem 1rem;
    margin-left: -1rem;
  }
}

.hidden {
  display: none;
}

a.closed > svg {
  transform: rotate(0deg);
  transition: transform 0.25s ease-in-out;
}

a.opened > svg {
  transform: rotate(90deg);
  transition: transform 0.25s ease-in-out;
}
