
.bmpvideo-shell .bmv-prompt-editor {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.bmpvideo-shell .bmv-rich-editor {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 280px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bmpvideo-shell .bmv-prompt-editor footer {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--bmp-space-sm, 8px);
  min-width: 0;
}

.bmpvideo-shell .bmv-prompt-editor footer > span {
  flex: 1 1 240px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bmpvideo-shell .bmv-prompt-editor footer > b {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bmpvideo-shell .bmv-inline-tag {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.bmpvideo-shell .bmv-inline-tag b {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bmpvideo-shell .bmv-inline-tag__remove {
  flex: 0 0 18px;
}

.bmpvideo-shell .bmv-ref-picker {
  box-sizing: border-box;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--bmp-space-sm, 8px);
}

.bmpvideo-shell .bmv-ref-picker > div:first-child {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.bmpvideo-shell .bmv-ref-picker > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--bmp-button-gap, 8px);
  max-width: 100%;
}

.bmpvideo-shell .bmv-ref-picker button {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.bmpvideo-shell .bmv-mention-menu[hidden] { display: none !important; }
.bmpvideo-shell .bmv-mention-menu:not([hidden]) {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 8px 10px;
  border-top: 1px solid var(--bmp-border-color, #d7e1ec);
  background: var(--bmp-surface-soft, #f6f9fc);
}
.bmpvideo-shell .bmv-mention-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 7px 9px !important;
  border: 1px solid var(--bmp-border-color, #d7e1ec) !important;
  border-radius: 7px !important;
  background: var(--bmp-surface, #fff) !important;
  color: var(--bmp-text, #132238) !important;
  text-align: left;
}
.bmpvideo-shell .bmv-mention-menu button:hover,
.bmpvideo-shell .bmv-mention-menu button:focus-visible {
  border-color: var(--bmp-primary, #2457e6) !important;
  background: var(--bmp-surface-soft, #f6f9fc) !important;
}
.bmpvideo-shell .bmv-mention-menu button span:first-child { display: grid; min-width: 0; }
.bmpvideo-shell .bmv-mention-menu button strong,
.bmpvideo-shell .bmv-mention-menu button small { overflow-wrap: anywhere; }
.bmpvideo-shell .bmv-mention-menu button small,
.bmpvideo-shell .bmv-mention-empty { color: var(--bmp-text-meta, #687789); font-size: 11px; }
.bmpvideo-shell .bmv-mention-menu button > span:last-child { flex: 0 0 auto; }

@media (max-width: 640px) {
  .bmpvideo-shell .bmv-rich-editor { min-height: 220px; }
  .bmpvideo-shell .bmv-prompt-editor footer { flex-direction: column; }
  .bmpvideo-shell .bmv-ref-picker > div:last-child { justify-content: flex-start; }
}
