:root {
  --bg: oklch(0.14 0.02 260);
  --bg-raised: oklch(0.17 0.02 260);
  --bg-card: oklch(0.19 0.02 260);
  --border: oklch(0.24 0.02 260);
  --border-soft: oklch(0.28 0.02 260);
  --text: oklch(0.94 0.01 260);
  --text-bright: oklch(0.96 0.01 260);
  --text-muted: oklch(0.65 0.02 260);
  --text-faint: oklch(0.5 0.02 260);
  --teal: oklch(0.7 0.19 200);
  --violet: oklch(0.7 0.19 300);
  --orange: oklch(0.75 0.19 55);
}

* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

button, textarea {
  font-family: inherit;
  color: inherit;
}

/* ---------- topbar ---------- */

.topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-bright);
}

.tier-toggle {
  display: flex;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.tier-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.tier-btn.is-active {
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
}

.help-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-raised);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tier-toggle { flex-shrink: 0; }
.brand { flex-shrink: 0; }

.help-btn:hover { border-color: var(--teal); color: var(--text); }

/* ---------- tutorial de primeiro acesso / política de uso ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.1 0.02 260 / 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px 26px;
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text-bright);
  margin: 0;
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  white-space: pre-line;
}

.modal-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-soft);
}

.modal-dot.is-active {
  background: var(--teal);
  width: 18px;
  border-radius: 999px;
}

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-skip {
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
}

.modal-skip:hover { color: var(--text-muted); }

.modal-primary-btn {
  border: none;
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.modal-primary-btn:disabled { opacity: 0.4; cursor: default; }

.modal-secondary-btn {
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.policy-text-box {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-line;
  background: var(--bg-raised);
}

.policy-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.policy-check-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---------- conta / login-cadastro (29/08/2026) ---------- */

.account-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.account-bar[hidden] { display: none; }

.account-email {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

/* Em telas estreitas não cabe e-mail + plano + sair ao lado do seletor de
   mix — prioriza plano/consumo e o botão de sair, escondendo o e-mail (ele
   já aparece se a pessoa abrir o painel de conta no futuro). */
@media (max-width: 480px) {
  .account-email { display: none; }
  /* Nome do plano some da barra estreita — some, e não vira "G." cortado
     pela ellipsis. A informação completa (plano + consumo) mora na linha
     do composer, que tem a largura inteira da tela. */
  .account-plano-tag { display: none; }
}

.account-plano-tag {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 90px;
}

.account-plano-tag.is-limite-perto { border-color: var(--orange); color: var(--orange); }

.account-logout-btn {
  border: none;
  background: none;
  color: var(--text-faint);
  font-size: 11.5px;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  flex-shrink: 0;
  white-space: nowrap;
}

.account-logout-btn:hover { color: var(--text-muted); }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  align-self: flex-start;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab-btn.is-active {
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.auth-input {
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  font-size: 14px;
}

.auth-input:focus { outline: none; border-color: var(--teal); }

.auth-error {
  color: var(--orange);
  font-size: 12.5px;
  margin: 0;
}

.auth-submit-btn {
  border: none;
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
}

.auth-submit-btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- tela de preços / upgrade (29/08/2026) ---------- */

/* O link pra tela de preços, quando logado, mora na linha do composer
   (largura cheia) em vez de disputar espaço no cabeçalho — um botão
   próprio no topbar (e depois um dentro da barra de conta) reabriu o mesmo
   bug de sobreposição em tela estreita que já tinha sido corrigido (ver
   seção 7 do documento técnico): a barra de conta já fica no limite só com
   e-mail/plano/sair num celular, e qualquer elemento a mais nela transborda
   por cima do seletor de mix. A linha do composer nunca teve esse
   problema — é onde o detalhe de plano/consumo já mora desde a correção
   anterior. */
.planos-inline-link {
  border: none;
  background: none;
  color: var(--teal);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.planos-inline-link[hidden] { display: none; }

.account-planos-btn:hover { color: var(--text-muted); }

.modal-card-wide {
  max-width: 720px;
}

.planos-link {
  border: none;
  background: none;
  color: var(--teal);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  align-self: center;
}

.planos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 620px) {
  .planos-grid { grid-template-columns: 1fr; }
}

.plano-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plano-card.is-atual {
  border-color: var(--teal);
}

.plano-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plano-nome {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-bright);
}

.plano-badge-atual {
  background: var(--teal);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.plano-preco {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-bright);
}

.plano-preco .plano-preco-periodo {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

.plano-descricao {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1 1 auto;
}

.plano-assinar-btn {
  border: none;
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
}

.plano-assinar-btn:disabled {
  background: var(--bg-card);
  color: var(--text-faint);
  cursor: default;
}

.plano-assinar-btn.is-pendente {
  background: var(--bg-card);
  color: var(--orange);
  border: 1px solid var(--orange);
  cursor: default;
}

.plano-assinar-btn.is-confirmando {
  background: var(--orange);
  color: var(--bg);
}

.planos-aviso {
  background: var(--bg-raised);
  border: 1px solid var(--teal);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.planos-nota {
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- mock banner ---------- */

.mock-banner {
  flex-shrink: 0;
  background: oklch(0.3 0.1 55);
  color: oklch(0.95 0.03 55);
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
}

/* ---------- scroll area / empty state ---------- */

.scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 12px 16px;
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 8px;
}

.empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-bright);
  margin: 6px 0 0 0;
}

.empty-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- thread ---------- */

.thread {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.turn-question-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.turn-question {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-bright);
  font-weight: 500;
}

.answer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px 20px;
}

