/* Cabeçalho das páginas, painel da direita antes do primeiro card, resumo de Meus cards, cadastro da equipe e tela de entrada.
   Carrega depois de extras.css. */

/* =====================================================================
   Cabeçalho das páginas: barra de ferramentas + faixa com título, selos e a montanha da marca
   ===================================================================== */
.main > .top { text-align: left; border-bottom: 0; padding: 0; margin-bottom: 26px; display: grid; gap: 16px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top .logo { height: 52px; width: auto; margin: 0; }
.top-tools { justify-content: flex-end; }
.top-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 172px; padding: 30px 40px; border: 1px solid var(--line-soft); border-radius: 28px; background: linear-gradient(115deg, #fff 0%, #f4f2ff 62%, #e4deff 100%); box-shadow: var(--sombra-1); }
.top-txt { position: relative; z-index: 1; max-width: min(660px, calc(100% - 290px)); }
.top-hero h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 6px 0 8px; }
.top-hero .sub { margin: 0; max-width: 56ch; }
.top-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.top-stats:empty { display: none; }
.top-stats li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-soft); border-radius: 99px; padding: 5px 13px 5px 10px; font-size: 12.5px; font-weight: 500; color: var(--navy); animation: rise .45s var(--ease) backwards; }
.top-stats li:nth-child(2) { animation-delay: .06s; }
.top-stats li:nth-child(3) { animation-delay: .12s; }
.top-stats .i { width: 15px; height: 15px; color: var(--blue); flex: none; }
.top-deco { position: absolute; right: 0; bottom: 0; height: 100%; max-height: 200px; width: auto; pointer-events: none; }
.d-n1 { fill: var(--blue); }
.d-n2 { fill: var(--yellow); }

