.copilotPagina { display: grid; gap: 18px; width: 100%; max-width: none; }
.copilotAbas { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.copilotAbas button { appearance: none; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-3); padding: 12px 18px; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.copilotAbas button:hover { color: var(--ink); background: var(--surface-2); }
.copilotAbas button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.copilotPainel { display: grid; gap: 18px; min-width: 0; }
.copilotPainel[hidden] { display: none; }
.copilotResumo { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-2); }
.copilotResumo h2 { margin: 0 0 5px; font-size: 21px; }
.copilotResumo p { margin: 0; }
.copilotCartao { padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; }
.copilotCartao h2 { margin: 0 0 12px; font-size: 21px; }
.copilotCartao p, .copilotCartao li { line-height: 1.7; font-size: 14px; }
.copilotCartao ol { padding-left: 22px; }
.copilotSelo { font: 11px var(--mono); letter-spacing: .1em; margin-bottom: 12px; color: var(--ink-3); }
.copilotAviso { padding: 16px; border-left: 3px solid var(--accent); margin: 18px 0; background: var(--surface-2); }
.copilotAviso p { margin-bottom: 0; }
.copilotAviso--pronto { border-left-color: #16845b; }
.copilotAviso--erro { border-left-color: #c83c3c; }
.copilotAviso--atencao { border-left-color: #b7791f; }
.copilotAcoes { display: flex; flex-wrap: wrap; gap: 12px; }
.copilotEtapas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.copilotEtapas span { padding: 7px 10px; border: 1px solid var(--line-2); color: var(--ink-3); font: 11px var(--mono); letter-spacing: .04em; }
.copilotEtapas span::before { content: "○ "; }
.copilotEtapas span.feito { color: #16845b; border-color: currentColor; }
.copilotEtapas span.feito::before { content: "✓ "; }
.copilotConsole { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; }
.copilotConsole > header { min-height: 48px; padding: 8px 12px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-2); }
.copilotConsole > header div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.copilotConsole > header span { color: var(--ink-3); font: 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copilotConsole iframe { display: block; width: 100%; height: max(680px, calc(100vh - 245px)); border: 0; background: #fff; }
.copilotChaveForm { display: grid; gap: 12px; max-width: 560px; margin-top: 16px; }
.copilotChaveValor { font-family: var(--mono); }
.copilotErroChave { color: #b42318; margin: 10px 0 0; }
.copilotConfigAbas { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.copilotConfigAbas button { appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); padding: 9px 13px; font: inherit; font-weight: 700; cursor: pointer; }
.copilotConfigAbas button:hover { color: var(--ink); background: var(--surface-2); }
.copilotConfigAbas button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.copilotContextoForm, .copilotContextoForm > section { display: grid; gap: 18px; }
.copilotContextoForm > section[hidden] { display: none; }
.copilotContextoForm textarea { width: 100%; min-height: 180px; resize: vertical; font: 13px/1.55 var(--mono); }
.copilotContextoForm .campo small { display: block; margin-top: 7px; color: var(--ink-3); line-height: 1.5; }
.copilotDocumentos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 22px; }
.copilotDocumento { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; }
.copilotDocumento:has(input:checked) { border-color: var(--accent); }
.copilotDocumento input { margin-top: 3px; accent-color: var(--accent); }
.copilotDocumento strong, .copilotDocumento small { display: block; }
.copilotDocumento small { margin-top: 4px; color: var(--ink-3); line-height: 1.45; }
.copilotDocumentacaoLivre { margin-top: 20px; }
.copilotContextoRodape { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); position: sticky; bottom: 0; z-index: 2; }
.copilotContextoRodape[hidden] { display: none; }
.copilotContextoRodape [data-copilot-contexto-resultado] { flex: 1 1 280px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 640px) { .copilotCartao { padding: 16px; } .copilotResumo { align-items: flex-start; flex-direction: column; } .copilotAbas button { padding-inline: 13px; } .copilotConsole iframe { height: calc(100vh - 220px); min-height: 560px; } }
@media (max-width: 760px) { .copilotDocumentos { grid-template-columns: 1fr; } .copilotContextoRodape { position: static; } }
