:root {
  color-scheme: dark;
  --bg: #080d17;
  --blue: #63a7fa;
  --muted: #98a7bb;
  --line: #233146;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 60%, #10253c 0, transparent 48%), var(--bg);
  color: #f6f8fc;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header,
footer {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.1;
}
.brand-small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 5px;
}
.mark {
  font-size: 42px;
  color: var(--blue);
  font-weight: 400;
}
.back {
  font-size: 13px;
  color: #b3c0d1;
}
main {
  max-width: 1300px;
  margin: 32px auto 52px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 70px;
  align-items: center;
}
aside {
  position: relative;
  padding: 30px 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  color: var(--blue);
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 3.7vw, 51px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 25px 0;
}
h1 span {
  color: var(--blue);
}
.intro {
  max-width: 400px;
  color: var(--muted);
  font-size: 15px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.tags span {
  border: 1px solid #2a3b50;
  border-radius: 30px;
  font-size: 11px;
  color: #b6c6db;
  padding: 6px 12px;
}
.orbit {
  height: 180px;
  display: grid;
  place-items: center;
  max-width: 300px;
}
.orbit div {
  font-size: 90px;
  color: #63a7fa;
  transform: rotate(-15deg);
  text-shadow: 0 0 60px #438ada55;
}
.aside-foot {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c6d2e1;
}
.aside-foot span {
  color: #6f829c;
  letter-spacing: 0.5px;
}
.chat {
  height: 640px;
  max-height: 80vh;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  background: #0f1724;
  border: 1px solid #29364b;
  border-radius: 22px;
  box-shadow: 0 25px 80px #0005;
  overflow: hidden;
}
.chat-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  background: #1d3453;
  color: var(--blue);
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 27px;
}
h2 {
  font-size: 14px;
  margin: 0;
}
.chat-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 0;
}
.quiet {
  background: none;
  border: 0;
  color: #a6bad4;
  font-size: 18px;
}
.chat-head .quiet {
  margin-left: auto;
}
.chat-head #reset {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px;
}
@media (max-width: 420px) {
  .chat-head { flex-wrap: wrap; gap: 8px; }
}
.download-controls { position: relative; margin-left: auto; }
.chat-head .download-trigger { margin-left: 0; font-size: 12px; white-space: nowrap; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.download-trigger:hover, .download-trigger:focus-visible { color: var(--blue); border-color: var(--blue); }
.download-menu { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; min-width: 180px; padding: 5px; background: #17253a; border: 1px solid #395171; border-radius: 10px; box-shadow: 0 12px 30px #0008; }
.download-menu[hidden] { display: none; }
.download-menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: #f6f8fc; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.download-menu button:hover, .download-menu button:focus-visible { background: #274363; }
@media (max-width: 420px) { .chat-head .download-trigger { font-size: 11px; padding: 6px; } }
#messages {
  overflow: auto;
  flex: 1;
  padding: 24px;
  scroll-behavior: smooth;
}
.welcome {
  text-align: center;
  padding: 22px 2px;
}
.welcome-icon {
  color: var(--blue);
  font-size: 36px;
}
h3 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 10px 0;
}
.welcome p {
  font-size: 12px;
  color: var(--muted);
}
.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 25px;
}
.suggestions button {
  background: #141f30;
  border: 1px solid #293a52;
  border-radius: 10px;
  color: #c7d5e8;
  font-size: 12px;
  text-align: left;
  padding: 11px 14px;
}
.suggestions button:hover {
  border-color: var(--blue);
}
.copy-answer {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 10px;
  border: 1px solid #35547b;
  border-radius: 8px;
  background: #152941;
  color: #b9d9ff;
  font-size: 12px;
  font-weight: 600;
}
.copy-answer:hover { background: #214064; border-color: var(--blue); }
.replay-answer { margin-left: 8px; }
.copy-answer:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.compose {
  padding: 0 20px 18px;
}
form {
  display: flex;
  align-items: end;
  padding: 9px;
  gap: 6px;
  background: #080f1b;
  border: 1px solid #33435a;
  border-radius: 14px;
}
textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  max-height: 100px;
  background: none;
  border: 0;
  color: white;
  padding: 7px;
  outline: none;
  font-size: 13px;
}
textarea::placeholder {
  color: #75869f;
}
form:focus-within {
  border-color: var(--blue);
}
form button {
  border: 0;
  border-radius: 9px;
  min-width: 35px;
  height: 35px;
  background: #1c2a3f;
  color: #b9cce5;
}
#send {
  background: var(--blue);
  color: #071426;
  font-size: 23px;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.compose-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 12px;
}
.compose-foot label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.compose-foot > span {
  margin-left: auto;
}
input {
  accent-color: var(--blue);
}
#stop {
  font-size: 10px;
}
.privacy {
  font-size: 9px;
  color: #7789a2;
  line-height: 1.5;
  margin: 10px 0 0;
}
#notice {
  font-size: 11px;
  color: #c5d9f4;
  margin: 8px 0;
}
.message {
  max-width: 90%;
  padding: 12px 15px;
  margin: 0 0 14px;
  border-radius: 14px;
  background: #1c293c;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  margin-left: auto;
  background: #25538c;
  color: #fff;
}
.message small {
  display: block;
  color: #adbfda;
  font-size: 9px;
  margin-bottom: 4px;
}
.message.error {
  border: 1px solid #795e45;
}
footer {
  font-size: 10px;
  color: #71839c;
  border-top: 1px solid #1c293b;
  padding-top: 20px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header,
  footer {
    padding: 18px 22px;
  }
  main {
    padding: 0 20px;
    margin: 12px auto 28px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  aside {
    padding: 12px 0;
  }
  h1 {
    font-size: 34px;
    margin: 15px 0;
  }
  .eyebrow {
    font-size: 8px;
  }
  .intro {
    font-size: 13px;
  }
  .orbit,
  .aside-foot,
  .tags {
    display: none;
  }
  .chat {
    height: 630px;
    max-height: none;
    min-height: 490px;
  }
  footer span {
    display: none;
  }
  .back {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #messages {
    scroll-behavior: auto;
  }
}

