/* AI Hub no celular, no jeito do Claude Code mobile: início com a caixa de tarefa e as sessões,
   sessão com a conversa e o composer fixo. Tema escuro e claro seguem o celular. */
:root {
  --bg: #262624; --bg-2: #1f1e1d; --surface: #30302e; --surface-2: #3a3936; --hover: rgba(255, 255, 255, 0.06);
  --text: #f5f4ef; --text-2: #d6d3c9; --muted: #a6a39a; --faint: #7d7a72;
  --border: rgba(222, 220, 209, 0.13); --border-2: rgba(222, 220, 209, 0.22);
  --accent: #d97757; --accent-h: #e08566; --accent-soft: rgba(217, 119, 87, 0.16);
  --ok: #7fd18b; --bad: #f08a7e; --warn: #e9c46a; --info: #8ab4f8;
  --claude: #e08a6a; --gpt: #5fcf9f;
  --code-bg: #1b1b1a; --sombra: 0 10px 30px rgba(0, 0, 0, 0.45);
  --serif: 'Tiempos Text', Georgia, 'Times New Roman', serif;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9f5; --bg-2: #f3f1ea; --surface: #ffffff; --surface-2: #efede6; --hover: rgba(0, 0, 0, 0.04);
    --text: #1f1e1d; --text-2: #3d3b36; --muted: #6f6c64; --faint: #9a968c;
    --border: rgba(31, 30, 29, 0.10); --border-2: rgba(31, 30, 29, 0.18);
    --accent: #c96442; --accent-h: #b85a3a; --accent-soft: rgba(201, 100, 66, 0.12);
    --ok: #2f8f46; --bad: #c2483b; --warn: #a67c00; --info: #2f6bd8;
    --claude: #c96442; --gpt: #1e9e6a;
    --code-bg: #f3f1ea; --sombra: 0 10px 30px rgba(0, 0, 0, 0.12);
    color-scheme: light;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

.primario { border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; padding: 12px 16px; }
.primario:disabled { opacity: 0.5; }
.secundario { border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); padding: 8px 12px; font-weight: 600; font-size: 14px; }
.icone { border: 0; background: transparent; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); }
.icone:active { background: var(--hover); }
.icone-espaco { width: 40px; flex: none; }
.link { border: 0; background: none; color: var(--accent-h); text-decoration: underline; padding: 0; font-size: 14px; }
.esp { flex: 1; }

