/* =========================================================
 * theme/muktimoon/skin/member/basic/style.css
 * - /bbs/register.php (회원가입 약관동의) 전용 스킨 스타일
 * - Scope: .register 내부 중심 (전역 오염 최소화)
 * ========================================================= */

/* ---------- Tokens (필요하면 값만 조정) ---------- */
.register {
  --mm-bg: #ffffff;
  --mm-card: #ffffff;
  --mm-text: #111827;
  --mm-muted: #6b7280;
  --mm-line: #e5e7eb;
  --mm-line2: #d1d5db;
  --mm-primary: #2563eb; /* 테마 포인트 컬러에 맞게 수정 가능 */
  --mm-primary-weak: rgba(37, 99, 235, .12);
  --mm-danger: #ef4444;

  --mm-radius: 14px;
  --mm-radius-sm: 10px;
  --mm-shadow: 0 10px 24px rgba(17, 24, 39, .06);
  --mm-shadow2: 0 6px 16px rgba(17, 24, 39, .06);

  color: var(--mm-text);
}

/* ---------- Layout ---------- */
.register {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.register form {
  margin: 0;
}

.register > p {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: var(--mm-shadow2);
  font-size: 14px;
  line-height: 1.5;
  color: var(--mm-text);
}

.register > p i {
  color: var(--mm-primary);
  margin-right: 6px;
}

/* 카드 섹션 */
.register section {
  margin-top: 14px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  background: var(--mm-card);
  box-shadow: var(--mm-shadow2);
  overflow: hidden;
}

.register section > h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  background: #fbfbfb;
  border-bottom: 1px solid var(--mm-line);
}

/* 약관 텍스트 영역 */
#fregister_term textarea {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-bottom: 1px solid var(--mm-line);
  resize: vertical;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #1f2937;
  background: #fff;
  outline: none;
}

#fregister_term textarea:focus {
  box-shadow: inset 0 0 0 2px var(--mm-primary-weak);
}

/* 개인정보 표 */
#fregister_private > div {
  padding: 12px 16px 16px;
}

#fregister_private table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius-sm);
  overflow: hidden;
  background: #fff;
}

#fregister_private caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#fregister_private thead th {
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  background: #f9fafb;
  padding: 12px 12px;
  border-bottom: 1px solid var(--mm-line);
}

#fregister_private tbody td {
  font-size: 13px;
  color: #374151;
  padding: 12px 12px;
  border-bottom: 1px solid var(--mm-line);
  vertical-align: top;
  line-height: 1.55;
}

#fregister_private tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Agree checkbox row ---------- */
.fregister_agree {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
}

/* "모두동의" 영역 */
#fregister_chkall.chk_all {
  margin-top: 14px;
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  background: #fff;
  box-shadow: var(--mm-shadow2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

/* 그누보드 체크박스 패턴(selec_chk + label span) */
.selec_chk {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fregister_agree label,
#fregister_chkall label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #111827;
}

.fregister_agree label span,
#fregister_chkall label span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--mm-line2);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.selec_chk:focus + label span {
  box-shadow: 0 0 0 4px var(--mm-primary-weak);
  border-color: rgba(37, 99, 235, .55);
}

.selec_chk:checked + label span {
  background: var(--mm-primary);
  border-color: var(--mm-primary);
}

.selec_chk:checked + label span::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}

