/* Agente de IA Currículo (Creative IA > painel HubClub IA). Tudo dentro de .hc, para não mexer no resto do painel. Mesmo
   desenho das outras abas da HubClub: fundos #0D0D0D/#101010/#141414, texto branco, destaque #2E7697, texto de destaque
   #76B7D5, degradê #2E7697 -> #022F46. Nada de amarelo ou vermelho: avisos em azul, com texto. A prévia do currículo é uma
   folha branca (o mesmo desenho do PDF). */
.hc, #hc-aviso {
  --hc-fundo: #101010;
  --hc-cartao: #141414;
  --hc-cartao2: #181818;
  --hc-borda: rgba(255, 255, 255, .07);
  --hc-texto: rgba(255, 255, 255, .92);
  --hc-texto2: rgba(255, 255, 255, .68);
  --hc-mudo: rgba(255, 255, 255, .5);
  --hc-claro: #76B7D5;
  --hc-azul: #2E7697;
  --hc-degrade: linear-gradient(135deg, #2E7697, #022F46);
  color: var(--hc-texto);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.hc { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc button, .hc input, .hc textarea { font-family: inherit; }
.hc [hidden] { display: none !important; }
.hc :focus-visible { outline: 2px solid var(--hc-claro); outline-offset: 2px; }
.hc-ic { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.hc-ic svg { width: 100%; height: 100%; }
.hc p { margin: 0 0 8px; }
.hc p:last-child { margin-bottom: 0; }
.hc-mudo { color: var(--hc-mudo); font-size: 12px; }

/* ── topo */
.hc-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .05); flex-shrink: 0; }
.hc-titulo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hc-icone { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; padding: 7px;
  background: rgba(46, 118, 151, .12); border: 1px solid rgba(46, 118, 151, .25); color: var(--hc-claro); }
.hc-marca { width: 34px; height: 34px; border-radius: 50%; background: #000; object-fit: contain; flex-shrink: 0; }
.hc-titulo strong { display: block; font-size: 14px; font-weight: 600; }
.hc-titulo span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 1px; }

.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600; border: 1px solid rgba(46, 118, 151, .35); background: rgba(46, 118, 151, .1);
  color: var(--hc-claro); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s; }
.hc-btn:hover { background: rgba(46, 118, 151, .2); border-color: rgba(118, 183, 213, .45); }
.hc-btn:disabled { opacity: .5; cursor: default; }
.hc-btn.forte { background: var(--hc-degrade); border-color: rgba(118, 183, 213, .35); color: #fff; }
.hc-btn.forte:hover:not(:disabled) { filter: brightness(1.12); }
.hc-btn.discreto { background: transparent; border-color: rgba(255, 255, 255, .12); color: var(--hc-texto2); }
.hc-btn.discreto:hover { background: rgba(255, 255, 255, .05); color: var(--hc-texto); }
.hc-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--hc-claro);
  font-size: 12px; font-weight: 600; cursor: pointer; }
.hc-link:hover { text-decoration: underline; }
.hc-link:disabled { opacity: .5; cursor: default; }
.hc-link .hc-ic { width: 14px; height: 14px; }

/* ── corpo: a conversa */
.hc-corpo { flex: 1; min-height: 0; display: flex; }
.hc-principal { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 24px 64px; }

.hc-espera { padding: 60px 20px; text-align: center; color: var(--hc-mudo); }