.agreement-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agreement-dots { display: flex; gap: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.teal { background: var(--teal); }
.dot.violet { background: var(--violet); }
.dot.dim { background: var(--border-soft); }

.agreement-label {
  font-size: 12px;
  color: var(--text-muted);
}

.response-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
}

.response-count.has-failures {
  color: var(--orange);
  font-weight: 600;
}

.answer-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.answer-meta {
  font-size: 11px;
  color: var(--text-faint);
}

.answer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.speak-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-soft);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.speak-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--text); }

.speak-btn.is-speaking {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
}

.speak-btn:disabled { opacity: 0.4; cursor: default; }

/* Convite pra continuar a conversa, logo após a resposta consolidada — em
   vez de a pessoa só ler e ir embora, o app pergunta se ela quer saber mais
   sobre o tema ou o que motivou a pergunta, alimentando o assunto com o
   histórico já implementado (seção 4.5 do plano de negócio, pedido do
   Francisco, 27/08/2026). Clicar foca direto no campo de pergunta. */
.followup-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--border-soft);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: text;
}

.followup-nudge:hover { border-color: var(--orange); color: var(--text); }

.followup-nudge svg { flex-shrink: 0; stroke: var(--orange); }

/* Fontes reais de pesquisa na web, ao final da resposta (hoje, só quando a
   Perplexity participou da consulta — ver comentários em consolidador.py).
   Pedido do Francisco, 29/08/2026. */
.fontes-block {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.fontes-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.fontes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fontes-list li {
  font-size: 12.5px;
  line-height: 1.4;
}

.fontes-list a {
  color: var(--teal);
  text-decoration: none;
  word-break: break-word;
}

.fontes-list a:hover { text-decoration: underline; }

.fontes-provider {
  color: var(--text-faint);
}

.individual-toggle {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--teal);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.individual-answers {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.individual-answers.is-open { display: flex; }

.individual-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.individual-card.is-majority { border-color: var(--teal); }
.individual-card.is-divergent { border-color: var(--violet); }

.individual-provider {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.individual-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 500;
}

.individual-tag.majority { background: oklch(0.7 0.19 200 / 0.2); color: var(--teal); }
.individual-tag.divergent { background: oklch(0.7 0.19 300 / 0.2); color: var(--violet); }

.individual-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- formatação renderizada a partir do markdown das respostas ---------- */

.answer-text p, .individual-text p {
  margin: 0 0 10px 0;
}
.answer-text p:last-child, .individual-text p:last-child { margin-bottom: 0; }

.answer-text h4, .answer-text h5, .answer-text h6,
.individual-text h4, .individual-text h5, .individual-text h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
  margin: 14px 0 6px 0;
}
.answer-text h4:first-child, .individual-text h4:first-child,
.answer-text h5:first-child, .individual-text h5:first-child,
.answer-text h6:first-child, .individual-text h6:first-child { margin-top: 0; }

.answer-text h4, .individual-text h4 { font-size: 1.15em; }
.answer-text h5, .individual-text h5 { font-size: 1.05em; }
.answer-text h6, .individual-text h6 { font-size: 1em; }

.answer-text strong, .individual-text strong { color: var(--text-bright); font-weight: 600; }
.answer-text em, .individual-text em { font-style: italic; }

.answer-text code, .individual-text code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  font-size: 0.9em;
}

