/*
  공통 헤더 모달 완전 격리본
  모든 모달 ID에 chm- 접두사를 사용하여 각 페이지의 기존 모달 HTML/JS와 충돌하지 않습니다.
*/
/*
  common-header-modals.css 교체용
  calculator 모달 디자인 기준 / 페이지별 CSS와 완전 격리
*/
/* 공통 헤더 모달 핵심 레이아웃 — 모든 페이지에서 최우선 적용 */
#chmCommonHeaderModalMount{
  position: relative;
  z-index: 2147483000;
}

#chmCommonHeaderModalMount .modal{
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  place-items: center !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 18px !important;
  z-index: 2147483000 !important;
  box-sizing: border-box !important;
}

#chmCommonHeaderModalMount .modal.show{
  display: grid !important;
}

#chmCommonHeaderModalMount .modal > .backdrop{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, .68) !important;
  backdrop-filter: blur(2px);
  z-index: 0 !important;
}

#chmCommonHeaderModalMount .modal > .dialog{
  position: relative !important;
  z-index: 1 !important;
  width: min(720px, 94vw);
  max-width: 94vw;
  max-height: 90vh;
  margin: 0 !important;
  background: #0e0b09;
  color: #f0e6d2;
  border: 1px solid #2a211a;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  box-sizing: border-box;
  overflow: hidden;
}

#chmCommonHeaderModalMount .dialog > header{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #2a211a;
}

#chmCommonHeaderModalMount .dialog > header h2{
  margin: 0;
  text-align: center;
  font-size: 21px;
  line-height: 1.35;
  color: #f0e6d2;
}

#chmCommonHeaderModalMount .contact-body, #chmCommonHeaderModalMount .usage-info-body, #chmCommonHeaderModalMount .patch-log-body, #chmCommonHeaderModalMount .one-liner-body{
  position: relative;
  min-width: 0;
  max-height: calc(90vh - 72px);
  overflow-y: auto;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  #chmCommonHeaderModalMount .modal{
    padding: 10px !important;
  }
  #chmCommonHeaderModalMount .modal > .dialog{
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 14px;
  }
  #chmCommonHeaderModalMount .dialog > header h2{
    font-size: 17px;
  }
}

