:root {
  font-family: Inter, "PingFang SC", system-ui, sans-serif;
  color: #25352f;
  background: #f6f8f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  height: 100dvh;
}
aside {
  width: 250px;
  padding: 30px 20px;
  background: #edf2ec;
  border-right: 1px solid #dde5dc;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
  font-size: 20px;
  margin-bottom: 35px;
}
.brand span {
  background: #244f3e;
  color: white;
  border-radius: 10px;
  padding: 7px 10px;
}
.brand small {
  font-size: 10px;
  color: #7c9284;
  letter-spacing: 2px;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #24553f;
  color: white;
  font: inherit;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.08);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#new {
  background: white;
  color: #325240;
  border: 1px solid #d3dfd4;
  text-align: left;
}
nav {
  overflow: auto;
  margin-top: 22px;
  flex: 1;
}
nav button {
  display: block;
  background: transparent;
  color: #526358;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 3px 0;
}
nav button.active {
  background: #dde8dc;
  color: #1d4b35;
}
footer {
  font-size: 12px;
  line-height: 1.8;
  color: #7d8d80;
}
main {
  max-width: 1160px;
  min-width: 0;
  flex: 1;
  margin: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 48px 24px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #e2e8df;
}
h1 {
  font-size: 20px;
  margin: 5px 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8b9b8a;
}
#connection {
  font-size: 12px;
  color: #6d856e;
}
#welcome {
  padding: 65px 20px 20px;
  flex: 1;
}
.badge {
  font-size: 10px;
  letter-spacing: 2px;
  background: #e4eddf;
  color: #597e4b;
  padding: 7px 12px;
  border-radius: 20px;
}
h2 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -1px;
}
p {
  color: #7b8879;
  font-size: 14px;
  line-height: 1.8;
}
.skill {
  margin-top: 25px;
  border: 1px solid #dbe4d6;
  background: white;
  padding: 20px;
  border-radius: 15px;
  max-width: 480px;
}
.skill strong {
  font-size: 15px;
}
.skill p {
  margin-bottom: 0;
  font-size: 12px;
}
#messages {
  flex: 1;
  overflow: auto;
  padding: 25px 0;
  display: none;
}
.message {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 14px;
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.message.user {
  background: #e7eee2;
  margin-left: 15%;
}
.message.assistant {
  background: white;
  border: 1px solid #e5eadd;
  margin-right: 4%;
}
.label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #859581;
  margin-bottom: 8px;
}
#status {
  color: #688063;
  font-size: 12px;
  min-height: 25px;
  padding: 5px;
}
#composer {
  border: 1px solid #d7e1d1;
  background: white;
  padding: 16px;
  border-radius: 17px;
  box-shadow: 0 6px 25px #30482008;
}
textarea {
  resize: none;
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: transparent;
  line-height: 1.7;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.actions span {
  flex: 1;
  color: #9aa393;
  font-size: 11px;
}
.actions button {
  padding: 8px 18px;
  font-size: 13px;
}
#stop {
  background: #edf0e9;
  color: #607259;
}
dialog {
  border: 1px solid #d6e0d0;
  border-radius: 20px;
  padding: 35px;
  width: 420px;
  box-shadow: 0 25px 100px #24322230;
}
dialog::backdrop {
  background: #18352430;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-size: 24px;
}
dialog input {
  width: 100%;
  border: 1px solid #cad8c4;
  padding: 14px;
  border-radius: 9px;
}
dialog button {
  width: 100%;
}
#login-error {
  color: #a24a35;
  font-size: 12px;
}
@media (max-width: 760px) {
  aside {
    width: 75px;
    padding: 20px 8px;
  }
  .brand {
    font-size: 0;
    gap: 0;
  }
  .brand span {
    font-size: 20px;
  }
  .brand small,
  aside footer {
    display: none;
  }
  #new {
    font-size: 11px;
    padding: 10px 5px;
  }
  nav button {
    font-size: 10px;
    padding: 10px 4px;
  }
  main {
    padding: 0 18px 18px;
  }
  #welcome {
    padding: 40px 0;
  }
  h2 {
    font-size: 28px;
  }
  .actions span {
    font-size: 10px;
  }
}