/* ---------- Buttons ---------- */
.btn_confirm {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn_confirm .btn_close,
.btn_confirm .btn_submit {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn_confirm .btn_close {
  background: #fff;
  border-color: var(--mm-line2);
  color: #111827;
}

.btn_confirm .btn_close:hover {
  box-shadow: var(--mm-shadow2);
}

.btn_confirm .btn_submit {
  background: var(--mm-primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.btn_confirm .btn_submit:hover {
  box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}

.btn_confirm .btn_close:active,
.btn_confirm .btn_submit:active {
  transform: translateY(1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .register {
    padding: 16px 12px 22px;
  }

  .register > p {
    font-size: 13px;
  }

  #fregister_private thead th,
  #fregister_private tbody td {
    font-size: 12.5px;
    padding: 10px 10px;
  }

  .btn_confirm {
    flex-direction: column;
    align-items: stretch;
  }

  .btn_confirm .btn_close,
  .btn_confirm .btn_submit {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
 * /bbs/register_form.php (회원가입 폼) 추가 스타일
 * - scope: .register, #register_form, .register_form_inner
 * - tooltip / half_input / captcha / form_01 포함
 * ========================================================= */

/* 컨테이너 폭/여백 (약관동의 페이지와 동일하게) */
.register {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

/* 폼 기본 */
#fregisterform {
  margin: 0;
}

#register_form.form_01 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 섹션 카드 */
.register_form_inner,
.tbl_frm01.tbl_wrap.register_form_inner {
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  background: var(--mm-card, #fff);
  box-shadow: var(--mm-shadow2, 0 6px 16px rgba(17,24,39,.06));
  overflow: hidden;
  padding: 0;
}

.register_form_inner > h2,
.tbl_frm01.tbl_wrap.register_form_inner > h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  background: #fbfbfb;
  border-bottom: 1px solid var(--mm-line, #e5e7eb);
}

/* ul/li 레이아웃 */
.register_form_inner ul,
.tbl_frm01.tbl_wrap.register_form_inner ul {
  list-style: none;
  margin: 0;
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

/* 기본은 2컬럼이지만, 입력항목 단독은 꽉 차게 */
.register_form_inner ul > li,
.tbl_frm01.tbl_wrap.register_form_inner ul > li {
  grid-column: 1 / -1;
}

/* half_input: 2칸 배치 */
.register .half_input {
  grid-column: span 1 !important;
}
.register .left_input { /* 기존 마크업 호환 */
  margin: 0;
}
.register .margin_input { /* 기존 마크업 호환 */
  margin: 0;
}

/* label */
.register label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--mm-text, #111827);
  margin: 0 0 8px;
}

/* tooltip 아이콘 */
.register .tooltip_icon {
  border: 0;
  background: transparent;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
}
.register .tooltip_icon:hover {
  color: var(--mm-primary, #2563eb);
}

/* tooltip 박스 (원본 JS: 아이콘 next(".tooltip") fadeIn) */
.register .tooltip {
  display: none;
  position: absolute;
  z-index: 20;
  margin-top: 8px;
  margin-left: 0;
  padding: 10px 12px;
  max-width: 420px;
  border-radius: 10px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #111827;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
}
.register label { position: relative; } /* tooltip 기준점 */
.register .tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 14px;
  width: 10px;
  height: 10px;
  background: #111827;
  transform: rotate(45deg);
}

/* input 공통 */
.register input[type="text"],
.register input[type="password"],
.register input[type="email"],
.register input[type="number"],
.register input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--mm-line2, #d1d5db);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.register input::placeholder {
  color: #9ca3af;
}

.register input:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px var(--mm-primary-weak, rgba(37,99,235,.12));
}

/* msg 영역 */
#msg_mb_id,
#msg_mb_nick,
#msg_mb_email {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--mm-muted, #6b7280);
}

/* 체크박스(정보공개 등) */
.register li.chk_box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}

.register li.chk_box label {
  margin: 0;
  font-weight: 700;
}

.register li.chk_box .chk_li {
  font-size: 13px;
  color: var(--mm-muted, #6b7280);
  flex: 1;
}

/* 기존 selec_chk + label span 스타일이 약관동의 CSS에 있으면 그대로 재사용됨.
   없을 경우 대비로 최소 보강 */
.register .selec_chk {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.register li.chk_box label span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--mm-line2, #d1d5db);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}
.register .selec_chk:checked + label span {
  background: var(--mm-primary, #2563eb);
  border-color: var(--mm-primary, #2563eb);
}
.register .selec_chk:checked + label span::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}

/* 캡챠 영역 */
.register .is_captcha_use {
  grid-column: 1 / -1;
}

fieldset.captcha {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 12px;
  align-items: center;
}

fieldset.captcha legend {
  padding: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

#captcha_img {
  width: 180px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--mm-line2, #d1d5db);
  background: #f9fafb;
  object-fit: contain;
}

#captcha_key {
  height: 44px;
}

#captcha_mp3,
#captcha_reload {
  border: 1px solid var(--mm-line2, #d1d5db);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: box-shadow .18s ease;
}

#captcha_mp3:hover,
#captcha_reload:hover {
  box-shadow: var(--mm-shadow2, 0 6px 16px rgba(17,24,39,.06));
}

#captcha_info {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--mm-muted, #6b7280);
}

/* 버튼 영역 (약관동의 페이지와 동일 톤) */
.register .btn_confirm {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.register .btn_confirm .btn_close,
.register .btn_confirm .btn_submit {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.register .btn_confirm .btn_close {
  background: #fff;
  border-color: var(--mm-line2, #d1d5db);
  color: #111827;
}
.register .btn_confirm .btn_close:hover {
  box-shadow: var(--mm-shadow2, 0 6px 16px rgba(17,24,39,.06));
}

.register .btn_confirm .btn_submit {
  background: var(--mm-primary, #2563eb);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}
.register .btn_confirm .btn_submit:hover {
  box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}
.register .btn_confirm .btn_close:active,
.register .btn_confirm .btn_submit:active {
  transform: translateY(1px);
}

/* dialog(동의 안내) - 인라인 style을 CSS로도 보강(선택) */
#consentDialog {
  padding: 0;
  border: none;
  border-radius: 12px;
}
#consentDialog::backdrop {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(5px);
}
#consentDialog .cd-card {
  min-width: 320px;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
}
#consentDialog .cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}
#consentDialog .cd-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
#consentDialog .cd-body {
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  border-top: 1px solid #e6e6e9;
  border-bottom: 1px solid #e6e6e9;
  line-height: 1.6;
  font-size: 14px;
  color: #222;
}
#consentDialog .cd-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px 16px;
}
#consentDialog .cd-actions .cd-agree {
  padding: 10px 14px;
  border: 1px solid var(--mm-primary, #2563eb);
  background: var(--mm-primary, #2563eb);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
}
#consentDialog .cd-actions .cd-close {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
  border-radius: 10px;
  font-weight: 800;
}

/* 반응형: 모바일은 1컬럼 */
@media (max-width: 768px) {
  .register {
    padding: 16px 12px 22px;
  }

  .register_form_inner ul,
  .tbl_frm01.tbl_wrap.register_form_inner ul {
    grid-template-columns: 1fr;
  }

  .register .half_input {
    grid-column: 1 / -1 !important;
  }

  fieldset.captcha {
    grid-template-columns: 1fr;
  }

  #captcha_img {
    width: 100%;
    height: 64px;
  }

  .register .btn_confirm {
    flex-direction: column;
    align-items: stretch;
  }

  .register .btn_confirm .btn_close,
  .register .btn_confirm .btn_submit {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
 * /bbs/register_result.php (회원가입 완료)
 * - scope: #reg_result.register, .btn_confirm_reg
 * ========================================================= */

#reg_result.register {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 18px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  background: var(--mm-card, #fff);
  box-shadow: var(--mm-shadow2, 0 6px 16px rgba(17,24,39,.06));
  text-align: center;
}

/* 상단 축하문구 */
#reg_result .reg_result_p {
  margin: 0;
  padding: 10px 10px 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mm-text, #111827);
}

#reg_result .reg_result_p i.fa {
  font-size: 44px;
  display: inline-block;
  margin-bottom: 10px;
  color: var(--mm-primary, #2563eb);
}

#reg_result .reg_result_p strong {
  font-size: 18px;
  font-weight: 900;
}

/* 설명 텍스트 */
#reg_result .result_txt {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fbfbfb;
  color: var(--mm-muted, #374151);
  font-size: 13.5px;
  line-height: 1.7;
}

/* 버튼 영역 */
.btn_confirm_reg {
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  max-width: 760px;
  padding: 0 18px;
}

.btn_confirm_reg .reg_btn_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--mm-primary, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
}

