:root {
  --accent: #467562;
  --accent-soft: #e7efe9;
  --ink: #263730;
  --muted: #89918c;
  --line: #e7ebe7;
  --surface: #fff;
  --bg: #f6f8f6;
  --sidebar: #f1f4f0;
  --coral: #bc735e;
  --danger: #b34f47;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 14px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  transition:
    background 0.16s,
    transform 0.16s,
    color 0.16s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
input,
textarea {
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(360px, 1fr) 380px;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.app-shell > aside,
.conversation-panel {
  min-width: 0;
  min-height: 0;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 30px 16px 18px;
  background: var(--sidebar);
  border-right: 1px solid #e6eae5;
  overflow: hidden;
}
.sidebar > :not(.task-list) {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0 9px;
  margin-bottom: 34px;
  width: 100%;
}
.brand > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.brand strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.brand-edit {
  color: var(--muted);
  font-size: 17px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 15px #294b3412;
  flex-shrink: 0;
}
.avatar svg {
  width: 76%;
  height: 76%;
  stroke-width: 1.5;
  overflow: visible;
}
.avatar circle {
  fill: var(--accent);
}
.avatar-small {
  width: 43px;
  height: 43px;
}
.avatar-large {
  width: 76px;
  height: 76px;
  border-radius: 25px;
}
.new-task {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3da;
  background: #fff;
  border-radius: 10px;
  padding: 12px 11px;
  font-size: 12px;
  font-weight: 550;
  box-shadow: 0 2px 3px #263b2703;
}
.new-task:hover {
  border-color: #becdbd;
}
.new-task > span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
.new-task kbd {
  font: 9px inherit;
  color: #9ba398;
  margin-left: auto;
  white-space: nowrap;
}
.task-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 21px 8px 18px;
  color: #919b90;
}
.task-search svg {
  height: 16px;
  width: 16px;
}
.task-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: none;
}
.task-search input::placeholder {
  color: #929b90;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  color: #929b90;
  font-size: 10px;
  padding: 8px 10px 12px;
  letter-spacing: 0.4px;
}
.task-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d7ded4 transparent;
}
.task-list-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  padding: 10px;
}
.load-more-tasks {
  width: 100%;
  border: 0;
  padding: 12px 8px;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}
