/* Janelas, ficha e avisos */
dialog {
  border: 1px solid var(--linha);
  border-radius: 16px;
  padding: 24px;
  background: var(--papel);
  color: var(--tinta);
  width: min(760px, calc(100vw - 32px));
  max-height: 90vh;
}
dialog::backdrop {
  background: rgba(8, 30, 24, 0.6);
}
#confirmar {
  width: min(440px, calc(100vw - 32px));
}
#dialogo-vaga {
  width: min(560px, calc(100vw - 32px));
}
#detalhe {
  width: min(980px, calc(100vw - 48px));
  padding: 0;
  overflow: hidden;
}
/* clicar fora */
dialog.balanca {
  animation: balanca 0.38s ease;
}
@keyframes balanca {
  20%,
  60% {
    transform: translateX(-9px);
  }
  40%,
  80% {
    transform: translateX(9px);
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.balanca {
    animation: none;
    outline: 3px solid var(--verde);
  }
}
#form-vaga {
  display: grid;
  gap: 14px;
}
.bloco {
  margin-top: 18px;
}
.bloco h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
}
.bloco ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.bloco li b {
  display: block;
}
.bloco p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--campo);
  border: 1px solid var(--linha);
}
.grade select {
  background: var(--papel);
}
.notas li {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--campo);
  border: 1px solid var(--linha);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.notas li.etapa {
  background: none;
  border-style: dashed;
}
.senha {
  position: relative;
}
.senha input {
  padding-right: 46px;
}
.senha input::-ms-reveal {
  display: none;
}
#olho {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--suave);
  cursor: pointer;
}
#olho:hover {
  color: var(--verde);
}
#olho .risco {
  display: none;
}
#olho[aria-pressed='true'] .risco {
  display: inline;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 60;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--suave);
  cursor: pointer;
}
.fechar:hover {
  background: var(--campo);
  color: var(--tinta);
}
dialog {
  position: fixed;
}
#detalhe-corpo h3,
#dv-titulo {
  padding-right: 40px;
}
