﻿@font-face {
  font-family: "DM Sans";
  src: url("../images/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "DM Sans";
  src: url("../images/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Montserrat";
  src: url("../images/montserrat-500.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("../images/fragment-mono-latin.woff2") format("woff2");
}

:root {
  --client-media-radius: clamp(12px, 3.05vw, 39px);
}

.app-preview.hero-product-preview {
  position: relative;
  display: block;
  width: 800px;
  height: auto;
  aspect-ratio: 1488 / 1057;
  flex: 0 0 800px;
  margin-top: -4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--client-media-radius);
  background: #0b0d11;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(76, 125, 187, 0.12);
  clip-path: inset(0 round var(--client-media-radius));
}

.app-preview.hero-product-preview::before {
  content: none;
}

.app-preview.hero-product-preview > .app-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  opacity: 0.8;
  filter: none;
  box-shadow: none;
}

.hero .hero-copy {
  transform: translateX(72px);
}

.hero .app-preview.hero-product-preview {
  transform: translateX(126px);
}

.hero-product-preview {
  container-type: inline-size;
}

.app-preview.hero-product-preview.is-code-rendered > .app-preview-img {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.hero-client-code {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 62% 52%, rgba(37, 39, 46, 0.16), transparent 43%),
    #101114;
  font-family: Inter, "DM Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 1.76cqi;
  line-height: 1.25;
  opacity: 0.8;
}

.hero-client-code *,
.hero-client-code *::before,
.hero-client-code *::after {
  box-sizing: border-box;
}

.hero-client-code img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  opacity: 1;
}

