@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #fcfcfa;
  --side: #f2f3ef;
  --card: #fff;
  --ink: #263933;
  --muted: #7b8580;
  --line: #e5e8e1;
  --accent: #416b57;
  --hover: #e7ece5;
  --shadow: 0 10px 38px #26393308;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px "DM Sans",
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid #63967b;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
aside {
  width: 260px;
  flex-shrink: 0;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 26px 18px 16px;
  display: flex;
  flex-direction: column;
  transition: margin 0.2s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 30px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.brand > b {
  font: 800 23px Manrope;
  letter-spacing: -1px;
  flex: 1;
}
.brand b span {
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 4px;
  color: var(--muted);
}
.icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 21px;
  display: inline-grid;
  place-items: center;
}
.icon:hover,
.nav:hover {
  background: var(--hover);
}
.new {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 10px;
  border: 1px solid #d7ded3;
  border-radius: 9px;
  background: var(--card);
  font-weight: 600;
  text-align: left;
}
kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 4px;
  font: 10px "DM Sans";
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 17px;
}
.nav span {
  font-size: 13px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 32px 12px 10px;
}
.small-tag {
  margin-left: auto;
  background: var(--hover);
  border-radius: 4px;
  padding: 1px 5px;
}
.history-label {
  margin-top: 28px;
}
#history {
  flex: 1;
  overflow: auto;
}
.history-item {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 7px;
}
.history-item:hover,
.history-item.active {
  background: var(--hover);
}
.side-bottom {
  margin-top: auto;
}
.budget {
  padding: 16px 12px 20px;
  font-size: 11px;
}
.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5b926d;
  margin-right: 6px;
}
.budget p {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 4px 0;
  width: 100%;
  text-align: left;
}
.avatar {
  background: #dce6d8;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 12px;
}
.profile > span:nth-child(2) {
  flex: 1;
}
.profile b {
  display: block;
  font-size: 11px;
}
.profile small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
header {
  height: 84px;
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.model {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
}
.model span {
  font-size: 10px;
  background: #edf2e9;
  color: #57755a;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.preview-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-right: 10px;
}
.outline {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 12px;
}
#menu {
  display: none;
}
#scroll {
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
  padding: 0 28px;
}
#welcome {
  max-width: 830px;
  margin: clamp(35px, 8vh, 110px) auto 30px;
  text-align: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.spark {
  color: #67866e;
  font-size: 22px;
  display: block;
  margin-bottom: 20px;
}
h1 {
  font: 500 clamp(33px, 3.5vw, 52px)/1.2 Manrope;
  letter-spacing: -2px;
  margin: 21px 0 20px;
}
h1 span {
  color: #829184;
}
#welcome > p {
  color: var(--muted);
  font-size: 15px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 46px;
}
.suggestions button {
  text-align: left;
  padding: 20px 17px 19px;
  border: 1px solid var(--line);
  border-radius: 13px;
  position: relative;
  background: var(--card);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.suggestions button:hover {
  transform: translateY(-3px);
  border-color: #94ae99;
}
.suggestions button > span {
  font-size: 21px;
  display: block;
  margin-bottom: 20px;
  color: #6a846d;
}
.suggestions b {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.suggestions small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.suggestions i {
  position: absolute;
  right: 16px;
  top: 20px;
  color: #a0aea3;
  font-style: normal;
}
.composer-wrap {
  width: min(820px, calc(100% - 64px));
  margin: 24px auto 22px;
}
#composer {
  border: 1px solid #d9dfd4;
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 17px 12px;
}
textarea {
  width: 100%;
  resize: none;
  max-height: 200px;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  padding: 0 5px;
}
textarea::placeholder {
  color: #939b94;
}
.composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.composer-bottom > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool {
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
  border-radius: 7px;
}
.tool:hover {
  background: var(--hover);
}
.send {
  background: var(--accent);
  color: white;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  font-size: 22px;
}
.footnote {
  text-align: center;
  color: #949c94;
  font-size: 10px;
  margin-top: 14px;
}
.footnote span {
  margin-left: 18px;
}
#messages {
  max-width: 760px;
  margin: 25px auto;
}
.msg {
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user {
  margin-left: auto;
  max-width: 85%;
  width: fit-content;
  background: var(--side);
  border-radius: 16px;
  padding: 12px 18px;
}
.msg.assistant {
  padding: 4px 0;
}
.msg .label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 8px;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.actions button {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 7px;
  border-radius: 5px;
}
.actions button:hover {
  background: var(--hover);
}
.thinking {
  color: var(--muted);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
dialog {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 530px;
  width: calc(100% - 32px);
  padding: 24px;
  box-shadow: 0 24px 80px #0002;
}
dialog::backdrop {
  background: #13221c60;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
dialog h2 {
  font-size: 19px;
  margin: 0;
}
.choice {
  display: block;
  width: 100%;
  padding: 14px 12px;
  text-align: left;
  border-radius: 9px;
}
.choice:hover {
  background: var(--hover);
}
.choice b {
  display: block;
  font-size: 13px;
}
.choice small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.dialog-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--card);
  padding: 12px 18px;
  border-radius: 10px;
  display: none;
  z-index: 100;
  font-size: 12px;
}
#attachments {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.file-chip {
  padding: 7px 10px;
  background: var(--side);
  border-radius: 8px;
  font-size: 11px;
}
.file-chip button {
  margin-left: 8px;
}
body.collapsed aside {
  margin-left: -260px;
}
body.collapsed #menu {
  display: inline-grid;
}
body.dark {
  --bg: #1c221f;
  --side: #171d19;
  --card: #242c26;
  --ink: #e5ebe1;
  --muted: #9ba69c;
  --line: #354037;
  --hover: #303c32;
  --accent: #6f9479;
}
.dark h1 span {
  color: #91ab97;
}
.dark .model span {
  background: #303c32;
  color: #c7dbc3;
}
.dark .avatar {
  background: #3c5140;
}
.dark .send {
  color: #fff;
}
@media (max-width: 900px) {
  aside {
    width: 230px;
  }
  .composer-wrap {
    width: calc(100% - 40px);
  }
  header {
    padding: 20px;
  }
  h1 {
    font-size: 37px;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestions button {
    padding: 17px 12px;
  }
  .suggestions small {
    line-height: 1.5;
  }
  body.collapsed aside {
    margin-left: -230px;
  }
}
@media (max-width: 650px) {
  aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    z-index: 20;
    box-shadow: 0 0 0 100vw #0004;
  }
  body:not(.mobile-open) aside {
    display: none;
  }
  body.collapsed aside {
    margin-left: 0;
  }
  #menu {
    display: inline-grid;
  }
  header {
    height: 70px;
    padding: 16px;
  }
  .preview-label {
    display: none;
  }
  .outline {
    font-size: 10px;
  }
  .model {
    font-size: 14px;
    gap: 6px;
  }
  #scroll {
    padding: 0 20px;
  }
  #welcome {
    margin: 40px auto 25px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1.5px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.3px;
  }
  .suggestions {
    grid-template-columns: 1fr;
    margin-top: 25px;
  }
  .suggestions button {
    padding: 14px 40px 14px 46px;
  }
  .suggestions button > span {
    position: absolute;
    left: 16px;
    top: 19px;
    margin: 0;
  }
  .suggestions small {
    margin-top: 4px;
  }
  .suggestions i {
    top: 22px;
  }
  .composer-wrap {
    width: calc(100% - 24px);
    margin: 12px auto 16px;
  }
  #composer {
    padding: 14px 11px 10px;
  }
  .tool {
    font-size: 10px;
    padding: 6px;
  }
  .footnote {
    font-size: 9px;
    line-height: 1.5;
  }
  .footnote span {
    display: none;
  }
  .composer-bottom > div {
    gap: 1px;
  }
  .msg {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#welcome {
  margin-top: clamp(20px, 4vh, 50px);
}
.suggestions {
  margin-top: 28px;
}
.suggestions button > span {
  margin-bottom: 14px;
}
.brand {
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}
.wave-brand {
  display: block;
  position: relative;
  width: 193px;
  height: 66px;
  overflow: hidden;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}
.brand .wave-brand img {
  position: absolute;
  width: 270px;
  height: 270px;
  max-width: none;
  border-radius: 0;
  left: -33px;
  top: -100px;
}
.brand > .icon {
  margin-left: auto;
  flex-shrink: 0;
}
.dark .wave-brand {
  mix-blend-mode: screen;
  filter: invert(1) hue-rotate(180deg);
}
.brand {
  padding-bottom: 19px;
}
@media (min-width: 651px) and (max-width: 900px) {
  .wave-brand {
    width: 163px;
  }
  .brand .wave-brand img {
    width: 238px;
    height: 238px;
    left: -32px;
    top: -86px;
  }
}
.brand .wave-brand img {
  width: 250px;
  height: 250px;
  left: -29px;
  top: -92px;
}
@media (min-width: 651px) and (max-width: 900px) {
  .brand .wave-brand img {
    width: 219px;
    height: 219px;
    left: -28px;
    top: -80px;
  }
}