.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; background: #fff; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--navy); }
.user-chip[hidden] { display: none; }
.uc-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.uc-txt { display: grid; gap: 1px; line-height: 1.25; min-width: 0; }
.uc-txt b { font-size: 13px; font-weight: 600; }
.uc-txt small { font-size: 11px; font-weight: 400; color: var(--muted); }
.uc-bar { display: block; height: 3px; margin-top: 3px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.uc-bar em { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width .7s var(--ease); }
.user-chip.bad { background: var(--red-soft); border-color: transparent; }
.user-chip.bad .uc-bar em { background: var(--red); }
.user-chip.bad .uc-av { background: #c72a4c; }

@media (max-width: 1100px) { .tool-rot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .tool-txt { padding: 0; } }
@media (max-width: 900px) { .top-deco { opacity: .35; } .top-hero { padding: 24px 24px; } }
@media (max-width: 760px) {
  .top-deco { display: none; }
  .top-txt { max-width: none; }
  .top-hero { min-height: 0; padding: 22px 20px; border-radius: 24px; }
  .top-bar { gap: 10px; }
  .top .logo { height: 40px; }
  .uc-txt small { display: none; }
  .user-chip { padding-right: 12px; }
}

/* Selo do resultado: abaixo do botão "Expandir" */
.selo { top: 66px; right: 30px; }
@media (max-width: 1180px) { .selo { top: 22px; right: 22px; } }

/* =====================================================================
   Painel da direita (antes do primeiro card): progresso, dica da parte atual, últimos cards, como funciona
   ===================================================================== */
.r-empty { align-items: stretch; justify-content: flex-start; text-align: left; gap: 14px; padding: 22px; min-height: 0; }
.re-topo { display: flex; align-items: center; gap: 16px; padding: 4px 4px 6px; }
.r-empty .re-topo .mount { width: 84px; height: auto; flex: none; margin: 0; fill: var(--blue); }
.re-topo h2 { font-size: 19px; }
.r-empty .re-topo p { max-width: none; font-size: 13px; margin-top: 4px; line-height: 1.5; }
.re-bloco { background: #fff; border-radius: 20px; padding: 16px 18px; animation: rise .5s var(--ease) backwards; }
.re-bloco:nth-of-type(2) { animation-delay: .06s; }
.re-bloco:nth-of-type(3) { animation-delay: .12s; }
.re-bloco:nth-of-type(4) { animation-delay: .18s; }
.re-bloco h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); margin: 0 0 10px; }
.re-n { font-weight: 500; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-empty .re-bloco p { max-width: none; font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0; }
.re-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.re-lista button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 6px 8px; font-size: 13.5px; color: var(--ink); cursor: pointer; transition: background .2s; }
.re-lista button:hover { background: var(--mist); }
.re-lista button:focus-visible { outline: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--blue); }
.re-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--blue-soft); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--muted); transition: background .3s var(--ease), border-color .3s, transform .3s var(--spring); }
.re-ic .i { width: 12px; height: 12px; }
.re-lista .ok .re-ic { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.05); }
.re-lista .atual button { background: var(--mist); font-weight: 600; }
.re-lista .atual:not(.ok) .re-ic { border-color: var(--blue); color: var(--blue); }
.re-dica { background: #fdffd9; }
.re-dica-t { font-weight: 600; margin-bottom: 4px !important; }
.re-bom { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px !important; color: #006b3c !important; font-size: 12.5px !important; }
.re-bom .i { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.re-recentes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.re-recentes button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; width: 100%; text-align: left; background: var(--mist); border: 0; border-radius: 14px; padding: 10px 14px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.re-recentes button:hover { background: var(--blue-soft); transform: translateX(2px); }
.re-recentes button:focus-visible { outline: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--blue); }
.re-id { font-weight: 600; font-size: 13px; color: var(--blue); }
.re-nome { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-recentes small { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.re-passos ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
@media (max-width: 1180px) { .re-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .re-lista { grid-template-columns: minmax(0, 1fr); } .re-topo { flex-direction: column; align-items: flex-start; } }

/* =====================================================================
   Meus cards: resumo + "continue de onde parou"; Equipe: cadastro em uma linha
   ===================================================================== */
.cards-resumo { display: grid; gap: 12px; margin-bottom: 18px; }
.cards-resumo .stats { margin-bottom: 0; }
.continue { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(115deg, #fdffd9, #f6fa8a); border: 1px solid #e3e870; border-radius: 20px; padding: 14px 20px; }
.continue .eyebrow { color: #4a4300; }
.continue-t { font-size: 16px; margin: 2px 0; color: var(--navy); }
.continue .mini { margin: 0; color: #4a4300; }
.form-linha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.form-linha .field { margin: 0; }
@media (max-width: 1000px) { .form-linha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .form-linha { grid-template-columns: minmax(0, 1fr); } .form-linha .btn { width: 100%; } }

/* =====================================================================
   Entrada: painel da marca ao lado do formulário
   ===================================================================== */
.auth { padding: 0; align-items: stretch; justify-content: stretch; }
.auth-lado { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 24px 16px; position: relative; z-index: 1; }
.auth-marca { display: none; }
@media (min-width: 960px) {
  .auth-marca { display: flex; flex: 1.1 1 0; position: relative; overflow: hidden; z-index: 1; padding: 64px 56px; align-items: flex-start; background: linear-gradient(150deg, var(--blue) 0%, #1c00a8 62%, var(--navy) 100%); color: #fff; }
  .am-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
  .am-txt { position: relative; z-index: 1; max-width: 440px; }
  .auth-marca .eyebrow { color: var(--yellow); }
  .am-titulo { font-size: 34px; font-weight: 600; line-height: 1.18; margin: 12px 0 28px; text-wrap: balance; }
  .am-txt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .am-txt li { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 6px 18px 6px 6px; border-radius: 99px; background: rgba(22, 0, 150, .85); font-size: 15px; line-height: 1.4; animation: rise .6s var(--ease) backwards; }
  .am-txt li:nth-child(2) { animation-delay: .1s; }
  .am-txt li:nth-child(3) { animation-delay: .2s; }
  .am-txt li span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
  .auth-marca .d-n1 { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linejoin: round; }
  .am-txt { text-shadow: 0 0 14px #1c00a8, 0 0 28px #1c00a8; }
}

/* Ajustes: barra de busca de Meus cards numa linha só; cadastro da equipe com rótulos alinhados */
.cards-bar input[type=search] { flex: 1 1 200px; }
.form-linha { align-items: start; }
.form-linha .field:last-child { align-self: end; }

.auth-card .logo { height: 68px; width: auto; max-width: 100%; margin: 4px auto 10px; }
@media (max-width: 760px) { .auth-card .logo { height: 58px; } }

@media (prefers-reduced-motion: reduce) {
  .top-stats li, .re-bloco, .am-txt li { animation: none; }
}
