.personal-resources {
  margin: 0;
  border: 1px solid rgba(194, 213, 229, .92);
  border-radius: 9px;
  background: rgba(255, 255, 255, .76);
  padding: 8px 10px 9px;
}

.personal-resources__head,
.personal-resource-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.personal-resources__head {
  align-items: center;
  margin-bottom: 5px;
}

.personal-resources__head h2,
.personal-resource-panel__title h3 {
  margin: 0;
  color: var(--ink);
}

.personal-resources__head h2 {
  font-size: 12px;
}

.personal-resources__sync {
  flex: 0 0 auto;
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9dceb;
  border-radius: 999px;
  background: #f5f9fc;
  color: #315f7d;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.personal-resources__sync[data-state="synced"] {
  border-color: #b9ded4;
  background: #eef9f5;
  color: #17624f;
}

.personal-resources__sync[data-state="error"] {
  border-color: #efcf9e;
  background: #fff8ea;
  color: #8b5713;
}

.personal-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.personal-resource-panel {
  min-width: 0;
  border: 1px solid #e2ebf2;
  border-radius: 7px;
  background: rgba(248, 251, 254, .84);
  padding: 6px 8px;
}

.personal-resource-panel__title {
  margin-bottom: 2px;
}

.personal-resource-panel__title h3 {
  color: #43586c;
  font-size: 11px;
  font-weight: 800;
}

.personal-resource-panel__title span {
  min-width: 18px;
  min-height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 5px;
  font-size: 9px;
  font-weight: 900;
}

.personal-resource-list {
  display: grid;
  gap: 0;
}

.personal-resource-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border-top: 1px solid #e6edf3;
  background: transparent;
  padding: 3px 1px;
}

.personal-resource-row:first-child {
  border-top: 0;
}

.personal-resource-row__link {
  min-width: 0;
}

.personal-resource-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.personal-resource-row button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667b8c;
  padding: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.personal-resource-row button:hover {
  background: #fff1ef;
  color: #a33a32;
}

.personal-resource-empty {
  margin: 0;
  min-height: 26px;
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.resource-card-shell {
  position: relative;
  min-width: 0;
}

.resource-card-shell .resource-card {
  height: 100%;
  padding-right: 42px;
}

.resource-favorite {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e6f0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  color: #7892a6;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 42, 67, .08);
}

.resource-favorite:hover,
.resource-favorite.is-active {
  border-color: #efcf9e;
  background: #fff8ea;
  color: #c67b12;
}

.summary {
  justify-content: space-between;
  gap: 12px;
}

#medichome-clear-filters {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--blue);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#medichome-clear-filters:hover {
  border-color: var(--line-strong);
  background: var(--blue-soft);
}

@media (max-width: 700px) {
  .personal-resources__head {
    display: grid;
  }

  .personal-resources__sync {
    width: fit-content;
    white-space: normal;
  }

  .personal-resources__grid {
    grid-template-columns: 1fr;
  }

  .summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