.btn_confirm_reg .reg_btn_submit:hover {
  box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}

.btn_confirm_reg .reg_btn_submit:active {
  transform: translateY(1px);
}

/* 로그인 메시지(상단) - 필요 시 깔끔하게 */
#hd_login_msg {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}
#hd_login_msg a {
  color: var(--mm-primary, #2563eb);
  font-weight: 800;
  text-decoration: none;
}
#hd_login_msg a:hover {
  text-decoration: underline;
}

/* 반응형 */
@media (max-width: 768px) {
  #reg_result.register {
    padding: 18px 12px 14px;
  }

  #reg_result .reg_result_p i.fa {
    font-size: 40px;
  }

  #reg_result .result_txt {
    padding: 12px 12px;
    font-size: 13px;
  }

  .btn_confirm_reg {
    padding: 0 12px;
  }

  .btn_confirm_reg .reg_btn_submit {
    width: 100%;
    min-width: 0;
  }

  #hd_login_msg {
    margin: 8px 12px 0;
  }
}


/* =========================================================
 * /bbs/login.php (로그인)
 * - scope: #mb_login.mbskin, #login_fs
 * ========================================================= */

/* 페이지 배경/정렬 */
#mb_login.mbskin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  background: var(--mm-bg, #f6f7fb);
}

