.social-context-dialog {
  box-sizing: border-box;
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  width: min(1120px, calc(100vw - 32px));
  height: min(880px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line, #c5cfca);
  border-radius: 22px;
  color: var(--ink, #18352d);
  background: var(--surface, #fff);
  box-shadow: 0 24px 90px #0005;
  overflow: hidden;
}
.social-context-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.social-context-dialog::backdrop { background: #10251e99; backdrop-filter: blur(5px); }
.social-context-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 24px);
  border-bottom: 1px solid var(--line, #c5cfca);
}
.social-context-dialog > header small { display: block; font-size: .82rem; margin-top: 3px; }
.social-context-dialog button {
  cursor: pointer;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line, #c5cfca);
  background: var(--surface, #fff);
  color: inherit;
}
.social-context-dialog > header [data-social-close] {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
  min-block-size: 44px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}
.social-context-dialog button:focus-visible {
  outline: 2px solid var(--accent, #75458d);
  outline-offset: 2px;
}
.social-context-body { min-height: 0; overflow: auto; }
.social-context-body:has(> iframe) { overflow: hidden; }
.social-context-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.social-context-list { padding: 24px; }
.social-context-list p { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.social-context-button { font: inherit; white-space: normal; margin: 4px; }
[data-social-content][hidden] { display: none !important; }
@media (max-width: 600px) {
  .social-context-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
}
