/* Scope account spacing so consultation and operator forms keep their own layout. */
.participant-main:not(#accountCard):has(#auth:not([hidden])),.participant-main.auth-callback {
  width:min(calc(100% - 40px),400px);
  margin:clamp(22px,5svh,56px) auto max(36px,env(safe-area-inset-bottom));
}
.participant-main:not(#accountCard):has(#auth:not([hidden])) h1,.auth-callback h1 {
  margin:0 0 18px; font-size:clamp(26px,5vw,34px); line-height:1.2;
}
.member-auth,.auth-callback,.nickname-editor { color-scheme:dark; }
.member-auth form.credential-form,.participant-main form.credential-form {
  display:grid; align-content:start; gap:10px; margin:0; width:100%;
}
.member-auth .credential-form label,.participant-main .credential-form label {
  display:grid; gap:4px; margin:0; min-width:0; color:var(--text); font-size:13px; line-height:18px;
}
.member-auth .credential-form input,.participant-main .credential-form input {
  box-sizing:border-box; min-width:0; width:100%; height:46px; min-height:46px; margin:0;
  padding:8px 12px; font:400 16px/1.35 var(--sans,sans-serif); border-radius:9px;
}
.member-auth .credential-form button,.participant-main .credential-form button {
  margin:3px 0 0; min-height:46px; width:100%; font-size:15px;
}
.member-auth .auth-alternative {display:flex;align-items:center;gap:12px;margin:14px 0 10px;color:var(--muted);font-size:12px;}
.auth-alternative::before,.auth-alternative::after {content:"";flex:1;height:1px;background:var(--line);}
.member-auth .social-actions {margin:0;gap:7px;}
.member-auth .social-button {position:relative; width:100%; padding:9px 40px; min-height:44px; line-height:1.3;}
.member-auth .social-button::before {position:absolute;left:14px;}
.social-kakao::before {
  content:""; width:18px; height:16px; background:currentColor;
  clip-path:polygon(50% 0,72% 4%,90% 19%,98% 42%,93% 62%,76% 77%,50% 82%,38% 80%,18% 100%,22% 73%,7% 62%,1% 43%,6% 25%,23% 8%);
}
.member-auth .auth-switch {display:block;min-height:44px;margin:7px auto 0;padding:8px 16px;text-decoration:underline;text-underline-offset:4px;color:var(--text);font-size:14px;}
.member-auth .auth-note,.auth-error,.nickname-editor [role=status] {margin:0;font-size:12px;line-height:1.5;color:var(--muted);}
.member-auth .auth-error:not(:empty) {color:#f5c3b4;margin:8px 0;}
.auth-callback #newAccount {margin:14px 0;}
.auth-callback #back {display:inline-flex;align-items:center;min-height:44px;margin-top:14px;}
.nickname-editor form {max-width:360px;}
@media(max-height:620px) and (orientation:landscape){
  .participant-main:not(#accountCard):has(#auth:not([hidden])),.participant-main.auth-callback{margin-top:16px;}
}