/* 로그인 카드 */
#mb_login .mbskin_box {
  width: 100%;
  max-width: 420px;
  background: var(--mm-card, #fff);
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  box-shadow: var(--mm-shadow2, 0 10px 26px rgba(17, 24, 39, .08));
  padding: 22px 18px 18px;
}

/* 상단 H1(SEO용일 가능성 높음: 화면에서는 작게/숨김 느낌) */
#mb_login .mbskin_box > h1 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  line-height: 1.4;
}

/* 타이틀 라인: 로그인 + 회원가입 링크 */
#mb_login .mb_log_cate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--mm-line, #e5e7eb);
  margin-bottom: 14px;
}
#mb_login .mb_log_cate h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}
#mb_login .mb_log_cate .join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--mm-line, #e5e7eb);
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .08s ease;
}
#mb_login .mb_log_cate .join:hover {
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
}
#mb_login .mb_log_cate .join:active {
  transform: translateY(1px);
}

/* fieldset 기본 리셋 */
#login_fs {
  border: 0;
  margin: 0;
  padding: 14px 0 0;
}
#login_fs legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 입력창 */
#login_fs .frm_input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  margin-top: 10px;
}
#login_fs .frm_input::placeholder {
  color: #9ca3af;
}
#login_fs .frm_input:focus {
  border-color: var(--mm-primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}

/* 로그인 버튼 */
#login_fs .btn_submit {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--mm-primary, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(37,99,235,.18);
  transition: box-shadow .18s ease, transform .08s ease, background .18s ease;
}
#login_fs .btn_submit:hover {
  box-shadow: 0 16px 26px rgba(37,99,235,.22);
}
#login_fs .btn_submit:active {
  transform: translateY(1px);
}

/* 자동로그인/IDPW */
#login_info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--mm-line, #e5e7eb);
}

/* 체크박스(기존 selec_chk 스타일과 호환되게) */
#login_info .chk_box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}
#login_info .chk_box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mm-primary, #2563eb);
}

/* “span 박스” 기반 체크 UI가 이미 있다면 깔끔하게 */
#login_info .chk_box label {
  cursor: pointer;
  user-select: none;
}
#login_info .chk_box label span {
  display: none; /* 기존 테마에서 span으로 체크 UI를 그리면 이 줄 삭제하세요 */
}

#login_info .login_if_lpl a {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
}
#login_info .login_if_lpl a:hover {
  text-decoration: underline;
  color: var(--mm-primary, #2563eb);
}

/* 모바일 */
@media (max-width: 480px) {
  #mb_login .mbskin_box {
    padding: 18px 14px 14px;
    border-radius: 14px;
  }
  #mb_login .mbskin_box > h1 {
    font-size: 13px;
  }
  #mb_login .mb_log_cate h2 {
    font-size: 17px;
  }
}


/* =========================================================
 * /bbs/password_lost.php (비밀번호/회원정보 찾기)
 * - scope: #find_info.new_win
 * ========================================================= */

#find_info.new_win {
  padding: 28px 0;
}

#find_info .new_win_con {
  max-width: 520px;
  margin: 0 auto;
  background: var(--mm-card, #fff);
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  box-shadow: var(--mm-shadow2, 0 10px 26px rgba(17, 24, 39, .08));
  padding: 22px 18px 18px;
  box-sizing: border-box;
}

/* 제목 */
#find_info h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

/* 안내문 */
#info_fs {
  border: 0;
  margin: 0;
  padding: 0;
}
#info_fs p {
  margin: 0 0 12px;
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}

/* 이메일 입력 */
#info_fs .frm_input.full_input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}
#info_fs .frm_input.full_input::placeholder {
  color: #9ca3af;
}
#info_fs .frm_input.full_input:focus {
  border-color: var(--mm-primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}

/* 캡차 영역 */
#find_info #captcha.captcha {
  margin-top: 14px;
  border: 1px dashed var(--mm-line, #e5e7eb);
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}
#find_info #captcha legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 캡차 이미지 + 입력 + 버튼 레이아웃 */
#find_info #captcha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
#find_info #captcha_img {
  width: 100%;
  max-width: 240px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  object-fit: contain;
}

/* 캡차 입력 */
#find_info #captcha_key.captcha_box {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}
#find_info #captcha_key:focus {
  border-color: var(--mm-primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}