/* calculator 헤더 모달 공통 스타일 */

    /* ✅ 문의/Q&A/답장/내 이용 정보 모달: 상단 X 닫기 버튼 제거
       - 하단 확인/목록/전송 버튼으로만 닫기 동작을 유도 */
    #chmCommonHeaderModalMount #chm-contactModal > .dialog > header > .close, #chmCommonHeaderModalMount #chm-faqModal > .dialog > header > .close, #chmCommonHeaderModalMount #chm-faqAnswerModal > .dialog > header > .close, #chmCommonHeaderModalMount #chm-replyModal > .dialog > header > .close, #chmCommonHeaderModalMount #chm-myUsageInfoModal > .dialog > header > .close{
      display: none !important;
    }

    /* 관리자 문의 모달 */
    #chmCommonHeaderModalMount .contact-dialog{
      width: min(620px, 94vw);
      height: auto;
      max-height: 86vh;
      padding: 14px 18px 16px;
      grid-template-rows: auto auto;
      overflow: hidden;
    }

    #chmCommonHeaderModalMount .contact-body{
      width: 100%;
      min-width: 0;
      min-height: 0;
      padding: 12px 14px 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      overflow-y: auto;
    }

    #chmCommonHeaderModalMount .contact-notice{
      font-size: 13px;
      line-height: 1.6;
      color: #f5e3c3;
      background: #1a130f;
      border: 1px solid #3a2c21;
      border-radius: 8px;
      padding: 10px 12px;
      white-space: normal;
    }

    #chmCommonHeaderModalMount .contact-textarea{
      width: 100%;
      min-width: 0;
      min-height: 140px;
      max-height: 220px;
      resize: vertical;
      border-radius: 8px;
      border: 1px solid #3a2c21;
      background: #0f1115;
      color: #f0e6d2;
      padding: 8px 10px;
      font-size: 13px;
      font-family: inherit;
    }

    #chmCommonHeaderModalMount .contact-textarea::placeholder{
      color: #6b7280;
    }


    /* Q&A 상세 화면의 목록 복귀 버튼 */
    #chmCommonHeaderModalMount .faq-back-btn{
      min-height: 32px;
      padding: 0 12px;
      border-radius: 9px;
      border: 1px solid rgba(255,255,255,.20);
      background: rgba(255,255,255,.06);
      color: #e6e9ef;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      white-space: nowrap;
      transition: background .14s ease, border-color .14s ease, transform .14s ease;
    }
    #chmCommonHeaderModalMount .faq-back-btn:hover{
      background: rgba(110,168,255,.16);
      border-color: rgba(110,168,255,.55);
      transform: translateY(-1px);
    }
    #chmCommonHeaderModalMount .faq-back-btn:active{
      transform: translateY(0) scale(.98);
    }

    /* ✅ Q&A(FAQ) 모달: 내용이 길면 본문에서 스크롤 */
    #chmCommonHeaderModalMount .dialog.faq-dialog{
      display: flex;
      /* header + body를 세로로 쌓기 */
      flex-direction: column;
      overflow: hidden;
      /* 바깥으로 삐져나가는 것 방지 */
    }

    #chmCommonHeaderModalMount .dialog.faq-dialog .contact-body{
      flex: 1;
      /* 남는 높이를 본문이 차지 */
      min-height: 0;
      /* ⭐ 이게 있어야 overflow 스크롤이 정상 작동 */
      overflow-y: auto;
      /* 내용 길면 스크롤 */
    }

    #chmCommonHeaderModalMount .reply-block{
      margin-top: 6px;
    }

    #chmCommonHeaderModalMount .reply-label{
      font-size: 12px;
      color: #9ca3af;
      margin-bottom: 2px;
    }

    #chmCommonHeaderModalMount .reply-text{
      font-size: 13px;
      line-height: 1.6;
      white-space: pre-wrap;
      border-radius: 6px;
      padding: 6px 8px;
    }

    #chmCommonHeaderModalMount .reply-text.original{
      background: #111827;
      border: 1px solid #1f2937;
    }

    #chmCommonHeaderModalMount .reply-text.answer{
      background: #0f172a;
      border: 1px solid #1d4ed8;
      min-height: 220px;
    }

    /* ✅ 관리자 답장 팝업: 버튼은 하단 고정, 답변 내용만 스크롤 */
    #chmCommonHeaderModalMount #chm-replyModal .dialog{
      display: flex;
      flex-direction: column;
      height: min(820px, 90vh);
      max-height: min(820px, 90vh);
      overflow: hidden;
    }

    #chmCommonHeaderModalMount #chm-replyModal .dialog > header{
      flex: 0 0 auto;
    }

    #chmCommonHeaderModalMount #chm-replyModal .contact-body{
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding-right: 10px;
    }

    #chmCommonHeaderModalMount #chm-replyModal .reply-text{
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    #chmCommonHeaderModalMount #chm-replyModal .reply-text.original{
      flex: 0 0 auto;
      max-height: 150px;
      overflow-y: auto;
    }

    #chmCommonHeaderModalMount #chm-replyModal .reply-block.answer-block{
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    #chmCommonHeaderModalMount #chm-replyModal .reply-text.answer{
      flex: 1;
      min-height: 160px;
      max-height: none;
      overflow-y: auto;
    }

    #chmCommonHeaderModalMount #chm-replyModal .reply-actions{
      flex: 0 0 auto;
      position: static;
      margin-top: 6px;
      padding-top: 6px;
      padding-bottom: 0;
      border-top: 1px solid rgba(255, 255, 255, 0.10);
      background: transparent;
    }

    #chmCommonHeaderModalMount .reply-actions{
      margin-top: 2px;
      /* 답변 상자에 더 붙게 해서 답변란 공간 확보 */
      display: flex;
      flex-direction: column;
      /* 윗줄: 체크박스, 아랫줄: 버튼 */
      align-items: center;
      /* 버튼을 가운데로 */
      gap: 4px;
    }

    #chmCommonHeaderModalMount .reply-dontshow{
      align-self: flex-start;
      /* 체크박스는 왼쪽으로 붙이고 */
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      color: #e5e7eb;
    }

    #chmCommonHeaderModalMount .reply-dontshow input[type="checkbox"]{
      width: 13px;
      height: 13px;
    }

    /* ✅ 관리자 답장 확인 버튼: PC/모바일 모두 조금 더 작게 */
    #chmCommonHeaderModalMount .reply-actions .ui-btnetc{
      min-width: 92px;
      padding: 8px 22px;
      margin: 2px auto 0;
      font-size: 14px;
      line-height: 1.2;
      border-radius: 6px;
    }

    #chmCommonHeaderModalMount .reply-actions .btn{
      flex: 0 0 auto;
      min-width: 72px;
      height: 30px;
      font-size: 12px;
    }

    @media (max-width: 980px) {
      /* ✅ 모바일 반응형: 문의/답변 본문 글자 크기 살짝 축소 */
      #chmCommonHeaderModalMount #chm-replyModal .reply-label{
        font-size: 11px;
        margin-bottom: 2px;
      }

      #chmCommonHeaderModalMount #chm-replyModal .reply-text{
        font-size: 12px;
        line-height: 1.55;
        padding: 6px 7px;
      }

      #chmCommonHeaderModalMount #chm-replyModal .reply-text.original{
        max-height: 125px;
      }

      #chmCommonHeaderModalMount #chm-replyModal .reply-actions{
        margin-top: 5px;
        padding-top: 5px;
      }

      #chmCommonHeaderModalMount #chm-replyModal .reply-dontshow{
        font-size: 11px;
      }

      #chmCommonHeaderModalMount #chm-replyModal .reply-actions .ui-btnetc{
        min-width: 84px;
        padding: 7px 18px;
        font-size: 13px;
      }
    }

    /* ✅ Q&A 답변 모달: 내용만큼만 높이 + 길면 내부 스크롤 */
    #chmCommonHeaderModalMount #chm-faqAnswerModal .dialog{
      width: min(960px, calc(100vw - 32px));
      max-width: 960px;
      height: auto;
      min-height: 0;
      max-height: min(700px, 90vh);
      /* 기존 의도 유지 */
      display: flex;
      /* header + body 세로 배치 */
      flex-direction: column;
    }

    #chmCommonHeaderModalMount #chm-faqAnswerModal .contact-body{
      overflow-y: auto;
      /* 내용이 길면 여기만 스크롤 */
    }

    #chmCommonHeaderModalMount #chm-faqAnswerModal #chm-faqAnswerQ, #chmCommonHeaderModalMount #chm-faqAnswerModal .faq-answer-text{
      overflow-wrap: anywhere;
      word-break: break-word;
    }





    /* ✅ PC 프론트의 모바일 반응형: 문의/Q&A/답장 모달 X 버튼을 과하지 않게 정리 */
    @media (max-width: 980px) {
      #chmCommonHeaderModalMount .contact-dialog > header .close, #chmCommonHeaderModalMount #chm-contactModal .close, #chmCommonHeaderModalMount #chm-faqModal .close, #chmCommonHeaderModalMount #chm-faqAnswerModal .close, #chmCommonHeaderModalMount #chm-replyModal .close, #chmCommonHeaderModalMount #chm-myUsageInfoModal .close{
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        background: transparent !important;
        color: rgba(233, 238, 247, 0.62) !important;
        border-radius: 999px !important;
        box-shadow: none !important;
        font-size: 0 !important;
        line-height: 1 !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
      }

      #chmCommonHeaderModalMount .contact-dialog > header .close::before, #chmCommonHeaderModalMount #chm-contactModal .close::before, #chmCommonHeaderModalMount #chm-faqModal .close::before, #chmCommonHeaderModalMount #chm-faqAnswerModal .close::before, #chmCommonHeaderModalMount #chm-replyModal .close::before, #chmCommonHeaderModalMount #chm-myUsageInfoModal .close::before{
        content: "×";
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
      }

      #chmCommonHeaderModalMount .contact-dialog > header .close:active, #chmCommonHeaderModalMount #chm-contactModal .close:active, #chmCommonHeaderModalMount #chm-faqModal .close:active, #chmCommonHeaderModalMount #chm-faqAnswerModal .close:active, #chmCommonHeaderModalMount #chm-replyModal .close:active, #chmCommonHeaderModalMount #chm-myUsageInfoModal .close:active{
        background: rgba(255, 255, 255, 0.06) !important;
        color: rgba(255, 255, 255, 0.86) !important;
        transform: scale(0.96);
      }
    }

    #chmCommonHeaderModalMount .modal{
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      z-index: 50;
    }

    #chmCommonHeaderModalMount .modal.show{
      display: grid;
    }

    #chmCommonHeaderModalMount .backdrop{
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(2px);
    }

    #chmCommonHeaderModalMount .dialog{
      position: relative;
      width: min(1100px, 95vw);
      height: min(720px, 92vh);
      background: #0e0b09;
      border: 1px solid #2a211a;
      border-radius: 18px;
      padding: 12px 14px;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 10px;
    }


    /*header와 h2는 dialog의 자손태그들이다. 태그는 쓰려면 <header> </header>을 써야한다.
//이 코드만 보고는 종속관계를 알수는 없다. header가 더 높은지, h2가 높은지 알수없다. */
    #chmCommonHeaderModalMount .dialog header{
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 6px 4px 8px;
      border-bottom: 1px solid #2a211a;
    }

    #chmCommonHeaderModalMount .dialog h2{
      margin: 0;
      margin-left: 20px;
      font-size: 23px;
      font-weight: 700;
      color: #f0e6d2;
    }

    #chmCommonHeaderModalMount #skillTreeModal .modal-foot{
      display: flex;
      gap: 8px;
    }

    #chmCommonHeaderModalMount .input{
      height: 34px;
      border-radius: 10px;
      border: 1px solid #3a2c21;
    }

.one-liner-edit-btn {
  margin-left: 10px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 107, 0.65);
  background: linear-gradient(135deg, rgba(250, 204, 107, 0.95), rgba(207, 162, 79, 0.85));
  color: #1b1207;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.one-liner-edit-btn .contact-label {
  color: #1b1207;
  font-size: 11px;
  font-weight: 900;
}

