#projectContacts{
  --pc-line:#dce6ec;
  --pc-muted:#65798b;
}

.pc-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:14px;
}

.pc-toolbar h3{
  margin:0 0 4px;
}

.pc-toolbar p{
  margin:0;
  color:var(--pc-muted);
  font-size:12px;
}

.pc-toolbar-right{
  display:flex;
  align-items:flex-end;
  gap:18px;
}

.pc-count{
  text-align:right;
}

.pc-count strong{
  display:block;
  color:var(--navy);
  font-size:22px;
}

.pc-count span{
  color:var(--pc-muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.pc-view-control{
  display:flex;
  align-items:center;
  gap:8px;
}

.pc-view-control > span{
  color:var(--pc-muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.pc-view-toggle{
  display:inline-flex;
  padding:3px;
  border-radius:8px;
  background:#eef3f6;
}

.pc-view-toggle button{
  min-width:58px;
  padding:6px 11px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#607487;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.pc-view-toggle button.active{
  background:#0796ce;
  color:#fff;
}

.pc-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.pc-card{
  min-width:0;
  padding:13px;
  border:1px solid var(--pc-line);
  border-radius:10px;
  background:#fff;
}

.pc-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.pc-type{
  margin-bottom:3px;
  color:var(--pc-muted);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
}

.pc-card h3{
  margin:0;
  color:var(--navy);
  font-size:14px;
}

.pc-dashboard-user{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  background:#e4f2fa;
  color:#0878ad;
  font-size:8px;
  font-weight:800;
}

.pc-rule{
  height:1px;
  margin:11px 0;
  background:#e8eef2;
}

.pc-meta{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:12px;
}

.pc-meta span{
  display:block;
  margin-bottom:3px;
  color:var(--pc-muted);
  font-size:8px;
  font-weight:800;
  text-transform:uppercase;
}

.pc-meta strong{
  color:#344e62;
  font-size:10px;
}

.pc-contact-details{
  margin-top:12px;
  padding:9px;
  border-radius:7px;
  background:#f5f8fa;
  color:#536b7e;
  font-size:10px;
}

.pc-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #edf1f4;
  color:#65798b;
  font-size:9px;
  font-weight:700;
}

.pc-footer .btn{
  padding:5px 9px;
  font-size:9px;
}

.pc-list{
  overflow:hidden;
  border:1px solid var(--pc-line);
  border-radius:10px;
  background:#fff;
}

.pc-row{
  display:grid;
  grid-template-columns:
    minmax(170px,1.2fr)
    minmax(120px,.8fr)
    minmax(210px,1.5fr)
    110px
    90px
    65px;
  align-items:center;
  gap:12px;
  min-height:58px;
  padding:9px 12px;
  border-bottom:1px solid #e8eef2;
  color:#50677b;
  font-size:10px;
}

.pc-row:last-child{
  border-bottom:0;
}

.pc-row > div:first-child strong{
  display:block;
  color:var(--navy);
  font-size:11px;
}

.pc-row > div:first-child span{
  display:block;
  margin-top:2px;
  color:#748797;
  font-size:9px;
}

.pc-row-head{
  min-height:36px;
  background:#f3f7f9;
  color:#647789;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

@media(max-width:1100px){
  .pc-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:700px){
  .pc-toolbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .pc-card-grid{
    grid-template-columns:1fr;
  }
}

/* ==========================================================
   v0.14.89 — Project Contacts editor / archive support
   ========================================================== */

.pc-editor-backdrop{
  display:none;
}

.pc-editor-modal{
  width:min(760px,100%);
}

.pc-checkbox-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:8px;
  min-height:38px;
  cursor:pointer;
}

.pc-checkbox-label input{
  width:auto!important;
  min-height:0!important;
}

.pc-show-archived{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.pc-show-archived input{
  margin:0;
}

.pc-inactive{
  opacity:.62;
}

.pc-archived-label{
  color:var(--muted);
  font-weight:700;
}

.pc-empty{
  padding:24px;
  border:1px dashed var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--muted);
  text-align:center;
}
