.ym-depts {
  padding:1rem;
}

.ym-depts__head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  width:10rem;
  margin: 0 auto;
  padding:1rem 1rem 1.5rem;
}
.ym-depts__icon{
  width:2rem;
  margin-right:1rem;
}
.ym-depts__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.ym-depts__tab {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1;
}

.ym-depts__tab.is-active {
  background: #0b63ce;
  border-color: #0b63ce;
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 99, 206, 0.18);
}

.ym-dept-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 360px) {
  .ym-dept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ym-dept-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.ym-dept-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  text-decoration: none;
}

.ym-dept-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2f7ff, #eaf2ff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ym-dept-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.ym-dept-icon__placeholder {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #0b63ce;
  opacity: 0.25;
}

.ym-dept-name {
  font-size: 13px;
  color: #222;
  line-height: 1.15;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.ym-depts__empty {
  font-size: 13px;
  color: #777;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
}
