/* 다이아 서브페이지 공통 최신 상단 헤더 (dia.html과 동일) */
body, body.dia-page {
  padding-top: 0 !important;
}
header.dia-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  background: #f5e5e2 !important;
  border-bottom: 1px solid #eccfc9 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px;
  height: 62px;
}
header.dia-header .brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}
header.dia-header .brand-logo {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: none !important;
  font-family: Arial, 'Nanum Barun Gothic', "맑은 고딕", 돋움, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  line-height: 1.2;
}
header.dia-header .brand-sub { display: none !important; }

header.dia-header .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
header.dia-header .nav-links a.nav-mypumasi {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #3a232b;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 18px;
  background: transparent;
  border: 0;
}
header.dia-header .nav-links a.nav-mypumasi:hover { color: #b54567; }
@media (min-width: 881px) {
  header.dia-header .nav-links a.nav-dia { display: none !important; }
  header.dia-header .nav-mobile-links { display: none !important; }
  #moCatDrawer { display: none !important; }
}
@media (max-width: 880px) {
  header.dia-header {
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 14px !important;
  }
  header.dia-header .brand-logo {
    font-size: 15px !important;
  }
  header.dia-header .nav-links { display: none !important; }
  header.dia-header .nav-mobile-links {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }
}

#moCatBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid #dcc4bf !important;
  background: #fff !important;
  color: #323232 !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

#moCatDrawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(25, 18, 22, .46);
  justify-content: flex-end;
}
#moCatDrawer.is-open { display: flex; }
#moCatDrawer .mcd-panel {
  width: 280px;
  max-width: 84vw;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .16);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 14px 28px;
  box-sizing: border-box;
}
#moCatDrawer .mcd-top {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2e4e9;
  margin-bottom: 12px;
}
#moCatDrawer .mcd-title { font-size: 15px; font-weight: 800; color: #2b1d22; }
#moCatDrawer .mcd-x {
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #8c7a82;
  cursor: pointer;
  padding: 0 4px;
}
#moCatDrawer .mcd-auth { display: flex; gap: 8px; margin-bottom: 14px; }
#moCatDrawer .mcd-auth a,
#moCatDrawer .mcd-auth button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #ead4dc;
  background: #fff7fa;
  color: #b54567;
  cursor: pointer;
  font-family: inherit;
}
#moCatDrawer .mcd-auth a.primary {
  background: #c9707f;
  border-color: #c9707f;
  color: #fff;
}
#moCatDrawer .mcd-list { display: flex; flex-direction: column; gap: 4px; }
#moCatDrawer .mcd-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #3a232b;
  text-decoration: none;
}
#moCatDrawer .mcd-link:hover,
#moCatDrawer .mcd-link.is-active {
  background: #fdf1f4;
  color: #d55576;
  font-weight: 700;
}
#moCatDrawer .mcd-sub-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #9c868f;
  padding: 10px 12px 4px;
}
#moCatDrawer .mcd-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  border-left: 2px solid #f4dde5;
  margin: 2px 0 6px 12px;
}
#moCatDrawer .mcd-sub a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5c4950;
  text-decoration: none;
}
#moCatDrawer .mcd-sub a:hover,
#moCatDrawer .mcd-sub a.is-active {
  background: #fdf1f4;
  color: #d55576;
  font-weight: 700;
}
#moCatDrawer .mcd-sep { height: 1px; background: #f2e4e9; margin: 10px 4px; }

#diaInviteModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(25, 18, 22, .46);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#diaInviteModal.is-open { display: flex; }
#diaInviteModal .dim-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
  text-align: center;
}
#diaInviteModal .dim-x {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 22px;
  color: #8c7a82;
  cursor: pointer;
  line-height: 1;
}
#diaInviteModal .dim-t { font-size: 17px; font-weight: 800; color: #2b1d22; margin: 0 0 8px; }
#diaInviteModal .dim-s { font-size: 13px; color: #6e5a62; margin: 0 0 16px; line-height: 1.5; }
#diaInviteModal .dim-code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff7fa;
  border: 1.5px solid #efc6d3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
#diaInviteModal .dim-code {
  font-family: ui-monospace, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #2b1d22;
}
#diaInviteModal .dim-copy {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e6b8c6;
  background: #fff;
  color: #b54567;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
#diaInviteModal .dim-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border-radius: 11px;
  background: #c9707f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

header.dia-header .dia-ask-btn, header.dia-header .ask-btn { display: none !important; }