.one-liner-edit-btn:hover .contact-label {
  color: #1b1207;
}

.one-liner-edit-btn:hover {
  filter: brightness(1.08);
}

.one-liner-edit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.one-liner-dialog {
  width: min(440px, 94vw);
  height: auto;
  padding: 14px 18px 16px;
}

.one-liner-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.one-liner-access-notice {
  display: none;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 119, 119, 0.48);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 119, 119, 0.14), transparent 42%),
    rgba(71, 24, 30, 0.42);
  color: #ffe1e1;
}

.one-liner-access-notice.show { display: flex; }

.one-liner-access-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 150, 150, 0.52);
  background: rgba(255, 95, 95, 0.13);
  font-size: 17px;
}

.one-liner-access-copy { min-width: 0; }
.one-liner-access-title {
  margin-bottom: 3px;
  color: #fff0f0;
  font-size: 14px;
  font-weight: 900;
}
.one-liner-access-desc {
  color: #ffc5c5;
  font-size: 12px;
  line-height: 1.55;
  word-break: keep-all;
}

.one-liner-body.access-locked .one-liner-field {
  opacity: 0.48;
  filter: grayscale(0.35);
}
.one-liner-body.access-locked .one-liner-field input { cursor: not-allowed; }
.one-liner-body.access-locked #chm-btnOneLinerSave {
  opacity: 0.45;
  cursor: not-allowed;
}

.one-liner-guide {
  font-size: 12px;
  line-height: 1.55;
  color: #f5e3c3;
  background: rgba(207, 162, 79, 0.08);
  border: 1px solid rgba(207, 162, 79, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: normal;
}

.one-liner-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(207, 162, 79, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(250, 204, 107, 0.10), transparent 35%),
    rgba(15, 17, 21, 0.55);
}

.one-liner-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #facc6b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.one-liner-label::before {
  content: "◆";
  color: rgba(250, 204, 107, 0.85);
  font-size: 9px;
}

