.networking-page{
  width:100%;
  max-width:1050px;
  margin:0 auto;
  padding:24px 28px 60px;
  box-sizing:border-box;
  color:#20242b;
}

.networking-page h1{
  margin:0 0 20px;
  font-size:24px;
  font-weight:700;
}

.networking-search{
  display:flex;
  width:100%;
  gap:8px;
  margin-bottom:14px;
}

.networking-search input{
  flex:1;
  height:44px;
  border:1px solid #d7dbe0;
  border-radius:8px;
  padding:0 14px;
  font-size:14px;
  outline:none;
  box-sizing:border-box;
}

.networking-search input:focus{
  border-color:#7d8792;
}

.networking-search button{
  width:78px;
  height:44px;
  border:0;
  border-radius:8px;
  background:#6f7982;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.networking-tabs{
  display:flex;
  gap:8px;
  margin-bottom:28px;
}

.networking-tab{
  height:36px;
  padding:0 16px;
  border:1px solid #d9dde2;
  border-radius:18px;
  background:#fff;
  color:#505760;
  cursor:pointer;
}

.networking-tab.active{
  background:#6f7982;
  color:#fff;
  border-color:#6f7982;
}

.networking-section{
  margin-top:26px;
}

.networking-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:10px;
  border-bottom:1px solid #dfe2e6;
}

.networking-section-title h2{
  margin:0;
  font-size:18px;
}

.networking-list{
  width:100%;
}

.networking-row{
  display:grid;
  grid-template-columns:52px minmax(160px,1fr) 120px 120px;
  align-items:center;
  gap:14px;
  min-height:68px;
  border-bottom:1px solid #eef0f2;
}

.networking-profile{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  background:#f1f2f4;
}

.networking-name{
  min-width:0;
}

.networking-name strong{
  display:block;
  font-size:14px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.networking-name small{
  display:block;
  margin-top:4px;
  color:#8a9199;
  font-size:12px;
}

.networking-action{
  height:34px;
  border:1px solid #d5d9de;
  border-radius:7px;
  background:#fff;
  color:#343a40;
  cursor:pointer;
  font-size:13px;
}

.networking-action.status{
  cursor:default;
  background:#f3f4f5;
  color:#747b83;
}

.networking-action.message{
  background:#6f7982;
  border-color:#6f7982;
  color:#fff;
}

.networking-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  padding:16px 0 4px;
}

.networking-pagination button{
  min-width:32px;
  height:32px;
  border:1px solid #d9dde2;
  border-radius:6px;
  background:#fff;
  cursor:pointer;
}

.networking-pagination button.active{
  background:#6f7982;
  color:#fff;
  border-color:#6f7982;
}

@media(max-width:760px){
  .networking-page{
    padding:18px 14px 50px;
  }

  .networking-row{
    grid-template-columns:44px 1fr;
    padding:10px 0;
  }

  .networking-action{
    grid-column:auto;
  }
}

/* ===== Crew intro ===== */

.networking-section:last-of-type .networking-row{
  grid-template-columns:52px minmax(150px,1fr) 90px 120px 120px;
}

.crew-intro-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.35);
}

.crew-intro-card{
  position:relative;
  width:min(520px,calc(100vw - 40px));
  max-height:80vh;
  overflow:auto;
  padding:26px;
  box-sizing:border-box;
  border-radius:14px;
  background:#fff;
  box-shadow:0 15px 45px rgba(0,0,0,.18);
}

.crew-intro-close{
  position:absolute;
  top:12px;
  right:15px;
  border:0;
  background:transparent;
  font-size:27px;
  color:#737b84;
  cursor:pointer;
}

.crew-intro-profile{
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:18px;
  border-bottom:1px solid #e5e7ea;
}

.crew-intro-profile img{
  width:58px;
  height:58px;
  border-radius:50%;
  object-fit:cover;
}

.crew-intro-profile h2{
  margin:0;
  font-size:20px;
}

.crew-intro-profile p{
  margin:5px 0 0;
  color:#7c848c;
  font-size:13px;
}

.crew-intro-body{
  padding:18px 0;
}

.crew-intro-body h3{
  margin:0 0 9px;
  font-size:16px;
}

.crew-intro-body p{
  margin:0 0 18px;
  line-height:1.7;
  font-size:14px;
  color:#505860;
}

.crew-intro-body dl{
  margin:0;
}

.crew-intro-body dl div{
  display:grid;
  grid-template-columns:100px 1fr;
  padding:8px 0;
  font-size:13px;
}

.crew-intro-body dt{
  color:#858c94;
}

.crew-intro-body dd{
  margin:0;
}

.crew-intro-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding-top:16px;
  border-top:1px solid #e5e7ea;
}

.crew-intro-actions button{
  height:36px;
  padding:0 16px;
  border:1px solid #6f7982;
  border-radius:7px;
  background:#fff;
  color:#59636c;
  cursor:pointer;
}

.crew-intro-actions button:last-child{
  background:#6f7982;
  color:#fff;
}


/* ===== Personal intro ===== */

.networking-section:first-of-type .networking-row{
  grid-template-columns:52px minmax(150px,1fr) 90px 120px 120px;
}

.personal-intro-backdrop{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.35);
}

.personal-intro-card{
  position:relative;
  width:min(520px,calc(100vw - 40px));
  max-height:80vh;
  overflow:auto;
  padding:26px;
  box-sizing:border-box;
  border-radius:14px;
  background:#fff;
  box-shadow:0 15px 45px rgba(0,0,0,.18);
}