/* ── conversa */
.hc-conversa { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.hc-msg { display: flex; gap: 10px; align-items: flex-start; }
.hc-msg.pessoa { justify-content: flex-end; }
.hc-avatar { width: 32px; height: 32px; border-radius: 10px; padding: 6px; background: var(--hc-degrade); color: #fff; margin-top: 2px; }
.hc-balao { background: var(--hc-cartao); border: 1px solid var(--hc-borda); border-radius: 4px 14px 14px 14px; padding: 13px 16px;
  min-width: 0; max-width: 100%; flex: 1; font-size: 13.2px; }
.hc-msg.pessoa .hc-balao { flex: 0 1 auto; border-radius: 14px 4px 14px 14px; background: rgba(46, 118, 151, .1);
  border-color: rgba(46, 118, 151, .28); max-width: 88%; }
.hc-msg.pessoa.hc-msg-envio .hc-balao { flex: 1; max-width: 100%; background: var(--hc-cartao); border-color: rgba(118, 183, 213, .22); }
.hc-msg.nao-feito .hc-balao { border-color: rgba(118, 183, 213, .35); background: rgba(46, 118, 151, .06); }
.hc-msg.entrega .hc-balao { border-color: rgba(118, 183, 213, .4); background: linear-gradient(180deg, rgba(46, 118, 151, .12), rgba(46, 118, 151, .03)); }
.hc-rotulo { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hc-claro); margin: 2px 0 6px; }

/* envio */
.hc-envio { display: flex; flex-direction: column; gap: 14px; }
.hc-zona { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed rgba(118, 183, 213, .35); background: rgba(46, 118, 151, .05); transition: background .15s, border-color .15s; }
.hc-zona:hover, .hc-zona.arrastando { background: rgba(46, 118, 151, .12); border-color: rgba(118, 183, 213, .6); }
.hc-zona.com-arquivo { border-style: solid; }
.hc-arquivo-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.hc-zona-ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(46, 118, 151, .18); color: var(--hc-claro); }
.hc-zona-texto { display: flex; flex-direction: column; min-width: 0; }
.hc-zona-texto strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-zona-texto span { font-size: 12px; color: var(--hc-mudo); margin-top: 2px; }
.hc-campo { display: flex; flex-direction: column; gap: 5px; }
.hc-campo > span { font-size: 12px; font-weight: 600; color: var(--hc-texto2); }
.hc-campo small { font-size: 11.5px; color: var(--hc-mudo); }
.hc input[type="text"], .hc textarea { width: 100%; background: #0c0c0c; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px;
  color: var(--hc-texto); padding: 9px 12px; font-size: 13px; resize: vertical; }
.hc input[type="text"]:focus, .hc textarea:focus { border-color: rgba(118, 183, 213, .55); outline: none; }
.hc input::placeholder, .hc textarea::placeholder { color: rgba(255, 255, 255, .3); }
.hc-envio-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.hc-enviado { display: flex; gap: 10px; align-items: center; }
.hc-enviado .hc-ic { width: 22px; height: 22px; color: var(--hc-claro); }
.hc-enviado strong { display: block; font-size: 13px; word-break: break-all; }
.hc-enviado span { display: block; font-size: 11.5px; color: var(--hc-texto2); }

/* progresso */
.hc-progresso { display: flex; flex-direction: column; gap: 10px; }
.hc-etapas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hc-etapas li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hc-mudo); }
.hc-etapas li .hc-ic { width: 14px; height: 14px; }
.hc-etapas li.feita { color: var(--hc-texto2); }
.hc-etapas li.feita .hc-ic { color: var(--hc-claro); }
.hc-etapas li.agora { color: #fff; font-weight: 600; }
.hc-etapas li.agora .hc-ic { color: var(--hc-claro); animation: hc-pisca 1.2s ease-in-out infinite; }
@keyframes hc-pisca { 50% { opacity: .3; } }
.hc-frase { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hc-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--hc-claro); flex-shrink: 0; animation: hc-pulso 1.4s ease-out infinite; }
@keyframes hc-pulso { 0% { box-shadow: 0 0 0 0 rgba(118, 183, 213, .55); } 100% { box-shadow: 0 0 0 12px rgba(118, 183, 213, 0); } }
.hc-tempo { font-size: 11.5px; color: var(--hc-mudo); }

