/* 아이콘 글꼴 — 회원 화면이 테마 머리말을 타지 않는 경우가 있어
   스킨이 스스로 부른다. 이미 실려 있으면 브라우저가 다시 받지 않는다. */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,300,0,0&display=swap');

/* 아이콘 클래스 이름은 outlined 인데 실제로 부르는 글꼴은 Rounded 다.
   이어 주지 않으면 아이콘 자리에 'lock' 같은 이름이 글자로 나온다. */
.material-symbols-outlined,
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  direction: ltr;
  white-space: nowrap;
  word-wrap: normal;
  letter-spacing: normal;
  text-transform: none;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* =============================================================
   ACE SHOT 파크골프 회원 스킨 CSS
   플러스수학 디자인 골격 계승 → --pm-* 변수를 파크골프 색상으로 정의
   라이트/다크 모드 · AOS · 반응형 · PHP5.6/그누보드5
   ============================================================= */

/* ── 디자인 토큰 (파크골프 그린 팔레트) ─────────────────────── */
:root{
  --pm-primary:var(--app-primary-dark, #603018);          /* 파크골프 그린 */
  --pm-primary-hover:var(--app-primary-dark, #603018);
  --pm-primary-light:var(--app-card-soft, #fbf8f1);
  --pm-on-primary:var(--app-card, #ffffff);

  --pm-bg:var(--app-card-soft, #fbf8f1);
  --pm-surface:var(--app-card, #ffffff);
  --pm-surface-low:var(--app-card-soft, #fbf8f1);
  --pm-outline:var(--app-border, rgba(82,72,59,.15));
  --pm-outline-strong:var(--app-border, rgba(82,72,59,.15));

  --pm-text:var(--app-text, #241f1a);
  --pm-on-surface:var(--app-text, #241f1a);
  --pm-on-surface-2:var(--app-muted, #746c62);
  --pm-on-surface-3:var(--app-muted, #746c62);

  --pm-danger:var(--app-red, #c0392b);
  --pm-radius-sm:8px;
  --pm-radius-md:12px;
  --pm-radius-xl:20px;
  --pm-radius-full:999px;
  --pm-transition:all .16s ease;
}
/* 다크모드: 그누보드 테마의 data-theme="dark" 연동
   (어두운 배경에서 원색이 묻히지 않도록 밝게 오버라이드) */
html[data-app-theme="dark"], body[data-app-theme="dark"], .dark{
  --pm-primary:var(--app-primary, #8b4d28);
  --pm-primary-hover:var(--app-gold, #c9a227);
  --pm-primary-light:rgba(52,196,124,.14);
  --pm-on-primary:rgba(41, 37, 31, .18);

  --pm-bg:var(--app-text, #241f1a);
  --pm-surface:var(--app-text, #241f1a);
  --pm-surface-low:var(--app-text, #241f1a);
  --pm-outline:var(--app-text, #241f1a);
  --pm-outline-strong:var(--app-text, #241f1a);

  --pm-text:var(--app-card-soft, #fbf8f1);
  --pm-on-surface:var(--app-border, rgba(82,72,59,.15));
  --pm-on-surface-2:var(--app-muted, #746c62);
  --pm-on-surface-3:var(--app-muted, #746c62);

  --pm-danger:var(--app-red, #c0392b);
}
html[data-app-theme="dark"] .mb-btn-primary{ color:var(--app-text, #241f1a); }

/* ── 페이지 레이아웃 ─────────────────────────────────────── */
.mb-page{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding:32px 16px; background:var(--pm-bg); position:relative; overflow:hidden;
  font-family:'Pretendard','Noto Sans KR',-apple-system,sans-serif;
}
.mb-page::before{
  content:''; position:fixed; top:-160px; right:-160px; width:520px; height:520px;
  background:radial-gradient(circle, rgba(27,122,75,.10) 0%, transparent 65%);
  pointer-events:none; z-index:0;
}
.mb-page::after{
  content:''; position:fixed; bottom:-130px; left:-130px; width:420px; height:420px;
  background:radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 65%);
  pointer-events:none; z-index:0;
}
.mb-page *{ box-sizing:border-box; }

/* ── 카드 ─────────────────────────────────────────────────── */
.mb-card{
  position:relative; z-index:1; background:var(--pm-surface);
  border-radius:var(--pm-radius-xl);
  border:1px solid var(--pm-outline); width:100%; max-width:520px;
  animation:mbSlideUp .42s cubic-bezier(.4,0,.2,1) both;
}
.mb-card.mb-card-wide{ max-width:640px; }
@keyframes mbSlideUp{ from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

.mb-card-header{
  padding:24px 30px 20px; border-bottom:1px solid var(--pm-outline);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.mb-card-logo{
  display:flex; align-items:center; gap:8px; font-size:18px; font-weight:900;
  color:var(--pm-primary); letter-spacing:-.5px;
}
.mb-card-logo .material-symbols-outlined{ font-size:24px; }
.mb-card-logo-sub{ font-size: 14px; font-weight:400; color:var(--pm-on-surface-2); }
.mb-card-header-link{
  font-size: 14px; font-weight:600; color:var(--pm-primary); background:var(--pm-primary-light);
  padding:7px 16px; border-radius:var(--pm-radius-full); transition:var(--pm-transition);
  text-decoration:none; white-space:nowrap;
}
.mb-card-header-link:hover{ background:var(--pm-primary); color:var(--pm-on-primary); }
.mb-card-body{ padding:24px 30px 30px; }

/* 유형 배지 */
.mb-type-badge{
  display:inline-flex; align-items:center; gap:6px; font-size: 14px; font-weight:700;
  color:var(--pm-primary); background:var(--pm-primary-light);
  padding:6px 14px; border-radius:var(--pm-radius-full); white-space:nowrap;
}

/* ── 진행 단계 ───────────────────────────────────────────── */
.mb-steps{
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 30px 0;
}
.mb-step{
  display:flex; align-items:center; gap:6px; font-size: 14px; font-weight:600;
  color:var(--pm-on-surface-3);
}
.mb-step-num{
  width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--pm-outline); color:var(--pm-on-surface-3); font-size: 14px; font-weight:800;
}
.mb-step.active{ color:var(--pm-primary); }
.mb-step.active .mb-step-num{ background:var(--pm-primary); color:var(--pm-on-primary); }
.mb-step.done{ color:var(--pm-primary); }
.mb-step.done .mb-step-num{ background:var(--pm-primary-light); color:var(--pm-primary); }
.mb-step + .mb-step::before{ content:''; width:16px; height:2px; background:var(--pm-outline); border-radius:2px; }

/* ── 섹션 타이틀 ──────────────────────────────────────────── */
.mb-section-title{
  display:flex; align-items:center; gap:6px; font-size:14px; font-weight:800;
  color:var(--pm-on-surface); margin-bottom:14px;
  padding-bottom:9px; border-bottom:2px solid var(--pm-primary-light);
}
.mb-section-title .material-symbols-outlined{ color:var(--pm-primary); }

/* ── 필드 ─────────────────────────────────────────────────── */
.mb-field{ margin-bottom:14px; }
.mb-field-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:520px){ .mb-field-row{ grid-template-columns:1fr; } }
.mb-label{
  display:block; font-size: 14px; font-weight:700; color:var(--pm-on-surface);
  margin-bottom:7px;
}
.mb-label em{ color:var(--pm-danger); font-style:normal; margin-left:2px; }
.mb-label-hint{
  font-size: 14px; font-weight:500; color:var(--pm-on-surface-3);
  margin-left:6px;
}
.mb-field-msg{ display:block; font-size:11.5px; color:var(--pm-on-surface-3); margin-top:5px; }

/* 입력창 (그누보드 frm_input 재정의) */
.frm_input, .mb-input, select.frm_input, textarea.frm_input{
  width:100%; padding:11px 14px; border:1.5px solid var(--pm-outline-strong);
  border-radius:var(--pm-radius-md); background:var(--pm-surface); color:var(--pm-text);
  font-size:15px; font-family:inherit; transition:border-color .15s; outline:none;
}
.frm_input:focus, select.frm_input:focus, textarea.frm_input:focus{
  border-color:var(--pm-primary);
}
.frm_input::placeholder{ color:var(--pm-on-surface-3); }
select.frm_input{
  appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9b91' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; padding-right:36px;
}
/* 테마/외부 스킨의 background 단축 속성에도 선택 화살표가 사라지지 않도록 고정 */
select.frm_input{background-repeat:no-repeat !important;background-position:right 13px center !important;padding-right:40px !important;}
.frm_input[readonly]{ background:var(--pm-surface-low); color:var(--pm-on-surface-2); }
.mb-addr-zip-row{ display:flex; gap:8px; }
.mb-addr-zip-row .frm_input{ flex:1; }

/* ── 체크박스 ─────────────────────────────────────────────── */
.mb-check-group{
  margin:18px 0; padding:16px; background:var(--pm-surface-low);
  border-radius:var(--pm-radius-md); border:1px solid var(--pm-outline);
  display:flex; flex-direction:column; gap:12px;
}
.mb-check{ display:flex; align-items:center; gap:9px; cursor:pointer; font-size:14px; color:var(--pm-on-surface); }
.mb-check input[type=checkbox]{ width:18px; height:18px; accent-color:var(--pm-primary); cursor:pointer; flex:none; }
.selec_chk{ width:18px; height:18px; accent-color:var(--pm-primary); cursor:pointer; }

/* 전체동의 */
.mb-agree-all{
  display:flex; align-items:center; gap:10px; padding:15px 18px; margin-top:14px;
  background:var(--pm-primary-light); border-radius:var(--pm-radius-md);
}
.mb-agree-all label{ font-size:15px; font-weight:800; color:var(--pm-primary); cursor:pointer; margin:0; }

/* ── 약관 박스 ────────────────────────────────────────────── */
.mb-terms-box{ margin-bottom:16px; }
.mb-terms-box-title{ font-size: 14px; font-weight:800; color:var(--pm-on-surface); margin-bottom:8px; }
.mb-terms-box textarea{
  width:100%; height:120px; padding:12px 14px; border:1.5px solid var(--pm-outline);
  border-radius:var(--pm-radius-md); background:var(--pm-surface-low); color:var(--pm-on-surface-2);
  font-size:12.5px; line-height:1.65; resize:none; font-family:inherit;
}
.mb-terms-box-footer, .mb-info-table-footer{
  display:flex; align-items:center; gap:8px; margin-top:9px; padding:0 2px;
}
.mb-terms-box-footer label, .mb-info-table-footer label{ font-size:13.5px; color:var(--pm-on-surface); cursor:pointer; margin:0; }

/* 개인정보 표 */
.mb-info-table-wrap{ margin-bottom:16px; }
.mb-info-table-title{ font-size: 14px; font-weight:800; color:var(--pm-on-surface); margin-bottom:8px; }
.mb-info-table{ width:100%; border-collapse:collapse; border:1px solid var(--pm-outline); border-radius:var(--pm-radius-md); overflow:hidden; }
.mb-info-table th{ background:var(--pm-surface-low); color:var(--pm-on-surface-2); font-size: 14px; font-weight:700; padding:9px 10px; border-bottom:1px solid var(--pm-outline); }
.mb-info-table td{ font-size: 14px; color:var(--pm-on-surface); padding:9px 10px; border-bottom:1px solid var(--pm-outline); text-align:center; }
.mb-info-table tr:last-child td{ border-bottom:none; }

/* ── 버튼 ─────────────────────────────────────────────────── */
.mb-btn-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:13px 22px; border:0; border-radius:var(--pm-radius-md);
  background:linear-gradient(135deg, var(--pm-primary), var(--pm-primary-hover));
  color:var(--pm-on-primary); font-size:15px; font-weight:800; font-family:inherit;
  cursor:pointer; transition:var(--pm-transition);
}
.mb-btn-primary .material-symbols-outlined{ font-size:20px; }
.mb-btn-primary:hover{ background:linear-gradient(135deg, var(--pm-primary-hover), var(--pm-primary-hover)); }
.mb-btn-primary:active{ transform:translateY(0); }
.mb-btn-primary:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
.mb-btn-outline{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:13px 22px; border:1.5px solid var(--pm-outline-strong); border-radius:var(--pm-radius-md);
  background:var(--pm-surface); color:var(--pm-on-surface-2); font-size:15px; font-weight:700;
  font-family:inherit; cursor:pointer; transition:var(--pm-transition); text-decoration:none;
}
.mb-btn-outline:hover{ background:var(--pm-outline); color:var(--pm-on-surface); }
.mb-btn-sub, .btn_frmline{
  display:inline-flex; align-items:center; justify-content:center; padding:0 16px; height:44px;
  border:1.5px solid var(--pm-outline-strong); border-radius:var(--pm-radius-md);
  background:var(--pm-surface); color:var(--pm-on-surface-2); font-size: 14px; font-weight:700;
  font-family:inherit; cursor:pointer; white-space:nowrap; transition:var(--pm-transition); flex:none;
}
.mb-btn-sub:hover, .btn_frmline:hover{ background:var(--pm-primary); color:var(--pm-on-primary); border-color:var(--pm-primary); }
.mb-btn-row{ display:grid; grid-template-columns:1fr 2fr; gap:10px; margin-top:24px; }

/* ── 안내/구분선 ──────────────────────────────────────────── */
.mb-notice-box{
  padding:12px 15px; background:var(--pm-primary-light); border-radius:var(--pm-radius-md);
  font-size: 14px; color:var(--pm-on-surface); line-height:1.55;
}
.mb-divider{ height:1px; background:var(--pm-outline); margin:20px 0; }

/* 자동등록방지 */
.mb-captcha-wrap{ margin:16px 0; display:flex; justify-content:center; }
#captcha{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
/* CAPTCHA 기본 스프라이트가 없거나 테마 버튼 CSS에 덮여도 아이콘을 표시한다. */
#captcha #captcha_mp3,
#captcha #captcha_reload{
  width:40px !important; height:40px !important; padding:0 !important;
  border:1.5px solid var(--pm-outline-strong) !important;
  border-radius:var(--pm-radius-md) !important;
  background-color:var(--pm-surface) !important;
  background-position:center !important; background-repeat:no-repeat !important;
  background-size:21px 21px !important;
  text-indent:-9999px !important; overflow:hidden; cursor:pointer;
}
#captcha #captcha_mp3{
  border-color:var(--pm-primary) !important;
  background-color:var(--pm-primary-light) !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f766e' d='M3 9v6h4l5 4V5L7 9H3zm13.5 3a4.5 4.5 0 0 0-2.5-4.03v8.05A4.5 4.5 0 0 0 16.5 12zm-2.5-8.77v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54z'/%3E%3C/svg%3E") !important;
}
#captcha #captcha_reload{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23475569' d='M17.65 6.35A7.95 7.95 0 0 0 12 4a8 8 0 1 0 7.75 10h-2.1A6 6 0 1 1 12 6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E") !important;
}
#captcha #captcha_mp3:hover{ background-color:var(--pm-outline) !important; }
#captcha #captcha_reload:hover{ border-color:var(--pm-primary) !important; }

/* ── 가입 유형 카드 (register 1단계) ──────────────────────── */
.mb-utype-card{
  display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:var(--pm-radius-md);
  border:1.5px solid var(--pm-outline); background:var(--pm-surface); text-decoration:none;
  color:var(--pm-text); transition:border-color .15s;
}
.mb-utype-card:hover{ border-color:var(--pm-primary); }
.mb-utype-card-icon{ flex-shrink:0; width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; }
.mb-utype-card-icon .material-symbols-outlined{ font-size:24px; }
.mb-utype-card-text{ flex:1; min-width:0; word-break:keep-all; }
.mb-utype-card-text strong{ display:block; font-size:15px; margin-bottom:3px; color:var(--pm-on-surface); }
.mb-utype-card-text span{ font-size:12.5px; color:var(--pm-on-surface-2); }

/* 가입 1단계: 약관 + 회원 구분 통합 */
.mb-join-guide{margin:-4px 0 18px;color:var(--pm-on-surface-2);font-size: 14px;line-height:1.6}
.mb-join-type-title{margin-top:26px}
.mb-join-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mb-utype-option{position:relative;cursor:pointer}
.mb-utype-option input{position:absolute;opacity:0;pointer-events:none}
.mb-utype-option .mb-utype-check{color:var(--pm-outline);transition:color .15s}
.mb-utype-option:has(input:checked){border-color:var(--pm-primary);background:var(--pm-primary-light);box-shadow:0 0 0 2px rgba(15,118,110,.10)}
.mb-utype-option:has(input:checked) .mb-utype-check{color:var(--pm-primary)}
.mb-utype-general{background:var(--pm-primary-light);color:var(--pm-primary)}
.mb-utype-club{background:var(--app-card-soft, #fbf8f1);color:var(--app-primary, #8b4d28)}
.mb-join-next-row{margin-top:22px}

/* 가입 2단계: SNS 빠른가입 + 일반가입 폼 */
.mb-social-join{padding:2px 0}
.mb-social-join .mb-section-title{margin-bottom:6px}
.mb-divider{display:flex;align-items:center;gap:12px;height:auto;background:transparent;margin:24px 0}
.mb-divider:before,.mb-divider:after{content:'';height:1px;background:var(--pm-outline);flex:1}
.mb-divider span{font-size: 14px;font-weight:700;color:var(--pm-on-surface-3);white-space:nowrap}

/* ── 가입완료 (register_result) ──────────────────────────── */
.mb-result-icon{
  width:72px; height:72px; margin:8px auto 16px; border-radius:50%;
  background:var(--pm-primary-light); color:var(--pm-primary);
  display:flex; align-items:center; justify-content:center; animation:mbBounce .6s ease;
}
.mb-result-icon .material-symbols-outlined{ font-size:40px; }
@keyframes mbBounce{ 0%{transform:scale(0)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }
.mb-result-name{ text-align:center; font-size:20px; font-weight:900; color:var(--pm-on-surface); margin-bottom:6px; }
.mb-result-sub{ text-align:center; font-size:14px; color:var(--pm-on-surface-2); margin-bottom:20px; }

/* material symbols 기본 정렬 */
.material-symbols-outlined{
  font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24;
  vertical-align:middle; line-height:1;
}

/* 툴팁(그누보드 잔재 최소 대응) */
.tooltip_icon{ position:relative; border:0; background:none; cursor:pointer; color:var(--pm-on-surface-3); }
.tooltip{ display:none; }
.tooltip_icon:hover + .tooltip,
.tooltip_icon:focus + .tooltip{
  display:block; position:absolute; z-index:10; background:var(--pm-on-surface); color:var(--app-card, #ffffff);
  font-size:11.5px; padding:7px 10px; border-radius:8px; margin-top:4px; max-width:240px; line-height:1.4;
}

/* 반응형 */
@media (max-width:520px){
  .mb-card-header{ padding:20px 20px 16px; }
  .mb-card-body{ padding:20px; }
  .mb-steps{ padding:14px 20px 0; }
  .mb-btn-row{ grid-template-columns:1fr; }
  .mb-btn-row .mb-btn-outline{ order:2; }
  /* 회원 구분 카드: 좁은 화면에서 2열이 유지되면 글자가 한 자씩 세로로 깨지므로 1열로 전환 */
  .mb-join-type-grid{ grid-template-columns:1fr; }
}

/* ═══════════════════════════════════════════════════════════
   SNS 소셜 회원가입 전용 (social_register_member.skin.php 공유)
   ═══════════════════════════════════════════════════════════ */
/* 가입 유형 배너 */
.mb-type-banner{
  display:flex; align-items:center; gap:10px; margin-bottom:20px;
  padding:12px 16px; background:var(--pm-surface-low); border-radius:var(--pm-radius-md);
}
.mb-type-banner strong{ font-size:14px; color:var(--pm-on-surface); }
.mb-type-banner p{ font-size: 14px; color:var(--pm-on-surface-2); margin:2px 0 0; }
.mb-type-banner-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:10px; flex-shrink:0;
}
.mb-type-banner-icon.is-general{ background:var(--pm-primary-light); color:var(--pm-primary); }
.mb-type-banner-icon.is-club{ background:var(--app-card-soft, #fbf8f1); color:var(--app-primary, #8b4d28); }
html[data-app-theme="dark"] .mb-type-banner-icon.is-club{ background:rgba(52,196,124,.18); color:var(--app-gold, #c9a227); }

/* 소셜 제공 값 배지 (전화 등) */
.mb-social-badge{
  display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:var(--pm-surface-low); border-radius:var(--pm-radius-md);
  border:1px solid var(--pm-outline);
}

/* 기존 계정 연결 버튼 */
.pma-connect-btn{
  display:inline-flex; align-items:center; gap:4px;
  padding:6px 14px; border-radius:var(--pm-radius-full);
  border:1px solid var(--pm-primary); background:none;
  color:var(--pm-primary); font-size: 14px; font-weight:600; cursor:pointer;
  transition:var(--pm-transition); font-family:inherit;
}
.pma-connect-btn:hover{ background:var(--pm-primary-light); }

/* SNS 스킨 별칭: mb-form-group = mb-field (동일 간격) */
.mb-form-group{ margin-bottom:14px; }

/* surface-cont 별칭 (SNS 스킨이 참조) */
:root{ --pm-surface-cont:var(--pm-surface-low); --pm-success:var(--app-primary-dark, #603018); }
html[data-app-theme="dark"]{ --pm-surface-cont:var(--pm-surface-low); --pm-success:var(--app-gold, #c9a227); }

/* ── 사주 정보 칸 ───────────────────────────────────────
   가입폼에서 이 부분만 성격이 다르다. 아이디·비밀번호는 계정을 만드는
   값이고, 여기는 사주를 세우는 값이다. 테두리로 묶어 갈라 보이게 한다. */

/* 사주 칸은 테두리로 가두지 않는다. 다른 칸과 같은 결로 이어지게 두고,
   묶음이라는 것은 제목만으로 알린다. fieldset 은 낭독기를 위해 남긴다. */
.mb-saju {
    margin: 22px 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--app-border, rgba(82,72,59,.15));
    padding-top: 18px;
    background-color: transparent;
}

.mb-saju > legend {
    padding: 0;
    color: var(--app-primary, #8b4d28);
    font-size: 15px;
    font-weight: 800;
}

.mb-saju-why {
    display: block;
    margin-top: 4px;
    color: var(--app-muted, #746c62);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    word-break: keep-all;
}

.mb-saju-note {
    margin: 14px 0 0;
    color: var(--app-muted, #746c62);
    font-size: 14px;
    line-height: 1.7;
    word-break: keep-all;
}

/* 공통 출생지 입력칸이 스킨 안에서도 같은 폭을 쓰게 한다 */
.mb-saju .saju-birthplace-row,
.mb-saju .saju-summertime-row {
    margin-top: 12px;
}

.mb-saju input[type="time"],
.mb-saju select {
    width: 100%;
}

@media (max-width: 640px) {
    .mb-saju { padding: 14px 16px; }
}

/* ── 회원 화면 로고 ────────────────────────────────────
   로그인·가입 화면에는 사이트 헤더가 없다. 카드 위에 로고를 한 번 둔다. */
/* .mb-page 는 가로 가운데 정렬이라 로고를 그대로 두면 카드 옆에 선다.
   줄을 바꿔 카드 위로 올린다. */
.mb-page {
  flex-wrap: wrap;
  flex-direction: column;
}

.mb-brand {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  text-align: center;
}

.mb-brand-logo {
  display: block;
  width: auto;
  height: 46px;
  margin: 0 auto;
  max-width: 100%;
}

.mb-brand-logo.is-dark { display: none; }

html[data-app-theme="dark"] .mb-brand-logo.is-light { display: none; }
html[data-app-theme="dark"] .mb-brand-logo.is-dark { display: block; }

@media (max-width: 520px) {
  .mb-brand-logo { height: 38px; }
}

/* ── 선택 상자 마무리 ──────────────────────────────────
   다른 CSS 가 background 단축으로 덮어 화살표가 사라지고, 줄 높이가
   모자라 글자 아래가 잘리던 것을 여기서 못 박는다.
   background 단축을 쓰지 않고 낱개 속성만 쓴다. */
select.frm_input {
  height: 46px;
  line-height: 1.4;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23746c62' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  padding-right: 40px !important;
}

html[data-app-theme="dark"] select.frm_input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c6d1cb' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* ── 사주 칸 정렬 마무리 ────────────────────────────────
   fieldset 은 브라우저가 좌우에 제 여백을 넣어, 바깥 칸들과 줄이 어긋난다.
   0 으로 못 박고 안쪽 칸도 다른 칸과 같은 간격을 쓰게 한다. */
fieldset.mb-saju {
  min-width: 0;
  margin-inline: 0;
  padding-inline: 0;
}

.mb-saju > legend {
  margin-inline-start: 0;
}

.mb-saju .mb-field,
.mb-saju .mb-field-row {
  margin-bottom: 14px;
}

/* 출생지 칸은 바로 위 체크줄과 붙어 있었다 */
.mb-saju .saju-birthplace {
  margin-top: 14px;
}

/* 입력칸과 선택칸의 키를 맞춘다. select 는 글자를 1px 줄여 자간에 여유를 준다 */
.frm_input,
.mb-input,
input.frm_input,
select.frm_input {
  height: 46px;
}

textarea.frm_input {
  height: auto;
}

select.frm_input {
  font-size: 14px;
}

/* ── 입력칸 배경 통일 ──────────────────────────────────
   크롬은 아이디·이름처럼 자동완성이 걸린 칸에 제 배경색을 칠한다.
   그래서 어떤 칸은 연한 색, 어떤 칸은 흰색으로 갈렸다.
   그림자로 배경을 덮어쓰는 것이 유일하게 먹히는 방법이다. */
.frm_input:-webkit-autofill,
.frm_input:-webkit-autofill:hover,
.frm_input:-webkit-autofill:focus,
.mb-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--app-card, #ffffff) inset !important;
  box-shadow: 0 0 0 1000px var(--app-card, #ffffff) inset !important;
  -webkit-text-fill-color: var(--app-text, #241f1a) !important;
  transition: background-color 5000s ease-in-out 0s;
}

html[data-app-theme="dark"] .frm_input:-webkit-autofill,
html[data-app-theme="dark"] .mb-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--app-card, #1c2721) inset !important;
  box-shadow: 0 0 0 1000px var(--app-card, #1c2721) inset !important;
}

/* ── 출생지 칸 위 여백 ─────────────────────────────────
   '모름·서머타임' 줄 바로 밑에 붙어 있었다. 공통 부품이라 감싸는
   태그가 화면마다 달라, 부품 자체에 여백을 준다. */
.saju-birthplace {
  display: block;
  margin-top: 16px;
}

.saju-birthplace-field > span:first-child {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

/* ── 회원가입 1단계(약관 동의) ─────────────────────────
   register.skin.php 안 <style> 블록에 있던 것을 여기로 옮겼다.
   스타일은 CSS 파일 한 곳에 모아야 어디를 고칠지 헤매지 않는다. */
/* 회원가입 약관 박스: styled 이용약관(provision) 스킨을 스크롤 영역에 담아 보여준다 */
.mb-terms-scroll{ height:220px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  border:1.5px solid var(--pm-outline); border-radius:var(--pm-radius-md);
  background:var(--pm-surface-low); padding:0 6px; }
.mb-terms-scroll .provision{ max-width:none; margin:0; padding:.6rem .5rem 1.2rem; font-size:12.5px; line-height:1.6; }
.mb-terms-scroll .provision h1{ display:none; }        /* 박스 제목이 이미 있으므로 큰 제목 숨김 */
.mb-terms-scroll .provision .toc{ display:none; }       /* 목차(앵커)는 스크롤 박스에서 생략 */
.mb-terms-scroll .provision h2{ font-size:.92rem; margin:1rem 0 .4rem; padding-left:.55rem; border-left-width:3px; }
.mb-terms-scroll .provision p{ font-size:12.5px; margin:0 0 .45rem; }
.mb-terms-scroll .provision p.depth1{ font-size:12px; }
.mb-terms-scroll .provision .box-notice{ margin-top:1rem; padding:.7rem .9rem; font-size:12.5px; }
.mb-terms-fallback{ white-space:pre-wrap; font-family:inherit; font-size:12.5px; line-height:1.65; margin:0; padding:.6rem; color:var(--pm-on-surface-2); }

/* 약관 화면에서 쓰던 policy-* 마크업이 그대로 들어온다.
   좁은 상자에 맞게 여백과 글자를 줄인다. */
.mb-terms-scroll{ padding:14px 16px; }
.mb-terms-scroll .policy-body{ display:grid; gap:18px; }
.mb-terms-scroll .policy-section{ margin:0; padding:0; border:0; background:none; }
.mb-terms-scroll .policy-section h2{
  display:flex; align-items:baseline; gap:7px; margin:0 0 8px;
  font-size:14px; font-weight:800; line-height:1.5; }
.mb-terms-scroll .policy-no{
  flex:0 0 auto; color:var(--pm-primary); font-size:13px; font-weight:800; }
.mb-terms-scroll .policy-section p{ margin:0 0 8px; font-size:13px; line-height:1.75; word-break:keep-all; }
.mb-terms-scroll .policy-section ol,
.mb-terms-scroll .policy-section ul{ margin:0; padding-left:19px; }
.mb-terms-scroll .policy-section li{ margin-bottom:7px; font-size:13px; line-height:1.75; word-break:keep-all; }
.mb-terms-scroll .policy-section li:last-child{ margin-bottom:0; }

/* 두 묶음을 카드로 감싼다. 제목·본문·동의줄이 한 덩어리로 보여야
   무엇에 동의하는지 헷갈리지 않는다. 안쪽은 평평하게 둔다. */
.mb-terms-box,
.mb-info-table-wrap{
  margin:0 0 20px;
  padding:16px 18px;
  border:1px solid var(--pm-outline);
  border-radius:var(--pm-radius-md);
  background:var(--pm-surface);
  box-shadow:none; }

.mb-terms-box-title,
.mb-info-table-title{
  margin:0 0 12px; padding:0; border:0; background:none;
  font-size:14px; font-weight:800; }

.mb-terms-scroll{
  height:240px; padding:16px 18px;
  border:1px solid var(--pm-outline);
  border-radius:var(--pm-radius-md);
  background:#ffffff; }

html[data-app-theme="dark"] .mb-terms-scroll{ background:var(--app-card, #1c2721); }

/* 개인정보 표 — 폭을 꽉 채우되 칸 너비는 글 길이에 맞춘다.
   세 칸을 똑같이 나누면 가운데 '항목' 이 좁아 두 줄로 접힌다. */
.mb-info-table{ width:100%; border-collapse:collapse;
  border:1px solid var(--pm-outline); border-radius:var(--pm-radius-md); overflow:hidden; }
.mb-info-table th,
.mb-info-table td{ padding:11px 12px; word-break:keep-all; }
.mb-info-table th:nth-child(1),
.mb-info-table td:nth-child(1){ width:30%; }
.mb-info-table th:nth-child(2),
.mb-info-table td:nth-child(2){ width:44%; }
.mb-info-table th:nth-child(3),
.mb-info-table td:nth-child(3){ width:26%; white-space:nowrap; }
.mb-info-table th{ background:var(--pm-surface-low); }
.mb-info-table td{ background:#ffffff; }

html[data-app-theme="dark"] .mb-info-table td{ background:var(--app-card, #1c2721); }

/* 동의 줄 — 위아래로 10px 씩.
   다른 CSS 가 윗선을 그어 놓아 약관과 체크박스가 갈라져 보였다. 걷어낸다.
   구분이 필요하면 아랫선을 쓴다. */
.mb-terms-box-footer,
.mb-info-table-footer{
  display:flex; align-items:center; gap:8px;
  margin:10px 0 !important;
  padding:10px 2px !important;
  border-top:0 !important; }

.mb-agree-all{ margin-bottom:22px; padding:14px 16px; }
.mb-social-join{ margin-bottom:8px; }
.mb-divider{ margin:22px 0; }

/* 사주 묶음 다음 칸과의 사이. 화면에서 재 보니 18px 로, 다른 칸 사이
   14px 보다 4px 벌어져 있었다. 뒤따르는 요소의 위 여백을 맞춘다. */
.mb-saju + * {
  margin-top: 14px !important;
}


/* ── 비밀번호 확인 화면 ─────────────────────────────── */
.mb-icon-sm{ font-size:16px; }
.mb-bare-fieldset{ border:0; padding:0; margin:0; }
.mb-btn-block{ width:100%; }
.mb-confirm-lead{
    margin:0 0 12px;
    font-size:14px;
    line-height:1.7;
    color:var(--pm-on-surface-2);
    word-break:keep-all;
}
.mb-confirm-id{
    margin:0;
    padding:10px 14px;
    border:1px solid var(--pm-outline);
    border-radius:10px;
    background-color:var(--pm-surface-low);
    font-size:13px;
    color:var(--pm-on-surface-2);
}
.mb-confirm-id strong{ margin-left:6px; color:var(--pm-on-surface); }
/* 아이디 줄·확인 단추와 각각 20px 씩 떨어뜨린다 */
.mb-confirm-input{ margin:20px 0; }
.mb-confirm-cancel{ margin-top:10px; }

@media (max-width:560px){
    .mb-confirm-lead{ font-size:12px; }
    .mb-confirm-id{ font-size:12px; }
}
