/* HiLearn.app Non-Invasive Plugin Styles (blends seamlessly with ln.hiart.ca) */
.hl-child-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef7fc; border: 1.5px solid #bfe3f2; color: #1d3557;
  padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.hl-child-chip:hover { background: #dff0f9; }
.hl-radio-nav {
  background: #fde4dc !important; color: #b24327 !important; font-weight: 700 !important;
}

/* Asymmetric Bilingual & Adaptive Glossary Bar */
.hl-bi-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, #eef7fc 0%, #fff8eb 100%);
  border: 1.5px solid #d5e6f2; border-radius: 14px; padding: 10px 14px; margin: 10px 0 12px;
  font-size: 14px;
}
.hl-bi-bar .hl-lv-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hl-lv-btn {
  border: 1.5px solid #cfdce8; background: #fff; color: #1d3557;
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.hl-lv-btn.on { background: #1d3557; border-color: #1d3557; color: #fff; }

/* Adaptive Vocabulary Glosses inside Chinese Text */
.hl-gloss {
  display: inline-flex; align-items: baseline; gap: 3px; cursor: pointer;
  border-radius: 8px; transition: background .15s, transform .08s;
  vertical-align: baseline;
}
.hl-gloss.mode-beginner {
  background: #fff4d1; border: 1px solid #ecc968; padding: 0 6px; margin: 0 2px;
  color: #1d2a3a; font-weight: 700;
}
.hl-gloss.mode-beginner:hover { background: #ffe8a3; }
.hl-gloss-py { font-size: 12px; color: #8c5d0b; font-weight: 600; margin-left: 2px; }
.hl-gloss-ico { font-size: 14px; }

.hl-gloss.mode-intermediate {
  border-bottom: 2px dotted #e76f51; padding: 0 2px; color: inherit;
}
.hl-gloss.mode-intermediate:hover { background: #fde4dc; }

.hl-gloss.mode-advanced {
  border-bottom: 1px dotted transparent;
}
.hl-gloss.mode-advanced:hover { border-bottom-color: #8cc8e4; background: #eef7fc; }

/* Floating Glossary Card Popover */
.hl-pop-backdrop {
  position: fixed; inset: 0; background: rgba(29, 42, 58, .35); z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hl-pop-card {
  width: min(420px, 100%); background: #fffaf1; border: 2px solid #eadfcf;
  border-radius: 20px; padding: 20px; box-shadow: 0 18px 44px rgba(29, 53, 87, .24);
}
.hl-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hl-pop-ico { font-size: 34px; }
.hl-pop-term { font-size: 26px; font-weight: 800; color: #1d3557; }
.hl-pop-py { font-size: 15px; color: #b24327; font-weight: 700; }
.hl-pop-en {
  display: inline-block; background: #d7f2ee; color: #145e56;
  padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.hl-pop-tip {
  background: #fff; border: 1px solid #eadfcf; border-radius: 12px;
  padding: 12px 14px; font-size: 16px; line-height: 1.55; color: #1d2a3a; margin-bottom: 14px;
}

/* Age Band Filter Banner on Museum Lobby */
.hl-filter-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #eef7fc; border: 1.5px solid #bfe3f2; border-radius: 14px;
  padding: 10px 14px; margin: 12px 0; font-size: 14.5px; color: #1d3557;
}
.hl-band-badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: #eef7fc; color: #1d3557; border: 1px solid #bfe3f2;
  margin-left: 6px; vertical-align: middle;
}

/* Quick Check Voice Reflection Card */
.hl-reflect {
  margin-top: 16px; padding: 18px; border-radius: 16px;
  background: linear-gradient(135deg, #f3faf9 0%, #fff9ee 100%);
  border: 2px solid #b8e3dc;
}
.hl-reflect-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hl-reflect-head h4 { margin: 0; font-size: 19px; color: #1d3557; }
.hl-reflect-prompt { font-size: 18px; font-weight: 700; color: #1d2a3a; margin: 4px 0 2px; }
.hl-reflect-en { font-size: 14px; color: #5b6b7f; margin-bottom: 10px; }
.hl-reflect-hints { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hl-reflect-hint {
  background: #fff; border: 1px solid #eadfcf; border-radius: 999px;
  padding: 3px 10px; font-size: 13px; color: #5b6b7f;
}
.hl-rec-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.hl-rec-btn.recording { background: #d62828 !important; border-color: #d62828 !important; color: #fff !important; animation: hlPulse 1.2s infinite; }
@keyframes hlPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.hl-transcript-box {
  width: 100%; min-height: 76px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid #d5e2df; background: #fff; font: inherit; font-size: 15.5px;
  resize: vertical; margin-bottom: 10px;
}
.hl-saved-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.hl-saved-item {
  background: #fff; border: 1px solid #eadfcf; border-radius: 12px; padding: 10px 12px;
  font-size: 14.5px;
}