.one-liner-current {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(245, 227, 195, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #120d09;
  color: #f5e3c3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.one-liner-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(207, 162, 79, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #0f1115;
  color: #f5e3c3;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
}

.one-liner-input::placeholder {
  color: rgba(245, 227, 195, 0.45);
  font-weight: 500;
}

.one-liner-input:focus {
  border-color: rgba(250, 204, 107, 0.9);
  box-shadow:
    0 0 0 3px rgba(250, 204, 107, 0.16),
    0 0 14px rgba(250, 204, 107, 0.12);
}

.one-liner-help {
  color: #a7b0c0;
  font-size: 11px;
  line-height: 1.45;
}

.one-liner-cooldown {
  font-size: 12px;
  color: #a2ffcf;
  line-height: 1.5;
}

.one-liner-cooldown.locked {
  color: #ffb3b3;
}

.one-liner-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.one-liner-actions .btn {
  flex: 1;
  height: 32px;
  border-radius: 999px;
}


    /* ===== 내 이용 정보 모달 - 휘장형 프리미엄 디자인 ===== */
    .my-usage-dialog {
      --usage-accent: #74b8ff;
      --usage-accent-2: #2e6dff;
      --usage-accent-soft: rgba(116, 184, 255, 0.22);
      --usage-accent-glow: rgba(116, 184, 255, 0.28);
      --usage-metal-1: #dbeafe;
      --usage-metal-2: #93c5fd;
      --usage-ribbon-1: rgba(255, 255, 255, 0.14);
      --usage-ribbon-2: rgba(255, 255, 255, 0.06);
      width: min(760px, 96vw) !important;
      max-height: min(820px, 92vh) !important;
      overflow: hidden;
      position: relative;
      border-radius: 26px !important;
      border: 1px solid rgba(255, 255, 255, 0.16) !important;
      background:
        radial-gradient(700px 260px at 50% -8%, var(--usage-accent-soft), transparent 62%),
        radial-gradient(520px 220px at 50% 110%, rgba(255, 255, 255, 0.05), transparent 68%),
        linear-gradient(180deg, rgba(26, 31, 43, 0.985), rgba(11, 15, 24, 0.985)) !important;
      box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 34px var(--usage-accent-glow);
      isolation: isolate;
    }

    .my-usage-dialog::before {
      content: "";
      position: absolute;
      inset: 10px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.09);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
      pointer-events: none;
      z-index: 0;
    }

    .my-usage-dialog::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(460px 160px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(360px 120px at 50% 100%, rgba(255, 255, 255, 0.035), transparent 60%);
      pointer-events: none;
      z-index: 0;
      mix-blend-mode: screen;
    }

    .my-usage-header,
    .usage-info-body {
      position: relative;
      z-index: 1;
    }

    .my-usage-header {
      min-height: 108px;
      padding: 20px 22px 16px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 16px;
    }

    .my-usage-header::after {
      content: "";
      position: absolute;
      left: 26px;
      right: 26px;
      bottom: -1px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), var(--usage-accent-soft), rgba(255,255,255,0.10), transparent);
    }

    .my-usage-title-wrap {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }

    .my-usage-crest {
      position: relative;
      width: 122px;
      height: 84px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
    }

    .my-usage-crest::before,
    .my-usage-crest::after {
      content: "";
      position: absolute;
      top: 16px;
      width: 34px;
      height: 3px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
      opacity: 0.9;
    }

    .my-usage-crest::before { left: 0; }
    .my-usage-crest::after { right: 0; }

    .my-usage-crest .crest-wing {
      position: absolute;
      top: 24px;
      width: 36px;
      height: 28px;
      background: linear-gradient(135deg, var(--usage-metal-1), var(--usage-metal-2));
      clip-path: polygon(0 50%, 48% 0, 100% 16%, 72% 50%, 100% 84%, 48% 100%);
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.16) inset,
        0 4px 10px rgba(0, 0, 0, 0.22);
      opacity: 0.95;
    }

    .my-usage-crest .crest-wing.left {
      left: 12px;
      transform: scaleX(-1);
    }

    .my-usage-crest .crest-wing.right { right: 12px; }

    .my-usage-crest .crest-core {
      position: relative;
      width: 54px;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: center;
      clip-path: polygon(50% 0%, 88% 16%, 100% 46%, 82% 84%, 50% 100%, 18% 84%, 0% 46%, 12% 16%);
      background:
        radial-gradient(circle at 34% 26%, rgba(255,255,255,0.34), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)),
        linear-gradient(135deg, var(--usage-metal-1), var(--usage-metal-2) 50%, var(--usage-accent-2));
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.24) inset,
        0 10px 24px rgba(0, 0, 0, 0.26),
        0 0 18px var(--usage-accent-glow);
    }

    .my-usage-crest .crest-core::before {
      content: "";
      position: absolute;
      inset: 8px;
      clip-path: inherit;
      background: linear-gradient(180deg, rgba(9, 13, 22, 0.18), rgba(9, 13, 22, 0.55));
      border: 1px solid rgba(255,255,255,0.10);
    }

    .my-usage-crest .crest-gem {
      position: relative;
      z-index: 1;
      width: 16px;
      height: 16px;
      clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.75), transparent 42%),
        linear-gradient(135deg, #ffffff, var(--usage-accent));
      box-shadow: 0 0 12px rgba(255,255,255,0.38);
    }

    .my-usage-crest .crest-ribbon {
      position: absolute;
      left: 50%;
      bottom: 5px;
      transform: translateX(-50%);
      width: 72px;
      height: 16px;
      clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
      background: linear-gradient(180deg, var(--usage-ribbon-1), var(--usage-ribbon-2));
      box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
    }

    .my-usage-title-text {
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .my-usage-eyebrow {
      color: color-mix(in srgb, var(--usage-metal-1) 78%, white 22%);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.18em;
      margin-bottom: 5px;
      text-transform: uppercase;
    }

    .my-usage-header h2 {
      margin: 0 !important;
      font-size: 22px !important;
      font-weight: 950 !important;
      letter-spacing: -0.04em;
      color: #f8fafc;
      text-shadow: 0 0 14px rgba(255,255,255,0.08);
    }

    .my-usage-header .close {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.07) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      color: rgba(248, 250, 252, 0.92) !important;
      box-shadow: 0 8px 18px rgba(0,0,0,0.16);
    }

    .usage-info-body {
      padding: 18px 20px 20px;
      font-size: 13px;
      line-height: 1.6;
      overflow-y: auto;
      max-height: calc(min(820px, 92vh) - 108px);
    }

    .usage-info-notice {
      margin-bottom: 16px;
      padding: 13px 15px;
      border-radius: 18px;
      border: 1px solid rgba(255, 255, 255, 0.10);
      background:
        linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
      color: rgba(226, 232, 240, 0.92);
      box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255,255,255,0.03) inset;
      position: relative;
      overflow: hidden;
    }

    .usage-info-notice::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: linear-gradient(180deg, var(--usage-accent), transparent);
    }

    .usage-info-summary {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 14px;
    }

    .usage-summary-card,
    .usage-info-row {
      position: relative;
      overflow: hidden;
      clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
    }

    .usage-summary-card::before,
    .usage-info-row::before {
      content: "";
      position: absolute;
      inset: 0;
      border: 1px solid rgba(255,255,255,0.10);
      clip-path: inherit;
      pointer-events: none;
      opacity: 0.8;
    }

    .usage-summary-card {
      padding: 15px 16px;
      background:
        radial-gradient(260px 140px at 100% -8%, rgba(255,255,255,0.14), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
      box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    }

    .usage-summary-card.primary {
      border-color: rgba(255, 255, 255, 0.08);
      background:
        radial-gradient(300px 160px at 102% -8%, var(--usage-accent-soft), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
    }

    .usage-summary-card.gold {
      background:
        radial-gradient(300px 160px at 102% -8%, rgba(255,255,255,0.12), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
    }

    .usage-summary-label {
      color: rgba(226, 232, 240, 0.70);
      font-size: 12px;
      font-weight: 850;
      margin-bottom: 6px;
    }

    .usage-summary-value {
      color: color-mix(in srgb, white 75%, var(--usage-metal-1) 25%);
      font-size: 24px;
      line-height: 1.1;
      font-weight: 950;
      letter-spacing: -0.05em;
      text-shadow: 0 0 16px rgba(255,255,255,0.06);
    }

    .usage-summary-sub {
      margin-top: 7px;
      color: rgba(226, 232, 240, 0.68);
      font-size: 12px;
      font-weight: 650;
      word-break: keep-all;
    }

    .usage-info-grid {
      display: grid;
      gap: 10px;
    }

    .usage-info-row {
      display: grid;
      grid-template-columns: 142px 1fr;
      gap: 10px;
      align-items: center;
      padding: 12px 14px;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
      box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
    }

    .usage-info-row.tone-good {
      background:
        radial-gradient(220px 120px at 100% -8%, rgba(34, 197, 94, 0.12), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
    }

    .usage-info-row.tone-warn {
      background:
        radial-gradient(220px 120px at 100% -8%, rgba(250, 204, 21, 0.11), transparent 58%),
        linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.035));
    }

    .usage-info-label {
      color: rgba(226, 232, 240, 0.62);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.02em;
    }

    .usage-info-value {
      color: #f8fafc;
      white-space: pre-line;
      font-weight: 900;
      word-break: keep-all;
    }

    .usage-info-sub {
      margin-top: 4px;
      color: rgba(203, 213, 225, 0.68);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.45;
      white-space: pre-line;
    }

    .usage-extra-list {
      display: grid;
      gap: 8px;
    }

    .usage-extra-item {
      display: grid;
      gap: 3px;
    }

    .usage-extra-count {
      color: #f8fafc;
      font-weight: 900;
      line-height: 1.25;
    }

    .usage-extra-reason {
      color: rgba(203, 213, 225, 0.68);
      font-size: 12px;
      font-weight: 650;
      line-height: 1.45;
    }


    /* ===== 내 이용 정보: 등록되지 않은 일반 사용자 전용 화면 ===== */
    .my-usage-dialog.usage-theme-public {
      --usage-accent: #8fbaff;
      --usage-accent-2: #4f7fe8;
      --usage-accent-soft: rgba(110, 168, 255, 0.20);
      --usage-accent-glow: rgba(110, 168, 255, 0.18);
      --usage-metal-1: #e8f1ff;
      --usage-metal-2: #9fc2ff;
      --usage-ribbon-1: rgba(143, 186, 255, 0.20);
      --usage-ribbon-2: rgba(79, 127, 232, 0.14);
    }

    .usage-public-view {
      display: grid;
      gap: 14px;
    }

    .usage-public-hero {
      position: relative;
      overflow: hidden;
      padding: 20px;
      border-radius: 22px;
      border: 1px solid rgba(143, 186, 255, 0.24);
      background:
        radial-gradient(420px 180px at 100% 0%, rgba(110, 168, 255, 0.22), transparent 62%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
      box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255,255,255,0.035) inset;
    }

    .usage-public-badge {
      display: inline-flex;
      align-items: center;
      min-height: 25px;
      padding: 0 10px;
      margin-bottom: 10px;
      border-radius: 999px;
      border: 1px solid rgba(143, 186, 255, 0.38);
      background: rgba(110, 168, 255, 0.10);
      color: #cfe2ff;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.04em;
    }

    .usage-public-title {
      color: #f8fafc;
      font-size: 22px;
      line-height: 1.3;
      font-weight: 950;
      letter-spacing: -0.045em;
      word-break: keep-all;
    }

    .usage-public-desc {
      margin-top: 8px;
      color: rgba(226, 232, 240, 0.74);
      font-size: 13px;
      line-height: 1.65;
      font-weight: 650;
      word-break: keep-all;
    }

    .usage-public-account {
      margin-top: 12px;
      padding-top: 11px;
      border-top: 1px solid rgba(255,255,255,0.10);
      color: rgba(203, 213, 225, 0.66);
      font-size: 12px;
      overflow-wrap: anywhere;
    }

    .usage-public-benefit-title {
      margin: 2px 2px -2px;
      color: #e8f1ff;
      font-size: 13px;
      font-weight: 950;
    }

    .usage-public-benefits {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .usage-public-benefit {
      min-height: 92px;
      padding: 14px;
      border-radius: 17px;
      border: 1px solid rgba(255,255,255,0.10);
      background:
        linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.028));
      box-shadow: 0 10px 22px rgba(0,0,0,0.15);
    }

    .usage-public-benefit-icon {
      margin-bottom: 7px;
      color: #9fc2ff;
      font-size: 17px;
      line-height: 1;
    }

    .usage-public-benefit strong {
      display: block;
      color: #f8fafc;
      font-size: 13px;
      font-weight: 950;
      line-height: 1.35;
    }

    .usage-public-benefit span {
      display: block;
      margin-top: 4px;
      color: rgba(203, 213, 225, 0.64);
      font-size: 11px;
      line-height: 1.45;
      word-break: keep-all;
    }

    .usage-public-join {
      padding: 17px 18px;
      border-radius: 20px;
      border: 1px solid rgba(250, 204, 107, 0.34);
      background:
        radial-gradient(320px 130px at 100% 0%, rgba(250, 204, 107, 0.16), transparent 62%),
        linear-gradient(135deg, rgba(250,204,107,0.09), rgba(255,255,255,0.035));
      text-align: center;
    }

    .usage-public-join strong {
      display: block;
      color: #ffe8a3;
      font-size: 16px;
      font-weight: 950;
      line-height: 1.4;
      word-break: keep-all;
    }

    .usage-public-join p {
      margin: 6px 0 13px;
      color: rgba(226, 232, 240, 0.72);
      font-size: 12px;
      line-height: 1.55;
      word-break: keep-all;
    }

    .usage-public-join-btn {
      min-width: 150px;
      height: 38px;
      padding: 0 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      border: 1px solid rgba(255, 232, 163, 0.72);
      background: linear-gradient(135deg, #facc6b, #cfa24f);
      color: #1b1207;
      font-size: 13px;
      font-weight: 950;
      text-decoration: none;
      box-shadow:
        0 8px 20px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.38);
      transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
    }

    .usage-public-join-btn:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
      box-shadow:
        0 10px 24px rgba(0,0,0,0.34),
        0 0 0 3px rgba(250,204,107,0.12);
    }

    @media (max-width: 560px) {
      .usage-public-hero {
        padding: 17px;
      }

      .usage-public-title {
        font-size: 19px;
      }

      .usage-public-benefits {
        grid-template-columns: 1fr;
      }

      .usage-public-benefit {
        min-height: 0;
      }
    }

    .my-usage-dialog.usage-theme-senior {
      --usage-accent: #f6d36b;
      --usage-accent-2: #b9851e;
      --usage-accent-soft: rgba(246, 211, 107, 0.24);
      --usage-accent-glow: rgba(246, 211, 107, 0.24);
      --usage-metal-1: #fff6cf;
      --usage-metal-2: #f7c95b;
      --usage-ribbon-1: rgba(255, 236, 179, 0.22);
      --usage-ribbon-2: rgba(181, 133, 30, 0.18);
    }

    .my-usage-dialog.usage-theme-lead {
      --usage-accent: #dce7f6;
      --usage-accent-2: #9aa7bc;
      --usage-accent-soft: rgba(220, 231, 246, 0.20);
      --usage-accent-glow: rgba(220, 231, 246, 0.18);
      --usage-metal-1: #f8fbff;
      --usage-metal-2: #bcc8d7;
      --usage-ribbon-1: rgba(236, 242, 248, 0.18);
      --usage-ribbon-2: rgba(154, 167, 188, 0.18);
    }

    .my-usage-dialog.usage-theme-junior {
      --usage-accent: #d79d67;
      --usage-accent-2: #935d31;
      --usage-accent-soft: rgba(215, 157, 103, 0.20);
      --usage-accent-glow: rgba(215, 157, 103, 0.18);
      --usage-metal-1: #f8dfc8;
      --usage-metal-2: #c67d44;
      --usage-ribbon-1: rgba(248, 223, 200, 0.18);
      --usage-ribbon-2: rgba(147, 93, 49, 0.18);
    }

    .my-usage-dialog.usage-theme-senior .usage-summary-value,
    .my-usage-dialog.usage-theme-lead .usage-summary-value,
    .my-usage-dialog.usage-theme-junior .usage-summary-value {
      color: color-mix(in srgb, white 70%, var(--usage-metal-1) 30%);
    }

    @media (max-width: 760px) {
      .my-usage-dialog {
        width: min(96vw, 680px) !important;
      }

      .my-usage-header {
        min-height: 96px;
        padding: 16px 16px 14px !important;
      }

      .my-usage-crest {
        width: 104px;
        height: 76px;
      }

      .usage-info-body {
        padding: 14px 14px 16px;
      }

      .usage-info-summary {
        grid-template-columns: 1fr;
      }

      .usage-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }
    }

    @media (max-width: 560px) {
      .my-usage-title-wrap {
        gap: 12px;
      }

      .my-usage-header h2 {
        font-size: 20px !important;
      }

      .my-usage-eyebrow {
        letter-spacing: 0.12em;
      }
    }

  

    /* ===== 내 이용 정보 휘장 - 직급별 형태 차별화 ===== */
    .my-usage-dialog .my-usage-crest { overflow: visible; }
    .my-usage-dialog .crest-crown,
    .my-usage-dialog .crest-plate { position: absolute; display: none; pointer-events: none; }

    /* 전임: 기본 심볼형 */
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .my-usage-crest {
      width: 78px; height: 64px;
    }
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-wing,
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-ribbon,
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-crown,
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-plate {
      display: none !important;
    }
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-core {
      width: 46px; height: 46px;
      clip-path: polygon(50% 0%, 88% 18%, 100% 50%, 82% 86%, 50% 100%, 18% 86%, 0% 50%, 12% 18%);
      background: radial-gradient(circle at 34% 25%, rgba(255,255,255,0.34), transparent 34%), linear-gradient(135deg, #dbeafe, #60a5fa 58%, #1d4ed8);
    }
    .my-usage-dialog:not(.usage-theme-senior):not(.usage-theme-lead):not(.usage-theme-junior) .crest-gem {
      width: 12px; height: 12px; border-radius: 50%; clip-path: none;
      background: radial-gradient(circle at 30% 30%, #ffffff, #93c5fd 62%, #2563eb);
    }

    /* 수석: 왕관 + 대형 날개 + 보석 + 긴 리본 */
    .my-usage-dialog.usage-theme-senior .my-usage-crest { width: 150px; height: 104px; }
    .my-usage-dialog.usage-theme-senior .crest-crown {
      display: block; left: 50%; top: -1px; transform: translateX(-50%);
      width: 56px; height: 28px;
      clip-path: polygon(0 100%, 0 44%, 18% 66%, 30% 8%, 50% 48%, 70% 8%, 82% 66%, 100% 44%, 100% 100%);
      background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.85) 0 8%, transparent 9%), linear-gradient(180deg, #fff4bf 0%, #f6d36b 42%, #b9851e 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.30) inset, 0 8px 18px rgba(0,0,0,0.24), 0 0 18px rgba(246,211,107,0.35);
      z-index: 4;
    }
    .my-usage-dialog.usage-theme-senior .crest-wing {
      display: block; top: 38px; width: 52px; height: 38px;
      clip-path: polygon(0 50%, 20% 14%, 62% 0, 100% 14%, 75% 50%, 100% 86%, 62% 100%, 20% 86%);
      background: linear-gradient(135deg, #fff7d6 0%, #f7c95b 48%, #9b6a16 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.22) inset, 0 10px 20px rgba(0,0,0,0.26), 0 0 16px rgba(246,211,107,0.22);
    }
    .my-usage-dialog.usage-theme-senior .crest-wing.left { left: 4px; transform: scaleX(-1) rotate(-5deg); }
    .my-usage-dialog.usage-theme-senior .crest-wing.right { right: 4px; transform: rotate(-5deg); }
    .my-usage-dialog.usage-theme-senior .crest-core {
      width: 66px; height: 66px; margin-top: 20px;
      clip-path: polygon(50% 0%, 88% 14%, 100% 44%, 86% 78%, 50% 100%, 14% 78%, 0% 44%, 12% 14%);
      background: radial-gradient(circle at 34% 22%, rgba(255,255,255,0.46), transparent 32%), linear-gradient(180deg, #fff6cf 0%, #f7c95b 46%, #b9851e 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.30) inset, 0 14px 30px rgba(0,0,0,0.30), 0 0 24px rgba(246,211,107,0.34);
      z-index: 3;
    }
    .my-usage-dialog.usage-theme-senior .crest-core::before { inset: 9px; clip-path: polygon(50% 0%, 88% 14%, 100% 44%, 86% 78%, 50% 100%, 14% 78%, 0% 44%, 12% 14%); }
    .my-usage-dialog.usage-theme-senior .crest-gem {
      width: 18px; height: 18px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      background: radial-gradient(circle at 30% 28%, #ffffff, transparent 38%), linear-gradient(135deg, #fff7d6, #f6d36b 55%, #d97706);
    }
    .my-usage-dialog.usage-theme-senior .crest-ribbon {
      display: block; bottom: 0; width: 96px; height: 18px;
      background: linear-gradient(180deg, rgba(255,244,191,0.34), rgba(185,133,30,0.22));
    }

    /* 책임: 방패형 휘장 + 중형 은빛 금속판 */
    .my-usage-dialog.usage-theme-lead .my-usage-crest { width: 124px; height: 92px; }
    .my-usage-dialog.usage-theme-lead .crest-crown { display: none !important; }
    .my-usage-dialog.usage-theme-lead .crest-wing {
      display: block; top: 31px; width: 34px; height: 42px;
      clip-path: polygon(0 50%, 22% 4%, 100% 18%, 78% 50%, 100% 82%, 22% 96%);
      background: linear-gradient(135deg, #f8fbff 0%, #bcc8d7 52%, #7c8798 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.20) inset, 0 8px 18px rgba(0,0,0,0.24);
    }
    .my-usage-dialog.usage-theme-lead .crest-wing.left { left: 12px; transform: scaleX(-1); }
    .my-usage-dialog.usage-theme-lead .crest-wing.right { right: 12px; }
    .my-usage-dialog.usage-theme-lead .crest-core {
      width: 60px; height: 68px;
      clip-path: polygon(50% 0%, 92% 18%, 82% 76%, 50% 100%, 18% 76%, 8% 18%);
      background: radial-gradient(circle at 34% 22%, rgba(255,255,255,0.42), transparent 33%), linear-gradient(180deg, #f8fbff 0%, #bcc8d7 50%, #7c8798 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.28) inset, 0 13px 28px rgba(0,0,0,0.28), 0 0 18px rgba(220,231,246,0.20);
      z-index: 3;
    }
    .my-usage-dialog.usage-theme-lead .crest-core::before { inset: 8px; clip-path: polygon(50% 0%, 92% 18%, 82% 76%, 50% 100%, 18% 76%, 8% 18%); }
    .my-usage-dialog.usage-theme-lead .crest-gem {
      width: 17px; height: 17px; border-radius: 50%; clip-path: none;
      background: radial-gradient(circle at 30% 30%, #ffffff, #dce7f6 55%, #9aa7bc);
    }
    .my-usage-dialog.usage-theme-lead .crest-ribbon {
      display: block; bottom: 4px; width: 76px; height: 14px;
      background: linear-gradient(180deg, rgba(236,242,248,0.24), rgba(154,167,188,0.18));
    }

    /* 선임: 동빛 메달형 플러스 회원 배지 */
    .my-usage-dialog.usage-theme-junior .my-usage-crest { width: 100px; height: 82px; }
    .my-usage-dialog.usage-theme-junior .crest-crown { display: none !important; }
    .my-usage-dialog.usage-theme-junior .crest-wing {
      display: block; top: 33px; width: 24px; height: 24px;
      clip-path: polygon(0 50%, 42% 0, 100% 20%, 70% 50%, 100% 80%, 42% 100%);
      background: linear-gradient(135deg, #f8dfc8 0%, #c67d44 58%, #7a421f 100%);
      opacity: 0.92;
    }
    .my-usage-dialog.usage-theme-junior .crest-wing.left { left: 14px; transform: scaleX(-1); }
    .my-usage-dialog.usage-theme-junior .crest-wing.right { right: 14px; }
    .my-usage-dialog.usage-theme-junior .crest-core {
      width: 54px; height: 54px; border-radius: 50%; clip-path: none;
      background: radial-gradient(circle at 34% 22%, rgba(255,255,255,0.38), transparent 33%), linear-gradient(180deg, #f8dfc8 0%, #c67d44 56%, #7a421f 100%);
      box-shadow: 0 0 0 1px rgba(255,255,255,0.24) inset, 0 12px 24px rgba(0,0,0,0.26), 0 0 14px rgba(215,157,103,0.20);
      z-index: 3;
    }
    .my-usage-dialog.usage-theme-junior .crest-core::before { inset: 8px; border-radius: 50%; clip-path: none; }
    .my-usage-dialog.usage-theme-junior .crest-gem {
      width: 14px; height: 14px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      background: radial-gradient(circle at 30% 30%, #ffffff, #d79d67 60%, #935d31);
    }
    .my-usage-dialog.usage-theme-junior .crest-plate {
      display: block; left: 50%; bottom: 4px; transform: translateX(-50%);
      width: 58px; height: 12px; border-radius: 999px;
      background: linear-gradient(180deg, rgba(248,223,200,0.22), rgba(147,93,49,0.18));
      box-shadow: 0 0 0 1px rgba(255,255,255,0.10) inset;
    }
    .my-usage-dialog.usage-theme-junior .crest-ribbon { display: none !important; }

    @media (max-width: 760px) {
      .my-usage-dialog.usage-theme-senior .my-usage-crest { width: 126px; height: 92px; }
      .my-usage-dialog.usage-theme-senior .crest-wing { width: 44px; height: 32px; }
      .my-usage-dialog.usage-theme-senior .crest-core { width: 58px; height: 58px; }
      .my-usage-dialog.usage-theme-lead .my-usage-crest { width: 110px; }
      .my-usage-dialog.usage-theme-junior .my-usage-crest { width: 92px; }
    }


    /* ✅ 문의하기 모달 최종 크기 보정
       공통 .dialog 규칙보다 높은 우선순위로 실제 문의 모달에만 적용 */
    #chm-contactModal .dialog.contact-dialog {
      width: min(520px, calc(100vw - 28px));
      height: auto;
      max-height: calc(100vh - 32px);
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 12px 14px 14px;
      overflow: hidden;
    }

    #chm-contactModal .dialog.contact-dialog > header {
      flex: 0 0 auto;
      padding: 4px 2px 9px;
    }

    #chm-contactModal .dialog.contact-dialog h2 {
      margin-left: 0;
      font-size: 19px;
      text-align: center;
    }

    #chm-contactModal .contact-body {
      flex: 0 1 auto;
      padding: 10px 4px 2px;
      gap: 9px;
      overflow-y: auto;
    }

    #chm-contactModal .contact-notice {
      padding: 9px 10px;
      font-size: 12px;
      line-height: 1.5;
    }


    /* 메인 공지의 계산기 사용법 영상 링크 */
    .notice-list .guide-video-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 23px;
      margin: 0 3px;
      padding: 1px 8px;
      border: 1px solid rgba(239, 68, 68, .62);
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(239, 68, 68, .20), rgba(185, 28, 28, .12));
      color: #ffb4b4;
      font-size: .92em;
      font-weight: 900;
      line-height: 1;
      text-decoration: none;
      vertical-align: middle;
      transform: translateY(-1px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 0 1px rgba(239,68,68,.04);
      transition: transform .14s ease, background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
    }

    .notice-list .guide-video-link::before {
      content: "▶";
      margin-right: 5px;
      font-size: .78em;
    }

    .notice-list .guide-video-link:hover {
      color: #fff;
      border-color: rgba(248, 113, 113, .95);
      background: linear-gradient(180deg, rgba(239, 68, 68, .34), rgba(185, 28, 28, .20));
      box-shadow: 0 0 0 3px rgba(239,68,68,.10), inset 0 1px 0 rgba(255,255,255,.16);
      transform: translateY(-1px);
      text-decoration: none;
    }

    .notice-list .guide-video-link:active {
      transform: translateY(-1px) scale(.97);
    }

    /* 문의 모달의 오픈채팅 링크: 어두운 배경에서도 선명하게 표시 */
    #chm-contactModal .contact-notice a {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      margin: 0 3px;
      padding: 1px 8px;
      border: 1px solid rgba(250, 204, 21, 0.72);
      border-radius: 999px;
      background: rgba(250, 204, 21, 0.14);
      color: #ffe66d;
      font-weight: 900;
      text-decoration: none;
      vertical-align: middle;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
      transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
    }

    #chm-contactModal .contact-notice a:hover {
      background: rgba(250, 204, 21, 0.24);
      border-color: #ffe66d;
      color: #fff3a3;
      transform: translateY(-1px);
      text-decoration: none;
    }

    #chm-contactModal .contact-notice a:active {
      transform: translateY(0) scale(.98);
    }

    #chm-contactModal .contact-guest-field {
      margin: 6px 0 2px;
    }

    #chm-contactModal .contact-textarea {
      min-height: 120px;
      height: 120px;
      max-height: 180px;
    }

    #chm-contactModal .contact-actions {
      margin-top: 1px;
    }

    @media (max-width: 560px) {
      #chm-contactModal .dialog.contact-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 10px 11px 12px;
      }
      #chm-contactModal .contact-textarea {
        min-height: 110px;
        height: 110px;
      }
     }

