/* bucket-add-members — the Add channels / Add videos panel (SIL-11148).
   Scoped under .bam so it cannot reach the pages that host it. */
.bam { position: relative; display: inline-flex; }

.bam-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1060;
  width: min(460px, calc(100vw - 32px));
  background: #fff; border: 1px solid #dee2e6; border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(20, 26, 34, .45);
  font-size: 13px; color: #212529;
}
.bam-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid #eef1f4; }
.bam-head b { font-size: 13.5px; }
.bam-x { margin-left: auto; border: 0; background: transparent; color: #6c757d;
  cursor: pointer; padding: 2px; line-height: 1; }
.bam-x:hover { color: #212529; }

.bam-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.bam-tabs button { border: 0; background: transparent; padding: 6px 10px; cursor: pointer;
  font: inherit; font-size: 12.5px; color: #6c757d; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; }
.bam-tabs button.on { color: #0b5f55; font-weight: 700; border-bottom-color: #0fb8a2; }

.bam-body { padding: 10px 14px 0; }
.bam-body textarea { width: 100%; border: 1px solid #dee2e6; border-radius: 8px;
  padding: 8px 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical; }
.bam-body textarea:focus { outline: 2px solid #0fb8a2; outline-offset: 1px; border-color: transparent; }
.bam-hint { margin: 6px 0 0; font-size: 11.5px; color: #6c757d; line-height: 1.5; }

.bam-file { width: 100%; display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px dashed #ced4da; border-radius: 8px; background: #f8f9fa;
  padding: 14px; font: inherit; font-size: 12.5px; color: #495057; }
.bam-file:hover { border-color: #0fb8a2; color: #0b5f55; }
.bam-hidden-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.bam-alert { display: flex; gap: 8px; align-items: flex-start; margin: 10px 14px 0;
  padding: 9px 11px; border-radius: 8px; font-size: 12.5px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }

.bam-result { margin: 10px 14px 0; }
.bam-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.bam-counts span { font-size: 11.5px; color: #495057; background: #f1f3f5;
  border-radius: 20px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.bam-counts .ok { background: #e6f8f6; color: #0b5f55; }
.bam-counts .bad { background: #fff7ed; color: #7c2d12; }
.bam-after { margin-top: 8px; font-size: 12.5px; }
.bam-after b { font-variant-numeric: tabular-nums; }
.bam-why { margin-top: 8px; font-size: 11.5px; color: #6c757d; }
.bam-why summary { cursor: pointer; color: #0b5f55; font-weight: 600; }
.bam-why div { padding: 2px 0 0 12px; overflow-wrap: anywhere; }
.bam-more { color: #adb5bd; }

.bam-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  margin-top: 12px; border-top: 1px solid #eef1f4; background: #f8f9fa;
  border-radius: 0 0 12px 12px; }
.bam-sp { flex: 1 1 auto; }

@media (max-width: 600px) { .bam-panel { right: auto; left: 0; } }
