.kf-chat-floating-button{position:fixed;right:24px;bottom:24px;z-index:999999;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;background:#4058f4;color:#fff;padding:15px 23px;font:700 17px/1.2 inherit;box-shadow:0 14px 35px rgba(35,51,160,.28);cursor:pointer;transition:.2s}.kf-chat-floating-button:hover{transform:translateY(-2px);filter:brightness(.97)}.kf-chat-icon{font-size:21px}.kf-chat-overlay{position:fixed;inset:0;z-index:1000000;background:rgba(12,19,38,.54);display:none;align-items:flex-end;justify-content:flex-end;padding:24px}.kf-chat-overlay.is-open{display:flex}.kf-chat-modal{width:min(420px,calc(100vw - 32px));height:min(650px,calc(100vh - 48px));background:#fff;border-radius:22px;box-shadow:0 25px 80px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column;direction:rtl}.kf-chat-header{background:#4058f4;color:#fff;padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.kf-chat-header strong{display:block;font-size:18px}.kf-chat-header small{display:block;margin-top:5px;opacity:.84}.kf-chat-close{border:0;background:rgba(255,255,255,.15);color:#fff;width:36px;height:36px;border-radius:50%;font-size:27px;cursor:pointer}.kf-chat-messages{flex:1;overflow:auto;background:#f5f7fb;padding:18px;display:flex;flex-direction:column;gap:12px}.kf-chat-bubble{max-width:83%;padding:10px 13px;border-radius:15px;font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.05)}.kf-chat-bubble.is-mine{align-self:flex-start;background:#4058f4;color:#fff;border-bottom-left-radius:5px}.kf-chat-bubble.is-other{align-self:flex-end;background:#fff;color:#1d2740;border-bottom-right-radius:5px}.kf-chat-author{font-size:11px;font-weight:700;margin-bottom:4px;opacity:.75}.kf-chat-bubble time{display:block;font-size:10px;margin-top:6px;opacity:.65}.kf-chat-compose{display:flex;gap:10px;align-items:flex-end;padding:13px;background:#fff;border-top:1px solid #e6e9f0}.kf-chat-compose textarea{flex:1;resize:none;border:1px solid #d8deea;border-radius:13px;padding:11px 12px;font:inherit;outline:none}.kf-chat-compose textarea:focus{border-color:#4058f4}.kf-chat-primary,.kf-chat-secondary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:11px 17px;text-decoration:none!important;font-weight:700;cursor:pointer}.kf-chat-primary{background:#4058f4;color:#fff!important}.kf-chat-secondary{background:#edf0f7;color:#24304d!important}.kf-chat-guest,.kf-chat-login-box{padding:28px;text-align:center;direction:rtl}.kf-chat-guest a{margin:6px}.kf-chat-loading,.kf-chat-empty,.kf-chat-error,.kf-inbox-empty{margin:auto;text-align:center;color:#778096}.kf-chat-no-scroll{overflow:hidden}.kf-inbox{max-width:1120px;margin:35px auto;min-height:620px;border:1px solid #e3e7ef;border-radius:20px;overflow:hidden;background:#fff;display:grid;grid-template-columns:340px 1fr;direction:rtl;box-shadow:0 10px 35px rgba(21,34,61,.06)}.kf-inbox-sidebar{border-left:1px solid #e8ebf1;background:#f8f9fc}.kf-inbox-sidebar h3{margin:0;padding:22px;border-bottom:1px solid #e8ebf1}.kf-thread-item{width:100%;text-align:right;border:0;border-bottom:1px solid #e9ecf2;background:transparent;padding:17px 19px;cursor:pointer;display:flex;flex-direction:column;gap:5px;color:#1c2740}.kf-thread-item:hover,.kf-thread-item.is-active{background:#edf1ff}.kf-thread-item span{font-size:12px;color:#6d7688}.kf-inbox-main{min-width:0;display:flex}.kf-inbox-placeholder{margin:auto;color:#7a8394}.kf-inbox-chat{display:flex;flex-direction:column;width:100%;min-height:620px}.kf-inbox-chat[hidden]{display:none}.kf-inbox-chat .kf-chat-messages{min-height:0}.kf-chat-login-box{max-width:500px;margin:50px auto;background:#fff;border:1px solid #e5e8ef;border-radius:16px}.kf-chat-primary:disabled{opacity:.55;cursor:not-allowed}
.kf-profile-subjects{grid-column:1/-1}
.kf-profile-subjects span{white-space:normal}
@media(max-width:760px){.kf-chat-floating-button{right:14px;bottom:15px;padding:13px 18px;font-size:15px}.kf-chat-overlay{padding:0;align-items:stretch}.kf-chat-modal{width:100%;height:100%;max-height:none;border-radius:0}.kf-inbox{grid-template-columns:1fr;margin:15px;min-height:auto}.kf-inbox-sidebar{border-left:0;border-bottom:1px solid #e8ebf1;max-height:300px;overflow:auto}.kf-inbox-main{min-height:500px}.kf-inbox-chat{min-height:500px}}
.kf-chat-input-wrap{position:relative;flex:1;min-width:0}.kf-chat-input-wrap textarea{width:100%;padding-left:44px}.kf-chat-attach{position:absolute;left:9px;top:9px;width:32px;height:32px;border-radius:9px;background:#eef1f8;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px}.kf-chat-attach:hover{background:#dfe5f4}.kf-chat-file-name{font-size:11px;color:#667085;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.kf-chat-attachment{display:flex;align-items:center;gap:8px;margin-top:7px;padding:8px;border-radius:10px;background:rgba(255,255,255,.16);color:inherit!important;text-decoration:none!important;max-width:100%}.is-other .kf-chat-attachment{background:#f1f4fa}.kf-chat-image-preview{display:block;max-width:220px;max-height:180px;width:auto;height:auto;border-radius:9px;object-fit:cover}.kf-chat-file-icon{font-size:22px}.kf-chat-attachment span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* v1.1.1 — compact, theme-safe attachment control */
.kf-chat-compose{
  position:relative;
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-end!important;
  gap:9px!important;
  padding:12px!important;
  overflow:hidden;
}
.kf-chat-input-wrap{
  position:relative!important;
  flex:1 1 auto!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.kf-chat-input-wrap textarea{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:72px!important;
  box-sizing:border-box!important;
  padding:12px 46px 12px 12px!important;
  margin:0!important;
  line-height:1.6!important;
  font-size:14px!important;
}
.kf-chat-attach{
  position:absolute!important;
  top:9px!important;
  left:9px!important;
  right:auto!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:9px!important;
  background:#eef1f8!important;
  color:#4058f4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  cursor:pointer!important;
  z-index:3!important;
  box-sizing:border-box!important;
  line-height:1!important;
}
.kf-chat-attach span{
  display:block!important;
  font-size:17px!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
.kf-chat-attach input[type="file"],
#kf-chat-file,
#kf-inbox-file{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
.kf-chat-file-name{
  display:none;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:6px 0 0!important;
  padding:6px 9px!important;
  border-radius:8px!important;
  background:#f2f4f8!important;
  color:#475467!important;
  font-size:11px!important;
  line-height:1.4!important;
  direction:ltr!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.kf-chat-file-name:not(:empty){display:block!important}
.kf-chat-compose > .kf-chat-primary{
  flex:0 0 auto!important;
  min-width:68px!important;
  min-height:44px!important;
  margin:0!important;
  padding:10px 14px!important;
  font-size:14px!important;
  line-height:1!important;
}
@media(max-width:480px){
  .kf-chat-compose{gap:7px!important;padding:9px!important}
  .kf-chat-input-wrap textarea{min-height:66px!important;font-size:13px!important}
  .kf-chat-compose > .kf-chat-primary{min-width:62px!important;padding:10px 11px!important}
}


/* Selected attachment preview with remove action */
.kf-chat-file-preview{
  display:none;
  align-items:center;
  gap:7px;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin:6px 0 0;
  padding:5px 7px 5px 9px;
  border-radius:9px;
  background:#f2f4f8;
  direction:ltr;
}
.kf-chat-file-preview.is-visible{display:flex!important}
.kf-chat-file-preview .kf-chat-file-name{
  display:block!important;
  flex:1;
  min-width:0;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  color:#475467!important;
  font-size:11px!important;
  line-height:1.4!important;
  direction:ltr!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.kf-chat-remove-file{
  flex:0 0 24px;
  width:24px;
  height:24px;
  min-width:24px;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#e4e8f1!important;
  color:#344054!important;
  font:700 17px/1 Arial,sans-serif!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.kf-chat-remove-file:hover{background:#d7ddea!important;color:#d92d20!important}

/* v1.2.0 instructor profile and notifications */
.kf-chat-inbox-float{position:fixed;right:24px;bottom:92px;z-index:999998;width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0f2745;color:#fff!important;text-decoration:none!important;box-shadow:0 12px 30px rgba(0,0,0,.22);font-size:23px}.kf-chat-inbox-float .kf-unread-count{position:absolute;top:-5px;right:-4px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font:700 12px/22px Arial;text-align:center}.kf-unread-inline{display:inline-flex;min-width:22px;height:22px;padding:0 6px;margin-right:7px;border-radius:999px;background:#e53935;color:#fff;align-items:center;justify-content:center;font-size:12px}.kf-thread-item{position:relative}.kf-thread-unread{position:absolute;left:14px;top:14px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;line-height:22px;text-align:center}
.kf-profile-form{max-width:800px;margin:40px auto;padding:28px;background:#fff;border:1px solid #e5e8ef;border-radius:18px;box-shadow:0 10px 35px rgba(21,34,61,.07)}.kf-profile-form h2{margin-top:0}.kf-profile-note{color:#687386}.kf-profile-form label{display:block;margin:16px 0;font-weight:700;color:#1c2740}.kf-profile-form input[type=text],.kf-profile-form input[type=number],.kf-profile-form input[type=file],.kf-profile-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d8deea;border-radius:11px;padding:12px;font:inherit;background:#fff}.kf-profile-form textarea{resize:vertical}.kf-current-cv{display:inline-block;margin-top:9px}.kf-profile-result{margin-top:14px;font-weight:700;color:#198754}.kf-profile-result.is-error{color:#d92d20}
.kf-public-profile{max-width:1050px;margin:45px auto;padding:30px;background:#fff;border:1px solid #e4e8ef;border-radius:22px;box-shadow:0 12px 40px rgba(21,34,61,.07)}.kf-public-profile-head{display:flex;align-items:center;gap:22px}.kf-public-profile-head img{border-radius:50%;box-shadow:0 5px 18px rgba(0,0,0,.12)}.kf-public-profile h2{margin:0 0 8px}.kf-public-profile p{margin:5px 0;color:#4e5c70;line-height:1.9}.kf-degree{font-weight:700;color:#b58a4a!important}.kf-experience{display:inline-block;margin-top:8px;padding:6px 12px;border-radius:999px;background:#eef3fa;color:#0f2745}.kf-bio{margin-top:24px;padding-top:20px;border-top:1px solid #e8ebf1}.kf-bio h3{margin-top:0}.kf-cv-button{display:inline-flex;margin-top:18px;padding:12px 18px;border-radius:10px;background:#b58a4a;color:#fff!important;text-decoration:none!important;font-weight:700}.kf-profile-menu-link{display:block;margin:12px;padding:12px 14px;border-radius:8px;background:#eef3fa;color:#0f2745!important;text-decoration:none!important;font-weight:700}
@media(max-width:760px){.kf-public-profile{margin:25px 15px;padding:20px}.kf-public-profile-head{align-items:flex-start}.kf-chat-inbox-float{right:14px;bottom:80px}.kf-profile-form{margin:20px 15px;padding:20px}}

.kf-profile-float{position:fixed;right:20px;bottom:154px;z-index:999998;display:flex;align-items:center;gap:8px;padding:11px 14px;border-radius:999px;background:#b58a4a;color:#fff!important;text-decoration:none!important;box-shadow:0 12px 30px rgba(0,0,0,.2);font-weight:700}.kf-profile-float span{font-size:20px}.kf-profile-float em{font-style:normal;font-size:13px;white-space:nowrap}.kf-profile-float:hover{transform:translateY(-2px);color:#fff!important}.kf-profile-form input[type=file]{display:block;width:100%;margin-top:8px;padding:13px;border:1px dashed #b8c1cf;border-radius:10px;background:#f8fafc}.kf-current-cv{display:inline-block;margin-top:10px;font-weight:700}
@media(max-width:760px){.kf-profile-float{right:14px;bottom:140px;padding:11px}.kf-profile-float em{display:none}}


/* v1.2.2 — place instructor profile inside MasterStudy page before courses */
.kf-public-profile.kf-profile-awaiting-placement{display:none!important}
.kf-public-profile.kf-profile-placed{display:block!important;clear:both;position:relative;z-index:1}
.masterstudy-single-instructor .kf-public-profile,
.stm_lms_user_info_top + .kf-public-profile,
.stm-lms-user-info-top + .kf-public-profile{margin-top:28px;margin-bottom:28px}

/* v1.2.3 - Full width instructor information section before courses */
.kf-public-profile{
  width:100vw!important;
  max-width:none!important;
  margin:35px calc(50% - 50vw) 40px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:linear-gradient(180deg,#f8fafc 0%,#ffffff 100%)!important;
  box-shadow:none!important;
  clear:both!important;
  float:none!important;
  display:block;
}
.kf-public-profile-inner{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
  padding:42px 0;
}
.kf-public-profile-head{
  display:grid!important;
  grid-template-columns:150px minmax(0,1fr);
  align-items:center!important;
  gap:30px!important;
}
.kf-public-profile-avatar img{
  width:150px!important;
  height:150px!important;
  object-fit:cover;
  border-radius:50%!important;
  border:5px solid #fff;
  box-shadow:0 10px 30px rgba(15,39,69,.14)!important;
}
.kf-profile-label{
  display:inline-block;
  margin-bottom:8px;
  color:#b58a4a;
  font-size:14px;
  font-weight:800;
}
.kf-public-profile h2{
  margin:0 0 20px!important;
  color:#0f2745;
  font-size:32px;
  line-height:1.3;
}
.kf-profile-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.kf-profile-detail{
  padding:16px 18px;
  background:#fff;
  border:1px solid #e4e8ef;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(15,39,69,.04);
}
.kf-profile-detail strong,
.kf-profile-detail span{display:block}
.kf-profile-detail strong{margin-bottom:6px;color:#0f2745;font-size:14px}
.kf-profile-detail span{color:#59697d;line-height:1.7}
.kf-bio{
  margin-top:30px!important;
  padding:28px!important;
  border:1px solid #e4e8ef!important;
  border-radius:18px;
  background:#fff;
}
.kf-bio h3{margin:0 0 12px!important;color:#0f2745;font-size:25px}
.kf-bio p{margin:0!important;color:#59697d!important;line-height:2!important;font-size:16px}
.kf-profile-actions{margin-top:20px}
.kf-cv-button{margin-top:0!important}

@media(max-width:760px){
  .kf-public-profile{margin:25px calc(50% - 50vw) 30px!important}
  .kf-public-profile-inner{width:min(100% - 28px,1180px);padding:28px 0}
  .kf-public-profile-head{grid-template-columns:1fr!important;text-align:center;gap:18px!important}
  .kf-public-profile-avatar{display:flex;justify-content:center}
  .kf-public-profile h2{font-size:26px}
  .kf-profile-details{grid-template-columns:1fr}
  .kf-bio{padding:20px!important;text-align:right}
  .kf-profile-actions{text-align:center}
}


/* v1.2.8 — unread badge on the student chat button */
.kf-chat-floating-button{position:fixed!important}
.kf-chat-button-badge{
  position:absolute!important;
  top:-8px!important;
  left:-6px!important;
  right:auto!important;
  min-width:24px!important;
  height:24px!important;
  padding:0 6px!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  background:#e53935!important;
  color:#fff!important;
  font:700 12px/20px Arial,sans-serif!important;
  text-align:center!important;
  box-sizing:border-box!important;
  box-shadow:0 5px 14px rgba(229,57,53,.35)!important;
}
.kf-chat-button-badge[hidden]{display:none!important}
.kf-chat-floating-button.kf-has-new-message{animation:kfNewMessagePulse .65s ease-in-out 3}
.kf-chat-floating-button.kf-has-new-message .kf-chat-button-badge{animation:kfBadgePop .45s ease-out}
@keyframes kfNewMessagePulse{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-4px) scale(1.04);box-shadow:0 18px 42px rgba(35,51,160,.4)}
}
@keyframes kfBadgePop{
  0%{transform:scale(.45)}
  70%{transform:scale(1.2)}
  100%{transform:scale(1)}
}

/* Instructor profile photo - v2.0 */
.kf-profile-photo-field{margin:18px 0}.kf-profile-photo-field>label{margin-bottom:9px}.kf-profile-photo-control{display:flex;align-items:center;gap:22px;padding:18px;border:1px solid #e1e6ef;border-radius:16px;background:#f8fafc}.kf-profile-photo-preview{width:140px;height:140px;flex:0 0 140px;border-radius:50%;overflow:hidden;background:#fff;border:4px solid #fff;box-shadow:0 8px 24px rgba(20,34,60,.14)}.kf-profile-photo-preview img{width:100%!important;height:100%!important;object-fit:cover;border-radius:50%;display:block}.kf-profile-photo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.kf-photo-upload-button{display:inline-flex!important;width:auto!important;margin:0!important;padding:11px 18px;border-radius:10px;background:#4054f5;color:#fff!important;cursor:pointer;font-weight:700}.kf-photo-remove{display:flex!important;align-items:center;gap:7px;margin:0!important;font-weight:600!important;color:#b42318!important}.kf-profile-photo-actions small{color:#667085;font-weight:400}.kf-public-profile-avatar img{object-fit:cover!important;border-radius:50%!important}.stm-lms-user-avatar img,.stm_lms_user_avatar img,.masterstudy-single-instructor__avatar img,[class*="instructor"] [class*="avatar"] img{object-fit:cover;border-radius:50%}
@media(max-width:600px){.kf-profile-photo-control{flex-direction:column;text-align:center}.kf-profile-photo-actions{align-items:center}}

/* v2.0.24 - Student conversations popup */
.kf-student-inbox-button{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:999998;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:54px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:#4054f4;
  color:#fff;
  font:700 14px/1.2 inherit;
  box-shadow:0 12px 30px rgba(36,54,160,.28);
  cursor:pointer;
}
.kf-student-inbox-button:hover{transform:translateY(-2px)}
.kf-student-inbox-icon{font-size:20px;line-height:1}
.kf-student-inbox-button .kf-unread-count{
  position:absolute;
  top:-6px;
  right:-5px;
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:999px;
  background:#e53935;
  color:#fff;
  font:700 12px/23px Arial,sans-serif;
  text-align:center;
}
.kf-student-inbox-overlay{
  position:fixed;
  inset:0;
  z-index:1000000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(2px);
}
.kf-student-inbox-overlay.is-open{display:flex}
.kf-student-inbox-modal{
  width:min(980px,96vw);
  height:min(720px,88vh);
  overflow:hidden;
  border-radius:20px;
  background:#fff;
  box-shadow:0 26px 80px rgba(15,23,42,.30);
  direction:rtl;
}
.kf-student-inbox-header{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  background:#4054f4;
  color:#fff;
}
.kf-student-inbox-header strong{display:block;font-size:20px}
.kf-student-inbox-header small{display:block;margin-top:5px;opacity:.86}
.kf-student-inbox-close{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font:400 28px/1 Arial,sans-serif;
  cursor:pointer;
}
.kf-student-inbox-layout{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  height:calc(100% - 76px);
  direction:rtl;
}
.kf-student-thread-sidebar{
  overflow:auto;
  border-left:1px solid #e5e9f2;
  background:#f8fafc;
}
.kf-student-thread-heading{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  background:#f8fafc;
  border-bottom:1px solid #e5e9f2;
  color:#0f2745;
  font-weight:800;
}
.kf-student-thread-count{
  min-width:27px;
  height:27px;
  padding:0 8px;
  border-radius:999px;
  background:#4054f4;
  color:#fff;
  font:700 12px/27px Arial,sans-serif;
  text-align:center;
}
#kf-student-thread-list .kf-thread-item{
  width:100%;
  display:block;
  padding:15px 18px;
  border:0;
  border-bottom:1px solid #e8ecf3;
  border-radius:0;
  background:#fff;
  text-align:right;
  cursor:pointer;
}
#kf-student-thread-list .kf-thread-item:hover,
#kf-student-thread-list .kf-thread-item.is-active{background:#edf2ff}
#kf-student-thread-list .kf-thread-item strong,
#kf-student-thread-list .kf-thread-item span{display:block}
#kf-student-thread-list .kf-thread-item strong{margin-bottom:6px;color:#10213c}
#kf-student-thread-list .kf-thread-item span{font-size:12px;color:#64748b;line-height:1.7}
.kf-student-chat-panel{min-width:0;display:flex;background:#f2f5fa}
.kf-student-inbox-placeholder{
  margin:auto;
  padding:30px;
  color:#64748b;
  text-align:center;
}
.kf-student-inbox-chat{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
}
.kf-student-inbox-chat[hidden]{display:none!important}
#kf-student-inbox-messages{
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:20px;
}
#kf-student-popup-form{
  flex:0 0 auto;
  border-top:1px solid #e1e7f0;
  background:#fff;
}
@media(max-width:760px){
  .kf-student-inbox-button{right:14px;bottom:18px;padding:0 14px}
  .kf-student-inbox-label{display:none}
  .kf-student-inbox-overlay{padding:0}
  .kf-student-inbox-modal{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .kf-student-inbox-layout{grid-template-columns:135px minmax(0,1fr)}
  .kf-student-thread-heading{padding:12px 9px;font-size:12px}
  #kf-student-thread-list .kf-thread-item{padding:12px 9px}
  #kf-student-thread-list .kf-thread-item strong{font-size:12px}
  #kf-student-thread-list .kf-thread-item span{font-size:10px}
  #kf-student-inbox-messages{padding:12px}
}


/* Inline chat buttons on course and instructor pages */
.kf-chat-inline-open{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:12px;
  padding:10px 18px;
  border:0;
  border-radius:8px;
  background:#2f67f6;
  color:#fff!important;
  font:inherit;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(47,103,246,.18);
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease;
}
.kf-chat-inline-open:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(47,103,246,.25);opacity:.96}
.kf-chat-inline-icon{font-size:16px;line-height:1}
.kf-chat-course-inline{margin-inline-start:12px;vertical-align:middle}
.kf-chat-profile-inline{margin:16px auto 0}
@media(max-width:767px){.kf-chat-inline-open{width:100%;margin-inline:0}}