/* ===== 공통 Q&A 목록 디자인 ===== */
#chmCommonHeaderModalMount .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

#chmCommonHeaderModalMount .faq-q-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(207, 162, 79, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #17120f;
  color: #f0e6d2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: normal;
  word-break: keep-all;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

#chmCommonHeaderModalMount .faq-q-btn::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border: 1px solid rgba(207, 162, 79, 0.58);
  border-radius: 7px;
  background: rgba(207, 162, 79, 0.12);
  color: #ffe19a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

#chmCommonHeaderModalMount .faq-q-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(207, 162, 79, 0.72);
  background:
    linear-gradient(180deg, rgba(207, 162, 79, 0.13), rgba(207, 162, 79, 0.055)),
    #17120f;
  color: #fff7df;
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(207, 162, 79, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#chmCommonHeaderModalMount .faq-q-btn:active {
  transform: translateY(0) scale(0.99);
}

#chmCommonHeaderModalMount #chm-faqAnswerQ {
  margin: 0 0 12px !important;
  padding: 12px 14px;
  border: 1px solid rgba(207, 162, 79, 0.32);
  border-radius: 10px;
  background: rgba(207, 162, 79, 0.08);
  color: #ffe8a3;
  font-size: 14px;
  font-weight: 850 !important;
  line-height: 1.55;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-faqAnswerA {
  padding: 14px 15px;
  border: 1px solid #3a2c21;
  border-radius: 10px;
  background: #0f1115;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.75;
  white-space: normal;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-faqAnswerA > div + div {
  margin-top: 6px;
}

@media (max-width: 560px) {
  #chmCommonHeaderModalMount .faq-q-btn {
    min-height: 42px;
    padding: 10px 11px;
    font-size: 12px;
  }

  #chmCommonHeaderModalMount .faq-q-btn::before {
    width: 20px;
    height: 20px;
    margin-right: 7px;
  }
}