/* diagnóstico e notas */
.hc-diag-cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 8px; }
.hc-diag-quem { font-weight: 600; font-size: 13.5px; }
.hc-nota { min-width: 190px; }
.hc-nota-rotulo { display: block; font-size: 11px; color: var(--hc-mudo); margin-bottom: 4px; }
.hc-nota-linha { display: flex; align-items: center; gap: 9px; }
.hc-nota-linha b { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 30px; }
.hc-nota-barra { flex: 1; height: 7px; border-radius: 99px; background: rgba(118, 183, 213, .13); overflow: hidden; }
.hc-nota-barra i { display: block; height: 100%; border-radius: 99px; background: var(--hc-degrade); }
.hc-nota.antes .hc-nota-barra i { background: #475B66; }
.hc-nota.antes b { color: var(--hc-texto2); }
.hc-nota.depois b { color: var(--hc-claro); }
.hc-notas { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 14px; }
.hc-notas .hc-nota { flex: 1; }
.hc-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.hc-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hc-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hc-ul li { position: relative; padding-left: 18px; font-size: 12.8px; color: var(--hc-texto2); }
.hc-ul li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--hc-claro); }
.hc-ul.certos li::before { content: '✓'; background: none; width: auto; height: auto; top: 0; left: 1px; color: var(--hc-claro); font-weight: 700; font-size: 12px; }
.hc-ul.setas li::before { content: '→'; background: none; width: auto; height: auto; top: -1px; left: 0; color: var(--hc-claro); font-weight: 700; }

.hc-recolhido > summary { cursor: pointer; font-weight: 600; font-size: 12.8px; color: var(--hc-texto2); list-style: none;
  display: flex; align-items: center; gap: 8px; }
.hc-recolhido > summary::-webkit-details-marker { display: none; }
.hc-recolhido > summary::before { content: '▸'; color: var(--hc-claro); transition: transform .15s; }
.hc-recolhido[open] > summary { margin-bottom: 12px; color: var(--hc-texto); }
.hc-recolhido[open] > summary::before { transform: rotate(90deg); }

