/* =========================================================
   Help videos (global assistant) — minimal, modern, unobtrusive
   ========================================================= */

.hv-chip-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hv-chip-btn:hover{
  background: rgba(255,255,255,0.12);
}

.hv-chip-btn:focus{
  outline: 2px solid rgba(255,255,255,0.45);
  outline-offset: 2px;
}

.hv-modal-content{
  width: min(980px, 94vw);
  max-width: 980px;
  border-radius: 14px;
  padding: 16px 18px;
}

#hv-modal{
  z-index: 2147483400; /* above most UI, below brush cursor */
}

.hv-modal-title{
  margin: 0;
  font-weight: 750;
  font-size: 1.05rem;
  color: #111827;
}

.hv-grid{
  display: flex;
  gap: 14px;
  margin-top: 12px;
  align-items: stretch;
}

.hv-list{
  flex: 0 0 320px;
  max-width: 320px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: auto;
  max-height: 62vh;
}

.hv-player{
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  min-height: 320px;
}

.hv-status{
  padding: 10px 12px;
}

.hv-item-btn{
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-item-btn:last-child{
  border-bottom: 0;
}

.hv-item-btn:hover{
  background: rgba(74, 144, 226, 0.08);
}

.hv-item-btn.active{
  background: rgba(74, 144, 226, 0.12);
  box-shadow: inset 3px 0 0 #4A90E2;
}

.hv-item-title{
  font-weight: 700;
  color: #111827;
  font-size: 0.92rem;
}

.hv-item-meta{
  font-size: 0.82rem;
  color: #6b7280;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hv-badge{
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.hv-badge.current{
  background: #e6f4ea;
  border-color: #a3cfbb;
  color: #0f5132;
}

.hv-badge.outdated{
  background: #fff8d1;
  border-color: #f1c40f;
  color: #92400e;
}

.hv-section{
  opacity: 0.95;
}

.hv-notes{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
  white-space: pre-wrap;
}

.hv-player iframe,
.hv-player video{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
}

@media (max-width: 900px){
  .hv-grid{ flex-direction: column; }
  .hv-list{ max-width: none; flex: 1 1 auto; max-height: 280px; }
  .hv-player{ min-height: 240px; }
}