/* ===== 공통 Q&A 답변 이미지 ===== */
#chmCommonHeaderModalMount .faq-answer-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
  align-items: start;
}

#chmCommonHeaderModalMount .faq-answer-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(5, 8, 13, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

@media (max-width: 760px) {
  #chmCommonHeaderModalMount .faq-answer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  #chmCommonHeaderModalMount #chm-faqAnswerModal .dialog {
    width: calc(100vw - 18px);
  }

  #chmCommonHeaderModalMount .faq-answer-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

#chmCommonHeaderModalMount .faq-answer-image.is-error {
  min-height: 58px;
  padding: 12px;
  color: #ffb4b4;
  font-size: 12px;
}

#chmCommonHeaderModalMount .faq-answer-line {
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.72;
}

#chmCommonHeaderModalMount .faq-answer-spacer {
  height: 10px;
}

@media (max-width: 640px) {
  #chmCommonHeaderModalMount .faq-answer-gallery {
    gap: 10px;
  }

  #chmCommonHeaderModalMount .faq-answer-image {
    border-radius: 9px;
    max-height: 65vh;
  }
}

/* ===== 문의하기 모달 완전 공통화 보정 ===== */
#chmCommonHeaderModalMount #chm-contactModal .dialog.contact-dialog {
  width: min(520px, calc(100vw - 28px)) !important;
  height: auto !important;
  max-height: calc(100vh - 32px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 12px 14px 14px !important;
  overflow: hidden !important;
}

