/* Chardins v4.15.11.2 — Jean launcher + floating notification system. */

/* ---------- Launcher: pure Chardins mark ---------- */
.cai-launcher.jean-launcher.jean-launcher-j31,
.cai-launcher.jean-launcher.jean-launcher-j2.jean-launcher-j3.jean-launcher-j31{
  position:fixed!important;
  width:60px!important;height:60px!important;
  right:24px!important;bottom:24px!important;
  padding:0!important;margin:0!important;
  display:grid!important;place-items:center!important;
  border:0!important;border-radius:50%!important;
  overflow:visible!important;
  background:#061f38!important;
  box-shadow:0 14px 34px rgba(4,22,38,.28),0 3px 9px rgba(4,22,38,.18)!important;
  color:transparent!important;
  transform:none;
  isolation:isolate;
}
.cai-launcher.jean-launcher.jean-launcher-j31::before{
  content:""!important;display:block!important;
  position:absolute!important;inset:5px!important;
  border:1.5px solid #d0ad60!important;
  border-radius:50%!important;
  pointer-events:none!important;
  z-index:1!important;
}
.cai-launcher.jean-launcher.jean-launcher-j31::after{display:none!important;content:none!important}
.cai-launcher.jean-launcher.jean-launcher-j31:hover{
  transform:translateY(-2px)!important;
  background:#0a2945!important;
  box-shadow:0 18px 40px rgba(4,22,38,.32),0 4px 11px rgba(4,22,38,.20)!important;
}
.cai-launcher.jean-launcher.jean-launcher-j31:active{transform:translateY(0) scale(.975)!important}
.cai-launcher.jean-launcher.jean-launcher-j31:focus-visible{outline:3px solid rgba(195,164,97,.25)!important;outline-offset:4px!important}
.jean-launcher-mark-j31{
  position:absolute!important;z-index:2!important;
  left:50%!important;top:50%!important;
  width:36px!important;height:36px!important;
  margin:0!important;padding:0!important;line-height:0!important;
  transform:translate(-50%,-50%)!important;
  pointer-events:none!important;
}
.jean-launcher-mark-j31 img{
  position:absolute!important;display:block!important;
  left:50%!important;top:50%!important;
  width:36px!important;height:36px!important;
  max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:50% 50%!important;
  margin:0!important;padding:0!important;
  transform:translate(-50%,-50%)!important;
}
.cai-launcher.jean-launcher.jean-launcher-j31 .cai-dot{display:none!important}

/* ---------- Floating notification stack ---------- */
.toast-host{
  position:fixed!important;
  top:106px!important;right:24px!important;bottom:auto!important;left:auto!important;
  width:min(390px,calc(100vw - 48px))!important;
  display:flex!important;flex-direction:column!important;gap:11px!important;
  z-index:1450!important;
  pointer-events:none!important;
}
.toast-host>.toast{pointer-events:auto!important}

