
/* Advice layout */
.kl-advice-layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:18px;
  align-items:start;
}
@media (max-width: 992px){
  .kl-advice-layout{ grid-template-columns: 1fr; }
}

.kl-advice-left{
  background:#fff;
  border:1px solid #e6e6e6;
  padding:18px;
  min-height: 250px;
}

.kl-advice-right > div{
  background:#fff;
  border:1px solid #e6e6e6;
  padding:14px;
  margin-bottom:14px;
}

/* Topic */
.kl-topic-title{ margin:0 0 12px 0; font-size:22px; font-weight:700; }
.kl-topic-dilemma{ margin-bottom:16px; }

.kl-reply{ margin-top:18px; }
.kl-reply-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.kl-reply-name{ font-weight:700; text-decoration:none; }
.kl-reply-text{ line-height:1.6; }

/* Ask box */
.kl-ask-box{ position:relative; z-index:2; }
.kl-ask-input-wrap{ position:relative; }
#klAskInput{
  width:100%;
  min-height:44px;
  max-height:44px;
  overflow:hidden;
  resize:none;
  padding:10px 46px 10px 12px;
  border:1px solid #cfd7e0;
  border-radius:8px;
  font-size:13px;
}
.kl-ask-box.kl-expanded #klAskInput{
  max-height:190px;
  min-height:190px;
  overflow:auto; /* scrollbar */
}
.kl-ask-send{
  position:absolute;
  right:8px; top:8px;
  width:34px; height:34px;
  border:0;
  border-radius:6px;
  background:#b11b1b;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}
.kl-ask-msg{ margin-top:8px; font-size:13px; }
.kl-ask-tools{ margin-top:10px; display:flex; gap:8px; }
.kl-tool-btn{
  border:1px solid #d5d5d5;
  background:#f7f7f7;
  padding:4px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:12px;
}

/* Past/related topics */
.kl-side-title{ font-weight:700; margin-bottom:8px; }
.kl-topic-list{ list-style:none; padding:0; margin:0; }
.kl-topic-list li{ margin:10px 0; }
.kl-topic-link{ color:#8b0000; text-decoration:underline; font-weight:600; }
.kl-topic-date{ font-size:12px; opacity:.7; margin-top:3px; }
.kl-older-link{ display:inline-block; margin-top:8px; text-decoration:underline; color:#8b0000; }

/* Team */
.kl-team-list{ display:flex; flex-wrap:wrap; gap:10px; }
.kl-team-member{
  display:flex; align-items:center; gap:8px;
  text-decoration:underline;
  color:#8b0000;
}
.kl-member-avatar-placeholder{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cfcfcf;
  border-radius:50%;
  font-size:11px;
  color:#555;
  background:#fff;
}

/* Older topics */
.kl-old-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #e6e6e6;
}
.kl-old-table th, .kl-old-table td{
  padding:10px;
  border-bottom:1px solid #eee;
  text-align:left;
}
.kl-load-more{
  margin-top:12px;
  border:1px solid #ddd;
  background:#fff;
  padding:8px 12px;
  cursor:pointer;
}

/* Team member page */
.kl-team-card{
  background:#fff;
  border:1px solid #e6e6e6;
  padding:18px;
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.kl-team-card h2{ margin:0 0 8px 0; }

/* Overlay + floating widget */
#klAdviceOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:99998;
  display:none;
}
#klAdviceOverlay.show{ display:block; }

#klFloatingBtn{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#b11b1b;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99997;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
#klFloatingBtn svg{ width:26px; height:26px; }

#klFloatingPanel{
  position:fixed;
  right:18px;
  bottom:86px;
  width:320px;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:12px;
  z-index:99997;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  display:none;
}
#klFloatingPanel.show{ display:block; }
#klFloatClose{
  position:absolute;
  right:10px; top:8px;
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}
#klFloatInput{
  width:100%;
  min-height:44px;
  max-height:160px;
  overflow:auto;
  resize:none;
  padding:10px 46px 10px 12px;
  border:1px solid #cfd7e0;
  border-radius:8px;
  font-size:13px;
}
#klFloatSend{
  position:absolute;
  right:20px;
  bottom:18px;
  width:34px; height:34px;
  border:0;
  border-radius:6px;
  background:#b11b1b;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}
#klFloatMsg{ margin-top:8px; font-size:13px; }
