
/* PeopleFit 18 Smart Assistant V7.4.4 — unobtrusive assessment mode */
.pf-ai-fab{
  position:fixed;
  right:18px;
  bottom:96px;
  z-index:118;
  border:1px solid rgba(215,173,53,.55);
  background:linear-gradient(135deg,#11162b,#243c70);
  color:#fff;
  border-radius:999px;
  min-height:50px;
  padding:13px 17px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
  box-shadow:0 14px 34px rgba(17,22,43,.22);
  transition:width .22s ease,height .22s ease,padding .22s ease,opacity .22s ease,transform .22s ease,box-shadow .22s ease;
}
.pf-ai-spark{color:#f0d06b;font-size:18px;line-height:1}
.pf-ai-modal{
  position:fixed;
  inset:0;
  z-index:170;
  background:rgba(7,12,28,.72);
  backdrop-filter:blur(7px);
  display:grid;
  place-items:center;
  padding:14px;
}
.pf-ai-modal.hidden{display:none!important}
.pf-ai-panel{
  width:min(700px,100%);
  max-height:88vh;
  display:grid;
  grid-template-rows:auto auto auto 1fr auto;
  background:#f7f8fb;
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.pf-ai-head{
  background:linear-gradient(135deg,#11162b,#243c70);
  color:#fff;
  padding:20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.pf-ai-kicker{font-size:11px;color:#f0d06b}
.pf-ai-head h3{font-size:26px;margin:4px 0}
.pf-ai-head small{color:#ffffffb8;line-height:1.55}
.pf-ai-close{
  flex:0 0 auto;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid #ffffff28;
  background:#ffffff12;
  color:#fff;
  font-size:20px;
}
.pf-ai-security{
  margin:14px 16px 0;
  background:#fff7df;
  border:1px solid #ead793;
  color:#66520f;
  border-radius:16px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.7;
}
.pf-ai-chips{display:flex;gap:8px;overflow:auto;padding:12px 16px}
.pf-ai-chips button{
  white-space:nowrap;
  border:1px solid #e1e5ed;
  background:#fff;
  border-radius:999px;
  padding:9px 12px;
  color:#1d2b4e;
  font-weight:800;
}
.pf-ai-messages{
  overflow:auto;
  padding:8px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.pf-ai-msg{
  max-width:86%;
  padding:12px 14px;
  border-radius:18px;
  line-height:1.7;
  font-size:14px;
  white-space:pre-wrap;
}
.pf-ai-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e2e6ee;color:#17213c}
.pf-ai-msg.user{align-self:flex-end;background:#11162b;color:#fff}
.pf-ai-compose{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:13px 16px calc(13px + env(safe-area-inset-bottom));
  border-top:1px solid #e2e6ee;
  background:#fff;
}
.pf-ai-compose input{
  height:52px;
  border:1px solid #dfe4ec;
  border-radius:15px;
  padding:0 14px;
  font-size:15px;
}
.pf-ai-compose button{
  border:0;
  border-radius:15px;
  background:linear-gradient(135deg,#d7ad35,#f0d06b);
  color:#11162b;
  font-weight:900;
  padding:0 18px;
}

/* =========================================================
   QUIZ MODE
   During the 18 questions the assistant becomes a tiny icon.
   ========================================================= */
body.pf-ai-quiz-mode .pf-ai-fab{
  width:50px!important;
  height:50px!important;
  min-height:50px!important;
  padding:0!important;
  right:10px!important;
  bottom:calc(96px + env(safe-area-inset-bottom))!important;
  border-radius:50%!important;
  gap:0!important;
  box-shadow:0 9px 24px rgba(17,22,43,.20)!important;
}
body.pf-ai-quiz-mode .pf-ai-fab > span:not(.pf-ai-spark){
  display:none!important;
}
body.pf-ai-quiz-mode .pf-ai-fab .pf-ai-spark{
  font-size:22px!important;
}
body.pf-ai-quiz-mode.pf-ai-scrolling .pf-ai-fab{
  transform:translateX(36px)!important;
  opacity:.38!important;
  box-shadow:none!important;
}

/* Open as a low bottom sheet instead of a full-height blocking panel */
body.pf-ai-quiz-mode .pf-ai-modal{
  place-items:end center!important;
  padding:0!important;
  background:rgba(7,12,28,.48)!important;
  backdrop-filter:blur(3px)!important;
}
body.pf-ai-quiz-mode .pf-ai-panel{
  width:100%!important;
  height:min(44vh,410px)!important;
  max-height:min(44vh,410px)!important;
  border-radius:28px 28px 0 0!important;
  grid-template-rows:auto 1fr auto!important;
  box-shadow:0 -18px 54px rgba(0,0,0,.24)!important;
}
body.pf-ai-quiz-mode .pf-ai-head{
  padding:12px 14px!important;
  align-items:center!important;
}
body.pf-ai-quiz-mode .pf-ai-kicker{font-size:10px!important}
body.pf-ai-quiz-mode .pf-ai-head h3{
  font-size:18px!important;
  margin:2px 0!important;
}
body.pf-ai-quiz-mode .pf-ai-head small{
  display:block!important;
  max-width:480px!important;
  font-size:11px!important;
}
body.pf-ai-quiz-mode .pf-ai-close{
  width:40px!important;
  height:40px!important;
  border-radius:12px!important;
}
body.pf-ai-quiz-mode .pf-ai-security,
body.pf-ai-quiz-mode .pf-ai-chips{
  display:none!important;
}
body.pf-ai-quiz-mode .pf-ai-messages{
  padding:10px 12px!important;
  gap:7px!important;
}
body.pf-ai-quiz-mode .pf-ai-msg{
  font-size:13px!important;
  padding:9px 11px!important;
  line-height:1.55!important;
}
body.pf-ai-quiz-mode .pf-ai-compose{
  padding:9px 10px calc(9px + env(safe-area-inset-bottom))!important;
}
body.pf-ai-quiz-mode .pf-ai-compose input{
  height:46px!important;
  font-size:14px!important;
}
body.pf-ai-quiz-mode .pf-ai-compose button{
  min-width:68px!important;
  padding:0 13px!important;
}

/* Keep assistant out of print/PDF completely */
@media print{
  .pf-ai-fab,.pf-ai-modal{display:none!important}
}

@media(max-width:700px){
  .pf-ai-fab{right:12px;bottom:92px;font-size:12px}
  .pf-ai-panel{height:86vh;border-radius:26px}
  .pf-ai-head h3{font-size:22px}
  body.pf-ai-quiz-mode .pf-ai-fab{
    width:48px!important;
    height:48px!important;
    min-height:48px!important;
    right:8px!important;
    bottom:calc(94px + env(safe-area-inset-bottom))!important;
  }
  body.pf-ai-quiz-mode .pf-ai-panel{
    height:min(42vh,385px)!important;
    max-height:min(42vh,385px)!important;
  }
}