/* 캡차 버튼들 */
#find_info #captcha_mp3,
#find_info #captcha_reload {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: box-shadow .18s ease, transform .08s ease;
}
#find_info #captcha_mp3:hover,
#find_info #captcha_reload:hover {
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
}
#find_info #captcha_mp3:active,
#find_info #captcha_reload:active {
  transform: translateY(1px);
}

/* 버튼들을 한 줄로(PC) */
@media (min-width: 480px) {
  #find_info #captcha {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
  #find_info #captcha_img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 92px;
  }
  #find_info #captcha_key {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  #find_info #captcha_mp3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    width: 48%;
  }
  #find_info #captcha_reload {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    width: 48%;
    justify-self: end;
  }
}

/* 캡차 안내문 */
#find_info #captcha_info {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* 제출 버튼 영역 */
#find_info .win_btn {
  margin-top: 14px;
}
#find_info .win_btn .btn_submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--mm-primary, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(37,99,235,.18);
  transition: box-shadow .18s ease, transform .08s ease;
}
#find_info .win_btn .btn_submit:hover {
  box-shadow: 0 16px 26px rgba(37,99,235,.22);
}
#find_info .win_btn .btn_submit:active {
  transform: translateY(1px);
}

/* 모바일 여백 */
@media (max-width: 480px) {
  #find_info .new_win_con {
    padding: 18px 14px 14px;
  }
}

/* =========================================================
 * /bbs/member_confirm.php (회원 비밀번호 확인)
 * - scope: #mb_confirm.mbskin
 * ========================================================= */

#mb_confirm.mbskin {
  max-width: 520px;
  margin: 28px auto;
  padding: 22px 18px 18px;
  background: var(--mm-card, #fff);
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  box-shadow: var(--mm-shadow2, 0 10px 26px rgba(17, 24, 39, .08));
  box-sizing: border-box;
}

/* 페이지 타이틀(h1은 숨김 처리되는 경우가 많아서 안전하게) */
#mb_confirm.mbskin h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 안내문 */
#mb_confirm.mbskin > p {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid var(--mm-line, #e5e7eb);
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
}
#mb_confirm.mbskin > p strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-weight: 900;
}

/* 폼 */
#mb_confirm.mbskin fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 아이디 라벨/값 */
#mb_confirm.mbskin .confirm_id {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 800;
}
#mb_confirm.mbskin #mb_confirm_id {
  display: inline-block;
  font-size: 14px;
  color: #111827;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
}

/* 비밀번호 입력 */
#mb_confirm.mbskin #confirm_mb_password.frm_input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}
#mb_confirm.mbskin #confirm_mb_password::placeholder {
  color: #9ca3af;
}
#mb_confirm.mbskin #confirm_mb_password:focus {
  border-color: var(--mm-primary, #2563eb);
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}

/* 제출 버튼 */
#mb_confirm.mbskin #btn_submit.btn_submit {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--mm-primary, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(37,99,235,.18);
  transition: box-shadow .18s ease, transform .08s ease, opacity .18s ease;
}
#mb_confirm.mbskin #btn_submit.btn_submit:hover {
  box-shadow: 0 16px 26px rgba(37,99,235,.22);
}
#mb_confirm.mbskin #btn_submit.btn_submit:active {
  transform: translateY(1px);
}
#mb_confirm.mbskin #btn_submit.btn_submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

/* 모바일 패딩 */
@media (max-width: 480px) {
  #mb_confirm.mbskin {
    margin: 18px 12px;
    padding: 18px 14px 14px;
  }
}

/* =========================================================
 * /bbs/point.php (포인트 내역)
 * - scope: #point.new_win
 * ========================================================= */

#point.new_win {
  max-width: 720px;
  margin: 22px auto;
  padding: 0;
  background: var(--mm-card, #fff);
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  box-shadow: var(--mm-shadow2, 0 10px 26px rgba(17,24,39,.08));
  overflow: hidden;
  box-sizing: border-box;
}

/* 타이틀 */
#point.new_win #win_title {
  margin: 0;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 900;
  color: #111827;
  background: #fafafa;
  border-bottom: 1px solid var(--mm-line, #e5e7eb);
}

/* 컨텐츠 래퍼 */
#point.new_win .new_win_con2 {
  padding: 16px 18px 18px;
}