.personal-intro-close{
  position:absolute;
  top:12px;
  right:15px;
  border:0;
  background:transparent;
  font-size:27px;
  color:#737b84;
  cursor:pointer;
}

.personal-intro-profile{
  display:flex;
  align-items:center;
  gap:14px;
  padding-bottom:18px;
  border-bottom:1px solid #e5e7ea;
}

.personal-intro-profile img{
  width:58px;
  height:58px;
  border-radius:50%;
  object-fit:cover;
}

.personal-intro-profile h2{
  margin:0;
  font-size:20px;
}

.personal-intro-profile p{
  margin:5px 0 0;
  color:#7c848c;
  font-size:13px;
}

.personal-intro-body{
  padding:18px 0;
}

.personal-intro-body h3{
  margin:0 0 9px;
  font-size:16px;
}

.personal-intro-body p{
  line-height:1.7;
  font-size:14px;
  color:#505860;
}

.personal-intro-body dl div{
  display:grid;
  grid-template-columns:100px 1fr;
  padding:8px 0;
  font-size:13px;
}

.personal-intro-body dt{
  color:#858c94;
}

.personal-intro-body dd{
  margin:0;
}

.personal-intro-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:16px;
  border-top:1px solid #e5e7ea;
}

.personal-intro-actions button{
  height:36px;
  padding:0 16px;
  border:1px solid #6f7982;
  border-radius:7px;
  background:#fff;
  color:#59636c;
  cursor:pointer;
}

.personal-intro-actions button:last-child{
  background:#6f7982;
  color:#fff;
}

/* ===== Networking request tabs ===== */

.networking-tabs{
  flex-wrap:wrap;
}

.networking-tab{
  position:relative;
}

.networking-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  margin-left:5px;
  padding:0 5px;
  box-sizing:border-box;
  border-radius:9px;
  background:#e9ecef;
  color:#59636c;
  font-size:11px;
  font-weight:700;
}

.networking-tab.active .networking-badge{
  background:#fff;
  color:#6f7982;
}

/* ===== 개인/크루 메뉴 제목행 ===== */

.networking-section-title{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  width:100%;
  padding-bottom:10px;
  border-bottom:1px solid #dfe2e6;
}

.networking-section-title > h2{
  flex:0 0 auto;
  margin:0;
  padding:0;
  font-size:18px;
  line-height:32px;
}

.networking-section-title > .networking-section-menu{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0;
  border:0;
}

.networking-section-title .section-menu{
  display:flex;
  align-items:center;
  height:32px;
  margin:0;
  padding:0 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  font-size:13px;
  line-height:32px;
  white-space:nowrap;
  cursor:pointer;
}

.networking-section-title .section-menu.active{
  background:#e5e9ec;
  font-weight:700;
}

.networking-section-title .section-menu strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:19px;
  height:19px;
  margin-left:4px;
  padding:0 5px;
  border-radius:10px;
  background:#6f7982;
  color:#fff;
  font-size:11px;
  line-height:19px;
}


/* networking 화면에서는 philosophyCenterView의 전역 h2 스타일 차단 */
#philosophyCenterView .networking-section-title > h2{
  margin:0 !important;
  padding:0 !important;
  font-size:18px !important;
  line-height:32px !important;
}

/* 개인 / 크루 영역 구분선 */
.networking-section + .networking-section{
  border-top:1px solid #eef0f2;
  padding-top:22px;
  margin-top:22px;
}

/* ==========================================================
   개인 네트워킹 - 받은 요청 / 보낸 요청
   ========================================================== */

.network-request-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  box-sizing: border-box;
}

.network-request-profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-request-profile-image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.network-request-profile-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 25px;
}

.network-request-info {
  min-width: 0;
}

.network-request-info strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.network-request-info span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.network-request-info p {
  margin: 5px 0 0;
  font-size: 13px;
}

.network-request-info small {
  display: block;
  margin-top: 5px;
  color: #9ca3af;
  font-size: 11px;
}

.network-request-actions {
  display: flex;
  gap: 6px;
}

.network-request-actions button {
  min-width: 58px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.network-request-accept {
  font-weight: 600;
}

.network-request-status {
  min-width: 70px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.network-request-empty {
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}


/* =========================================================
   Networking - Private Messages
   ========================================================= */

.network-message-row {
  cursor: pointer;
}

.network-message-row:hover {
  background: #f8f9fa;
}

.network-message-unread {
  font-weight: 600;
}

.network-message-unread .network-message-text {
  font-weight: 600;
}

.network-message-text {
  margin: 6px 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
  font-weight: 400;
}

.network-message-status {
  min-width: 52px;
  text-align: center;
}

.network-message-unread .network-message-status {
  font-weight: 700;
}

#messageUnreadCount {
  display: inline-block;
  min-width: 16px;
  text-align: center;
}

/* ===== Crew detail font unify ===== */

.crew-intro-body,
.crew-intro-body p,
.crew-intro-body dl div,
.crew-member-row,
#crewMemberManagementSummary,
#crewMemberManagementList{
  font-size:14px;
}

#crewMemberManagementList h4{
  font-size:14px;
}

.crew-intro-actions button{
  font-size:14px;
}

.crew-member-row button{
  font-size:14px;
}

/* ===== 가입크루 버튼 3개 한줄 배치 ===== */
.networking-section:last-of-type .networking-row{
  grid-template-columns:
    52px
    minmax(120px,1fr)
    70px
    100px
    110px
    120px;
  gap:10px;
}

@media(max-width:760px){
  .networking-section:last-of-type .networking-row{
    grid-template-columns:44px 1fr;
  }
}