#chmCommonHeaderModalMount #chm-contactModal .dialog.contact-dialog > header {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 4px 2px 9px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

#chmCommonHeaderModalMount #chm-contactModal .dialog.contact-dialog > header h2 {
  margin: 0 !important;
  color: #f4f6fa;
  font-size: 19px !important;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.03em;
  text-align: center !important;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-body {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 10px 4px 2px !important;
  gap: 9px !important;
  overflow-y: auto;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-notice {
  margin: 0;
  padding: 9px 10px !important;
  border: 1px solid #3a2c21;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(58,44,33,.42), rgba(26,19,15,.84));
  color: #f5e3c3;
  font-size: 12px !important;
  line-height: 1.58 !important;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-notice a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 1px 3px;
  padding: 1px 8px;
  border: 1px solid rgba(250,204,21,.72);
  border-radius: 999px;
  background: rgba(250,204,21,.14);
  color: #ffe66d;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-notice a:hover {
  background: rgba(250,204,21,.24);
  border-color: #ffe66d;
  color: #fff3a3;
  transform: translateY(-1px);
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-field {
  width: 100%;
  margin: 3px 0 1px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-field > label {
  display: block;
  margin: 0 0 6px;
  color: #e8edf5;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  outline: none;
  background: #0f1115;
  color: #f2f5f9;
  font: inherit;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-input::placeholder {
  color: #747d8b;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-input:focus {
  border-color: rgba(110,168,255,.82);
  background: #111722;
  box-shadow: 0 0 0 3px rgba(110,168,255,.13);
}

#chmCommonHeaderModalMount #chm-contactModal .contact-guest-note {
  margin-top: 6px;
  color: #919aaa;
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 120px !important;
  height: 120px !important;
  max-height: 180px !important;
  margin: 0;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #3a2c21;
  border-radius: 8px;
  outline: none;
  background: #0f1115;
  color: #f0e6d2;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-textarea:focus {
  border-color: rgba(207,162,79,.78);
  background: #121419;
  box-shadow: 0 0 0 3px rgba(207,162,79,.12);
}

#chmCommonHeaderModalMount #chm-contactModal .contact-textarea::placeholder {
  color: #747d8b;
  opacity: 1;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 1px;
  padding-top: 2px;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-actions .ui-btnetc,
#chmCommonHeaderModalMount #chm-contactModal #chm-btnContactSend {
  min-width: 118px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(110,168,255,.62);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(110,168,255,.22), rgba(110,168,255,.10));
  color: #edf5ff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 5px 14px rgba(0,0,0,.18);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}

#chmCommonHeaderModalMount #chm-contactModal .contact-actions .ui-btnetc:hover,
#chmCommonHeaderModalMount #chm-contactModal #chm-btnContactSend:hover {
  transform: translateY(-1px);
  border-color: rgba(143,186,255,.94);
  background: linear-gradient(180deg, rgba(110,168,255,.33), rgba(110,168,255,.15));
  box-shadow: 0 0 0 3px rgba(110,168,255,.11), inset 0 1px 0 rgba(255,255,255,.15);
}

#chmCommonHeaderModalMount #chm-contactModal .contact-actions .ui-btnetc:active,
#chmCommonHeaderModalMount #chm-contactModal #chm-btnContactSend:active {
  transform: translateY(0) scale(.98);
}

