:root[data-external-embed] { --embed-brand-height: 28px; }
@media (any-pointer: coarse), (max-width: 480px) {
  :root[data-external-embed] { --embed-brand-height: 32px; }
}

.embed-brand { display: none; }
:root[data-external-embed] body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--embed-brand-height);
  place-items: stretch;
}
:root[data-external-embed] .embed-brand {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  border-top: 1px solid #595483;
  background: #312e61;
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
}
.embed-brand a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.embed-brand a:hover { text-decoration: underline; }
.embed-brand a:focus-visible { outline: 2px solid #ffda67; outline-offset: -2px; }
.embed-brand img { border-radius: 3px; background: #fff; object-fit: contain; }
@media (max-width: 260px) {
  .embed-brand a { gap: 4px; padding-inline: 5px; }
  .embed-brand img { width: 32px; height: 12px; }
}