/* 보유포인트 요약 */
#point.new_win .point_all {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
#point.new_win .point_all .full_li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: #374151;
  font-weight: 800;
}
#point.new_win .point_all .full_li span {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

/* 리스트 */
#point.new_win .point_list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* 개별 항목 */
#point.new_win .point_list > li {
  padding: 14px 14px;
  border-top: 1px solid var(--mm-line, #e5e7eb);
}
#point.new_win .point_list > li:first-child {
  border-top: 0;
}

/* 상단: 제목/금액 */
#point.new_win .point_top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
#point.new_win .point_tit {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
}
#point.new_win .point_num {
  font-size: 14px;
  font-weight: 900;
  color: #16a34a; /* 적립 */
}

/* 날짜/추가정보 */
#point.new_win .point_date1,
#point.new_win .point_date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
#point.new_win .point_date1 i {
  opacity: .9;
}

/* 소계(요약 줄) */
#point.new_win .point_list > li.point_status {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #fafafa;
  font-size: 13px;
  color: #374151;
  font-weight: 900;
}
#point.new_win .point_list > li.point_status span {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#point.new_win .point_list > li.point_status span:nth-of-type(1) {
  color: #16a34a; /* 적립 합 */
}
#point.new_win .point_list > li.point_status span:nth-of-type(2) {
  color: #ef4444; /* 사용 합(0이어도 대비용) */
}

/* 창닫기 버튼 */
#point.new_win .btn_close {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  color: #111827;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, transform .08s ease;
}
#point.new_win .btn_close:hover {
  background: #f3f4f6;
}
#point.new_win .btn_close:active {
  transform: translateY(1px);
}

/* 모바일 */
@media (max-width: 480px) {
  #point.new_win {
    margin: 14px 12px;
  }
  #point.new_win #win_title {
    padding: 14px 14px;
    font-size: 15px;
  }
  #point.new_win .new_win_con2 {
    padding: 14px 14px 16px;
  }
  #point.new_win .btn_close {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }
}
/* 금액 부호 기반 컬러링 */
.point_num.is-plus,
[data-mm-amount].is-plus { color: #16a34a !important; font-weight: 900; }

.point_num.is-minus,
[data-mm-amount].is-minus { color: #ef4444 !important; font-weight: 900; }


/* =========================================================
 * /bbs/memo.php (쪽지함)
 * - scope: #memo_list.new_win
 * ========================================================= */

#memo_list.new_win {
  max-width: 820px;
  margin: 22px auto;
  background: #fff;
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: var(--mm-radius, 14px);
  box-shadow: var(--mm-shadow2, 0 10px 26px rgba(17,24,39,.08));
  overflow: hidden;
  box-sizing: border-box;
}

/* 타이틀 + total */
#memo_list.new_win #win_title {
  margin: 0;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  color: #111827;
  background: #fafafa;
  border-bottom: 1px solid var(--mm-line, #e5e7eb);
}
#memo_list.new_win #win_title .win_total {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

/* 컨텐츠 */
#memo_list.new_win .new_win_con2 {
  padding: 16px 18px 18px;
}

/* 탭 */
#memo_list.new_win .win_ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#memo_list.new_win .win_ul > li {
  margin: 0;
}
#memo_list.new_win .win_ul > li > a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: background .18s ease, transform .08s ease;
}
#memo_list.new_win .win_ul > li > a:hover {
  background: #f3f4f6;
}
#memo_list.new_win .win_ul > li.selected > a {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

/* 리스트 박스 */
#memo_list.new_win .memo_list {
  border: 1px solid var(--mm-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
#memo_list.new_win .memo_list > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 비어있음 */
#memo_list.new_win .memo_list .empty_table {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  background: #fff;
}

/* 안내문 */
#memo_list.new_win .win_desc {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--mm-line, #e5e7eb);
  background: #fafafa;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}
#memo_list.new_win .win_desc i {
  margin-right: 6px;
  opacity: .9;
}
#memo_list.new_win .win_desc strong {
  color: #111827;
  font-weight: 900;
}

/* 하단 버튼 */
#memo_list.new_win .win_btn {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
#memo_list.new_win .btn_close {
  min-width: 140px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--mm-line, #e5e7eb);
  background: #fff;
  color: #111827;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, transform .08s ease;
}
#memo_list.new_win .btn_close:hover {
  background: #f3f4f6;
}
#memo_list.new_win .btn_close:active {
  transform: translateY(1px);
}