/* perguntas */
.hc-perguntas { display: flex; flex-direction: column; gap: 14px; }
.hc-pergunta { display: flex; flex-direction: column; gap: 5px; }
.hc-pergunta-t { display: flex; gap: 7px; font-weight: 600; font-size: 13.2px; }
.hc-pergunta-t b { color: var(--hc-claro); }
.hc-pergunta small { color: var(--hc-mudo); font-size: 11.8px; margin-left: 18px; }
.hc-pergunta textarea { margin-left: 18px; width: calc(100% - 18px); }
.hc-perguntas-pe { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.hc-respostas { display: flex; flex-direction: column; gap: 9px; }
.hc-resposta small { display: block; color: var(--hc-mudo); font-size: 11.5px; }
.hc-resposta p { margin: 1px 0 0; white-space: pre-wrap; }

/* entrega */
.hc-baixar { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-baixar .hc-btn { padding: 10px 18px; font-size: 13px; }
.hc-resultado { display: flex; flex-direction: column; gap: 14px; margin-left: 42px; }
.hc-cartao { background: var(--hc-cartao); border: 1px solid var(--hc-borda); border-radius: 14px; padding: 16px 18px; }
.hc-cartao h3 { margin: 0 0 12px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hc-cartao h3 .hc-ic { color: var(--hc-claro); }
.hc-conferir { border-color: rgba(118, 183, 213, .35); background: rgba(46, 118, 151, .07); }
.hc-conferir .hc-mudo { display: block; margin-bottom: 10px; }
.hc-avisos li b { color: var(--hc-texto); font-weight: 600; }
.hc-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-bottom: 12px; }
.hc-check-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: var(--hc-cartao2);
  border: 1px solid var(--hc-borda); }
.hc-check-item .hc-ic { width: 15px; height: 15px; margin-top: 2px; color: var(--hc-mudo); }
.hc-check-item.ok .hc-ic { color: var(--hc-claro); }
.hc-check-item b { display: block; font-size: 12.3px; }
.hc-check-item span { display: block; font-size: 11.5px; color: var(--hc-mudo); line-height: 1.4; margin-top: 1px; }

/* prévia (folha branca, como o PDF) */
.hc-previa-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hc-previa-cab h3 { margin: 0; }
.hc-moldura { background: #0a0a0a; border-radius: 10px; padding: 18px; overflow-x: auto; }
.hc-folha { background: #fff; color: #1F2328; max-width: 794px; margin: 0 auto; padding: 46px 50px 54px; border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45); font-family: Helvetica, Arial, 'Liberation Sans', sans-serif; font-size: 13px; line-height: 1.37; }
.hc-folha .cv-nome { font-size: 29px; font-weight: 700; color: #022F46; line-height: 1.15; }
.hc-folha .cv-cargo { font-size: 16px; color: #2E7697; margin-top: 3px; }
.hc-folha .cv-contato { font-size: 11.7px; color: #5A6570; margin-top: 6px; }
.hc-folha .cv-fio { border: 0; border-top: 1.6px solid #2E7697; margin: 10px 0 4px; }
.hc-folha .cv-titulo { font-size: 14px; font-weight: 700; color: #022F46; text-transform: uppercase; letter-spacing: .08em;
  margin: 18px 0 7px; padding-bottom: 4px; border-bottom: 1px solid #C9D7DF; }
.hc-folha .cv-p { margin: 0 0 5px; color: #1F2328; }
.hc-folha .cv-item { margin-bottom: 11px; }
.hc-folha .cv-item.curto { margin-bottom: 8px; }
.hc-folha .cv-item-cab { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.hc-folha .cv-item-cab b { font-size: 13.8px; color: #1F2328; }
.hc-folha .cv-item-cab span { font-size: 12px; color: #5A6570; white-space: nowrap; }
.hc-folha .cv-onde { color: #2E7697; font-size: 12.8px; }
.hc-folha .cv-contexto { color: #5A6570; font-style: italic; font-size: 12.3px; margin-top: 1px; }
.hc-folha .cv-ul { margin: 4px 0 0; padding-left: 18px; }
.hc-folha .cv-ul li { margin: 2px 0; padding-left: 2px; color: #1F2328; }
.hc-folha .cv-ul li::marker { color: #2E7697; }

/* ajustes */
.hc-ajustes .hc-mudo { display: block; margin-bottom: 12px; }
.hc-ajustes-hist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.hc-ajustes-hist .hc-balao { background: var(--hc-cartao2); }
.hc-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hc-sug { background: transparent; border: 1px solid rgba(118, 183, 213, .25); color: var(--hc-texto2); border-radius: 999px;
  padding: 4px 11px; font-size: 11.8px; cursor: pointer; }
.hc-sug:hover { border-color: rgba(118, 183, 213, .55); color: #fff; background: rgba(46, 118, 151, .12); }
.hc-ajuste-linha { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.hc-ajuste-linha textarea { flex: 1; }

.hc-erro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hc-rodape { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 10px 0 0 42px; }
.hc-rodape .hc-mudo { font-size: 11.5px; }

/* aviso rápido */
#hc-aviso { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 9999;
  background: #0f2733; border: 1px solid rgba(118, 183, 213, .45); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
#hc-aviso.ver { opacity: 1; transform: translate(-50%, 0); }

/* ── telas estreitas */
@media (max-width: 1100px) {
  .hc-tres { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hc-principal { padding: 16px 16px 90px; }
  .hc-resultado { margin-left: 0; }
  .hc-rodape { padding-left: 0; }
  .hc-duas { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hc-topo { padding: 10px 16px; }
  .hc-avatar { display: none; }
  .hc-msg.pessoa .hc-balao { max-width: 100%; }
  .hc-moldura { padding: 8px; }
  .hc-folha { padding: 24px 18px 30px; font-size: 11.5px; }
  .hc-folha .cv-nome { font-size: 22px; }
  .hc-folha .cv-cargo { font-size: 14px; }
  .hc-folha .cv-item-cab { flex-direction: column; gap: 0; }
  .hc-ajuste-linha { flex-direction: column; align-items: stretch; }
  .hc-pergunta small, .hc-pergunta textarea { margin-left: 0; width: 100%; }
}
