.member-auth-modal {
  width: min(400px, calc(100vw - 32px));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0 0 8px;
  border: 0;
  border-radius: 14px;
  background: #fffefa;
  color: #243a33;
  box-shadow: 0 18px 60px rgb(15 36 24 / 24%);
  overflow: hidden;
  font: 14px/1.6 Arial, 'Microsoft YaHei', sans-serif;
}
.member-auth-modal[open] { display: flex; flex-direction: column; }
.member-auth-modal::backdrop { background: rgb(15 26 20 / 46%); }
.member-auth-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.member-auth-modal h2 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.4; }
.member-auth-modal button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #17643e; font: inherit; cursor: pointer; }
.member-auth-modal button:hover { background: #edf4ef; }
.member-auth-modal button:focus-visible { outline: 2px solid #17643e; outline-offset: 2px; }
.member-auth-modal .member-auth-close { display: grid; place-items: center; width: 44px; padding: 10px; margin-right: -10px; color: #516256; }
.member-auth-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.member-auth-modal > iframe { display: block; flex: 0 1 auto; width: 100%; height: var(--member-auth-frame-height, 350px); max-height: calc(100dvh - 116px); min-height: 0; border: 0; background: transparent; }
.member-auth-modal > footer { padding: 0 24px 12px; text-align: right; }
.member-auth-modal > footer[hidden] { display: none; }
.member-auth-modal .member-auth-status { margin: 0; padding: 4px 24px 12px; color: #425b4c; font-size: 14px; line-height: 1.6; }
.member-auth-modal .member-auth-status:empty { display: none; }
.member-auth-complete { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; background: #fffefa; color: #243a33; font-family: system-ui, sans-serif; text-align: center; }
.member-auth-complete h1 { font-size: 22px; }
.member-auth-complete p { line-height: 1.7; }
.member-auth-complete a { display: inline-block; padding: 12px; color: #17643e; text-underline-offset: 3px; }

@media (max-width: 420px) {
  .member-auth-modal { left: 16px; right: auto; margin-left: 0; margin-right: 0; }
}
