/* Admin broadcast notice + header chip. Self-contained so it reads the same in BLENDer, Claude and Studio skins:
   warm light card, coral accent, butterfly mark, restrained shadow. Severity only shifts the accent. */
.bb-float {
  position: fixed; z-index: 2147483000; top: 64px; right: 18px; width: min(380px, calc(100vw - 24px));
  animation: bb-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes bb-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bb-float { animation: none; } }

.bb-card {
  --bb-accent: #e8755a; --bb-tint: #fdf1ec;
  position: relative; display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 40px 14px 14px; border-radius: 16px;
  background: #fffaf6; color: #2a211c; border: 1px solid #f1e2d8; border-left: 4px solid var(--bb-accent);
  box-shadow: 0 1px 2px rgba(60, 30, 10, 0.05), 0 10px 30px rgba(60, 30, 10, 0.10);
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  line-height: 1.45;
}
.bb-card.bb-info { --bb-accent: #c9a27e; --bb-tint: #f7efe6; }
.bb-card.bb-critical { --bb-accent: #d9533b; --bb-tint: #fbe7e1; }
.bb-icon { width: 30px; height: 30px; flex: 0 0 30px; padding: 4px; border-radius: 10px; background: var(--bb-tint); object-fit: contain; }
.bb-body { min-width: 0; flex: 1; }
.bb-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.bb-tag { font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--bb-accent) 80%, #000); }
.bb-count { font-size: 12px; font-weight: 700; color: #2a211c; background: var(--bb-tint); padding: 1px 8px; border-radius: 100px; font-variant-numeric: tabular-nums; }
.bb-title { margin: 0; font-size: 15px; font-weight: 700; }
.bb-msg { margin: 3px 0 0; font-size: 13.5px; color: #5a4a40; overflow-wrap: anywhere; }
.bb-when { margin: 6px 0 0; font-size: 12px; color: #8a776a; }
.bb-x {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: #8a776a; font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.bb-x:hover { background: var(--bb-tint); color: #2a211c; }
.bb-x:focus-visible, .bb-chip:focus-visible { outline: 2px solid var(--bb-accent, #e8755a); outline-offset: 2px; }

/* Small persistent indicator after dismiss: lives in the header when there is one, floats top-right otherwise. */
.bb-chip {
  --bb-accent: #e8755a; --bb-tint: #fdf1ec;
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0 6px;
  padding: 4px 11px 4px 8px; border-radius: 100px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--bb-accent) 35%, #fff); background: var(--bb-tint); color: #2a211c;
  font: 650 12.5px/1.2 var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bb-chip.bb-info { --bb-accent: #c9a27e; --bb-tint: #f7efe6; }
.bb-chip.bb-critical { --bb-accent: #d9533b; --bb-tint: #fbe7e1; }
.bb-chip:hover { box-shadow: 0 2px 8px rgba(60, 30, 10, 0.12); }
.bb-chip-i { color: color-mix(in srgb, var(--bb-accent) 85%, #000); font-weight: 800; }
.bb-chip-float { position: fixed; z-index: 2147483000; top: 12px; right: 14px; box-shadow: 0 4px 14px rgba(60, 30, 10, 0.12); }

@media (max-width: 640px) {
  .bb-float { top: auto; bottom: 14px; right: 12px; left: 12px; width: auto; }
  .bb-chip .bb-chip-t { display: none; }
}