/* 모바일 */
@media (max-width: 480px) {
  #memo_list.new_win { margin: 14px 12px; }
  #memo_list.new_win #win_title { padding: 14px 14px; font-size: 15px; }
  #memo_list.new_win .new_win_con2 { padding: 14px 14px 16px; }
  #memo_list.new_win .win_ul > li > a { height: 36px; padding: 0 11px; }
  #memo_list.new_win .win_btn { justify-content: stretch; }
  #memo_list.new_win .btn_close { width: 100%; }
}


/* ------------------------------------------------------------
   Scrap (scrap.php) - #scrap
   - load AFTER existing theme/skin css (and after previous overrides)
------------------------------------------------------------ */

#scrap.new_win{
  width:min(520px, calc(100% - 32px));
  margin:28px auto;
  background:var(--mm-card, #fff);
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:var(--mm-radius, 16px);
  box-shadow:var(--mm-shadow, 0 10px 30px rgba(0,0,0,.08));
  overflow:hidden;
}

/* title */
#scrap #win_title{
  margin:0;
  padding:18px 18px 14px;
  font-size:16px;
  font-weight:900;
  border-bottom:1px solid var(--mm-line, rgba(17,24,39,.10));
  background:linear-gradient(180deg, rgba(37,99,235,.07), rgba(37,99,235,0));
}

/* list reset */
#scrap > ul{
  list-style:none;
  margin:0;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* row design (데이터가 있을 때도 동일하게 카드형 “행” 스타일) */
#scrap > ul > li{
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:14px;
  background:#fff;
  padding:12px 12px;
}

/* item link layout (실 데이터 대비) */
#scrap > ul > li > a{
  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-rows:auto auto;
  gap:6px 12px;
  align-items:center;
}
#scrap > ul > li > a:hover{
  filter:saturate(110%);
}

/* common inner tokens (그누보드/스킨마다 클래스명이 달라도 커버하도록) */
#scrap .scrap_subject,
#scrap .scrap_tit,
#scrap .scrap_title{
  grid-column:1 / 2;
  font-weight:900;
  font-size:14px;
}
#scrap .scrap_board,
#scrap .scrap_cate,
#scrap .scrap_bo{
  grid-column:2 / 3;
  justify-self:end;
  font-weight:900;
  font-size:12px;
  color:var(--mm-accent, #2563eb);
  white-space:nowrap;
}
#scrap .scrap_datetime,
#scrap .scrap_date,
#scrap .scrap_time{
  grid-column:1 / -1;
  font-size:12px;
  color:var(--mm-muted, #6b7280);
}

/* empty */
#scrap .empty_li{
  text-align:center;
  color:var(--mm-muted, #6b7280);
  padding:22px 12px;
  background:rgba(17,24,39,.02);
  border-style:dashed;
}

/* bottom button area */
#scrap .win_btn{
  padding:0 18px 18px;
}
#scrap .btn_close{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

/* responsive */
@media (max-width: 520px){
  #scrap.new_win{width:calc(100% - 20px); margin:18px auto;}
  #scrap > ul{padding:14px;}
  #scrap .win_btn{padding:0 14px 14px;}
}

/* ------------------------------------------------------------
   Memo Write (memo_form.php) - #memo_write
   - load AFTER existing theme/skin css + override.css
------------------------------------------------------------ */

#memo_write.new_win{
  width:min(720px, calc(100% - 32px));
  margin:28px auto;
  background:var(--mm-card, #fff);
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:var(--mm-radius, 16px);
  box-shadow:var(--mm-shadow, 0 10px 30px rgba(0,0,0,.08));
  overflow:hidden;
}

/* title */
#memo_write #win_title{
  margin:0;
  padding:18px 18px 14px;
  font-size:16px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid var(--mm-line, rgba(17,24,39,.10));
  background:linear-gradient(180deg, rgba(37,99,235,.07), rgba(37,99,235,0));
}
#memo_write #win_title i{ color:var(--mm-accent, #2563eb); }

/* container padding */
#memo_write .new_win_con2{
  padding:16px 18px 18px;
}

/* tabs (win_ul) */
#memo_write .win_ul{
  list-style:none;
  margin:0 0 14px;
  padding:0;
  display:flex;
  gap:8px;
}
#memo_write .win_ul li{
  flex:1 1 0;
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
#memo_write .win_ul li a{
  display:flex;
  justify-content:center;
  align-items:center;
  height:40px;
  font-weight:900;
  font-size:13px;
  color:#111827;
}
#memo_write .win_ul li.selected{
  border-color:rgba(37,99,235,.35);
  background:rgba(37,99,235,.06);
}
#memo_write .win_ul li.selected a{
  color:var(--mm-accent, #2563eb);
}

