.email-auth-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #e3e5e8;border-radius:18px;background:#fff;color:#20242b;overflow:auto;margin:auto;box-sizing:border-box}
.email-auth-dialog::backdrop{background:rgba(15,23,42,.45)}
.email-auth-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.email-auth-head h2{font-size:22px;line-height:1.3;margin:0;font-weight:750;letter-spacing:-.04em}
.email-auth-head button{border:0;background:none;font-size:28px;color:#535b68;min-width:44px;min-height:44px;cursor:pointer}
.email-auth-intro{font-size:14px;line-height:1.6;color:#616875;margin:12px 0 20px}
.email-auth-dialog label{display:block;font-size:14px;font-weight:600;margin-top:14px}
.email-auth-dialog input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;min-height:46px;border:1px solid #cbd0d8;border-radius:8px;padding:10px 12px;margin-top:7px;font:inherit;font-size:16px;background:#fff;color:#20242b}
.email-auth-dialog input:focus-visible,.email-auth-dialog button:focus-visible,.email-auth-dialog a:focus-visible{outline:3px solid #4063e0;outline-offset:3px}
.email-auth-dialog label.email-auth-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:400;line-height:1.6}
.email-auth-consent input{width:18px;height:18px;flex-shrink:0;margin-top:2px;accent-color:#3151c8}
.email-auth-dialog a{color:#3151c8;text-decoration:underline;text-underline-offset:3px}
.email-auth-status{min-height:20px;color:#9a3412;font-size:13px;line-height:1.5;margin:14px 0 10px}
.email-auth-dialog .email-auth-primary{width:100%;min-height:46px;background:#3151c8;border:1px solid #3151c8;color:#fff;border-radius:9px;justify-content:center}
.email-auth-links{display:flex;justify-content:space-between;gap:12px;margin:10px 0}
.email-auth-links button{border:0;background:none;color:#454e60;min-height:44px;padding:6px 0;font:inherit;font-size:13px;cursor:pointer}
.email-auth-dialog .email-auth-google{width:100%;min-height:46px;background:#fff;color:#252a33;border:1px solid #cbd0d8;border-radius:9px;justify-content:center}
.email-auth-dialog button:disabled{opacity:.6;cursor:wait}

body.member-entry-open {
  overflow: hidden;
}
.member-entry {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  overflow-y: auto;
}
.member-entry[hidden],
.member-entry-actions[hidden],
.member-entry-actions button[hidden] {
  display: none;
}
.member-entry-card {
  width: min(100%, 420px);
  padding: clamp(20px, 6vw, 36px);
  border: 1px solid var(--g200);
  border-radius: 20px;
  background: var(--white, #fff);
}
.member-entry-card h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 34px);
}
.member-entry-card p {
  margin: 0 0 18px;
  line-height: 1.55;
}
.member-entry-card #memberEntryStatus:empty {
  display: none;
}
.member-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.member-entry-actions .btn {
  flex: 1 1 100px;
  min-height: 44px;
}
.member-entry-card .member-entry-legal {
  margin: 20px 0 0;
  font-size: 13px;
}
.member-entry-legal a {
  text-decoration: underline;
}

.member-entry-actions .member-entry-google {
  flex-basis: 100%;
  background: #fff;
  color: var(--g900);
  border-color: var(--g300);
}
.ios-download-icon {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
}
.ios-download {
  text-align: center;
  overscroll-behavior: contain;
}
.ios-download h2 {
  margin: 0;
  color: var(--g900);
  font-size: 22px;
  letter-spacing: -.035em;
}
.ios-download .btn {
  display: flex;
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.ios-download a.btn-accent {
  color: #fff;
  text-decoration: none;
}
.ios-download form {
  margin-top: 8px;
}

/* 위치 설정과 로그인은 하나의 스크롤·대화상자 안에서 진행한다. */
.member-entry { display:block; padding:24px 16px; padding-top:max(24px, env(safe-area-inset-top)); }
.member-entry-card { box-sizing:border-box; margin:0 auto; max-width:480px; width:100%; padding:24px 20px; }
#memberRegion .region-ask-inner { padding:0; min-height:0; }
#memberRegion h2 { font-size:20px; }
#memberRegion h2 br { display:none; }
#memberRegion h3 { margin-top:16px; }
#memberRegion .region-ask-sub { font-size:14px; margin-bottom:12px; }
#memberRegion .opt-grid { gap:6px; }
#memberRegion .opt-chip { min-height:40px; }
#memberRegion[hidden], .recent-login-badge[hidden], #recentLogin[hidden], #memberOtherAccount[hidden] { display:none; }
.member-region-chosen { display:flex; align-items:center; gap:8px; }
.member-region-chosen:has(#memberRegionSummary:empty) { display:none; }
.member-entry-card #memberRegionSummary { margin:0; flex:1; font-weight:650; }
.member-entry .member-region-chosen .text-btn { white-space:nowrap; margin:0; min-height:44px; }
.member-entry-actions { flex-direction:column; }
.member-entry-actions .btn { flex:auto; display:flex; align-items:center; justify-content:center; gap:8px; }
.member-entry-actions .provider-kakao { background:#fee500; border-color:#fee500; color:#191919; }
.member-entry-actions .provider-naver { background:#03c75a; border-color:#03c75a; color:#003016; }
.member-entry-actions .text-btn { min-height:44px; align-self:center; margin:0; }
.recent-login-badge { font-size:11px; line-height:1.4; padding:3px 6px; border:1px solid currentColor; border-radius:4px; }
.member-entry-card #recentLogin { font-size:13px; color:var(--g700); margin:12px 0; overflow-wrap:anywhere; }
.member-entry-card #memberEntryStatus { font-size:13px; margin:16px 0 10px; color:var(--g700); }
@media (max-width:359px) { .member-entry { padding:12px 8px; } .member-entry-card { padding:20px 14px; } }
.entry-regions { margin:8px 0 12px; }
.entry-regions summary { min-height:44px; display:flex; align-items:center; cursor:pointer; text-decoration:underline; font-size:14px; color:var(--g700); }
.entry-regions[open] summary { margin-bottom:8px; }

.member-entry-actions .provider-apple { background:#000; color:#fff; border-color:#000; }
.member-entry .member-browse { display:block; margin:12px auto 0; min-height:44px; font-size:13px; color:var(--g700); text-decoration:underline; }
.member-entry #memberBrowse[hidden] { display:none; }
