.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}
.site-footer .footer-mark {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
}
.color-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.45rem 0.8rem;
}
.color-choices legend {
  margin-bottom: 0.6rem;
}
.color-choices .color-option {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.color-option:has(input:checked) {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
.invite-guidance {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border: 2px solid var(--line);
  border-left: 5px solid var(--link);
  border-radius: 0.6rem;
  background: var(--soft);
}
.invite-guidance h3 {
  margin-top: 0;
}
.invite-guidance p:last-child {
  margin-bottom: 0;
}
.link-preview {
  display: grid;
  gap: 0.65rem;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--soft);
}
.link-preview > .tag {
  justify-self: start;
}
.link-preview p {
  margin: 0;
}
.link-preview > button {
  justify-self: start;
  white-space: normal;
  text-align: left;
}
.link-preview .preview-title:empty,
.link-preview .media-status:empty {
  display: none;
}
.media-slot {
  min-width: 0;
  width: 100%;
  max-width: 640px;
}
.media-frame {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  background: var(--surface);
}
.media-video {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}
.media-spotify {
  height: 352px;
}
.media-vertical {
  max-width: 360px;
  height: 560px;
}
.media-facebook {
  max-width: 350px;
  height: 520px;
}
.link-preview [hidden] {
  display: none;
}
.media-fallback {
  font-size: 0.9rem;
  color: var(--muted);
}
@media (max-width: 420px) {
  .link-preview {
    padding: 0.6rem;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
  }
  .color-choices {
    grid-template-columns: 1fr;
  }
}
@media (forced-colors: active) {
  .color-option:has(input:checked) {
    outline-color: Highlight;
  }
}
