/* 输入卡上方的上下文条：模块与技能各一行，胶囊 + 极淡底，与整页浅色语言一致。
   只占内容高度；没有引用/挂载时整块不渲染，输入卡高度不受影响。 */
.hcb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 8px 6px;
}

.hcb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.hcb-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #9aa3b6;
}

.hcb-label .v-icon { color: #b3b8c9 !important; }

.hcb-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.hcb-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 220px;
  padding: 3px 4px 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  border: 1px solid transparent;
}

.hcb-chip .v-icon { font-size: 14px !important; }

.hcb-chip--module {
  border-color: #e7e4f6;
  background: #f4f3fc;
  color: #4f3fc4;
}

.hcb-chip--skill {
  border-color: #f6e7cd;
  background: #fff8ec;
  color: #8a5a12;
}

.hcb-chip.is-invalid {
  border-color: #f6d9dc;
  background: #fff5f6;
  color: #b42318;
}

.hcb-chip-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.hcb-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: .55;
  cursor: pointer;
  transition: opacity .15s ease, background .15s ease;
}

.hcb-chip-remove .v-icon { font-size: 13px !important; }
.hcb-chip-remove:hover:not(:disabled) { opacity: 1; background: rgba(28, 24, 64, 0.08); }
.hcb-chip-remove:disabled { cursor: not-allowed; opacity: .35; }

.hcb-meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  font-size: 11.5px;
  color: #9aa3b6;
}

.hcb-hint { display: inline-flex; align-items: center; gap: 4px; }
.hcb-hint--warn { color: #b45309; }
.hcb-spacer { flex: 1; }

.hcb-inline-action {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: #5c50cf;
  cursor: pointer;
}

.hcb-inline-action--muted { color: #9aa3b6; font-weight: 600; }
.hcb-inline-action:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .hcb { padding: 4px 6px 4px; }
  .hcb-chip { max-width: 150px; }
  .hcb-meta { flex: 1 1 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hcb-chip-remove { transition: none; }
}