.heading-text > .runtime-metrics {
  margin-top: 3px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #798878;
}
.task-item {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: transparent;
  margin-bottom: 4px;
}
.task-item:hover {
  background: #e8eee5;
}
.task-item.selected {
  background: #e2eade;
}
.task-item-title {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.6;
}
.task-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 9px;
  color: #939b90;
}
.task-item-meta .status-label {
  margin-left: auto;
}
.status-label.waiting {
  color: #a26b28;
}
.status-label.failed {
  color: var(--danger);
}
.status-label.running {
  color: var(--accent);
}
.task-dot {
  width: 5px;
  height: 5px;
  background: #a2af9b;
  border-radius: 50%;
}
.task-dot.running {
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
.task-dot.waiting {
  background: #c78e44;
}
.task-dot.failed {
  background: var(--danger);
}
.sidebar-bottom {
  border-top: 1px solid #e0e7dd;
  margin-top: 12px;
  padding-top: 14px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 10px;
  font-size: 10px;
  color: #7d8c79;
}
.connection-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #b6beb0;
}
.connection-dot.online {
  background: #6c9865;
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  width: 100%;
  font-size: 11px;
  color: #64715f;
}
.settings-link > span:last-child {
  margin-left: auto;
  color: #99a38f;
}
.conversation-panel {
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  border-bottom: 1px solid #f0f2ee;
  min-width: 0;
  overflow: hidden;
}
.heading-text {
  min-width: 0;
  flex: 1;
}
.heading-text h1 {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.heading-text > span {
  font-size: 9px;
  color: #9aa299;
  display: block;
  margin-top: 6px;
}
.workspace-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8faf6;
  border: 1px solid #e9ede5;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10px;
  color: #7c8a75;
}
.workspace-toggle svg {
  width: 14px;
  height: 14px;
}
.conversation-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e4e9df transparent;
}
.welcome {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 40px 24px;
}
.welcome-overline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #92a08b;
  letter-spacing: 0.7px;
  margin-bottom: 36px;
}
.welcome-overline > span {
  width: 4px;
  height: 4px;
  background: #9bae91;
  border-radius: 50%;
}
.welcome .avatar-large {
  margin-bottom: 25px;
}
.welcome h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 0 0 13px;
  overflow-wrap: anywhere;
}
.hello-dot {
  color: #b58067;
}
.welcome > p:not(.welcome-footnote) {
  font-size: 12px;
  line-height: 1.9;
  color: #8b9486;
  max-width: 440px;
  margin: 0;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 35px 0 22px;
}
.suggestion-grid button {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 12px;
  row-gap: 5px;
  border: 1px solid #e8ede4;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 15px 24px 15px 12px;
  align-items: center;
}
.suggestion-grid button:hover {
  border-color: #b9ccb1;
  background: #fcfdfb;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px #4e68480a;
}
.suggestion-icon {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  font-size: 22px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.coral {
  background: #faeee8;
  color: #bc735e;
}
.mint {
  background: #edf3e9;
  color: #7d956d;
}
.lilac {
  background: #f0edf7;
  color: #9e8aad;
}
.suggestion-grid strong {
  font-size: 12px;
  font-weight: 550;
}
.suggestion-grid small {
  font-size: 10px;
  color: #97a08f;
}
.suggestion-arrow {
  position: absolute;
  right: 17px;
  top: 25px;
  color: #a1ad97;
  font-size: 14px;
}
.welcome-footnote {
  font-size: 9px;
  line-height: 1.7;
  color: #a3ad9a;
  margin-top: 24px;
}
.composer-wrap {
  padding: 8px 30px 17px;
  max-width: 800px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  background: var(--surface);
}
.composer-status {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  padding: 0 8px 7px;
  min-height: 23px;
}
.composer {
  border: 1px solid #dfe6d9;
  border-radius: 16px;
  padding: 15px 16px 11px;
  background: #fff;
  box-shadow: 0 6px 25px #334d2108;
}
.composer:focus-within {
  border-color: #afc3a2;
  box-shadow: 0 6px 25px #334d2110;
}
.composer textarea {
  resize: none;
  border: 0;
  outline: none !important;
  background: none;
  width: 100%;
  font-size: 12px;
  line-height: 1.7;
  min-height: 48px;
  max-height: min(155px, 22dvh);
  padding: 0;
}
.composer textarea::placeholder {
  color: #9da795;
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.icon-button {
  background: transparent;
  border: 0;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #8e9b85;
  font-size: 20px;
}
.icon-button:hover {
  background: #eef3e9;
  color: #4e6a3e;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.model-shortcut {
  border: 0;
  background: #f6f8f3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  font-size: 9px;
  color: #8b9981;
  min-width: 0;
  max-width: 260px;
}
.model-shortcut #model-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-spark {
  font-size: 14px;
}
.send-button {
  flex-shrink: 0;
  height: 31px;
  width: 31px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.send-button:disabled {
  background: #d4decd;
}
.composer-hint {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a9b1a2;
  margin: 10px 4px 0;
  gap: 8px;
}
.composer-hint span {
  color: #a0ae94;
}
.workspace-panel {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fafbf8;
  border-left: 1px solid #e8ede2;
  padding: 29px 22px 18px;
  scrollbar-width: thin;
  scrollbar-color: #e2e7dc transparent;
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
}
.workspace-eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #a3ad98;
  font-weight: 600;
}
.workspace-header h2 {
  font-size: 14px;
  letter-spacing: 0.2px;
  margin: 8px 0 0;
  font-weight: 500;
}
.workspace-header .icon-button {
  font-size: 19px;
  color: #b1baa8;
}
.desktop-card {
  border: 1px solid #e0e7d8;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 12px #304b2303;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 10px;
  color: #75866a;
}
.card-title > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #b7c3ac;
  border-radius: 50%;
}
.live-dot.ready {
  background: #7b9c62;
  box-shadow: 0 0 0 3px #7b9c6210;
}
.card-title .icon-button {
  height: 22px;
  min-width: 23px;
  font-size: 16px;
}
.desktop-screen {
  position: relative;
  background: #edf1e8;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.desktop-screen img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}
.desktop-screen.takeover {
  cursor: crosshair;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.desktop-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: radial-gradient(ellipse at 45% 20%, #f9fbf6, #e9eee1);
  color: #9aaa8e;
  text-align: center;
}
.desktop-placeholder svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.2;
  margin-bottom: 4px;
}
.desktop-placeholder strong {
  font-size: 11px;
  font-weight: 500;
}
.desktop-placeholder span {
  font-size: 9px;
  color: #a3af98;
}
.desktop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  font-size: 8px;
  color: #a3af98;
  gap: 8px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 10px;
  white-space: nowrap;
}
.text-button:hover {
  color: #2b5035;
}
.text-button > span {
  margin-left: 4px;
}
.takeover-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  border-radius: 5px;
  padding: 5px 7px;
  background: #263f31db;
  color: #fff;
  font-size: 8px;
  pointer-events: none;
}
.takeover-controls {
  padding: 11px;
  border-top: 1px solid var(--line);
  background: #fbfcf9;
}
.takeover-controls p {
  font-size: 9px;
  color: var(--muted);
  margin: 0 0 10px;
}
.takeover-controls form {
  display: flex;
  gap: 6px;
}
.takeover-controls input {
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  min-width: 0;
  width: 100%;
  font-size: 10px;
}
.takeover-controls .secondary-button {
  padding: 6px 10px;
  font-size: 10px;
  flex-shrink: 0;
}
.desktop-keys {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.desktop-keys button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 9px;
  color: #819372;
}
.app-section {
  margin: 29px 0;
}
.small-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 14px;
  gap: 8px;
}
.small-heading > span {
  font-size: 8px;
  color: #a6b09b;
  font-weight: 400;
}
.app-dock {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}
.app-dock button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 8px;
  color: #9ba88f;
  padding: 0;
}
.app-dock button:hover .app-icon {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px #34532310;
}
.app-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #e1e8da;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  font-size: 27px;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.browser-icon {
  color: #758d71;
}
.design-icon {
  color: #bf9680;
}
.studio-icon {
  color: #9f94b2;
}
.terminal-icon {
  color: #81939b;
  font:
    18px Consolas,
    monospace;
}
.artifacts-section {
  border-top: 1px solid #e8ede1;
  padding-top: 23px;
}
.artifacts-empty {
  border: 1px dashed #dce5d3;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 10px;
  color: #a7b299;
  text-align: center;
}
.artifacts-empty > span {
  font-size: 25px;
  line-height: 1;
  margin-bottom: 11px;
}
.artifacts-empty p {
  font-size: 10px;
  margin: 0 0 6px;
}
.artifacts-empty small {
  font-size: 8px;
  color: #b2bba8;
}
.artifact-card {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 8px;
}
.artifact-card:hover {
  border-color: #afc2a0;
}
.artifact-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  background: #f0f4eb;
  color: #869f72;
  font-size: 18px;
  border-radius: 7px;
  flex-shrink: 0;
}
.artifact-info {
  min-width: 0;
  flex: 1;
}
.artifact-info strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artifact-info small {
  display: block;
  color: #a1ae94;
  font-size: 8px;
  margin-top: 5px;
}
.artifact-download {
  color: #90a47e;
  font-size: 17px;
}
.artifact-preview {
  margin: 0;
  min-width: 0;
}
.artifact-preview-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #edf1eb;
  cursor: zoom-in;
}
.artifact-preview-open img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
.artifact-preview-open > span {
  display: block;
  padding: 24px 12px;
  font-size: 11px;
  color: var(--muted);
}
.artifact-preview figcaption {
  padding: 8px 2px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.artifact-image-card {
  min-width: 0;
  margin-bottom: 14px;
}
.artifact-image-card .artifact-card {
  margin-bottom: 0;
}
.completion-preview {
  margin: 24px 0;
  max-width: 640px;
}
.completion-preview img {
  max-height: 340px;
}
.image-viewer {
  width: min(1100px, calc(100vw - 24px));
  height: min(820px, 90dvh);
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
  overflow: hidden;
}
.image-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}
.image-viewer::backdrop {
  background: #18271fbb;
}
.image-viewer-header,
.image-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.image-viewer-header h2 {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-viewer-actions a {
  text-decoration: none;
  color: #fff;
}
.image-viewer-canvas {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f1f4ef;
}
.image-viewer-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-viewer-canvas.original-size img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}
.workspace-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 28px;
  color: #9aab88;
}
.workspace-tip > span {
  font-size: 17px;
  line-height: 1.4;
}
.workspace-tip p {
  font-size: 9px;
  line-height: 1.9;
  margin: 0;
}
.workspace-tip p span {
  color: #b1bba7;
}
.messages {
  max-width: 800px;
  width: 100%;
  min-width: 0;
  padding: 30px 32px 12px;
  margin: auto;
}
.conversation-history {
  min-width: 0;
}
.previous-turn {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.previous-turn-heading,
.conversation-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
}
.previous-turn-heading .text-button,
.conversation-context .text-button {
  flex-shrink: 0;
}
.previous-turn .user-message {
  margin-bottom: 16px;
}
.previous-turn-status {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.conversation-context {
  padding: 12px 0;
  color: var(--accent);
}
.user-message {
  margin: 0 0 28px auto;
  background: #f0f4ed;
  border: 1px solid #e9eee5;
  border-radius: 14px 14px 4px 14px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.8;
  max-width: 90%;
  width: fit-content;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.assistant-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #8b9b7f;
  font-size: 10px;
}
.assistant-header .avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}
.answer {
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #42543a;
}
.answer h2,
.answer h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0 10px;
  font-weight: 600;
}
.answer p {
  margin: 0 0 12px;
}
.answer pre {
  border: 1px solid #e0e8d7;
  background: #f8faf5;
  border-radius: 9px;
  padding: 13px;
  overflow: auto;
  font:
    11px/1.7 Consolas,
    monospace;
  white-space: pre;
}
.answer code {
  font-family: Consolas, monospace;
  font-size: 0.9em;
  background: #f1f5ec;
  padding: 1px 3px;
  border-radius: 3px;
}
.answer pre code {
  background: none;
  padding: 0;
}
.answer a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.answer-actions {
  display: flex;
  gap: 12px;
  margin: 12px 0 22px;
}
.answer-actions button {
  border: 0;
  background: none;
  color: #9eac91;
  font-size: 9px;
  padding: 3px 0;
}
.answer-actions button:hover {
  color: var(--accent);
}
.activity-group {
  border: 0;
  color: #87977a;
  margin: 10px 0 23px;
  font-size: 11px;
}
.activity-group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 8px 0;
}
.activity-group > summary::-webkit-details-marker {
  display: none;
}
.activity-chevron {
  font-size: 16px;
  transition: transform 0.15s;
}
.activity-group[open] .activity-chevron {
  transform: rotate(90deg);
}
.activity-count {
  font-size: 9px;
  color: #a4b196;
  margin-left: auto;
}
.activity-list {
  max-height: 260px;
  overflow: auto;
  scrollbar-width: thin;
  padding: 2px 0 8px 17px;
  border-left: 1px solid #e1e9d9;
  margin: 5px;
}
.activity-row {
  font-size: 10px;
  line-height: 1.7;
  padding: 6px 0;
}
.activity-row summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}
.activity-row summary::-webkit-details-marker {
  display: none;
}
.activity-row summary span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-row pre {
  font:
    10px/1.6 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f7f9f3;
  color: #98a68c;
  max-height: 160px;
  overflow: auto;
}
.activity-row.error {
  color: var(--danger);
}
.status-card {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #e5ebde;
  border-radius: 11px;
  background: #f9fbf6;
  margin: 18px 0;
  font-size: 11px;
  line-height: 1.7;
  color: #839574;
}
.status-card strong {
  font-weight: 550;
  color: #576c48;
  display: block;
  margin-bottom: 4px;
}
.status-card p {
  margin: 0;
  color: #9aaa8c;
}
.status-card.error {
  background: #fdf5f2;
  border-color: #f0dcd5;
  color: #ae6c56;
}
.status-card .status-icon {
  font-size: 19px;
  flex-shrink: 0;
}
.task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.primary-button,
.secondary-button,
.danger-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 11px;
  font-weight: 500;
}
.primary-button {
  background: var(--accent);
  color: #fff;
}
.primary-button:hover {
  filter: brightness(0.95);
}
.secondary-button {
  background: #eef3e8;
  color: #71865f;
}
.secondary-button:hover {
  background: #e5eddb;
}
.danger-button {
  background: #f8ebe6;
  color: #b37860;
}
.question-card {
  border: 1px solid #d6dfc7;
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(125deg, #f6f9f0, #fcfdf9);
  margin: 20px 0;
  box-shadow: 0 4px 17px #6c853b06;
}
.question-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #97a36a;
  font-weight: 550;
  margin-bottom: 11px;
}
.question-dot {
  height: 5px;
  width: 5px;
  background: #a3ad68;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #a3ad6810;
}
.question-card h3 {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 550;
  color: #52643f;
  white-space: pre-wrap;
}
.question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}
.question-options button {
  background: #fff;
  border: 1px solid #dce5cd;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 11px;
  color: #819365;
  text-align: left;
}
.question-options button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.question-form {
  display: flex;
  gap: 8px;
}
.question-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #e0e7d5;
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  font-size: 11px;
}
.question-note {
  font-size: 9px;
  line-height: 1.7;
  color: #a2ad90;
  margin: 12px 0 0;
}
.settings-dialog {
  width: min(490px, calc(100vw - 30px));
  max-height: 90dvh;
  border: 1px solid #e3ead9;
  border-radius: 19px;
  padding: 25px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 90px #23301925;
}
.settings-dialog::backdrop {
  background: #24331d55;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.dialog-header h2 {
  font-size: 19px;
  font-weight: 550;
  margin: 9px 0 0;
}
.settings-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section h3 {
  font-size: 11px;
  margin: 0 0 16px;
  font-weight: 550;
  color: #7f916d;
}
.settings-section label {
  display: block;
  font-size: 10px;
  color: #8c9e79;
  margin: 13px 0 0;
}
.settings-section
  input:not([type="checkbox"]):not([type="range"]):not([type="color"]) {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e2e9d9;
  border-radius: 8px;
  background: #fbfcf8;
  font-size: 12px;
  margin-top: 7px;
  min-width: 0;
}
.identity-fields {
  display: flex;
  gap: 12px;
  align-items: end;
}
.identity-fields label:first-child {
  flex: 1;
}
.color-field input {
  display: block;
  padding: 3px;
  border: 1px solid #dfe7d5;
  border-radius: 8px;
  width: 47px;
  height: 37px;
  margin-top: 7px;
  background: white;
  cursor: pointer;
}
.model-settings-row {
  display: flex;
  gap: 7px;
  align-items: end;
}
.model-settings-row input {
  flex: 1;
}
.model-settings-row .secondary-button {
  height: 37px;
  padding: 0 12px;
}
.field-note {
  font-size: 9px;
  color: #a2ae95;
  line-height: 1.7;
  margin: 8px 0;
}
.settings-section .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 0 8px;
}
.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.toggle-row small {
  display: block;
  color: #acb79f;
  font-size: 9px;
  margin-top: 6px;
  line-height: 1.6;
}
.reasoning-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #96a482;
  margin: 18px 0 6px;
}
.reasoning-heading strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}
#reasoning-slider {
  width: 100%;
  height: 26px;
  margin: 0;
  accent-color: var(--accent);
  cursor: grab;
  touch-action: none;
}
#reasoning-slider:active {
  cursor: grabbing;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: #a0ae8f;
  font-size: 9px;
}
.preference-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 15px 0;
}
.preference-row strong {
  font-size: 11px;
  font-weight: 500;
}
.preference-row small {
  font-size: 9px;
  display: block;
  margin-top: 6px;
  color: #a0ae8f;
  line-height: 1.6;
}
.preference-row .secondary-button {
  white-space: nowrap;
  flex-shrink: 0;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
}
.form-error {
  font-size: 10px;
  color: var(--danger);
  line-height: 1.6;
  margin: 12px 0 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 10px);
  background: #2d4328f0;
  color: #fff;
  padding: 11px 17px;
  max-width: min(600px, 90vw);
  font-size: 11px;
  line-height: 1.8;
  border-radius: 10px;
  box-shadow: 0 5px 25px #20361825;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 10%, #eef4e6, #f8faf5 70%);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(390px, 100%);
  background: white;
  border: 1px solid #e4ebdc;
  border-radius: 22px;
  padding: 33px;
  box-shadow: 0 25px 65px #354b2510;
}
.login-card .avatar-large {
  width: 57px;
  height: 57px;
  border-radius: 19px;
  margin-bottom: 25px;
}
.login-card h1 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0;
}
.login-card > p {
  font-size: 11px;
  color: #9bab8c;
  line-height: 1.8;
  margin: 13px 0 27px;
}
.login-card label {
  display: block;
  font-size: 10px;
  color: #84996f;
  margin: 0 0 8px;
}
.login-card input {
  border: 1px solid #dfe7d4;
  background: #fafcf7;
  border-radius: 9px;
  width: 100%;
  padding: 12px;
  font-size: 12px;
}
.login-card .primary-button {
  width: 100%;
  margin-top: 17px;
  padding: 12px;
}
.login-card > small {
  display: block;
  text-align: center;
  font-size: 8px;
  color: #b0bca2;
  margin-top: 17px;
}
.login-card .form-error {
  margin: 10px 0 0;
}
.mobile-only {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.voice-active {
  background: #f8e7df !important;
  color: #b9775b !important;
  animation: pulse 1.4s infinite;
}
.workspace-hidden .app-shell {
  grid-template-columns: 230px minmax(360px, 1fr);
}
.workspace-hidden .workspace-panel {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
dialog[open] {
  animation: appear 0.18s ease-out;
}
.question-card {
  animation: appear 0.2s ease-out;
}
@media (min-width: 1550px) {
  .app-shell {
    grid-template-columns: 250px minmax(450px, 1fr) 420px;
  }
  .workspace-panel {
    padding: 30px;
  }
  .welcome {
    padding-top: 72px;
  }
  .welcome h2 {
    font-size: 39px;
  }
  .suggestion-grid {
    gap: 12px;
  }
  .suggestion-grid small {
    line-height: 1.6;
    font-size: 9px;
  }
  .suggestion-arrow {
    top: 23px;
    right: 13px;
  }
  .workspace-hidden .app-shell {
    grid-template-columns: 250px minmax(450px, 1fr);
  }
}
@media (max-width: 1150px) {
  .suggestion-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell {
    grid-template-columns: 205px minmax(320px, 1fr) 325px;
  }
  .sidebar {
    padding: 25px 12px 16px;
  }
  .brand {
    padding: 0 5px;
    gap: 9px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 9px;
  }
  .workspace-panel {
    padding: 25px 17px;
  }
  .welcome {
    padding: 36px 28px 20px;
  }
  .welcome h2 {
    font-size: 29px;
  }
  .conversation-header {
    padding: 0 24px;
  }
  .composer-wrap {
    padding: 8px 24px 17px;
  }
  .messages {
    padding: 25px;
  }
  .desktop-screen {
    min-height: 170px;
  }
}
@media (max-width: 950px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workspace-panel {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(400px, 100%);
    z-index: 30;
    box-shadow: -10px 0 50px #2e442b20;
  }
  .workspace-visible .workspace-panel {
    display: block;
  }
  .workspace-hidden .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .welcome {
    max-width: 650px;
    padding: 40px;
  }
  .heading-text h1 {
    max-width: 50vw;
  }
  .workspace-toggle {
    display: flex;
  }
  .suggestion-grid {
    margin-top: 28px;
  }
  .workspace-visible .workspace-panel {
    animation: appear 0.18s;
  }
}
@media (max-width: 650px) {
  .app-shell,
  .workspace-hidden .app-shell {
    display: block;
  }
  .conversation-panel {
    height: 100dvh;
    grid-template-rows: 64px minmax(0, 1fr) auto;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    z-index: 42;
    transform: translateX(-100%);
    transition: transform 0.18s;
  }
  .nav-visible .sidebar {
    transform: translateX(0);
  }
  .shade {
    position: fixed;
    inset: 0;
    z-index: 41;
    background: #273b2466;
    border: 0;
  }
  .mobile-only {
    display: grid;
  }
  .conversation-header {
    padding: 0 14px;
    gap: 9px;
  }
  .heading-text h1 {
    max-width: 52vw;
    font-size: 12px;
  }
  .heading-text > span {
    font-size: 8px;
  }
  .workspace-toggle {
    padding: 8px;
  }
  .workspace-toggle span {
    display: none;
  }
  .welcome {
    padding: 27px 24px 15px;
  }
  .welcome-overline {
    margin-bottom: 24px;
    font-size: 8px;
  }
  .welcome .avatar-large {
    width: 61px;
    height: 61px;
    border-radius: 21px;
    margin-bottom: 20px;
  }
  .welcome h2 {
    font-size: 28px;
  }
  .welcome > p:not(.welcome-footnote) {
    font-size: 11px;
  }
  .suggestion-grid {
    margin: 25px 0 18px;
    gap: 8px;
  }
  .suggestion-grid button {
    padding: 12px;
  }
  .suggestion-grid strong {
    font-size: 11px;
  }
  .suggestion-grid small {
    font-size: 9px;
  }
  .welcome-footnote {
    font-size: 8px;
    margin: 15px 0;
  }
  .composer-wrap {
    padding: 5px 14px max(12px, env(safe-area-inset-bottom));
  }
  .composer textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .composer {
    padding: 12px 12px 9px;
    border-radius: 14px;
  }
  .composer-hint {
    font-size: 7px;
  }
  .composer-hint span {
    display: none;
  }
  .model-shortcut {
    max-width: 210px;
    font-size: 8px;
  }
  .composer-status {
    font-size: 9px;
  }
  .messages {
    padding: 23px 20px 10px;
  }
  .user-message {
    font-size: 12px;
  }
  .answer {
    font-size: 12px;
  }
  .question-card {
    padding: 17px;
  }
  .question-form {
    flex-direction: column;
  }
  .question-form input {
    font-size: 16px;
  }
  .question-form .primary-button {
    align-self: flex-end;
  }
  .workspace-panel {
    width: 100%;
    z-index: 45;
    padding: 25px;
  }
  .workspace-header {
    margin-bottom: 22px;
  }
  .desktop-screen {
    min-height: 200px;
  }
  .settings-dialog {
    padding: 20px;
  }
  .settings-section
    input:not([type="checkbox"]):not([type="range"]):not([type="color"]) {
    font-size: 16px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card input {
    font-size: 16px;
  }
  .icon-button {
    min-width: 34px;
    height: 34px;
  }
}
@media (max-height: 720px) and (min-width: 651px) {
  .conversation-panel {
    grid-template-rows: 62px minmax(0, 1fr) auto;
  }
  .composer-wrap {
    padding-top: 5px;
    padding-bottom: 10px;
  }
  .composer {
    padding-top: 10px;
  }
  .composer textarea {
    min-height: 36px;
  }
  .composer-hint {
    margin-top: 6px;
  }
  .welcome {
    padding-top: 25px;
  }
  .welcome-overline {
    margin-bottom: 20px;
  }
  .welcome .avatar-large {
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
  }
  .welcome h2 {
    font-size: 28px;
  }
  .suggestion-grid {
    margin-top: 22px;
    gap: 8px;
  }
  .suggestion-grid button {
    padding: 12px;
  }
  .welcome-footnote {
    margin-top: 15px;
  }
  .workspace-panel {
    padding-top: 23px;
  }
  .workspace-header {
    margin-bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.file-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  max-height: min(100px, 15dvh);
  overflow: auto;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  font-size: 9px;
  color: #7e966b;
  background: #f2f6ec;
  border: 1px solid #e3ebd8;
  border-radius: 7px;
  padding: 5px 7px;
}
.file-chip > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-chip button {
  border: 0;
  background: none;
  color: #9baa8a;
  padding: 0 2px;
  font-size: 15px;
}
.answer {
  white-space: normal;
}
.answer .code-block {
  margin: 14px 0;
  border: 1px solid #e0e8d7;
  border-radius: 9px;
  overflow: hidden;
  background: #f8faf5;
}
.answer .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e8d7;
  color: #92a47e;
  font-size: 9px;
}
.answer .copy-code {
  border: 0;
  background: transparent;
  font-size: 9px;
  color: #7a9169;
  cursor: pointer;
}
.answer .code-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.answer .table-scroll {
  overflow: auto;
  margin: 15px 0;
  border: 1px solid #e3eadb;
  border-radius: 8px;
}
.answer table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  line-height: 1.7;
}
.answer th,
.answer td {
  padding: 8px 12px;
  border-bottom: 1px solid #e6eddf;
  text-align: left;
  white-space: nowrap;
}
.answer th {
  background: #f3f7ee;
  color: #7e946c;
}
.answer blockquote {
  border-left: 3px solid #bdceb0;
  padding: 5px 13px;
  margin: 15px 0;
  color: #90a27d;
  background: #f8faf4;
}
.answer ul,
.answer ol {
  padding-left: 21px;
}
.answer li {
  margin: 7px 0;
}
.answer hr {
  border: 0;
  border-top: 1px solid #e5ecdd;
  margin: 20px 0;
}
.qq-binding {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #f7faf3;
  border: 1px solid #e3eadb;
  border-radius: 12px;
  margin: 15px 0;
}
.qq-binding img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
.qq-binding p {
  font-size: 10px;
  line-height: 1.8;
  color: #8fa17d;
  text-align: center;
  margin: 12px 0 6px;
}
.qq-binding a {
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
}
.qq-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.qq-confirm {
  margin-top: 12px;
  padding: 12px;
  background: #fcf5f1;
  border: 1px solid #efded3;
  border-radius: 8px;
}
.qq-confirm p {
  font-size: 10px;
  line-height: 1.8;
  color: #a7816c;
  margin: 0 0 10px;
}
.qq-confirm button {
  font-size: 10px;
  margin-right: 7px;
}
