.cw-ai-app-development-rag {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  background: radial-gradient(620px 420px at 0% 0%, rgba(123, 47, 247, 0.22), transparent 70%), #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
}

.cw-ai-app-development-rag__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.cw-ai-app-development-rag__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: end;
}

.cw-ai-app-development-rag__eyebrow {
  margin: 0 0 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #d4f53c;
}

.cw-ai-app-development-rag__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #f3efe7;
}

.cw-ai-app-development-rag__em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #d4f53c;
}

.cw-ai-app-development-rag__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  color: rgba(234, 231, 225, 0.72);
}

.cw-ai-app-development-rag__lab {
  border-radius: 26px;
  border: 1px solid rgba(234, 231, 225, 0.1);
  background: #1a1714;
  padding: clamp(18px, 2.5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cw-ai-app-development-rag__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-end;
}

.cw-ai-app-development-rag__toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cw-ai-app-development-rag__toolbar-label {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(234, 231, 225, 0.45);
}

.cw-ai-app-development-rag__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cw-ai-app-development-rag__pills button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(234, 231, 225, 0.14);
  background: #141210;
  color: rgba(243, 239, 231, 0.72);
  font: 500 14px 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cw-ai-app-development-rag__pills button:hover {
  border-color: rgba(234, 231, 225, 0.28);
  color: #f3efe7;
}

.cw-ai-app-development-rag__pills button.is-on {
  background: #141210;
  border-color: #ff5527;
  color: #fff;
}

.cw-ai-app-development-rag__pills--mode button.is-on {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-ai-app-development-rag__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.cw-ai-app-development-rag__docs-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.cw-ai-app-development-rag__panel-label {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(234, 231, 225, 0.45);
}

.cw-ai-app-development-rag__docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cw-ai-app-development-rag__doc {
  padding: 14px 16px;
  border-radius: 16px;
  background: #0f0e0d;
  border: 1px solid rgba(234, 231, 225, 0.08);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cw-ai-app-development-rag__doc.is-top {
  border-color: rgba(255, 85, 39, 0.55);
  background: rgba(255, 85, 39, 0.08);
}

.cw-ai-app-development-rag__doc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cw-ai-app-development-rag__doc-title {
  font-weight: 600;
  font-size: 13px;
  color: #f3efe7;
}

.cw-ai-app-development-rag__doc-score {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: rgba(234, 231, 225, 0.45);
  flex-shrink: 0;
}

.cw-ai-app-development-rag__doc.is-top .cw-ai-app-development-rag__doc-score {
  color: #ff7a50;
}

.cw-ai-app-development-rag__doc-snippet {
  margin: 0;
  color: rgba(234, 231, 225, 0.62);
  font-size: 12.5px;
  line-height: 1.55;
}

.cw-ai-app-development-rag__answer-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: 22px;
  background: #0f0e0d;
  border: 1px solid rgba(234, 231, 225, 0.1);
  min-height: 320px;
}

.cw-ai-app-development-rag__phases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-ai-app-development-rag__phase {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  background: rgba(234, 231, 225, 0.06);
  color: rgba(234, 231, 225, 0.45);
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-ai-app-development-rag__phase.is-active {
  background: #ff5527;
  color: #fff;
}

.cw-ai-app-development-rag__phase.is-done {
  background: #d4f53c;
  color: #141210;
}

.cw-ai-app-development-rag__user-q {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(234, 231, 225, 0.55);
}

.cw-ai-app-development-rag__answer {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #f3efe7;
  flex: 1;
}

.cw-ai-app-development-rag__cites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.cw-ai-app-development-rag__cites span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(212, 245, 60, 0.12);
  color: #d4f53c;
  border: 1px solid rgba(212, 245, 60, 0.22);
}

.cw-ai-app-development-rag__warn {
  margin: 0;
  color: #ff7a50;
  font-size: 14px;
  line-height: 1.5;
}
