/* ================= Instalador Hermes: escolha da IA (ChatGPT ou Claude), 15/10/2026 =================
   Mesmos tokens do formulário (pre-imersao-tema): campo --ui-field, borda --ui-field-border,
   foco --ui-focus, título --ui-heading. Sem gradiente, sem ícone desenhado. */
.hw-provider { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
.hw-provider > legend.hw-lb {
  display: block; padding: 0;
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  color: var(--ui-heading); margin-bottom: 6px;
}
.hw-prov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hw-prov {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--ui-field);
  border: 2px solid var(--ui-field-border);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.hw-prov input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hw-prov-dot {
  flex: 0 0 auto; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ui-field-border);
  background: var(--ui-card);
  display: grid; place-items: center;
}
.hw-prov-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.hw-prov-txt { display: grid; gap: 2px; min-width: 0; }
.hw-prov-name { font-weight: 800; font-size: 17px; color: var(--ui-heading); line-height: 1.2; }
.hw-prov-desc { font-size: 14px; color: var(--ui-text-2); line-height: 1.35; }
.hw-prov:hover { border-color: var(--ui-focus); }
.hw-prov:has(input:checked) {
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-focus) 35%, transparent);
}
.hw-prov input:checked + .hw-prov-dot { border-color: var(--ui-focus); }
.hw-prov input:checked + .hw-prov-dot::after { background: var(--ui-focus); }
.hw-prov input:focus-visible + .hw-prov-dot { outline: 3px solid var(--ui-focus); outline-offset: 2px; }

/* código do Claude: campo e botão na mesma linha, empilham no celular */
.hw-claude-row { display: flex; gap: 10px; align-items: stretch; }
.hw-claude-row .hw-input { flex: 1 1 auto; min-width: 0; font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; }
.hw-claude-row .hw-btn { flex: 0 0 auto; padding: 12px 20px; font-size: 16px; }

@media (max-width: 560px) {
  .hw-prov-grid { grid-template-columns: 1fr; }
  .hw-claude-row { flex-direction: column; }
  .hw-claude-row .hw-btn { width: 100%; }
}
