:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292c27;
  background: #f8f8f2;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1px solid #dadcd0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  padding: 10px 14px;
}
button:hover {
  background: #e9eddf;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100dvh;
}
aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #eff0e8;
  border-right: 1px solid #dfe1d5;
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand span {
  color: #667c30;
  font-size: 31px;
}
.new-chat {
  margin: 38px 0 28px;
  background: #f9faf5;
  text-align: left;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #787e6d;
}
aside .eyebrow {
  padding-left: 10px;
}
nav {
  overflow: auto;
  flex: 1;
}
nav button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  margin: 4px 0;
}
nav button.selected {
  background: #dfe6d2;
}
.aside-bottom {
  border-top: 1px solid #dadcd0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.aside-bottom > button:first-child {
  text-align: left;
  border: 0;
}
.aside-bottom > span {
  font-size: 11px;
  color: #7a806f;
  padding: 0 14px;
  overflow-wrap: anywhere;
}
#plugin-count {
  float: right;
  color: #718051;
}
.quiet {
  border: 0;
  color: #777e6c;
  font-size: 12px;
}
main {
  min-width: 0;
}
header {
  height: 82px;
  padding: 0 42px;
  border-bottom: 1px solid #e8e9e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #7b8074;
  font-size: 12px;
}
header > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header > div {
  display: flex;
  flex-shrink: 0;
}
#chat-view {
  height: calc(100dvh - 82px);
  display: flex;
  flex-direction: column;
  padding: 0 40px;
}
#messages {
  flex: 1;
  overflow-y: auto;
  padding: 30px max(0px, calc((100% - 750px) / 2));
  scrollbar-width: thin;
}
.welcome {
  padding: 9vh 0 20px;
}
.lark {
  font-size: 54px;
  color: #647d33;
  display: block;
  margin-bottom: 28px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.09;
  letter-spacing: -2px;
  margin: 20px 0;
}
.welcome > p:not(.eyebrow),
.plugins-heading > p:last-child,
.login > div > p:not(.eyebrow) {
  color: #808577;
  line-height: 1.8;
  font-size: 14px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.suggestions button {
  background: #fdfdf9;
  font-size: 12px;
}
#composer {
  width: 100%;
  max-width: 750px;
  margin: 18px auto 0;
  padding: 16px 20px 12px;
  border: 1px solid #d9decd;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 4px 20px #353d2010;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  max-height: 200px;
  border: 0;
  background: transparent;
  color: #333a2b;
  outline: none;
  line-height: 1.6;
}
textarea::placeholder {
  color: #9b9f92;
}
.composer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
#chat-status {
  flex: 1;
  color: #909781;
  font-size: 10px;
}
#send {
  background: #d6e59e;
  border: 0;
  padding: 5px 13px;
  font-size: 22px;
}
.footnote {
  text-align: center;
  color: #989c8f;
  font-size: 10px;
  margin: 13px 0 20px;
}
.message {
  padding: 18px 0;
}
.speaker {
  color: #687c42;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
}
.message.user .speaker {
  color: #8a8f80;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 14px;
}
.message.user .message-text {
  background: #ecefe2;
  padding: 14px 18px;
  border-radius: 12px;
}
#approvals {
  width: 100%;
  max-width: 750px;
  margin: auto;
  max-height: 45dvh;
  overflow: auto;
}
#approvals h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
}
.approval {
  border: 1px solid #cbd5b4;
  border-radius: 12px;
  background: #f0f4e5;
  padding: 18px;
  margin-bottom: 12px;
}
.approval strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 150px;
  overflow: auto;
}
.decided {
  opacity: 0.65;
}
.primary {
  background: #d4e59e;
  border: 1px solid #c8d78f;
  color: #354322;
}
.primary:hover {
  background: #c6db88;
}
#plugins-view {
  max-width: 1060px;
  padding: 40px 50px 80px;
  margin: auto;
}
.plugins-heading {
  margin-bottom: 32px;
}
.plugins-heading h1 {
  font-size: 46px;
}
.plugin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #e0e3d6;
}
.plugin-row > div {
  flex: 1;
  min-width: 0;
}
.plugin-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.plugin-state {
  display: block;
  font-size: 11px;
  color: #7a8665;
  margin-top: 5px;
}
.connect-url {
  padding: 20px 0;
  margin-bottom: 24px;
}
summary {
  color: #727e60;
  font-size: 13px;
  padding: 8px 0;
}
form label {
  display: block;
  font-size: 12px;
  margin: 18px 0;
}
input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d8ddcd;
  border-radius: 8px;
  margin-top: 7px;
  background: #fffefa;
  color: #343e29;
}
input:focus,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8ca751;
  outline-offset: 2px;
}
#connect-form {
  max-width: 500px;
}
.muted {
  color: #8b9180;
  font-size: 12px;
  line-height: 1.7;
}
.login {
  max-width: 1050px;
  margin: auto;
  min-height: 100dvh;
  padding: 45px 50px 25px;
  display: flex;
  flex-direction: column;
}
.login > div {
  max-width: 430px;
  margin: auto 0;
  padding: 60px 0;
}
.login h1 {
  font-size: 64px;
}
.login form {
  margin-top: 30px;
  max-width: 320px;
}
.login-footer {
  color: #9a9f8d;
  font-size: 11px;
}
.popup {
  padding: 60px;
}
#notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 440px;
  background: #34432b;
  color: #f5f8ed;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 6px 25px #24321920;
  z-index: 10;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  aside {
    position: static;
    height: auto;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #dfe1d5;
  }
  .new-chat {
    margin: 0;
    font-size: 12px;
  }
  aside > .eyebrow {
    display: none;
  }
  nav {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
  }
  nav:empty {
    display: none;
  }
  nav button {
    flex-shrink: 0;
    width: auto;
    max-width: 200px;
  }
  .aside-bottom {
    grid-column: 1 / -1;
    flex-direction: row;
    padding-top: 0;
    border: 0;
    justify-content: space-between;
  }
  .aside-bottom > span {
    display: none;
  }
  #plugin-count {
    float: none;
    margin-left: 8px;
  }
  .brand {
    font-size: 24px;
    gap: 7px;
  }
  header {
    padding: 0 18px;
    height: 48px;
  }
  header > span {
    display: none;
  }
  #chat-view {
    padding: 0 15px;
    height: calc(100dvh - 190px);
    min-height: 560px;
  }
  .welcome {
    padding-top: 5vh;
  }
  .welcome p br {
    display: none;
  }
  #plugins-view {
    padding: 24px 18px;
  }
  .plugins-heading h1 {
    font-size: 34px;
  }
  .plugin-row {
    flex-wrap: wrap;
  }
  .plugin-row > div {
    flex-basis: 100%;
  }
  .login {
    padding: 30px;
  }
  .login h1 {
    font-size: 52px;
  }
  #notice {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
}