/* Existing system toasts become light floating message cards. */
.toast-host>.toast:not(.jean-toast){
  position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;
  grid-template-columns:38px minmax(0,1fr)!important;gap:11px!important;align-items:center!important;
  padding:12px 14px!important;
  border:1px solid rgba(10,49,97,.10)!important;border-radius:16px!important;
  background:rgba(255,255,255,.97)!important;color:#263444!important;
  box-shadow:0 18px 42px rgba(9,31,52,.14),0 3px 10px rgba(9,31,52,.07)!important;
  backdrop-filter:blur(14px)!important;
  animation:jeanToastInJ31 .22s ease-out both;
}
.toast-host>.toast:not(.jean-toast)>div:first-child{
  width:38px!important;height:38px!important;border-radius:12px!important;
  display:grid!important;place-items:center!important;
  background:#edf3f8!important;color:#2c5e80!important;font-size:14px!important;font-weight:900!important;
}
.toast-host>.toast:not(.jean-toast)>div:last-child strong{color:#0a3161!important;font-size:12px!important;line-height:1.25!important}
.toast-host>.toast:not(.jean-toast)>div:last-child span{color:#697883!important;font-size:10px!important;line-height:1.42!important;margin-top:3px!important}
.toast-host>.toast:not(.jean-toast).error{border-left:4px solid #a44b47!important}
.toast-host>.toast:not(.jean-toast).error>div:first-child{background:#faeceb!important;color:#a44b47!important}
.toast-host>.toast:not(.jean-toast).success{border-left:4px solid #39644d!important}
.toast-host>.toast:not(.jean-toast).success>div:first-child{background:#edf5f0!important;color:#39644d!important}
.toast-host>.toast:not(.jean-toast).warning{border-left:4px solid #a36f24!important}
.toast-host>.toast:not(.jean-toast).warning>div:first-child{background:#fbf2df!important;color:#94651f!important}
.toast-host>.toast:not(.jean-toast).info{border-left:4px solid #2c5e80!important}

/* Jean notification = a distinct colleague message, inspired by floating conversation cards. */
.toast.jean-toast.jean-toast-j31{
  --jean-card:#63364c;
  position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;
  display:grid!important;grid-template-columns:48px minmax(0,1fr) 24px!important;
  gap:12px!important;align-items:start!important;
  padding:13px 12px 13px 13px!important;
  border:1px solid rgba(216,187,125,.44)!important;border-radius:17px!important;
  background:var(--jean-card)!important;color:#fff!important;
  box-shadow:0 20px 46px rgba(53,25,39,.24),0 4px 12px rgba(53,25,39,.12)!important;
  overflow:hidden!important;
  animation:jeanToastInJ31 .22s ease-out both;
}
.toast.jean-toast.jean-toast-j31::before{
  content:"";position:absolute;right:-9px;top:23px;width:18px;height:18px;
  background:var(--jean-card);transform:rotate(45deg);border-radius:2px;
  border-top:1px solid rgba(216,187,125,.26);border-right:1px solid rgba(216,187,125,.26);
}
.jean-toast-avatar-j31{
  width:46px;height:50px;border-radius:13px;overflow:hidden;
  border:1px solid rgba(216,187,125,.72);background:#152d3d;
  box-shadow:0 4px 12px rgba(25,11,18,.18);
}
.jean-toast-avatar-j31 img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 28%}
.jean-toast-copy-j31{min-width:0;display:grid;gap:3px;padding-top:1px}
.jean-toast-meta-j31{display:flex;align-items:center;gap:7px;margin-bottom:1px}
.jean-toast-meta-j31 span{font-size:7.5px!important;letter-spacing:.15em!important;font-weight:900!important;color:#ecd8ad!important;margin:0!important}
.jean-toast-meta-j31 i{width:6px;height:6px;border-radius:50%;background:#89a99a;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.jean-toast-j31.attention .jean-toast-meta-j31 i{background:#e0b151}
.jean-toast-j31.critical .jean-toast-meta-j31 i{background:#ef8178}
.jean-toast-j31.success .jean-toast-meta-j31 i{background:#8fc5a8}
.jean-toast-j31.info .jean-toast-meta-j31 i{background:#88b8de}
.jean-toast-copy-j31>strong{font-size:12px!important;line-height:1.3!important;color:#fff!important;margin:0!important}
.jean-toast-copy-j31>small{font-size:10px!important;line-height:1.42!important;color:rgba(255,255,255,.78)!important;margin:0!important}
.jean-toast-copy-j31>button{
  width:max-content!important;margin-top:6px!important;padding:6px 9px!important;
  border:1px solid rgba(236,216,173,.44)!important;border-radius:8px!important;
  background:rgba(255,255,255,.08)!important;color:#f1ddb2!important;
  font-size:9px!important;font-weight:800!important;cursor:pointer!important;
}
.jean-toast-copy-j31>button:hover{background:rgba(255,255,255,.14)!important;border-color:rgba(236,216,173,.70)!important}
.jean-toast-copy-j31>button span{display:inline!important;margin-left:4px!important;color:inherit!important;font-size:inherit!important}
.jean-toast-close-j31{
  position:relative;z-index:2;width:24px;height:24px;padding:0;border:0;background:transparent;
  color:rgba(255,255,255,.62);font-size:18px;line-height:1;cursor:pointer;
}
.jean-toast-close-j31:hover{color:#fff}
.toast.jean-toast.jean-toast-j31.leaving{animation:jeanToastOutJ31 .22s ease-in both}

@keyframes jeanToastInJ31{from{opacity:0;transform:translate3d(18px,-5px,0) scale(.98)}to{opacity:1;transform:none}}
@keyframes jeanToastOutJ31{to{opacity:0;transform:translate3d(18px,-3px,0) scale(.985)}}

/* ---------- Mail Hygiene visibility inside Jean's Working area ---------- */
.jean-mail-service-j31{
  margin:11px 0 0;padding:12px 13px;
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center;
  border:1px solid #dfe6e9;border-radius:12px;background:#fbfcfc;
}
.jean-mail-service-icon-j31{width:32px;height:32px;border-radius:10px;background:#edf3f5;display:grid;place-items:center}
.jean-mail-service-icon-j31 i{width:9px;height:9px;border-radius:50%;background:#6d8b82;box-shadow:0 0 0 4px rgba(109,139,130,.12)}
.jean-mail-service-copy-j31{min-width:0;display:grid;gap:2px}
.jean-mail-service-copy-j31 strong{font-size:10.5px;color:#18364a}
.jean-mail-service-copy-j31 small{font-size:9px;color:#6d7b84;line-height:1.35}
.jean-mail-service-copy-j31 em{font-size:8px;color:#9aa4aa;font-style:normal}
.jean-mail-service-state-j31{font-size:7.5px;letter-spacing:.12em;font-weight:900;border:1px solid #d9e0e4;border-radius:999px;padding:5px 7px;background:#fff;color:#536b78}

.jean-mail-service-j31.running{border-color:rgba(111,57,82,.20);background:#fcf8fa}
.jean-mail-service-j31.running .jean-mail-service-icon-j31{background:#f2e8ed}
.jean-mail-service-j31.running .jean-mail-service-icon-j31 i{background:#6f3952;box-shadow:0 0 0 4px rgba(111,57,82,.10);animation:jeanMailPulseJ31 1.5s ease-in-out infinite}
.jean-mail-service-j31.running .jean-mail-service-state-j31{color:#6f3952;border-color:#e3d7dc}

.jean-mail-service-j31.queued{border-color:#d7e1e8;background:#f8fbfd}
.jean-mail-service-j31.queued .jean-mail-service-icon-j31{background:#eaf1f6}
.jean-mail-service-j31.queued .jean-mail-service-icon-j31 i{background:#466f88;box-shadow:0 0 0 4px rgba(70,111,136,.10)}
.jean-mail-service-j31.queued .jean-mail-service-state-j31{color:#466f88;border-color:#cfdae2}

.jean-mail-service-j31.waiting,.jean-mail-service-j31.stalled{border-color:#e7d6b4;background:#fffaf1}
.jean-mail-service-j31.waiting .jean-mail-service-icon-j31,.jean-mail-service-j31.stalled .jean-mail-service-icon-j31{background:#f8edd8}
.jean-mail-service-j31.waiting .jean-mail-service-icon-j31 i,.jean-mail-service-j31.stalled .jean-mail-service-icon-j31 i{background:#9a6c28;box-shadow:0 0 0 4px rgba(154,108,40,.10)}
.jean-mail-service-j31.waiting .jean-mail-service-state-j31,.jean-mail-service-j31.stalled .jean-mail-service-state-j31{color:#8f6425;border-color:#eadbbd}

.jean-mail-service-j31.failed{border-color:#eccdca;background:#fff8f7}
.jean-mail-service-j31.failed .jean-mail-service-icon-j31{background:#f8e8e6}
.jean-mail-service-j31.failed .jean-mail-service-icon-j31 i{background:#a14b46;box-shadow:0 0 0 4px rgba(161,75,70,.10)}
.jean-mail-service-j31.failed .jean-mail-service-state-j31{color:#9c4843;border-color:#eccdca}

.jean-mail-service-j31.watching .jean-mail-service-icon-j31 i{background:#668777}
.jean-mail-service-j31.watching .jean-mail-service-state-j31{color:#567568;border-color:#d5e0da}
@keyframes jeanMailPulseJ31{50%{transform:scale(.78);opacity:.65}}

@media(max-width:760px){
  .cai-launcher.jean-launcher.jean-launcher-j31,
  .cai-launcher.jean-launcher.jean-launcher-j2.jean-launcher-j3.jean-launcher-j31{
    width:56px!important;height:56px!important;right:15px!important;bottom:79px!important;
  }
  .cai-launcher.jean-launcher.jean-launcher-j31::before{inset:5px!important}
  .jean-launcher-mark-j31,.jean-launcher-mark-j31 img{width:33px!important;height:33px!important}
  .toast-host{
    top:calc(68px + env(safe-area-inset-top))!important;
    left:10px!important;right:10px!important;bottom:auto!important;
    width:auto!important;max-width:none!important;
  }
  .toast.jean-toast.jean-toast-j31{grid-template-columns:44px minmax(0,1fr) 22px!important;border-radius:15px!important;padding:11px!important}
  .jean-toast-avatar-j31{width:42px;height:46px;border-radius:11px}
  .toast.jean-toast.jean-toast-j31::before{display:none}
  .jean-mail-service-j31{grid-template-columns:32px minmax(0,1fr);padding:11px}
  .jean-mail-service-state-j31{grid-column:2;width:max-content;margin-top:3px}
}

/* v4.15.11.4 — never expose Jean before authentication. */
#loginView:not(.hidden) ~ #caiLauncher,
#loginView:not(.hidden) ~ #caiPanel{display:none!important}

/* Deterministic Jean automation in Work History. */
.jean-automation-history-j314{
  width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;
  border:1px solid #d9e0e5;background:#fff;border-radius:15px;padding:14px 16px;text-align:left;color:var(--navy,#0b263b);
  cursor:pointer;box-shadow:0 5px 18px rgba(8,31,49,.035);
}
.jean-automation-history-j314:hover{border-color:rgba(154,112,46,.42);box-shadow:0 8px 22px rgba(8,31,49,.07)}
.jean-automation-history-j314>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.jean-automation-history-j314 strong{font-size:14px;font-weight:750;color:#0a273d}
.jean-automation-history-j314 small{font-size:11px;line-height:1.45;color:#71808b}
.jean-automation-history-j314>b{font-size:13px;color:#a77a37;font-weight:700}
.jean-automation-history-j314 .jean-history-status.completed{color:#376b52;background:#eef7f1;border-color:#d5eadc}
.jean-automation-history-j314 .jean-history-status.queued{color:#8b661f;background:#fbf6e9;border-color:#ead9ad}
.jean-automation-history-j314 .jean-history-status.working{color:#70415d;background:#f7eef3;border-color:#ead3df}
.jean-automation-history-j314 .jean-history-status.error,
.jean-automation-history-j314 .jean-history-status.stalled{color:#9a3d3d;background:#fbefef;border-color:#efcece}
@media(max-width:700px){.jean-automation-history-j314{grid-template-columns:auto minmax(0,1fr);padding:12px}.jean-automation-history-j314>b{display:none}}