.answer-text pre, .individual-text pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 8px 0;
}
.answer-text pre code, .individual-text pre code {
  background: none;
  border: none;
  padding: 0;
}

.answer-text ul, .answer-text ol, .individual-text ul, .individual-text ol {
  margin: 4px 0 10px 0;
  padding-left: 22px;
}
.answer-text li, .individual-text li { margin-bottom: 4px; }

.answer-text blockquote, .individual-text blockquote {
  border-left: 3px solid var(--border-soft);
  margin: 8px 0;
  padding: 2px 12px;
  color: var(--text-muted);
}

.answer-text hr, .individual-text hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.answer-text a, .individual-text a {
  color: var(--teal);
  text-decoration: underline;
}

.error-text {
  font-size: 13px;
  color: oklch(0.7 0.19 30);
}

.loading-turn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 0;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- composer ---------- */

.composer {
  flex-shrink: 0;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom)) 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.composer-meta {
  font-size: 11px;
  color: var(--text-faint);
  width: 100%;
  max-width: 640px;
}

.provider-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  width: 100%;
  max-width: 640px;
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 640px;
}

.provider-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-raised);
  color: var(--text-faint);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.provider-btn.is-selected {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--bg);
  font-weight: 600;
}

.voice-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 640px;
  height: 26px;
}

.voice-wave[hidden] { display: none; }

.voice-wave-bar {
  width: 3px;
  height: 6%;
  border-radius: 2px;
  background: var(--orange);
}

.composer-row {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.question-input {
  flex: 1;
  resize: none;
  max-height: 120px;
  border-radius: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.4;
}

.question-input:focus { outline: none; border-color: var(--teal); }
.question-input::placeholder { color: var(--text-faint); }

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.send-btn:disabled { opacity: 0.5; cursor: default; }

.mic-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.mic-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--text); }

.mic-btn.is-listening {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
  animation: mic-pulse 1.2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.75 0.19 55 / 0.35); }
  50% { box-shadow: 0 0 0 8px oklch(0.75 0.19 55 / 0); }
}

.mic-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- responsive: a little more breathing room past phone width ---------- */

@media (min-width: 640px) {
  .topbar, .composer { padding-left: 24px; padding-right: 24px; }
  .scroll-area { padding-left: 24px; padding-right: 24px; }
}


/* ---------- Modo Projeto (08/10/2026) ---------- */
.project-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  padding: 8px 12px;
  border: 1px solid oklch(0.7 0.19 200 / 0.4);
  background: oklch(0.7 0.19 200 / 0.1);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-bright);
}
.project-banner[hidden], .provider-row[hidden], .provider-row-label[hidden] { display: none; }
.project-banner button {
  border: none;
  background: none;
  color: var(--teal);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
}
.project-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid oklch(0.7 0.19 200 / 0.5);
  background: oklch(0.7 0.19 200 / 0.12);
  color: var(--teal);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.project-btn:hover { background: oklch(0.7 0.19 200 / 0.2); }
.project-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}
.project-note {
  align-self: center;
  max-width: 560px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 14px;
  border: 1px dashed oklch(0.7 0.19 200 / 0.4);
  border-radius: 10px;
  margin: 8px 0;
}

.individual-time { font-size: 11px; color: var(--text-faint); }

/* ---------- Caixa "com qual IA você quer desenvolver?" (26/10/2026) ---------- */
.project-chooser {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid oklch(0.7 0.19 200 / 0.45);
  background: oklch(0.7 0.19 200 / 0.08);
  border-radius: 12px;
}
.project-chooser-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-bright);
}
.project-chooser-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-chooser-btn {
  border: 1px solid var(--teal);
  background: var(--bg-raised);
  color: var(--text-bright);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.project-chooser-btn:hover { background: var(--teal); color: var(--bg); }
.project-chooser-hint {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.project-chooser-hint:hover { color: var(--text); }

/* ---------- Botão "copiar código" (26/10/2026) ---------- */
.code-wrap {
  position: relative;
  margin: 8px 0;
}
.code-wrap pre { margin: 0 !important; padding-top: 36px !important; }
.copy-code-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-code-btn:hover { border-color: var(--teal); color: var(--text); }
.copy-code-btn.is-copied { border-color: var(--teal); background: var(--teal); color: var(--bg); font-weight: 600; }
