/* « Se connecter (facultatif) » — composant partagé (2.4.290).
   Vit dans le tunnel ET dans la fenêtre du Planning (posée sur <body>) :
   chaque variable porte sa valeur de repli. */
.rsk-cx {
  margin: 0 0 16px; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid var(--rsk-line, #E9E7EC); border-radius: 12px;
  background: var(--rsk-surface, #FFFFFF); font-size: 13.5px;
  color: var(--rsk-body, #3F3D45);
}
.rsk-cx-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rsk-cx-btn {
  border: 1px solid var(--rsk-ink, #17161A); background: transparent;
  color: var(--rsk-ink, #17161A); border-radius: 999px; padding: 7px 16px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.rsk-cx-btn span { font-weight: 400; color: var(--rsk-muted, #6B6875); }
.rsk-cx-btn:hover, .rsk-cx-btn:focus-visible { background: var(--rsk-ink, #17161A); color: #fff; }
.rsk-cx-btn:hover span, .rsk-cx-btn:focus-visible span { color: rgba(255, 255, 255, .8); }
.rsk-cx-btn[disabled] { opacity: .6; cursor: wait; }
.rsk-cx-aide { flex: 1 1 220px; font-size: 12.5px; color: var(--rsk-muted, #6B6875); line-height: 1.45; }

/* Les cases apparaissent en douceur (hauteur + opacité). */
.rsk-cx-form {
  max-height: 0; opacity: 0; overflow: hidden; margin: 0;
  visibility: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease, visibility 0s linear .3s;
}
.rsk-cx.est-ouvert .rsk-cx-form {
  max-height: 420px; opacity: 1; margin-top: 12px; visibility: visible;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .rsk-cx-form, .rsk-cx.est-ouvert .rsk-cx-form { transition: none; }
}
.rsk-cx-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsk-cx-champs label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--rsk-ink, #17161A); }
.rsk-cx-champs input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; font: inherit; font-weight: 400;
  border: 1px solid var(--rsk-line, #E9E7EC); border-radius: 8px; background: #fff;
}
.rsk-cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.rsk-cx-valider {
  border: none; border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600;
  background: var(--rsk-ink, #17161A); color: #fff; cursor: pointer;
}
.rsk-cx-valider[disabled] { opacity: .6; cursor: wait; }
.rsk-cx-lien {
  border: none; background: none; padding: 0; font: inherit; font-size: 12.5px;
  color: var(--rsk-muted, #6B6875); text-decoration: underline; cursor: pointer;
}
.rsk-cx-msg { margin: 8px 0 0; font-size: 12.5px; min-height: 0; color: var(--rsk-success, #2F7D5B); }
.rsk-cx-msg:empty { display: none; }
.rsk-cx-msg.est-erreur { color: #C0392B; }
.rsk-cx-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #E8F3ED; border-color: #CFE6D9; }
.rsk-cx-ico {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rsk-success, #2F7D5B); color: #fff; font-size: 12px; font-weight: 700;
}
.rsk-cx-ok .rsk-cx-sortir { margin-left: auto; }
@media (max-width: 520px) {
  .rsk-cx-champs { grid-template-columns: 1fr; }
}

/* Emplacements : le tunnel (#rsk-connexion-N) et la fenêtre du Planning. */
.rsk-cx-zone:empty, .rsk-pc-cx:empty { display: none; }
.rsk-pc-cx .rsk-cx { margin: 0 0 12px; }
/* Agenda (2.4.291) : sa règle « .rsk-a-form label » ne doit pas casser les cases. */
.rsk-a-form .rsk-cx-champs label { display: flex; margin-bottom: 0; }
.rsk-a-form .rsk-cx-champs input { box-sizing: border-box; }
.rsk-a-cx .rsk-cx { margin: 0 0 12px; }
