html.sg-member-modal-open,
html.sg-member-modal-open body {
  overflow:hidden!important;
  overscroll-behavior:none;
}
.sg-member-modal {
  box-sizing:border-box;
  width:calc(100% - 32px);
  max-width:440px;
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:16px;
  background:#fff;
  color:#242529;
  font:16px/1.5 Inter,Arial,sans-serif;
  box-shadow:0 16px 48px #0003; /* taste-skill-ignore: floating dialog */
  overflow:hidden;
  overscroll-behavior:contain;
}
.sg-member-modal::backdrop { background:rgb(20 19 22 / 54%); }
.sg-member-modal:not([open]) { display:none; }
.sg-member-modal .sg-member-modal-close {
  position:absolute;
  top:16px;
  right:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#242529;
  cursor:pointer;
  z-index:1;
}
.sg-member-modal .sg-member-modal-close:hover { background:#f3f3f3; }
.sg-member-modal :focus-visible { outline:2px solid #222; outline-offset:3px; }
.sg-member-modal .sg-member-modal-body {
	box-sizing:border-box;
	min-height:0;
	max-width:none;
	margin:0;
	padding:16px clamp(20px, 5vw, 28px) 24px;
	max-height:calc(100vh - 32px);
	max-height:calc(100dvh - 32px);
	overflow:auto;
	overscroll-behavior:contain;
	font:inherit;
}
.sg-member-modal .sg-login { max-width:none; }
.sg-member-modal .sg-login:not(.sg-login-code) .sg-login-copy h2 { padding-right:40px; }
.sg-member-modal .sg-login-copy h2,
.sg-member-modal .sg-member-modal-body > h2 {
	margin:0;
	color:#242529;
	font-size:clamp(23px, 5vw, 26px);
	font-weight:600;
	line-height:1.2;
	letter-spacing:-.02em;
}
.sg-member-modal .sg-member-modal-body > h2 { margin:52px 0 8px; }
.sg-member-modal .sg-member-modal-body > p { margin:0 0 16px; }
