:root {
  color-scheme: dark;
  --bg: #0F0A0A;
  --panel: #1B1B20;
  --line: rgba(189, 200, 214, 0.5);
  --text: #BDC8D6;
  --muted: #7553FF;
  --accent: #7553FF;
  --accent-hover: #5300FF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;

  display: flex;
  align-items: center;
  justify-content: center;
}

.shell {
  width: min(640px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0;
}


/* Logo */

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.brand img {
  display: block;
  width: auto;
  height: 72px;
}


/* Conversation */

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;

  height: 240px;
  overflow-y: auto;

  margin: 18px 0;
  padding: 20px;

  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: 10px;

  text-align: left;
}

.message {
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
}

.assistant {
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
}

.user {
  align-self: flex-end;
  width: auto;
  max-width: 75%;

  background: var(--accent);
  color: #ffffff;

  padding: 8px 12px;
  border-radius: 14px;

  font-weight: 400;
  text-align: left;
}


/* Question box */

.composer {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.composer input {
  flex: 1;
  height: 44px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.composer input:focus {
  outline: none;
  border-color: var(--line);
}

.composer button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: var(--accent);
  color: #ffffff;

  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.composer button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.composer button:not(:disabled):hover {
  background: var(--accent-hover);
}

.composer button:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Architecture reference */

.note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #7f8891;
}

.note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.note a:hover {
  color: var(--accent);
}


/* Accessibility */

.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;
}


/* Mobile */

@media (max-width: 650px) {
  .shell {
    padding-top: 34px;
  }

  .composer {
    flex-direction: column;
  }
  
.composer button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
  
}
