:root {
  --page: #f9f8f6;
  --ink: #2c2621;
  --accent: #cd5c35;
  --muted: #70655d;
  --line: #e4dfd9;
  --surface: #fff;
  --soft: #f2ece7;
  --accent-soft: #f5e4db;
  --accent-text: #9d3e1c;
  --notice-ink: #fff;
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  --page: #12100e;
  --ink: #f5f2ef;
  --muted: #9e948c;
  --line: #332d28;
  --surface: #1c1916;
  --soft: #181512;
  --accent-soft: #33231b;
  --accent-text: #e8a17e;
  --notice-ink: #12100e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
}
.logo {
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  flex: 0 0 110px;
}
.brand-mark {
  display: flex;
  align-items: center;
  height: 38px;
}
.brand-mark img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.brand-mark .brand-dark {
  display: none;
}
:root[data-theme="dark"] .brand-light {
  display: none;
}
:root[data-theme="dark"] .brand-dark {
  display: block;
}
.brand-label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 500;
  margin-top: 7px;
}
.workspace {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.workspace label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.theme-picker label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.theme-picker select {
  font-size: 13px;
}
option {
  background: var(--surface);
  color: var(--ink);
}
select {
  border: 0;
  background: transparent;
  font-weight: 600;
  max-width: 330px;
}
.environment {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.disclaimer {
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  background: var(--soft);
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  max-width: 1440px;
  margin: auto;
  min-height: calc(100dvh - 137px);
}
aside {
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  padding: 14px 13px;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
}
nav button[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}
nav button:hover {
  background: var(--soft);
}
.aside-note {
  margin-top: auto;
  padding: 45px 12px 5px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.aside-note strong {
  color: var(--ink);
}
main {
  padding: 42px clamp(22px, 4vw, 68px);
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}
h1 {
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.25;
  margin: 0;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 9px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.status {
  flex-shrink: 0;
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 64ch;
  color: var(--muted);
}
.chat-intro {
  padding: 24px 0 35px;
  max-width: 750px;
}
.symbol {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  margin-bottom: 22px;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.suggestions button {
  text-align: left;
  background: var(--surface);
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.suggestions button:hover {
  border-color: var(--accent);
}
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 18px 21px;
  font-size: 14px;
  line-height: 1.7;
  margin: 22px 0;
}
.callout strong {
  display: block;
}
.composer {
  margin-top: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
}
.composer textarea {
  border: 0;
  background: transparent;
  width: 100%;
  resize: vertical;
  min-height: 70px;
  padding: 6px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 12px;
}
.primary {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
}
.quiet {
  padding: 10px 15px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}
.small {
  font-size: 12px !important;
  color: var(--muted);
  line-height: 1.7 !important;
}
.search {
  width: 100%;
  max-width: 540px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin: 18px 0 24px;
}
.documents {
  display: grid;
  gap: 0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}
summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin: 7px 0 0 17px;
}
details p {
  font-size: 14px;
  line-height: 1.85;
  max-width: 78ch;
  margin: 18px 0 3px;
}
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.person {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.person p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.role {
  color: var(--accent-text);
  font-size: 12px;
}
.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.task-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.task small {
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.empty {
  padding: 35px 0;
  color: var(--muted);
}
.message {
  padding: 20px;
  border-radius: 12px;
  max-width: 76ch;
  white-space: pre-wrap;
  line-height: 1.75;
  margin-bottom: 14px;
}
.message.user {
  background: var(--soft);
  margin-left: 30px;
}
.message.assistant {
  background: var(--surface);
  border: 1px solid var(--line);
}
.login {
  max-width: 640px;
  margin: 60px auto;
  padding: 20px 35px;
}
.login h1 {
  font-size: 38px;
}
.login p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.login form {
  margin: 30px 0 18px;
  display: grid;
  gap: 12px;
}
.login label {
  font-size: 13px;
}
input[type="password"] {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 15px;
}
.file-label {
  display: block;
  margin-bottom: 12px;
}
.notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  background: var(--ink);
  color: var(--notice-ink);
  padding: 15px 23px;
  border-radius: 10px;
  z-index: 10;
  font-size: 14px;
}
.skip {
  position: fixed;
  top: -100px;
  background: var(--surface);
  padding: 15px;
  z-index: 20;
}
.skip:focus {
  top: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header {
    padding: 18px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .workspace {
    padding-left: 16px;
    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
  }
  select {
    max-width: 100%;
  }
  .theme-picker {
    margin-left: auto;
  }
  .environment {
    margin-left: 0;
  }
  .shell {
    display: block;
  }
  aside {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  nav button {
    white-space: normal;
    font-size: 13px;
  }
  .aside-note {
    display: none;
  }
  main {
    padding: 28px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .suggestions,
  .people {
    grid-template-columns: 1fr;
  }
  .task {
    align-items: flex-start;
    flex-direction: column;
  }
  .login {
    margin: 25px auto;
  }
  .login h1 {
    font-size: 30px;
  }
  .composer-footer {
    align-items: flex-end;
  }
  .environment {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