.hero-client-code button,
.hero-client-code textarea {
  margin: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.hero-client-code button {
  cursor: pointer;
}

.hero-client-code button:focus-visible,
.hero-client-code textarea:focus-visible {
  outline: 1px solid rgba(111, 162, 231, 0.9);
  outline-offset: 1px;
}

.hero-client-code button img {
  width: 1.9cqi;
  height: 1.9cqi;
  opacity: 0.72;
}

.hero-client-code__windowbar {
  position: absolute;
  z-index: 4;
  top: 1.5cqi;
  left: 2.3cqi;
  display: flex;
  gap: 1.05cqi;
  pointer-events: none;
}

.hero-client-code__windowbar i {
  width: 1.72cqi;
  height: 1.72cqi;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.hero-client-code__windowbar i:nth-child(1) { background: #e55b56; }
.hero-client-code__windowbar i:nth-child(2) { background: #d5b73e; }
.hero-client-code__windowbar i:nth-child(3) { background: #3aaa62; }

.hero-client-code__sidebar {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 27.15%;
  padding: 6.9cqi 1.75cqi 2.65cqi;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(circle at 45% 60%, rgba(81, 84, 84, 0.14), transparent 55%),
    linear-gradient(90deg, #171918, #191b1a 72%, #151617);
  box-shadow: 13px 0 30px rgba(0, 0, 0, 0.16);
  transition: width 240ms ease, padding 240ms ease, opacity 180ms ease;
}

.hero-client-code__brand-row,
.hero-client-code__workspace-head,
.hero-client-code__prompt-footer,
.hero-client-code__welcome,
.hero-client-code__modebar,
.hero-client-code__mode,
.hero-client-code__permission,
.hero-client-code__model,
.hero-client-code__tasks button,
.hero-client-code__folders button,
.hero-client-code__settings,
.hero-client-code__new-session {
  display: flex;
  align-items: center;
}

.hero-client-code__brand-row {
  justify-content: space-between;
  min-width: 0;
  padding: 0 0.2cqi;
}

.hero-client-code__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7cqi;
}

.hero-client-code__brand > img {
  width: 13.55cqi;
  filter: grayscale(1) brightness(1.4);
}

.hero-client-code__brand > span {
  padding: 0.18cqi 0.55cqi 0.1cqi;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.4cqi;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 1.08cqi;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-client-code__collapse {
  display: grid;
  flex: 0 0 auto;
  width: 3.3cqi;
  height: 3.3cqi;
  place-items: center;
  border-radius: 0.75cqi;
}

.hero-client-code__collapse:hover,
.hero-client-code__workspace-head button:hover,
.hero-client-code__tasks button:hover,
.hero-client-code__folders button:hover,
.hero-client-code__settings:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-client-code__new-session {
  justify-content: center;
  gap: 0.85cqi;
  width: 100%;
  height: 6cqi;
  margin-top: 3.05cqi;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.3cqi;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(112, 113, 116, 0.82), rgba(83, 85, 88, 0.82)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 1.7cqi;
  transition: filter 180ms ease, transform 180ms ease;
}

.hero-client-code__new-session > img {
  width: 1.85cqi;
  height: 1.85cqi;
}

.hero-client-code__new-session:hover,
.hero-client-code__new-session.is-active {
  filter: brightness(1.13);
}

.hero-client-code__new-session:active {
  transform: translateY(1px);
}

.hero-client-code__workspace-head {
  justify-content: space-between;
  margin: 3.35cqi 0.3cqi 1.45cqi;
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.54cqi;
}

.hero-client-code__task-head {
  margin-top: 2.15cqi;
  margin-bottom: 0.7cqi;
}

.hero-client-code__workspace-head--saved {
  margin-top: 2.05cqi;
  margin-bottom: 0.7cqi;
}

.hero-client-code__tasks {
  display: grid;
  gap: 0.32cqi;
}

.hero-client-code__tasks button {
  gap: 0.65cqi;
  width: 100%;
  min-width: 0;
  height: 4.25cqi;
  padding: 0 0.8cqi;
  border-radius: 0.8cqi;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.36cqi;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease;
}

.hero-client-code__tasks button.is-active {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.075);
}

.hero-client-code__tasks button > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-code__task-check {
  display: grid;
  flex: 0 0 auto;
  width: 1.6cqi;
  height: 1.6cqi;
  place-items: center;
}

.hero-client-code__task-check img {
  width: 1.35cqi !important;
  height: 1.35cqi !important;
  opacity: 0.64;
}

.hero-client-code__workspace-head > div {
  display: flex;
  gap: 0.15cqi;
}

.hero-client-code__workspace-head button {
  display: grid;
  width: 3cqi;
  height: 3cqi;
  place-items: center;
  border-radius: 0.65cqi;
}

.hero-client-code__workspace-head button img {
  width: 1.65cqi;
  height: 1.65cqi;
}

.hero-client-code__folders {
  display: grid;
  gap: 0.35cqi;
}

.hero-client-code__folders button,
.hero-client-code__settings {
  gap: 1.15cqi;
  width: 100%;
  min-width: 0;
  height: 4.25cqi;
  padding: 0 1cqi;
  border-radius: 0.8cqi;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.64cqi;
  text-align: left;
}

.hero-client-code__folders button > img:last-child {
  width: 1.35cqi;
  height: 1.35cqi;
  margin-left: auto;
  opacity: 0.45;
}

.hero-client-code__folders button img,
.hero-client-code__settings img {
  width: 1.85cqi;
  height: 1.85cqi;
}

.hero-client-code__settings {
  margin-top: auto !important;
}

.hero-client-code__main {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 27.15%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(43, 45, 50, 0.18), transparent 48%),
    #101114;
  transition: left 240ms ease;
}

.hero-client-code__composer {
  position: absolute;
  top: 36.5%;
  left: 50%;
  width: min(89%, 70cqi);
  transform: translateX(-50%);
}

.hero-client-code__conversation-head {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  height: 6.3cqi;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.1cqi;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(16, 17, 20, 0.92);
}

.hero-client-code__conversation-head strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.72cqi;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-code__conversation-head button {
  display: grid;
  width: 3.4cqi;
  height: 3.4cqi;
  place-items: center;
  border-radius: 0.8cqi;
}

.hero-client-code__conversation-head button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-client-code__conversation {
  position: absolute;
  inset: 6.3cqi 0 16.8cqi;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2.3cqi 2.7cqi 2cqi;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.17) transparent;
  overscroll-behavior: contain;
  opacity: 1;
  transition: opacity 100ms ease-out;
}

.hero-client-code__conversation.is-switching {
  opacity: 0.28;
  pointer-events: none;
}

.hero-client-code__conversation::-webkit-scrollbar {
  width: 0.75cqi;
}

.hero-client-code__conversation::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-client-code__messages {
  min-height: 100%;
}

.hero-client-code.has-active-case .hero-client-code__composer {
  top: auto;
  bottom: 1.2cqi;
  z-index: 5;
  width: calc(100% - 4cqi);
}

.hero-client-code.has-active-case .hero-client-code__welcome,
.hero-client-code.has-active-case .hero-client-code__modebar {
  display: none;
}

.hero-client-code.has-active-case .hero-client-code__prompt {
  min-height: 11.7cqi;
  margin-top: 0;
  border-radius: 2cqi;
}

.hero-client-code.has-active-case .hero-client-code__prompt textarea {
  height: 6.15cqi;
  padding: 1.55cqi 2cqi 0;
  font-size: 1.65cqi;
}

.hero-client-code.has-active-case .hero-client-code__prompt-footer {
  height: 5.5cqi;
  padding: 0 1.25cqi 0.85cqi;
}

.hero-client-code.has-active-case .hero-client-code__add,
.hero-client-code.has-active-case .hero-client-code__send {
  width: 3.8cqi;
  height: 3.8cqi;
}

.hero-client-code.has-active-case .hero-client-code__permission,
.hero-client-code.has-active-case .hero-client-code__model {
  height: 3.7cqi;
  font-size: 1.25cqi !important;
}

.hero-client-code__disclaimer {
  display: none;
}

.hero-client-code.has-active-case .hero-client-code__disclaimer {
  display: block;
  margin-top: 0.55cqi;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.05cqi;
  text-align: center;
}

.hero-client-chat__user {
  width: fit-content;
  max-width: 78%;
  margin: 0 0 2.1cqi auto;
  padding: 1.15cqi 1.6cqi;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 1.3cqi;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.075);
  font-size: 1.42cqi;
  line-height: 1.55;
  animation: hero-client-message-in 180ms ease-out both;
}

.hero-client-chat__user--prompt {
  margin-bottom: 2.55cqi;
}

.hero-client-chat__assistant {
  margin-bottom: 2.6cqi;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.38cqi;
  line-height: 1.6;
  animation: hero-client-message-in 220ms ease-out both;
}

.hero-client-chat__assistant > header {
  display: flex;
  align-items: center;
  gap: 0.95cqi;
  margin-bottom: 1.15cqi;
}

.hero-client-chat__assistant > header strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.47cqi;
  font-weight: 500;
}

.hero-client-chat__avatar {
  display: grid;
  width: 3.45cqi;
  height: 3.45cqi;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-client-chat__avatar img {
  width: 2.45cqi;
  height: 2.45cqi;
  object-fit: contain;
}

.hero-client-chat__assistant p {
  margin: 0 0 1.35cqi;
}

.hero-client-chat__tools {
  display: grid;
  gap: 0.72cqi;
  margin: 1.45cqi 0 1.7cqi;
}

.hero-client-chat__tool-entry {
  min-width: 0;
  animation: hero-client-tool-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-client-chat__tool {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75cqi;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 1.08cqi;
  transition: color 180ms ease, opacity 180ms ease;
}

.hero-client-chat__tool.is-running {
  color: rgba(255, 255, 255, 0.64);
}

.hero-client-chat__tool.is-complete {
  color: rgba(255, 255, 255, 0.5);
}

.hero-client-chat__tool > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-chat__tool-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.75cqi;
  height: 1.75cqi;
  place-items: center;
  border-radius: 999px;
  background: rgba(76, 125, 198, 0.18);
}

.hero-client-chat__tool-icon img {
  width: 1.12cqi;
  height: 1.12cqi;
  opacity: 0.72;
}

.hero-client-chat__tool.is-running .hero-client-chat__tool-icon img,
.hero-client-chat__thinking-icon img {
  animation: hero-client-icon-spin 920ms linear infinite;
}

.hero-client-chat__tool b {
  flex: 0 0 auto;
  font-size: 1cqi;
  font-weight: 500;
}

.hero-client-chat__tool b.is-add {
  color: #48cfa0;
}

.hero-client-chat__tool b.is-remove {
  color: rgba(255, 255, 255, 0.35);
}

.hero-client-chat__tool-note {
  margin: 0.2cqi 0 0 2.5cqi !important;
  color: rgba(255, 255, 255, 0.62);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 1.18cqi;
}

.hero-client-chat__result > p:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.hero-client-chat__section {
  margin: 1.7cqi 0;
}

.hero-client-chat__section h3 {
  margin: 0 0 0.85cqi;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4cqi;
  font-weight: 600;
}

.hero-client-chat__section ul {
  margin: 0;
  padding-left: 2.2cqi;
}

.hero-client-chat__section li {
  margin: 0.45cqi 0;
  padding-left: 0.2cqi;
}

.hero-client-chat__section li strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.hero-client-chat__artifact-head {
  display: flex;
  align-items: center;
  gap: 0.65cqi;
  margin-top: 2cqi;
  color: rgba(255, 255, 255, 0.88);
}

.hero-client-chat__artifact-head span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 1.15cqi;
}

.hero-client-chat__artifacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75cqi;
  margin-top: 0.85cqi;
}

