.og-dialog {
  color: #2d2d39;
  font: inherit;
  background: #fff;
  border: 1px solid #e3dfee;
  border-radius: 18px;
  width: min(600px, calc(100vw - 24px));
  max-height: min(85dvh, 840px);
  overflow: auto;
  padding: 0;
  box-shadow: 0 20px 80px #22203330;
}
.og-dialog::backdrop { background: #23213660; }
.og-head { position: sticky; top: 0; z-index: 1; padding: 18px 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-bottom: 1px solid #eae7ee; }
.og-head h2 { margin: 0; font-size: 1.25rem; }
.og-dialog button, .og-dialog input { font-family: inherit; }
.og-close, .og-textbutton { color: #6650a5; background: transparent; border: none; font: inherit; cursor: pointer; }
.og-close { padding: 5px; color: #515060; font-size: .9rem; }
.og-body { padding: 17px 23px 24px; }
.og-note { margin: 0 0 12px; color: #626073; font-size: .9rem; line-height: 1.65; overflow-wrap: anywhere; }
.og-field { display: grid; gap: 5px; margin: 0 0 12px; min-width: 0; }
.og-field > span { font-size: .9rem; font-weight: 600; }
.og-field input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #d7d5df; padding: 9px 10px; border-radius: 7px; font-size: 1rem; background: #fff; color: #282837; }
.og-origin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: .875rem; color: #625e73; margin: 0 0 14px; }
.og-origin code { border-radius: 4px; padding: 2px 5px; color: #4a4660; background: #f1eff7; overflow-wrap: anywhere; }
.og-section { border-top: 1px solid #ebe8f2; border-bottom: 1px solid #ebe8f2; margin-bottom: 12px; }
.og-section h3 { font-size: 1.03rem; margin: 13px 0; }
.og-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.og-docs { color: #4a465b; font-size: .9rem; margin: 10px 0 16px; }
.og-docs summary { font-weight: 600; cursor: pointer; }
.og-docs ol { padding-left: 1.3em; margin: 8px 0; }
.og-docs li { line-height: 1.6; margin-block: 6px; }
.og-link { display: inline-block; color: #6549ac; text-underline-offset: 3px; margin-inline-start: 7px; }
.og-actions, .og-account { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.og-btn { border: 1px solid #d7d2e3; border-radius: 7px; color: #514967; background: #fff; font-size: .875rem; padding: 8px 12px; font-weight: 600; cursor: pointer; }
.og-btn:hover { background: #f6f4fa; }
.og-btn.og-primary { color: #fff; background: #7054bc; border-color: #7054bc; }
.og-btn:disabled { opacity: .58; cursor: default; }
.og-status { margin: 12px 0; color: #4b6455; font-size: .9rem; line-height: 1.5; }
.og-error { color: #a4453e; }
.og-account { border-top: 1px solid #ebe8f2; padding-top: 12px; font-size: .875rem; }
.og-textbutton { padding: 0; }
.og-dialog :is(input,button,a,summary):focus-visible { outline: 3px solid #9a86d3; outline-offset: 2px; }
@media (max-width: 480px) {
  .og-head { padding: 15px 16px; }
  .og-body { padding: 14px 16px; }
  .og-pair { grid-template-columns: 1fr; gap: 0; }
}