/* ---------- pareamento ---------- */
.parear { min-height: 100%; display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 24px 24px; text-align: center; max-width: 460px; margin: 0 auto; }
.parear .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; }
.parear h1 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; }
.parear p { color: var(--muted); margin: 0; line-height: 1.45; }
.parear input { border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); padding: 14px; text-align: center; }
#codigo { font-size: 30px; letter-spacing: 10px; font-family: var(--mono); }
.instalar { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.erro { color: var(--bad); min-height: 1.2em; }

/* ---------- estrutura ---------- */
.app { position: fixed; inset: 0; }
.tela { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.topo { display: flex; align-items: center; gap: 4px; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; min-height: calc(env(safe-area-inset-top) + 52px); }
.marca { font-family: var(--serif); font-size: 19px; padding-left: 2px; }
.titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.titulo b { font-size: 15px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titulo span { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* equipe: Claude e GPT, compacto no topo do início */
.equipe { margin-left: auto; display: flex; gap: 6px; }
.tm { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 9px; }
.tm b { color: var(--text-2); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.is-working .dot { background: var(--accent); animation: pulso 1.1s infinite; }
.is-judging .dot { background: var(--info); animation: pulso 1.1s infinite; }
.is-watching .dot { background: var(--ok); }
.is-off .dot { background: var(--bad); }
@keyframes pulso { 50% { opacity: 0.3; } }

/* ---------- início ---------- */
.inicio-corpo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px calc(env(safe-area-inset-bottom) + 24px); }
.saudacao { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 18px 4px 16px; }
.nova { background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; padding: 12px 12px 10px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.nova textarea { width: 100%; border: 0; outline: none; background: transparent; resize: none; line-height: 1.45; min-height: 66px; max-height: 220px; padding: 2px 4px; }
.nova textarea::placeholder, .caixa textarea::placeholder { color: var(--faint); }
.nova-pe { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; border: 1px solid var(--border-2); background: transparent; border-radius: 999px; padding: 6px 11px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chip-espaco { flex: none; }
.chip svg { flex: none; color: var(--muted); }
.chip:active { background: var(--hover); }
.enviar { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.enviar:disabled { opacity: 0.35; }

.filtros { display: flex; gap: 6px; margin: 22px 0 6px; overflow-x: auto; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.filtros button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }

.sessoes { list-style: none; margin: 4px 0 0; padding: 0; }
.sessoes li + li { border-top: 1px solid var(--border); }
.sessao { width: 100%; text-align: left; border: 0; background: transparent; padding: 13px 4px; display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; }
.sessao:active { background: var(--hover); }
.sessao .st { width: 22px; height: 22px; flex: none; display: grid; place-items: center; margin-top: 1px; color: var(--muted); }
.sessao .st.rodando { color: var(--accent); }
.sessao .txt { flex: 1; min-width: 0; }
.sessao .t { display: block; font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessao .d { display: block; font-size: 12.5px; color: var(--faint); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sessao .d .rodando { color: var(--accent); }
.vazio { color: var(--faint); padding: 26px 4px; font-size: 14px; text-align: center; }

/* ---------- sessão ---------- */
.conversa { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 16px 12px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg-user { align-self: flex-end; max-width: 85%; background: var(--surface-2); border-radius: 18px 18px 6px 18px; padding: 10px 14px; white-space: pre-wrap; word-break: break-word; font-size: 15.5px; line-height: 1.45; }
.vazia { margin: auto 0; text-align: center; color: var(--muted); padding: 24px; }
.vazia h2 { font-family: var(--serif); font-weight: 400; color: var(--text); font-size: 24px; margin: 0 0 8px; }

/* resposta da IA: sem cartão, como no Claude Code */
.resp { display: flex; flex-direction: column; gap: 6px; }
.resp-topo { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.resp-topo .ia { font-weight: 600; }
.resp-topo .ia.claude { color: var(--claude); }
.resp-topo .ia.gpt { color: var(--gpt); }
.resp-topo .modelo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resp.ao-vivo .resp-topo::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulso 1.1s infinite; }
.md { font-size: 15.5px; line-height: 1.6; color: var(--text); word-break: break-word; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md h3, .md h4 { font-size: 16px; margin: 14px 0 6px; line-height: 1.3; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.md pre { margin: 6px 0 10px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.md pre code { background: none; padding: 0; font-size: 13px; line-height: 1.5; white-space: pre; }
.md strong { font-weight: 650; }
.md .pensando { color: var(--faint); font-style: italic; }

/* arquivos entregues: caixa no estilo das ferramentas do Claude Code */
.arquivos { border: 1px solid var(--border-2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.arquivos-topo { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.arquivos-topo svg { color: var(--muted); }
.arquivo { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.arquivo .tag { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--faint); }

/* linhas de sistema (troca de conta, aplicado, avisos) */
.nota { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.nota svg { flex: none; margin-top: 1px; }
.nota.ok { color: var(--ok); }
.nota.bad { color: var(--bad); }
.fim { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); padding: 2px 0; }
.fim::before, .fim::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.fim.bad { color: var(--bad); }

/* cartões que pedem decisão */
.acao { border: 1px solid var(--border-2); background: var(--surface); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; box-shadow: var(--sombra); }
.acao b { font-size: 15px; }
.acao .det { color: var(--muted); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.acao .botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.acao.feita { box-shadow: none; opacity: 0.7; }

/* barra "trabalhando" e composer */
.status-run { display: flex; align-items: center; gap: 8px; padding: 6px 18px; font-size: 13px; color: var(--muted); }
.status-run .tempo { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--faint); }
.giro { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: gira 0.8s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
.caixa { display: flex; gap: 8px; align-items: flex-end; margin: 4px 12px calc(env(safe-area-inset-bottom) + 10px); padding: 6px 6px 6px 14px; border: 1px solid var(--border-2); border-radius: 22px; background: var(--surface); }
.caixa textarea { flex: 1; resize: none; max-height: 150px; border: 0; background: transparent; padding: 7px 0; line-height: 1.4; outline: none; }
.parar { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; }

/* Claude | GPT (quem trabalha) e o botão Juiz */
.opcoes-ia { display: flex; align-items: center; gap: 8px; padding: 6px 2px 2px; }
.opcoes-sessao { margin: 0 14px; padding: 2px 2px 4px; }
.seg-ia { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg-ia button { border: 0; background: transparent; border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-ia button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.seg-ia button.claude[aria-checked="true"] { color: var(--claude); }
.seg-ia button.gpt[aria-checked="true"] { color: var(--gpt); }
.btn-juiz { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-2); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.btn-juiz.ligado { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* anexos: chips com miniatura (foto) ou ícone (arquivo), antes de enviar e no balão do usuário */
.anexar { width: 34px; height: 34px; color: var(--muted); }
.caixa .anexar { align-self: flex-end; margin-left: -8px; }
.anexos { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.anexos::-webkit-scrollbar { display: none; }
.anexos-sessao { margin: 0 12px; padding: 4px 2px 2px; }
.anexo { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: none; max-width: 210px; border: 1px solid var(--border-2); background: var(--bg); border-radius: 12px; padding: 5px 28px 5px 6px; font-size: 12.5px; color: var(--text-2); }
.anexo img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; flex: none; }
.anexo .ic { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--muted); }
.anexo .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anexo .tira { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; padding: 0; }
.anexo .giro { position: absolute; left: 15px; top: 15px; }
.anexo.enviando img { opacity: 0.45; }
.msg-anexos { align-self: flex-end; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 85%; margin-bottom: -8px; }
.msg-anexos .anexo { padding-right: 10px; }

/* ---------- folha (bottom sheet) ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.45); }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg-2); border-radius: 18px 18px 0 0; padding: 8px 12px calc(env(safe-area-inset-bottom) + 14px); max-height: 80vh; overflow-y: auto; box-shadow: var(--sombra); animation: sobe 0.18s ease-out; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0.4; } }
.folha-alca { width: 36px; height: 5px; border-radius: 3px; background: var(--border-2); margin: 2px auto 10px; }
.folha-titulo { display: block; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 6px 8px; }
.opcao { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 12px; padding: 12px 10px; display: flex; gap: 12px; align-items: center; }
.opcao:active { background: var(--hover); }
.opcao svg { color: var(--muted); flex: none; }
.opcao .txt { flex: 1; min-width: 0; }
.opcao .t { display: block; font-size: 15.5px; }
.opcao .d { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.opcao .marca-ok { color: var(--accent); }
.opcao.perigo .t { color: var(--bad); }
.folha-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.folha-rodape { font-size: 12.5px; color: var(--faint); padding: 8px 10px 0; }

/* ---------- painéis (prévia, contas, ajustes) ---------- */
.painel-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; }
.painel-topo b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.previa { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; }
.previa-aviso { margin: 0 16px 8px; color: var(--muted); font-size: 14px; }
.previa iframe { flex: 1; border: 0; background: #fff; }
.painel { position: fixed; inset: 0; z-index: 35; background: var(--bg); display: flex; flex-direction: column; }
.painel-corpo { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 12px; }
.grupo { border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.grupo > h3 { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dica { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; min-height: 32px; }
.linha > span { color: var(--text); }
.linha select, .campo { border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); padding: 8px; font-size: 14px; max-width: 58%; }
.campo { max-width: none; width: 100%; }
.conta { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.grupo > h3 + .conta, .grupo > .dica + .conta { border-top: 0; padding-top: 0; }
.conta-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conta-topo b { font-size: 15px; }
.selo { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; background: var(--surface-2); color: var(--text-2); }
.selo.ok { color: var(--ok); }
.selo.bad { color: var(--bad); }
.selo.principal { background: var(--accent-soft); color: var(--accent); }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.login { border: 1px solid var(--border-2); background: var(--bg); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.login a.primario { text-align: center; text-decoration: none; }
.codigo-curto { font-family: var(--mono); font-size: 26px; letter-spacing: 3px; text-align: center; user-select: all; -webkit-user-select: all; }
.chave { position: relative; width: 46px; height: 28px; flex: none; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); margin: 0; }
.chave::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
.chave:checked { background: var(--accent); border-color: var(--accent); }
.chave:checked::after { left: 20px; }
.conta-topo .esp { flex: 1; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.aviso { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 84px); z-index: 50; background: var(--text); color: var(--bg); border-radius: 12px; padding: 11px 14px; font-size: 14px; box-shadow: var(--sombra); text-align: center; }

@media (min-width: 720px) {
  .inicio-corpo, .conversa { padding-left: max(16px, calc(50% - 340px)); padding-right: max(16px, calc(50% - 340px)); }
  .caixa { width: min(680px, calc(100% - 24px)); margin-left: auto; margin-right: auto; }
}

/* Navegador completo: arquivos baixam pela sessão autenticada. */
.entrega { font-family: var(--font); gap: 10px; flex-wrap: wrap; }
.entrega strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.baixar-arquivo { color: var(--accent-h); text-decoration: none; white-space: nowrap; }
.recurso-item { padding: 8px 0; border-top: 1px solid var(--border); }
.recurso-item:first-of-type { border-top: 0; }
.recurso-item b { font-size: 14px; }
.recurso-item .dica { margin-top: 4px; }
.escopo-servidor { border-color: var(--accent-soft); }
.resposta-principal .resp-topo { display: none; }
#status-tempo { display: none; }

@media (min-width: 900px) {
  .topo { padding-left: 24px; padding-right: 24px; min-height: 64px; border-bottom: 1px solid var(--border); }
  .inicio-corpo { width: 100%; max-width: 1220px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 1fr); column-gap: 44px; grid-template-rows: auto 1fr; align-content: start; }
  .saudacao { grid-column: 1; grid-row: 1; font-size: 34px; margin: 8px 0 22px; }
  .nova { grid-column: 1; grid-row: 2; align-self: start; }
  .nova textarea { min-height: 160px; }
  .filtros { grid-column: 2; grid-row: 1; margin: 10px 0 18px; align-self: center; }
  .sessoes { grid-column: 2; grid-row: 2; margin: 0; }
  .conversa { padding: 28px max(32px, calc(50% - 420px)) 20px; gap: 18px; }
  .caixa { width: min(840px, calc(100% - 48px)); margin-bottom: 20px; }
  .opcoes-sessao, .anexos-sessao, .status-run { width: min(840px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
  .painel { inset: 36px max(40px, calc(50% - 540px)); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
  .painel-corpo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: start; padding: 22px; gap: 18px; }
  .painel-corpo > .dica, .escopo-servidor, .skills-catalogo { grid-column: 1 / -1; }
  .folha { left: 50%; right: auto; width: min(520px, calc(100vw - 64px)); transform: translateX(-50%); bottom: 26px; border-radius: 18px; padding: 18px; }
  .folha-alca { display: none; }
  .aviso { left: 50%; right: auto; width: max-content; max-width: 700px; transform: translateX(-50%); }
}