.hero-client-chat__artifacts button {
  display: flex;
  min-width: 0;
  height: 4.4cqi;
  align-items: center;
  gap: 0.7cqi;
  padding: 0 0.85cqi;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.9cqi;
  background: rgba(255, 255, 255, 0.035);
}

.hero-client-chat__artifacts button b {
  flex: 0 0 auto;
  padding: 0.32cqi 0.45cqi;
  border-radius: 0.4cqi;
  color: #8db6f1;
  background: rgba(77, 125, 198, 0.16);
  font-size: 0.86cqi;
  font-weight: 600;
}

.hero-client-chat__artifacts button span {
  overflow: hidden;
  font-size: 1.05cqi;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-chat__toolbar {
  display: flex;
  gap: 0.7cqi;
  margin-top: 1.15cqi;
}

.hero-client-chat__toolbar button {
  padding: 0.4cqi 0.65cqi;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.98cqi;
}

.hero-client-chat__assistant--followup {
  margin-top: 0.3cqi;
  padding-bottom: 0.2cqi;
}

.hero-client-chat__assistant--followup a {
  color: #78aef3;
  text-decoration: none;
}

.hero-client-chat__thinking,
.hero-client-chat__replying {
  display: flex;
  align-items: center;
  gap: 0.65cqi;
  color: rgba(255, 255, 255, 0.34);
  font-size: 1.12cqi;
}

.hero-client-chat__thinking-icon {
  display: grid;
  flex: 0 0 auto;
  width: 1.5cqi;
  height: 1.5cqi;
  place-items: center;
}

.hero-client-chat__thinking-icon img {
  width: 1.15cqi;
  height: 1.15cqi;
  opacity: 0.62;
}

.hero-client-chat__result .is-entering {
  animation: hero-client-result-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-client-message-in {
  from { opacity: 0; transform: translateY(0.8cqi); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-client-tool-in {
  from { opacity: 0; transform: translateX(-0.8cqi); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-client-result-in {
  from { opacity: 0; transform: translateY(0.55cqi); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-client-icon-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-client-code__conversation,
  .hero-client-code__tasks button,
  .hero-client-chat__tool {
    transition-duration: 0.01ms !important;
  }

  .hero-client-chat__user,
  .hero-client-chat__assistant,
  .hero-client-chat__tool-entry,
  .hero-client-chat__result .is-entering,
  .hero-client-chat__tool.is-running .hero-client-chat__tool-icon img,
  .hero-client-chat__thinking-icon img {
    animation: none !important;
  }
}

.hero-client-code__welcome {
  justify-content: center;
  gap: 1.25cqi;
  margin-bottom: 2.9cqi;
  color: rgba(255, 255, 255, 0.92);
}

.hero-client-code__welcome > img {
  width: 4.7cqi;
  height: auto;
}

.hero-client-code__welcome strong {
  font-size: 3.05cqi;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.hero-client-code__welcome > span {
  padding: 0.55cqi 0.95cqi;
  border: 1px solid rgba(109, 145, 204, 0.18);
  border-radius: 0.85cqi;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(72, 99, 143, 0.48);
  font-size: 1.38cqi;
}

.hero-client-code__modebar {
  position: relative;
  z-index: 3;
  left: 1.7cqi;
  gap: 2.1cqi;
}

.hero-client-code__modebar > button,
.hero-client-code__mode {
  display: flex;
  align-items: center;
  gap: 0.55cqi;
  height: 3.2cqi;
  padding: 0 0.25cqi;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  font-size: 1.5cqi;
}

.hero-client-code__modebar img {
  width: 1.7cqi;
  height: 1.7cqi;
}

.hero-client-code__mode-wrap {
  position: relative;
}

.hero-client-code__mode-menu {
  position: absolute;
  z-index: 7;
  top: calc(100% + 0.6cqi);
  left: 0;
  width: 14cqi;
  padding: 0.6cqi;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1cqi;
  background: #24262b;
  box-shadow: 0 1.8cqi 4cqi rgba(0, 0, 0, 0.36);
}

.hero-client-code__mode-menu[hidden] {
  display: none;
}

.hero-client-code__mode-menu button {
  display: block;
  width: 100%;
  padding: 1cqi;
  border-radius: 0.65cqi;
  text-align: left;
  font-size: 1.4cqi;
}

.hero-client-code__mode-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-client-code__prompt {
  position: relative;
  margin-top: 1.1cqi;
  min-height: 15.2cqi;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2.5cqi;
  background: linear-gradient(180deg, rgba(53, 54, 57, 0.88), rgba(44, 45, 48, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 1.6cqi 4cqi rgba(0, 0, 0, 0.1);
}

.hero-client-code__prompt textarea {
  display: block;
  width: 100%;
  height: 8.1cqi;
  padding: 2.25cqi 2.45cqi 0;
  resize: none;
  outline: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 2.05cqi;
  line-height: 1.3;
}

.hero-client-code__prompt textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.hero-client-code__prompt-footer {
  height: 6.25cqi;
  padding: 0 1.55cqi 1.1cqi;
}

.hero-client-code__add,
.hero-client-code__send {
  display: grid;
  flex: 0 0 auto;
  width: 4.55cqi;
  height: 4.55cqi;
  place-items: center;
  border-radius: 999px;
}

.hero-client-code__add {
  background: rgba(255, 255, 255, 0.055) !important;
}

.hero-client-code__permission {
  gap: 0.7cqi;
  height: 4cqi;
  margin-left: 1.15cqi !important;
  color: rgba(255, 255, 255, 0.54) !important;
  white-space: nowrap;
  font-size: 1.52cqi !important;
}

.hero-client-code__model {
  gap: 0.6cqi;
  height: 4cqi;
  margin-left: auto !important;
  color: rgba(255, 255, 255, 0.56) !important;
  white-space: nowrap;
  font-size: 1.45cqi !important;
}

.hero-client-code__permission img,
.hero-client-code__model img {
  width: 1.6cqi;
  height: 1.6cqi;
}

.hero-client-code__send {
  margin-left: 1.1cqi !important;
  background: rgba(59, 91, 141, 0.64) !important;
  transition: background 160ms ease, transform 160ms ease;
}

.hero-client-code__send img {
  width: 2.05cqi;
  height: 2.05cqi;
  opacity: 0.8;
}

.hero-client-code.has-prompt .hero-client-code__send {
  background: #4d7dc6 !important;
}

.hero-client-code.has-prompt .hero-client-code__send:hover {
  transform: translateY(-1px);
}

.hero-client-code.is-sidebar-collapsed .hero-client-code__sidebar {
  width: 6.4cqi;
  padding: 6.9cqi 1.05cqi 2.65cqi;
}

.hero-client-code.is-sidebar-collapsed .hero-client-code__main {
  left: 6.4cqi;
}

.hero-client-code.is-sidebar-collapsed .hero-client-code__brand,
.hero-client-code.is-sidebar-collapsed .hero-client-code__new-session,
.hero-client-code.is-sidebar-collapsed .hero-client-code__workspace-head,
.hero-client-code.is-sidebar-collapsed .hero-client-code__tasks,
.hero-client-code.is-sidebar-collapsed .hero-client-code__folders,
.hero-client-code.is-sidebar-collapsed .hero-client-code__settings {
  display: none;
}

.hero-client-code.is-sidebar-collapsed .hero-client-code__brand-row {
  justify-content: center;
}

.hero-client-code__popover {
  position: absolute;
  z-index: 12;
  padding: 0.85cqi;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.8cqi;
  background: rgba(49, 50, 54, 0.98);
  box-shadow: 0 2.4cqi 6cqi rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.8);
  animation: hero-client-popover-in 130ms ease-out;
}

.hero-client-code__popover[hidden],
.hero-client-settings[hidden],
.hero-client-settings__page[hidden],
.hero-client-settings__plugin-view[hidden] {
  display: none !important;
}

@keyframes hero-client-popover-in {
  from {
    opacity: 0;
    transform: translateY(-0.55cqi) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-client-code__popover button {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.85cqi;
  padding: 1.15cqi 1.2cqi;
  border-radius: 1cqi;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  font-size: 1.42cqi;
}

.hero-client-code__popover button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hero-client-code__popover button.is-selected {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.94);
}

.hero-client-code__popover button img {
  flex: 0 0 auto;
  width: 1.75cqi;
  height: 1.75cqi;
}

.hero-client-code__popover button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-code__popover button > b {
  display: grid;
  flex: 0 0 auto;
  width: 2cqi;
  height: 2cqi;
  margin-left: auto;
  place-items: center;
  color: rgba(187, 209, 240, 0.8);
}

.hero-client-code__popover button > b[hidden] {
  display: none;
}

.hero-client-code__popover button > b img {
  width: 1.5cqi;
  height: 1.5cqi;
  opacity: 0.8;
}

.hero-client-code__popover--workspace {
  top: 50.5%;
  left: 3.2cqi;
  width: 23.5cqi;
}

.hero-client-code__popover--workspace button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
}

.hero-client-code__popover--mode {
  top: 50.5%;
  left: 19.8cqi;
  width: 35.5cqi;
  padding: 0.95cqi;
}

.hero-client-code__popover--mode button {
  position: relative;
  display: grid;
  gap: 0.4cqi;
  padding: 1.05cqi 4cqi 1.15cqi 1.25cqi;
}

.hero-client-code__popover--mode button strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.46cqi;
  font-weight: 500;
}

.hero-client-code__popover--mode button span {
  overflow: visible;
  color: rgba(255, 255, 255, 0.44);
  font-size: 1.2cqi;
  line-height: 1.42;
  text-overflow: clip;
  white-space: normal;
}

.hero-client-code__popover--mode button > b {
  position: absolute;
  top: 1.15cqi;
  right: 1.3cqi;
}

.hero-client-code__popover--permission {
  top: 40.5%;
  left: 7.1cqi;
  width: 25.4cqi;
}

.hero-client-code__popover--model-summary,
.hero-client-code__popover--model-options,
.hero-client-code__popover--effort-options {
  top: 40.5%;
  right: 4.2cqi;
  width: 28cqi;
}

.hero-client-code__popover--model-summary button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1cqi;
}

.hero-client-code__popover--model-summary button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.hero-client-code__popover--model-summary button strong {
  font-weight: 500;
}

.hero-client-code__popover--model-summary button span {
  color: rgba(255, 255, 255, 0.52);
  text-align: right;
}

.hero-client-code__popover--model-options small {
  display: block;
  padding: 0.75cqi 1.15cqi 0.45cqi;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2cqi;
}

.hero-client-code__popover--model-options button,
.hero-client-code__popover--effort-options button {
  min-height: 4.15cqi;
}

.hero-client-code__workspace[aria-expanded="true"] img:last-child,
.hero-client-code__mode[aria-expanded="true"] img:last-child,
.hero-client-code__permission[aria-expanded="true"] img:last-child,
.hero-client-code__model[aria-expanded="true"] img:last-child {
  transform: rotate(180deg);
}

.hero-client-code__workspace img:last-child,
.hero-client-code__mode img:last-child,
.hero-client-code__permission img:last-child,
.hero-client-code__model img:last-child {
  transition: transform 140ms ease;
}

.hero-client-settings {
  position: absolute;
  z-index: 20;
  inset: 0;
}

.hero-client-settings__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 6, 0.58);
  backdrop-filter: blur(2px);
}

.hero-client-settings__panel {
  position: absolute;
  top: 5.6cqi;
  right: 5cqi;
  bottom: 2.7cqi;
  left: 21cqi;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2.65cqi;
  background: #2d2e31;
  box-shadow: 0 3cqi 8cqi rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.8);
  animation: hero-client-settings-in 160ms ease-out;
}

@keyframes hero-client-settings-in {
  from {
    opacity: 0;
    transform: translateY(1.2cqi) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-client-settings__header {
  display: flex;
  height: 7cqi;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.2cqi;
}

.hero-client-settings__header > strong {
  font-size: 1.8cqi;
  font-weight: 500;
}

.hero-client-settings__header > div {
  display: flex;
  align-items: center;
  gap: 1cqi;
}

.hero-client-settings__file {
  height: 3.75cqi;
  padding: 0 1.5cqi !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 999px;
  font-size: 1.18cqi !important;
}

.hero-client-settings__close {
  display: grid;
  width: 3cqi;
  height: 3cqi;
  place-items: center;
  border-radius: 999px;
}

.hero-client-settings__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-client-settings__close img {
  width: 1.55cqi;
  height: 1.55cqi;
  transform: rotate(45deg);
}

.hero-client-settings__body {
  display: grid;
  height: calc(100% - 7cqi);
  grid-template-columns: 25.5% 74.5%;
}

.hero-client-settings__nav {
  display: grid;
  align-content: start;
  gap: 0.6cqi;
  padding: 0.5cqi 1.2cqi 1.7cqi;
}

.hero-client-settings__nav button {
  display: flex;
  min-width: 0;
  height: 5.2cqi;
  align-items: center;
  gap: 1cqi;
  padding: 0 1.3cqi;
  border-radius: 1.35cqi;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.33cqi;
  text-align: left;
}

.hero-client-settings__nav button:hover,
.hero-client-settings__nav button.is-active {
  background: rgba(103, 107, 115, 0.54);
  color: rgba(255, 255, 255, 0.94);
}

.hero-client-settings__nav img {
  flex: 0 0 auto;
  width: 1.75cqi;
  height: 1.75cqi;
}

.hero-client-settings__nav span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-settings__content {
  min-width: 0;
  overflow: hidden;
  padding: 0.5cqi 2.1cqi 1.8cqi;
}

.hero-client-settings__page {
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.hero-client-settings__page-head {
  display: grid;
  gap: 0.85cqi;
  margin-bottom: 3cqi;
}

.hero-client-settings__page-head strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.9cqi;
  font-weight: 500;
}

.hero-client-settings__page-head span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.25cqi;
}

.hero-client-settings__setting-row {
  display: flex;
  min-height: 7.4cqi;
  align-items: center;
  justify-content: space-between;
  gap: 2cqi;
  border-bottom: 1px solid rgba(255, 255, 255, 0.105);
}

.hero-client-settings__setting-row > div {
  display: grid;
  gap: 0.55cqi;
}

.hero-client-settings__setting-row strong,
.hero-client-settings__appearance > strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.45cqi;
  font-weight: 500;
}

.hero-client-settings__setting-row span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 1.12cqi;
}

.hero-client-settings__setting-row > button {
  flex: 0 0 auto;
  min-width: 8.6cqi;
  height: 3.9cqi;
  padding: 0 1.5cqi;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  font-size: 1.22cqi;
}

.hero-client-settings__appearance {
  padding: 1.8cqi 0 1.9cqi;
  border-bottom: 1px solid rgba(255, 255, 255, 0.105);
}

.hero-client-settings__appearance > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1cqi;
  margin-top: 1.15cqi;
}

.hero-client-settings__appearance button {
  height: 6.4cqi;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5cqi;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.25cqi;
}

.hero-client-settings__appearance button.is-active {
  border-color: rgba(204, 218, 239, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.hero-client-settings__setting-row--last {
  border-bottom: 0;
}

.hero-client-settings__provider {
  display: flex;
  height: 7.2cqi;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8cqi;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.6cqi;
}

.hero-client-settings__provider strong {
  display: flex;
  align-items: center;
  gap: 0.7cqi;
  font-size: 1.45cqi;
  font-weight: 500;
}

.hero-client-settings__provider i {
  width: 0.8cqi;
  height: 0.8cqi;
  border-radius: 999px;
  background: #36ca69;
}

.hero-client-settings__provider > button {
  height: 3.5cqi;
  padding: 0 1.25cqi;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 1.16cqi;
}

.hero-client-settings__add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1cqi;
  margin-top: 1.25cqi;
}

.hero-client-settings__add-grid button,
.hero-client-settings__create-agent {
  min-height: 5.5cqi;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 1.35cqi;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.2cqi;
}

.hero-client-settings__tabs {
  display: flex;
  gap: 2.4cqi;
  height: 4.3cqi;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-client-settings__tabs button {
  position: relative;
  height: 4.25cqi;
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.22cqi;
}

.hero-client-settings__tabs button.is-active {
  color: rgba(255, 255, 255, 0.94);
}

.hero-client-settings__tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.hero-client-settings__plugin-view {
  padding-top: 1.6cqi;
}

.hero-client-settings__plugin-view[data-plugin-view="config"] {
  display: grid;
  gap: 1.35cqi;
}

.hero-client-settings__plugin-view[data-plugin-view="config"] > button {
  display: grid;
  min-height: 7.9cqi;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 1.4cqi 1.7cqi;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.65cqi;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.hero-client-settings__plugin-view[data-plugin-view="config"] strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.45cqi;
  font-weight: 500;
}

.hero-client-settings__plugin-view[data-plugin-view="config"] span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.16cqi;
}

.hero-client-settings__plugin-view[data-plugin-view="config"] img {
  width: 1.6cqi;
  height: 1.6cqi;
  grid-column: 2;
  grid-row: 1 / 3;
}

.hero-client-settings__search {
  display: flex;
  height: 4.6cqi;
  align-items: center;
  gap: 1cqi;
  padding: 0 1.4cqi;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15cqi;
  color: rgba(255, 255, 255, 0.42);
  font-size: 1.2cqi;
}

.hero-client-settings__search img {
  width: 1.75cqi;
  height: 1.75cqi;
}

.hero-client-settings__plugin-count {
  margin: 1.4cqi 0 1.05cqi;
  font-size: 1.25cqi;
}

.hero-client-settings__plugin-count span {
  margin-left: 0.6cqi;
  color: rgba(255, 255, 255, 0.45);
}

.hero-client-settings__plugin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9cqi;
}

.hero-client-settings__plugin-grid button {
  display: flex;
  min-width: 0;
  height: 5.3cqi;
  align-items: center;
  justify-content: space-between;
  gap: 1cqi;
  padding: 0 1.35cqi;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.25cqi;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.hero-client-settings__plugin-grid strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22cqi;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-client-settings__plugin-grid span {
  flex: 0 0 auto;
  padding: 0.45cqi 0.7cqi;
  border-radius: 0.65cqi;
  color: #43d779;
  background: rgba(37, 134, 76, 0.25);
  font-size: 1cqi;
}

.hero-client-settings__agent-label {
  margin: -1.5cqi 0 1.2cqi;
  color: rgba(255, 255, 255, 0.48);
  font-size: 1.13cqi;
}

.hero-client-settings__agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15cqi;
}

.hero-client-settings__agent-grid > button {
  display: grid;
  min-height: 12.7cqi;
  align-content: start;
  gap: 0.85cqi;
  padding: 1.5cqi;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.55cqi;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.hero-client-settings__agent-grid > button.is-active {
  border-color: rgba(235, 239, 246, 0.82);
  background: rgba(255, 255, 255, 0.07);
}

.hero-client-settings__agent-grid strong {
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.4cqi;
  font-weight: 500;
}

.hero-client-settings__agent-grid small {
  margin-left: 0.55cqi;
  padding: 0.25cqi 0.6cqi;
  border-radius: 0.6cqi;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.95cqi;
}

.hero-client-settings__agent-grid span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 1.1cqi;
  line-height: 1.4;
}

.hero-client-settings__agent-grid b {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.22);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 1cqi;
  font-weight: 400;
}

.hero-client-settings__create-agent {
  width: 100%;
  margin-top: 1.35cqi;
}
