:root {
  color-scheme: light;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', ui-sans-serif, system-ui, sans-serif;
  color: #1e201e;
  background: #f5f5f3;
  --line: #d7d6d2;
  --muted: #716e68;
  --green: #13462a;
  --leaf: #228329;
  --soft: #f5f5f3;
  --icon: 1.1rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
}
button,
textarea,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
label:focus-visible,
input:focus-visible {
  outline: 2px solid #479247;
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button[hidden],
[hidden] {
  display: none !important;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon);
  height: var(--icon);
  flex: 0 0 var(--icon);
  font-style: normal;
}
i[data-icon] svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.application {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.rail {
  width: clamp(190px, 17.9vw, 286px);
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0 9px 0 12px;
  background: #f5f5f3;
  transition: margin-left 0.2s ease;
  min-height: 0;
}
.brand-row {
  min-height: 47px;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: space-between;
  margin: 0 5px 5px 2px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand strong {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.06em;
}
.brand-sub {
  font-size: 14px;
  font-weight: 480;
}
.brand-mark {
  display: flex;
  align-items: center;
  width: 23px;
  height: 29px;
  color: #66be30;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.icon-btn,
.bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 5px;
  --icon: 16px;
}
.icon-btn:hover,
.bar-btn:hover {
  background: #e9e9e6;
}
.rail-toggle {
  color: #77736e;
}
.primary-nav {
  display: grid;
  gap: 3px;
}
.nav-action,
.history button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 7px 9px;
  border-radius: 6px;
  font-weight: 555;
  font-size: 15px;
  min-height: 34px;
  width: 100%;
  --icon: 17px;
}
.nav-action.active,
.nav-action.active:hover {
  background: #e0dfdb;
}
.nav-action:hover,
.history button:hover {
  background: #e9e8e4;
}
.history {
  margin: 27px 7px 10px;
  overflow: auto;
  min-height: 0;
}
h2,
h3,
p {
  margin: 0;
}
.history h2,
.file-head h2,
.task-group h2 {
  font-size: 14px;
  font-weight: 550;
}
.history h2 {
  color: #5c5954;
  margin-bottom: 16px;
}
.muted,
.history p {
  font-size: 15px;
  color: var(--muted);
}
#sessions {
  display: grid;
  gap: 3px;
}
#sessions button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.rail-footer {
  margin-top: auto;
  padding: 10px 0 3px;
}
.guide-button,
.dialog-done {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 580;
  min-height: 37px;
  border-radius: 6px;
  width: 100%;
}
.guide-button:hover,
.dialog-done:hover,
#send:hover {
  background: #1d5936;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px 8px 7px;
}
.profile .avatar {
  width: 32px;
  height: 32px;
  background: #a93466;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
}
.profile b,
.profile small {
  display: block;
}
.profile b {
  font-size: 14px;
  font-weight: 550;
}
.profile small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.surface {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 8px 5px 4px 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.surface-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 0 12px;
  height: 38px;
  min-height: 38px;
  gap: 8px;
}
.bar-part,
.file-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 520;
}
.bar-part .bar-btn,
.file-toggle i {
  color: #79756e;
}
#sessionTitle {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.surface-body {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 0 8px 8px;
  gap: 15px;
}
.conversation,
.files {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
}
.conversation {
  position: relative;
  isolation: isolate;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  align-items: center;
  background: #fff;
}
.dot-globe {
  position: absolute;
  pointer-events: none;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.workspace-inner {
  width: min(88%, 900px);
  margin: auto;
  flex: none;
  padding: clamp(18px, 7vh, 62px) 0 15px;
}
#composer {
  position: relative;
  background: white;
  border: 1px solid #d7d5d1;
  border-radius: 17px;
  box-shadow: 0 1px 3px #382d1912;
  padding: 11px 12px 12px;
}
#composer:focus-within {
  border-color: #aab8a7;
  box-shadow: 0 1px 4px #315e3320;
}
#prompt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  color: #272722;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 6px 4px 8px;
  min-height: 55px;
  line-height: 1.5;
  font-size: 17px;
  max-height: 25vh;
}
#prompt::placeholder {
  color: #938e87;
  opacity: 1;
}
.composer-tools,
.send-tools {
  display: flex;
  align-items: center;
}
.composer-tools {
  justify-content: space-between;
  gap: 6px;
}
.modes {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e2de;
  border-radius: 6px;
  padding: 2px;
  background: #f6f5f3;
  white-space: nowrap;
}
.modes button,
#settingsBtn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 4px;
  min-height: 25px;
  --icon: 14px;
}
.modes button {
  color: #5f5b55;
  padding: 4px 6px;
  font-weight: 530;
  border: 1px solid transparent;
}
.modes button[aria-pressed='true'] {
  background: #fff;
  color: #22241f;
  border-color: #e5e2dc;
  box-shadow: 0 1px 3px #27271c12;
}
.send-tools {
  gap: 9px;
}
.settings-wrap {
  position: relative;
}
#settingsBtn {
  padding: 5px;
  gap: 4px;
  color: #56544f;
  white-space: nowrap;
}
#settingsBtn:hover {
  background: #f3f3ee;
}
#settingsBtn i:last-child {
  --icon: 12px;
}
.depth-label {
  margin-left: -3px;
}
#send {
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  flex: none;
  --icon: 17px;
}
.settings-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 6px);
  width: 182px;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 20px #2428201a;
}
.settings-menu h3 {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 6px;
  font-weight: 550;
}
.settings-menu button {
  width: 100%;
  text-align: left;
  padding: 7px;
  border-radius: 5px;
  font-size: 14px;
}
.settings-menu button[aria-pressed='true'],
.settings-menu button:hover {
  background: #f0f4ed;
}
.settings-menu span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.start-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 25px 5px 0;
}
.task-group {
  min-width: 0;
}
.task-group h2 {
  color: #57544d;
  font-size: 13px;
  font-weight: 500;
  padding: 0 5px;
  margin-bottom: 5px;
}
.task-group button,
.home-links button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  border-radius: 5px;
}
.task-group button {
  min-height: 34px;
  padding: 4px 6px;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 490;
}
.task-group button i {
  color: var(--leaf);
  --icon: 17px;
}
.task-group button:hover,
.home-links button:hover {
  background: #eaf4e6;
}
.home-links {
  display: grid;
  justify-items: center;
  gap: 1px;
  margin-top: 15px;
}
.home-links button {
  padding: 4px 8px;
  color: #625e56;
  --icon: 15px;
  font-size: 14px;
  line-height: 1.4;
}
.files {
  display: flex;
  flex-direction: column;
  flex: none;
  width: clamp(213px, 18.2vw, 305px);
  background: #fafaf8;
  color: #5f5c55;
  overflow: hidden;
}
.file-head {
  border-bottom: 1px solid #e2e1dc;
  padding: 10px 12px 12px;
}
.file-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-head h2 {
  font-size: 13px;
}
.upload-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 11px;
  font-size: 13px;
  margin-top: 12px;
  color: #827e77;
}
.upload {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 550;
  color: #514e47;
  cursor: pointer;
  --icon: 14px;
}
.upload:hover {
  text-decoration: underline;
}
.file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.file-head:focus-within .upload {
  outline: 2px solid #479247;
  outline-offset: 3px;
}
.file-scroll {
  padding: 22px 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-wrap: anywhere;
}
.file-hint,
.file-scroll > div > p:only-child {
  font-size: 15px;
  line-height: 1.65;
  color: #8b877e;
}
.runtime {
  border-top: 1px solid var(--line);
  padding: 12px;
  font-size: 13px;
  line-height: 1.65;
}
.runtime-title,
.runtime button {
  display: flex;
  align-items: center;
}
.runtime-title {
  justify-content: space-between;
  gap: 8px;
}
.runtime-title strong {
  font-weight: 560;
}
#status {
  font-size: 12px;
}
#status::before {
  display: inline-block;
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 5px 2px 0;
  opacity: 0.7;
}
.runtime p {
  margin: 5px 0;
}
.runtime button {
  gap: 5px;
  color: #69655e;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  --icon: 12px;
}
.messages {
  display: none;
}
body.in-session .dot-globe,
body.in-session .start-options,
body.in-session .home-links {
  display: none;
}
body.in-session .workspace-inner {
  width: min(94%, 900px);
  padding: 8px 0 12px;
  margin: 0 auto;
}
body.in-session .conversation {
  overflow: hidden;
}
body.in-session .messages {
  display: block;
  align-self: stretch;
  flex: 1;
  overflow: auto;
  padding: 24px max(4%, 12px);
  min-height: 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
body.in-session .settings-menu {
  top: auto;
  bottom: calc(100% + 6px);
}
body.rail-closed .rail {
  margin-left: calc(-1 * clamp(190px, 17.9vw, 286px));
  visibility: hidden;
}
body.files-closed .files {
  display: none;
}
.mobile-close,
.scrim {
  display: none;
}
.guide-dialog {
  box-sizing: border-box;
  width: min(430px, 92vw);
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  color: #252922;
  border-radius: 15px;
  box-shadow: 0 18px 80px #192a1929;
}
.guide-dialog::backdrop {
  background: #14201748;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-mark {
  width: 34px;
  height: 34px;
  background: #edf4e8;
  border-radius: 8px;
  color: var(--green);
  display: grid;
  place-items: center;
}
.guide-dialog h2 {
  font-size: 21px;
  margin-bottom: 14px;
}
.guide-dialog p,
.guide-dialog li {
  font-size: 15px;
  color: #5a5c55;
  line-height: 1.8;
}
.guide-dialog ol {
  padding-left: 1.5em;
  margin: 10px 0;
}
.dialog-done {
  margin-top: 20px;
}
@media (min-width: 1600px) {
  .workspace-inner {
    width: min(88%, 1060px);
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 181px;
  }
  .brand-sub {
    font-size: 12px;
  }
  .files {
    width: 202px;
  }
  .surface-body {
    gap: 8px;
  }
  .workspace-inner {
    width: 92%;
  }
  .start-options {
    gap: 4px;
  }
  .task-group button {
    font-size: 14px;
    gap: 5px;
  }
  body.rail-closed .rail {
    margin-left: -181px;
  }
}
@media (max-width: 900px) {
  .files {
    position: fixed;
    z-index: 10;
    inset: 48px 12px 13px auto;
    width: min(310px, 82vw);
    box-shadow: 0 10px 40px #19241924;
    display: none;
  }
  .files-open .files {
    display: flex;
  }
  .mobile-close {
    display: flex;
  }
  .files-open .scrim {
    display: block;
  }
  .workspace-inner {
    width: 88%;
  }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 8;
    background: #12201133;
    cursor: default;
  }
}
@media (max-width: 700px) {
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 12;
    width: min(270px, 84vw);
    transform: translateX(-103%);
    padding-left: 12px;
    box-shadow: 0 12px 30px #19241912;
    transition: transform 0.18s ease;
  }
  .rail-open .rail {
    transform: none;
  }
  .rail-open .scrim {
    display: block;
  }
  body.rail-closed .rail {
    margin: 0;
    visibility: visible;
  }
  .surface {
    margin: 3px;
    border-radius: 8px;
  }
  .surface-bar {
    height: 39px;
    padding-left: 7px;
  }
  .surface-body {
    padding: 0 4px 4px;
  }
  .brand-row {
    min-height: 56px;
  }
  .brand-sub {
    font-size: 14px;
  }
  .workspace-inner {
    width: min(91%, 550px);
    padding: 18px 0 22px;
  }
  .start-options {
    margin: 20px 0 0;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .task-group:nth-child(3) {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }
  .task-group:nth-child(3) h2 {
    width: 100%;
    margin: 0;
  }
  .task-group button {
    min-height: 32px;
  }
  .home-links {
    margin-top: 15px;
  }
  .conversation {
    border-radius: 6px;
  }
}
@media (max-width: 460px) {
  .workspace-inner {
    width: 94%;
  }
  #composer {
    padding: 9px;
    border-radius: 13px;
  }
  #prompt {
    min-height: 61px;
    font-size: 16px;
  }
  .modes button,
  #settingsBtn {
    font-size: 12px;
  }
  .modes button {
    padding: 3px 4px;
  }
  .send-tools {
    gap: 3px;
  }
  .depth-label {
    display: none;
  }
  .composer-tools {
    gap: 2px;
  }
  .task-group button {
    font-size: 14px;
  }
  .surface-body {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