@media (max-width: 560px) {
  #chmCommonHeaderModalMount #chm-contactModal .dialog.contact-dialog {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    padding: 10px 11px 12px !important;
  }

  #chmCommonHeaderModalMount #chm-contactModal .dialog.contact-dialog > header h2 {
    font-size: 17px !important;
  }

  #chmCommonHeaderModalMount #chm-contactModal .contact-notice {
    font-size: 11px !important;
  }

  #chmCommonHeaderModalMount #chm-contactModal .contact-textarea {
    min-height: 110px !important;
    height: 110px !important;
  }

  #chmCommonHeaderModalMount #chm-contactModal .contact-actions .ui-btnetc,
  #chmCommonHeaderModalMount #chm-contactModal #chm-btnContactSend {
    width: 100%;
  }
}


/* 내 정보 - 닉네임 행 높이/정렬 보정 */
.usage-board-nickname-row {
  min-height: 0;
  padding-top: 9px;
  padding-bottom: 9px;
  align-items: center;
}

.usage-board-nickname-row .usage-info-value {
  min-width: 0;
  white-space: normal;
  text-align: left;
}

.usage-board-nickname-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 28px;
}

.usage-board-nickname-text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
  text-align: left;
}

.usage-board-nickname-edit-btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.44);
  color: rgba(241, 245, 249, 0.9);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.usage-board-nickname-edit-btn:hover {
  border-color: rgba(203, 213, 225, 0.58);
  background: rgba(51, 65, 85, 0.54);
  color: #fff;
}

.usage-board-nickname-row .usage-info-sub {
  margin-top: 3px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .usage-board-nickname-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .usage-board-nickname-line {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

@media (max-width: 460px) {
  .usage-board-nickname-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* 내 정보 - 닉네임 변경 모달 */
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog {
  width: min(460px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(180deg, #171b24 0%, #10131a 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog > header {
  min-height: 62px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.34);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog > header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog > header .close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog > header .close:hover {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.22);
  color: #fff;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-guide {
  padding: 11px 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.10);
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.65;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-field > label {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  outline: none;
  background: rgba(2, 6, 23, 0.54);
  color: #f8fafc;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-input::placeholder {
  color: #64748b;
  font-weight: 600;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-input:hover {
  border-color: rgba(148, 163, 184, 0.46);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-input:focus {
  border-color: rgba(96, 165, 250, 0.86);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-help {
  color: #8793a5;
  font-size: 11px;
  line-height: 1.55;
  word-break: keep-all;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-status {
  min-height: 18px;
  margin-top: -3px;
  padding: 0 2px;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-status:empty {
  display: none;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 3px;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn {
  min-width: 76px;
  height: 36px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  background: rgba(51, 65, 85, 0.42);
  color: #dbe4ef;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  transition: transform .12s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn:hover {
  border-color: rgba(203, 213, 225, 0.42);
  background: rgba(71, 85, 105, 0.58);
  color: #fff;
  transform: translateY(-1px);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn.main {
  border-color: rgba(96, 165, 250, 0.56);
  background: linear-gradient(180deg, #3478d4 0%, #245da8 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn.main:hover {
  border-color: rgba(147, 197, 253, 0.82);
  background: linear-gradient(180deg, #4388e4 0%, #2b68ba 100%);
}

#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

@media (max-width: 520px) {
  #chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog {
    width: calc(100vw - 20px);
    border-radius: 14px;
  }

  #chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-dialog > header {
    min-height: 56px;
    padding: 0 14px;
  }

  #chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-body {
    padding: 15px;
    gap: 12px;
  }

  #chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-actions .btn {
    width: 100%;
  }
}


/* 닉네임 이용 규칙 및 마지막 변경 시각 */
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(132, 170, 222, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(25, 39, 62, 0.78), rgba(15, 25, 42, 0.82));
  color: rgba(226, 235, 248, 0.82);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules p {
  position: relative;
  margin: 3px 0;
  padding-left: 12px;
  word-break: keep-all;
}
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules .nickname-rule-gap {
  margin-top: 12px;
}
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules p::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 0.72em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(146, 190, 248, 0.8);
}
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules .board-nickname-edit-last {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(132, 170, 222, 0.16);
  color: #bcd7fb;
  font-weight: 700;
}
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-rules .board-nickname-edit-last::before { display:none; }
#chmCommonHeaderModalMount #chm-boardNicknameEditModal .board-nickname-edit-input:disabled {
  opacity: .62;
  cursor: not-allowed;
  background: rgba(12, 20, 34, .72);
}