/* form wrapper (form_01) */
#memo_write .form_01{
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:14px;
  background:#fff;
  padding:14px;
}

/* list reset */
#memo_write .form_01 > ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* each row block */
#memo_write .form_01 > ul > li{
  padding:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.10));
  border-radius:12px;
  background:rgba(17,24,39,.02);
}

/* inputs */
#memo_write .frm_input,
#memo_write input[type="text"],
#memo_write input[type="password"]{
  width:100%;
  height:44px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
  padding:0 12px;
  font-size:14px;
  outline:none;
}
#memo_write .frm_input:focus,
#memo_write input[type="text"]:focus,
#memo_write input[type="password"]:focus{
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* helper text */
#memo_write .frm_info{
  display:block;
  margin-top:8px;
  font-size:12px;
  color:var(--mm-muted, #6b7280);
  line-height:1.4;
}

/* textarea */
#memo_write textarea#me_memo{
  width:100%;
  min-height:160px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
  padding:12px;
  font-size:14px;
  line-height:1.55;
  outline:none;
  resize:vertical;
}
#memo_write textarea#me_memo:focus{
  border-color:rgba(37,99,235,.45);
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

/* captcha block harmonize */
#memo_write #captcha.captcha{
  margin:0;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
}
#memo_write #captcha legend{
  padding:0 6px;
  font-weight:900;
  font-size:12px;
  color:#111827;
}
#memo_write #captcha_img{
  display:inline-block;
  height:44px;
  width:auto;
  vertical-align:middle;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  border-radius:10px;
  background:#fff;
  margin-right:8px;
}
#memo_write #captcha_key{
  width:120px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  padding:0 10px;
  margin-right:6px;
}
#memo_write #captcha_mp3,
#memo_write #captcha_reload{
  height:44px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
  padding:0 10px;
  font-weight:900;
  cursor:pointer;
}
#memo_write #captcha_info{
  display:block;
  margin-top:8px;
  font-size:12px;
  color:var(--mm-muted, #6b7280);
}

/* buttons row */
#memo_write .win_btn{
  display:flex;
  gap:10px;
  margin-top:14px;
}
#memo_write .win_btn .reply_btn,
#memo_write .win_btn .btn_b02{
  flex:1 1 0;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(37,99,235,.35);
  background:var(--mm-accent, #2563eb);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
#memo_write .win_btn .btn_close{
  flex:0 0 140px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
  font-weight:900;
  cursor:pointer;
}

/* small screens */
@media (max-width: 520px){
  #memo_write.new_win{width:calc(100% - 20px); margin:18px auto;}
  #memo_write .new_win_con2{padding:14px;}
  #memo_write .win_ul{gap:6px;}
  #memo_write .win_btn{flex-direction:column;}
  #memo_write .win_btn .btn_close{flex:1 1 auto;}
}

/* ------------------------------------------------------------
   Point pagination only
   target: #point .pg_wrap / .pg / .pg_page / .pg_current
------------------------------------------------------------ */

#point .pg_wrap{
  margin:14px 0 0;
  padding:0 18px 18px;
}

#point .pg{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  align-items:center;
}

#point .pg a,
#point .pg strong.pg_current{
  min-width:40px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:#fff;
  color:#111827;
  text-decoration:none;
  box-sizing:border-box;
}

#point .pg a:hover{
  border-color:rgba(37,99,235,.35);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

#point .pg strong.pg_current{
  border-color:rgba(37,99,235,.35);
  background:rgba(37,99,235,.08);
  color:var(--mm-accent, #2563eb);
}

/* special buttons (맨끝 등) */
#point .pg a.pg_end{
  padding:0 14px;
}

/* optional: disabled / empty state safety (if theme prints spans) */
#point .pg span.pg_page,
#point .pg span.pg_current{
  min-width:40px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid var(--mm-line, rgba(17,24,39,.12));
  background:rgba(17,24,39,.03);
  color:rgba(17,24,39,.45);
  font-weight:900;
}

/* mobile */
@media (max-width:520px){
  #point .pg a,
  #point .pg strong.pg_current{
    min-width:36px;
    height:36px;
    border-radius:10px;
  }
  #point .pg{ gap:6px; }
}
