.comm-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comm-card {
  background: var(--bg-black, #23242b);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 28px;
  padding: 28px 28px 18px 28px;
  transition: box-shadow 0.18s, transform 0.13s;
  position: relative;
  overflow: visible;
  min-height: 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.comm-card:hover {
  box-shadow: 0 6px 24px rgba(102,112,244,0.10);
  transform: translateY(-2px) scale(1.01);
}
.comm-card .comm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.comm-card .comm-card-badge {
  background: #6C63FF;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 18px;
  padding: 3px 16px 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.comm-card .comm-card-user {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  gap: 7px;
}
.comm-card .comm-card-user img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 5px;
}
.comm-card .comm-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 10px 0 7px 0;
  line-height: 1.3;
  color: var(--ft-color, #fff);
}
.comm-card .comm-card-content {
  color: var(--sub-txt-color, #aaa);
  font-size: 1.01rem;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  max-height: 4.2em;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}
.comm-card-content-row {
  position: relatie;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  max-height: unset;
  overflow: visible;
  padding-right: 102px;
}
.comm-card-content-text {
  flex: 1 1 0%;
  min-width: 0;
  color: var(--sub-txt-color, #aaa);
  font-size: 1.01rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  max-height: unset;
  padding-right: 0;
  display: flex;
  align-items: center;
}
.comm-card .comm-card-bottom {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-left: 0;
  padding-left: 0;
}
.comm-card .comm-card-btn {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 4px 12px 4px 12px;
  gap: 0;
  border-radius: 999px;
  background: var(--bg-black2, #2b2f41);
  color: var(--sub-txt-color, #888);
  font-size: 1.02em;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  margin-left: 0;
}
.comm-card .comm-card-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0 !important;
  padding-left: 0 !important;
  margin-right: 6px !important;
  min-width: 0;
  width: auto;
  text-align: left;
}
.comm-card .comm-card-btn .icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.comm-card .comm-card-btn:hover, .comm-card .comm-card-btn:focus {
  background: var(--point-color, #6670f4);
  color: #fff;
  box-shadow: 0 2px 8px rgba(102,112,244,0.10);
}
.comm-card-thumb {
  width: 100%;
  max-height: 220px;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
}
.comm-card-thumb img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.comm-card-thumb.square-right {
  width: 130px;
  height: 130px;
  min-width: 130px;
  min-height: 130px;
  max-width: 130px;
  max-height: 130px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin-bottom: 0;
  margin-left: 0;
  flex-shrink: 0;
  z-index: 1;
}
.comm-card-content-row {
  padding-right: 142px;
}
@media (max-width: 600px) {
  .comm-card {
    min-height: 70px;
  }
  .comm-card-thumb, .comm-card-thumb img {
    max-height: 140px;
  }
  .comm-card-thumb.square-right,
  .comm-card-thumb.square-right img {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    margin-bottom: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 이미지 자체에 padding-right로 여백을 줘서, 배경색이 카드와 동일하게 보이도록 */
    padding-right: 16px;
    box-sizing: content-box;
    background: var(--bg-black, #23242b);
  }
  .comm-card-content {
    gap: 8px;
  }
  .comm-card-content-row {
    flex-direction: row;
    align-items: center;
    min-height: unset;
    max-height: unset;
  }
  .comm-card-content-text {
    padding-right: 0;
    padding-bottom: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 100%;
    display: -webkit-box;
    align-items: center;
  }
  .comm-card-content-row {
    padding-right: 82px;
  }
  .comm-card.has-thumb {
    min-height: 90px;
  }
  .comm-card-header {
    align-items: center;
    gap: 6px;
  }
  .comm-card-header img {
    margin-top: 0;
    vertical-align: middle;
  }
}
@media (min-width: 601px) {
  .comm-card-thumb.square-right {
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
    max-width: 130px;
    max-height: 130px;
  }
  .comm-card-content-row {
    padding-right: 142px;
  }
}
.light-mode .comm-card .comm-card-btn {
  background: #fff !important;
  border: 1px solid #c7e2ff !important;
  color: #19191C !important;
}
.light-mode .comm-card .comm-card-btn .icon img {
  filter: brightness(1.2) !important;
}
.mypage-modal-content-compact {
    min-width: 280px !important;
    max-width: 320px !important;
    width: 60% !important;
    padding: 18px !important;
}

/* 異붽� 媛뺤젣 議곗젙 */
#mypageModal .mypage-modal-content-compact {
    min-width: 280px !important;
    max-width: 320px !important;
    width: 60% !important;
}

/* comm_index.php�먯꽌 352px 怨좎젙 臾몄젣 �닿껐 */
body .mypage-modal-content-compact {
    min-width: 280px !important;
    max-width: 320px !important;
    width: 60% !important;
}

@media (max-width: 600px) {
  .mypage-modal-content-compact {
    min-width: 96vw !important;
    max-width: 99vw !important;
    width: 99vw !important;
  }
  .mypage-nick-input, .mypage-pw-input {
    font-size: 18px;
    padding: 10px 10px;
  }
}

/* �됰꽕�� �낅젰移� 湲몄씠 90%濡� �뺣� */
.mypage-nick-input {
  width: 95;
  min-width: 160px;
  max-width: 100%;
  display: inline-block;
}
.mypage-pw-input {
  width: 100%;
  display: block;
}
/* �꾨줈��-�꾨줈�꾩꽑��-�됰꽕�� �� 以� 諛곗튂 */
.mypage-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mypage-profile-img-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  gap: 8px;
}
.mypage-profile-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #eee;
}
.mypage-profile-nick-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.mypage-file-label {
  margin: 0;
  margin-top: 6px;
  width: 90px;
  height: 32px;
  background: #6C63FF;
  color: #fff;
  border-radius: 8px;
  text-align: center;
  line-height: 32px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.mypage-file-label:hover {
  background: #554ee1;
}
/* 遺덊븘�뷀븳 �띿뒪��(�쇰꺼) �④� */
.mypage-profile-label,
.mypage-nick-label,
.mypage-pw-label {
  display: none !important;
}

/* 留덉씠�섏씠吏� �� 踰꾪듉 �붿옄�� 媛쒖꽑 */
#mypageModal .mypage-tabs-compact {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  border-bottom: 2px solid #232533;
}
#mypageModal .mypage-tab-btn {
  flex: 1 1 0;
  padding: 13px 0 11px 0;
  border: none;
  border-radius: 12px 12px 0 0;
  background: #232533;
  color: #bfc2d4;
  font-size: 1.08rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
#mypageModal .mypage-tab-btn.on {
  background: linear-gradient(90deg, #6C63FF 60%, #554ee1 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(108,99,255,0.10);
  z-index: 2;
}
#mypageModal .mypage-tab-btn:not(.on):hover {
  background: #393a4a;
  color: #fff;
}
/* �� 踰꾪듉 援щ텇�� 媛뺤“ */
#mypageModal .mypage-tab-btn.on::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  z-index: 3;
}

/* 留덉씠�섏씠吏� ���� 踰꾪듉 �붿옄�� 媛쒖꽑 */
#mypageModal .mypage-save-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #6C63FF 60%, #554ee1 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px 0 rgba(108,99,255,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  letter-spacing: 0.5px;
}
#mypageModal .mypage-save-btn:hover {
  background: #554ee1;
  box-shadow: 0 4px 16px 0 rgba(108,99,255,0.18);
  transform: translateY(-2px) scale(1.03);
}
